:root {
  --bg: #1f2937;        /* dunkles Grau */
  --text: #e5e7eb;
  --accent: #b8ff00;    /* Neon-Gelbgrün */
  --muted: #9ca3af;
  --card: #111827;
  --ok: #16a34a;
  --warn: #f59e0b;
  --err: #ef4444;
  --blue: #3b82f6;
}
* { box-sizing: border-box; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; }
body.bg { margin:0; background: var(--bg); color: var(--text); }
.card { max-width: 420px; margin: 8vh auto; background: var(--card); padding: 24px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.logo { display:block; max-width: 220px; margin: 0 auto 12px; }
label { display:block; margin: 8px 0 4px; color: var(--muted); font-size: 14px; }
input, select { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid #374151; background: #0b1220; color: var(--text); }
/* alle normalen Buttons, aber NICHT der Hamburger */
button:not(.hamburger):not(#hamburgerBtn) {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color:#000;
  font-weight:700;
  cursor:pointer;
}

button.ghost { background: transparent; border:1px solid #374151; color: var(--text); }
.muted { color: var(--muted); font-size: 12px; }
.topbar { display:flex; align-items:center; gap:10px; padding:10px; background:#0b1220; position: sticky; top:0; }
.topbar .brand { font-weight:800; color: var(--accent); }
.topbar nav { display:none; gap:8px; flex-wrap:wrap; }
main { max-width: 1100px; margin: 16px auto; padding: 0 12px; }
.tab { display:none; }
.tab.active { display:block; }
/* table { width:100%; border-collapse: collapse; margin-top: 8px; }
th, td { padding: 8px; border-bottom: 1px solid #374151; } */
.badge { background: var(--warn); color:#000; padding:4px 8px; border-radius: 999px; font-size: 12px; margin-left: 8px; }
.badge.hidden { display:none; }
.status-blau { color: var(--blue); }
.status-gruen { color: var(--ok); }
.status-rot { color: var(--err); }

/* Kalender-Grid */
.vac-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 0; /* vorher 16px, jetzt 0 weil vac-weekdays schon Abstand macht */
}

/* Ein einzelner Kalendertag */
.cal-day {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  min-height: 72px;
  padding: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Datumstext oben links */
.cal-day-date {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 4px;
}

/* Container für Urlaubsbalken */
.vac-slots {
  position: relative;
  flex: 1;
}

/* Durchgehender Urlaubsbalken */
.vac-bar {
  position: absolute;

  /* Abstand oben/unten innerhalb der Zelle */
  top: 0.4rem;
  bottom: 0.4rem;

  /* Wichtig: volle Breite der Zelle standardmäßig */
  left: 0;
  right: 0;

  background: #b8ff00;        /* wird per JS ggf. überschrieben */
  color: #000;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 6px;
  display: flex;
  align-items: center;

  /* Standard: KEINE Rundung, damit Mittelstücke flach sind */
  border-radius: 0;
  border: 1px solid #000;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Starttag des Urlaubsblocks:
   - Links runde Ecke
   - Wir lassen rechts erstmal eckig, damit es sauber an den nächsten Tag anschließt */
.vac-bar.start {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

/* Mittlerer Tag (Fortsetzung):
   - kein Text anzeigen (damit Name nicht jeden Tag steht)
   - keine Rundung
*/
.vac-bar.cont {
  font-size: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Letzter Tag der Spanne:
   - Rechts runde Ecke
*/
.vac-bar.end {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* Sonderfall: Wenn Urlaub nur 1 Tag lang ist
   (start == end), soll er auf beiden Seiten rund sein */
.vac-bar.single {
  border-radius: 6px;
}

/* Kopfzeile mit Mo-So */
.vac-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  /* kleine untere Linie, um die Kopfzeile optisch vom Grid zu trennen */
  margin-bottom: 4px;
}

.vac-weekdays > div {
  text-align: left;
  padding-left: 4px;
  color: #9ca3af;
  line-height: 1.2;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Wochenende in der Kopfzeile etwas heller/gelber machen o. grau */
.vac-weekdays > div:nth-child(6),
.vac-weekdays > div:nth-child(7) {
  color: #facc15; /* ein warmes Gelb, kann auch #b8ff00 sein wenn du's knallen willst */
  font-weight: 600;
}

/* Wochenende im Grid leicht anders hinterlegen */
.vac-grid > .cal-day:nth-child(7n),
.vac-grid > .cal-day:nth-child(7n-1) {
  background: #111827; /* ein Tick dunkler, damit man "Weekend Block" sieht */
}



#sigPad { background: #fff; border-radius: 10px; width: 100%; max-width: 560px; }

#infoSection {
background:#0f1620;
    border:1px solid #1f2a37;
    border-radius:12px;
    padding:16px 20px;
    max-width:800px;
    color:#fff;
    box-shadow:0 30px 80px rgba(0,0,0,.6);
    font-size:15px;
    line-height:1.5;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}


/* Desktop-Tabelle standardmäßig AN */
.time-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #2f3542;
  border-radius: 6px;
  background: #1f2733;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  margin-bottom: 24px;
}

.time-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 14px;
  color: #fff;
}

.time-table thead th {
  text-align: left;
  font-weight: 600;
  color: #b8ff00;
  background: #1f2733;
  border-bottom: 1px solid #3a4252;
  padding: 10px 12px;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

.time-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #2a303c;
  vertical-align: top;
  color: #fff;
  font-weight: 400;
}

.time-table tbody tr:last-child td {
  border-bottom: 0;
}

.time-table tbody tr.vac-row td {
  background: #1a1f27;
  color: #b8ff00;
  font-weight: 600;
  border-bottom: 1px solid #2f3542;
}

.time-table tbody tr.vac-hint td {
  font-size: 12px;
  font-style: italic;
  color: #9ca3af;
  background: #111827;
  border-top: 1px solid #374151;
  border-bottom: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Mobile-Liste standardmäßig AUS auf Desktop */
.time-list-mobile {
  display: none;
  margin-top: 16px;
  font-size: 14px;
  color: #fff;
}

.time-list-mobile .time-card {
  background: #1f2733;
  border: 1px solid #2f3542;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  padding: 12px 12px 10px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.time-list-mobile .time-card-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  border-bottom: 1px solid #2a303c;
}
.time-list-mobile .time-card-row:last-child {
  border-bottom: 0;
}

.time-list-mobile .label {
  color: #9ca3af;
  font-size: 13px;
  padding-right: 8px;
  white-space: nowrap;
}

.time-list-mobile .value {
  color: #fff;
  font-weight: 500;
  text-align: right;
  min-width: 80px;
}

.time-list-mobile .vac-card {
  background: #1a1f27;
  border: 1px solid #2f3542;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  padding: 12px;
  margin-bottom: 12px;
  line-height: 1.4;
  color: #b8ff00;
  font-weight: 600;
  font-size: 14px;
}

.time-list-mobile .vac-card .vac-range {
  color: #b8ff00;
  font-weight: 600;
  margin-bottom: 4px;
}

.time-list-mobile .vac-card .vac-label {
  color: #b8ff00;
  font-weight: 600;
  font-size: 13px;
}

.time-list-mobile .vac-hint-mobile {
  font-size: 12px;
  color: #9ca3af;
  font-style: italic;
  margin-top: -4px;
  margin-bottom: 12px;
}

/* RESPONSIVE SWITCH */
@media (max-width: 700px) {
  /* Auf Handy/Tablets <700px: Tabelle AUS, Kartenliste AN */
  .time-table-wrapper {
    display: none;
  }
  .time-list-mobile {
    display: block;
  }
}


/* Header "Meine Anträge" */
.vac-card-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.vac-card-title {
  font-size:16px;
  font-weight:600;
  color:#fff;
}

/* Tabelle Desktop */
.vac-table-wrapper {
  width:100%;
  overflow-x:auto;
  border:1px solid #2f3542;
  border-radius:6px;
  background:#0b111d;
  box-shadow:0 10px 30px rgba(0,0,0,.5);
}

.vac-table {
  width:100%;
  min-width:480px;
  border-collapse:collapse;
  font-size:14px;
  color:#fff;
}

.vac-table thead th {
  text-align:left;
  font-weight:600;
  color:#b8ff00;
  background:#0b111d;
  border-bottom:1px solid #3a4252;
  padding:10px 12px;
  white-space:nowrap;
  position:sticky;
  top:0;
  z-index:2;
}

.vac-table tbody td {
  padding:10px 12px;
  border-bottom:1px solid #2a303c;
  vertical-align:top;
  font-weight:400;
  color:#fff;
  font-size:14px;
}

.vac-table tbody tr:last-child td {
  border-bottom:0;
}

/* status Farben */
.status-gruen {
  color:#00c853;
  font-weight:600;
}
.status-rot {
  color:#ff5252;
  font-weight:600;
}
.status-blau {
  color:#4fc3f7;
  font-weight:600;
}

/* MOBILE KARTEN (erstmal hidden am Desktop) */
.vac-list-mobile {
  display:none;
  margin-top:16px;
  font-size:14px;
  color:#fff;
}

.vac-list-mobile .vac-mobile-card {
  background:#0b111d;
  border:1px solid #2f3542;
  border-radius:6px;
  box-shadow:0 10px 30px rgba(0,0,0,.5);
  padding:12px 12px 10px;
  margin-bottom:12px;
  line-height:1.45;
}

.vac-mobile-row {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding:2px 0;
  border-bottom:1px solid #2a303c;
}
.vac-mobile-row:last-child {
  border-bottom:0;
}

.vac-mobile-row .label {
  color:#9ca3af;
  font-size:13px;
  padding-right:8px;
  white-space:nowrap;
}
.vac-mobile-row .value {
  color:#fff;
  font-weight:500;
  text-align:right;
  min-width:80px;
  word-break:break-word;
}

.vac-mobile-row .value.status-gruen,
.vac-mobile-row .value.status-rot,
.vac-mobile-row .value.status-blau {
  font-weight:600;
}

/* RESPONSIVE SWITCH für Urlaubsliste */
@media (max-width:700px) {
  .vac-table-wrapper {
    display:none;
  }
  .vac-list-mobile {
    display:block;
  }
}


/* --- Übersicht Cards --- */

.overview-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px,100%), 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.overview-card {
  background: #0f172a;              /* dunkles Blau/Schwarz */
  border: 1px solid #1f2937;         /* etwas heller rand */
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.8),
    0 4px 12px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oc-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.oc-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.oc-empno {
  font-size: 12px;
  color: #9ca3af;
}

.oc-body {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: flex-start;
}

.oc-metric {
  background:#111827;
  border:1px solid #374151;
  border-radius:8px;
  padding:8px 10px;
  min-width:90px;
  flex: 0 0 auto;
}

.oc-label {
  font-size:11px;
  font-weight:500;
  color:#9ca3af;
  line-height:1.3;
  margin-bottom:4px;
}

.oc-value {
  font-size:16px;
  font-weight:600;
  line-height:1.2;
  color:#b8ff00; /* dein Neon-Grün */
}

/* zusätzlicher Block unter den Kennzahlen */
.oc-vacnext {
  background:#111827;
  border:1px solid #374151;
  border-radius:8px;
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.oc-vac-label {
  font-size:11px;
  font-weight:500;
  color:#9ca3af;
  line-height:1.3;
}

.oc-vac-value {
  font-size:14px;
  font-weight:600;
  line-height:1.3;
  color:#fff;
}

/* Admin-Kalender-Optimierung */

#admCalendar .cal-day {
  display:flex;
  flex-direction:column;
  row-gap:6px;
  min-height:90px;
  background:#1f2531;
  border:1px solid #2f3542;
  border-radius:4px;
  color:#fff;
  padding:8px;
  box-sizing:border-box;
}

#admCalendar .cal-day-date {
  font-size:12px;
  color:#9ca3af;
}

/* ganz wichtig: stapeln statt "Balken langziehen" */
#admCalendar .vac-slots {
  display:flex;
  flex-direction:column;
  gap:4px;
}

/* einzelner Balken für jeden Mitarbeiter pro Tag */
#admCalendar .vac-bar {
  border-radius:3px;
  border:1px solid #000;
  font-size:11px;
  font-weight:500;
  line-height:1.2;
  padding:4px 6px;
  color:#000;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
  box-shadow:0 8px 20px rgba(0,0,0,.5);
}

/* optional: Legenden-Stil */
.cal-legend-item {
  display:flex;
  align-items:center;
  gap:6px;
  background:#1f2937;
  border:1px solid #4b5563;
  border-radius:6px;
  padding:6px 10px;
  color:#fff;
  line-height:1.2;
  box-shadow:0 20px 40px rgba(0,0,0,.6);
  font-size:12px;
}

.cal-legend-color {
  width:14px;
  height:14px;
  border-radius:3px;
  border:1px solid #000;
  box-shadow:0 10px 20px rgba(0,0,0,.6);
}


/* ---------- ADMIN KALENDER OVERRIDES ---------- */
/* Container für jeden Tag */
#admCalendar .cal-day {
  display: flex;
  flex-direction: column;
  row-gap: 6px;
  min-height: 90px;
  background: #1f2531;
  border: 1px solid #2f3542;
  border-radius: 4px;
  color: #fff;
  padding: 8px;
  box-sizing: border-box;
}

/* Datum oben links */
#admCalendar .cal-day-date {
  font-size: 12px;
  color: #9ca3af;
}

/* Slot-Bereich für die Urlaubs-Balken im Tag
   -> wir überschreiben hier alte absolute-Layout-Logik */
#admCalendar .vac-slots {
  /* wichtig: NICHT position:relative; NICHT height:... */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* Jeder Balken als eigener "Badge" untereinander */
#admCalendar .vac-bar {
  position: static;        /* überschreibt evtl. position:absolute */
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;

  display: inline-block;
  max-width: 100%;

  border-radius: 3px;
  border: 1px solid #000;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  padding: 4px 6px;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
}

