/* Jumpboard: Grundlayout (Variante A) und Bausteine. Tokens in tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--seite);
  color: var(--text);
  font-family: var(--schrift);
  font-size: var(--schrift-basis);
  line-height: 1.5;
}
[x-cloak] { display: none !important; }
a { color: var(--akzent-schrift); }
h1, h2, h3 { line-height: 1.3; margin: 0; }
h1 { font-size: var(--schrift-titel); font-weight: 700; line-height: 1.25; }
h2 { font-size: var(--schrift-h2); font-weight: 700; }
h3 { font-size: var(--schrift-h3); font-weight: 500; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.leise { color: var(--text-neben); font-size: var(--schrift-klein); }
.symbole { position: absolute; width: 0; height: 0; overflow: hidden; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--hoehe-button); padding: 0 24px; border-radius: var(--ecke-button);
  font: 500 var(--schrift-basis)/1.2 var(--schrift); text-decoration: none; cursor: pointer;
  border: 2px solid var(--text); background: var(--karte); color: var(--text);
  transition: background-color .12s, color .12s;
}
.knopf:hover { background: var(--flaeche-grau); }
.knopf-primaer { background: var(--jump-rot); border-color: var(--jump-rot); color: #FFFFFF; }
.knopf-primaer:hover { background: var(--jump-rot-dunkel); border-color: var(--jump-rot-dunkel); }
.knopf-gross { min-height: var(--hoehe-button-gross); font-size: var(--schrift-gross); font-weight: 700; width: 100%; }
.knopf-leise { border-color: var(--rahmen); }
.knopf-klein { min-height: 44px; padding: 0 18px; font-size: var(--schrift-klein); }
.knopf[disabled] { opacity: .55; cursor: not-allowed; }
.knopf svg { flex: none; }
.link-knopf { background: none; border: none; padding: 0; font: inherit; color: var(--akzent-schrift); text-decoration: underline; cursor: pointer; min-height: 44px; }

/* Wahlknöpfe (Pillen), z. B. PIN/Passwort, Farbmodus, Rolle */
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl label, .wahl .wahl-knopf {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: var(--hoehe-button); padding: 8px 20px; border-radius: var(--ecke-button);
  border: 2px solid var(--rahmen-leise); background: var(--karte); color: var(--text);
  font-weight: 500; cursor: pointer;
}
.wahl label:has(input:checked), .wahl .wahl-knopf[aria-pressed="true"] {
  background: var(--gewaehlt); border-color: var(--gewaehlt); color: var(--gewaehlt-text);
}
.wahl label:has(input:focus-visible) { outline: 3px solid var(--text); outline-offset: 3px; }
.wahl-gross { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wahl-gross label { border-radius: 16px; min-height: 84px; align-items: flex-start; padding: 12px 16px; }
.wahl-gross .unter { font-size: var(--schrift-klein); font-weight: 400; opacity: .85; }

/* ---------- Felder ---------- */
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label, .feld .feld-titel { font-weight: 500; }
.feld input[type=text], .feld input[type=password], .feld input[type=time], .feld select, .feld input:not([type]) {
  font: 400 var(--schrift-basis) var(--schrift); min-height: var(--hoehe-button); padding: 10px 14px;
  border: 2px solid var(--rahmen); border-radius: var(--ecke-feld); background: var(--karte); color: var(--text); width: 100%;
}
.feld input:focus, .feld select:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.feld .fehlertext, .fehlerliste { color: var(--status-ueberfaellig); font-size: var(--schrift-klein); font-weight: 500; margin: 0; padding: 0; list-style: none; }
.feld-hilfe { color: var(--text-neben); font-size: var(--schrift-klein); }
.feldgruppe { border: 0; padding: 0; margin: 0; min-width: 0; }
.feldgruppe legend { padding: 0; margin-bottom: 8px; font-weight: 500; }
.feldreihe { display: flex; flex-wrap: wrap; gap: 16px; }
.feldreihe > .feld { flex: 1 1 220px; min-width: 0; }
.eingabe-nummer { font-size: 1.625rem !important; letter-spacing: .08em; }
.eingabe-pin { font-size: 1.875rem !important; letter-spacing: .4em; text-align: center; }
.eingabe-gross { font-size: var(--schrift-gross) !important; }

/* ---------- Meldungen (bleiben stehen, kein Toast) ---------- */
.meldung { border-radius: var(--ecke-karte); padding: 14px 18px; font-size: 1.0625rem; }
.meldung-erfolg { background: var(--status-erledigt-flaeche); color: var(--status-erledigt); }
.meldung-fehler { background: var(--status-ueberfaellig-flaeche); color: var(--status-ueberfaellig); font-weight: 500; }
.meldung-info { background: var(--status-offen-flaeche); color: var(--status-offen); }
.meldung-warnung { background: var(--status-reparatur-flaeche); color: var(--status-reparatur); }
.meldungen { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Plaketten und Avatare ---------- */
.plakette { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: 999px; font-size: var(--schrift-klein); font-weight: 500; white-space: nowrap; }
.plakette-erledigt { background: var(--status-erledigt-flaeche); color: var(--status-erledigt); }
.plakette-offen { background: var(--status-offen-flaeche); color: var(--status-offen); }
.plakette-ueberfaellig { background: var(--status-ueberfaellig-flaeche); color: var(--status-ueberfaellig); }
.plakette-grau { background: var(--status-ausser-betrieb-flaeche); color: var(--status-ausser-betrieb); }
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; letter-spacing: .02em;
}
.avatar-klein { width: 32px; height: 32px; font-size: .875rem; }
.avatar-gross { width: 72px; height: 72px; font-size: 1.5rem; }
/* Person als Pille mit Avatar in der Personenfarbe (teile/_person.html) */
.person-pille { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 10px 2px 2px; border-radius: 999px; background: var(--flaeche-grau); color: var(--text); font-size: var(--schrift-klein); font-weight: 500; line-height: 1.3; white-space: nowrap; vertical-align: middle; }
.person-pille > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.person-pille .avatar-mini { width: 24px; height: 24px; font-size: .625rem; }
.personen-reihe { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; vertical-align: middle; }

/* ---------- Seitenleiste (Menüführung „Vorschlag C“, Felix 07.10.2026) ----------
   PC: dunkle Leiste links, einklappbar (Cookie jb_leiste, app.js; Klasse leiste-zu am <html> rendert der Server).
   Tablet (761–1099 px): immer schmal. Handy (bis 760 px): Leiste aus, flache Kopfzeile, unten feste Plätze und „Mehr“. */
.rahmen { display: flex; min-height: 100vh; }
.rahmen-haupt { flex: 1 1 auto; min-width: 0; }
/* z-index: „sticky“ macht die Leiste zu einer eigenen Ebene; ohne Wert lagen Menüs und Plaketten der Seite
   (z-index 15–30) über dem Verwaltungs-Fenster (Felix, 08.10.2026). Erinnerungen (50) bleiben darüber. */
.leiste {
  width: 264px; flex: none; position: sticky; top: 0; z-index: 40; height: 100vh; height: 100dvh; box-sizing: border-box;
  background: var(--kopf); color: #FFFFFF; display: flex; flex-direction: column;
}
.leiste-oben { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; }
.leiste-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 0 8px 10px; }
.leiste-logo img { height: 44px; width: auto; display: block; }
.leiste-klappe {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--kopf-knopf); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center;
}
.leiste-klappe:hover { background: #55524F; }
.leiste-uhr { padding: 2px 14px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--kopf-knopf); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; line-height: 1.1; }
.leiste-uhr .uhrzeit { font-size: 1.75rem; font-weight: 700; }
.leiste-uhr .datum { font-size: var(--schrift-klein); color: #BFBFBF; }
.leiste-nav { display: flex; flex-direction: column; gap: 2px; }
.leiste-nav a, .leiste-verwaltung > summary {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 10px;
  color: #E4E2DF; text-decoration: none; font-weight: 500; font-size: var(--schrift-basis); cursor: pointer; list-style: none;
}
.leiste-nav svg, .leiste-verwaltung > summary svg { flex: none; }
.leiste-verwaltung > summary::-webkit-details-marker { display: none; }
.leiste-nav a:hover, .leiste-verwaltung > summary:hover { background: var(--kopf-knopf); color: #FFFFFF; }
.leiste-nav a[aria-current="page"] { background: var(--jump-rot); color: #FFFFFF; }
.leiste a:focus-visible, .leiste summary:focus-visible, .leiste button:focus-visible { outline: 3px solid #FFFFFF; outline-offset: -3px; }
.leiste-verwaltung { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--kopf-knopf); }
.lv-pfeil { margin-left: auto; transition: transform .15s; }
details[open] > summary .lv-pfeil { transform: rotate(180deg); }
.lv-liste, .lv-liste ul { list-style: none; margin: 0; padding: 0; }
.lv-liste { display: flex; flex-direction: column; padding-bottom: 6px; }
.lv-gruppe { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #A8A4A0; padding: 12px 14px 4px 50px; }
.lv-punkt {
  display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 14px 0 50px; border-radius: 10px;
  color: #D9D6D2; text-decoration: none; font-size: var(--schrift-klein); font-weight: 500;
}
.lv-punkt:hover { background: var(--kopf-knopf); color: #FFFFFF; }
.lv-punkt[aria-current="page"] { background: var(--kopf-knopf); color: #FFFFFF; box-shadow: inset 4px 0 0 var(--jump-rot); }
.leiste-fuss { flex: none; padding: 12px; border-top: 1px solid var(--kopf-knopf); display: flex; flex-direction: column; gap: 10px; }
.leiste-ich { display: flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; padding: 4px 8px; border-radius: 10px; min-height: 48px; }
.leiste-ich:hover, .leiste-ich[aria-current="page"] { background: var(--kopf-knopf); }
.leiste-ich .name { display: block; font-weight: 700; }
.leiste-ich .unter { display: block; font-size: .875rem; color: #BFBFBF; }
.leiste-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 8px; }
.leiste-knoepfe form { margin: 0; }
/* Glocke in der Leiste: Liste öffnet nach oben über den Inhalt */
.leiste .glocke-menue { top: auto; right: auto; left: 0; bottom: calc(100% + 8px); }
.kopf-rund { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #55524F; background: transparent; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.kopf-rund:hover { background: var(--kopf-knopf); }
.kopf-handy, .unten-platz { display: none; }
[data-theme="dunkel"] .leiste { border-right: 1px solid var(--rahmen-leise); }
@media (prefers-color-scheme: dark) { [data-theme="automatisch"] .leiste { border-right: 1px solid var(--rahmen-leise); } }

/* Schmale Leiste (136 px, Logo bleibt oben lesbar): Tablet immer … */
@media (min-width: 761px) and (max-width: 1099px) {
  .leiste { width: 136px; }
  .leiste-oben { padding: 12px 8px 8px; }
  .leiste-kopf { flex-direction: column; padding: 2px 0 6px; }
  .leiste-klappe { display: none; }
  .leiste-logo img { width: 116px; height: auto; }
  .leiste-uhr { flex-direction: column; align-items: center; padding: 2px 0 10px; }
  .leiste-uhr .uhrzeit { font-size: 1.25rem; }
  .leiste-uhr .datum { display: none; }
  .leiste-nav a, .leiste-verwaltung > summary { flex-direction: column; justify-content: center; gap: 2px; padding: 8px 2px; min-height: 60px; font-size: .875rem; text-align: center; }
  .leiste-verwaltung > summary .lv-pfeil { display: none; }
  /* Auf Verwaltungsseiten ist das Menü vom Server offen: schmal erst nach Klick als Fenster zeigen. */
  .leiste-verwaltung[data-vom-server] > .lv-flyout { display: none; }
  .leiste-verwaltung[data-aktiv] > summary { background: var(--jump-rot); color: #FFFFFF; }
  .leiste-verwaltung > .lv-flyout { position: fixed; left: 136px; top: 0; bottom: 0; width: 280px; overflow-y: auto; z-index: 40; background: var(--kopf); border-left: 1px solid var(--kopf-knopf); box-shadow: 6px 0 20px rgba(0,0,0,.3); padding: 12px 8px; box-sizing: border-box; }
  .leiste-verwaltung > .lv-flyout .lv-gruppe, .leiste-verwaltung > .lv-flyout .lv-punkt { padding-left: 14px; }
  .leiste-fuss { align-items: center; padding: 10px 6px; }
  .leiste-ich { justify-content: center; }
  .leiste-ich-text { display: none; }
  .leiste-knoepfe { flex-direction: column; align-items: center; padding: 0; }
}
/* … und am PC, wenn eingeklappt (gleiche Regeln). */
@media (min-width: 1100px) {
  .leiste-zu .leiste { width: 136px; }
  .leiste-zu .leiste-oben { padding: 12px 8px 8px; }
  .leiste-zu .leiste-kopf { flex-direction: column-reverse; padding: 2px 0 6px; }
  .leiste-zu .leiste-klappe svg { transform: rotate(180deg); }
  .leiste-zu .leiste-logo img { width: 116px; height: auto; }
  .leiste-zu .leiste-uhr { flex-direction: column; align-items: center; padding: 2px 0 10px; }
  .leiste-zu .leiste-uhr .uhrzeit { font-size: 1.25rem; }
  .leiste-zu .leiste-uhr .datum { display: none; }
  .leiste-zu .leiste-nav a, .leiste-zu .leiste-verwaltung > summary { flex-direction: column; justify-content: center; gap: 2px; padding: 8px 2px; min-height: 60px; font-size: .875rem; text-align: center; }
  .leiste-zu .leiste-verwaltung > summary .lv-pfeil { display: none; }
  .leiste-zu .leiste-verwaltung[data-vom-server] > .lv-flyout { display: none; }
  .leiste-zu .leiste-verwaltung[data-aktiv] > summary { background: var(--jump-rot); color: #FFFFFF; }
  .leiste-zu .leiste-verwaltung > .lv-flyout { position: fixed; left: 136px; top: 0; bottom: 0; width: 280px; overflow-y: auto; z-index: 40; background: var(--kopf); border-left: 1px solid var(--kopf-knopf); box-shadow: 6px 0 20px rgba(0,0,0,.3); padding: 12px 8px; box-sizing: border-box; }
  .leiste-zu .leiste-verwaltung > .lv-flyout .lv-gruppe, .leiste-zu .leiste-verwaltung > .lv-flyout .lv-punkt { padding-left: 14px; }
  .leiste-zu .leiste-fuss { align-items: center; padding: 10px 6px; }
  .leiste-zu .leiste-ich { justify-content: center; }
  .leiste-zu .leiste-ich-text { display: none; }
  .leiste-zu .leiste-knoepfe { flex-direction: column; align-items: center; padding: 0; }
}

/* Druck: nur der Inhalt */
@media print {
  .leiste, .kopf-handy, .unten-nav { display: none !important; }
  .rahmen { display: block; }
}

/* ---------- Seitenrahmen ---------- */
/* Volle Breite auf jedem Bildschirm (Felix, 07.10.2026: auf 4K keine leeren Ränder). Nur Formular- und
   Detailseiten (inhalt-schmal, inhalt-mittel) bleiben zum Lesen schmal und mittig. */
.inhalt { margin: 0 auto; padding: 24px clamp(24px, 2.5vw, 56px) 48px; display: flex; flex-direction: column; gap: 22px; }
.inhalt-schmal { max-width: 900px; }
.karte { background: var(--karte); border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); box-shadow: var(--schatten-karte); padding: 24px; }
.karte > * + * { margin-top: 16px; }
.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ueberzeile { font-size: var(--schrift-klein); font-weight: 500; color: var(--text-neben); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Startseite Variante A ---------- */
.personenleiste { display: flex; flex-direction: column; gap: 10px; flex: 1 1 640px; }
/* Direkt in der Seite (Einkauf, Erledigt diese Woche): nur so hoch wie der Inhalt, sonst wird die Basis 640px zur Höhe. */
main > .personenleiste { flex: 0 0 auto; }
.personen { display: flex; flex-wrap: wrap; gap: 10px; }
/* Einklappbare Reihe: eingeklappt genau eine Zeile (Höhe eines Knopfs), Rest per „Mehr anzeigen“. */
.einzeilig { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.personen.eingeklappt { max-height: 60px; overflow: hidden; }
.mehr-knopf { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 14px; border: none; border-radius: 999px; background: none; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }
.mehr-knopf:hover { background: var(--flaeche-grau); }
.mehr-knopf[aria-expanded="true"] svg { transform: rotate(180deg); }
.person-knopf {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 20px 6px 8px;
  border-radius: 999px; border: 2px solid var(--rahmen-leise); background: var(--karte); color: var(--text);
  text-decoration: none; font-weight: 500; font-size: var(--schrift-basis);
}
.person-knopf:hover { border-color: var(--text); }
.person-knopf[aria-current="true"] { background: var(--gewaehlt); border-color: var(--gewaehlt); color: var(--gewaehlt-text); }
.person-knopf .avatar-text { background: var(--flaeche-grau); color: var(--text); }
.raster { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.spalten { flex: 999 1 720px; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.spalte { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.spalte-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px; }
.spalte-kopf h2 { font-size: 1.5rem; }
.spalte-balken { height: 6px; background: var(--rahmen-leise); border-radius: 3px; }
/* Jede Spalte scrollt für sich (Felix, 07.10.2026): ab Tablet-Breite bleibt die Seite stehen, nur die Liste
   der Spalte scrollt. Am Handy (bis 760px) stehen die Spalten untereinander und die Seite scrollt wie bisher. */
.spalte-liste { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 761px) {
  .spalte-liste {
    max-height: max(320px, calc(100vh - 330px)); overflow-y: auto; overscroll-behavior: contain;
    padding: 2px 6px 6px 2px; margin: -2px -6px -6px -2px; scrollbar-gutter: stable;
  }
  .spalte-liste:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: var(--ecke-karte); }
}
/* PC, Startseite „Heute“: Die Seite selbst scrollt nicht mehr, sie ist genau so hoch wie das Fenster. Jede
   Aufgabenspalte und die Kachel-Spalte rechts scrollen für sich und reichen bis zum unteren Rand; auf größeren
   Bildschirmen passen entsprechend mehr Aufgaben hinein (Felix, 16.10.2026, Theken-PC 1080p). Die Spalten
   stehen dafür immer nebeneinander. Handy und Tablet (bis 1099 px) bleiben wie bisher. */
@media (min-width: 1100px) {
  .inhalt-heute { height: 100vh; height: 100dvh; box-sizing: border-box; overflow: hidden; padding-bottom: 16px; }
  .inhalt-heute > * { flex: none; }
  .inhalt-heute > .az-raster { flex: 1 1 auto; min-height: 0; flex-wrap: nowrap; align-items: stretch; }
  .inhalt-heute .az-links { min-height: 0; }
  .inhalt-heute .az-links > .spalten { flex: 1 1 auto; min-height: 0; flex-wrap: nowrap; align-items: stretch; }
  .inhalt-heute .spalte { min-height: 0; }
  .inhalt-heute .spalte-liste { flex: 1 1 auto; min-height: 0; max-height: none; }
  .inhalt-heute .seitenleiste {
    flex: 1 1 300px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
    padding: 2px 6px 6px 2px; margin: -2px -6px -6px -2px;
  }
}
.leer { padding: 20px; border: 2px dashed var(--rahmen-leise); border-radius: var(--ecke-karte); color: var(--text-neben); font-size: var(--schrift-klein); }
.seitenleiste { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* Heute: Kopf (Personen, Filter, Knöpfe) und Spalten links, Kacheln rechts ab ganz oben (Felix, 07.10.2026) */
.az-links { flex: 999 1 720px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.az-links > .spalten { flex: none; }
.leisten-karte { display: block; text-decoration: none; color: var(--text); background: var(--karte); border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); padding: 20px; box-shadow: var(--schatten-karte); }
.leisten-karte:hover { border-color: var(--text); }
.leisten-karte h2 { font-size: var(--schrift-gross); display: flex; align-items: center; gap: 10px; }
.leisten-karte p { margin: 8px 0 0; color: var(--text-neben); font-size: var(--schrift-klein); }

/* Untere Navigation am Handy */
.unten-nav { display: none; }

/* ---------- Anmeldung ---------- */
.anmelde-seite {
  min-height: 100vh; background: #1E1D1C; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; padding: 40px 16px;
}
.anmelde-seite .logo { height: 64px; width: auto; }
.anmelde-karte {
  width: 100%; max-width: 460px; background: var(--karte); color: var(--text); border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35); padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.anmelde-karte.breit { max-width: 960px; }
.anmelde-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.anmelde-kopf h1 { font-size: 1.75rem; }
.geraet-plakette { font-size: var(--schrift-klein); font-weight: 500; padding: 4px 12px; border-radius: 999px; }
.geraet-studio { background: var(--status-erledigt-flaeche); color: var(--status-erledigt); }
.geraet-unterwegs { background: var(--status-ausser-betrieb-flaeche); color: var(--status-ausser-betrieb); }
.anmelde-teile { display: flex; flex-wrap: wrap; gap: 28px; }
.anmelde-teile > * { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kachel {
  min-height: 104px; border-radius: 16px; border: 2px solid var(--rahmen-leise); background: var(--karte); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; font-size: var(--schrift-basis); text-decoration: none; padding: 8px; text-align: center; word-break: break-word;
}
.kachel:hover { border-color: var(--text); }
.kachel[aria-current="true"] { background: var(--gewaehlt); border-color: var(--gewaehlt); color: var(--gewaehlt-text); }
.kachel-zusatz { display: block; font-size: var(--schrift-klein); font-weight: 400; color: var(--text-neben); }
.kachel[aria-current="true"] .kachel-zusatz { color: inherit; }
.kachel-schicht { border-style: dashed; }
.anmelde-zurueck { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }

/* Schichtleiste am Studio-Gerät (Kontowechsel, Felix 12.10.2026): wer in der Schicht ist, Wechsel per PIN */
.schichtleiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -8px 0 4px; padding: 10px 14px; background: var(--karte); border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); }
.schicht-titel { font-size: .875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-neben); margin-right: 4px; }
.schicht-person { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; box-sizing: border-box; padding: 4px 18px 4px 5px; border-radius: 999px; border: 2px solid var(--rahmen-leise); color: var(--text); text-decoration: none; font-weight: 500; }
.schicht-person .avatar { width: 36px; height: 36px; font-size: .875rem; }
a.schicht-person:hover { border-color: var(--text); }
button.schicht-person { background: none; font: inherit; cursor: pointer; }
button.schicht-person:hover { border-color: var(--text); }
/* Andere Person: eine Pille mit zwei Knöpfen, Name = wechseln, Tür dahinter = abmelden (Felix, 23.10.2026) */
.schicht-gruppe { display: inline-flex; align-items: stretch; max-width: 100%; border: 2px solid var(--rahmen-leise); border-radius: 999px; }
.schicht-gruppe:has(button.schicht-person:hover) { border-color: var(--text); }
.schicht-gruppe-vorgemerkt { border-style: dashed; border-color: var(--text-neben); }
.schicht-gruppe form { display: contents; }
.schicht-gruppe .schicht-person { border: none; min-height: 44px; padding-right: 12px; border-radius: 999px 0 0 999px; min-width: 0; }
.schicht-raus {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; min-height: 44px;
  padding: 0 4px 0 0; border: none; border-radius: 0 999px 999px 0; background: none; color: var(--text-neben); cursor: pointer;
}
.schicht-raus::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--rahmen-leise); }
.schicht-raus:hover { background: var(--flaeche-grau); color: var(--text); }
.schicht-gruppe button:focus-visible { outline-offset: 2px; position: relative; z-index: 1; }
.schicht-aktiv { background: var(--gewaehlt); border-color: var(--gewaehlt); color: var(--gewaehlt-text); }
.schicht-dazu { border-style: dashed; border-color: var(--rahmen); padding-left: 18px; }
/* Vom Schichtplan vorgemerkt, noch nicht angemeldet (bauphase-schichtplan §4.2): gestrichelt mit „ab 15:00“ */
.schicht-vorgemerkt { border-style: dashed; border-color: var(--text-neben); }
.schicht-name { display: inline-flex; flex-direction: column; line-height: 1.15; text-align: left; }
.schicht-ab { font-size: var(--schrift-klein); font-weight: 400; color: var(--text-neben); }
.schicht-ende { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; justify-content: space-between; }
.schicht-ende form { margin: 0; }
.schicht-abstand { flex: 1; }
.schichtleiste form { margin: 0; }
.hallo { font-size: var(--schrift-basis); color: var(--status-erledigt); font-weight: 500; }
.ziffernfeld { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ziffernfeld button {
  min-height: 58px; border-radius: 14px; border: none; background: var(--flaeche-grau); color: var(--text);
  font: 500 1.5rem var(--schrift); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ziffernfeld button:hover { background: var(--rahmen-leise); }
.ziffernfeld button:active { transform: scale(.97); }
.anmelde-fuss { color: #BFBFBF; font-size: var(--schrift-klein); text-align: center; max-width: 640px; }
.anmelde-klein { font-size: var(--schrift-klein); color: var(--text-neben); text-align: center; }
.nummer-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Verwaltung ---------- */
.reiter { display: flex; flex-wrap: wrap; gap: 8px; }
.reiter a { text-decoration: none; color: var(--text); font-weight: 500; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--rahmen-leise); min-height: 44px; display: inline-flex; align-items: center; }
.reiter a[aria-current="page"] { background: var(--gewaehlt); color: var(--gewaehlt-text); border-color: var(--gewaehlt); }
.liste-personen { flex: 1 1 340px; min-width: 0; padding: 0; overflow: hidden; }
.liste-personen a {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--rahmen-leise);
  text-decoration: none; color: var(--text);
}
.liste-personen a:first-child { border-top: none; }
.liste-personen a:hover { background: var(--flaeche-grau); }
.liste-personen a[aria-current="true"] { background: var(--flaeche-grau); box-shadow: inset 4px 0 0 var(--jump-rot); }
.liste-personen .wer { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.liste-personen .wer .rolle { font-size: var(--schrift-klein); color: var(--text-neben); }
.bearbeiten { flex: 2 1 520px; min-width: 0; }
.bereich-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.bereich-wahl label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--rahmen-leise); border-radius: var(--ecke-karte); cursor: pointer; }
.bereich-wahl input { width: 24px; height: 24px; margin: 0; accent-color: var(--status-erledigt); flex: none; }
.bereich-wahl .unter { display: block; font-size: .9375rem; color: var(--text-neben); }
.farb-wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.farb-wahl label { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border: 2px solid var(--rahmen-leise); border-radius: 999px; cursor: pointer; min-height: 44px; }
.farb-wahl label:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.farb-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.farb-wahl .punkt { width: 32px; height: 32px; border-radius: 50%; display: inline-block; }
.aktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 16px; border-top: 1px solid var(--rahmen-leise); }
.aktionen form { margin: 0; }
.aktionen .abstand { flex: 1; }
.zeilen > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--rahmen-leise); }
.zeilen > div:first-child { border-top: none; }
.zeilen .haupt { flex: 1 1 220px; font-weight: 500; }
.tabelle { width: 100%; border-collapse: collapse; font-size: var(--schrift-klein); }
.tabelle th, .tabelle td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--rahmen-leise); vertical-align: top; }
.tabelle th { background: var(--flaeche-grau); font-weight: 500; }
.tabelle-huelle { overflow-x: auto; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  /* Handy: flache Kopfzeile, Leiste aus, unten feste Plätze und „Mehr“ */
  .leiste { display: none; }
  .kopf-handy { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--kopf); padding: 8px 16px; }
  .kopf-handy .kopf-logo img { height: 34px; width: auto; display: block; }
  .kopf-handy-rechts { display: flex; align-items: center; gap: 10px; }
  .kopf-handy-ich { text-decoration: none; display: inline-flex; }
  .kopf-handy-ich .avatar { width: 44px; height: 44px; }
  .inhalt { padding: 16px 16px 112px; }
  h1 { font-size: 1.75rem; }
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unten-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: calc(0px - var(--unten-korrektur, 0px)); z-index: 10; background: var(--karte);
    border-top: 1px solid var(--rahmen-leise); box-shadow: 0 -2px 8px rgba(0,0,0,.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .unten-nav a {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px;
    color: var(--text-neben); text-decoration: none; font-size: 1rem; font-weight: 500; border-radius: 10px; text-align: center;
  }
  .unten-nav a[aria-current="page"] { color: var(--text); background: var(--jump-rot-hell); }
  .unten-nav a, .unten-nav .unten-platz, .unten-nav .mehr { flex: 1 1 0; min-width: 0; }
  .unten-nav .unten-platz { display: block; }
  .unten-nav .mehr { display: flex; }
  .unten-nav .mehr > summary {
    flex: 1; list-style: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; cursor: pointer;
    color: var(--text-neben); font-size: 1rem; font-weight: 500; border-radius: 10px;
  }
  .unten-nav .mehr > summary::-webkit-details-marker { display: none; }
  .unten-nav .mehr[open] > summary, .unten-nav .mehr-aktiv > summary { color: var(--text); background: var(--jump-rot-hell); }
  .mehr-blatt {
    position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom) - var(--unten-korrektur, 0px)); max-height: 72vh; overflow-y: auto;
    background: var(--karte); color: var(--text); border-radius: 18px 18px 0 0; padding: 8px 16px 16px; box-shadow: 0 -8px 24px rgba(0,0,0,.25);
  }
  .mehr-blatt .lv-gruppe { color: var(--text-neben); padding: 14px 4px 4px; }
  .unten-nav .mehr-blatt .lv-punkt {
    flex: none; flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; width: 100%; box-sizing: border-box;
    min-height: 52px; padding: 0 4px; border: 0; border-radius: 0; border-bottom: 1px solid var(--rahmen-leise);
    color: var(--text); background: none; font: 500 var(--schrift-basis) var(--schrift); list-style: none; cursor: pointer;
  }
  .unten-nav .mehr-blatt summary.lv-punkt::-webkit-details-marker { display: none; }
  .unten-nav .mehr-blatt .lv-punkt:hover { background: var(--flaeche-grau); }
  .unten-nav .mehr-blatt .lv-punkt[aria-current="page"] { background: var(--jump-rot-hell); box-shadow: none; }
  .unten-nav .mehr-blatt .mehr-verwaltung .lv-gruppe { padding-left: 36px; }
  .unten-nav .mehr-blatt .mehr-verwaltung .lv-liste .lv-punkt { padding-left: 36px; min-height: 46px; font-size: var(--schrift-klein); }
  .unten-nav .mehr-blatt form { margin: 0; }
  .unten-nav .mehr-blatt .lv-abmelden { color: var(--akzent-schrift); }
  .anmelde-karte { padding: 20px; }
}

/* Formulare in Karten */
.karte form { display: flex; flex-direction: column; gap: 16px; }
.karte form > .knopf { align-self: flex-start; }
.karte form.zeile { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }

/* Verwaltung: Übersicht „Team und Rechte“ (nur Liste, Kästen nebeneinander, Zeile für Zeile) */
.team-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.team-kopf h2 { margin: 0; }
.personen-uebersicht { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-bottom: 24px; }
.personen-uebersicht a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0; text-decoration: none; color: var(--text); }
.personen-uebersicht a > * + * { margin-top: 0; }
.personen-uebersicht a:hover { background: var(--flaeche-grau); }
.personen-uebersicht .wer { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.personen-uebersicht .wer .rolle { font-size: var(--schrift-klein); color: var(--text-neben); }


/* Farbwähler als Ausklappmenü (Personen, später auch Aufgabenbereiche) */
.farbwahl { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.farb-menue { position: relative; }
.farb-menue > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 16px 4px 6px;
  border: 2px solid var(--rahmen-leise); border-radius: 999px; cursor: pointer; background: var(--karte); font-weight: 500;
}
.farb-menue > summary::-webkit-details-marker { display: none; }
.farb-menue[open] > summary { border-color: var(--text); }
.farb-punkt { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-block; border: 1px solid var(--rahmen-leise); }
.farb-menue-liste {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(440px, calc(100vw - 48px));
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 8px;
  background: var(--karte); border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  max-height: 60vh; overflow-y: auto;
}
.farb-eintrag {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px; border: none; border-radius: 10px;
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.farb-eintrag:hover { background: var(--flaeche-grau); }
.farb-eintrag[aria-pressed="true"] { background: var(--flaeche-grau); font-weight: 700; }
.farb-eintrag[aria-pressed="true"] .farb-punkt { box-shadow: 0 0 0 2px var(--karte), 0 0 0 4px var(--text); }
.farb-menue-mehr { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; border-top: 1px solid var(--rahmen-leise); margin-top: 6px; padding-top: 6px; }
.farbwahl-eingabe { width: 32px; height: 32px; padding: 0; border: none; border-radius: 50%; background: none; cursor: pointer; }
@media (max-width: 600px) {
  /* Am Handy klappt das Menü über die ganze Breite auf statt nach rechts aus dem Bild. */
  .farbwahl { position: relative; }
  .farb-menue { position: static; }
  .farb-menue-liste { left: 0; right: 0; width: auto; }
}

/* Mehrfachauswahl als Ausklappmenü (sichtbare Bereiche) */
.auswahl-menue { position: relative; max-width: 560px; }
.auswahl-menue > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 16px;
  border: 2px solid var(--rahmen); border-radius: 12px; cursor: pointer; background: var(--karte); font-weight: 500;
}
.auswahl-menue > summary::-webkit-details-marker { display: none; }
/* Farbpunkt vor dem Namen (z. B. Bereich): Farbe und Name immer zusammen */
.farbpunkt { flex: none; display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.farbpunkt-leer { border: 2px solid var(--rahmen); background: transparent; }
.auswahl-eintrag .farbpunkt { margin-right: 0; }
.auswahl-menue[open] > summary { border-color: var(--text); }
.auswahl-menue[open] > summary svg { transform: rotate(180deg); }
.auswahl-menue-liste {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px;
  background: var(--karte); border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.auswahl-eintrag { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.auswahl-eintrag:hover { background: var(--flaeche-grau); }
.auswahl-eintrag input { width: 22px; height: 22px; margin: 0; accent-color: var(--status-erledigt); flex: none; }
.auswahl-eintrag .unter { display: block; font-size: .875rem; color: var(--text-neben); }
/* Lange Listen (z. B. 95 Geräte): Liste scrollt, Gruppen-Zwischenüberschriften, Suchzeile oben */
.auswahl-menue-liste { max-height: min(60vh, 480px); overflow-y: auto; overscroll-behavior: contain; }
.auswahl-gruppe { position: sticky; top: -8px; z-index: 1; margin: 6px -8px 0; padding: 6px 18px; background: var(--flaeche-grau); color: var(--text-neben); font-size: var(--schrift-klein); font-weight: 700; }
.auswahl-suche { position: sticky; top: -8px; z-index: 2; margin: -8px -8px 4px; padding: 10px 14px; min-height: 48px; border: none; border-bottom: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte) var(--ecke-karte) 0 0; background: var(--karte); color: var(--text); font: 400 var(--schrift-basis) var(--schrift); }
.auswahl-suche:focus { outline: none; border-bottom-color: var(--text); }
.auswahl-mit-suche .auswahl-gruppe { top: 40px; }
.auswahl-eintrag[hidden], .auswahl-gruppe[hidden], .auswahl-suche[hidden], .auswahl-nichts[hidden] { display: none; }
.auswahl-nichts { margin: 6px 10px; }
.auswahl-kopftext { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Kompakt am Handy (Regel: so wenig Höhe wie möglich) */
@media (max-width: 760px) {
  .reiter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .reiter a { padding: 8px 14px; white-space: nowrap; flex: none; }
  /* Mitarbeiter-Übersicht: mehrere Personen pro Zeile, Kachel senkrecht */
  /* Spaltenzahl passt sich der Breite an (schmales Handy 3, großes Handy/Tablet hochkant 4–6). */
  .personen-uebersicht { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
  .personen-uebersicht a { flex-direction: column; gap: 4px; padding: 8px 4px; text-align: center; }
  .personen-uebersicht .avatar { width: 36px; height: 36px; font-size: .875rem; }
  .personen-uebersicht .wer { align-items: center; }
  .personen-uebersicht .wer .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .personen-uebersicht .wer .rolle { font-size: .8125rem; }
  .personen-uebersicht .rolle-text { display: none; }
  /* Detailansicht: Liste links entfällt am Handy (Zurück zur Übersicht steht oben) */
  .raster > .liste-personen { display: none; }
  /* Startseite: Bereichskarten kompakt, zwei pro Zeile, ohne Beschreibung */
  .seitenleiste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .leisten-karte { padding: 12px; }
  .leisten-karte h2 { font-size: var(--schrift-basis); }
  .leisten-karte p { display: none; }
}

/* Status-Punkte (Legende und Avatar in der Mitarbeiter-Übersicht am Handy) */
.status-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 8px; font-size: .8125rem; color: var(--text-neben); }
.status-legende span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--st-farbe); margin-right: -6px; }
.st-aktiv { --st-farbe: var(--status-erledigt); }
.st-offen { --st-farbe: var(--status-offen); }
.st-gesperrt { --st-farbe: var(--status-ueberfaellig); }
.st-grau { --st-farbe: var(--status-ausser-betrieb); }
/* Status als Punkt am Avatar statt Plakette (spart Platz, Legende über den Kacheln) */
.personen-uebersicht .plakette { display: none; }
.personen-uebersicht .avatar { position: relative; }
.personen-uebersicht .avatar::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--karte); background: var(--st-farbe, transparent); }
.personen-uebersicht .wer .name, .personen-uebersicht .wer .rolle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mit-symbol { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Fundament Bauphase 2: gemeinsame Bausteine ---------- */
/* Kacheln im automatisch passenden Raster (teile/_kachelraster.html) */
.kachelraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
/* Glocke in der Kopfzeile (aufgaben/_glocke.html) */
.glocke { position: relative; }
.glocke-zahl { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--jump-rot); color: #FFFFFF; font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; }
.zurueck { margin: 0 0 12px; }

/* Ab hier: je Strang ein eigener Abschnitt, nur im eigenen Abschnitt ändern. */

/* === STRANG A2 === */
/* Aufgaben-Oberfläche: Startseite, Aufgabenzeilen, Detail, Checkliste, Neue Aufgabe, Freigabe, Glocke. */
.inhalt-mittel { max-width: 1100px; }
.az-hinweisleiste { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.az-hinweisleiste a { color: inherit; font-weight: 700; }
.az-unterzeile { margin: 4px 0 0; }
.az-kopfknoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.az-kopfknoepfe .knopf { white-space: nowrap; }
.az-zurueck-zeile { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* Fortschritt (CSP: keine Inline-Breiten, daher <progress>) */
.az-fortschritt { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border: none; border-radius: 3px; background: var(--rahmen-leise); overflow: hidden; display: block; }
.az-fortschritt::-webkit-progress-bar { background: var(--rahmen-leise); border-radius: 3px; }
.az-fortschritt::-webkit-progress-value { background: var(--status-erledigt); border-radius: 3px; }
.az-fortschritt::-moz-progress-bar { background: var(--status-erledigt); border-radius: 3px; }
.az-fortschritt-gross { height: 12px; border-radius: 6px; }
.az-fortschritt-zeile { display: flex; align-items: center; gap: 14px; }
.az-fortschritt-text { font-weight: 700; white-space: nowrap; }

/* Aufgabenzeile */
.az {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px;
  padding: 12px 14px; border-radius: var(--ecke-karte); background: var(--karte); border: 2px solid transparent;
  box-shadow: var(--schatten-karte);
}
.az-ueberfaellig { background: var(--status-ueberfaellig-flaeche); border-color: var(--status-ueberfaellig-voll); }
.az-vorschau { background: transparent; border: 2px dashed var(--rahmen-leise); box-shadow: none; }
.az-erledigt .az-titel, .az-vorschau .az-titel, .az-nicht_erledigt .az-titel { color: var(--text-neben); }
.az-haken-form { margin: 0; display: flex; }
.az-haken {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--rahmen); background: var(--karte);
  color: transparent; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color .12s, border-color .12s;
}
/* Haken-Vorschau nur mit Maus: auf Handys bleibt :hover nach dem Tippen kleben (sah aus wie halb abgehakt). */
@media (hover: hover) { button.az-haken:hover { border-color: var(--status-erledigt); color: var(--status-erledigt); } }
.az-ueberfaellig .az-haken { border-color: var(--status-ueberfaellig-voll); }
.az-haken-an { background: #1B6B2F; border-color: #1B6B2F; color: #FFFFFF; }
@media (hover: hover) { button.az-haken-an:hover { background: #1B6B2F; border-color: #1B6B2F; color: #FFFFFF; } }
.az-haken-aus { border-style: dashed; border-color: var(--rahmen-leise); background: transparent; cursor: default; }
.az-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.az-titel { font-weight: 500; font-size: var(--schrift-basis); line-height: 1.3; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
a.az-titel:hover { text-decoration: underline; }
.az-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--schrift-klein); color: var(--text-neben); }
.avatar-mini { width: 24px; height: 24px; font-size: .625rem; }
.az-plakette { padding: 1px 10px; }
.az-erledigt .az-plakette { background: var(--status-erledigt-flaeche); color: var(--status-erledigt); }
.az-offen .az-plakette, .az-in_arbeit .az-plakette { background: var(--status-offen-flaeche); color: var(--status-offen); }
.az-ueberfaellig .az-plakette { background: var(--status-ueberfaellig-voll); color: #FFFFFF; }
.az-vorschau .az-plakette, .az-freigabe .az-plakette { background: var(--status-ausser-betrieb-flaeche); color: var(--status-ausser-betrieb); }
.az-nicht_erledigt .az-plakette { background: var(--status-ueberfaellig-flaeche); color: var(--status-ueberfaellig); }

/* Bereich am Kärtchen (Variante C, Felix 07.10.2026): Farbkante links + Plakette über dem Titel.
   Farben aus farben.css (bf-<pk> Fläche/Schrift, bfk-<pk> Kante). */
.az-mit-bereich { border-left-width: 6px; padding-left: 12px; }
.az-bereich { align-self: flex-start; max-width: 100%; padding: 0 10px; font-size: .875rem; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; }
.az-vorschau .az-bereich, .az-erledigt .az-bereich, .az-nicht_erledigt .az-bereich { opacity: .75; }
.az-vorschau.az-mit-bereich { border-left-style: solid; }

/* Bereichsfilter (aufgaben/_bereichsfilter.html): kompaktes Ausklappmenü */
.bereichsfilter { margin: 0; }
.bfm > summary { min-height: 44px; padding: 6px 12px 6px 14px; border-color: var(--rahmen-leise); font-size: var(--schrift-klein); }
.bfm-aktiv > summary { background: var(--gewaehlt); border-color: var(--gewaehlt); color: var(--gewaehlt-text); }
.bfm-kopf { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.bfm-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16em; }
.bfm-punkt { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--rahmen); box-shadow: 0 0 0 2px var(--karte); }
.bfm-kopf .bfm-punkt + .bfm-punkt { margin-left: -12px; }
.bfm .auswahl-menue-liste { left: auto; right: 0; width: max-content; min-width: 280px; max-width: min(360px, calc(100vw - 32px)); }
.bfm-name { flex: 1 1 auto; }
.bfm-zahl { flex: none; min-width: 28px; text-align: right; color: var(--text-neben); font-size: .875rem; font-variant-numeric: tabular-nums; }
.bfm-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 4px 2px; border-top: 1px solid var(--rahmen-leise); margin-top: 4px; }
@media (max-width: 760px) { .bfm .auswahl-menue-liste { left: 0; right: auto; } }

/* Hinweis „Neue Änderungen“ (offenes Formular wird nicht überschrieben) */
.az-neu-leiste { position: sticky; top: 8px; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }

/* Aufgabe (Detail) */
.az-detail-haupt { display: flex; flex-direction: column; gap: 18px; }
.az-detail-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.az-detail-titel { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.az-detail-titel h1 { overflow-wrap: anywhere; }
.az-plaketten { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.az-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.az-knoepfe form { margin: 0; }
.az-knoepfe-unten { justify-content: flex-end; }
.knopf-erledigt { background: #1B6B2F; border-color: #1B6B2F; color: #FFFFFF; min-height: var(--hoehe-button-gross); font-weight: 700; text-align: left; }
.knopf-erledigt:hover { background: #155424; border-color: #155424; }
.az-checkliste { display: flex; flex-direction: column; gap: 14px; }
.az-checkliste > p { margin: 0; }
.az-gruppe { padding: 0; overflow: hidden; }
.az-gruppe > * + * { margin-top: 0; }
.karte form.az-gruppe-kopf, .karte form.az-punkt { flex-direction: row; gap: 0; }
.az-gruppe-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--flaeche-grau); margin: 0; }
.az-gruppe-kopf label { display: flex; align-items: center; gap: 14px; cursor: pointer; flex: 1; min-width: 0; }
.az-gruppe-titel { font-size: var(--schrift-gross); font-weight: 700; }
.az-punkt { margin: 0; border-top: 1px solid var(--rahmen-leise); }
.az-punkt label { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 60px; min-height: 52px; cursor: pointer; }
.az-gruppe-ohne .az-punkt label { padding-left: 18px; }
.az-gruppe-ohne .az-punkt:first-child { border-top: none; }
.az-checkliste input[type=checkbox] { width: 28px; height: 28px; margin: 0; flex: none; accent-color: #1B6B2F; }
.az-punkt input:checked + span { color: var(--text-neben); text-decoration: line-through; text-decoration-color: var(--rahmen); }
.az-beschreibung { line-height: 1.6; }
.az-admin h3 { margin-top: 20px; }
.az-admin-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.az-aufklapp > summary { list-style: none; }
.az-aufklapp > summary::-webkit-details-marker { display: none; }
.az-aufklapp[open] > summary { border-color: var(--text); }
.az-aufklapp-inhalt { margin-top: 10px; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); background: var(--karte); max-width: 560px; }
.az-aufklapp-inhalt p { margin: 0; }
.az-verlauf { list-style: none; margin: 8px 0 0; padding: 0; font-size: var(--schrift-klein); }
.az-verlauf li { padding: 8px 0; border-top: 1px solid var(--rahmen-leise); }
.az-verlauf li:first-child { border-top: none; }
.az-verlauf-zeit { color: var(--text-neben); font-variant-numeric: tabular-nums; }

/* Formulare */
.feld textarea, .feld input[type=date] {
  font: 400 var(--schrift-basis) var(--schrift); min-height: var(--hoehe-button); padding: 10px 14px;
  border: 2px solid var(--rahmen); border-radius: var(--ecke-feld); background: var(--karte); color: var(--text); width: 100%;
}
.feld textarea { resize: vertical; line-height: 1.5; }
.feld textarea:focus, .feld input[type=date]:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.az-formular { gap: 20px; }
.az-info { margin: 0; padding: 12px 16px; border-radius: var(--ecke-karte); background: var(--flaeche-grau); color: var(--text-neben); font-size: var(--schrift-klein); }
.az-haekchen { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.az-haekchen input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: #1B6B2F; }
.az-eingerueckt { margin-left: 36px; }
.az-erinnerung { border: 2px solid var(--rahmen-leise); border-radius: var(--ecke-karte); padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.az-erinnerung legend { padding: 0 6px; }

/* Freigabe, Erledigt diese Woche */
.az-liste { display: flex; flex-direction: column; gap: 12px; }
.az-freigabe-karte { display: flex; flex-direction: column; gap: 10px; }
.az-freigabe-karte > * + * { margin-top: 0; }
.az-freigabe-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
.az-freigabe-kopf form { margin: 0; }
.az-kommentar { margin: 0; padding: 10px 14px; border-left: 4px solid var(--status-ueberfaellig); background: var(--flaeche-grau); border-radius: 0 var(--ecke-feld) var(--ecke-feld) 0; }
.az-tage { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; align-items: start; }

/* Kachel in der Seitenleiste */
.az-kachel h2 { display: flex; align-items: center; gap: 10px; }
.az-zahl { margin-left: auto; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--jump-rot); color: #FFFFFF; font-size: var(--schrift-klein); display: inline-flex; align-items: center; justify-content: center; }
.az-kachel-liste { margin: 8px 0 0; padding: 0; list-style: none; font-size: var(--schrift-klein); display: flex; flex-direction: column; gap: 4px; }
.az-kachel-liste li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Glocke (Leiste am PC, Kopfzeile am Handy; Grundform aus dem Fundament) */
.glocke > summary { list-style: none; position: relative; }
.glocke > summary::-webkit-details-marker { display: none; }
.glocke-zahl { border: 2px solid var(--kopf); }
.glocke-menue {
  position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: min(400px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto;
  background: var(--karte); color: var(--text); border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}
.glocke-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--rahmen-leise); }
.glocke-kopf form { margin: 0; }
.glocke-eintrag { margin: 0; border-bottom: 1px solid var(--rahmen-leise); }
.glocke-eintrag button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 12px 16px; cursor: pointer; }
.glocke-eintrag button:hover, .glocke-eintrag button:focus-visible { background: var(--flaeche-grau); }
.glocke-eintrag button:focus-visible { outline: 3px solid var(--text); outline-offset: -3px; }
.glocke-neu { box-shadow: inset 4px 0 0 var(--jump-rot); }
.glocke-neu .glocke-text { font-weight: 700; }
.glocke-leer { margin: 0; padding: 16px; }
.glocke-seite { max-width: 640px; }
.glocke-seite .glocke-menue { position: static; width: auto; max-height: none; box-shadow: var(--schatten-karte); }

@media (max-width: 760px) {
  /* Handy kompakt: Plakette unter den Titel, Haken etwas kleiner. */
  .az { padding: 10px 12px; gap: 4px 12px; }
  .az-haken { width: 40px; height: 40px; }
  .az-kopfknoepfe { width: 100%; }
  .az-kopfknoepfe .knopf { flex: 1 1 auto; padding: 0 16px; }
  .az-knoepfe { width: 100%; }
  .az-knoepfe .knopf-erledigt { width: 100%; }
  .az-punkt label { padding-left: 18px; }
  .az-gruppe-kopf { padding: 10px 14px; }
  .glocke-menue { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }
  .az-tage { grid-template-columns: minmax(0, 1fr); }
  .az-kachel { grid-column: 1 / -1; }
}
/* === ENDE STRANG A2 === */

/* === STRANG B === */
/* Vorlagen, Bereiche, Aufgaben-Einstellungen, Rückblick, Hilfe */
[hidden] { display: none !important; }
.zurueck-zeile { margin: 0; }
.zurueck-zeile a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text); font-weight: 500; text-decoration: none; }
.vl-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.vl-kopf h2 { margin: 0; }
.vl-kopf p { margin: 4px 0 0; }
.vl-kopf-rechts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vl-filter select { font: inherit; min-height: 44px; padding: 6px 12px; border: 2px solid var(--rahmen); border-radius: 12px; background: var(--karte); color: var(--text); }
/* Personenfilter der Vorlagen: Liste so breit wie die Namen statt wie das schmale Feld „Alle“ (am Handy war sie
   abgeschnitten, Felix 08.10.2026); am PC rechtsbündig (Filter steht rechts), am Handy linksbündig wie .bfm. */
.vl-filter .auswahl-menue-liste { left: auto; right: 0; width: max-content; min-width: 220px; max-width: min(360px, calc(100vw - 32px)); }
@media (max-width: 760px) { .vl-filter .auswahl-menue-liste { left: 0; right: auto; } }
.vl-gruppe h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; }
.vl-liste { padding: 0; overflow: hidden; }
.vl-liste > * + * { margin-top: 0; }
.vl-zeile { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--rahmen-leise); padding-right: 12px; }
.vl-zeile:first-child { border-top: none; }
.vl-zeile form { margin: 0; flex: none; }
.vl-zeile-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text); text-decoration: none; }
.vl-zeile-link:hover { background: var(--flaeche-grau); }
.vl-bereich { flex: none; width: 8px; align-self: stretch; min-height: 36px; border-radius: 4px; background: var(--rahmen-leise); }
.vl-zeile-haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vl-titel { font-weight: 500; }
.vl-unter { font-size: var(--schrift-klein); color: var(--text-neben); }
.vl-zeile-rechts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.plakette-hinweis { background: var(--flaeche-grau); color: var(--text-neben); }
.vl-beendet > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 44px; }
.vl-beendet > summary::-webkit-details-marker { display: none; }
.vl-beendet[open] > summary svg { transform: rotate(180deg); }

