/* Bausteine. Farben/Schriften nur über Variablen aus theme.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--hintergrund); color: var(--text); font: 400 16px/1.5 var(--schrift-text);
  -webkit-font-smoothing: antialiased; }
a { color: var(--primaer); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { color: var(--primaer-dunkel); }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--schrift-marke); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.85rem); line-height: 1.15; margin: 0 0 1rem; font-weight: 800; }
h2 { font-size: 1.2rem; line-height: 1.2; margin: 1.25rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
small, .klein { color: var(--text-leise); font-size: .875rem; }
.label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); }
.zahl-gross { font-family: var(--schrift-zahl); font-weight: 700; font-size: 2.25rem; line-height: 1; letter-spacing: .01em; }
.leer { color: var(--text-leise); font-style: italic; }
code, .mono { font-family: ui-monospace, Menlo, monospace; font-size: .85em; word-break: break-all; }
.inline { display: inline; }
[hidden] { display: none !important; }

/* Kopf */
header.kopf { position: sticky; top: 0; z-index: 10; background: var(--weiss); border-bottom: 1px solid var(--linie-leise);
  min-height: var(--kopf-hoehe); padding: .5rem 1rem; display: flex; gap: .25rem 1rem; align-items: center; flex-wrap: wrap; }
header.kopf .marke { display: flex; align-items: center; gap: .6rem; margin-right: auto; color: var(--text); text-decoration: none;
  font-weight: 700; }
header.kopf .marke img.wortmarke { height: 30px; width: auto; }
header.kopf .marke .bereich { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-leise); border-left: 1px solid var(--linie); padding-left: .6rem; }
header.kopf nav { display: flex; gap: .15rem; flex-wrap: wrap; }
header.kopf nav a { color: var(--text); text-decoration: none; padding: .45rem .7rem; border-radius: var(--radius); font-weight: 600;
  font-size: .95rem; }
header.kopf nav a:hover { background: var(--flaeche-zwei); color: var(--text); }
header.kopf nav a.aktiv { background: var(--farn); color: var(--tanne); }
header.kopf nav { align-items: center; }
/* „Mehr“-Menü (TW-45): <details>, schließt per admin.js bei Klick daneben */
header.kopf details.mehr { position: relative; }
header.kopf details.mehr > summary { list-style: none; cursor: pointer; padding: .45rem .7rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; border: 1px solid var(--linie); }
header.kopf details.mehr > summary::-webkit-details-marker { display: none; }
header.kopf details.mehr > summary::after { content: " ▾"; font-size: .75em; }
header.kopf details.mehr > summary.aktiv { background: var(--farn); border-color: var(--farn); }
header.kopf details.mehr > summary:hover { background: var(--flaeche-zwei); }
.mehr-menue { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 20; background: var(--weiss); min-width: 15rem;
  border: 1px solid var(--linie); border-radius: var(--radius-karte); box-shadow: var(--schatten); padding: .5rem;
  display: flex; flex-direction: column; }
.mehr-menue .label { padding: .6rem .7rem .2rem; font-size: .7rem; }
header.kopf .mehr-menue a { padding: .4rem .7rem; font-weight: 400; }
header.kopf .mehr-menue a.abmelden { border-top: 1px solid var(--linie-leise); margin-top: .4rem; padding-top: .6rem;
  border-radius: 0 0 var(--radius) var(--radius); color: var(--text-leise); }
@media (max-width: 760px) {
  header.kopf nav { width: 100%; justify-content: space-between; gap: 0; }
  header.kopf nav a, header.kopf details.mehr > summary { white-space: nowrap; padding: .45rem .5rem; }
}
/* Mit „Chat“ sind es bis zu sieben Punkte: am schmalen Handy enger, damit alles in eine Zeile passt */
@media (max-width: 430px) {
  header.kopf nav a, header.kopf details.mehr > summary { padding: .45rem .3rem; font-size: .88rem; }
}

main { max-width: 1280px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
main.schmal { max-width: 560px; }

/* Karten, Raster */
.karte { background: var(--flaeche); border-radius: var(--radius-karte); box-shadow: var(--schatten); border: 1px solid var(--linie-leise); padding: 1.1rem 1.2rem;
  margin-bottom: 1rem; }
.karte > h2:first-child, .karte > h3:first-child { margin-top: 0; }
.karte.ruhig { box-shadow: none; border: 1px solid var(--linie-leise); }
.karte.warn { border-left: 5px solid var(--honig); }
.karte.alarm { border-left: 5px solid var(--fehler); background: var(--fehler-flaeche); }
.karte.alarm h2 { color: var(--fehler); }
.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.kennzahlen { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1rem; }
.kennzahl { background: var(--flaeche); border-radius: var(--radius-karte); box-shadow: var(--schatten); border: 1px solid var(--linie-leise); padding: .9rem 1rem;
  text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: .2rem; }
a.kennzahl:hover { color: var(--text); transform: translateY(-2px); transition: transform var(--dauer); }
.kennzahl.alarm { background: var(--fehler-flaeche); } .kennzahl.alarm .zahl-gross { color: var(--fehler); }
.kennzahl.warn { background: var(--warn-flaeche); } .kennzahl.warn .zahl-gross { color: var(--warn); }
.kennzahl.gut .zahl-gross { color: var(--gut); }

/* Meldungen */
.meldung { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 600; }
.meldung.ok { background: var(--gut-flaeche); color: var(--tanne); }
.meldung.fehler { background: var(--fehler-flaeche); color: var(--fehler); }
.meldung.warn { background: var(--warn-flaeche); color: var(--warn); }

/* Tabellen */
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--linie-leise); vertical-align: top; }
th { color: var(--text-leise); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:hover td { background: var(--flaeche-zwei); }
/* position: relative – sonst hängt die .sr-only-Spaltenüberschrift (position: absolute) an der Seite statt an der
   Tabelle und macht am Handy die ganze Seite breiter */
.tabelle { overflow-x: auto; position: relative; }

/* Formulare */
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type=radio]):not([type=checkbox]), select, textarea { background: var(--weiss); border: 2px solid var(--linie);
  border-radius: var(--radius); padding: .5rem .65rem; max-width: 100%; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--laub); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 20%, transparent); }