/* die alten Varianten .start/.cont/.end/.single brauchen wir im Admin nicht mehr,
   also stellen wir hier sicher, dass sie nix kaputt machen */
#admCalendar .vac-bar.start,
#admCalendar .vac-bar.cont,
#admCalendar .vac-bar.end,
#admCalendar .vac-bar.single {
  border-radius: 3px;
}


.nav-badge {
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  background:#dc2626;
  color:#fff;
  border-radius:999px;
  font-size:11px;
  line-height:18px;
  font-weight:600;
  text-align:center;
  box-shadow:0 4px 10px rgba(0,0,0,.6);
  display:none;
}



/* --- Urlaub Tab Layout --- */

.vac-headline {
  color:#fff;
  font-size:18px;
  font-weight:600;
  margin-bottom:12px;
}

/* Formular-Layout bleibt wie gehabt */
.vac-form {
  background:#0b111d;
  border:1px solid #374151;
  border-radius:8px;
  padding:12px 16px;
  margin-bottom:20px;
  color:#fff;
}

.vac-form-row {
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:flex-end;
}

.vac-field {
  display:flex;
  flex-direction:column;
  min-width:140px;
  color:#fff;
  font-size:14px;
}

.vac-field-grow {
  flex:1 1 auto;
  min-width:200px;
}