.vl-raster { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.vl-maske { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.vl-seite { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.vl-abschnitt { display: flex; flex-direction: column; gap: 16px; }
.vl-abschnitt > * + * { margin-top: 0; }
.vl-abschnitt textarea { font: 400 var(--schrift-basis) var(--schrift); padding: 10px 14px; border: 2px solid var(--rahmen); border-radius: var(--ecke-feld); background: var(--karte); color: var(--text); width: 100%; resize: vertical; }
.feld input[type=number], .feld input[type=time] { font: 400 var(--schrift-basis) var(--schrift); min-height: var(--hoehe-button); padding: 10px 14px; border: 2px solid var(--rahmen); border-radius: var(--ecke-feld); background: var(--karte); color: var(--text); width: 100%; }
.vl-schmal { max-width: 360px; }
.vl-paar { display: flex; gap: 8px; }
.vl-paar .auswahl-menue { flex: 1 1 0; min-width: 0; }
.vl-paar select { flex: 1; font: inherit; min-height: var(--hoehe-button); padding: 10px 12px; border: 2px solid var(--rahmen); border-radius: var(--ecke-feld); background: var(--karte); color: var(--text); }
.wahl-tage { gap: 6px; }
.wahl-tage label { min-height: 44px; padding: 6px 14px; align-items: center; }
.vl-tage-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.vl-tage-liste .auswahl-eintrag:last-child { grid-column: 1 / -1; }
.vl-zeiten + .link-knopf + .feld-hilfe, .vl-zeiten ~ .feld-hilfe { display: block; }
.vl-zeiten { display: flex; flex-wrap: wrap; gap: 8px; }
.vl-zeit { display: flex; align-items: center; gap: 4px; }
.vl-zeit input { font: 400 var(--schrift-basis) var(--schrift); min-height: var(--hoehe-button); padding: 8px 12px; border: 2px solid var(--rahmen); border-radius: var(--ecke-feld); background: var(--karte); color: var(--text); }
.haken-zeile { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 500; }
.haken-zeile input { width: 24px; height: 24px; margin: 0; accent-color: var(--status-erledigt); flex: none; }
.haken-zeile:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.vl-erinnerung, .vl-einzug { display: flex; flex-direction: column; gap: 12px; }
.vl-einzug { padding-left: 36px; }
.vl-speichern { display: flex; flex-wrap: wrap; gap: 10px; }
.vl-vorschau > * + * { margin-top: 10px; }
.vl-termine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vl-termine li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--rahmen-leise); }
.vl-termine li:first-child { border-top: none; }
.vl-termin-wann { font-weight: 500; }
.vl-termin-frist, .vl-termin-erinnerung { font-size: var(--schrift-klein); color: var(--text-neben); }
/* Zeitbezug (Sauna- und Theke-Erinnerungen): besondere Tage, entfallene Termine, Satz zum Bezug */
.vl-termin-tag { font-weight: 400; color: var(--text-neben); }
.vl-termin-saison { font-size: var(--schrift-klein); padding: 0 8px; vertical-align: 1px; }
.vl-termine li.vl-termin-entfaellt .vl-termin-wann { font-weight: 400; color: var(--text-neben); text-decoration: line-through; text-decoration-thickness: 1px; }
.vl-bezug-satz { margin: 0 0 4px; padding: 10px 12px; border-radius: var(--ecke-feld); background: var(--flaeche-grau); font-size: var(--schrift-klein); }
.vl-bezug { display: flex; flex-direction: column; gap: 8px; }
.vl-bezug-reihe { display: grid; grid-template-columns: minmax(0, 3fr) minmax(80px, 1fr) minmax(0, 1.3fr); gap: 12px; align-items: end; }
@media (max-width: 640px) { .vl-bezug-reihe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .vl-bezug-reihe > .feld:first-child { grid-column: 1 / -1; } }
.vl-aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.vl-aktionen > * + * { margin-top: 0; }
.vl-aktionen form { margin: 0; }
.vl-beenden { width: 100%; }
.vl-beenden > summary { list-style: none; display: inline-flex; }
.vl-beenden > summary::-webkit-details-marker { display: none; }
.vl-beenden form { margin-top: 10px; }

.knopf-rund-klein { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rahmen-leise); background: var(--karte); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.knopf-rund-klein:hover { background: var(--flaeche-grau); }
.knopf-rund-klein[disabled] { opacity: .4; cursor: default; }
.symbol-hoch { transform: rotate(180deg); }
.symbol-x { transform: rotate(45deg); }
.symbol-vor { transform: rotate(180deg); }

/* Checklisten-Editor */
.cl-editor { display: flex; flex-direction: column; gap: 12px; }
.cl-gruppen { display: flex; flex-direction: column; gap: 12px; }
.cl-block { border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); padding: 10px 12px; margin: 0; min-width: 0; }
.cl-ohne { border-style: dashed; }
.cl-nur-punkte { border: none; padding: 0; }
.cl-block-kopf { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cl-punkte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cl-punkt { display: flex; align-items: center; gap: 6px; }
.cl-text, .cl-titel { flex: 1; min-width: 0; font: 400 var(--schrift-basis) var(--schrift); min-height: 44px; padding: 8px 12px; border: 2px solid var(--rahmen-leise); border-radius: var(--ecke-feld); background: var(--karte); color: var(--text); }
.cl-titel { font-weight: 700; border-color: var(--rahmen); }
.cl-text:focus, .cl-titel:focus { outline: none; border-color: var(--text); }
.cl-knoepfe { display: inline-flex; gap: 2px; flex: none; }
.cl-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cl-editor .link-knopf { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 500; }

/* Bereiche */
.bb-liste { flex: 1 1 340px; min-width: 0; padding: 0; overflow: hidden; }
.bb-liste > * + * { margin-top: 0; }
.bb-zeile { display: flex; align-items: center; gap: 6px; padding-right: 10px; border-top: 1px solid var(--rahmen-leise); }
.bb-zeile:first-child { border-top: none; }
.bb-zeile[aria-current="true"] { background: var(--flaeche-grau); box-shadow: inset 4px 0 0 var(--jump-rot); }
.bb-inaktiv { opacity: .6; }
.bb-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text); text-decoration: none; }
.bb-name > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.bb-titel { font-weight: 500; }
.bb-punkt { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--rahmen-leise); }
.bb-liste .bb-pfeile { display: flex; flex-direction: row; gap: 4px; margin: 0; }
.vl-zeile form, .vl-aktionen form { flex-direction: row; }
.bb-vorschau { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 18px; border-radius: 999px; font-weight: 700; background: var(--flaeche-grau); }