input[type=checkbox], input[type=radio] { accent-color: var(--laub); width: 1.1rem; height: 1.1rem; vertical-align: -2px; }
label { display: block; margin: .5rem 0; }
input[type=file] { max-width: 100%; }     /* Dateifeld ragte am Handy über den Kartenrand */
.zeile label:has(input[type=file]) { min-width: 0; max-width: 100%; }
label > span { display: block; font-size: .8rem; font-weight: 700; color: var(--text-leise); margin-bottom: .15rem; }
/* Hinweis-Chips in Feldbeschriftungen (z. B. „unter 18 ohne Geburtsdatum …“) brechen um, statt am Handy überzustehen */
label > span .chip { white-space: normal; }
.zeile { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; }
.zeile label { margin: 0; }

/* Buttons */
button, .knopf { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px;
  background: var(--primaer); color: var(--weiss); border: 2px solid var(--primaer); border-radius: var(--radius);
  padding: .5rem 1rem; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background var(--dauer), border-color var(--dauer); }
button:hover, .knopf:hover { background: var(--primaer-dunkel); border-color: var(--primaer-dunkel); color: var(--weiss); }
button.zweit, .knopf.zweit { background: transparent; color: var(--primaer); }
button.zweit:hover, .knopf.zweit:hover { background: var(--farn); color: var(--primaer-dunkel); }
button.gefahr { background: var(--fehler); border-color: var(--fehler); }
button.sonne, .knopf.sonne { background: var(--honig); border-color: var(--honig); color: var(--tanne); }
button.klein, .knopf.klein { min-height: 34px; padding: .25rem .65rem; font-size: .85rem; }
/* .klein (graue Schrift) gilt nicht für volle Buttons – sonst grau auf grün/rot */
button.klein:not(.zweit):not(.sonne), .knopf.klein:not(.zweit):not(.sonne) { color: var(--weiss); }
button:disabled { opacity: .45; cursor: not-allowed; }
/* Kleingedrucktes in vollen Knöpfen (Terminal „da seit …“): Knopffarbe statt grau auf dunkel */
button:not(.zweit) small, .knopf:not(.zweit) small { color: inherit; opacity: .85; }

/* Chips/Schilder */
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .5rem; border-radius: 4px; font-size: .75rem;
  font-weight: 700; letter-spacing: .03em; background: var(--flaeche-zwei); color: var(--text); white-space: nowrap; line-height: 1.6; }
.chip.gruen { background: var(--gut-flaeche); color: var(--gut); }
.chip.umbruch { white-space: normal; }    /* lange Chips (z. B. Tauschvorschlag) brechen am Handy um */
.chip.gelb { background: var(--warn-flaeche); color: var(--warn); }
.chip.rot { background: var(--fehler-flaeche); color: var(--fehler); }
.chip.blau { background: var(--info-flaeche); color: var(--info); }
.chip.dunkel { background: var(--tanne); color: var(--creme); }
.chip.ort { background: var(--holz); color: var(--weiss); }