.vac-label {
  color:#9ca3af;
  font-size:13px;
  margin-bottom:4px;
}

.vac-input {
  background:#0b111d;
  color:#fff;
  border:1px solid #374151;
  border-radius:6px;
  padding:8px 10px;
  font-size:14px;
  min-height:38px;
}

/* neue, schönere Checkbox-Darstellung */
.vac-field-checkbox-inline {
  min-width:auto;
}

.vac-checkbox-inline {
  display:flex;
  align-items:center;
  gap:8px;

  background:#1f2937;
  border:1px solid #374151;
  border-radius:6px;
  padding:8px 10px;
  font-size:13px;
  color:#fff;
  line-height:1.2;
  height:38px;
}

.vac-checkbox {
  width:16px;
  height:16px;
  accent-color:#b8ff00;
}

/* submit button */
.vac-submit {
  background:#b8ff00;
  color:#000;
  font-weight:600;
  border:0;
  border-radius:8px;
  padding:10px 16px;
  font-size:14px;
  line-height:1;
  cursor:pointer;
  height:38px;
  align-self:flex-end;
  white-space:nowrap;
}

/* Box + Tabelle */
.vac-card-wrapper {
  background:#0b111d;
  border:1px solid #374151;
  border-radius:8px;
  padding:12px 16px;
  color:#fff;
  box-shadow:0 30px 60px rgba(0,0,0,0.6);
}

.vac-card-header {
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}

.vac-card-title {
  color:#fff;
  font-size:14px;
  font-weight:600;
}

/* Tabelle */
.vac-table-wrapper {
  overflow-x:auto;
}

.vac-table {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  min-width:480px;
  color:#fff;
}

.vac-table thead tr {
  background:#1f2937;
  color:#fff;
}

.vac-table th {
  text-align:left;
  padding:8px 10px;
  border-bottom:1px solid #374151;
  font-weight:500;
  font-size:13px;
  color:#b8ff00;
}

.vac-table td {
  padding:8px 10px;
  border-bottom:1px solid #374151;
  color:#fff;
  vertical-align:top;
  font-size:13px;
  line-height:1.4;
}

/* Status-Badge im Status-Spalte */
.vac-status {
  display:inline-block;
  min-width:70px;
  text-align:center;
  font-size:12px;
  line-height:1.4;
  font-weight:600;
  border-radius:4px;
  padding:3px 6px;
  border:1px solid transparent;
}

.status-gruen {
  background:#14532d;
  border-color:#166534;
  color:#b8ff00;
}

.status-rot {
  background:#4c1d1d;
  border-color:#dc2626;
  color:#fff;
}

.status-blau {
  background:#1e3a8a;
  border-color:#3b82f6;
  color:#fff;
}

.status-grau {
  background:#374151;
  border-color:#6b7280;
  color:#9ca3af;
}

/* Storno-Button */
.vac-cancel-btn {
  background:#8b1f1f;
  color:#fff;
  border:0;
  border-radius:4px;
  padding:4px 8px;
  font-size:12px;
  cursor:pointer;
  margin-left:8px;
  white-space:nowrap;
}
.vac-cancel-btn[disabled] {
  opacity:0.5;
  cursor:default;
}

/* =============== */
/* Abwesenheit-Grid */
/* =============== */
#tab-urlaub .abs-grid {
  width: 100%;
  max-width: 1100px;      /* kannst du kleiner/größer machen */
  margin: 10px 0 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;   /* mobil: 1 Spalte */
  align-items: stretch;         /* Items auf volle Zeilenhöhe */
}