/* Aufgaben-Einstellungen */
.ae-form { flex: 2 1 520px; min-width: 0; }
.ae-laeufe { flex: 1 1 320px; min-width: 0; }
.ae-gruppe { border-top: 1px solid var(--rahmen-leise); padding-top: 14px; }
.ae-gruppe:first-of-type { border-top: none; padding-top: 0; }
.ae-gruppe .feldreihe > .feld { flex: 1 1 160px; }
.ae-luecken { margin: 6px 0 0; padding-left: 20px; }

/* Rückblick */
.rb-blaettern { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.rb-liste { display: flex; flex-direction: column; gap: 10px; }
.rb-zeile { padding: 0; }
.rb-zeile > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; cursor: pointer; }
.rb-zeile > summary::-webkit-details-marker { display: none; }
.rb-zeile[open] > summary .rb-pfeil { transform: rotate(180deg); }
.rb-zeile > :not(summary) { margin: 0 18px 14px; }
.rb-wer { display: flex; align-items: center; gap: 10px; flex: 1 1 160px; min-width: 0; font-weight: 700; }
.rb-theke { background: var(--anthrazit, #1E1D1C); color: #FFFFFF; }
.rb-quote { flex: none; min-width: 64px; text-align: center; font-weight: 700; font-size: var(--schrift-gross); border-radius: 999px; padding: 2px 10px; }
.rb-gut { background: var(--status-erledigt-flaeche); color: var(--status-erledigt); }
.rb-mittel { background: var(--status-reparatur-flaeche); color: var(--status-reparatur); }
.rb-schlecht { background: var(--status-ueberfaellig-flaeche); color: var(--status-ueberfaellig); }
.rb-leer { background: var(--flaeche-grau); color: var(--text-neben); }
.rb-zahlen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; flex: 3 1 320px; }
.rb-offen { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rb-offen li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }

.hilfe h2 { font-size: var(--schrift-gross); }
.hilfe p, .hilfe ul { margin-bottom: 0; }

@media (max-width: 760px) {
  .vl-seite { position: static; }
  .vl-zeile-link { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .vl-zeile-rechts { width: 100%; justify-content: flex-start; padding-left: 20px; }
  .vl-einzug { padding-left: 12px; }
  .karte.vl-abschnitt { padding: 16px; }
  .cl-block { padding: 8px; }
  .cl-knoepfe .knopf-rund-klein { width: 40px; height: 40px; }
  .rb-zahlen { flex-basis: 100%; }
}
/* === ENDE STRANG B === */

/* === STRANG C === */
/* Einkauf: Seite */
.ek-start { width: auto; }
.ek-zahl { display: inline-flex; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--flaeche-grau); color: var(--text); font-size: .875rem; align-items: center; justify-content: center; }
.person-knopf[aria-current="true"] .ek-zahl { background: var(--karte); }
.ek-raster { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.ek-neu { flex: 1 1 320px; min-width: 0; }
.ek-liste { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ek-formular { display: flex; flex-direction: column; gap: 12px; }
.karte .ek-formular { gap: 12px; }
.ek-was-zeile { display: flex; gap: 8px; }
.ek-was-zeile input { flex: 1 1 auto; min-width: 0; }
.ek-plus { padding: 0 18px; flex: none; }
.ek-wahl-zeile { display: flex; flex-wrap: wrap; gap: 10px; }
.ek-wahl-zeile > .feld { flex: 1 1 140px; min-width: 0; }
.ek-zusatz > summary, .anhang-link > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 500; color: var(--text-neben); }
.ek-zusatz[open] > summary { margin-bottom: 8px; }
.ek-gruppe { padding: 8px 16px; }
.karte.ek-gruppe > * + * { margin-top: 0; }
.ek-kategorie { font-size: var(--schrift-h3); padding: 8px 0; display: flex; gap: 8px; align-items: baseline; }
.ek-zeilen { list-style: none; margin: 0; padding: 0; }
.ek-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rahmen-leise); }
.ek-zeile form { margin: 0; }
.ek-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ek-was { font-weight: 500; font-size: var(--schrift-basis); }
.ek-menge { font-weight: 700; }
.ek-notiz { font-size: var(--schrift-klein); }
.ek-haken {
  width: 48px; height: 48px; flex: none; border-radius: 12px; border: 2px solid var(--rahmen); background: var(--karte);
  color: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
@media (hover: hover) { .ek-haken:hover { color: var(--status-erledigt); border-color: var(--status-erledigt); } }
.ek-mehr { position: relative; }
.ek-mehr > summary { list-style: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; font-size: 1.5rem; }
.ek-mehr > summary::-webkit-details-marker { display: none; }
.ek-mehr > summary:hover { background: var(--flaeche-grau); }
.ek-mehr-liste { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--karte); border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); box-shadow: 0 8px 28px rgba(0, 0, 0, .18); white-space: nowrap; }
.ek-klappe > summary { list-style: none; display: flex; align-items: baseline; gap: 10px; cursor: pointer; min-height: 44px; }
.ek-klappe > summary::-webkit-details-marker { display: none; }
.ek-klappe > summary h2 { font-size: var(--schrift-h3); }
.ek-klappe > summary::after { content: "▾"; margin-left: auto; color: var(--text-neben); }
.ek-klappe[open] > summary::after { content: "▴"; }
.ek-zeilen-leise .ek-was { font-weight: 400; }
.ek-gekauft .ek-was { text-decoration: line-through; color: var(--text-neben); }
.ek-leer { padding: 10px 0; }

