/* AKBN Mitarbeiterportal – Gestaltung
   Farben aus Briefpapier und Logo: Rot #B50202, Grau #656565.
   Ziel: gut lesbar, große Bedienflächen, barrierearm (WCAG 2.1 AA). */

:root {
  --rot: #b50202;
  --rot-dunkel: #8f0101;
  --rot-hell: #fbeaea;
  --grau: #656565;
  --text: #1d1d1f;
  --text-leise: #575757;
  --linie: #d9d6d2;
  --flaeche: #ffffff;
  --hintergrund: #f6f4f1;
  --gut: #1f6f3a;
  --gut-hell: #e6f3ea;
  --warnung: #8a5300;
  --warnung-hell: #fdf1dc;
  --info-hell: #eaf0f7;
  --fokus: #0b57d0;
  --radius: 10px;
  --schatten: 0 1px 2px rgb(0 0 0 / 6%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --rot: #ff6b6b;
    --rot-dunkel: #ff8a8a;
    --rot-hell: #3a1a1a;
    --grau: #a8a8a8;
    --text: #f2f2f2;
    --text-leise: #c4c4c4;
    --linie: #3d3a37;
    --flaeche: #1f1d1b;
    --hintergrund: #151413;
    --gut: #7fd69a;
    --gut-hell: #18301f;
    --warnung: #f2c069;
    --warnung-hell: #33280f;
    --info-hell: #1a2533;
    --fokus: #8ab4f8;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 106.25%; } /* 17px Grundschrift */

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--hintergrund);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--rot); text-underline-offset: 2px; }
a:hover { color: var(--rot-dunkel); }

:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.springen { position: absolute; left: -999px; top: 0; background: var(--flaeche); padding: .5rem 1rem; z-index: 10; }
.springen:focus { left: 1rem; }