@media (min-width: 880px) {
  #tab-urlaub .abs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 gleich breite Spalten */
    column-gap: 20px;
  }
}

/* =============== */
/* Karte */
/* =============== */


#tab-urlaub .card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #d7ffe0;
}

/* =============== */
/* Reihen in der Karte */
/* =============== */
#tab-urlaub .form-row {
  display: grid;
  gap: 12px 14px;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  margin-bottom: 10px;
}
@media (max-width: 640px) {
  #tab-urlaub .form-row {
    grid-template-columns: 1fr;
  }
}

/* Radio-Reihe unter den Datumsfeldern */
#tab-urlaub .radio-row {
  grid-template-columns: 90px 1fr;
  align-items: center;
  margin-bottom: 10px;
}
@media (max-width: 640px) {
  #tab-urlaub .radio-row {
    grid-template-columns: 1fr;
  }
}

/* Felder */
#tab-urlaub .fld {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#tab-urlaub .lbl {
  font-size: 12px;
  color: #9ca3af;
}

#tab-urlaub .inp {
  background: #0b0f14;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  min-height: 42px;
}
#tab-urlaub .inp:focus {
  border-color: #b8ff00;
  box-shadow: 0 0 0 2px rgba(184,255,0,.15);
}

/* Radios schön nebeneinander */
#tab-urlaub .radio-group {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
#tab-urlaub .radio input[type="radio"] {
  width: 16px;
  height: 16px;
  appearance: auto;
  accent-color: #b8ff00;
}

/* Footer immer unten */
#tab-urlaub .card-footer {
  margin-top: auto;             /* drückt Footer nach unten */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

#tab-urlaub .pill {
  background: rgba(0,0,0,.2);
  border: 1px solid #374151;
  border-radius: 999px;
  padding: 5px 16px 6px;
  font-size: 13px;
}

#tab-urlaub .btn {
  background: #b8ff00;
  color: #000;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
}




/* ===== Abwesenheit (Urlaub-Tab) sauber machen ===== */
#tab-urlaub .abs-grid {
  width: 100%;
  max-width: 1100px;
  margin: 12px 0 0;          /* nicht zentrieren */
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr; /* mobil: 1 Spalte */
  align-items: stretch;
}

@media (min-width: 880px) {
  #tab-urlaub .abs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 gleich breite Spalten */
    column-gap: 18px;
  }
}

/* globale .card überschreiben */
#tab-urlaub .card {
  max-width: 558px ;           /* globales 420px weg */
  margin: 0;                 /* globales 8vh auto weg */
  background: #111827;
  border: 1px solid #374151;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  color: #fff;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;              /* beide gleich hoch */
  min-height: 280px;         /* bisschen kleiner als 320 */
}

#tab-urlaub .card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #d7ffe0;
}

/* erste Zeile: Von / Bis */
#tab-urlaub .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  align-items: end;
  margin-bottom: 10px;
}
@media (max-width: 640px) {
  #tab-urlaub .form-row {
    grid-template-columns: 1fr;
  }
}

/* zweite Zeile bei Krank: Radios direkt drunter */
#tab-urlaub .radio-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 10px;
}
#tab-urlaub .radio-row .lbl {
  margin-right: 6px;
}
#tab-urlaub .radio-row label {
  display: flex;
  align-items: center;
  gap: 6px;
}

#tab-urlaub input[type="radio"],
#tab-urlaub input[type="checkbox"] {
  appearance: auto;
  accent-color: #b8ff00;
  width: 16px;
  height: 16px;
}

/* Footer unten halten */
#tab-urlaub .card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

#tab-urlaub .pill {
  background: rgba(0,0,0,.2);
  border: 1px solid #374151;
  border-radius: 999px;
  padding: 5px 16px 6px;
  font-size: 13px;
}

#tab-urlaub .btn {
  background: #b8ff00;
  color: #000;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
}


/* --- Meine Anträge breiter machen (nur im Urlaub-Tab) --- */
#tab-urlaub .vac-card-wrapper {
  max-width: 1150px;
  width: 100%;          /* statt 1082px */
  margin-top: 20px;
}

/* Tabelle soll den Platz ausnutzen */
#tab-urlaub .vac-table-wrapper {
  width: 100%;
}

/* 4. Spalte breiter machen, damit "Grund / Aktion" nicht so gequetscht ist */
#tab-urlaub .vac-table th:nth-child(4),
#tab-urlaub .vac-table td:nth-child(4) {
  min-width: 260px;
}

/* Mobil: lieber scrollen statt alles zu zerdrücken */
@media (max-width: 1024px) {
  #tab-urlaub .vac-card-wrapper {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  #tab-urlaub .vac-table {
    min-width: 540px;   /* etwas breiter, damit Status + Grund lesbar sind */
  }
  #btnBackMain{
	  display:none;
	  
  }
#btnLogout{
	display:none;
}
}

/* =========================
   BASIS / FARBEN
========================= */

.tab { display: none; }
.tab.active { display: block; }

/* =========================
   TOPBAR / NAV
========================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #111827;
  padding: 10px 14px;
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar .brand {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

/* Desktop-Menü */
.main-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav button {
  background: #b8ff00;
  color: #000;
  border: 0;
  border-radius: 14px;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
}

.main-nav button.active {
  outline: 2px solid #d1ff00;
}

#btnLogout {
  background: #b8ff00;
  color: #000;
  border: 0;
  border-radius: 14px;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
}

/* =========================
   HAMBURGER (Basis, erstmal aus)
========================= */
.hamburger,
#hamburgerBtn {
  display: none;               /* Desktop: aus */
  background: transparent;
  border: 0;
  width: 34px;
  height: 28px;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.hamburger span,
#hamburgerBtn span {
  display: block;
  width: 22px;
  height: 3px;
  background: #c8ff02;
  border-radius: 9999px;
}

/* =========================
   MOBILES PANEL (Basis)
========================= */
.mobile-menu {
  display: none;               /* Desktop: gar nicht zeigen */
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.96);
  padding: 70px 20px 20px 20px;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.mobile-menu.show {
  display: flex;
}

.mobile-menu button {
  background: #c2ff00;
  color: #000;
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 600;
  text-align: left;
}