/* Einkauf: Kachel auf der Startseite */
.ek-kachel { display: flex; flex-direction: column; gap: 12px; }
.ek-kachel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text); text-decoration: none; }
.ek-kachel-kopf:hover h2 { text-decoration: underline; }
.ek-kachel-zahl { font-size: var(--schrift-klein); color: var(--text-neben); white-space: nowrap; }
.ek-neu-zahl { color: var(--jump-rot); font-weight: 700; }
.ek-kachel .feld label { font-size: var(--schrift-klein); }
.ek-kachel .ek-plus-text { display: none; }

/* Einkaufsmodus: große Tippflächen, Abgehakte durchgestrichen und in der Kategorie nach unten */
.ek-modus { display: flex; flex-direction: column; gap: 18px; }
.ek-modus-kopf { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ek-modus-gruppe h2 { font-size: var(--schrift-h3); margin: 0 0 8px; padding: 0 4px; }
.ek-modus-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ek-modus-liste > li:has(input[name=gekauft]:checked) { order: 1; }
.ek-modus-zeile {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; border-radius: 14px;
  background: var(--karte); border: 2px solid var(--rahmen-leise); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.ek-modus-zeile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ek-kasten { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 2px solid var(--rahmen); display: inline-flex; align-items: center; justify-content: center; color: transparent; background: var(--karte); }
.ek-modus-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.ek-modus-text .ek-was { font-size: 1.25rem; }
.ek-modus-zeile:has(input:checked) { background: var(--status-erledigt-flaeche); border-color: var(--status-erledigt-flaeche); }
.ek-modus-zeile:has(input:checked) .ek-kasten { background: var(--status-erledigt); border-color: var(--status-erledigt); color: #FFFFFF; }
.ek-modus-zeile:has(input:checked) .ek-was { text-decoration: line-through; color: var(--text-neben); }
.ek-modus-zeile:has(input:focus-visible) { outline: 3px solid var(--text); outline-offset: 2px; }
.ek-modus-fuss { display: flex; flex-direction: column; gap: 12px; }
.karte.ek-modus-fuss > * + * { margin-top: 0; }
.ek-zusammenfassung { margin: 0; font-size: var(--schrift-gross); }
.ek-speichern { background: var(--status-erledigt); border-color: var(--status-erledigt); color: #FFFFFF; }
.ek-speichern:hover { background: var(--status-erledigt); filter: brightness(.9); }

/* Teaminfo und Aktionen */
.info-kacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.info-kachel-huelle { display: flex; flex-direction: column; gap: 4px; }
.info-kachel { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 96px; padding: 16px; text-decoration: none; color: var(--text); flex: 1; }
.karte.info-kachel > * + * { margin-top: 0; }
.info-kachel:hover { border-color: var(--text); }
.info-kachel-titel { font-weight: 700; font-size: var(--schrift-gross); overflow-wrap: anywhere; }
.info-kachel-aus { opacity: .7; }
/* Teaminfo-Übersicht: größere Kacheln mit Vorschaubild, Kurztext und Anhangarten (Wunsch Felix 06.10.) */
.info-kacheln-gross { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.karte.info-kachel-gross { padding: 0; overflow: hidden; justify-content: flex-start; gap: 0; }
.info-kachel-bild { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--flaeche-grau); }
.info-kachel-platzhalter { display: flex; align-items: center; justify-content: center; color: var(--text-neben); }
.info-kachel-koerper { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.info-kachel-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.info-kachel-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.info-chip { font-size: var(--schrift-klein); padding: 2px 10px; border-radius: 999px; border: 1px solid var(--rahmen); }
/* Aktionen: aktive Kachel mit grünem Rand, nicht laufende ausgegraut */
.karte.info-kachel-aktiv { border-color: var(--status-erledigt); border-width: 2px; }
.info-kachel-aus .info-kachel-bild { filter: grayscale(1); }
.info-artikel-aus { opacity: .85; }
.info-artikel { display: flex; flex-direction: column; gap: 16px; }
.karte.info-artikel > * + * { margin-top: 0; }
.info-artikel .seitenkopf { align-items: flex-start; }
.info-artikel h2, .info-artikel h3 { margin-top: 6px; }
.info-artikel-leise { padding: 16px 0; border-top: 1px solid var(--rahmen-leise); }
.info-werkzeug { display: flex; gap: 8px; align-items: center; }
.info-inaktiv { display: flex; flex-direction: column; }
.info-kurzliste { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.info-kurzliste a { display: inline-flex; min-height: 40px; align-items: center; color: var(--text); font-weight: 500; }
/* Teaminfo und Kooperationen auf Heute: kompakt, damit der Einkauf ohne Scrollen sichtbar bleibt (Felix, 30.10.2026). */
.info-kachel-kompakt { padding: 12px 20px; }
.info-kachel-kompakt h2 { font-size: 1rem; }
.info-kachel-kompakt .info-kurzliste { margin-top: 4px; gap: 0; }
.info-kachel-kompakt .info-kurzliste a { min-height: 32px; font-size: .9375rem; }
.text-format { overflow-wrap: anywhere; }
.text-format p { margin: 0 0 .75em; }
.text-format p:last-child { margin-bottom: 0; }
.text-format ul { margin: 0 0 .75em; padding-left: 1.4em; }
.verschieben { display: flex; gap: 4px; }
.verschieben form { margin: 0; }
.pfeil-knopf { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rahmen-leise); background: var(--karte); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pfeil-knopf:hover { background: var(--flaeche-grau); }
.pfeil-knopf[disabled] { opacity: .35; cursor: default; }
.haken-zeile { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 500; }
.haken-zeile input { width: 24px; height: 24px; accent-color: var(--status-erledigt); }
.feld textarea, .feld input[type=url], .feld input[type=date] {
  font: 400 var(--schrift-basis) var(--schrift); padding: 10px 14px; min-height: var(--hoehe-button);
  border: 2px solid var(--rahmen); border-radius: var(--ecke-feld); background: var(--karte); color: var(--text); width: 100%;
}
.feld textarea { resize: vertical; line-height: 1.5; }
.feld textarea:focus, .feld input[type=url]:focus, .feld input[type=date]:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }

/* Titelbilder: Auswahl im Formular (Teaminfo/Aktion) und Verwaltung → Titelbilder */
.tb-auswahl { border: none; margin: 0; padding: 0; min-width: 0; }
.tb-auswahl legend { font-weight: 500; padding: 0; margin-bottom: 4px; }
.tb-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, calc(50% - 6px)), 1fr)); gap: 12px; margin-top: 8px; }
.tb-wahl { position: relative; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.tb-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tb-bild { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--ecke-feld); background: var(--flaeche-grau); border: 3px solid transparent; }
.tb-ohne { display: flex; align-items: center; justify-content: center; color: var(--text-neben); border: 2px dashed var(--rahmen-leise); }
.tb-wahl input:checked ~ .tb-bild { border: 3px solid var(--jump-rot); box-shadow: 0 0 0 2px var(--karte), 0 0 0 4px var(--jump-rot); }
.tb-wahl input:focus-visible ~ .tb-bild { outline: 3px solid var(--status-offen); outline-offset: 3px; }
.tb-wahl input:checked ~ .tb-name { font-weight: 700; }
.tb-name { font-size: var(--schrift-klein); line-height: 1.3; }
.tb-neu { margin-top: 12px; }
.tb-neu > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--akzent-schrift); font-weight: 500; }
.tb-liste { list-style: none; margin: 0; padding: 0; }
.tb-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 0; border-top: 1px solid var(--rahmen-leise); }
.tb-zeile:first-child { border-top: none; }
.tb-zeile > .tb-bild { width: 192px; flex: none; }
.tb-aus > .tb-bild { filter: grayscale(1); opacity: .6; }
.tb-angaben { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 240px; }
.tb-mitgeliefert, .tb-hochladen { margin: 16px 0; padding: 16px; border-radius: var(--ecke-karte); background: var(--flaeche-grau); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.tb-mitgeliefert p { margin: 0; }

/* Einkaufskategorien (Verwaltung) */
.kat-liste { list-style: none; margin: 0; padding: 0; }
.kat-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--rahmen-leise); }
.kat-zeile:first-child { border-top: none; }
.karte .kat-name { flex-direction: row; align-items: center; gap: 8px; flex: 1 1 260px; }
.kat-name input { flex: 1; min-width: 0; font: 400 var(--schrift-basis) var(--schrift); min-height: 44px; padding: 6px 12px; border: 2px solid var(--rahmen-leise); border-radius: var(--ecke-feld); background: var(--karte); color: var(--text); }
.kat-aus .kat-name input { color: var(--text-neben); }

