/* Gemeinsame Basis und Farbvariablen fuer alle Seiten. */
    body {
      font-family: sans-serif;
      background: #f2f2f2;
      padding: 2rem;
    }
    h2, h3 {
      margin-top: 2rem;
    }
    table {
      width: 100%;
      max-width: 1000px;
      margin-bottom: 2rem;
      border-collapse: collapse;
      background: #fff;
    }
    th, td {
      border: 1px solid #ccc;
      padding: 0.2rem;
      text-align: left;
    }
    th {
      background: #eee;
    }
    input[type="text"], input[type="email"] {
      width: 300px;
    }
    input[type="number"] {
      width: 80px;
    }
    .btn {
      display: inline-block;
      padding: 0.2rem 0.2rem;
      /*margin: 2px;*/
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.9em;
      text-decoration: none;
      text-align: center;
      width: 150px;
    }
    .btn:hover {
      opacity: 0.85;
      transform: scale(1.05);
      transition: all 0.2s ease;
    }
    .btn.save { background: #5cb85c; color: white; }
    .btn.delete { background: #d9534f; color: white; }
    .btn.csv { background: #0275d8; color: white; }
    .actions { white-space: nowrap; }
    .wide { width: 180px; }
    .rotated-header {
      writing-mode: vertical-lr;
      transform: rotate(180deg);
      white-space: nowrap;
      text-align: left;
      vertical-align: top;
      padding: 0;
      line-height: 1;
      font-size: 1em;
      max-width: 1px;
    }
    #session-timer {
      position: fixed;
      top: 4rem;
      right: 1rem;
      background: #fff3cd;
      color: #856404;
      border: 1px solid #ffeeba;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      font-weight: bold;
      z-index: 9999;
      box-shadow: 0 0 5px rgba(0,0,0,0.1);
    }


    #session-logout {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background: #f2f2f2;
      padding: 1rem;
      text-align: center;
      z-index: 9999;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    #session-logout a.active { font-weight:600; background: #070707 }

td.auto-width,
th.auto-width {
    white-space: nowrap;
    width: 1%; /* erzwingt minimal nötige Breite */
}


/* Admin*/
.bereich-zeile {
    height: 25px;
}
.anmeldung-zeile {
    height: 25px;
}


/* Schichtplan */
.tag {
  font-size: 1.4em;
  margin-top: 2rem;
  font-weight: bold;
}

.zeit {
  font-size: 1.2em;
  margin-left: 1rem;
  margin-top: 1rem;
  font-weight: bold;
}

.rolle-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 0.5rem 2rem;
}

.bar-wrapper {
  display: flex;
  height: 20px;
  width: 100%;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  min-width: 120px;
}



.bar-free {
  background-color: var(--shift-open);
  height: 100%;
}

.bar-booked {
  background-color: var(--shift-occupied);
  height: 100%;
}


.bar-covered {
  background-color: var(--shift-complete);
  height: 100%;
}


.helper-names {
  font-size: 0.9em;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .rolle-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .bar-wrapper {
  display: flex;
  height: 20px;
  width: 100%;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  min-width: 120px;
}

  .helper-names {
    max-width: 100%;
  }
}

.schicht-tabelle {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-left: 2rem;
}

.schicht-zeile {
  display: grid;
  grid-template-columns: 180px auto auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.2rem 0;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding-left: 0.5rem;
}

.schicht-bereich {
  font-weight: none;
}

.schicht-info {
  font-size: 0.95em;
  color: #333;
}

.bar-wrapper {
  display: flex;
  height: 20px;
  width: 100%;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  min-width: 120px;
}


.bar-free {
  background-color: var(--shift-open);
  height: 100%;
}

.bar-booked {
  background-color: var(--shift-occupied);
  height: 100%;
}


.bar-covered {
  background-color: var(--shift-complete);
  height: 100%;
}


.helper-names {
  font-size: 0.9em;
  color: #555;
}

:root{
  --col-empf: 1.5fr;   /* links */
  --col-msg:  1.2fr; /* rechts */
}
.wrap{
  display:grid;
  grid-template-columns: var(--col-empf) var(--col-msg);
  gap:16px;
  align-items:start;
}








.error { max-width: 960px; margin: 2rem auto; background:#ffe6e6; color:#900; border:1px solid #f5c2c2; padding:1rem 1.25rem; border-radius:6px; font-weight:600; }

/* --------------------------------------------------------------------------
   Verwaltung – gemeinsames Layout und Komponenten
   -------------------------------------------------------------------------- */
:root {
  --admin-navy: #17324d;
  --admin-navy-2: #234968;
  --admin-blue: #1769aa;
  --admin-blue-soft: #eaf3fb;
  --admin-bg: #f4f6f8;
  --admin-surface: #ffffff;
  --admin-border: #dce3e8;
  --admin-text: #1f2d38;
  --admin-muted: #647480;
  --admin-success: #257a4a;
  --admin-success-soft: #e8f5ed;
  --admin-warning: #9a6300;
  --admin-warning-soft: #fff4d6;
  --admin-danger: #b4232d;
  --admin-danger-soft: #fdecee;
  /* Einheitliche Belegungsfarben: frei, ausgewählt/vollständig, besetzt. */
  /* Statusfarben: frei grün, ausgewählt/über Bedarf blau, besetzt rot. */
  --shift-open: #64b98b;
  --shift-open-soft: #eef9f3;
  --shift-open-text: #237247;
  --shift-complete: #75aeda;
  --shift-complete-soft: #edf6fc;
  --shift-complete-text: #286b9d;
  --shift-occupied: #e7a8ae;
  --shift-occupied-soft: #fff4f5;
  --shift-occupied-text: #9f303c;
  --admin-radius: 12px;
  --admin-shadow: 0 1px 2px rgba(23,50,77,.06), 0 8px 24px rgba(23,50,77,.05);
}