.mobile-menu #mobileLogout {
  margin-top: auto;
  background: #f87171;
  color: #fff;
}

.mobile-menu #mobileClose {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* =========================
   BREAKPOINTS
========================= */

/* ======= DESKTOP / BREIT ======= */
@media (min-width: 1025px) {
  .main-nav {
    display: flex !important;
  }
  #btnLogout {
    display: inline-flex !important;
  }
  .hamburger,
  #hamburgerBtn,
  .mobile-menu {
    display: none !important;
  }
}

/* =========================
   BADGE
========================= */
/* .nav-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.6);
  display: none;
} */

@media (max-width: 1024px) {
  .hamburgerBtn,
  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 34px;
    height: 28px;
  }

  /* die drei Striche */
  .hamburgerBtn span,
  .hamburger span {
    display: block !important;
    width: 26px !important;
    height: 3px !important;
    background: #c8ff02 !important;   /* NEON */
    border-radius: 9999px !important;
	
  }
}

.mobileLogout mobile-logout{
  background-color: #ca4343 !important;
  color: white;
}

/* --- HAUPTMENÜ / Tiles --- */
.tiles-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:14px;
  margin-top:12px;
}
.tile{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  aspect-ratio:1/1;
  background:#111827;
  border:1px solid #374151;
  border-radius:14px;
  text-decoration:none;
  color:#fff;
  box-shadow:0 20px 40px rgba(0,0,0,.5);
  transition:transform .1s ease, box-shadow .1s ease, border-color .1s ease;
  cursor:pointer;
}
.tile:hover{
  transform:translateY(-2px);
  box-shadow:0 30px 70px rgba(0,0,0,.6);
  border-color:#b8ff00;
}
.tile-icon{ width:min(72px,28%); height:min(72px,28%); }
.tile-icon svg{ width:100%; height:100%; fill:var(--accent); }
.tile-title{ font-weight:700; font-size:14px; text-align:center; color:#fff; }
.tile-badge{
  position:absolute; top:8px; right:8px;
  background:#22c55e; color:#000; border-radius:999px;
  padding:3px 8px; font-size:11px; font-weight:800;
  box-shadow:0 6px 16px rgba(0,0,0,.5);
}




/* Tiles für Hauptmenü */
.tiles-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:14px; margin-top:12px; }
.tile{ position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  aspect-ratio:1/1; background:#111827; border:1px solid #374151; border-radius:14px; text-decoration:none; color:#fff;
  box-shadow:0 20px 40px rgba(0,0,0,.5); transition:transform .1s ease, box-shadow .1s ease, border-color .1s ease; cursor:pointer; }
.tile:hover{ transform:translateY(-2px); box-shadow:0 30px 70px rgba(0,0,0,.6); border-color:#b8ff00; }
.tile-icon{ width:min(72px,28%); height:min(72px,28%); }
.tile-icon svg{ width:100%; height:100%; fill:var(--accent); }
.tile-title{ font-weight:700; font-size:14px; text-align:center; color:#fff; }
.tile-badge{ position:absolute; top:8px; right:8px; background:#22c55e; color:#000; border-radius:999px; padding:3px 8px; font-size:11px; font-weight:800; box-shadow:0 6px 16px rgba(0,0,0,.5); }



/* Raster für Hauptkacheln */
.tiles-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px,1fr));
  gap:12px;
}

/* Untermenüraster */
.tiles-subgrid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px,1fr));
  gap:12px;
  margin-top:8px;
}