/* Reiter (Standort im Plan) */
.reiter { display: flex; gap: .25rem; margin: 0 0 .9rem; border-bottom: 2px solid var(--linie); flex-wrap: wrap; }
.reiter a { padding: .4rem .9rem; border-radius: var(--radius) var(--radius) 0 0; color: var(--text-leise); font-weight: 600;
  text-decoration: none; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.reiter a[aria-current="page"] { color: var(--primaer); border-bottom-color: var(--primaer); background: var(--flaeche); }
.meldungen { margin: .45rem 0 .2rem; }
.meldungen ul { list-style: none; margin: .2rem 0 0; padding: 0; }
.meldungen li { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; padding: .15rem 0; }
.meldungen .leise { color: var(--text-leise); }
.meldungen .chip { white-space: normal; }
.tag .absage { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin: .25rem 0; }
details > summary { cursor: pointer; color: var(--text-leise); font-weight: 600; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
/* Aufklapper leise (Luca 23.10.2026): grauer Text, schmaler Winkel statt Dreieck (zu: ›, offen: ⌄) */
details:not(.schicht):not(.mehr) > summary::before { content: ""; display: inline-block; width: .4em; height: .4em;
  margin: 0 .55em .12em .1em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform var(--dauer); }
details[open]:not(.schicht):not(.mehr) > summary::before { transform: rotate(45deg); }

/* Liste von Punkten (Probleme, Aufgaben) */
.punkte { list-style: none; margin: 0; padding: 0; }
.punkte li { display: flex; gap: .6rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--linie-leise); }
.punkte li:last-child { border-bottom: 0; }
.punkte .wann { font-family: var(--schrift-zahl); font-weight: 700; font-size: 1.05rem; min-width: 5.5rem; }
.punkte .was { flex: 1; }

/* Wochenplan */
.planleiste { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.schritte { display: flex; flex-wrap: wrap; gap: .5rem; }
.schritte button.zweit, .schritte .knopf.zweit { border-width: 1px; font-weight: 600; }
.schritte a.knopf.zweit[target=_blank] { border-color: transparent; text-decoration: underline; }   /* WhatsApp: Link, kein Schritt */
.woche { display: grid; grid-template-columns: repeat(7, minmax(160px, 1fr)); gap: .6rem; overflow-x: auto; padding-bottom: .25rem; }
.tag { background: var(--flaeche-zwei); border-radius: var(--radius-karte); padding: .6rem; min-width: 160px; }
.tag.heute { outline: 2px solid var(--laub); }
.tag:has(> p.leer) { background: transparent; border: 1px dashed var(--linie); }   /* geschlossen: nur Umriss */
.tag:has(> p.leer) .datum { color: var(--text-leise); }
.tag > header { display: flex; justify-content: space-between; align-items: baseline; gap: .25rem; margin-bottom: .4rem; }
.tag > header .datum { font-family: var(--schrift-zahl); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; }
.tag > header .umsatz { font-size: .75rem; color: var(--text-leise); }
.tag .ev { font-size: .8rem; font-weight: 700; color: var(--tanne); background: var(--farn); border-radius: 4px; padding: .1rem .4rem;
  margin-bottom: .35rem; }
.schicht { position: relative; background: var(--weiss); border-radius: 8px; border-left: 4px solid var(--linie); margin: .35rem 0;
  font-size: .875rem; box-shadow: var(--schatten); }
.schicht.offen { border-left-color: var(--fehler); }
.schicht.vorgeschlagen { border-left-color: var(--honig); }
.schicht.bestaetigt { border-left-color: var(--gut); }
.schicht.abgesagt { opacity: .55; }
.schicht.abgesagt .zeit { text-decoration: line-through; }
.schicht.konflikt { outline: 2px solid var(--fehler); }
.schicht > summary { list-style: none; cursor: pointer; padding: .4rem .5rem; color: var(--text); font-weight: 400; display: grid;
  grid-template-columns: minmax(min-content, 1fr) auto; gap: 0 .4rem; }
/* Die Uhrzeit wird nie abgeschnitten; Chips daneben („allein“, „1 gemeldet“) brechen um (Hinweis Cloud-Sitzung 23.10.) */
.schicht > summary .chip { white-space: normal; }
.schicht > summary::-webkit-details-marker { display: none; }
.schicht .zeit { font-family: var(--schrift-zahl); font-weight: 700; font-size: 1rem; letter-spacing: .01em; white-space: nowrap; }
.schicht > summary > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.schicht .station { color: var(--text-leise); font-size: .8rem; }
.schicht .wer { grid-column: 1 / -1; font-weight: 700; }
.schicht .wer.offen { color: var(--fehler); }
.schicht .zeichen { display: flex; gap: .2rem; align-items: start; }
.schicht .koerper { padding: 0 .5rem .55rem; border-top: 1px solid var(--linie-leise); }
.schicht .koerper select { width: 100%; margin-top: .45rem; font-size: .875rem; min-height: 38px; padding: .3rem; }
.schicht .begr { color: var(--text-leise); font-size: .78rem; margin-top: .35rem; }
.schicht .mehr { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
@media (max-width: 960px) { .woche { grid-template-columns: 1fr; } .tag { min-width: 0; } }

/* Mitarbeiter-App */
.app-kopf { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; background: var(--weiss);
  border-bottom: 1px solid var(--linie-leise); }
.app-kopf img { height: 26px; }
.hallo { font-family: var(--schrift-marke); font-weight: 800; font-size: 1.5rem; margin: .25rem 0 1rem; }
.stempel { text-align: center; padding: 1.5rem 1rem; background: var(--tanne); color: var(--creme); border-radius: var(--radius-karte);
  margin-bottom: 1rem; position: relative; overflow: hidden; }
.stempel .zustand { font-family: var(--schrift-marke); font-weight: 900; font-size: 1.9rem; line-height: 1.1; }
.stempel .seit { color: var(--text-auf-dunkel-leise); margin-top: .25rem; }
.stempel .heute { font-family: var(--schrift-zahl); font-weight: 700; font-size: 1.1rem; color: var(--honig); margin-top: .5rem;
  text-transform: uppercase; letter-spacing: .03em; }
.stempel .aktionen { display: grid; gap: .6rem; margin-top: 1.25rem; }
.stempel .aktionen button { min-height: 64px; font-size: 1.2rem; border-radius: 10px; }
.stempel .aktionen button.haupt { background: var(--honig); border-color: var(--honig); color: var(--tanne); }
.stempel .aktionen button.zweit { color: var(--creme); border-color: rgb(255 255 255 / .6); }
/* Zweiter Tipp auf den Tag: Abfrage ohne Vorauswahl, zwei gleich große, gleich aussehende Knöpfe mit Abstand */
.stempel .nfc-frage { margin-top: 1.25rem; padding: 1rem; border: 2px solid var(--honig); border-radius: 12px; }
.stempel .nfc-frage .frage { font-family: var(--schrift-marke); font-weight: 900; font-size: 1.4rem; }
.stempel .frage-knoepfe { display: grid; gap: 1rem; margin-top: 1rem; }
.stempel .frage-knopf { min-height: 72px; font-size: 1.25rem; border-radius: 10px; background: transparent;
  color: var(--creme); border: 2px solid var(--creme); }
.stempel .frage-abbrechen { display: inline-block; margin-top: 1rem; color: var(--creme); }
.stempel .rueckgaengig { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  justify-content: center; color: var(--creme); }
.stempel .rueckgaengig button { color: var(--creme); border-color: rgb(255 255 255 / .6); min-height: 44px;
  padding: 0 1.2rem; font-size: 1rem; }
.stempel .aktionen button.zweit:hover { background: rgb(255 255 255 / .1); }
.stempel .hinweis { margin-top: 1rem; color: var(--text-auf-dunkel-leise); font-size: .95rem; }
.stempel .meldung { text-align: left; }
.schichtkarte { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: center; padding: .75rem 0;
  border-bottom: 1px solid var(--linie-leise); }
.schichtkarte:last-child { border-bottom: 0; }
.schichtkarte .tagblock { text-align: center; min-width: 3.5rem; }
.schichtkarte .tagblock .wt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-leise); }
.schichtkarte .tagblock .tz { font-family: var(--schrift-zahl); font-weight: 700; font-size: 1.8rem; line-height: 1; }
.schichtkarte .zeit { font-family: var(--schrift-zahl); font-weight: 700; font-size: 1.2rem; }
.schichtkarte.abgesagt { opacity: .6; }
.lohnblick { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: .75rem; }
.lohnblick > div { background: var(--flaeche-zwei); border-radius: 10px; padding: .75rem; }
.stand { display: grid; grid-template-columns: 1fr auto; gap: .3rem .75rem; font-size: .95rem; }
.stand .zahl { font-variant-numeric: tabular-nums; text-align: right; }
.stand .summe { font-weight: 700; border-top: 1px solid var(--linie); padding-top: .3rem; }
.offline-hinweis { display: none; }
body.offline .offline-hinweis { display: block; }

/* Terminal */
.terminal-namen { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7rem; }
.terminal-namen button { padding: 1.2rem .5rem; font-size: 1.1rem; flex-direction: column; min-height: 88px; }
.terminal-namen button small { color: inherit; opacity: .85; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; max-width: 340px; margin: 1rem auto; }
.pinpad button { font-size: 1.6rem; min-height: 64px; font-family: var(--schrift-zahl); }
.aktionen { display: grid; gap: .75rem; margin-top: 1rem; }
.aktionen button { font-size: 1.2rem; min-height: 60px; }

/* Anmeldung */
.anmeldung { text-align: center; padding-top: 2rem; }
.anmeldung img.signet { width: 84px; height: 84px; margin: 0 auto 1rem; display: block; }
.anmeldung .karte { text-align: left; }

/* Zwei-Faktor */
.qr { display: flex; justify-content: center; margin: .8rem 0; }
.qr svg { max-width: 100%; height: auto; background: var(--weiss); padding: .5rem; border-radius: var(--radius); }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin: 1rem 0; }
.codes code { font-size: 1rem; }

