/* style.css */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 1rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Modal immer über allem */
#loginModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,.4);
  min-width: 300px;
}

/* Grunddesign für alle Buttons */
.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Haupt-Buttons (z. B. Dienstplan drucken) */
.btn-primary {
  background-color: #2c3e50; /* Dunkles Blau/Anthrazit passend zum Kalender */
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1a252f;
}

/* Deaktivierter Button ("Plan generieren") */
.btn-primary:disabled {
  background-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

/* Unaufdringliche/Sekundäre Buttons (z. B. "Anmelden") */
.btn-outline {
  background-color: transparent;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-outline:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

/* Optional: dunkler Backdrop hinter dem Modal */
#loginBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #ddd;
  margin-bottom: 1rem;
}
.tab-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tab-btn.active {
  border-bottom-color: #4a90d9;
  font-weight: bold;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Kalender begrenzen */
#calendar {
  max-width: 100%;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
}
.legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: inline-block;
}

.schedule-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
#generateBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}