/* ---------------------------------------------------------------- Kopf */
.kopf {
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  max-width: 80rem; margin: 0 auto; padding: .6rem 1rem;
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
}
.marke { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text); }
.marke img { height: 44px; width: auto; }
.marke span { font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.kopf-aktionen { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.kopf-name { color: var(--text-leise); font-size: .9rem; }
.knopf-start { min-height: 2.4rem; }
.testsystem-band {
  background: repeating-linear-gradient(45deg, #ffd54f, #ffd54f 12px, #ffe082 12px, #ffe082 24px);
  color: #3d2e00; text-align: center; font-weight: 700; padding: .3rem; font-size: .9rem;
}
.testansicht-band { background: #1d3557; color: #fff; display: flex; gap: .75rem; align-items: center; justify-content: center; flex-wrap: wrap; padding: .4rem 1rem; }
.testansicht-band button { min-height: 2.2rem; padding: .3rem .8rem; background: #fff; color: #1d3557; border-color: #fff; }

/* ---------------------------------------------------------------- Inhalt */
main { max-width: 80rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
main.breit { max-width: none; }
/* Lange Textzeilen bleiben lesbar, auch wenn die Seite breiter ist. */
main > p, .eintrag-text, .luecke-notiz, .karte > p { max-width: 75ch; }
.schmal { max-width: 30rem; margin: 2rem auto; padding: 0 1rem 3rem; }

h1 { font-size: 1.6rem; line-height: 1.25; margin: .25rem 0 1rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
p { margin: 0 0 1rem; }
.leise { color: var(--text-leise); }
.klein { font-size: .9rem; }

.brotkrumen { font-size: .9rem; margin-bottom: .5rem; }
.brotkrumen a { color: var(--text-leise); }

.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--schatten);
  margin-bottom: 1rem;
}
.karte > :last-child { margin-bottom: 0; }

.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }

/* Kacheln der Startseite */
.kachel {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1rem; text-decoration: none; color: var(--text); min-height: 5.5rem;
  box-shadow: var(--schatten); position: relative;
}
.kachel:hover { border-color: var(--rot); color: var(--text); }
/* Hervorgehobene Kachel (Büro-Cockpit): volle Breite, kräftig */
.kachel.gross { background: var(--rot); border-color: var(--rot); color: #fff; padding: 1.3rem 1.4rem; margin-bottom: 1.25rem; align-items: center; min-height: 0; }
.kachel.gross:hover { background: var(--rot-dunkel); color: #fff; }
.kachel.gross strong { font-size: 1.35rem; }
.kachel.gross span.beschreibung { color: #fde8e8; }
.kachel.gross .symbol { background: #fff; width: 3.2rem; height: 3.2rem; }
.kachel.gross .symbol svg { width: 1.8rem; height: 1.8rem; }
.kachel.gross .zahl { position: static; margin-left: auto; flex: none; white-space: nowrap; background: #fff; color: var(--rot); padding: 0 .7rem; height: 2rem; border-radius: 1rem; }
.kachel .symbol { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--rot-hell);
  color: var(--rot); display: grid; place-items: center; }
.kachel .symbol svg { width: 1.4rem; height: 1.4rem; }
.kachel strong { display: block; font-size: 1.05rem; }
.kachel span.beschreibung { color: var(--text-leise); font-size: .9rem; line-height: 1.4; display: block; }
.zahl {
  position: absolute; top: .6rem; right: .6rem; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem;
  border-radius: 1rem; background: var(--rot); color: #fff; font-weight: 700; font-size: .85rem;
  display: grid; place-items: center;
}

/* Zu erledigen */
.erledigen { list-style: none; padding: 0; margin: 0; }
.erledigen li { border-top: 1px solid var(--linie); }
.erledigen li:first-child { border-top: 0; }
.erledigen a { display: flex; gap: .75rem; align-items: center; padding: .8rem .25rem; text-decoration: none; color: var(--text); }
.erledigen a:hover { color: var(--rot); }
.erledigen .punkt { flex: none; width: .7rem; height: .7rem; border-radius: 50%; background: var(--grau); }
.erledigen .wichtig .punkt { background: var(--rot); }
.erledigen .pfeil { margin-left: auto; color: var(--text-leise); }

/* ---------------------------------------------------------------- Formulare */
.feld { margin-bottom: 1.1rem; }
.feld > label, .feld > .label { display: block; font-weight: 600; margin-bottom: .3rem; }
.feld .hilfe { color: var(--text-leise); font-size: .9rem; margin-top: .25rem; }
.feld .fehler { color: var(--rot); font-weight: 600; font-size: .95rem; margin-top: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=search],
input[type=number], input[type=file], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--flaeche);
  border: 1.5px solid #8c8883; border-radius: 8px; padding: .65rem .75rem; min-height: 2.9rem;
}
input[aria-invalid=true], select[aria-invalid=true] { border-color: var(--rot); }
.code-eingabe { font-size: 1.6rem; letter-spacing: .25em; text-align: center; font-variant-numeric: tabular-nums; }
.ankreuzen { display: flex; gap: .6rem; align-items: flex-start; }
.ankreuzen input { width: 1.35rem; height: 1.35rem; margin-top: .2rem; flex: none; }
.ankreuzen label { font-weight: 400; margin: 0; }
.auswahlliste { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.auswahlliste label { display: flex; gap: .6rem; align-items: center; font-weight: 400; }
.auswahlliste input { width: 1.25rem; height: 1.25rem; }
.formular-fehler { background: var(--rot-hell); border-left: 4px solid var(--rot); padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
legend { font-weight: 600; margin-bottom: .3rem; padding: 0; }
fieldset[disabled] { opacity: .7; }

/* ---------------------------------------------------------------- Knöpfe */
.knopf, button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  border-radius: 8px; padding: .6rem 1.1rem; min-height: 2.9rem;
  border: 1.5px solid var(--rot); background: var(--rot); color: #fff;
}
.knopf:hover, button:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: #fff; }
.knopf.zweitrangig, button.zweitrangig { background: transparent; color: var(--rot); }
.knopf.zweitrangig:hover, button.zweitrangig:hover { background: var(--rot-hell); color: var(--rot-dunkel); }
.knopf.leise, button.leise { background: transparent; color: var(--text); border-color: var(--linie); }
.knopf.leise:hover, button.leise:hover { background: var(--hintergrund); color: var(--text); }
.knopf.klein, button.klein { min-height: 2.2rem; padding: .3rem .7rem; font-size: .9rem; }
.knopf.breit, button.breit { width: 100%; }
/* Gekürzter Text mit vollem Inhalt beim Drüberfahren (title) */
.vorschau { cursor: help; text-decoration: underline dotted; text-underline-offset: 2px; }
.knopfreihe { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
form.inline { display: inline; }

/* ---------------------------------------------------------------- Meldungen */
.meldungen { list-style: none; padding: 0; margin: 0 0 1rem; }
.meldung { padding: .8rem 1rem; border-radius: 8px; margin-bottom: .5rem; border-left: 4px solid var(--grau); background: var(--info-hell); }
.meldung.success { border-color: var(--gut); background: var(--gut-hell); }
.meldung.warning { border-color: var(--warnung); background: var(--warnung-hell); }
.meldung.error { border-color: var(--rot); background: var(--rot-hell); }
.meldung form.inline { margin-left: .5rem; }

.hinweis { background: var(--info-hell); border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; }
.hinweis.warnung { background: var(--warnung-hell); }

.etikett { display: inline-block; font-size: .8rem; font-weight: 600; padding: .1rem .5rem; border-radius: 1rem; background: var(--hintergrund); border: 1px solid var(--linie); white-space: nowrap; }
.etikett.gut { background: var(--gut-hell); border-color: transparent; color: var(--gut); }
.etikett.warnung { background: var(--warnung-hell); border-color: transparent; color: var(--warnung); }
.etikett.rot { background: var(--rot-hell); border-color: transparent; color: var(--rot); }

/* ---------------------------------------------------------------- Tabellen & Listen */
.tabelle-huelle { overflow-x: auto; position: relative; } /* hält auch .sr-only-Zellen in der Hülle */
table { width: 100%; border-collapse: collapse; background: var(--flaeche); }
th, td { text-align: left; padding: .6rem .6rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: .9rem; color: var(--text-leise); font-weight: 600; }
tr.fehler td { background: var(--rot-hell); }

dl.daten { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: .4rem 1rem; margin: 0; }
dl.daten dt { color: var(--text-leise); }
dl.daten dd { margin: 0; }

.filter { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filter .feld { margin: 0; flex: 1 1 10rem; }
.seiten { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }

.kopfzeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.kopfzeile h1 { margin-bottom: .5rem; }

/* Einrichtung */
.schritte { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .9rem; }
.schritte li { flex: 1; text-align: center; padding: .35rem; border-radius: 6px; background: var(--hintergrund); color: var(--text-leise); }
.schritte li.aktiv { background: var(--rot); color: #fff; font-weight: 600; }
.qr { background: #fff; padding: .75rem; border-radius: 8px; width: min(16rem, 100%); margin: 0 auto 1rem; }
.qr svg { width: 100%; height: auto; display: block; }
.geheimnis { font-family: ui-monospace, Consolas, monospace; font-size: 1rem; word-break: break-all; background: var(--hintergrund); padding: .5rem .75rem; border-radius: 6px; }
.codes { columns: 2; font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; list-style: none; padding: 0; }
.codes li { padding: .2rem 0; }

footer.fuss { text-align: center; color: var(--text-leise); font-size: .85rem; padding: 2rem 1rem; }

svg.icon { width: 1.2em; height: 1.2em; vertical-align: -.2em; }

@media (max-width: 40rem) {
  .marke span { display: none; }
  h1 { font-size: 1.4rem; }
  dl.daten { grid-template-columns: 1fr; }
  dl.daten dt { margin-top: .5rem; }
  .verbergen-schmal { display: none; }
}

/* Anwesenheitsliste zum Unterschreiben */
.anwesenheitsliste { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.anwesenheitsliste th, .anwesenheitsliste td { border: 1px solid #000; padding: .4rem .5rem; height: 2.4rem; text-align: left; }
.anwesenheitsliste .nr { width: 3rem; text-align: right; }
.anwesenheitsliste th:last-child { width: 45%; }
.unterschriftzeile { margin-top: 2.5rem; display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.unterschriftzeile .linie { display: inline-block; flex: 1 1 10rem; border-bottom: 1px solid #000; min-height: 1.5rem; }
@media print {
  .anwesenheitsliste tr { break-inside: avoid; }
  .anwesenheitsliste thead { display: table-header-group; }
}

@media print {
  .kopf, footer, .knopfreihe, .nicht-drucken { display: none !important; }
  body { background: #fff; }
  .karte { border: 0; box-shadow: none; }
}

/* Hilfsklassen (statt Inline-Styles – die Sicherheitsrichtlinie erlaubt keine) */
.abstand-oben { margin-top: 1rem; }
.ohne-abstand { margin-top: 0; }
.begrenzt { max-width: 32rem; }
.rechts { text-align: right; }

/* ---------------------------------------------------------------- Büro-Cockpit */
.reiter { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 2px solid var(--linie); margin: 0 0 1.25rem; padding-bottom: 0; }
.reiter a { padding: .6rem .9rem; text-decoration: none; color: var(--text-leise); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; }
.reiter a:hover { color: var(--rot); }
.reiter a[aria-current="page"] { color: var(--rot); border-bottom-color: var(--rot); }

.eintrag { background: var(--flaeche); border: 1px solid var(--linie); border-left: 4px solid var(--linie); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: .75rem; }
.eintrag.neu { border-left-color: var(--rot); }
.eintrag.angeheftet { border-left-color: var(--warnung); background: var(--warnung-hell); }
.eintrag-kopf { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .35rem; }
.eintrag-bezug { margin: 0 0 .35rem; font-weight: 600; }
.eintrag-text { overflow-wrap: anywhere; }
.eintrag-fuss { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.eintrag-aktionen { display: flex; gap: .25rem; flex-wrap: wrap; }
.neu-eintrag summary { cursor: pointer; }
.ergaenzung { border-left: 3px solid var(--linie); padding: .1rem 0 .1rem .7rem; margin-top: .5rem; }
.ergaenzen, .lesestand { margin-top: .4rem; }
.ergaenzen summary, .lesestand summary { cursor: pointer; color: var(--text-leise); }
.angepinnt h3 { font-size: 1rem; margin: 1rem 0 .5rem; color: var(--warnung); }

.liste-schlicht { list-style: none; padding: 0; margin: 0; }
.liste-schlicht > li { padding: .45rem 0; border-top: 1px solid var(--linie); }
.liste-schlicht > li:first-child { border-top: 0; }

.aufgabe { display: flex; gap: .75rem; align-items: flex-start; }
.aufgabe-text { flex: 1; }
.aufgabe.erledigt .aufgabe-text strong { text-decoration: line-through; color: var(--text-leise); }
.aufgabe.ueberfaellig .aufgabe-text strong { color: var(--rot); }
button.haken { min-height: 0; width: 1.8rem; height: 1.8rem; padding: 0; border-radius: 6px; background: var(--flaeche); border: 2px solid #8c8883; color: var(--gut); font-size: 1.1rem; flex: none; }
button.haken:hover { background: var(--gut-hell); border-color: var(--gut); color: var(--gut); }

.luecke { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; padding: .6rem 0; border-top: 1px solid var(--linie); }
.luecke:first-child { border-top: 0; }
.luecke.status-besetzt .luecke-inhalt { opacity: .75; }
.luecke-inhalt { flex: 1 1 18rem; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.luecke-kopf { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.luecke-notiz { overflow-wrap: anywhere; white-space: normal; font-size: .95rem; }
.luecke-aktionen { display: flex; gap: .4rem; flex-wrap: wrap; align-items: flex-start; }
.anfragen-kurz { list-style: none; padding: 0; margin: 0; display: flex; gap: .3rem; flex-wrap: wrap; }
.anfragen-kurz .etikett { white-space: normal; }
.etikett.anfrage-zugesagt { background: var(--gut-hell); border-color: transparent; color: var(--gut); }
.etikett.anfrage-abgelehnt { background: var(--rot-hell); border-color: transparent; color: var(--rot); }
.etikett.anfrage-angefragt { background: var(--warnung-hell); border-color: transparent; color: var(--warnung); }
.luecke-suche { margin: .4rem 0 0 .8rem; padding-left: .6rem; border-left: 3px solid var(--linie); }
table.anfragen select, table.anfragen input { min-width: 9rem; }
@media (max-width: 40rem) {
  table.anfragen thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.anfragen, table.anfragen tbody, table.anfragen tr { display: block; }
  table.anfragen tr { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
  table.anfragen th, table.anfragen td { display: block; padding: 0; border: 0; }
  table.anfragen th[scope="row"] { grid-column: 1 / -1; }
  table.anfragen select, table.anfragen input { min-width: 0; width: 100%; }
}
.zuweisung { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; align-items: center; }
.wochen-nav { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: .8rem; }
table.wochenplan { min-width: 48rem; table-layout: fixed; }
table.wochenplan th:first-child { width: 10rem; }
table.wochenplan th, table.wochenplan td { vertical-align: top; }
table.wochenplan th.heute { color: var(--rot); }
.dienst { background: var(--info-hell); border-radius: 6px; padding: .2rem .4rem; margin-bottom: .25rem; display: flex; flex-wrap: wrap; gap: .2rem .4rem; align-items: baseline; }
.dienst.art-frei { background: var(--warnung-hell); }
.dienst.belegt { background: var(--gut-hell); }
.dienst form button { padding: 0 .3rem; min-height: 0; }
.luecke-status { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.luecke-status select, .luecke-status input { width: auto; min-height: 2.2rem; padding: .3rem .5rem; }
.fehlertext { color: var(--rot); font-weight: 600; }
.haken-anzeige { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 6px; border: 2px dashed var(--linie); color: var(--gut); display: grid; place-items: center; font-size: 1.1rem; }
.aufgabe.erledigt .haken-anzeige { border-style: solid; border-color: var(--gut); }

/* ---------------------------------------------------------------- Bewerbungen */
[hidden] { display: none !important; }
.raster.zwei { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); align-items: start; }
.board { position: relative; display: flex; gap: .8rem; overflow-x: auto; padding-bottom: .8rem; align-items: flex-start; }
.board-spalte { flex: 1 0 14rem; max-width: 22rem; background: var(--hintergrund); border: 1px solid var(--linie); border-radius: var(--radius); padding: .6rem; }
.board-spalte.ende { opacity: .85; }
.board-spalte h2 { font-size: 1rem; margin: 0 0 .5rem; }
.bewerbung-karte { display: flex; flex-direction: column; gap: .15rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: .55rem .65rem; margin-bottom: .5rem; text-decoration: none; color: var(--text); }
.bewerbung-karte:hover { border-color: var(--rot); color: var(--text); }
.bewerbung-karte .rot { color: var(--rot); font-weight: 600; }
.bewerbung-karte .karte-zusage { align-self: flex-start; white-space: normal; }
.bewerbung-karte { cursor: grab; }
.bewerbung-karte.zieht { opacity: .5; }
/* Schon als Mitarbeiter:in übernommen: grün hervorgehoben, bis sie ins Archiv kommt */
.bewerbung-karte.uebernommen { background: var(--gut-hell); border-color: var(--gut); border-left-width: 4px; }
.hinweis.gut { background: var(--gut-hell); }
.karte-platzhalter { border: 2px dashed var(--rot); border-radius: 8px; background: var(--rot-hell); margin-bottom: .5rem; min-height: 2.5rem; }
.phase-zeile { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.angaben { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: .3rem .8rem; margin: 0 0 1rem; }
.angaben dt { color: var(--text-leise); font-size: .9rem; }
.angaben dd { margin: 0; overflow-wrap: anywhere; }
.zeitraster { width: auto; }
.zeitraster th, .zeitraster td { padding: .25rem .45rem; text-align: center; }
.zeitraster th[scope="row"] { text-align: left; }
.zeitraster input { width: 1.3rem; height: 1.3rem; }
.gruppe { border-top: 1px solid var(--linie); padding-top: 1rem; }
.gruppe > legend { font-weight: 700; font-size: 1.15rem; padding-top: 1rem; }
.honigtopf { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 40rem) { .angaben { grid-template-columns: 1fr; } .angaben dd { margin-bottom: .4rem; } }

/* Team-Art direkt in der Tabelle wählen */
.art-wahl { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.art-wahl select { width: auto; min-height: 2.2rem; padding: .3rem .5rem; }
details > summary { cursor: pointer; }
table.rollen th, table.rollen td { text-align: center; }
table.rollen th:first-child, table.rollen td:first-child, table.rollen tbody th { text-align: left; }
table.rollen .bereich-kopf { border-bottom: 2px solid var(--linie); color: var(--text-leise); font-size: .85rem; }
.zuweisung-zeile { display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; align-items: center; }
.zuweisen-form { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.zuweisen-form input[type="text"] { width: 14rem; min-height: 2.2rem; padding: .3rem .5rem; }
.ankreuzen-klein { display: inline-flex; gap: .3rem; align-items: center; font-size: .9rem; }
.ankreuzen-klein input { width: 1.1rem; height: 1.1rem; }
.karte > p.bereitschaft-zeile { margin: 0 0 .4rem; padding-bottom: .5rem; border-bottom: 1px solid var(--linie); line-height: 1.7; max-width: none; }
.bereitschaft-zeile + .luecke { border-top: 0; }
.nicht-umbrechen { white-space: nowrap; }
.etikett.umbrechen { white-space: normal; max-width: 100%; }
td.spalte-text { min-width: 12rem; max-width: 24rem; }
.karte:target { outline: 3px solid var(--rot); outline-offset: 2px; }
td.spalte-text .etikett { margin-bottom: .2rem; }
.durchgestrichen { text-decoration: line-through; color: var(--text-leise); }
select.fehlt { border-color: var(--warnung); border-width: 2px; }
table.swing-import select { min-width: 12rem; }
@media (max-width: 40rem) {
  table.swing-import thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.swing-import, table.swing-import tbody, table.swing-import tr, table.swing-import th, table.swing-import td { display: block; }
  table.swing-import tr { padding: .6rem 0; border-bottom: 1px solid var(--linie); }
  table.swing-import th, table.swing-import td { border: 0; padding: .2rem 0; }
  table.swing-import select { width: 100%; min-width: 0; }
}

/* Ausschreibungen */
.ausschreibung { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.ausschreibung-inhalt { flex: 1; min-width: 0; }
.ausschreibung.beendet { opacity: .7; }
.ausschreibung .qr { flex: none; background: #fff; border: 1px solid var(--linie); border-radius: 6px; }
.link-kopie { word-break: break-all; }
.stelle-hinweis h2 { margin-top: .2rem; }
@media (max-width: 30rem) { .ausschreibung { flex-direction: column; } }

/* Zeitplan (Gantt) der Aufgaben */
.ansicht-wahl { margin: .4rem 0 .8rem; }
.zeitplan-nav { align-items: center; gap: .6rem; }
.zeitplan-huelle { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }
.zeitplan { display: grid; grid-template-columns: minmax(13rem, 18rem) repeat(42, 2.1rem); min-width: max-content; }
.zp-kopf { position: sticky; top: 0; background: var(--flaeche); border-bottom: 1px solid var(--linie); font-size: .75rem; padding: .3rem .1rem; text-align: center; display: flex; flex-direction: column; line-height: 1.15; }
.zp-kopf.zp-titel { text-align: left; padding-left: .6rem; justify-content: flex-end; align-items: flex-start; font-weight: 600; color: var(--text-leise); }
.zp-monat { color: var(--rot); font-weight: 600; }
.zp-titel { position: sticky; left: 0; z-index: 1; background: var(--flaeche); padding: .35rem .6rem; border-bottom: 1px solid var(--linie); border-right: 1px solid var(--linie); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .25rem .4rem; align-items: center; }
.zp-titel.ueberfaellig [data-faellig-text] { color: var(--rot); font-weight: 600; }
.zp-spur { display: contents; }
.zp-zelle { border-bottom: 1px solid var(--linie); min-height: 2.4rem; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.zp-zelle.montag, .zp-kopf.montag { border-left: 1px solid var(--linie); }
.zp-zelle.we, .zp-kopf.we { background: var(--hintergrund); }
.zp-zelle.heute, .zp-kopf.heute { box-shadow: inset 2px 0 0 var(--rot); }
.zp-zelle.ziel { background: var(--rot-hell); }
.zp-punkt { width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--text-leise); cursor: grab; touch-action: none; }
.zp-punkt.wichtig { background: var(--rot); }
.zp-punkt.frueher { background: var(--rot); outline: 2px dashed var(--rot); outline-offset: 2px; }
.zp-punkt.zieht { cursor: grabbing; opacity: .6; }
.zp-leer { grid-column: 1 / -1; padding: 1rem; }

/* Kalender: Zeitraster 7–21 Uhr in Viertelstunden (56 Zeilen); Lage nur über Klassen (CSP) */
.kal { display: flex; overflow-x: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); margin-bottom: 1rem; }
.kal-achse { flex: 0 0 3.2rem; }
.kal-spalte { flex: 1 1 0; min-width: 7.5rem; border-left: 1px solid var(--linie); }
.kal-spalte.we { background: var(--info-hell); }
.kal-spalte.feiertag { background: var(--warnung-hell); }
.kal-feiertag { display: block; font-size: .7rem; color: var(--warnung); font-weight: 600; }
.kal-kopf { height: 2.6rem; padding: .35rem .4rem; border-bottom: 1px solid var(--linie); font-size: .85rem; text-align: center; position: sticky; top: 0; background: inherit; }
.kal-spalte.heute .kal-kopf { color: var(--rot); box-shadow: inset 0 -3px 0 var(--rot); }
.kal-koerper { display: grid; grid-template-rows: repeat(56, .72rem); grid-template-columns: 1fr; column-gap: 2px; padding: 0 2px; background-image: repeating-linear-gradient(to bottom, var(--linie) 0 1px, transparent 1px 2.88rem); }
.kal-stunde { font-size: .72rem; color: var(--text-leise); text-align: right; padding-right: .35rem; transform: translateY(-.45rem); }
.kal-stunde.zs-1 { transform: none; }
.kal-frei { grid-column: 1 / -1; z-index: 0; }
.kal-frei:hover, .kal-frei:focus-visible { background: var(--rot-hell); }
.kal-termin { z-index: 1; overflow: hidden; margin: 1px 0; padding: .1rem .3rem; border-radius: 5px; border-left: 4px solid var(--grau); background: var(--hintergrund); color: var(--text); text-decoration: none; font-size: .78rem; line-height: 1.2; display: flex; flex-direction: column; }
.kal-termin:hover { box-shadow: 0 0 0 2px var(--fokus); }
.kal-termin:target { box-shadow: 0 0 0 3px var(--rot); }
.kal-zeit, .kal-ort, .kal-wer { font-size: .72rem; color: var(--text-leise); }
.art-schulung { background: var(--info-hell); border-left-color: var(--fokus); }
.art-gespraech { background: var(--warnung-hell); border-left-color: var(--warnung); }
.art-besprechung { background: var(--gut-hell); border-left-color: var(--gut); }
.art-sonstiges { background: var(--hintergrund); border-left-color: var(--grau); }
/* Noch nicht fest: gestrichelt, mit „?“ vor dem Titel */
.kal-termin.vorlaeufig { border-style: dashed; border-width: 1px 1px 1px 4px; border-color: var(--grau); opacity: .85; }
.vorlaeufig-zeichen { font-weight: 700; color: var(--warnung); }
.legende-vorlaeufig { border: 1px dashed var(--grau); border-left: 4px dashed var(--grau); }
.kal-farbe { display: inline-block; padding: 0 .4rem; border-left-width: 4px; border-left-style: solid; border-radius: 4px; margin-right: .2rem; }
.kal-listeneintrag { border-left-width: 4px; border-left-style: solid; padding-left: .5rem; background: none; }
.kal-liste { display: none; }
.kal-liste .karte.heute h2 { color: var(--rot); }
.kal-blaettern { align-items: center; gap: .5rem; }
.kal-blaettern .knopfreihe { margin: 0; }
@media (max-width: 45rem) { .kal { display: none; } .kal-liste { display: block; } }
.zs-1 { grid-row-start: 1; } .ze-1 { grid-row-end: 1; }
.zs-2 { grid-row-start: 2; } .ze-2 { grid-row-end: 2; }
.zs-3 { grid-row-start: 3; } .ze-3 { grid-row-end: 3; }
.zs-4 { grid-row-start: 4; } .ze-4 { grid-row-end: 4; }
.zs-5 { grid-row-start: 5; } .ze-5 { grid-row-end: 5; }
.zs-6 { grid-row-start: 6; } .ze-6 { grid-row-end: 6; }
.zs-7 { grid-row-start: 7; } .ze-7 { grid-row-end: 7; }
.zs-8 { grid-row-start: 8; } .ze-8 { grid-row-end: 8; }
.zs-9 { grid-row-start: 9; } .ze-9 { grid-row-end: 9; }
.zs-10 { grid-row-start: 10; } .ze-10 { grid-row-end: 10; }
.zs-11 { grid-row-start: 11; } .ze-11 { grid-row-end: 11; }
.zs-12 { grid-row-start: 12; } .ze-12 { grid-row-end: 12; }
.zs-13 { grid-row-start: 13; } .ze-13 { grid-row-end: 13; }
.zs-14 { grid-row-start: 14; } .ze-14 { grid-row-end: 14; }
.zs-15 { grid-row-start: 15; } .ze-15 { grid-row-end: 15; }
.zs-16 { grid-row-start: 16; } .ze-16 { grid-row-end: 16; }
.zs-17 { grid-row-start: 17; } .ze-17 { grid-row-end: 17; }
.zs-18 { grid-row-start: 18; } .ze-18 { grid-row-end: 18; }
.zs-19 { grid-row-start: 19; } .ze-19 { grid-row-end: 19; }
.zs-20 { grid-row-start: 20; } .ze-20 { grid-row-end: 20; }
.zs-21 { grid-row-start: 21; } .ze-21 { grid-row-end: 21; }
.zs-22 { grid-row-start: 22; } .ze-22 { grid-row-end: 22; }
.zs-23 { grid-row-start: 23; } .ze-23 { grid-row-end: 23; }
.zs-24 { grid-row-start: 24; } .ze-24 { grid-row-end: 24; }
.zs-25 { grid-row-start: 25; } .ze-25 { grid-row-end: 25; }
.zs-26 { grid-row-start: 26; } .ze-26 { grid-row-end: 26; }
.zs-27 { grid-row-start: 27; } .ze-27 { grid-row-end: 27; }
.zs-28 { grid-row-start: 28; } .ze-28 { grid-row-end: 28; }
.zs-29 { grid-row-start: 29; } .ze-29 { grid-row-end: 29; }
.zs-30 { grid-row-start: 30; } .ze-30 { grid-row-end: 30; }
.zs-31 { grid-row-start: 31; } .ze-31 { grid-row-end: 31; }
.zs-32 { grid-row-start: 32; } .ze-32 { grid-row-end: 32; }
.zs-33 { grid-row-start: 33; } .ze-33 { grid-row-end: 33; }
.zs-34 { grid-row-start: 34; } .ze-34 { grid-row-end: 34; }
.zs-35 { grid-row-start: 35; } .ze-35 { grid-row-end: 35; }
.zs-36 { grid-row-start: 36; } .ze-36 { grid-row-end: 36; }
.zs-37 { grid-row-start: 37; } .ze-37 { grid-row-end: 37; }
.zs-38 { grid-row-start: 38; } .ze-38 { grid-row-end: 38; }
.zs-39 { grid-row-start: 39; } .ze-39 { grid-row-end: 39; }
.zs-40 { grid-row-start: 40; } .ze-40 { grid-row-end: 40; }
.zs-41 { grid-row-start: 41; } .ze-41 { grid-row-end: 41; }
.zs-42 { grid-row-start: 42; } .ze-42 { grid-row-end: 42; }
.zs-43 { grid-row-start: 43; } .ze-43 { grid-row-end: 43; }
.zs-44 { grid-row-start: 44; } .ze-44 { grid-row-end: 44; }
.zs-45 { grid-row-start: 45; } .ze-45 { grid-row-end: 45; }
.zs-46 { grid-row-start: 46; } .ze-46 { grid-row-end: 46; }
.zs-47 { grid-row-start: 47; } .ze-47 { grid-row-end: 47; }
.zs-48 { grid-row-start: 48; } .ze-48 { grid-row-end: 48; }
.zs-49 { grid-row-start: 49; } .ze-49 { grid-row-end: 49; }
.zs-50 { grid-row-start: 50; } .ze-50 { grid-row-end: 50; }
.zs-51 { grid-row-start: 51; } .ze-51 { grid-row-end: 51; }
.zs-52 { grid-row-start: 52; } .ze-52 { grid-row-end: 52; }
.zs-53 { grid-row-start: 53; } .ze-53 { grid-row-end: 53; }
.zs-54 { grid-row-start: 54; } .ze-54 { grid-row-end: 54; }
.zs-55 { grid-row-start: 55; } .ze-55 { grid-row-end: 55; }
.zs-56 { grid-row-start: 56; } .ze-56 { grid-row-end: 56; }
.zs-57 { grid-row-start: 57; } .ze-57 { grid-row-end: 57; }
.sp-0 { grid-column: 1 / -1; }
.sp-1 { grid-column: 1; } .spuren-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.sp-2 { grid-column: 2; } .spuren-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-3 { grid-column: 3; } .spuren-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-4 { grid-column: 4; } .spuren-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-5 { grid-column: 5; } .spuren-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sp-6 { grid-column: 6; } .spuren-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Schlüssel: Übergabeprotokoll und Warnzeilen */
.unterschriften { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 4rem; font-size: .85rem; }
.unterschrift-linie { display: block; border-top: 1px solid var(--text); margin-bottom: .3rem; }
tr.zeile-warnung td { background: var(--rot-hell); }
.schluessel-offen { color: var(--rot); font-weight: 600; }
.kal-termin { position: relative; cursor: grab; touch-action: none; user-select: none; }
.kal-termin.zieht { cursor: grabbing; opacity: .85; box-shadow: 0 0 0 2px var(--fokus); z-index: 2; }
.kal-griff { position: absolute; left: 0; right: 0; height: 6px; cursor: ns-resize; }
.kal-griff.oben { top: 0; }
.kal-griff.unten { bottom: 0; }

/* Wochenenden und Feiertage in Listen (Lücken, Sprechzeit, Kalender auf dem Handy) */
.karte.tag-wochenende { background: var(--info-hell); border-left: 4px solid var(--fokus); }
.karte.tag-feiertag { background: var(--warnung-hell); border-left: 4px solid var(--warnung); }
h2.tag-wochenende, h3.tag-wochenende { color: var(--fokus); }
h2.tag-feiertag, h3.tag-feiertag { color: var(--warnung); }
.etikett.wochenende { background: var(--info-hell); color: var(--fokus); }
.etikett.feiertag { background: var(--warnung-hell); color: var(--warnung); }

/* Nur auf dem Handy sichtbar (z. B. „In Authenticator-App öffnen“) */
.nur-schmal { display: none; }
@media (max-width: 40rem) { .nur-schmal { display: block; } }

/* Anrufen mit einem Tipp neben Namen in Listen */
.anrufen { display: inline-block; min-width: 2.75rem; min-height: 2.75rem; line-height: 2.75rem; text-align: center; margin-left: .3rem; text-decoration: none; border-radius: .4rem; }

/* Onboarding/Austritt: Frist von Hand ändern */
.frist-aendern { margin-top: .25rem; }
.frist-aendern .filter { margin: .4rem 0 0; }

/* Passwort anzeigen: Auge im Feld rechts */
.passwort-huelle { position: relative; display: block; }
.passwort-huelle input { width: 100%; padding-right: 2.8rem; }
button.passwort-zeigen { position: absolute; top: 50%; right: .35rem; transform: translateY(-50%); min-height: 0; width: 2.2rem; height: 2.2rem; padding: .35rem; border: 0; border-radius: 6px; background: transparent; color: var(--text-leise); line-height: 0; }
button.passwort-zeigen:hover { background: var(--hintergrund); color: var(--text); }
button.passwort-zeigen svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