/* Postfach */
.postfach-leiste { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .7rem 1rem; margin: 0 0 1rem; border-radius: var(--radius-karte); background: var(--flaeche);
  border: 1px solid var(--linie); color: var(--text); text-decoration: none; }
.postfach-leiste.neu { border-color: var(--honig); box-shadow: var(--schatten); }
.app-kopf .zurueck { font-size: 1.8rem; text-decoration: none; color: var(--primaer); margin-right: .4rem; line-height: 1; }
.nachricht { padding: .7rem 0; border-bottom: 1px solid var(--linie-leise); }
.nachricht:last-child { border-bottom: 0; }
.nachricht .kopfzeile { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.nachricht .text { margin: .2rem 0 .35rem; white-space: pre-line; }
.nachricht.neu .kopfzeile strong::before { content: "● "; color: var(--honig); }
.nachricht.absage .kopfzeile strong, .nachricht.jugendschutz .kopfzeile strong { color: var(--fehler); }
.mitteilung { padding: .5rem 0; border-bottom: 1px solid var(--linie-leise); }

/* Hilfe-Chat */
.chat .verlauf { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .8rem; }
.blase { max-width: 85%; padding: .55rem .8rem; border-radius: 14px; white-space: pre-line; line-height: 1.45; }
.blase.bot { align-self: flex-start; background: var(--farn); color: var(--tanne); border-bottom-left-radius: 4px; }
.blase.ich { align-self: flex-end; background: var(--primaer); color: var(--weiss); border-bottom-right-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .8rem; }
.chip-knopf { min-height: 34px; padding: .3rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--flaeche); color: var(--primaer); border: 1px solid var(--linie); }
.chip-knopf:hover { background: var(--farn); color: var(--primaer-dunkel); }
.notruf { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .45rem 0 .2rem; }
.neu-seit details { padding: .35rem 0; border-bottom: 1px solid var(--linie-leise); }
.neu-seit details:last-child { border-bottom: 0; }
/* Checklisten */
.checkliste { margin-top: .4rem; }
.checkliste summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.checkliste .aufgabe { display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  padding: .4rem 0; border-bottom: 1px solid var(--linie-leise); }
.checkliste .aufgabe.erledigt { opacity: .75; }
.checkliste .aufgabe { flex-wrap: wrap; }
.checkliste .aufgabe > div { flex: 1 1 9rem; min-width: 0; overflow-wrap: anywhere; }
.checkliste .abhaken { display: flex; gap: .4rem; align-items: center; flex: 1 1 13rem; }
.checkliste .abhaken input[name=notiz] { min-width: 0; flex: 1; padding: .3rem .5rem; font-size: .85rem; }
.checkliste form label { display: block; margin: .3rem 0; }
.checkliste-admin { padding: .3rem 0; border-bottom: 1px solid var(--linie-leise); }
.checkliste-admin ul { margin: .2rem 0 0 1.1rem; padding: 0; }
/* SOS */
.sos-leiste { display: flex; flex-direction: column; gap: .2rem; padding: .8rem 1rem; margin: .6rem 0; border-radius: 8px;
  background: var(--fehler); color: var(--weiss); text-decoration: none; }