/* Anhänge */
.anhaenge { display: flex; flex-direction: column; gap: 12px; }
.anhang-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.anhang { display: flex; flex-direction: column; gap: 6px; }
.anhang-bild img { display: block; max-width: 100%; max-height: 70vh; height: auto; border-radius: var(--ecke-karte); border: 1px solid var(--rahmen-leise); }
.anhang-video { display: block; width: 100%; max-height: 70vh; border-radius: var(--ecke-karte); background: #000; }
.anhang-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.anhang-karte { padding: 12px 14px; min-height: 56px; border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); color: var(--text); text-decoration: none; }
.anhang-karte:hover { border-color: var(--text); }
.anhang-name { font-weight: 500; overflow-wrap: anywhere; }
.anhang-url { overflow-wrap: anywhere; }
.anhang-weg { margin: 0; align-self: flex-start; }
.anhang-neu { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--rahmen-leise); }
.anhang-neu form { gap: 10px; }
.anhang-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.datei-knopf { position: relative; }
.datei-knopf:focus-within { outline: 3px solid var(--text); outline-offset: 3px; }

/* Kommentare */
.kommentare { display: flex; flex-direction: column; gap: 14px; }
.kommentar-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.kommentar { display: flex; gap: 10px; align-items: flex-start; }
.kommentar form { margin: 0; }
.kommentar-inhalt { flex: 1; min-width: 0; }
.kommentar-aus { opacity: .6; }
.karte .kommentar-neu, .kommentar-neu { display: flex; flex-direction: column; gap: 10px; }
.kommentar-unten { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.kommentar-unten .feld { flex: 1 1 200px; }

@media (max-width: 760px) {
  .ek-start { width: 100%; }
  .seitenleiste .ek-kachel, .seitenleiste .info-kachel-start { grid-column: 1 / -1; }
  .info-kacheln { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .info-kachel { min-height: 72px; padding: 12px; }
  .info-kachel-titel { font-size: var(--schrift-basis); }
  .info-kacheln-gross { grid-template-columns: 1fr; gap: 10px; }
  .karte.info-kachel-gross { flex-direction: row; min-height: 0; }
  .info-kachel-gross .info-kachel-bild { width: 96px; aspect-ratio: auto; min-height: 96px; flex: none; }
  .info-kachel-gross .info-kachel-koerper { padding: 10px 12px; gap: 6px; }
  .info-kachel-gross .info-kachel-text { -webkit-line-clamp: 2; }
  .ek-gruppe { padding: 4px 12px; }
}
/* === ENDE STRANG C === */

/* === STRANG S === */
/* Erinnerungsmeldung: steht unten rechts (Handy: unten über der Navigation), bis jemand reagiert. */
.erinnerung-bereich { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: min(440px, calc(100vw - 32px)); }
.erinnerung-bereich:empty { display: none; }
.erinnerung-huelle { display: flex; flex-direction: column; gap: 8px; }
.erinnerung-karte { background: var(--karte); color: var(--text); border: 2px solid var(--jump-rot); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); padding: 14px 16px; max-height: 70vh; overflow-y: auto; }
.erinnerung-kopf { margin: 0 0 8px; font-size: var(--schrift-gross); color: var(--akzent-schrift); }
.erinnerung-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.erinnerung-eintrag { display: flex; flex-direction: column; gap: 8px; }
.erinnerung-eintrag + .erinnerung-eintrag { border-top: 1px solid var(--rahmen-leise); padding-top: 12px; }
.erinnerung-text { display: flex; flex-direction: column; gap: 2px; }
.erinnerung-titel { font-weight: 700; font-size: var(--schrift-basis); color: inherit; text-decoration: none; }
.erinnerung-titel:hover { text-decoration: underline; }
.erinnerung-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.erinnerung-meldung { box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
@media (max-width: 700px) { .erinnerung-bereich { bottom: calc(84px - var(--unten-korrektur, 0px)); } }
.hinweis-programm { margin-bottom: 16px; }
/* Studio-Geräte: Geräteschlüssel und Begleitprogramm */
.schluessel-zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.schluessel-feld { flex: 1 1 320px; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: var(--schrift-klein); padding: 10px; }
.begleitprogramm-info { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.begleitprogramm-info .aktionen { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pruefsumme { word-break: break-all; }
/* === ENDE STRANG S === */

/* === STRANG W1 === */
/* Gerätewartung (mobile-first, große Tippflächen, kompakt nach B7) */
.w-reiter { margin-top: -8px; }
.w-titel { font-size: var(--schrift-gross); font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.w-titel-klein { font-size: var(--schrift-basis); margin: 16px 0 6px; }
.w-karte-eng { padding: 16px 18px; }
.w-karte-eng > * + * { margin-top: 10px; }
.w-aktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.w-aktionen form { margin: 0; flex: 1 1 260px; }
.w-aktionen > .knopf { flex: 1 1 200px; }
.w-aktionen-eng > .knopf, .w-aktionen-eng form { flex: 0 1 auto; }
.w-aktionen-text { flex: 1 1 100%; margin: 0; }
.w-knopf-zweit { width: auto; }
.w-knopf-fertig { background: var(--status-erledigt); border-color: var(--status-erledigt); color: #FFFFFF; }
.w-knopf-fertig:hover { background: #14521F; border-color: #14521F; }
.w-zurueck { align-self: flex-start; }
.w-plakette-reparatur { background: var(--status-reparatur-flaeche); color: var(--status-reparatur); }
.w-plakette-aus { background: var(--status-ausser-betrieb); color: #FFFFFF; }

/* Fortschritt je Gruppe: Kacheln, Spalten passen sich an */
.w-person-titel { margin: 14px 0 8px; font-size: var(--schrift-basis); font-weight: 500; }
.w-person-titel:first-of-type { margin-top: 0; }
.w-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.w-kachel { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--ecke-karte); background: var(--karte); border: 1px solid var(--rahmen-leise); color: var(--text); text-decoration: none; min-width: 0; }
.w-kachel:hover { border-color: var(--text); }
.w-kachel-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.w-kachel-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-kachel-zahl { font-weight: 700; font-variant-numeric: tabular-nums; }
.w-kachel-fuss { font-size: .875rem; color: var(--text-neben); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-spaet .w-kachel-fuss strong, .w-startgruppen .w-spaet span:nth-child(2) { color: var(--status-ueberfaellig); }
.w-balken { width: 100%; height: 8px; border: 0; border-radius: 4px; background: var(--rahmen-leise); overflow: hidden; appearance: none; -webkit-appearance: none; }
.w-balken::-webkit-progress-bar { background: var(--rahmen-leise); border-radius: 4px; }
.w-balken::-webkit-progress-value { background: var(--status-offen); border-radius: 4px; }
.w-balken::-moz-progress-bar { background: var(--status-offen); border-radius: 4px; }
.w-fertig .w-balken::-webkit-progress-value { background: var(--status-erledigt); }
.w-fertig .w-balken::-moz-progress-bar { background: var(--status-erledigt); }
.w-spaet .w-balken::-webkit-progress-value { background: var(--status-ueberfaellig); }
.w-spaet .w-balken::-moz-progress-bar { background: var(--status-ueberfaellig); }

/* Startseiten-Kachel */
.w-startkachel .w-startgruppen { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.w-startgruppen li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: var(--schrift-klein); }
.w-startgruppen .w-balken { grid-column: 1 / -1; height: 6px; }
.w-startkachel .plakette { margin-top: 8px; }

/* Listen: einzeilige Reihen */
.w-liste { list-style: none; margin: 0; padding: 0; }
.w-liste li { border-top: 1px solid var(--rahmen-leise); }
.w-liste li:first-child { border-top: none; }
.w-liste a, .w-liste-text li { display: flex; align-items: center; gap: 8px; padding: 10px 2px; min-height: 48px; color: var(--text); text-decoration: none; }
.w-liste a:hover { background: var(--flaeche-grau); }
.w-liste a[aria-current="true"] { box-shadow: inset 4px 0 0 var(--jump-rot); background: var(--flaeche-grau); }
.w-liste a, .w-liste-text li { flex-wrap: wrap; }
.w-liste li.w-zeile-sortierbar { display: flex; align-items: center; gap: 8px; }
.w-zeile-sortierbar > a { flex: 1; min-width: 0; padding-left: 10px; }
.w-haupt { flex: 1 1 55%; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.w-unter { display: block; font-weight: 400; font-size: .9375rem; }
.w-zwischen { list-style: none; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-neben); padding: 14px 4px 4px; border-top: none !important; }
.w-monatskopf { display: flex; align-items: center; gap: 8px; }
.w-monatskopf .w-titel { margin: 0; flex: 1; }

/* Geräteliste mit Suche */
.w-suche { display: flex; flex-direction: column; gap: 8px; }
.w-suchfeld { display: flex; align-items: center; gap: 8px; background: var(--karte); border: 2px solid var(--rahmen); border-radius: 14px; padding: 0 14px; }
.w-suchfeld:focus-within { border-color: var(--text); }
.w-suchfeld input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 400 var(--schrift-gross) var(--schrift); min-height: 56px; outline: none; }
.w-filter { display: flex; gap: 8px; }
.w-filter select, .w-form select { flex: 1; min-width: 0; min-height: 48px; padding: 8px 12px; border: 2px solid var(--rahmen); border-radius: var(--ecke-feld); background: var(--karte); color: var(--text); font: 400 var(--schrift-basis) var(--schrift); }
.w-filter .auswahl-menue { flex: 1 1 0; min-width: 0; }
.w-anzahl { margin: 0; }
.w-geraeteliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.w-geraeteliste form { margin: 0; }
.w-zeile { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; min-height: 72px; background: var(--karte); border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); color: var(--text); text-decoration: none; font: inherit; text-align: left; cursor: pointer; flex-wrap: wrap; }
.w-zeile:hover { border-color: var(--text); }
.w-zeile .w-haupt { flex: 1 1 140px; }
.w-mini { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--flaeche-grau); }
.w-mini-leer { display: inline-flex; align-items: center; justify-content: center; color: var(--text-neben); }
.w-pfeil { flex: none; color: var(--text-neben); }

/* Gerätekarte */
.w-galerie { display: flex; flex-direction: column; gap: 6px; }
.w-galerie-buehne { position: relative; }
.w-galerie-bild { display: block; cursor: zoom-in; }
.w-galerie-bild[hidden], .w-galerie [hidden] { display: none; }
.w-galerie-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(30, 29, 28, .62); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.w-galerie-pfeil:hover { background: rgba(30, 29, 28, .85); }
.w-galerie-pfeil:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.w-galerie-links { left: 8px; }
.w-galerie-rechts { right: 8px; }
.w-galerie-zahl { position: absolute; right: 10px; bottom: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(30, 29, 28, .62); color: #FFFFFF; font-size: var(--schrift-klein); font-weight: 500; }
.w-galerie-vorschau { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.w-galerie-vorschau a { flex: none; border-radius: 12px; border: 3px solid transparent; line-height: 0; }
.w-galerie-vorschau a[aria-current="true"] { border-color: var(--text); }
.w-galerie-vorschau .w-foto-klein { width: 64px; height: 64px; border-radius: 9px; }
.w-lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: none; background: rgba(0, 0, 0, .92); color: #FFFFFF; }
.w-lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.w-lightbox-buehne { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 56px 8px 8px; }
.w-lightbox-buehne img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.w-lightbox-zu { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .16); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.w-lightbox-zu:hover { background: rgba(255, 255, 255, .3); }
.w-lightbox-zurueck { position: absolute; top: 8px; left: 8px; min-height: 48px; padding: 0 18px 0 12px; border-radius: 24px; border: none; background: rgba(255, 255, 255, .92); color: #1A1A1A; font: inherit; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.w-lightbox-zurueck:hover { background: #FFFFFF; }
.w-lightbox-zurueck:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.w-lightbox-einzeln .w-galerie-pfeil, .w-lightbox-einzeln .w-galerie-zahl { display: none; }
.w-lightbox .w-galerie-pfeil { background: rgba(255, 255, 255, .16); }
.w-lightbox .w-galerie-zahl { bottom: 16px; right: 50%; transform: translateX(50%); }
.rueckfrage { max-width: min(92vw, 460px); border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); background: var(--karte); color: var(--text); padding: 20px; }
.rueckfrage::backdrop { background: rgba(0, 0, 0, .5); }
.rueckfrage-frage { margin: 0 0 16px; font-size: var(--schrift-gross); font-weight: 500; }
.w-foto { width: 100%; max-height: 42vh; object-fit: cover; border-radius: var(--ecke-karte); background: var(--flaeche-grau); display: block; }
.w-foto-klein, .w-fotoreihe img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.w-geraetekopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.w-geraetename { font-size: 1.625rem; margin: 0; }
.w-geraetename a { color: inherit; }
.w-geraetedaten { margin: 2px 0 0; }
.w-daten { margin: 0; display: grid; gap: 0; }
.w-daten div { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--rahmen-leise); }
.w-daten div:first-child { border-top: none; }
.w-daten dt { color: var(--text-neben); font-size: var(--schrift-klein); }
.w-daten dd { margin: 0; overflow-wrap: anywhere; }
.w-meldung-link { display: block; text-decoration: none; }
details.karte > summary { cursor: pointer; list-style: none; margin: 0; }
details.karte > summary::-webkit-details-marker { display: none; }
.w-text { margin: 0; font-size: var(--schrift-gross); }

/* Wartungsrunde am Handy */
.w-runde { gap: 14px; }
.w-rundenkopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.w-rundenkopf form { margin: 0; }
.w-position { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--schrift-klein); }
.w-gespeichert { color: var(--status-erledigt); }
.w-checkliste { display: flex; flex-direction: column; gap: 8px; }
.w-checkliste-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.w-checkliste-kopf .w-titel { margin: 0; }
.w-fortschritt { font-weight: 500; color: var(--text-neben); }
.w-fortschritt.w-fertig { color: var(--status-erledigt); }
.w-punkt { background: var(--karte); border: 1px solid var(--rahmen-leise); border-left: 6px solid var(--rahmen-leise); border-radius: var(--ecke-karte); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.w-punkt.w-erg-ok { border-left-color: var(--status-erledigt); }
.w-punkt.w-erg-mangel { border-left-color: var(--status-ueberfaellig); }
.w-punkt.w-erg-nicht_pruefbar { border-left-color: var(--status-reparatur-voll); }
.w-punkt-text { margin: 0; font-weight: 500; font-size: var(--schrift-basis); }
.w-punkt-hinweis { margin: 0; font-size: .9375rem; color: var(--status-ueberfaellig); }
.w-punkt-hinweis:empty { display: none; }
.w-wahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.w-wahl button { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px solid var(--rahmen-leise); border-radius: 12px; background: var(--karte); color: var(--text); font: 500 .9375rem/1.1 var(--schrift); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; padding: 4px; }
.w-wahl button:active { transform: scale(.97); }
.w-wahl .w-wahl-ok[aria-pressed="true"] { background: var(--status-erledigt); border-color: var(--status-erledigt); color: #FFFFFF; }
.w-wahl .w-wahl-mangel[aria-pressed="true"] { background: var(--status-ueberfaellig-voll); border-color: var(--status-ueberfaellig-voll); color: #FFFFFF; }
.w-wahl .w-wahl-nicht_pruefbar[aria-pressed="true"] { background: var(--status-reparatur-voll); border-color: var(--status-reparatur-voll); color: #1E1D1C; }
.w-wahl.htmx-request button { opacity: .6; }
.w-bemerkung { margin: 0; }
.w-bemerkung textarea, .w-abschluss textarea, .w-form textarea { width: 100%; font: 400 var(--schrift-basis) var(--schrift); padding: 10px 12px; border: 2px solid var(--rahmen); border-radius: var(--ecke-feld); background: var(--karte); color: var(--text); resize: vertical; }
.w-fotos { display: flex; flex-direction: column; gap: 8px; }
.w-fotos form { margin: 0; }
.w-fotoreihe { display: flex; flex-wrap: wrap; gap: 6px; }
.w-foto-knopf { cursor: pointer; }
.w-punkt-fotos { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
/* „Besteht weiter“: offener Defekt aus demselben Prüfpunkt (Felix, 10.11.2026). */
.w-bekannt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--status-ueberfaellig-flaeche); }
.w-bekannt-gewaehlt { outline: 2px solid currentColor; outline-offset: -2px; }
.w-bekannt-text, .w-bekannt-hinweis { margin: 0; flex: 1 1 260px; }
.w-bekannt form { margin: 0; }
.w-punkt-fotos form { margin: 0; }
.w-punkt-fotos .w-fotoreihe img, .w-punkt-fotoreihe img { width: 72px; height: 72px; }
.w-punkt-fotoreihe { margin-top: 6px; }
.w-fotos-hinweis { margin: 0; }
.w-foto-knopf:focus-within { outline: 3px solid var(--text); outline-offset: 3px; }
.w-abschluss { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.w-abschluss p { margin: 0; }
.w-weiter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.w-weiter .knopf { flex: 1 1 140px; }

/* Formulare der Verwaltung */
.w-form input[type=number], .w-form input[type=url], .w-form input[type=text] { font: 400 var(--schrift-basis) var(--schrift); min-height: var(--hoehe-button); padding: 10px 14px; border: 2px solid var(--rahmen); border-radius: var(--ecke-feld); background: var(--karte); color: var(--text); width: 100%; }
.w-feld-haken label { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: 44px; }
.w-feld-haken input { width: 24px; height: 24px; accent-color: var(--status-erledigt); }
.w-mehr > summary { cursor: pointer; font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.w-mehr[open] > summary { margin-bottom: 8px; }
.w-neu-fotos { border: none; margin: 0 0 16px; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.w-neu-fotos legend { font-weight: 500; padding: 0; margin-bottom: 4px; }
.w-foto-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; width: 100%; }
.w-foto-wahl:empty { display: none; }
.w-foto-wahl-eintrag { position: relative; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.w-foto-wahl-eintrag input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.w-foto-wahl-eintrag img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 3px solid transparent; background: var(--flaeche-grau); }
.w-foto-wahl-eintrag input:checked ~ img { border-color: var(--jump-rot); box-shadow: 0 0 0 2px var(--karte), 0 0 0 4px var(--jump-rot); }
.w-foto-wahl-eintrag input:focus-visible ~ img { outline: 3px solid var(--status-offen); outline-offset: 3px; }
.w-foto-wahl-text { font-size: var(--schrift-klein); color: var(--text-neben); visibility: hidden; }
.w-foto-wahl-eintrag input:checked ~ .w-foto-wahl-text { visibility: visible; color: var(--jump-rot); font-weight: 700; }
.w-fotoverwaltung { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.w-fotoverwaltung figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.w-fotoverwaltung img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; border-radius: 10px; }
.w-fotoverwaltung form { margin: 0; }
.w-knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; }
.w-knopfreihe form { margin: 0; }
.w-spalte { flex: 1 1 320px; min-width: 0; }
.w-spalte-breit { flex: 2 1 420px; min-width: 0; }

@media (max-width: 760px) {
  .w-kacheln { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
  .w-geraetename { font-size: 1.375rem; }
  .w-foto { max-height: 34vh; }
  .w-zeile { min-height: 64px; padding: 6px 10px 6px 6px; gap: 10px; }
  .w-zeile .plakette { font-size: .8125rem; padding: 2px 8px; }
}
/* === ENDE STRANG W1 === */

/* === STRANG W2 === */
.feld input[type=date] {
  font: 400 var(--schrift-basis) var(--schrift); min-height: var(--hoehe-button); padding: 10px 14px;
  border: 2px solid var(--rahmen); border-radius: var(--ecke-feld); background: var(--karte); color: var(--text); width: 100%;
}
tr[aria-current="true"] td { background: var(--rahmen-leise); }

/* === ENDE STRANG W2 === */

/* === STRANG KI-5 === */
/* Team und Rechte → KI-Zugang */
.ki-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.ki-kopf h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ki-kopf p { margin: 6px 0 0; max-width: 70ch; }
.ki-raster { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ki-haupt { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ki-seite { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ki-karten-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ki-zugang { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; width: 100%; }
.ki-zugang-name { color: var(--text); font-weight: 700; text-decoration: none; flex: 1 1 200px; }
.ki-zugang-name:hover { text-decoration: underline; }
.ki-zugang-angaben { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.ki-zugang-angaben code { font-size: .9em; }
.ki-unwirksam > summary, .ki-schalter-liste > summary, .ki-aufruf-details > summary { cursor: pointer; font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.ki-form > * + * { margin-top: 20px; }
.ki-haken { display: flex; flex-direction: column; gap: 18px; }
.ki-haken-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ki-haken-kopf .feld-titel { font-weight: 700; font-size: var(--schrift-gross); }
.ki-schnell { display: flex; flex-wrap: wrap; gap: 8px; }
.ki-gruppe legend { font-weight: 700; }
.ki-gruppe-hilfe { margin: -4px 0 10px; }
.ki-haken-liste { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ki-haken-liste label:has(input:checked) { border-color: var(--status-erledigt); background: var(--status-erledigt-flaeche); }
.ki-haken-liste label:has(input:disabled) { cursor: default; opacity: .7; }
.ki-haken-liste label:has(input:focus-visible) { outline: 3px solid var(--text); outline-offset: 2px; }
.ki-datenschutz-hinweis { display: flex !important; gap: 6px; align-items: flex-start; color: var(--status-reparatur) !important; margin-top: 4px; }
.ki-datenschutz-hinweis svg { flex: none; margin-top: 2px; }
.ki-datenschutz { font-size: var(--schrift-klein); line-height: 1.5; }
.ki-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.ki-schalter-form { display: flex; flex-direction: column; gap: 12px; }
.ki-schalter-form > * + * { margin-top: 0; }
.ki-schalter { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 2px solid var(--rahmen-leise); border-radius: var(--ecke-karte); cursor: pointer; }
.ki-schalter input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--status-erledigt); flex: none; }
.ki-schalter:has(input:checked) { border-color: var(--status-erledigt); background: var(--status-erledigt-flaeche); }
.ki-schalter:has(input:focus-visible) { outline: 3px solid var(--text); outline-offset: 2px; }
.ki-schalter-titel { font-weight: 500; display: block; }
.ki-schalter .unter { display: block; font-size: .9375rem; color: var(--text-neben); }
.ki-schalter-liste .feld { margin-top: 8px; }
.ki-code { width: 100%; font-family: ui-monospace, Consolas, monospace !important; font-size: var(--schrift-klein) !important; line-height: 1.5; white-space: pre; overflow-x: auto; resize: vertical; }
.ki-einmal .schluessel-feld { font-size: var(--schrift-basis); }
.ki-aufruf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ki-aufruf-zeit { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.ki-aufruf-plaketten { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ki-aufruf-text { flex: 1 1 100%; }
.ki-aufruf-details { flex: 1 1 100%; }
.ki-vorher-nachher { display: flex; flex-wrap: wrap; gap: 12px; }
.ki-vorher-nachher > div { flex: 1 1 240px; min-width: 0; }
.ki-json { margin: 4px 0 0; padding: 10px; background: var(--flaeche-grau); border-radius: 8px; font-size: .875rem; overflow-x: auto; max-height: 260px; white-space: pre-wrap; word-break: break-word; }
.ki-papierkorb-eintrag form { margin: 0; }
.ki-papierkorb-eintrag .haupt a { color: var(--text); }
.ki-angaben { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.ki-angaben dt { color: var(--text-neben); font-size: var(--schrift-klein); padding-top: 2px; }
.ki-angaben dd { margin: 0; overflow-wrap: anywhere; }
.ki-gefahr { color: var(--status-ueberfaellig); border-color: var(--status-ueberfaellig); }
.ki-gefahr:hover { background: var(--status-ueberfaellig-flaeche); }
/* PIN/Passwort zur Bestätigung (Erweitern des KI-Zugangs): Ziffernfeld nur auf Touch-Geräten. */
.ki-geheimnis { max-width: 340px; }
.ziffernfeld-touch { display: none; margin-top: 8px; }
@media (hover: none) and (pointer: coarse) { .ziffernfeld-touch { display: grid; } }
@media (max-width: 760px) {
  .ki-kopf .knopf-primaer { width: 100%; justify-content: center; }
  .ki-angaben { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ki-angaben dd { margin-bottom: 8px; }
}
/* === ENDE STRANG KI-5 === */

/* === STRANG VERTRETUNG (docs/bauphase-vertretung.md §7): Ausfälle, Leisten, Vermerk „vertritt …“ === */
.plakette-warnung { background: var(--status-reparatur-flaeche); color: var(--status-reparatur); }
.af-leiste { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.af-leiste > span { flex: 1 1 320px; min-width: 0; }
.af-leiste form { margin: 0; }
.af-leiste .person-pille { background: var(--karte); }
.af-link { color: inherit; font-weight: 700; }
.person-knopf-abwesend { border-style: dashed; border-color: var(--rahmen); }
.person-knopf-zusatz { font-weight: 400; color: var(--text-neben); }
.person-knopf[aria-current="true"] .person-knopf-zusatz { color: inherit; }
.af-zeile .vl-titel { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.af-zeitraum { font-weight: 400; }
.af-vorbei .vl-titel { color: var(--text-neben); }
.af-verteilen > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; }
.af-verteilen > summary::-webkit-details-marker { display: none; }
.af-verteilen > summary h3 { margin: 0; }
.af-verteilen > summary svg { margin-left: auto; }
.af-verteilen[open] > summary svg { transform: rotate(180deg); }
.af-verteil-zeile { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rahmen-leise); }
.af-verteil-titel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.af-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.af-slot > .feld-titel { flex: 0 0 auto; font-weight: 500; }
.af-slot > .auswahl-menue { flex: 1 1 220px; min-width: 0; max-width: 360px; }
.af-tage label { min-height: 40px; padding: 0 12px; }
.af-weitere > summary { list-style: none; display: inline-flex; }
.af-weitere > summary::-webkit-details-marker { display: none; }
.af-weitere[open] > summary { margin-bottom: 8px; }
.af-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.af-vorschau { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.af-liste { margin: 0; padding-left: 20px; }
.af-schmal { max-width: 560px; }
.az-vertritt { color: var(--text-neben); }
@media (max-width: 760px) {
  .af-leiste form, .af-leiste .knopf { width: 100%; justify-content: center; }
}
/* === ENDE STRANG VERTRETUNG === */

/* === STRANG WEB-PUSH === */
.push-geraet > * + * { margin-top: 12px; }
.push-status { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; }
.push-status-an { color: var(--status-erledigt); }
.push-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.push-anleitung ol { margin: 8px 0; padding-left: 22px; }
.push-anleitung li + li { margin-top: 4px; }
.push-liste h3, .push-vorlieben h3 { margin: 0; font-size: var(--schrift-gross); }
.push-liste ul { list-style: none; margin: 8px 0 0; padding: 0; }
.push-geraet-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--rahmen-leise); }
.karte form.push-vorlieben { gap: 12px; }
.push-anlaesse { display: flex; flex-direction: column; padding-left: 12px; border-left: 3px solid var(--rahmen-leise); }
.push-haken svg { vertical-align: -4px; margin-right: 6px; }
.push-admin { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.push-admin h3 { margin: 8px 0 0; }
.push-admin > .knopf { align-self: flex-start; }
.push-arten { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.push-admin-seite { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.push-person { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rahmen-leise); }
/* === ENDE STRANG WEB-PUSH === */

/* === QR-CODE AM GERÄT (docs/bauphase-qr-code.md §6.6, §8.2) === */
/* Runder Scan-Knopf unten rechts auf allen Wartungsseiten (E12). Am Handy über der Leiste unten; der Inhalt
   bekommt unten so viel Platz, dass der Knopf weder Abschluss-Knopf noch Eingaben verdeckt. */
.scan-knopf {
  position: fixed; right: 20px; bottom: 24px; z-index: 12; width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  background: var(--jump-rot); color: #FFFFFF; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform .2s cubic-bezier(.16,1,.3,1), background .15s;
}
.scan-knopf:hover { background: var(--jump-rot-dunkel); transform: translateY(-2px); }
.scan-knopf:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.scan-knopf-text { font-size: .6875rem; font-weight: 700; line-height: 1; letter-spacing: .02em; }
body:has(.scan-knopf) .inhalt { padding-bottom: 112px; }
@media (max-width: 760px) {
  .scan-knopf { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom) - var(--unten-korrektur, 0px)); }
  body:has(.scan-knopf) .inhalt { padding-bottom: calc(184px + env(safe-area-inset-bottom)); }
  body:has(.unten-nav .mehr[open]) .scan-knopf { display: none; }
}
@media print { .scan-knopf, .scanner { display: none !important; } }

/* Volle Zeile „Anderes Gerät scannen“ (Runde/Checkliste) und Knopf neben „Wartungsrunde starten“ */
.qr-zeile { width: 100%; }
.qr-zeile-zweit { background: var(--karte); }
.w-aktionen > .qr-knopf { flex: 1 1 200px; border-color: var(--jump-rot); color: var(--akzent-schrift); }
.w-knopf-defekt { align-self: flex-start; border-color: var(--status-reparatur); color: var(--status-reparatur); }
.w-knopf-zusatz { font-weight: 400; font-size: var(--schrift-klein); }
.w-knopf-fertig { flex-wrap: wrap; }
.qr-abloesung strong { display: block; }
.qr-pruefleiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.qr-pruefleiste form { margin: 0; }
.qr-kennung { font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: .12em; }

/* Scanner: bildschirmfüllender Dialog (Handy) bzw. auf der Seite eingebettet */
.scanner { display: flex; flex-direction: column; gap: 14px; color: var(--text); }
dialog.scanner {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; border: none;
  background: var(--seite); padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto;
}
dialog.scanner:not([open]) { display: none; }
dialog.scanner::backdrop { background: rgba(0,0,0,.6); }
@media (min-width: 761px) {
  dialog.scanner { width: min(560px, 96vw); height: fit-content; max-height: 94vh; margin: auto; border-radius: var(--ecke-karte); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
}
.scanner-seite { background: var(--karte); border-radius: var(--ecke-karte); padding: 16px; box-shadow: var(--schatten-karte); }
.scanner-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scanner-titel { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: var(--schrift-h3); }
.scanner-sucher { position: relative; background: #000; border-radius: var(--ecke-karte); overflow: hidden; aspect-ratio: 3 / 4; max-height: 62vh; width: 100%; }
@media (min-width: 761px) { .scanner-sucher { aspect-ratio: 4 / 3; } }
.scanner-sucher video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-rahmen { position: absolute; left: 50%; top: 46%; width: min(62%, 280px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.scanner-rahmen i { position: absolute; width: 28%; height: 28%; border: 4px solid #FFFFFF; border-radius: 6px; }
.scanner-rahmen i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.scanner-rahmen i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.scanner-rahmen i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.scanner-rahmen i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.scanner-text { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 14px; color: #FFFFFF; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-weight: 500; text-align: center; }
.scanner-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.scanner-knoepfe:not(:has(button:not([hidden]))) { display: none; }
.scanner-knoepfe .knopf[aria-pressed="true"] { background: var(--status-reparatur-voll); border-color: var(--status-reparatur-voll); color: #1A1A1A; }
.scanner-eingabe { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.scanner-eingabe label { font-weight: 500; }
.scanner-eingabe-zeile { display: flex; gap: 8px; }
.eingabe-kennung { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: 1.375rem; letter-spacing: .2em; text-transform: uppercase; }
.scanner-liste-link { align-self: flex-start; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.scanner-treffer { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--ecke-karte); background: var(--status-offen-flaeche); color: var(--text); }
.scanner-treffer-neu { background: var(--status-erledigt-flaeche); }
.scanner-treffer-fehler { background: var(--status-reparatur-flaeche); }
.scanner-treffer img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.scanner-treffer > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.scanner-treffer strong { font-size: var(--schrift-gross); }

/* Wartung → Einstellungen, Abschnitt „QR-Aufkleber“ */
.qr-bereich h2 { display: flex; align-items: center; gap: 8px; }
.qr-fortschritt { display: flex; flex-direction: column; gap: 8px; }
.qr-fortschritt .w-balken { height: 10px; }
.qr-pillen { display: flex; flex-wrap: wrap; gap: 6px; }
.qr-pillen a { text-decoration: none; }
.qr-druck { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--rahmen-leise); padding-top: 16px; margin: 0; }
.qr-druck h3 { margin: 0; }
.eingabe-mm { max-width: 8em; }
/* === ENDE QR-CODE AM GERÄT === */
/* Rundenkopf am Handy: „Unterbrechen“ darf nicht aus dem Bild ragen (Zeile bricht um). */
.w-rundenkopf { flex-wrap: wrap; }
.w-rundenkopf .w-position { flex: 1 1 auto; text-align: center; min-width: 0; }
/* Aushänge (Felix, 12.10.2026): Raster mit Vorschau im A4-Format */
.ah-raster { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ah-karte { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); padding: 10px; background: var(--karte); }
.ah-bild { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 6px; background: var(--flaeche-grau); }
.ah-angaben { display: flex; flex-direction: column; gap: 6px; }
.ah-verwalten > summary { cursor: pointer; color: var(--text-neben); font-size: var(--schrift-klein); padding: 6px 0; }
.ah-verwalten form { margin: 6px 0 0; }
.ah-knoepfe { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
/* === TECHNIKPROTOKOLLE (Verwaltung → System, docs/bauphase-protokolle-und-erledigen.md §4.5) === */
.tp-quellen { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tp-knoepfe { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.tp-knoepfe form { margin: 0; }
.tp-schalter { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.tp-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
.tp-suche { flex: 1 1 200px; min-width: 0; min-height: 44px; }
.tp-listenkopf { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; }
.tp-listenkopf h3 { margin: 0; }
.tp-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tp-liste { list-style: none; margin: 0; padding: 0; font-family: ui-monospace, Consolas, monospace; font-size: .9375rem; }
.tp-zeile { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--rahmen-leise); }
.tp-zeit, .tp-quelle { flex: none; color: var(--text-neben); }
.tp-zeile .plakette { font-family: var(--schrift); padding: 0 8px; }
.tp-text { flex: 1 1 320px; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tp-text summary { cursor: pointer; }
.tp-text pre { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; color: var(--text-neben); }
.tp-blaettern { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 12px; }
/* === ENDE TECHNIKPROTOKOLLE === */

/* === AUSHANG IM TRAINERBÜRO DRUCKEN (docs/bauphase-auto-druck.md §7) === */
.dr-kasten { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--ecke-karte); border: 2px solid var(--rahmen-leise); background: var(--karte); }
.dr-kasten p { margin: 0; }
.dr-kasten + .dr-kasten { margin-top: 8px; }
.dr-symbol { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--flaeche-grau); color: var(--text-neben); }
.dr-inhalt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.dr-text { font-weight: 500; overflow-wrap: anywhere; }
.dr-unter { font-size: var(--schrift-klein); }
.dr-nachholen { margin: 6px 0 0; }
.dr-dreher { position: absolute; inset: -3px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--status-offen); animation: dr-drehen 1s linear infinite; }
@keyframes dr-drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dr-dreher { animation: none; border-color: var(--status-offen); opacity: .5; } }
.dr-kasten.dr-laeuft { border-color: var(--status-offen); background: var(--status-offen-flaeche); }
.dr-kasten.dr-ok { border-color: var(--status-erledigt); background: var(--status-erledigt-flaeche); }
.dr-kasten.dr-ok .dr-symbol { background: var(--karte); color: var(--status-erledigt); }
.dr-kasten.dr-warnung { border-color: var(--status-reparatur); background: var(--status-reparatur-flaeche); }
.dr-kasten.dr-warnung .dr-symbol { background: var(--karte); color: var(--status-reparatur); }
.dr-kasten.dr-fehler { border-color: var(--status-ueberfaellig); background: var(--status-ueberfaellig-flaeche); }
.dr-kasten.dr-fehler .dr-symbol { background: var(--karte); color: var(--status-ueberfaellig); }
.dr-kasten.dr-fehler .dr-text { color: var(--status-ueberfaellig); }
.dr-kasten.dr-laeuft .dr-symbol { color: var(--status-offen); }
.dr-hand { border-top: 1px solid var(--rahmen-leise); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.dr-hand > * { margin: 0; }
.dr-liste { margin: 12px 0; }
.dr-fehlt { display: inline-flex; color: var(--status-ueberfaellig); flex: none; }
.ah-trainerbuero { margin: 0; }
.ah-trainerbuero .knopf { width: 100%; }
.ah-angaben > .knopf { justify-content: center; }
.dr-ampel { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--ecke-karte); background: var(--flaeche-grau); color: var(--text); margin: 12px 0; }
.dr-ampel-punkt { flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: var(--text-neben); }
.dr-ampel-ok { background: var(--status-erledigt-flaeche); color: var(--status-erledigt); }
.dr-ampel-ok .dr-ampel-punkt { background: var(--status-erledigt); }
.dr-ampel-warnung { background: var(--status-reparatur-flaeche); color: var(--status-reparatur); }
.dr-ampel-warnung .dr-ampel-punkt { background: var(--status-reparatur-voll); }
.dr-ampel-fehler { background: var(--status-ueberfaellig-flaeche); color: var(--status-ueberfaellig); }
.dr-ampel-fehler .dr-ampel-punkt { background: var(--status-ueberfaellig-voll); }
.dr-form .feld input[type="text"] { max-width: 260px; }
.dr-feld-zahl input { max-width: 120px; }
.dr-test { gap: 10px; }
.dr-angaben { margin-top: 4px; }
.dr-umbruch { overflow-wrap: anywhere; }
.dr-zeile-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dr-zeilen .w-unter { overflow-wrap: anywhere; }
/* === ENDE AUSHANG IM TRAINERBÜRO DRUCKEN === */

/* === ÖFFNUNGSZEITEN (Verwaltung → Team → Öffnungszeiten, docs/bauphase-schichtplan.md §5) === */
.oz-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
@media (min-width: 1100px) { .oz-raster { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.oz-spalte { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.oz-titel { margin: 0; }
.oz-daran-hilfe { margin: 8px 0 0; }
.oz-daran { list-style: none; margin: 8px 0 0; padding: 0; }
.oz-daran li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--rahmen-leise); }
.oz-daran li:first-child { border-top: none; }
.oz-daran li .leise { font-size: var(--schrift-klein); }
.oz-untertitel { margin: 0 0 4px; font-size: var(--schrift-basis); }
.oz-saison { align-self: center; }
/* Saison-Pille: Symbol + Wort, Farben als Tokens (tokens.css „Saison-Pille“) */
.plakette-saison { padding: 4px 14px 4px 10px; }
.plakette-saison svg { flex: none; }
.plakette-winter { background: var(--saison-winter-flaeche); color: var(--saison-winter); }
.plakette-sommer { background: var(--saison-sommer-flaeche); color: var(--saison-sommer); }
.oz-saison-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 12px 0; }
.oz-tage { display: flex; flex-direction: column; }
.oz-tag { padding: 12px 0; border-top: 1px solid var(--rahmen-leise); }
.oz-tag:first-child { border-top: none; padding-top: 0; }
.oz-tag-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.oz-tag-name { font-weight: 500; min-width: 7.5em; }
.oz-zeit { font-variant-numeric: tabular-nums; font-weight: 500; }
.oz-unter { font-size: var(--schrift-klein); color: var(--text-neben); margin-top: 2px; }
.oz-bearbeiten > summary, .oz-neu > summary { list-style: none; cursor: pointer; }
.oz-bearbeiten > summary::-webkit-details-marker, .oz-neu > summary::-webkit-details-marker { display: none; }
.oz-bearbeiten > summary { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--akzent-schrift); text-decoration: underline; }
.oz-bearbeiten[open] > summary svg { transform: rotate(180deg); }
.oz-bearbeiten > form, .oz-neu > form { margin-top: 8px; padding: 16px; border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); background: var(--flaeche-grau); }
.oz-bearbeiten > form + form { margin-top: 4px; padding: 0; border: none; background: none; }
.oz-neu { margin-bottom: 8px; }
.oz-neu > summary.knopf { display: inline-flex; }
.oz-felder { display: flex; flex-direction: column; gap: 16px; }
.oz-feldreihe > .feld { flex: 1 1 140px; }
.oz-feldreihe input[type="time"], .oz-feldreihe input[type="date"] { max-width: 100%; }
/* Lange Beschriftungen („Sommeröffnungszeiten ab“): untereinander statt nebeneinander, sonst überlappen sie am Handy. */
.oz-saisonfelder > .feld { flex-basis: 100%; }
.oz-haken { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.oz-haken input { width: 22px; height: 22px; accent-color: var(--status-erledigt); }
.oz-schmal { max-width: 220px; }
/* === ENDE ÖFFNUNGSZEITEN === */

/* Verwaltung → Team → Arbeitszeiten (schichtplan/views_arbeitszeiten.py) */
.at-personen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.at-person { padding: 16px 0; border-top: 1px solid var(--rahmen-leise); scroll-margin-top: 80px; }
.at-person:first-child { border-top: none; padding-top: 4px; }
.at-person-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.at-person-kopf .avatar { width: 32px; height: 32px; font-size: .8125rem; }
.at-person-name { font-weight: 700; }
.at-tage { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.at-tag { display: flex; align-items: flex-start; gap: 12px; padding: 2px 0; }
.at-tag-name { flex: none; width: 2.2em; min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; color: var(--text-neben); }
.at-zeiten { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.at-zeit-eintrag > summary { list-style: none; cursor: pointer; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: 44px; }
.at-zeit-eintrag > summary::-webkit-details-marker { display: none; }
.at-zeit-eintrag > summary svg { color: var(--text-neben); }
.at-zeit-eintrag[open] > summary svg { transform: rotate(180deg); }
.at-zeit-eintrag > summary:hover .oz-zeit { text-decoration: underline; }
.at-kuenftig > summary .oz-zeit { font-weight: 400; }
.at-formulare { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 8px; padding: 16px; border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); background: var(--flaeche-grau); }
.at-formulare form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.at-formulare .knopf { align-self: flex-start; }
.at-entfernen { padding-top: 12px; border-top: 1px solid var(--rahmen-leise); }
.at-hand { margin: 6px 0 0; }
.at-neu { margin: 8px 0 0; }
.at-neu > form { display: flex; flex-direction: column; gap: 12px; }
.at-neu > form .knopf { align-self: flex-start; }
.at-minuten > .feld { flex: 1 1 160px; }
.at-mini { width: 26px; height: 26px; font-size: .75rem; margin-right: 8px; vertical-align: middle; }
@media (min-width: 1500px) { .at-personen { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } .at-person:nth-child(2) { border-top: none; padding-top: 4px; } }

/* === NEUIGKEITEN (docs/bauphase-neuigkeiten.md §6) === */
/* Pop-up: blockierend, Dialog 12 px Ecken (B6), Knöpfe ≥ 48 px (B7), nur vorhandene Tokens (hell/dunkel). */
dialog.neuigkeiten {
  display: flex; flex-direction: column; box-sizing: border-box; padding: 0; overflow: hidden;
  width: min(640px, calc(100vw - 32px)); max-height: 80vh; margin: auto;
  border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte);
  background: var(--karte); color: var(--text); box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
dialog.neuigkeiten:not([open]) { display: none; }
dialog.neuigkeiten::backdrop { background: rgba(0, 0, 0, .55); }
/* Ohne JavaScript: <dialog open> ist nicht modal, eine feste Fläche deckt die Seite ab (§5.4). */
.nf-schutz { position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, .55); }
dialog.neuigkeiten[open]:not(:modal) { position: fixed; inset: 0; z-index: 901; }
.nf-js .nf-schutz { display: none; }
.nf-kopf { padding: 20px 24px 12px; border-bottom: 1px solid var(--rahmen-leise); }
.nf-titel { display: flex; align-items: center; gap: 14px; margin: 0; font-size: var(--schrift-h2); line-height: 1.25; }
.nf-titel:focus, .nf-titel:focus-visible { outline: none; } /* Startfokus für Vorleser, kein Bedienelement */
.nf-titel .avatar { width: 52px; height: 52px; font-size: 1.125rem; flex: none; }
.nf-unter { margin: 10px 0 0; color: var(--text-neben); font-size: var(--schrift-klein); }
.nf-liste { list-style: none; margin: 0; padding: 4px 24px; overflow-y: auto; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.nf-eintrag { display: flex; gap: 14px; align-items: flex-start; min-height: 56px; padding: 14px 0; border-top: 1px solid var(--rahmen-leise); }
.nf-eintrag:first-child { border-top: none; }
.nf-bild { flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--flaeche-grau); color: var(--text-neben); }
.nf-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-inhalt { min-width: 0; flex: 1; }
.nf-name { margin: 0; font-size: var(--schrift-gross); font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.nf-name a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.nf-eintrag { position: relative; }
.nf-name a::after { content: ""; position: absolute; inset: 0; } /* ganze Zeile antippbar (Theken-PC, §6.1) */
.nf-name a:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.nf-satz, .nf-text { margin: 4px 0 0; color: var(--text-neben); font-size: var(--schrift-klein); overflow-wrap: anywhere; }
.nf-kurz .nf-text { color: var(--text); font-size: var(--schrift-basis); }
.nf-weiter { display: inline-block; margin-top: 4px; font-size: var(--schrift-klein); font-weight: 500; color: var(--text); }
.nf-meta { margin: 6px 0 0; color: var(--text-neben); font-size: var(--schrift-klein); }
.nf-gesehen { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: var(--schrift-klein); font-weight: 400; color: var(--status-erledigt); white-space: nowrap; vertical-align: middle; }
.nf-fuss { padding: 16px 24px 20px; border-top: 1px solid var(--rahmen-leise); background: var(--karte); }
.nf-fuss form { margin: 0; }
.nf-ok { width: 100%; min-height: 56px; justify-content: center; font-size: var(--schrift-gross); }
.nf-fehler { margin: 0 0 12px; }
.nf-andere { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rahmen-leise); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.nf-andere form { margin: 0; }
.nf-nichtdu { margin: 0; font-weight: 500; }
.nf-pillen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; }
.nf-pillen form { margin: 0; }
.nf-pillen .schicht-abstand { display: none; }
@media (max-width: 760px) {
  dialog.neuigkeiten { width: calc(100vw - 32px); max-height: calc(100dvh - 32px); }
  .nf-kopf { padding: 16px 16px 10px; }
  .nf-liste { padding: 4px 16px; }
  .nf-fuss { padding: 14px 16px 16px; }
  .nf-titel { font-size: var(--schrift-h3); }
  .nf-titel .avatar { width: 44px; height: 44px; }
  .nf-ok { font-size: var(--schrift-basis); padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.neuigkeiten:modal { animation: nf-auf .12s ease-out; }
  @keyframes nf-auf { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
/* Leiste auf der Eintragsseite, wenn er aus dem Pop-up geöffnet wurde (§5.3) */
.nf-leiste { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 16px; padding: 12px 16px; background: var(--karte); border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
.nf-leiste form { margin: 0; }
.nf-leiste-text { margin: 0; color: var(--text-neben); font-size: var(--schrift-klein); flex-basis: 100%; }
@media (max-width: 760px) { .nf-leiste { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } .nf-leiste .knopf { flex: 1 1 100%; justify-content: center; } }
/* Kasten „Neuigkeit“ in der Maske und Lesestand (nur Admins) */
.nk-kasten { margin: 16px 0; padding: 16px; border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-karte); background: var(--flaeche-grau); }
.nk-kasten h2, .nk-kasten h3 { margin: 0 0 6px; font-size: var(--schrift-gross); }
.nk-kasten .feld { margin-bottom: 8px; }
.nk-zaehler { float: right; color: var(--text-neben); font-size: var(--schrift-klein); }
.ls-meldung { border-top: 1px solid var(--rahmen-leise); padding: 12px 0; }
.ls-meldung:first-of-type { border-top: none; }
.ls-kopf { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; }
.ls-titel { margin: 0; font-size: var(--schrift-gross); font-weight: 500; }
.ls-zahl { font-weight: 500; }
.ls-unter { margin: 2px 0 0; }
.ls-text { margin: 6px 0 0; }
.ls-fehlt { margin: 8px 0 2px; }
.ls-alle { margin: 8px 0 0; }
progress.ls-balken { display: block; width: 100%; height: 10px; margin: 8px 0; border: 1px solid var(--rahmen-leise); border-radius: 999px; background: var(--flaeche-grau); overflow: hidden; appearance: none; -webkit-appearance: none; }
progress.ls-balken::-webkit-progress-bar { background: var(--flaeche-grau); }
progress.ls-balken::-webkit-progress-value { background: var(--status-erledigt); }
progress.ls-balken::-moz-progress-bar { background: var(--status-erledigt); }
.ls-liste { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.ls-liste li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: var(--schrift-klein); }
.ls-fehlt { color: var(--status-ueberfaellig); }
.ls-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ls-knoepfe form { margin: 0; }
details.ls-details > summary { cursor: pointer; font-weight: 500; padding: 4px 0; }
/* === ENDE NEUIGKEITEN === */
/* === TAGESÜBERBLICK (docs/bauphase-tagesueberblick.md §6) === */
/* Gleiches Fenster wie die Neuigkeiten, Klasse „tu“: Abschnitte mit kleiner Überschrift, Zeilen ≥ 56 px. */
.tu-liste { padding-top: 0; padding-bottom: 8px; }
.tu-abschnitt { padding: 14px 0 6px; border-top: 1px solid var(--rahmen-leise); }
.tu-abschnitt:first-child { border-top: none; }
.tu-kopf { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: var(--schrift-klein); font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--text-neben); }
.tu-kopf svg { flex: none; }
.tu-zahl { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--flaeche-grau); color: var(--text); font-size: var(--schrift-klein); letter-spacing: 0; text-transform: none; }
.tu-zeilen { list-style: none; margin: 0; padding: 0; }
.tu-eintrag { min-height: 56px; padding: 10px 0; align-items: center; }
.tu-eintrag .nf-name { font-size: var(--schrift-basis); }
.tu-eintrag .nf-meta { margin-top: 2px; }
.tu-eintrag .plakette { margin-left: 6px; vertical-align: middle; }
.tu-weitere { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--schrift-klein); font-weight: 500; color: var(--text); }
.tu-weitere:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.tu-leiste { justify-content: flex-start; }
/* === ENDE TAGESÜBERBLICK === */
.nf-liste-seite { padding: 0; overflow: visible; margin-bottom: 12px; }
.nk-kasten .haken-zeile { align-items: flex-start; }
.nk-kasten .haken-zeile input { margin-top: 2px; }
/* === WARTELISTE U18 (docs/bauphase-warteliste-u18.md §6) === */
.wl-blatt { max-width: 640px; }
.wl-blatt > * + * { margin-top: 16px; }
.wl-formular { margin-top: 16px; }
.wl-info { border-left: 4px solid var(--jump-rot); background: var(--flaeche-grau); padding: 12px 16px; border-radius: 0 var(--ecke-feld) var(--ecke-feld) 0; margin: 0; }
.wl-felder { display: flex; flex-direction: column; gap: 16px; }
.wl-feld input[type=email] { font: 400 var(--schrift-basis) var(--schrift); min-height: var(--hoehe-button); padding: 10px 14px; border: 2px solid var(--rahmen); border-radius: var(--ecke-feld); background: var(--karte); color: var(--text); width: 100%; }
.wl-feld input[type=email]:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.wl-stern { color: var(--status-ueberfaellig); }
.wl-geburt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wl-geburt input[type=date] { flex: 0 1 220px; }
.wl-intern input[type=date] { max-width: 220px; }
.wl-alter { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.wl-alter-hinweis { flex-basis: 100%; background: var(--status-reparatur-flaeche); color: var(--status-reparatur); padding: 8px 12px; border-radius: var(--ecke-feld); font-weight: 500; }
.wl-alter-fehler { color: var(--status-ueberfaellig); font-weight: 500; font-size: var(--schrift-klein); }
.wl-plakette-bald { background: var(--status-reparatur-flaeche); color: var(--status-reparatur); }
.wl-haken { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; }
.wl-haken input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--jump-rot); }
.wl-haken-warnung { margin-top: 8px; font-weight: 700; }
.wl-einverstanden > * + * { margin-top: 6px; }
.wl-einverstanden .wl-haken { font-weight: 500; }
.wl-intern { border: 2px dashed var(--rahmen); border-radius: var(--ecke-karte); padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; background: var(--flaeche-grau); }
.wl-intern legend { font-weight: 700; padding: 0 6px; }
.wl-theke summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; cursor: pointer; list-style: none; min-height: 44px; }
.wl-theke summary::-webkit-details-marker { display: none; }
.wl-theke summary svg { margin-left: auto; transition: transform .15s; }
.wl-theke[open] summary svg { transform: rotate(180deg); }
.wl-theke-titel { font-weight: 700; }
.wl-punkte { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.wl-knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wl-aushang-gross { margin: 0; text-align: center; }
.wl-aushang-gross img { max-width: 100%; max-height: calc(100vh - 160px); height: auto; border-radius: var(--ecke-feld); box-shadow: var(--schatten-karte); background: #FFFFFF; }
.wl-aushang-klein { display: block; max-width: 220px; height: auto; border: 1px solid var(--rahmen-leise); border-radius: var(--ecke-feld); }
.wl-liste { list-style: none; margin: 16px 0 0; padding: 0 24px; }
.wl-liste > * + * { margin-top: 0; }
.wl-zeile { display: grid; grid-template-columns: 48px minmax(0, 2fr) minmax(0, 2fr) auto minmax(0, 1fr); align-items: center; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--rahmen-leise); }
.wl-zeile:first-child { border-top: none; }
.wl-platz { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.wl-zeile-name { font-weight: 500; color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }
.wl-zeile-alter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .wl-liste { padding: 0 16px; }
  .wl-zeile { grid-template-columns: 40px minmax(0, 1fr); }
  .wl-zeile > :not(.wl-platz) { grid-column: 2; }
  .wl-platz { grid-row: span 4; align-self: start; padding-top: 8px; }
}
.wl-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
@media (min-width: 1100px) { .wl-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .wl-detail > :last-child { grid-column: 1 / -1; } }
.wl-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.wl-dl dt { color: var(--text-neben); }
.wl-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .wl-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .wl-dl dd { margin-bottom: 8px; } }
.wl-verlauf { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wl-verlauf li { border-left: 3px solid var(--rahmen-leise); padding-left: 12px; }
.wl-verlauf time { display: block; color: var(--text-neben); font-size: var(--schrift-klein); }
.wl-gefahr { margin-top: 16px; border-color: var(--status-ueberfaellig-flaeche); }
.wl-knopf-gefahr { color: var(--status-ueberfaellig); border-color: var(--status-ueberfaellig); }
.karte form.wl-links { align-items: flex-start; }
/* === ENDE WARTELISTE U18 === */
/* === WARTELISTE U18, LIEFERUNG 2 === */
.wl-reiter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.wl-reiter a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--rahmen-leise); color: var(--text); text-decoration: none; font-weight: 500; }
.wl-reiter a[aria-current] { background: var(--gewaehlt); border-color: var(--gewaehlt); color: var(--gewaehlt-text); }
.wl-naechster { margin-top: 16px; border-left: 6px solid var(--jump-rot); }
.wl-naechster h2 { margin: 4px 0 0; }
.wl-naechster h2 a { color: var(--text); }
.wl-telefon { font-size: 1.25rem; font-weight: 700; }
.wl-zeile { grid-template-columns: 48px minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1.6fr) minmax(0, 1fr) auto; }
.wl-zeile-naechster .wl-platz { color: var(--jump-rot); }
.wl-zeile-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wl-pfeile { justify-self: end; }
.wl-archiv .wl-zeile { grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 760px) {
  .wl-zeile, .wl-archiv .wl-zeile { grid-template-columns: 40px minmax(0, 1fr); }
  .wl-zeile > :not(.wl-platz) { grid-column: 2; }
  .wl-pfeile { grid-row: 5; justify-self: start; }
  .wl-zeile { grid-auto-flow: row dense; }
  .wl-zeile-name { grid-row: 1; } .wl-zeile-alter { grid-row: 2; } .wl-zeile-status { grid-row: 3; } .wl-zeile-datum { grid-row: 4; }
  .wl-zeile .wl-platz { grid-row: 1 / span 5; grid-column: 1; }
  .wl-archiv .wl-zeile { grid-template-columns: minmax(0, 1fr); }
  .wl-archiv .wl-zeile > * { grid-column: 1; grid-row: auto; }
}
.wl-status-wartet { background: var(--status-offen-flaeche); color: var(--status-offen); }
.wl-status-kontaktiert { background: var(--status-reparatur-flaeche); color: var(--status-reparatur); }
.wl-status-termin { background: var(--status-ueberfaellig-flaeche); color: var(--status-ueberfaellig); }
.wl-status-aufgenommen { background: var(--status-erledigt-flaeche); color: var(--status-erledigt); }
.wl-status-abgesagt { background: var(--status-ausser-betrieb-flaeche); color: var(--status-ausser-betrieb); }
.wl-platz-gross { font-size: 1.25rem; font-weight: 700; }
.wl-schritte { margin-top: 16px; }
.wl-klappe { border-top: 1px solid var(--rahmen-leise); padding-top: 8px; }
.wl-klappe summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 500; list-style: none; }
.wl-klappe summary::-webkit-details-marker { display: none; }
.wl-klappe[open] summary svg { transform: rotate(180deg); }
.wl-klappe-form { padding-bottom: 8px; }
.wl-klappe input[type=datetime-local], .wl-klappe input[type=text] { font: 400 var(--schrift-basis) var(--schrift); min-height: var(--hoehe-button); padding: 10px 14px; border: 2px solid var(--rahmen); border-radius: var(--ecke-feld); background: var(--karte); color: var(--text); max-width: 320px; width: 100%; }
.wl-knopf-ok { background: var(--status-erledigt); border-color: var(--status-erledigt); color: #FFFFFF; }
/* === ENDE WARTELISTE U18, LIEFERUNG 2 === */

/* ===== Zirkeluhr (docs/bauphase-zirkeluhr.md): Trainer-Seiten und Handy-Steuerung ===== */
.zk-reiter { margin: 4px 0 20px; }
.zk-abschnitt { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.zk-abschnitt-karte { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.zk-knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.zk-tv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; text-decoration: none; color: var(--text); }
.zk-tv-name { font-weight: 700; font-size: 1.15rem; flex: 1 1 auto; }
.zk-tv-status { color: var(--text-neben); font-size: var(--schrift-klein); }
.zk-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.zk-vorlage { display: flex; flex-direction: column; gap: 10px; }
.zk-vorlage-kopf { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.zk-vorlage-kopf h3 { margin: 0; }
.zk-neu { display: flex; flex-direction: column; gap: 10px; }
.zk-zeile-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.zk-zeile-form .feld { flex: 1 1 220px; }
.zk-zahlen > .feld { flex: 1 1 150px; }
.zk-stationen { display: flex; flex-direction: column; gap: 8px; }
.zk-st-kopf, .zk-st-zeile { display: grid; grid-template-columns: 2.2em minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.zk-st-kopf { font-size: var(--schrift-klein); color: var(--text-neben); font-weight: 500; }
.zk-st-nr { color: var(--text-neben); font-variant-numeric: tabular-nums; text-align: right; }
.zk-st-zeile input, .zk-inline input, .zk-datum, .feld input[type=date], .feld textarea {
  font: inherit; padding: 10px 12px; border: 2px solid var(--rahmen); border-radius: 10px; background: var(--karte); color: var(--text); min-height: 44px; min-width: 0; width: 100%; }
@media (max-width: 700px) {
  .zk-st-kopf { display: none; }
  .zk-st-zeile { grid-template-columns: 2em minmax(0, 1fr); }
  .zk-st-zeile input:nth-of-type(n+2) { grid-column: 2; }
}
.zk-rechner-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.zk-vorschlaege { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.zk-vorschlag { display: flex; flex-direction: column; gap: 6px; }
.zk-vorschlag-zahl { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.zk-termin-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.zk-art { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.zk-datum { width: auto; }
.zk-unter { margin: 16px 0 8px; font-size: 1rem; }
.zk-inline { display: flex; gap: 8px; align-items: center; }
.zk-inline input { width: 14em; }
.zk-live { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; text-align: center; }
.zk-live-kopf { display: flex; flex-direction: column; gap: 2px; }
.zk-live-phase { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.zk-live-zeit { font-size: clamp(3.5rem, 18vw, 6rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.zk-steuerung { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.zk-steuerung form:nth-child(2) { grid-row: 1; grid-column: 1 / -1; }
.zk-taste, .zk-riesig { width: 100%; min-height: 64px; font-size: 1.15rem; }
.zk-riesig { min-height: 76px; font-size: 1.3rem; }
.zk-gross { margin-bottom: 8px; }
.zk-rot { color: var(--status-ueberfaellig); font-weight: 500; }
.zk-benennen { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.zk-benennen legend { margin-bottom: 8px; }
.zk-wahl { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--rahmen-leise); border-radius: var(--ecke-karte); cursor: pointer; }
.zk-wahl:has(input:checked) { border-color: var(--text); }
.zk-wahl input { margin-top: 4px; }
.zk-wahl > span { display: flex; flex-direction: column; gap: 2px; }
/* Durchnummeriert: keine Namenszeilen (ohne :has bleiben sie sichtbar und werden ignoriert) */
.zk-form:has(input[name="benannt"][value="nein"]:checked) [data-zk-stationen] { display: none; }
.zk-st-zeile input::placeholder { color: var(--text-neben); opacity: .75; }
.zk-st-zeile[hidden] { display: none; }