/* Kachel-Optik (an deinen Stil angepasst) */
.tile{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  background:#111827;
  border:1px solid #374151;
  border-radius:10px;
  color:#fff;
  text-decoration:none;
  transition:transform .08s ease, box-shadow .1s ease, border-color .15s ease;
}
.tile:hover{ transform:translateY(-1px); border-color:#4b5563; box-shadow:0 10px 28px rgba(0,0,0,.45); }
.tile-icon{ width:26px; height:26px; display:grid; place-items:center; }
.tile-icon svg{ width:24px; height:24px; fill:#b8ff00; }
.tile-title{ font-weight:600; }

/* Breite Info-Kachel */
.tile--wide{ grid-column:1 / -1; padding:14px; }
.info-wide .info-row{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px,1fr));
  gap:12px;
}
.info-kpi{
  background:#0f172a;
  border:1px solid #2a303c;
  border-radius:8px;
  padding:10px;
}
.kpi-label{ font-size:12px; color:#9ca3af; letter-spacing:.02em; }
.kpi-value{ font-size:18px; font-weight:700; color:#b8ff00; margin-top:4px; }
.info-meta{ margin-top:10px; font-size:13px; color:#9ca3af; }

/* versteckt jedes Element mit hidden-Attribut zuverlässig */
[hidden]{ display:none !important; }
.btn-back-main{
  background:#0f172a; border:1px solid #334155; color:#b8ff00;
  padding:8px 12px; border-radius:8px; font-weight:600; cursor:pointer;
}
.subgrid-header{ margin:0 0 12px 0; }


/* Kachel-Iconfläche */
.tiles-grid .tile .tile-icon{
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #1f2937;
  margin-bottom: 8px;
}

/* FA Icons in der Kachel */
.tiles-grid .tile .tile-icon i{
  font-size: 24px;          /* Icongröße */
  line-height: 1;           /* kein Versatz */
  color: #b8ff00;           /* deine CI-Akzentfarbe */
}

/* (falls noch SVGs im Fallback) */
.tiles-grid .tile .tile-icon svg{
  width: 24px; height: 24px; fill: #b8ff00;
}


/* Font-Awesome Icons in Kacheln */
.tiles-grid .tile .tile-icon i{
  font-size:22px;            /* Icon-Größe */
  line-height:1;
  color:#b8ff00;             /* dein Neon-Grün */
}
/* falls irgendwo ein Platzhalter-Pseudo-Element existiert, abschalten */
.tiles-grid .tile .tile-icon::before{ content:none; }


/* ===== Reinigung: Form-UI ===== */
#cleanForm input[type="text"],
#cleanForm input[type="date"],
#cleanForm input[type="number"],
#cleanForm select,
#cleanForm textarea {
  background:#0f172a;
  color:#fff;
  border:1px solid #4b5563;
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
  width:100%;
  outline:none;
}
#cleanForm textarea {
  min-height:100px;
  resize:vertical;
}

/* Schöne Checkboxen */
.chk {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  color:#fff;
  user-select:none;
}
.chk input[type="checkbox"]{
  appearance:none;
  width:20px; height:20px;
  border:1.5px solid #4b5563;
  background:#0b1220;
  border-radius:6px;
  display:grid; place-content:center;
  transition:all .15s ease;
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.25);
}
.chk input[type="checkbox"]::after{
  content:"";
  width:12px; height:12px;
  border-radius:4px;
  background:#b8ff00;
  box-shadow:0 0 10px #b8ff00aa;
  transform:scale(0);
  transition:transform .12s ease;
}
.chk input[type="checkbox"]:checked::after{ transform:scale(1); }
.chk input[type="checkbox"]:focus{ outline:2px solid #b8ff0070; }

/* Tabellen-Highlight für So/Feiertag (nur optisch) */
#cleanTable tbody tr.is-special { background:rgba(184,255,0,0.05); }

/* ===== Buttons in der Top-Navigation (inkl. Link) ==================================================================BUTTONS OBEN */
.main-nav button,
.main-nav a.btn {
  background:#1f2937;
  color:#fff;
  border:1px solid #4b5563;
  border-radius:999px;
  padding:8px 12px;
  font-weight:700;
  font-size:13px;
  display:none;
  align-items:center;
  gap:8px;
  cursor:pointer;
}
.main-nav button:hover,
.main-nav a.btn:hover { border-color:#6b7280; }

.main-nav button.active { background:#b8ff00; color:#000; border-color:transparent; }

/* kleine Icon-Bubble vor den Kachel-Buttons (optional) */
.main-nav i { font-size:14px; }

.btn-back{
  display:inline-flex; align-items:center; gap:.5rem;
  background:#b8ff00; color:#000; border:0; border-radius:9999px;
  padding:8px 12px; font-weight:700; text-decoration:none;
  box-shadow:0 8px 24px rgba(184,255,0,.15);
}
.btn-back:hover{ filter:brightness(.95); }
.btn-back i{ font-size:14px; }


.table-card{
  background:#111827; border:1px solid #374151; border-radius:12px;
  overflow:auto; box-shadow:0 30px 80px -10px rgba(0,0,0,.65);
}
.nice-table{
  width:100%; border-collapse:separate; border-spacing:0; min-width:880px;
  font-size:14px; color:#fff;
}
.nice-table thead th{
  position:sticky; top:0; background:#0f172a; color:#b8ff00;
  text-align:left; padding:10px 12px; border-bottom:1px solid #334155; z-index:1;
}
.nice-table tbody td{ padding:10px 12px; border-bottom:1px solid #1f2937; }
.nice-table tbody tr:nth-child(odd){ background:rgba(255,255,255,.02); }
.nice-table tbody tr:hover{ background:rgba(184,255,0,.04); }
.nice-table td.num{ text-align:right; font-variant-numeric:tabular-nums; }

.chip{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:2px 8px; border-radius:9999px; font-size:12px; line-height:1.6;
  border:1px solid transparent;
}
.chip.ok { background:#042d1d; color:#34d399; border-color:#065f46; }
.chip.no { background:#3a0d0d; color:#f87171; border-color:#7f1d1d; }
.chip.badge{ background:#1f2937; color:#b8ff00; border-color:#4b5563; }

.nice-table tr.is-sunday td{ background:rgba(184,255,0,.06); }

/* Cleaning list table */
#cleanListTable th, #cleanListTable td { padding: 10px 12px; }
#cleanListTable th.center, #cleanListTable td.center { text-align: center; }
#cleanListTable th.num,    #cleanListTable td.num    { text-align: center; }

#cleanListTable th.col-name   { min-width: 220px; }
#cleanListTable th.col-date   { width: 140px; }
#cleanListTable th.col-rooms, 
#cleanListTable th.col-sofa, 
#cleanListTable th.col-205, 
#cleanListTable th.col-maw    { width: 110px; }

#cleanListTable td .row-edit {
  background: transparent; border: 0; cursor: pointer;
  color: #b8ff00; margin-right: 8px; font-size: 14px;
}
#cleanListTable td .row-edit:hover { filter: brightness(1.2); }

/* Chips */
.chip { display:inline-flex; align-items:center; gap:6px;
  border:1px solid #2f3b4a; border-radius:999px; padding:4px 8px; font-size:12px; }
.chip.ok { border-color:#14532d; background:#052e1a; color:#4ade80; }
.chip.no { opacity: .7; }

/* MaW Chip – Minuten größer */
.chip.maw-chip { font-size: 12px; }
.chip.maw-chip .min { font-size: 14px; font-weight: 700; margin-left: 1px; }


/* Reinigungs-Übersicht */
#cleanListTable td.num { text-align:center; width:1%; white-space:nowrap; }
#cleanListTable th:nth-child(3), /* Zimmer ohne 205 */
#cleanListTable th:nth-child(5)  /* Schlafcouch/Babybetten */ { width: 110px; }

#cleanListTable td.empcell { white-space:nowrap; }
.icon-btn {
  background:#1f2937; border:1px solid #4b5563; color:#b8ff00;
  width:28px;height:28px;border-radius:6px; display:inline-flex;align-items:center;justify-content:center;
  margin-right:6px; cursor:pointer;
}
.icon-btn:hover { filter:brightness(1.05); }

.chip.badge { font-weight:600; }
.chip.badge i { margin-right:6px; }
.mawcell .chip.badge { font-size:13px; }
.mawcell .chip.badge sup { font-size:11px; }

/* Checkbox-Chips (Ja/Nein) – schon vorhanden, nur sicherstellen */
.chip { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; border:1px solid #2f3b51; background:#0d1422; color:#dbe2f1; }
.chip.ok { border-color:#2ea043; background:#0f2a1a; color:#b8ff00; }
.chip.no { border-color:#5b1d1d; background:#2a0f0f; color:#ffb3b3; }


.chip.badge.big { font-size:12.5px; padding:4px 8px; }
.fld > span { display:block; color:#9ca3af; font-size:12px; margin:0 0 4px; }
.inp {
  background:#0f172a; color:#fff; border:1px solid #4b5563;
  border-radius:6px; padding:6px 8px; width:100%; font-size:13px;
}
.inp.center { text-align:center; }
.btn {
  background:#1f2937; color:#fff; border:1px solid #4b5563;
  border-radius:6px; padding:6px 10px; cursor:pointer;
}
.btn-primary { background:#b8ff00; color:#000; border-color:transparent; font-weight:600; }


/* --- Monatsauswertung (Cards) --- */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
}
.stat-card{
  background:#111827;
  border:1px solid #374151;
  border-radius:12px;
  padding:14px 14px 12px;
  box-shadow:0 20px 60px -12px rgba(0,0,0,.6);
  position:relative;
}
.stat-card:before{
  content:"";
  position:absolute; inset:0 0 auto 0; height:3px;
  background:linear-gradient(90deg,#b8ff00,transparent);
  border-top-left-radius:12px; border-top-right-radius:12px;
  opacity:.8;
}
.stat-head{
  display:flex; align-items:center; gap:10px; color:#9ca3af; font-size:13px; margin-bottom:8px;
}
.stat-head i{ color:#b8ff00; font-size:16px; }
.stat-title{ font-weight:700; color:#e5e7eb; }
.stat-value{
  font-size:32px; line-height:1; font-weight:800; color:#b8ff00; letter-spacing:.5px;
}
.stat-sub{ margin-top:8px; display:flex; gap:8px; flex-wrap:wrap; }
.pill{
  display:inline-flex; align-items:center; gap:6px;
  background:#1f2937; border:1px solid #4b5563; color:#e5e7eb;
  border-radius:999px; padding:4px 8px; font-size:12px; font-weight:600;
}
.pill i{ font-size:12px; opacity:.9; }
.pill.so{ border-color:#f59e0b55; color:#f59e0b; }
.pill.ft{ border-color:#60a5fa55; color:#60a5fa; }

.stat-note{
  margin-top:8px; color:#9ca3af; font-size:12px;
}

/* Export-Button hübscher */
#btnExport{
  display:inline-flex; align-items:center; gap:8px;
  background:#b8ff00; color:#000; border:0; border-radius:999px;
  padding:10px 14px; font-weight:700; cursor:pointer;
  box-shadow:0 10px 30px -8px #b8ff00b0;
}
#btnExport i{ font-size:14px; }


/* #btnBackMain {
  margin-left: 700px;
} */


/* ===== Security Status – Radios wie Neon-Checkboxen ===== */
#secStatusWrap{
  display:flex; gap:16px; align-items:center; flex-wrap:wrap;
  --brand:#B7FF00;        /* Neon-Grün */
  --box:#0f1720;          /* dunkler Kasten */
  --border:#2a3642;       /* Rahmenfarbe */
  --focus:#5bcbff;        /* Fokusglow */
  --text:#e6eef6;
}
#secStatusWrap label{
  position:relative;
  padding-left:36px;              /* Platz für das Kästchen */
  line-height:22px;
  color:var(--text);
  user-select:none;
  margin-right:0 !important;      /* Inline-Margins überschreiben */
  cursor:pointer;
}

/* das eigentliche <input> unsichtbar, aber fokussierbar */
#secStatusWrap input[type="radio"]{
  position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:22px; height:22px; opacity:0;
}

/* Kasten */
#secStatusWrap label::before{
  content:"";
  position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:22px; height:22px; border-radius:8px;
  background:linear-gradient(180deg,#0f1720,#111a24);
  border:1.5px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 2px 8px rgba(0,0,0,.45);
  transition:border-color .2s, box-shadow .2s, transform .08s;
}

/* inneres grünes „Licht“ */
#secStatusWrap label::after{
  content:"";
  position:absolute; left:6px; top:50%; transform:translateY(-50%) scale(0);
  width:10px; height:10px; border-radius:3px;
  background:var(--brand);
  box-shadow:0 0 10px color-mix(in srgb, var(--brand), transparent 60%);
  transition:transform .15s ease-in-out;
}

/* Hover/Active/Focus */
#secStatusWrap label:hover::before{ border-color:color-mix(in srgb, var(--brand), #fff 20%); }
#secStatusWrap label:has(input:active)::before{ transform:translateY(-50%) scale(.97); }
#secStatusWrap label:has(input:focus-visible)::before{
  outline:2px solid var(--focus); outline-offset:2px;
}

/* Checked-State */
#secStatusWrap label:has(input:checked)::before{
  border-color:var(--brand);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--brand), transparent 75%),
    inset 0 1px 0 rgba(255,255,255,.06),
    0 2px 8px rgba(0,0,0,.45);
}
#secStatusWrap label:has(input:checked)::after{ transform:translateY(-50%) scale(1); }

/* Disabled (falls genutzt) */
#secStatusWrap label:has(input:disabled){ opacity:.55; cursor:not-allowed; }


.tile-menu{
  position:absolute; inset:auto auto 0 0; /* wird per JS gesetzt */
  background:#0f1722; border:1px solid #263244; border-radius:12px;
  padding:6px; box-shadow:0 14px 50px rgba(0,0,0,.6); z-index:9999;
}
.tile-menu a{
  display:flex; align-items:center; gap:8px; padding:8px 12px;
  border-radius:8px; color:#fff; text-decoration:none; white-space:nowrap;
}
.tile-menu a:hover{ background:#141f2e; }


/* Collapsible Box */
.collapsible {
  margin-top: 20px;
  background: #0f1720;
  border-radius: 14px;
  border: 2px solid #1f2a36;
}

.collapsible-header {
  padding: 14px 16px;
  cursor: pointer;
  font-size: 1.2rem;
  color: #d9e6f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.collapsible-header .arrow {
  transition: transform 0.25s ease;
}

.collapsible.open .collapsible-header .arrow {
  transform: rotate(180deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  padding: 0 16px;
}

/* Beim Öffnen */
.collapsible.open .collapsible-content {
  max-height: 800px; /* genug für deine Karten */
  padding-bottom: 16px;
}

/* Status-Karten */
.onlineStatusGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.statusCard {
  background: #12202c;
  padding: 14px;
  border-radius: 16px;
  border: 2px solid #273644;
  color: #e4e4e4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: 0.2s ease-in-out;
}

.status-online {
  border-color: #39ff14;
  box-shadow: 0 0 12px rgba(57,255,20,0.5);
}

.status-remember {
  border-color: #ffe15a;
  box-shadow: 0 0 12px rgba(255,225,90,0.45);
}

.status-offline {
  border-color: #6f6f6f;
  opacity: 0.65;
}

/* =========================================
   FOTO-VORSCHAU – kleinere Thumbnails
========================================= */

.foto-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* einzelne Kachel */
.foto-thumb {
  position: relative;
  width: 140px;        /* Basisgröße (mobil) */
  max-width: 40vw;     /* nicht breiter als 40% vom Viewport */
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .8);
}

/* Bild auf die Kachel einpassen */
.foto-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* schneidet ggf. etwas ab, behält aber Format */
}

/* X-Button oben rechts */
.foto-thumb .removeFoto {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;

  width: 22px;
  height: 22px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: none;
  cursor: pointer;

  background: #b8ff00;
  color: #000;
  font-weight: 700;
  line-height: 1;

  box-shadow: 0 0 8px rgba(0,0,0,.8);
}

.foto-thumb .removeFoto:hover {
  transform: scale(1.05);
}

/* Auf größeren Screens etwas größer */
@media (min-width: 900px) {
  .foto-thumb {
    width: 180px;
    height: 110px;
  }
}

/* =========================================
   SIGNATUR-FELDER – weißer Hintergrund
========================================= */

.sig-canvas {
  display: block;
  width: 100%;
  max-width: 360px;
  height: 140px;
  background: #ffffff;             /* weißer Hintergrund */
  border-radius: 10px;
  border: 1px solid #4b5563;
  box-shadow: 0 18px 45px -12px rgba(0, 0, 0, .9);
  touch-action: none; 
}

/* Clear-Button direkt unter dem Canvas */
.sig-canvas + button {
  margin-top: 6px;
}

.clean-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.96); /* dunkles Overlay wie deine App */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.clean-success-card {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 16px;
  padding: 24px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9);
}

.clean-success-card i {
  font-size: 40px;
  margin-bottom: 12px;
  color: #b8ff00; /* DM-Neon */
}

.clean-success-card h2 {
  margin: 0 0 8px 0;
  color: #fff;
}

.clean-success-card p {
  margin: 2px 0;
  color: #e5e7eb;
}

.clean-success-card p.small {
  margin-top: 10px;
  font-size: 13px;
  color: #9ca3af;
}


/* Allgemeiner Textarea-Style für Arbeitsnachweis & Reinigung */
.page-container .card textarea,
#cleanForm textarea {
  width: 100%;
  min-height: 90px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #4b5563;
  background: #0b1120;            /* dunkles Blau/Schwarz wie der Rest */
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.4;
  resize: vertical;               /* nur hoch/runter */
  box-shadow: 0 0 0 0 rgba(184,255,0,0);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/* Speziell Material-Textarea im Arbeitsnachweis */
#an_mat_wrap textarea,
#an_mat_note {
  width: 100%;
  min-height: 90px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #4b5563;
  background: #0b1120;          /* dunkler Hintergrund */
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.4;
  resize: vertical;
  box-shadow: 0 0 0 0 rgba(184,255,0,0);
  transition: border-color 0.15s ease,
              box-shadow 0.15s ease,
              background 0.15s ease;
}

#an_mat_wrap textarea:focus,
#an_mat_note:focus {
  outline: none;
  border-color: #b8ff00;        /* dein Neon-Grün */
  box-shadow: 0 0 0 1px #b8ff00,
              0 0 14px rgba(184,255,0,.35);
  background: #020617;
}

#an_mat_wrap textarea::placeholder,
#an_mat_note::placeholder {
  color: #6b7280;
  font-style: italic;
}
/* Speziell Material-Textarea im Arbeitsnachweis */
#an_msg_admin_wrap textarea,
#an_msg_admin_note {
  width: 100%;
  min-height: 90px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #4b5563;
  background: #0b1120;          /* dunkler Hintergrund */
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.4;
  resize: vertical;
  box-shadow: 0 0 0 0 rgba(184,255,0,0);
  transition: border-color 0.15s ease,
              box-shadow 0.15s ease,
              background 0.15s ease;
}

#an_msg_admin_wrap textarea:focus,
#an_msg_admin_note:focus {
  outline: none;
  border-color: #b8ff00;        /* dein Neon-Grün */
  box-shadow: 0 0 0 1px #b8ff00,
              0 0 14px rgba(184,255,0,.35);
  background: #020617;
}

#an_msg_admin_wrap textarea::placeholder,
#an_msg_admin_note::placeholder {
  color: #6b7280;
  font-style: italic;
}