.sos-leiste span { font-size: .85rem; }
.sos-leiste.info { background: var(--tanne); }
.sos-rufen { margin-top: 1rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.sos-knoepfe { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0; }
.sos-knoepfe button { min-height: 56px; font-size: 1.1rem; }
/* Ruf vorbei: ruhiger, aber ohne Transparenz – sonst fällt der graue Text unter 4,5:1 Kontrast */
.sos.vorbei { box-shadow: none; }
.sos.vorbei h2 { color: var(--text-leise); }
.terminal-sos { margin: 0 0 1rem; }
.terminal-schlange { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 10px; background: var(--honig); color: var(--tanne); }
.terminal-schlange p { margin: 0; font-weight: 700; }
.terminal-schlange ul { margin: .4rem 0 0; padding: 0; list-style: none; }
.terminal-schlange li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .3rem 0; }
.terminal-sos .ruf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem;
  border-radius: 8px; background: var(--fehler); color: var(--weiss); margin-bottom: .5rem; font-size: 1.2rem; }
.terminal-sos .ruf.gedeckt { background: var(--tanne); }
.terminal-sos .ruf.stumm { background: var(--warn-flaeche); color: var(--warn); font-size: 1rem; }
.terminal-sos-rufen { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.terminal-sos .ruf button, .stempel .sos-rufen button { color: var(--weiss); border-color: var(--weiss); background: transparent; }
.stempel .sos-rufen .klein { color: var(--creme); opacity: .85; }
/* Abruf: freiwillige Schicht */
.freiwillig { margin-top: .35rem; }
.freiwillig .zeile { margin-top: .3rem; gap: .4rem; }
/* Urlaub */
.antrag { padding: .5rem 0; border-bottom: 1px solid var(--linie-leise); }
.antrag:last-child { border-bottom: 0; }
.antrag ul { margin: .3rem 0 .4rem 1.1rem; padding: 0; }
.antrag form.zeile { gap: .4rem; align-items: end; }
/* Teamplan und Meine Zeiten (App) */
.wochenwahl { justify-content: center; gap: .6rem; margin: .4rem 0 .8rem; }
.woche-titel { font-size: 1.35rem; margin: 0; font-variant-numeric: tabular-nums; }
.teamtag h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.teamtag.heute { border-color: var(--laub); }
.ort-titel { margin-top: .4rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.teamzeile { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: baseline; padding: .3rem 0;
  border-bottom: 1px solid var(--linie-leise); }
.teamzeile:last-child { border-bottom: 0; }
.teamzeile .zeit { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.teamzeile .wer { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.teamzeile.ich .wer { font-weight: 700; color: var(--laub); }
.teamzeile.offen .wer a { font-weight: 600; }
.zeiten-tabelle td, .zeiten-tabelle th { white-space: nowrap; }
.zeiten-tabelle tr.summe td { border-top: 2px solid var(--linie); }
/* Speisekarte (Admin) */
.kartenliste { list-style: none; margin: 0; padding: 0; }
.kartenliste li { display: flex; justify-content: space-between; gap: .8rem; padding: .4rem 0; border-bottom: 1px solid var(--linie-leise); }
.kartenliste li:last-child { border-bottom: 0; }
.kartenliste li > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.kartenliste .preis { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aenderung-formulare { display: grid; gap: .3rem; }
.aenderung-formulare details { border-bottom: 1px solid var(--linie-leise); padding: .3rem 0; }
.aenderung-formulare form { display: grid; gap: .4rem; margin-top: .4rem; max-width: 36rem; }
.aenderung { display: flex; justify-content: space-between; gap: .8rem; align-items: center; padding: .45rem 0;
  border-bottom: 1px solid var(--linie-leise); flex-wrap: wrap; }
.aenderung > div:first-child { min-width: 0; flex: 1 1 18rem; overflow-wrap: anywhere; }
/* Ausverkauft / Einkauf (App) */
.aus-form { display: grid; gap: .4rem; }
.aus-form input { width: 100%; box-sizing: border-box; }
.aus-zeile { justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid var(--linie-leise); }
.aus-zeile:last-child { border-bottom: 0; }
.aus-zeile > span { min-width: 0; overflow-wrap: anywhere; }
.entwurf-text { padding: .5rem .7rem; border-left: 3px solid var(--linie-leise); background: rgba(0,0,0,.03); }
/* Terminal: Ausverkauft melden */
.terminal-aus { max-width: 900px; margin: 1rem auto; display: grid; gap: .6rem; }
.terminal-aus input { width: 100%; box-sizing: border-box; font-size: 1.1rem; min-height: 52px; }
.terminal-aus-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.terminal-aus-liste button { min-height: 72px; flex-direction: column; font-size: 1.05rem; }
.terminal-aus-liste small { opacity: .7; font-size: .8rem; }

/* Verfügbarkeitsabfrage (TW-26), Handy zuerst: große Tippflächen, ein Daumen reicht */
.abfrage-woche { border: 1px solid var(--linie); border-radius: var(--radius-karte); margin: 0 0 1rem; padding: .75rem;
  background: var(--flaeche); }
.abfrage-woche legend { font-family: var(--schrift-marke); font-weight: 700; font-size: 1.3rem; padding: 0 .35rem; }
.tagliste { list-style: none; margin: 0 0 .75rem; padding: 0; }
.tag-zeile { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--linie-leise); }
.tag-zeile:last-child { border-bottom: 0; }
.tag-name { flex: 0 0 5.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tipp-reihe { display: flex; flex: 1; flex-wrap: wrap; gap: .5rem; }
.tipp { position: relative; flex: 1 1 0; min-width: 3.25rem; margin: 0; }
.tipp input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tipp span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px;
  padding: .3rem .5rem; border: 1.5px solid var(--linie); border-radius: var(--radius); background: var(--weiss);
  color: var(--text); font-weight: 700; text-align: center; line-height: 1.2;
  transition: background var(--dauer), border-color var(--dauer); }
.tipp small { font-weight: 400; font-size: .8rem; color: var(--text-leise); font-variant-numeric: tabular-nums; }
.tipp input:checked + span { background: var(--primaer); border-color: var(--primaer); color: var(--weiss); }
.tipp input:checked + span small { color: var(--farn); }
.tipp input:focus-visible + span { outline: 3px solid var(--akzent); outline-offset: 2px; }
.tipp.breit { display: block; margin: 0 0 .75rem; }
.tipp.nicht input:checked + span { background: var(--flaeche-zwei); border-color: var(--text); color: var(--text); }
.tipp-gruppe { margin: .5rem 0 .25rem; }
.tipp-gruppe .gruppe-titel { display: block; font-size: .9rem; color: var(--text-leise); margin-bottom: .3rem; }
.speichern-leiste { position: sticky; bottom: 0; padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--hintergrund) 75%, transparent); }
.speichern-leiste button { width: 100%; min-height: 52px; font-size: 1.1rem; }
/* Übersicht für die Planung: Tabelle am PC, Tagesliste am Handy */
.nur-handy { display: none; }
@media (max-width: 700px) { .nur-pc { display: none; } .nur-handy { display: block; } }
.tagkarte { padding: .5rem 0; border-bottom: 1px solid var(--linie-leise); }
.tagkarte .kopf { display: flex; justify-content: space-between; font-weight: 700; }
.tagkarte .namen { color: var(--text-leise); font-size: .95rem; }
.abfrage-uebersicht td { text-align: center; }
.abfrage-woche .nicht { margin-top: .25rem; }
.abfrage-uebersicht th[scope="row"] { white-space: nowrap; font-weight: normal; }
.abfrage-uebersicht tr.wochenkopf th { text-align: left; background: var(--linie-leise); }
.abfrage-uebersicht td.ja { background: var(--gut-flaeche); color: var(--gut); }
.abfrage-uebersicht td.fehlt { color: var(--warn); }

/* Heute: Zu-tun-Liste und 14-Tage-Streifen (TW-45) */
.karte.zutun { border-left: 5px solid var(--honig); }
.zutun ul { list-style: none; margin: 0; padding: 0; }
.zutun li { display: flex; align-items: center; gap: .9rem; padding: .55rem 0; border-top: 1px solid var(--linie-leise); }
.zutun li:first-child { border-top: 0; }
.zutun li .zahl-gross { font-size: 1.9rem; min-width: 2.6rem; text-align: right; }
.zutun li.rot .zahl-gross { color: var(--fehler); } .zutun li.gelb .zahl-gross { color: var(--warn); }
.zutun li .was { flex: 1; }
.zutun li .knopf { white-space: nowrap; }
@media (max-width: 560px) { .zutun li { flex-wrap: wrap; gap: .3rem .9rem; } .zutun li .was { flex: 1 1 calc(100% - 3.6rem); }
  .zutun li .knopf { margin-left: 3.5rem; } }
.tagstreifen { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: .3rem; margin-bottom: .6rem; }
.tagstreifen a { display: flex; flex-direction: column; align-items: center; padding: .35rem 0; border-radius: var(--radius);
  text-decoration: none; color: var(--text); font-size: .8rem; line-height: 1.25; background: var(--flaeche-zwei); }
.tagstreifen a .wt { font-weight: 700; } .tagstreifen a .stand { font-family: var(--schrift-zahl); font-size: 1.05rem; font-weight: 700; }
.tagstreifen a .ev { font-size: .65rem; font-weight: 700; color: var(--info); }
.tagstreifen a.gruen { background: var(--gut-flaeche); }
.tagstreifen a.gelb { background: var(--warn-flaeche); }
.tagstreifen a.rot { background: var(--fehler-flaeche); color: var(--fehler); }
.tagstreifen a:hover { outline: 2px solid var(--linie); }
@media (max-width: 760px) { .tagstreifen { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* Plan: Klärliste gebündelt, Hilfen eingeklappt, Tagesansicht am Handy (TW-45) */
.klaeren { list-style: none; margin: 0; padding: 0; }
.klaeren li { display: flex; gap: .4rem 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: .65rem 0; border-top: 1px solid var(--linie-leise); }
.klaeren li > div { flex: 1 1 22rem; }
.klaeren li.rot strong { color: var(--fehler); }
.klaeren .knoepfe { display: flex; gap: .4rem; flex-wrap: wrap; }
details.hilfe { margin-top: .5rem; } details.hilfe > summary { cursor: pointer; color: var(--primaer); }
details.karte > summary { cursor: pointer; list-style-position: inside; }
details.karte > summary h2.inline { display: inline; margin: 0; }
details.karte[open] > summary { margin-bottom: .6rem; }
.tagwahl { display: none; }
@media (max-width: 760px) {
  .tagwahl.an { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; position: sticky;
    top: var(--kopf-hoehe); z-index: 5; background: var(--hintergrund); padding: .4rem 0; margin-bottom: .4rem; }
  .tagwahl a { display: flex; flex-direction: column; align-items: center; padding: .3rem 0; border-radius: var(--radius);
    background: var(--flaeche-zwei); color: var(--text); text-decoration: none; font-weight: 700; font-size: .85rem; line-height: 1.2; }
  .tagwahl a span { font-weight: 400; font-size: .75rem; }
  .tagwahl a b { color: var(--fehler); font-size: .75rem; }
  .tagwahl a.heute { outline: 2px solid var(--honig); }
  .tagwahl a.aktiv { background: var(--laub); color: var(--weiss); } .tagwahl a.aktiv b { color: var(--weiss); }
  .woche.tagesansicht > .tag:not(.gewaehlt) { display: none; }
}
@media (max-width: 560px) {
  .schritte { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
  .schritte form, .schritte button, .schritte .knopf { width: 100%; }
  .schritte button, .schritte .knopf { font-size: .85rem; padding-left: .4rem; padding-right: .4rem; }
}

/* Team: Filter, Stufen, Hinweise in Klartext (TW-45) */
.filter { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.filter a { border: 1px solid var(--linie); border-radius: 999px; padding: .2rem .8rem; font-size: .85rem; color: var(--text);
  text-decoration: none; }
.filter a[aria-current="page"] { background: var(--farn); border-color: var(--farn); font-weight: 600; }
.stufe { display: inline-block; min-width: 1.1em; text-align: center; font-size: .75rem; font-weight: 700; border-radius: 4px;
  background: var(--flaeche-zwei); color: var(--text); }
.hinweis { font-weight: 600; } .hinweis.gelb { color: var(--warn); } .hinweis.rot { color: var(--fehler); }
/* Personenseite: zwei breite Spalten statt vier schmaler (TW-45) */
.person-raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.person-raster .karte { margin-bottom: 0; scroll-margin-top: calc(var(--kopf-hoehe) + 1rem); }
.speichern-leiste { position: sticky; bottom: 0; padding: .6rem 0; background: linear-gradient(transparent, var(--hintergrund) 35%); z-index: 4; }
.sprung { margin: -.4rem 0 1rem; }
/* Recht: Befunde je Regel gebündelt (TW-45) */
details.befund { border-top: 1px solid var(--linie-leise); padding: .55rem 0; }
details.befund:first-child { border-top: 0; }
details.befund > summary { cursor: pointer; }
details.befund table { margin-top: .4rem; }
.nowrap { white-space: nowrap; }

/* Plan von Hand ändern (TW-27 P3) */
.tag details.bearbeiten { margin-top: .5rem; }
.tag details.bearbeiten form { margin-top: .4rem; align-items: end; }
.tag details.bearbeiten label.breit { flex: 1 1 12rem; }
.tag details.bearbeiten label.breit input { width: 100%; }
.tag .verlauf-link { display: inline-block; margin-top: .4rem; }
.verlauf-zeile { padding: .5rem 0; border-bottom: 1px solid var(--linie); }
/* Am Handy: alles, was man antippt, mindestens 44 px hoch */
@media (max-width: 760px) {
  button.klein, .knopf.klein, select, input[type=time], input[type=date], .tag details > summary { min-height: 44px; }
  .tag details.bearbeiten form { flex-direction: column; align-items: stretch; }
}

/* Handlungen am Handy: ein Tipp, volle Breite, mindestens 48 px (TW-26, Luca 19.10.2026) */
.handlungen { display: flex; gap: .5rem; margin-top: .5rem; }
.handlungen > form { flex: 1; margin: 0; }
.handlungen > a.handlung { flex: 1; }
.tausch-vorschlag { border-top: 1px solid var(--linie, #ddd); margin-top: .5rem; padding-top: .5rem; }
.handlung { width: 100%; min-height: 48px; font-size: 1rem; }
.abfrage-eintrag { display: flex; flex-direction: column; gap: .5rem; padding: .3rem 0; }
@media (min-width: 701px) { .handlungen { max-width: 22rem; } .abfrage-eintrag .handlung { max-width: 16rem; } }
.woche-klapp { border-bottom: 1px solid var(--linie); padding: .25rem 0; }
.woche-klapp > summary { min-height: 48px; display: flex; align-items: center; gap: .5rem; cursor: pointer;
  font-family: var(--schrift-marke); font-weight: 700; font-size: 1.25rem; }
.chip { font-family: var(--schrift-text); }
/* Termine (TW-26): ruhig, mit farbiger Kante */
.termine { list-style: none; margin: 0 0 .75rem; padding: 0; }
.termin { display: flex; gap: .6rem; padding: .5rem .65rem; margin-bottom: .4rem; background: var(--flaeche-zwei);
  border-left: 3px solid var(--akzent); border-radius: var(--radius); }
.termin-tag { flex: 0 0 4.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.teamtag .termin-tag { display: none; }
/* Kopfzeile ohne Wortmarke (Luca 20.10.2026): nur „Personal“ */
.marke-wort { font-family: var(--schrift-marke); font-weight: 800; font-size: 1.25rem; line-height: 1; color: var(--primaer);
  letter-spacing: -.01em; }

/* Übersichtlicher Aufbau der App (Luca 23.10.2026): Postfach im Kopf, je Schicht eine Aktionszeile, Seltenes als Liste */
.kopf-postfach { font-weight: 700; text-decoration: none; color: var(--primaer); display: inline-flex; align-items: center; gap: .35rem;
  min-height: 44px; }
.schicht-aktionen { display: flex; flex-wrap: wrap; align-items: start; gap: .25rem 1rem; }
.schicht-aktionen > details { flex: 1 1 100%; }
.schicht-aktionen > details:not([open]) { flex: 0 1 auto; }
.liste-weiteres { padding: .25rem 1.2rem; }
.liste-weiteres > details, .liste-weiteres > .zeile-link { border-bottom: 1px solid var(--linie-leise); }
.liste-weiteres > :last-child { border-bottom: 0; }
/* Zeilen der Liste gleich, ob Aufklapper oder Link: 52 px hoch, Winkel links fest; Titel und Untertitel laufen als Text
   daneben – reicht der Platz nicht, bricht der Untertitel unter dem Titel um, nicht unter den Winkel */
.liste-weiteres > details > summary, .liste-weiteres > .zeile-link { display: block; position: relative; min-height: 52px;
  padding: 14px 0 14px 1.55em; color: var(--text); font-weight: 700; font-size: 1rem; line-height: 1.5; }
.liste-weiteres > details[open] { padding-bottom: .9rem; }
.liste-weiteres > .zeile-link { text-decoration: none; }
.liste-weiteres > details > summary::before, .liste-weiteres > .zeile-link::before { position: absolute; left: 0;
  top: calc(14px + .49em); }
.liste-weiteres > .zeile-link::before { content: ""; width: .4em; height: .4em; margin: 0 0 0 .1em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.liste-weiteres > details > summary .klein, .liste-weiteres > .zeile-link .klein { font-weight: 400; display: inline-block; }
/* Leise Aktion neben der Checkliste: sieht aus wie ein Aufklapper, nicht wie ein großer Knopf */
button.text-knopf { background: none; border: 0; color: var(--text-leise); font-weight: 600; font-size: .9rem; min-height: 44px;
  padding: 0; text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: .2em; }
button.text-knopf:hover { background: none; color: var(--primaer); }
.schicht-aktionen > form { margin: .2rem 0 0; }
/* Formulare: Felder in untereinander stehenden Labels nutzen die Breite (bis 36rem), in Zeilen (.zeile) bleiben sie schmal */
form label > input:not([type=checkbox]):not([type=radio]):not([type=hidden]), form label > textarea, form label > select { width: 100%; max-width: 36rem; }
form .zeile label > input:not([type=checkbox]):not([type=radio]), form .zeile label > select, form.zeile label > input:not([type=checkbox]):not([type=radio]),
form.zeile label > select { width: auto; max-width: 100%; }
/* Einklappbare Nebenteile innerhalb von Karten (Weitere Tage, Person einweisen) */
details.weitere-tage > summary, details.einweisen > summary { margin: .5rem 0; }
/* Unterseiten der App: „‹ Teamplan“ als Titel statt „Personal“ + kleiner Beschriftung (Luca 23.10.2026) */
.app-kopf .zurueck ~ .marke-wort { display: none; }
.app-kopf .zurueck ~ .label { margin: 0 auto 0 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; text-transform: none;
  color: var(--text); }
.app-kopf .zurueck { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; }
/* Teamplan: leerer Tag als eine Zeile */
.teamtag-leer { display: flex; gap: .5rem; align-items: baseline; padding: .55rem 1.2rem; margin-bottom: .5rem;
  border: 1px dashed var(--linie); border-radius: var(--radius-karte); color: var(--text-leise); }
.teamtag-leer strong { color: var(--text); font-weight: 700; }
.wochenwahl .knopf.klein { font-size: 1.4rem; min-width: 44px; min-height: 44px; padding: 0 .6rem; }
/* nur für Screenreader (Überschrift, Spaltenkopf) */
.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; }
.app-kopf .kopf-links { display: inline-flex; gap: 1rem; }
/* Links im dunklen Stempel-Kasten hell (Kontrast) */
.stempel a.stempel-link { display: inline-block; margin-top: .75rem; color: var(--creme); }