/* Speziell Material-Textarea im Arbeitsnachweis */
#an_action_note_wrap textarea,
#an_action_note {
  width: 100%;
  min-height: 90px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #4b5563;
  background: #0b1120;          /* dunkler Hintergrund */
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.4;
  resize: vertical;
  box-shadow: 0 0 0 0 rgba(184,255,0,0);
  transition: border-color 0.15s ease,
              box-shadow 0.15s ease,
              background 0.15s ease;
}

#an_action_note_wrap textarea:focus,
#an_action_note:focus {
  outline: none;
  border-color: #b8ff00;        /* dein Neon-Grün */
  box-shadow: 0 0 0 1px #b8ff00,
              0 0 14px rgba(184,255,0,.35);
  background: #020617;
}

#an_action_note_wraptextarea::placeholder,
#an_action_note::placeholder {
  color: #6b7280;
  font-style: italic;
}


/* Urlaub: "Halber Tag" Checkbox wie die anderen (.chk) */
#tab-urlaub .fld.fld--check.chk {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
  color: #fff;
}

/* Kasten-Stil wie bei .chk, aber gezielt für #vacHalf */
#tab-urlaub #vacHalf {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid #4b5563;
  background: #0b1220;
  border-radius: 6px;
  display: grid;
  place-content: center;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25);
  transition: all .15s ease;
}

#tab-urlaub #vacHalf::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #b8ff00;
  box-shadow: 0 0 10px #b8ff00aa;
  transform: scale(0);
  transition: transform .12s ease;
}

#tab-urlaub #vacHalf:checked::after {
  transform: scale(1);
}

#tab-urlaub #vacHalf:focus-visible {
  outline: 2px solid #b8ff0070;
  outline-offset: 2px;
}
