:root {
  --primary: #0369A1;
  --primary-pressed: #075985;
  --primary-soft: #E0F2FE;
  --on-primary: #fff;
  --bg: #F0F9FF;
  --card: #fff;
  --text: #0F172A;
  --muted: #475569;
  --border: #CBD5E1;
  --border-soft: #E2E8F0;
  --danger: #B91C1C;
  --danger-soft: #FEE2E2;
  --ok-fg: #166534;   --ok-bg: #DCFCE7;
  --due-fg: #92400E;  --due-bg: #FEF3C7;
  --over-fg: #991B1B; --over-bg: #FEE2E2;
  --off-fg: #334155;  --off-bg: #E2E8F0;
  --neutral-bg: #F1F5F9; /* neutrale Flächen (Hover, Info-Kacheln) */
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 6px rgba(15, 23, 42, .06);
  --shadow-pop: 0 12px 32px rgba(15, 23, 42, .18); /* aufklappende Flächen (Kalender) */
  --backdrop: rgba(15, 23, 42, .45);
  --text-disabled: #94A3B8; /* nicht wählbare Tage */
  --topbar-h: 56px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  /* Ergänzt in Umbau Schritt 1: alle Farben nur noch hier */
  --focus: #38BDF8;          /* Fokusrahmen */
  --surface-alt: #F8FAFC;    /* Zebra-Zeilen, Hover auf Abschnittsköpfen */
  --text-subtle: #64748B;    /* Nebensächliches (Leerzeilen im Bericht, Marke auf QR-Etiketten) */
  --warn: #D97706; --warn-soft: #FFFBEB; /* Hinweisrahmen (Wert außerhalb, Zählerwechsel) */
  --compare: #A855F7;        /* Vergleichsreihe in Diagrammen */
  --chart-band-edge: #86EFAC; /* Rand des Sollbereichs im Diagramm */
  --inverse-bg: #0F172A; --on-inverse: #fff; /* Meldung (Toast), Diagramm-Hinweis */
  --on-primary-weak: rgba(255,255,255,.1); --on-primary-hover: rgba(255,255,255,.12);
  --on-primary-fill: rgba(255,255,255,.16); --on-primary-strong: rgba(255,255,255,.2); --on-primary-line: rgba(255,255,255,.35);
  --cat-strom-bg: #FEF9C3; --cat-strom-fg: #854D0E;
  --cat-gas-bg: #FFEDD5;   --cat-gas-fg: #9A3412;
  --cat-waerme-bg: #FCE7F3; --cat-waerme-fg: #9D174D;
  --shadow-bar: 0 1px 4px rgba(0, 0, 0, .15);
  --shadow-drawer: 4px 0 16px rgba(0, 0, 0, .18);
  --shadow-modal: 0 10px 40px rgba(0, 0, 0, .25);
  --shadow-toast: 0 6px 20px rgba(0, 0, 0, .25);
  --shadow-tip: 0 4px 12px rgba(0, 0, 0, .2);
  --shadow-up: 0 -4px 12px rgba(15, 23, 42, .08); /* feste Leiste unten */
  /* Abstände, Schriftgrößen, Bewegung, feste Leiste (für neue Bausteine; Bestand folgt seitenweise) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --fs-sm: 14px; --fs-base: 16px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 28px;
  --motion-fast: .15s; --motion: .2s;
  --actionbar-h: 72px;
  --bottomnav-h: 64px;    /* untere Leiste Start · Eintragen · Menü */
  /* Menü (Menü kompakter, Schritt 1): Zeilenhöhe Handy 48 px, mit Maus 44 px (nie darunter), Lücke, Breiten */
  --nav-row-h: 48px; --nav-gap: 2px;
  --drawer-w: min(310px, 86vw); --sidebar-w: 290px;
  --season-off-fg: #334155; --season-off-bg: #EEF2F6; --season-off-line: #CBD5E1; /* „Außer Saison“: ruhig, nicht rot (Kontrast über 9 : 1) */
  --closed-fg: #5B21B6; --closed-bg: #F3E8FF; --closed-line: #DDD6FE; /* „Geschlossen“ (Schließzeiten): eigene Farbe, nicht rot (Kontrast über 7 : 1) */
  --start-fg: #134E4A; --start-bg: #F0FDFA; --start-line: #99F6E4; /* „Noch nicht gestartet“ (Betriebsbeginn): ruhig, nicht rot (Kontrast über 9 : 1) */
}

@media (hover: hover) and (pointer: fine) { :root { --nav-row-h: 44px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.noscript { padding: 24px; text-align: center; }
.center { text-align: center; }
.pad { padding: 12px 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  min-height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 8px 0 4px;
  background: var(--primary); color: var(--on-primary);
  box-shadow: var(--shadow-bar);
}
.topbar-title { flex: 1; font-size: 19px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; color: inherit; display: grid; place-items: center; }
.icon-btn:hover { background: var(--on-primary-hover); }
.sync {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border-radius: 999px; border: 0; background: var(--on-primary-fill); color: var(--on-primary); font-size: 14px; font-weight: 700;
}
.sync svg { width: 16px; height: 16px; }
.sync.offline { background: var(--due-bg); color: var(--due-fg); }
.sync.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Menü (Drawer) ---------- */
.backdrop { position: fixed; inset: 0; background: var(--backdrop); z-index: 30; opacity: 0; transition: opacity .2s ease-out; }
.backdrop.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 31; width: var(--drawer-w);
  background: var(--card); box-shadow: var(--shadow-drawer);
  transform: translateX(-102%); transition: transform .22s ease-out;
  display: flex; flex-direction: column; overflow-y: auto;
  padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 20px 16px; border-bottom: 1px solid var(--border-soft); }
.drawer-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }
.drawer-logo svg { fill: var(--on-primary); stroke: none; }
.drawer-app { font-weight: 800; font-size: 17px; }
.drawer-user { font-size: 14px; color: var(--muted); }
.drawer-list { list-style: none; margin: 0; padding: var(--space-2); display: flex; flex-direction: column; gap: var(--nav-gap); }
.drawer-list a, .drawer-list button {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--nav-row-h); padding: 0 var(--space-3);
  border-radius: var(--radius); border: 0; background: transparent; text-decoration: none; color: var(--text);
  font-size: var(--fs-base); font-weight: 600; text-align: left;
}
.drawer-list a:hover, .drawer-list button:hover { background: var(--neutral-bg); }
.drawer-list a[aria-current], .drawer-list button[aria-current] { background: var(--primary-soft); color: var(--primary); }
.drawer-list .sep { height: 1px; background: var(--border-soft); margin: var(--space-2) var(--space-1); }
.drawer-list .danger { color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .drawer, .backdrop { transition: none; } .sync.spin svg { animation: none; } }

/* Große Bildschirme: Menü dauerhaft sichtbar */
@media (min-width: 1100px) {
  body.authed { padding-left: var(--sidebar-w); }
  body.authed .drawer { transform: none; width: var(--sidebar-w); box-shadow: none; border-right: 1px solid var(--border-soft); display: flex !important; }
  body.authed #menuBtn { display: none; }
  body.authed .topbar { padding-left: 16px; }
  body.authed .backdrop { display: none !important; }
}

/* ---------- Layout ---------- */
main { padding: 16px 16px calc(48px + env(safe-area-inset-bottom)); outline: none; }
main:focus, main:focus-visible { outline: none; }
.page { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
/* Titel + Chip: bei Platzmangel rutscht der Chip in die nächste Zeile statt über den Rand */
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; min-width: 0; }
.card-title { margin: 0; font-size: 18px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.card-head .badge { max-width: 100%; }
/* Becken-Karten: Überschrift mittig, Status-Chip darunter */
.card-head.stacked { flex-direction: column; justify-content: center; text-align: center; gap: 6px; }
.card-head.stacked .badge { align-self: center; }
.muted { color: var(--muted); font-size: 14px; margin: 0; }
.grid-areas { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.row-gap { display: flex; flex-direction: column; gap: 8px; }
.ke-address { margin: 0; overflow-wrap: anywhere; } /* E-Mail-Adresse in „Mein Konto“ */
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: var(--radius); border: 1.5px solid var(--primary);
  background: var(--primary); color: var(--on-primary); font-size: 16px; font-weight: 700; text-decoration: none;
  transition: background-color .15s ease-out;
}
.btn:hover { background: var(--primary-pressed); }
.btn.secondary { background: var(--card); color: var(--primary); }
.btn.secondary:hover { background: var(--primary-soft); }
.btn.danger { background: var(--card); color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.small { min-height: 44px; padding: 0 12px; font-size: 14px; }
.wp-rev-link { align-self: flex-start; } /* „Zu den Schließzeiten“ im Wartungsformular nicht über die ganze Breite */
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--border); background: var(--card);
  font-size: 14px; font-weight: 600; color: var(--text);
}
.chip svg { width: 16px; height: 16px; }
.chip:hover { background: var(--primary-soft); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip:disabled { background: var(--neutral-bg); border-style: dashed; color: var(--muted); text-decoration: line-through; cursor: not-allowed; }

/* ---------- Segmented ---------- */
.segmented { display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
/* Knöpfe dürfen schrumpfen (min-width: 0) und umbrechen statt abzuschneiden */
.segmented button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-weight: 600; font-size: 14px; line-height: 1.2; text-align: center; hyphens: auto; overflow-wrap: anywhere; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.segmented button svg { width: 18px; height: 18px; flex: none; }
@media (hover: hover) { .segmented button:hover { background: var(--primary-soft); } }
@media (forced-colors: active) { .segmented button[aria-selected="true"], .segmented button[aria-pressed="true"] { outline: 2px solid CanvasText; outline-offset: -2px; } }
/* Auswahl nicht nur über Farbe: fette Schrift + Unterstrich-Balken */
.segmented button[aria-selected="true"], .segmented button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); font-weight: 700; box-shadow: inset 0 -3px 0 var(--on-primary); }
@media (max-width: 420px) {
  .segmented { gap: 2px; padding: 3px; }
  .segmented button { padding: 6px 4px; }
  /* Symbol ausblenden, Text bleibt */
  .segmented button svg { display: none; }
}

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 4px; }
.field label, .label { font-size: 14px; font-weight: 600; }
/* Häkchen und Auswahlknöpfe ausgenommen (sonst 48 px hoch, ovaler Fokusrahmen); :where hält die Spezifität wie bisher */
.input, .field input:not(:where([type="checkbox"], [type="radio"])), .field textarea, .field select {
  min-height: 48px; width: 100%; padding: 10px 12px; font-size: 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--card);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:not(:where([type="checkbox"], [type="radio"])):focus, .field textarea:focus, .field select:focus { border-color: var(--primary); outline: 2px solid var(--primary-soft); }
.field .hint { font-size: 14px; color: var(--muted); }
.field .error, fieldset > .error { font-size: 14px; color: var(--danger); font-weight: 600; }
fieldset > .error { display: block; margin-top: var(--space-1); }

/* ---------- Banner / Badges ---------- */
.banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.banner svg { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; }
.banner > span { min-width: 0; overflow-wrap: anywhere; } /* lange Wörter (z. B. im Grund einer Schließung) umbrechen statt die Seite zu verbreitern */
.banner.ok { background: var(--ok-bg); color: var(--ok-fg); }
.banner.warn { background: var(--due-bg); color: var(--due-fg); }
.banner.err { background: var(--over-bg); color: var(--over-fg); }
.banner.info { background: var(--primary-soft); color: var(--primary); }
/* Antippbarer Hinweis (z. B. offene Abweichungen) */
.banner-link { display: block; text-decoration: none; color: inherit; border-radius: var(--radius); }
.banner-link .banner { min-height: 44px; align-items: center; }
.banner-link:hover .banner { filter: brightness(.97); }
.cell-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
/* Textlink im Hinweistext: Touch-Ziel ≥ 44 px hoch, bleibt als Link (unterstrichen) erkennbar */
.touch-link { display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; }
.action-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 4px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.badge svg { width: 14px; height: 14px; }
.k-ok { background: var(--ok-bg); color: var(--ok-fg); }
.k-due, .k-never { background: var(--due-bg); color: var(--due-fg); }
.k-overdue { background: var(--over-bg); color: var(--over-fg); }
.k-offline { background: var(--off-bg); color: var(--off-fg); }
.k-season { background: var(--season-off-bg); color: var(--season-off-fg); }
.k-start { background: var(--start-bg); color: var(--start-fg); }
.pending-dot { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--due-fg); font-weight: 700; }
.pending-dot svg { width: 14px; height: 14px; }

/* ---------- Übersicht ---------- */
.tiles { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.tile-count { font-size: 28px; font-weight: 800; line-height: 1.1; }
.tile-label { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; hyphens: auto; }

.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-row {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 58px; padding: 8px 6px;
  border: 0; border-top: 1px solid var(--border-soft); background: transparent; text-align: left; border-radius: 8px;
}
.filter-list li:first-child .filter-row { border-top: 0; }
.filter-row:hover { background: var(--primary-soft); }
.filter-row .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.filter-row .name { font-weight: 700; }
/* Benutzer: Zugang läuft bald ab (Zeile mit Knopf „Verlängern“) */
.expiry-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 6px; border-top: 1px solid var(--border-soft); }
.expiry-row .main { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.expiry-row .sub { color: var(--muted); }
.expiry-row .btn { margin-left: auto; }
.filter-list .expiry-row:first-child { border-top: 0; }
@media (max-width: 479px) { .expiry-row .btn { width: 100%; justify-content: center; } }
/* Name + Statusabzeichen: nebeneinander, bei wenig Platz bricht das Abzeichen unter den Namen (Text behält volle Breite) */
.filter-row .name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.filter-row .sub { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.filter-row.is-off .name { color: var(--muted); }
.filter-row .chev { color: var(--muted); width: 18px; height: 18px; }
/* Frühwarnungen „Hinweise“ auf „Heute zu tun“ (nur Admins): ruhig in der Primärfarbe, nicht rot/gelb; Knopf „Gesehen“ unter dem Text */
.k-hint { background: var(--primary-soft); color: var(--primary); }
.hint-intro { margin: 0 0 var(--space-2); font-size: var(--fs-sm); }
.hint-item { border-top: 1px solid var(--border-soft); padding-bottom: var(--space-2); }
.hint-item:first-child { border-top: 0; }
.filter-list .hint-item .filter-row { border-top: 0; }
.hint-hide { margin-left: 50px; max-width: calc(100% - 50px); white-space: normal; text-align: left; }

/* ---------- Tabellen ---------- */
/* position: relative hält auch absolut positionierte Inhalte (z. B. .sr-only in Zellen) im Scroll-Rahmen */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Breite Tabellen: Hinweis + Verlauf rechts, solange Spalten verborgen sind (bindScrollHints in ui.js) */
.scroll-frame { position: relative; }
.scroll-frame::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; pointer-events: none; opacity: 0; transition: opacity .15s; background: linear-gradient(to right, transparent, var(--card)); }
.scroll-frame.more-right::after { opacity: 1; }
.scroll-hint { display: flex; align-items: center; gap: var(--space-1); margin: 0 0 var(--space-2); font-size: var(--fs-sm); }
.scroll-hint[hidden] { display: none; }
.scroll-hint svg { width: 16px; height: 16px; flex: none; }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th { background: var(--primary); color: var(--on-primary); font-weight: 700; padding: 12px 10px; text-align: left; white-space: nowrap; position: sticky; top: 0; }
table.data td { padding: 10px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.data tbody tr:nth-child(even) td { background: var(--surface-alt); }
table.data .nowrap { white-space: nowrap; }
table.matrix th:not(:first-child), table.matrix td:not(:first-child) { text-align: center; min-width: 78px; }
table.matrix th:first-child, table.matrix td:first-child { position: sticky; left: 0; z-index: 1; min-width: 92px; font-weight: 700; border-right: 1px solid var(--border-soft); }
table.matrix td:first-child { background: var(--card); }
table.matrix tbody tr:nth-child(even) td:first-child { background: var(--surface-alt); }
table.matrix th:first-child { z-index: 2; }
table.matrix tbody th { background: var(--card); color: var(--text); text-align: left; position: sticky; left: 0; z-index: 1; padding: 10px; border-bottom: 1px solid var(--border-soft); }
table.matrix tbody tr:nth-child(even) th { background: var(--surface-alt); }
table.matrix .today { color: var(--primary); }
table.matrix .weekend { color: var(--muted); }
.hit {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 66px; min-height: 44px; padding: 4px 6px; border: 0; border-radius: 8px;
  background: var(--ok-bg); color: var(--ok-fg); line-height: 1.2;
}
.hit b { font-size: 14px; }
.hit small { font-size: 14px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit.pending { background: var(--due-bg); color: var(--due-fg); }
.empty-cell { color: var(--text-disabled); }
.icon-del { width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--danger); display: grid; place-items: center; }
.icon-del:hover { background: var(--danger-soft); }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }

/* ---------- Status ---------- */
.status-item { border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.status-item.active { border: 1.5px solid var(--primary); }
.status-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 12px; border: 0; background: transparent; text-align: left; }
.status-head .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.status-head .reason { color: var(--danger); font-size: 14px; font-weight: 600; }
.ico-ok { color: var(--ok-fg); }
.ico-off { color: var(--danger); }
.status-form { display: flex; flex-direction: column; gap: 12px; padding: 0 12px 12px; }
.event { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border-soft); }
.event:first-of-type { border-top: 0; }

/* ---------- Dialog ---------- */
dialog.modal { border: 0; border-radius: var(--radius-lg); padding: 0; max-width: min(480px, calc(100vw - 32px)); width: 100%; box-shadow: var(--shadow-modal); }
dialog.modal::backdrop { background: rgba(15,23,42,.5); }
dialog.modal .modal-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
dialog.modal h2 { margin: 0; font-size: 19px; }
dialog.modal .modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
dialog.modal pre { white-space: pre-wrap; font-family: inherit; margin: 0; font-size: 15px; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: 100%; max-width: 400px; }
.login-logo { width: 64px; height: 64px; border-radius: 18px; background: var(--primary); display: grid; place-items: center; margin: 0 auto 8px; }
.login-logo svg { width: 36px; height: 36px; fill: var(--on-primary); stroke: none; }
.login h1 { text-align: center; margin: 0 0 4px; font-size: 24px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 50; max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border-radius: var(--radius);
  background: var(--inverse-bg); color: var(--on-inverse); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-toast);
}

/* ---------- Druck / PDF-Bericht ---------- */
#print-area { display: none; }
.report { font-size: 11px; color: var(--text); }
.report header { border-bottom: 3px solid var(--primary); padding-bottom: 8px; margin-bottom: 12px; }
.report h1 { font-size: 20px; margin: 0 0 4px; color: var(--primary); }
.report h2 { font-size: 15px; margin: 18px 0 6px; }
.report h2 span { font-weight: normal; color: var(--muted); font-size: 12px; }
.report h3 { font-size: 11px; margin: 10px 0 4px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.report table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.report tr { page-break-inside: avoid; }
.report th { background: var(--primary); color: var(--on-primary); text-align: left; padding: 5px 6px; font-size: 10.5px; }
.report td { border-bottom: 1px solid var(--border); padding: 5px 6px; vertical-align: top; }
.report .num { text-align: right; }
.report .sign { border-left: 1px dashed var(--border); width: 90px; }
.report .st-ok { color: var(--ok-fg); font-weight: 700; }
.report .st-due, .report .st-never { color: var(--due-fg); font-weight: 700; }
.report .st-overdue { color: var(--over-fg); font-weight: 700; }
.report .st-offline { color: var(--off-fg); font-weight: 700; }
.report .st-season { color: var(--season-off-fg); font-weight: 700; }
.report .st-start { color: var(--start-fg); font-weight: 700; }
.report .empty-row { color: var(--text-subtle); font-style: italic; }
.report footer { margin-top: 28px; display: flex; gap: 40px; }
.report footer div { flex: 1; border-top: 1px solid var(--text); padding-top: 4px; color: var(--muted); }
.report-preview { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px; overflow-x: auto; }

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; padding: 0 !important; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
  .report th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Menügruppen ---------- */
.drawer-group { padding: 14px 14px 4px; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.drawer-group:first-child { padding-top: 6px; }

/* ---------- Wasserhygiene ---------- */
.tiles.tiles-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) {
  .tiles.tiles-3 { grid-template-columns: 1fr; gap: 6px; }
  .tiles.tiles-3 .tile { flex-direction: row; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; }
  .tiles.tiles-3 .tile-count { font-size: 22px; min-width: 2ch; }
}
/* Vierte Kachel „Außer Saison“ (Wasserwerte): ab 421 px vier Spalten, darunter Zeilen wie .tiles-3 */
@media (min-width: 421px) { .tiles.tiles-4 { grid-template-columns: repeat(4, 1fr); } }
/* Ungerade Kachelzahl im 2er-Raster (Handy): letzte Kachel als schmale Leiste über die ganze Breite statt halb breit allein */
@media (max-width: 719px) {
  .tiles:not(.tiles-3) > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; }
  .tiles:not(.tiles-3) > .tile:last-child:nth-child(odd) .tile-count { font-size: 22px; min-width: 2ch; }
}
/* Fünf Kacheln (Filter-Übersicht mit „Außer Saison“): am PC eine Reihe */
@media (min-width: 720px) { .tiles.tiles-5 { grid-template-columns: repeat(5, 1fr); } }
.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 0; }
.value { border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 8px 10px; }
.value dt { font-size: 14px; font-weight: 700; color: var(--muted); }
.value dd { margin: 0; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.value dd.range { font-size: 14px; font-weight: 500; color: var(--muted); }
.value.is-out { border-color: var(--danger); background: var(--over-bg); }
.value.is-out dd:first-of-type { color: var(--over-fg); }
.out-flag { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 700; color: var(--over-fg); }
.out-flag svg { width: 14px; height: 14px; }
.value-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.field input.is-out { border-color: var(--warn); background: var(--due-bg); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--danger); }
.check input.is-invalid { outline: 2px solid var(--danger); outline-offset: 2px; }
.key-line { overflow-wrap: anywhere; user-select: all; }
.warn-text { font-size: 14px; font-weight: 700; color: var(--due-fg); }
.wz-din svg, #cronBox .warn-text svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: var(--space-1); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data th.num { text-align: right; }
table.data th small { font-size: 14px; font-weight: 500; opacity: .85; }
td.cell-out { color: var(--over-fg); font-weight: 800; background: var(--over-bg) !important; }
td.cell-out svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.limit-row { border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 10px 12px 12px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.limit-row legend { font-weight: 700; padding: 0 4px; }
.lab-custom { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.check input { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Diagramme ---------- */
.chart-grid { display: grid; gap: 16px; }
.chart-card { gap: 8px; }
.chart { position: relative; overflow: hidden; }
/* Icon-Grundregel (svg 22px, Kontur) für Diagramme aufheben */
.chart svg { display: block; width: 100%; max-width: 100%; height: auto; stroke: none; stroke-width: 1; fill: none; touch-action: pan-y; }
.chart svg:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 2; white-space: nowrap;
  background: var(--inverse-bg); color: var(--on-inverse); font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 8px;
  box-shadow: var(--shadow-tip);
}
.report .legend-note { font-size: 10px; color: var(--muted); margin-top: 8px; }

/* ---------- Zählerstände ---------- */
.cat-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.cat-ico svg { width: 20px; height: 20px; }
.cat-wasser { background: var(--primary-soft); color: var(--primary); }
.cat-strom { background: var(--cat-strom-bg); color: var(--cat-strom-fg); }
.cat-gas { background: var(--cat-gas-bg); color: var(--cat-gas-fg); }
.cat-waerme { background: var(--cat-waerme-bg); color: var(--cat-waerme-fg); }
.cat-sonstiges { background: var(--neutral-bg); color: var(--off-fg); }
.meter-input { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--border-soft); }
.meter-input:first-of-type { border-top: 0; padding-top: 0; }
.meter-input-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.meter-input-head label { font-size: 16px; }
.swap-box { border: 1.5px dashed var(--warn); background: var(--warn-soft); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.swap-box .warn-text svg { width: 16px; height: 16px; vertical-align: -3px; }
.sub-title { margin: 8px 0 0; font-size: 15px; font-weight: 700; }
.tile-neutral { background: var(--card); color: var(--text); border: 1px solid var(--border-soft); box-shadow: var(--shadow); }
.tile-neutral svg { color: var(--primary); }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.legend .key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend .key-cur { background: var(--primary); }
.legend .key-cmp { background: var(--compare); margin-left: 8px; }
small.muted svg { width: 12px; height: 12px; vertical-align: -2px; }

/* ---------- Einklappbare Bereiche ---------- */
details.section { padding: 0; gap: 0; }
details.section > summary { list-style: none; }
details.section > summary::-webkit-details-marker { display: none; }
/* Kopf kompakt (Umbau Schritt 1): Titel links, Status-Chip daneben, Kurzinfo einzeilig darunter, Pfeil rechts */
.section-head {
  position: relative; cursor: pointer; padding: 10px 48px 10px 16px; min-height: 52px;
  display: flex; align-items: center; justify-content: flex-start; border-radius: var(--radius-lg);
}
.section-head:hover { background: var(--surface-alt); }
.section-head:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.section-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; text-align: left; min-width: 0; width: 100%; }
.section-title .card-title { flex: 0 1 auto; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.section-title > :not(.card-title):not(.section-summary) { flex: none; }
/* Kurzinfo einzeilig (Wichtigstes steht vorn, z. B. „Lieferung morgen · …“); der volle Text steht im aufgeklappten Bereich */
.section-summary { flex: 1 0 100%; min-width: 0; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.section-chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; place-items: center; transition: transform .2s ease-out; }
details.section[open] > summary .section-chev { transform: translateY(-50%) rotate(180deg); }
.section-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
details.section[open] > summary { border-bottom: 1px solid var(--border-soft); border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-bottom: 12px; }
.section-body.flush-body { padding: 0; }
.section-tools { display: flex; justify-content: flex-end; gap: 4px; flex-wrap: wrap; margin-bottom: -8px; }
.grid-areas { align-items: start; }
@media (prefers-reduced-motion: reduce) { .section-chev { transition: none; } }

/* ---------- Bausteine für kürzere Seiten (ui.js, Umbau Schritt 1) ---------- */
/* stickyActions(): Hauptaktion bleibt unten sichtbar, solange ihr Formular/ihre Karte im Bild ist */
.sticky-actions {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4) max(var(--space-3), env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--border-soft); box-shadow: var(--shadow-up);
}
.sticky-actions > .btn { flex: 1 1 auto; }
/* Fehlermeldung direkt über dem Knopf – bleibt sichtbar, auch wenn das Feld weiter oben fokussiert ist */
.sticky-actions > .sticky-err { flex: 1 0 100%; }
.sticky-actions > .sticky-err:empty { display: none; }
/* Als letztes Element einer Karte: bündig mit dem Kartenrand */
.card > .sticky-actions:last-child, .section-body > .sticky-actions:last-child { margin: 0 calc(-1 * var(--space-4)) calc(-1 * var(--space-4)); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
/* Feld nicht hinter der Leiste verstecken; Meldungen über die Leiste heben */
html:has(.sticky-actions) { scroll-padding-bottom: calc(var(--actionbar-h) + var(--space-4)); }
html:has(.sticky-actions) .toast { bottom: calc(var(--actionbar-h) + var(--space-4) + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { .sticky-actions > .btn { flex: 0 1 auto; } }

/* addToggle(): „+ Neu“ klappt das Formular auf */
details.add-toggle { display: flex; flex-direction: column; }
details.add-toggle > summary { list-style: none; align-self: flex-start; }
details.add-toggle > summary::-webkit-details-marker { display: none; }
details.add-toggle[open] > summary { background: var(--primary-soft); }
.add-toggle-body {
  margin-top: var(--space-3); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3);
  border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface-alt);
}
@media (max-width: 479px) { details.add-toggle > summary { align-self: stretch; } }

/* moreList(): „Alle 23 anzeigen“ */
.more-list { display: flex; flex-direction: column; }
.more-list > .more-btn { align-self: flex-start; margin-top: var(--space-2); }
.more-list li[data-more-item]:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

/* Handy: Karten enger beieinander (12 statt 16 px), Zahlen gleich breit */
@media (max-width: 599px) {
  .page, .grid-areas { gap: var(--space-3); }
  .page .grid-areas.grid-masonry > * { margin-bottom: var(--space-3); }
}
.tile-count, .badge, table.data td { font-variant-numeric: tabular-nums; }
/* Leiste direkt in der Seite (nicht in einer Karte): über die volle Breite bis an den Rand von main */
.page > .sticky-actions { margin: 0 calc(-1 * var(--space-4)); }
@media (min-width: 720px) { .page > .sticky-actions { margin: 0; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); } }

/* ---------- Alltagsseiten (Umbau Schritt 2) ---------- */
/* Messwerte auf dem Handy als kompakte Zeilen: Name + Soll links, Eingabefeld rechts */
@media (max-width: 479px) {
  .value-grid.value-rows { gap: 0; }
  .value-rows > .field {
    display: grid; grid-template-columns: minmax(0, 1fr) 116px; column-gap: var(--space-3); row-gap: 2px; align-items: center;
    padding: var(--space-2) 0; border-bottom: 1px solid var(--border-soft);
  }
  .value-rows > .field:last-child { border-bottom: 0; }
  .value-rows > .field > label:first-child { grid-column: 1; grid-row: 1; }
  .value-rows > .field > input { grid-column: 2; grid-row: 1 / span 2; }
  .value-rows > .field > span { grid-column: 1; grid-row: 2; }
  .value-rows > .field > .check { grid-column: 1 / -1; grid-row: 3; }
}
/* Zähler ablesen: „Letzter Stand“ einzeilig */
.meter-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Tagebuch: Fortschritt im Abschnittskopf */
.tb-progress { font-variant-numeric: tabular-nums; }
/* Abweichungen: weitere gleiche Abweichungen als Liste mit Auswahl */
.others .more-list ul { list-style: none; margin: 0; padding: 0; }

/* Menügruppen einklappbar */
/* Nur eine Gruppe offen, Dringendes öffnet nichts (D12 geändert): die zugeklappte Gruppe zeigt Symbol + Zahl */
.drawer-list details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--space-2); min-height: var(--nav-row-h); border-radius: var(--radius); }
.drawer-list details > summary::-webkit-details-marker { display: none; }
.drawer-list details > summary:hover { background: var(--neutral-bg); }
.drawer-list details > summary > svg:last-child { width: 16px; height: 16px; transition: transform var(--motion) ease-out; }
.drawer-list details[open] > summary > svg:last-child { transform: rotate(180deg); }
.drawer-list details > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--nav-gap); }
/* Gruppenüberschrift: normale Schreibung, fett, 14 px (V8) */
.drawer-list details > summary.drawer-group { padding: 0 var(--space-3); margin: 0; font-size: var(--fs-base); font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--muted); }
.drawer-list details[open] > summary.drawer-group { color: var(--primary); }
.drawer-list summary:focus-visible, .drawer-list a:focus-visible, .drawer-list button:focus-visible, .drawer-me-link:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .drawer-list details > summary > svg:last-child { transition: none; } }
details.flush-section .section-body { padding: 0; }
details.flush-section .section-body .muted.pad { padding: 12px 16px; }

/* ---------- Bäder-Auswahl (im Menü; oben steht nur der Name, Umbau Schritt 3) ---------- */
.topbar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.topbar-text .topbar-title { flex: none; }
.topbar-site { font-size: var(--fs-sm); font-weight: 600; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Bad-Auswahl einzeilig: „Bad“ links, Auswahlfeld rechts (V4) */
.drawer-site { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; gap: var(--space-2); }
.drawer-site label { flex: none; display: flex; align-items: center; gap: var(--space-1); font-size: var(--fs-sm); font-weight: 800; color: var(--muted); }
.drawer-site label svg { width: 16px; height: 16px; }
.drawer-site select { flex: 1; min-width: 0; min-height: var(--nav-row-h); padding: 0 var(--space-3); font-size: var(--fs-base); font-weight: 700; text-overflow: ellipsis; border: 1.5px solid var(--primary); border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); }
/* Kopf des Menüs: Name · Rolle als Link zu „Mein Konto“ (V5, V6); auf dem PC ohne Logo */
.drawer-me { padding: var(--space-2); border-bottom: 1px solid var(--border-soft); }
.drawer-me-link { display: flex; align-items: center; gap: var(--space-3); min-height: var(--nav-row-h); padding: var(--space-1) var(--space-2); border-radius: var(--radius); color: var(--text); text-decoration: none; }
a.drawer-me-link:hover { background: var(--neutral-bg); }
a.drawer-me-link[aria-current] { background: var(--primary-soft); color: var(--primary); }
.drawer-me .drawer-logo { flex: none; width: 32px; height: 32px; border-radius: var(--space-2); }
.drawer-me .drawer-logo svg { width: 20px; height: 20px; }
.drawer-me-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.drawer-me .drawer-user { font-size: var(--fs-base); font-weight: 700; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-me-hint { font-size: var(--fs-sm); font-weight: 600; color: var(--primary); }
.drawer-me-link > svg:last-child { width: 16px; height: 16px; color: var(--muted); }
@media (min-width: 1100px) { body.authed .drawer-me .drawer-logo { display: none; } }
/* „Planen & Verwalten“: zugeklappte Untergruppe (V3); Zahl am Bereich nur, solange er zugeklappt ist (D1) */
.drawer-list details > summary.drawer-sub { padding: 0 var(--space-3); gap: var(--space-3); font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.drawer-list details[open] > summary.drawer-sub { color: var(--primary); }
.drawer-list .drawer-subgroup details > ul { margin-left: var(--space-4); padding-left: var(--space-1); border-left: 2px solid var(--border-soft); }
.drawer-list details[open] > summary .menu-count.in-group { display: none; }
/* Verwaltung: Übersicht der Seiten */
.hub-list { list-style: none; margin: 0; padding: 0 0 var(--space-2); }
.hub-link { display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-2) var(--space-4); color: var(--text); text-decoration: none; border-top: 1px solid var(--border-soft); }
.hub-link:hover { background: var(--surface-alt); }
.hub-link:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.hub-link > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hub-link > svg:first-child { color: var(--primary); }
.hub-link > svg:last-child { color: var(--muted); width: 18px; height: 18px; }
.hub-link > .menu-count { flex: none; }
.hub-link .menu-count svg { width: 14px; height: 14px; }
.site-pick { border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 8px 12px 10px; margin: 0; display: flex; flex-direction: column; }
.site-pick legend { font-size: 14px; font-weight: 600; padding: 0 4px; }
.task-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.task-ico svg { width: 20px; height: 20px; }
.link-btn { border: 0; background: none; padding: 6px 0; min-height: 44px; color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-align: left; }

/* ---------- Einrichtungsassistent ---------- */
.wizard-head { gap: 8px; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; justify-content: space-between; gap: 4px; counter-reset: s; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; min-width: 0; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--border); }
.steps li.done:not(:last-child)::after { background: var(--primary); }
.step-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--neutral-bg); color: var(--muted); border: 2px solid var(--border); position: relative; z-index: 1; }
.step-dot svg { width: 16px; height: 16px; }
.steps li.done .step-dot { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.steps li.current .step-dot { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.step-name { font-size: 14px; font-weight: 700; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.steps li.current .step-name { color: var(--primary); white-space: nowrap; overflow-wrap: normal; } /* Name nicht mitten im Wort trennen */
@media (max-width: 420px) { .steps li:not(.current) .step-name { display: none; } }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Handy: Hauptaktion oben in voller Breite, darunter Überspringen/Zurück (statt zerfallener Knopfreihe) */
@media (max-width: 479px) {
  .wizard-nav, .wizard-nav .inline { flex-direction: column-reverse; align-items: stretch; }
  .wizard-nav .btn { width: 100%; justify-content: center; }
}
/* Handy: Name über die volle Breite, darunter Filter und Löschen, dann Wasser (volle Breite, damit „biologisch (Naturbad)“ nicht
   abgeschnitten wird); ab Tablet alles in einer Zeile */
.pool-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 44px; grid-template-areas: "name name name" "filter . del" "treat treat treat"; gap: 8px; align-items: end; }
.pool-row > .field:first-child { grid-area: name; }
.pool-row > .narrow { grid-area: filter; }
.pool-row > .pool-treat { grid-area: treat; }
.pool-row > .icon-del { grid-area: del; margin-bottom: 2px; }
@media (min-width: 640px) { .pool-row { grid-template-columns: 1fr 88px 210px 44px; grid-template-areas: "name filter treat del"; } }
/* Handy: jedes Becken als kleine Karte, damit Filterzahl und Wasser sichtbar zum Namen gehören */
@media (max-width: 639px) { .pool-row { padding: var(--space-3); border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--neutral-bg); } }
.limit-choice { border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 6px 12px 8px; margin: 0; }
.limit-choice legend { font-weight: 700; padding: 0 4px; }
/* Gemeinsamer Wasserkreislauf: weitere Becken eines Zählers (Zähler verwalten, Einrichtung) */
.share-pools > p { margin: 0 0 var(--space-1); }
/* Preisverlauf eines Zählers (Zähler verwalten): Preise mit Zeitraum, neuer Preis „gilt ab“ */
.price-hist { margin-top: var(--space-3); min-width: 0; }
.price-hist > p { margin: 0 0 var(--space-1); }
.price-hist ul { list-style: none; margin: 0 0 var(--space-2); padding: 0; }
.price-hist li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); padding: var(--space-2) 0; border-top: 1px solid var(--border-soft); }
.price-hist li:first-child { border-top: 0; }
.price-hist .ph-when { min-width: 11em; }
.price-hist .ph-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.price-hist .ph-act { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--space-1); }
.price-new { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2); }
.price-new .field { flex: 1 1 150px; min-width: 0; margin: 0; }
/* Einrichtung, Schritt Zähler: Zeilen wie .meter-tpl-row, ohne eigenen Rahmen */
.share-block { border: 0; border-top: 1px solid var(--border-soft); margin: 0; padding: var(--space-2) 0 0; min-width: 0; }
.share-block > .meter-tpl-row + .meter-tpl-row { margin-top: var(--space-3); } /* gleicher Abstand wie die Zeilen außerhalb */
.share-block .inline-field { flex: 1 1 280px; max-width: 360px; } /* „Gemeinsam mit Lehrschwimmbecken“ nicht abschneiden */
.share-block > legend { float: left; width: 100%; padding: 0; font-size: 15px; font-weight: 700; }
.share-block > p { clear: both; margin: var(--space-1) 0 var(--space-2); }
.share-block > .meter-tpl-row:first-of-type { border-top: 0; }
.meter-tpl { align-items: flex-start; padding: 4px 0; }
.meter-tpl input { margin-top: 4px; }
.center-card { align-items: center; text-align: center; }
.done-ico svg { width: 56px; height: 56px; color: var(--ok-fg); }
.done-list { margin: 0; padding: 0; list-style: none; color: var(--muted); }
/* Maßnahmen: bisherige Einträge zu einer Messung */
.action-list { list-style: none; margin: 0; padding: 0; }
.action-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border-soft); }
.action-item:first-child { border-top: 0; padding-top: 4px; }
.action-item > div { min-width: 0; overflow-wrap: anywhere; } .action-item .btn { white-space: nowrap; overflow-wrap: normal; }
.center-card .row-gap { width: 100%; max-width: 420px; }

.btn.ghost.danger-text { color: var(--danger); }
.btn.ghost.danger-text:hover { background: var(--danger-soft); }

.login-tagline { margin: -4px 0 4px; font-size: 14px; font-weight: 700; color: var(--primary); letter-spacing: .02em; }

/* ---------- QR-Codes (Aufkleber-Bogen) ---------- */
.meter-input.focus-target { background: var(--primary-soft); border-radius: var(--radius); padding: 12px; }
.qr-sheet { color: var(--text); }
.qr-page { display: grid; grid-template-columns: repeat(2, 89mm); grid-auto-rows: 50mm; gap: 3mm; justify-content: center; }
.qr-page + .qr-page { margin-top: 3mm; }
.qr-label {
  display: flex; align-items: center; gap: 3mm; padding: 3mm; overflow: hidden;
  border: 1px dashed var(--text-disabled); border-radius: 2mm; background: var(--card); break-inside: avoid;
}
.qr-label img { width: 38mm; height: 38mm; flex-shrink: 0; image-rendering: pixelated; }
.qr-text { display: flex; flex-direction: column; gap: 1mm; min-width: 0; line-height: 1.2; hyphens: auto; overflow-wrap: break-word; }
.qr-site { font-size: 8pt; color: var(--muted); }
.qr-place { font-size: 10pt; }
.qr-title { font-size: 16pt; }
.qr-unit { font-size: 9pt; font-weight: normal; color: var(--muted); }
.qr-action { margin-top: 1.5mm; font-size: 9pt; font-weight: 700; color: var(--primary); }
.qr-brand { font-size: 7pt; color: var(--text-subtle); letter-spacing: .04em; text-transform: uppercase; }
@media print {
  .qr-page { break-after: page; }
  .qr-page:last-child { break-after: auto; }
  .qr-page + .qr-page { margin-top: 0; }
  .qr-action { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Erinnerungen: offene Punkte im Menü ---------- */
.icon-btn { position: relative; }
.menu-badge {
  position: absolute; top: 2px; right: 0; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px; border: 2px solid var(--primary); font-size: 14px; font-weight: 800; line-height: 20px; text-align: center;
}
.drawer-label { flex: 1; min-width: 0; }
.menu-count {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; min-height: 26px; padding: 0 8px;
  border-radius: 999px; font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: none;
}
.drawer-list .menu-count svg { width: 14px; height: 14px; }
.menu-count.in-group { margin-left: auto; margin-right: 8px; }

/* ---------- Untere Leiste Start · Eintragen · Menü (Handy, Umbau Schritt 3b; abschaltbar in „Mein Konto“) ---------- */
.bottom-nav { display: none; }
.bn-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--bottomnav-h); padding: var(--space-1) var(--space-2); border: 0; background: transparent;
  color: var(--muted); font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
}
.bn-item svg { width: 24px; height: 24px; }
/* Aktueller Punkt nicht nur über Farbe: Balken oben + fette Schrift */
.bn-item[aria-current="page"] { color: var(--primary); font-weight: 800; box-shadow: inset 0 3px 0 var(--primary); }
.bn-item:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.bn-item .menu-count { position: absolute; top: var(--space-1); left: calc(50% + var(--space-2)); min-height: 22px; padding: 0 var(--space-1); }
.bn-item .menu-count svg { width: 12px; height: 12px; }
@media (max-width: 719px) {
  body.has-bottom-nav .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--border-soft); box-shadow: var(--shadow-up);
  }
  body.has-bottom-nav #menuBtn { display: none; } /* Menü steckt in der Leiste */
  body.has-bottom-nav:not(.has-sticky-actions) .topbar { padding-left: var(--space-4); } /* ohne Menüknopf: Titel nicht am Rand */
  body.has-bottom-nav main { padding-bottom: calc(var(--bottomnav-h) + var(--space-6) + env(safe-area-inset-bottom)); }
  body.has-bottom-nav .toast { bottom: calc(var(--bottomnav-h) + var(--space-4) + env(safe-area-inset-bottom)); }
  html.has-bottom-nav:not(:has(.sticky-actions)) { scroll-padding-bottom: calc(var(--bottomnav-h) + var(--space-4)); }
  /* Eintrage-Seiten: die feste Speichern-Leiste ersetzt die Navigationsleiste, das Menü kommt wieder oben hin */
  body.has-bottom-nav.has-sticky-actions .bottom-nav { display: none; }
  body.has-bottom-nav.has-sticky-actions #menuBtn { display: grid; }
  body.has-bottom-nav.has-sticky-actions main { padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom)); }
  body.has-bottom-nav.has-sticky-actions .toast { bottom: calc(var(--actionbar-h) + var(--space-4) + env(safe-area-inset-bottom)); }
}

/* ---------- Startseite „Heute zu tun“ (Umbau Schritt 4) ----------
 * Handy: Aufgaben oder Überblick (Umschalter), ab Tablet beides nebeneinander. Ohne Überblick (Aushilfe) eine Spalte. */
.home-main, .home-aside { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.home-stand { margin: 0; }
.home-handover { display: flex; flex-direction: column; gap: var(--space-1); padding-top: var(--space-3); border-top: 1px solid var(--border-soft); }
.home-handover p { margin: 0; }
.home-handover-text { white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
@media (max-width: 719px) {
  .home.has-overview[data-tab="aufgaben"] .home-aside, .home.has-overview[data-tab="ueberblick"] .home-main { display: none; }
  body.has-bottom-nav .home-quick { display: none; } /* Eintragen steckt in der unteren Leiste */
}
@media (min-width: 720px) {
  .home-tabs { display: none; }
  .home.has-overview { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
  .home.has-overview .home-stand { grid-column: 1 / -1; }
  .home-aside .wx-hours { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* schmale Spalte: wie auf dem Handy */
}

/* ---------- Auswahldialog (z. B. Bad wählen) ---------- */
.choice-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.choice {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--card); font-size: 16px; font-weight: 700; text-align: left;
}
.choice span:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.choice:hover { background: var(--primary-soft); }
.choice[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.choice .muted { font-size: 14px; font-weight: 600; }

/* Einrichtung: Zählervorlagen mit Ableseintervall */
.meter-tpl-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 8px 0; border-top: 1px solid var(--border-soft); }
/* Assistent: Hinweis unter einem abgewählten Pflichtbereich (DIN 19643) – eigene Zeile */
.meter-tpl-row .wz-din { flex-basis: 100%; margin: 0; }
.meter-tpl-row .meter-tpl { flex: 1 1 220px; }
.meter-tpl-head { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 220px; min-height: 44px; font-size: 15px; }
.meter-tpl-head svg { margin-top: 2px; color: var(--primary); }
.inline-field { flex: 0 1 240px; margin: 0 0 4px 30px; }
.inline-field select { min-height: 44px; }
.custom-meter { display: flex; flex-direction: column; gap: 8px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--neutral-bg); }
.custom-meter-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ---------- Weitere Messgrößen ---------- */
.mg-pools { border: 0; margin: 4px 0 0; padding: 0; }
.mg-pools legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 2px; }
.plain-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Betriebstagebuch: Vorlage ---------- */
.tv-list { display: flex; flex-direction: column; gap: 12px; }
.tv-shift, .tv-item { padding: 12px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--neutral-bg); }
.tv-shift { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: start; }
.tv-shift > * { min-width: 0; }
.tv-shift-name { grid-column: 1 / -1; }
.tv-shift input[type="time"] { padding-left: 8px; padding-right: 8px; }
.tv-shift-del { margin-top: 25px; } /* auf Höhe der Eingabefelder (unter der Beschriftung) */
.tv-ico { width: 44px; min-height: 44px; padding: 0; flex-shrink: 0; }
.tv-wrap { padding-top: 10px; padding-bottom: 10px; }
.tv-item { display: flex; flex-direction: column; gap: 8px; }
.tv-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tv-num { font-size: 14px; font-weight: 700; color: var(--muted); }
.tv-tools { display: flex; gap: 8px; }
.tv-item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; align-items: start; }
.tv-item-grid > * { min-width: 0; }
.tv-a-label, .tv-a-section, .tv-a-req { grid-column: 1 / -1; }
.field select.is-invalid { border-color: var(--danger); }
.field select:disabled { background: var(--neutral-bg); color: var(--muted); opacity: 1; cursor: not-allowed; }
@media (min-width: 720px) {
  .tv-shift { grid-template-columns: 2fr 1fr 1fr auto; }
  .tv-shift-name { grid-column: auto; }
  .tv-item-grid { grid-template-columns: 2fr 1.4fr 1fr .8fr; }
  .tv-a-label, .tv-a-section { grid-column: auto; }
}

/* ---------- Betriebstagebuch: Ausfüllen ---------- */
.tb-day { display: flex; align-items: flex-end; gap: 8px; }
.tb-day .btn { flex-shrink: 0; width: 48px; padding: 0; justify-content: center; }
.tb-date { flex: 1; min-width: 0; }
.tb-shifts { margin-top: 12px; }
.tb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tb-item { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.tb-item:last-child { border-bottom: 0; }
.tb-item.is-missing { border-left: 4px solid var(--danger); padding-left: 10px; background: var(--over-bg); border-radius: 8px; }
.tb-label { font-weight: 600; }
.tb-check {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); text-align: left;
}
.tb-check:hover { background: var(--primary-soft); }
.tb-check:disabled { cursor: not-allowed; opacity: .7; }
.tb-check[aria-pressed="true"] { background: var(--ok-bg); border-color: var(--ok-fg); }
.tb-box {
  display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0;
  border: 2px solid var(--muted); border-radius: 8px; background: var(--card);
}
.tb-check[aria-pressed="true"] .tb-box { background: var(--ok-fg); border-color: var(--ok-fg); color: var(--on-primary); }
.tb-box svg { width: 18px; height: 18px; stroke-width: 3; }
.tb-req { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.tb-req svg { width: 16px; height: 16px; }
.tb-item.is-missing .tb-req { color: var(--over-fg); font-weight: 700; }
.tb-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.tb-handover { border-left: 4px solid var(--primary); }
.tb-handover .card-title { display: flex; align-items: center; gap: 8px; }
.tb-note { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 8px; }
/* Entfernte Schichten/Punkte: einklappbar, dezent */
.tv-removed { border-top: 1px solid var(--border-soft); padding-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.tv-removed > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; border-radius: var(--radius); font-size: 14px; font-weight: 600; color: var(--muted); }
.tv-removed > summary::-webkit-details-marker { display: none; }
.tv-removed > summary:hover { background: var(--neutral-bg); }
.tv-removed > summary > svg { width: 18px; height: 18px; transition: transform .2s ease-out; }
.tv-removed[open] > summary > svg { transform: rotate(180deg); }
.tv-removed > .muted { margin: 0 8px; }
.tv-removed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tv-removed-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 12px; border: 1px dashed var(--border); border-radius: var(--radius); }
.tv-removed-text { display: flex; flex-direction: column; flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .tv-removed > summary > svg { transition: none; } }

/* ---------- Betriebstagebuch: Druck / PDF ---------- */
.tb-range { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.report .tb-sec td { background: var(--neutral-bg); font-weight: 700; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.report .tb-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.report .tb-diary { page-break-inside: auto; }
.report .tb-diary h2 { page-break-after: avoid; }

/* ---------- Wartung & Aufgaben ---------- */
.status-head .name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.wp-num { width: 96px; flex: 0 0 96px; }
.wp-unit { width: auto; flex: 1 1 140px; min-height: 48px; }
.check.top { align-items: flex-start; padding: 6px 0; }
.check.top input { margin-top: 3px; }

/* ---------- Chemikalien & Lager ---------- */
.ch-price { align-items: flex-end; margin-top: 8px; }
.ch-price .field { flex: 1 1 160px; }
.ch-price .error { flex-basis: 100%; font-size: 14px; color: var(--danger); font-weight: 600; }
.ch-price .error:empty { display: none; }
.ch-date { align-items: flex-end; margin-top: 8px; }
.ch-date .field { flex: 1 1 180px; }
.ch-date .error { flex-basis: 100%; font-size: 14px; color: var(--danger); font-weight: 600; }
.ch-date .error:empty { display: none; }
.ch-order > div { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.ch-order br { display: none; }
.ch-order-actions { margin-top: 6px; }
/* Bestellung deckt einen knappen Bestand (statt Banner „Knapp, aber bestellt“) – Symbol + Text */
.ch-covers { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--fs-sm); font-weight: 600; color: var(--due-fg); }
.ch-covers svg { width: 16px; height: 16px; flex: none; }
/* Bestellvorschlag (Reichweite): Umschalter 14/30/60 Tage, je Chemikalie Status + Reichweite + vorgeschlagene Menge */
.ch-proposal .segmented { margin-bottom: var(--space-2); }
.ch-prop > div { display: flex; flex-direction: column; gap: 4px; width: 100%; min-width: 0; }
.ch-prop-qty { font-weight: 700; }
.ch-prop-none { display: flex; align-items: center; gap: var(--space-1); font-weight: 600; color: var(--ok-fg); }
.ch-prop-none svg { width: 18px; height: 18px; flex: none; }
.ch-pos { border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ch-pos legend { font-weight: 700; padding: 0 4px; }
.ch-pos > .btn { align-self: flex-start; }
.ch-pos .warn-text svg, .ch-recv .warn-text svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.ch-rest { border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ch-rest legend { font-weight: 700; padding: 0 4px; }
.ch-rest .field { margin-left: 30px; }

/* ---------- Auswertung / Excel-Export ---------- */
.ex-period { align-items: flex-end; }
.ex-period .field { flex: 1 1 160px; }

/* ---------- Bericht für Behörden ---------- */
.report .rp-title { font-size: 16px; margin: 20px 0 8px; padding-bottom: 3px; border-bottom: 2px solid var(--primary); color: var(--primary); break-after: avoid; }
.report .rp-pool { margin: 8px 0 2px; }
.report .rp-note { margin: 4px 0 8px; font-style: italic; color: var(--muted); } /* Druckbericht: Grundschrift wie .report */
.report h2, .report h3 { break-after: avoid; }
.report .rp-break { break-before: page; }

/* ---------- Maßnahme für weitere Abweichungen übernehmen ---------- */
.others { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.others legend { font-weight: 700; font-size: 15px; padding: 0; }
.others .hint { font-size: 14px; color: var(--muted); margin: 2px 0 4px; }
.others-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--primary); }
.others-more > summary::-webkit-details-marker { display: none; }
.others-more > summary svg { width: 18px; height: 18px; transition: transform .2s ease-out; }
.others-more[open] > summary svg { transform: rotate(180deg); }

/* ---------- Benutzer: Vor- und Nachname ---------- */
.name-fields { margin-top: 0; }
.name-hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

/* ---------- Zähler: Auffälligkeiten zur Kenntnis nehmen ---------- */
.ack-item { border-top: 1px solid var(--border-soft); padding: 12px 0; }
.ack-item:first-of-type { border-top: 0; padding-top: 4px; }
.ack-item p { margin: 0 0 8px; }
.ack-mark { color: var(--ok-fg); font-weight: 600; }
.ack-mark svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 2px; }

/* ---------- Betriebstagebuch: Punkte je Schicht ---------- */
.tv-a-shifts { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; min-width: 0; }
.tv-a-shifts legend { font-size: 14px; font-weight: 700; padding: 0; margin-bottom: 2px; }
.tv-shift-checks { display: flex; flex-wrap: wrap; gap: 0 18px; }
.tb-item.tb-other { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; color: var(--muted); }
.tb-other .tb-label { font-weight: 500; }
.tb-other-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; background: var(--neutral-bg); border-radius: 999px; padding: 2px 10px; }
.tb-other-tag svg { width: 14px; height: 14px; }
.tb-done-by { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ok-fg); font-weight: 600; }
.tb-done-by svg { width: 16px; height: 16px; }
/* Karten unterschiedlicher Höhe lückenlos in Spalten (statt Raster mit Zeilenhöhe der höchsten Karte) */
.grid-areas.grid-masonry { display: block; columns: 300px; column-gap: 16px; }
.grid-areas.grid-masonry > * { break-inside: avoid; margin: 0 0 16px; width: 100%; display: block; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
.site-notice { max-width: 960px; margin: 0 auto; padding: 16px 16px 0; }
.report .rp-site { font-size: 22px; margin: 8px 0 4px; padding-bottom: 4px; border-bottom: 3px solid var(--primary); }

/* Wetter (Startseite + Seite „Wetter“) */
.wx { gap: 12px; }
.wx-head { display: flex; align-items: center; gap: 14px; }
.wx-ico { width: 56px; height: 56px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.wx-ico svg { width: 32px; height: 32px; }
.wx-now { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wx-now .muted { font-size: 14px; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.wx-now .muted svg { width: 14px; height: 14px; }
.wx-temp { font-size: 28px; font-weight: 800; line-height: 1.1; }
.wx-cond { font-weight: 700; }
.wx-hours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wx-hours li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: var(--radius); background: var(--neutral-bg); text-align: center; }
.wx-hours svg { width: 24px; height: 24px; color: var(--primary); }
.wx-hours .wx-h { font-size: 14px; color: var(--muted); }
.wx-hours .muted { font-size: 14px; }
.wx-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; margin: 0; }
.wx-foot a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; }
.wx-foot a svg { width: 16px; height: 16px; }
.wx-search { display: flex; gap: 8px; }
.wx-search input { flex: 1; min-width: 0; }
.wx-search .btn { flex-shrink: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.wx-hour select { min-height: 44px; }
.wx-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wx-slot { border: 1px solid var(--border-soft); border-radius: var(--radius); }
.wx-slot-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; }
.wx-slot-row .main { min-width: 0; display: flex; flex-direction: column; }
.wx-slot-row .name { font-weight: 700; overflow-wrap: anywhere; }
.wx-slot-row .sub { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.wx-slot-h { font-weight: 800; min-width: 52px; }
.wx-slot .task-ico { background: var(--primary-soft); color: var(--primary); }
.wx-edit { display: flex; flex-direction: column; gap: 12px; padding: 0 12px 12px; }
.data td svg { width: 18px; height: 18px; vertical-align: -4px; color: var(--primary); }
.data td .badge svg { width: 14px; height: 14px; vertical-align: 0; color: inherit; }
.data td .warn-text svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; color: inherit; }
@media (min-width: 720px) {
  .wx-hours { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 519px) {
  .wx-slot-row { grid-template-columns: auto auto minmax(0, 1fr); }
  .wx-slot-row .btn { grid-column: 1 / -1; justify-self: end; }
}
.wx-hours .muted svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--muted); }

/* ---------- Datumsfeld mit eigenem Kalender (ui.js watchDateFields) ---------- */
.df { position: relative; }
.field .df input { padding-right: 52px; }
.field .df input.df-bad { border-color: var(--danger); }
.df-btn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: transparent; color: var(--primary); display: grid; place-items: center; }
.df-btn:hover:not(:disabled), .df-btn[aria-expanded="true"] { background: var(--primary-soft); }
.df-btn:disabled { color: var(--text-disabled); cursor: not-allowed; }
.df-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 336px; max-width: calc(100vw - 24px); padding: 12px; background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); }
.df-pop.df-right { left: auto; right: 0; }
.df-backdrop { display: none; }
.df-label { display: none; margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.df-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.df-title { font-size: 17px; font-weight: 700; }
.df-nav { width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: transparent; color: var(--primary); display: grid; place-items: center; }
.df-nav:hover:not(:disabled) { background: var(--primary-soft); }
.df-nav:disabled { color: var(--text-disabled); cursor: not-allowed; }
.df-week, .df-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.df-week span { padding: 4px 0; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.df-day { height: 44px; min-width: 44px; border: 0; border-radius: var(--radius); background: transparent; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--text); }
.df-day:hover:not(:disabled) { background: var(--primary-soft); }
.df-day[aria-current="date"] { color: var(--primary); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--primary); }
.df-day[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); font-weight: 700; box-shadow: none; }
.df-day[aria-pressed="true"]:hover { background: var(--primary-pressed); }
.df-day:disabled { color: var(--text-disabled); cursor: not-allowed; }
.df-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-soft); }
.df-foot [data-close] { margin-left: auto; }
/* Handy: als Leiste von unten (Daumen) mit abgedunkeltem Hintergrund */
@media (max-width: 560px) {
  .df-backdrop { display: block; position: fixed; inset: 0; z-index: 59; background: var(--backdrop); }
  .df-pop, .df-pop.df-right { position: fixed; z-index: 60; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .df-label { display: block; }
  .df-day { height: 48px; }
}

/* ---------- Rechte der Rollen ---------- */
.wz-user { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
@media (max-width: 560px) { .wz-user { grid-template-columns: 1fr; } }

/* Störungen: Verlauf früherer, wieder geöffneter Abschlüsse */
.st-history { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.st-history li { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-left: 3px solid var(--border); background: var(--neutral-bg); border-radius: 0 var(--radius) var(--radius) 0; }
.st-history li > span { display: flex; align-items: flex-start; gap: 6px; overflow-wrap: anywhere; }
.st-history li > span.tb-note { display: block; margin: 0; }
.st-history svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* Aktivitätsprotokoll */
.audit-body { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Verwaltungsseiten (Umbau Schritt 5) ----------
 * Jede Gruppe ergänzt ihre Regeln NUR unter ihrer eigenen Überschrift (vermeidet Konflikte beim Zusammenführen). */
.page-intro { display: flex; flex-direction: column; gap: var(--space-1); }
.page-intro > p { margin: 0; }
.intro-more > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; color: var(--primary); font-weight: 600; list-style: none; }
.intro-more > summary::-webkit-details-marker { display: none; }
.intro-more > summary svg { width: 18px; height: 18px; }
.intro-more-body { color: var(--muted); }
.intro-more-body > :first-child { margin-top: 0; }
.intro-more-body > :last-child { margin-bottom: 0; }

/* -- Schritt 5, Gruppe A: Rechte, Bad einrichten, Benutzer, E-Mail -- */
/* Rechte der Rollen (rechte.js formHtml): je Bereich ein Block – Kopf (Schalter, Name, „?“), aufklappbare Übersicht der Stufen,
   darunter die Rollen (Handy untereinander, sonst nebeneinander, so viele, wie mit lesbarer Auswahl Platz haben) */
.rt-list { display: flex; flex-direction: column; }
.rt-line { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-soft); }
.rt-line:first-child { padding-top: 0; }
.rt-line:last-child { border-bottom: 0; padding-bottom: 0; }
.rt-area { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; font-weight: 700; }
.rt-slot:empty { display: none; } /* Platz für den Bereichsschalter (Schritt 6) */
.rt-name { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.rt-help-btn {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 calc(-1 * var(--space-2)) 0 auto;
  border: 0; border-radius: var(--radius); background: transparent; color: var(--primary); cursor: pointer;
}
.rt-help-btn:hover, .rt-help-btn[aria-expanded="true"] { background: var(--primary-soft); }
.rt-help-btn svg { width: 20px; height: 20px; }
.rt-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-3); }
.rt-cell { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.rt-role { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.rt-cell select.input { min-height: 44px; padding: 8px 10px; }
.rt-desc { margin: 0; font-size: var(--fs-sm); color: var(--muted); overflow-wrap: anywhere; }
/* Übersicht der Stufen eines Bereichs (hinter „?“) und allgemein unter „Mehr dazu“ */
.rt-help { padding: var(--space-3); border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface-alt); font-size: var(--fs-sm); }
.rt-help[hidden] { display: none; }
.rt-help > * { margin: 0; }
.rt-help > * + * { margin-top: var(--space-2); }
.rt-help-title { font-weight: 700; }
.rt-help-list { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; }
.rt-help-list dt { font-weight: 700; color: var(--text); }
.rt-help-list dd { margin: 0; }
.rt-help-more { color: var(--muted); }


/* Bad einrichten: Zurück · Überspringen · Weiter in einer festen Leiste */
.sticky-actions > .wz-skip { margin-left: auto; }
@media (max-width: 479px) {
  .sticky-actions > .wz-back, .sticky-actions > .wz-skip { flex: 1 1 auto; margin: 0; }
  .sticky-actions > .wz-next { flex: 1 1 auto; min-width: 48%; } /* passt sie nicht daneben, rutscht sie in eine eigene Zeile */
}
.sticky-actions > .wz-next { justify-content: center; }

/* Benutzer: Suche/Filter (ab 10 Konten), Bearbeiten mit aufklappbarem „Passwort und Ablaufdatum“, Knöpfe in einer Reihe */
.user-count { font-weight: 600; }
.user-filter { display: flex; flex-direction: column; gap: var(--space-2); }
.user-seg { flex-wrap: wrap; }
.user-seg button { flex: 1 1 auto; }
.ed-more { border: 1px solid var(--border-soft); border-radius: var(--radius); }
.ed-more > summary { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-3); cursor: pointer; color: var(--primary); font-weight: 600; list-style: none; }
.ed-more > summary::-webkit-details-marker { display: none; }
.ed-more > summary svg { width: 18px; height: 18px; transition: transform .2s ease-out; }
.ed-more[open] > summary svg { transform: rotate(180deg); }
.ed-more-body { display: flex; flex-direction: column; gap: var(--space-3); padding: 0 var(--space-3) var(--space-3); }
@media (prefers-reduced-motion: reduce) { .ed-more > summary svg { transition: none; } }

/* E-Mail-Versand: „Weitere Angaben“ als eingeklappter Bereich im Formular, Speichern in fester Leiste */
.em-more { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--card); }
.em-card > form:last-child > .sticky-actions:last-child { margin: 0 calc(-1 * var(--space-4)) calc(-1 * var(--space-4)); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }


/* -- Schritt 5, Gruppe B: Einstellungen, Bäder, Becken, Feedback, Verwaltung, Aktivität -- */
/* Einstellungen: Gruppen im Abschnitt „Spülung“, Abweichung des Bads abgesetzt */
.settings-group { display: flex; flex-direction: column; gap: var(--space-2); }
.settings-label { font-weight: 600; }
.settings-hint { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.settings-site { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border-soft); }
.settings-site > .sub-title { margin: 0; }
/* Bäder/Becken: Kopf mit Lizenzzähler, kleine Aktionen in einer Zeile, Abschnitt im geöffneten Eintrag */
.admin-list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-3); }
.admin-list-head > .muted { font-size: var(--fs-sm); }
.admin-row-actions { gap: var(--space-1); }
details.section.nested-section { box-shadow: none; background: var(--surface-alt); }
/* Verwaltung: Kurzinfo einzeilig, Zeilen etwas straffer */
.admin-hub-link { min-height: 52px; padding-top: 6px; padding-bottom: 6px; }
.admin-hub-text { font-size: var(--fs-sm); }
/* Feedback: leerer Zustand ohne Adresse */
.empty-state .card-title { display: flex; align-items: center; gap: var(--space-2); }
.empty-state .card-title svg { color: var(--muted); flex: none; }
.empty-state p { margin: 0; }
/* Aktivitätsprotokoll: nach Tag gruppiert, je Eintrag Titel + „Uhrzeit · Name“ */
.audit-list { gap: 0; padding-top: var(--space-2); }
.audit-day + .audit-day { margin-top: var(--space-3); }
.audit-day-head { margin: 0; padding: var(--space-2) 0; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--border-soft); }
.audit-day > .event:first-of-type { border-top: 0; }
.audit-entry { padding: var(--space-1) 0; }
.audit-entry .audit-body { flex: 1; }
.audit-entry .audit-meta { display: block; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.audit-entry .audit-details { display: block; margin-top: 2px; font-size: var(--fs-sm); }
/* Lange Details: zugeklappt eine Zeile, der ganze Eintrag klappt auf (Pfeil rechts) */
details.audit-d > summary { list-style: none; position: relative; cursor: pointer; padding-right: 36px; border-radius: var(--radius); }
details.audit-d > summary::-webkit-details-marker { display: none; }
details.audit-d > summary:hover { background: var(--surface-alt); }
details.audit-d > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.audit-entry .audit-title { display: block; }
details.audit-d:not([open]) :is(.audit-details, .audit-title) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audit-chev { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; color: var(--primary); transition: transform .2s ease-out; }
.audit-chev svg { width: 18px; height: 18px; }
details.audit-d[open] .audit-chev { transform: translateY(-50%) rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .audit-chev { transition: none; } }


/* -- Schritt 5, Gruppe C: Zähler verwalten, Grenzwerte, Messgrößen, Labor-Grenzwerte, Aufgaben planen -- */
/* limitRow(): Name links, Minimum und Maximum rechts – eine Zeile je Messgröße */
.limit-lines { display: flex; flex-direction: column; }
.limit-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-2); row-gap: 2px;
  padding: var(--space-2) 0; border-bottom: 1px solid var(--border-soft);
}
.limit-line:last-child { border-bottom: 0; }
.limit-name { font-weight: 600; overflow-wrap: anywhere; hyphens: auto; min-width: 0; }
/* Labor: Haken vor dem Namen braucht Platz – Felder auf schmalen Handys etwas schmaler */
@media (max-width: 399px) { .lab-line .limit-in { grid-template-columns: 72px 72px; } .limit-line.lab-line > .check.limit-name { font-size: var(--fs-sm); } }
.limit-name .limit-unit { font-weight: 400; }
.limit-line > .check.limit-name { min-height: 44px; font-size: 16px; }
.limit-in { display: grid; grid-template-columns: 84px 84px; gap: var(--space-2); }
.limit-in[hidden] { display: none; }
.limit-in .input { min-height: 48px; padding: 10px 8px; }
.limit-in .input:focus { border-color: var(--primary); outline: 2px solid var(--primary-soft); }
.limit-in .input.is-invalid { border-color: var(--danger); }
.limit-line > .limit-hint { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.limit-head { padding: 0; border-bottom: 0; }
.limit-head .limit-in > span { font-size: 14px; font-weight: 600; color: var(--muted); }
@media (min-width: 600px) { .limit-in { grid-template-columns: 120px 120px; } }
@media (min-width: 720px) { .limit-lines { max-width: 640px; } }
/* Abschnitts-Hinweis direkt unter dem Kartentitel; Vorlage-Knöpfe */
.c-hint { font-size: 14px; color: var(--muted); margin: 0; }
.c-tools { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* Listen der Verwaltungsseiten (moreList) ohne Aufzählungszeichen */
.c-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.c-list + .more-btn, .more-list > .c-list { margin: 0; }
/* Messgrößen-Formular: Einheit/Nachkommastellen und Minimum/Maximum nebeneinander */
.mg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.mg-range { border: 0; margin: 0; padding: 0; }
.mg-range legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 4px; }
/* Zähler: Gruppenname innerhalb der Karte */
.c-group-title { margin: var(--space-2) 0 0; font-size: 15px; font-weight: 700; }
.c-group-title .muted { font-weight: 400; }


/* -- Schritt 5, Gruppe D: Schichten & Vorlage, QR-Codes, Bestellung, Chemikalien/Lager -- */

/* Schichten & Vorlage: jeder Punkt eine Zeile (antippen klappt die Felder auf), Werkzeuge rechts */
.tv-items { gap: var(--space-2); }
.tv-items .tv-item { padding: var(--space-1) var(--space-1) var(--space-1) 0; gap: 0; }
.tv-items .tv-item.is-open { padding-bottom: var(--space-3); gap: var(--space-2); }
.tv-items .tv-item-grid { padding: 0 var(--space-2) 0 var(--space-3); }
.tv-item-head { align-items: stretch; }
.tv-item-toggle {
  flex: 1 1 auto; min-width: 0; min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3); border: 0; border-radius: var(--radius);
  background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
@media (hover: hover) { .tv-item-toggle:hover { background: var(--primary-soft); } }
.tv-item-title { display: flex; align-items: baseline; gap: var(--space-2); min-width: 0; }
.tv-item-title > b { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.tv-item-title > svg { width: 16px; height: 16px; flex: none; align-self: center; color: var(--muted); }
.tv-item-toggle[aria-expanded="true"] .tv-item-title > svg { transform: rotate(180deg); }
.tv-item-meta { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.tv-item-meta .warn-text svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: var(--space-1); }
.tv-item .tv-tools { align-items: center; gap: var(--space-1); }
/* Handy: Zeile ganz für den Namen; Hoch/Runter/Entfernen erst im aufgeklappten Punkt (unten rechts) */
@media (max-width: 559px) {
  .tv-items .tv-item-head { display: contents; }
  .tv-items .tv-item-toggle { order: 0; }
  .tv-items .tv-item-grid { order: 1; }
  .tv-items .tv-tools { order: 2; justify-content: flex-end; padding: 0 var(--space-2); }
  .tv-items .tv-item:not(.is-open) .tv-tools { display: none; }
}
.tv-kind-text { min-height: 44px; display: flex; align-items: center; }
.tv-dirty { font-weight: 700; }

/* QR-Codes: Kopf „Filter auswählen · Alle“ über den Gruppen, Druckhinweis */
.qr-pick-head { padding: 0 var(--space-1); }
.qr-hint { margin: 0; font-size: 14px; }
/* QR-Codes: „Drucken“ und „Vorschau“ nebeneinander in der festen Leiste (Leiste bleibt flach) */
.sticky-actions > #printBtn { flex: 1 1 0; min-width: 0; }
.sticky-actions > #previewBtn { flex: 0 0 auto; }

/* -- Schritt 6, Client-Grundlage (Bereiche ein/aus, nicht übernommene Einträge) -- */
/* Kopfzeile: Hinweis „n nicht übernommen“ neben der Abgleich-Anzeige (Sprung nach „Mein Konto“) */
.rejected-hint {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; justify-content: center;
  border-radius: 999px; background: var(--over-bg); color: var(--over-fg); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.rejected-hint[hidden] { display: none; }
.rejected-hint svg { width: 16px; height: 16px; flex: none; }
.rejected-hint:hover { filter: brightness(.96); }
.rejected-hint:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Schmal: nur Symbol + Zahl (vollständiger Text als aria-label) */
.rejected-hint .rh-short { display: none; }
@media (max-width: 479px) { .rejected-hint .rh-long { display: none; } .rejected-hint .rh-short { display: inline; } }
/* Seite eines ausgeschalteten Bereichs */
.area-off .card-title { margin-bottom: var(--space-2); }
.area-off p { margin: 0 0 var(--space-3); }
.area-off .btn { margin-top: var(--space-2); }
/* Mein Konto: Liste nicht übernommener Einträge */
.rejected-box { border-left: 4px solid var(--danger); scroll-margin-top: calc(var(--topbar-h) + env(safe-area-inset-top) + var(--space-3)); }
.rejected-box:focus { outline: none; }
.rejected-box:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rejected-box .card-title { display: flex; align-items: center; gap: var(--space-2); }
.rejected-box .card-title svg { width: 20px; height: 20px; color: var(--danger); flex: none; }
.rejected-list { list-style: none; margin: var(--space-3) 0; padding: 0; display: grid; gap: var(--space-3); }
.rejected-item { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); background: var(--surface-alt); min-width: 0; }
.rejected-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); font-size: var(--fs-base); }
.rejected-head .muted { font-size: var(--fs-sm); }
.rejected-data { display: grid; gap: 2px; margin: var(--space-2) 0; font-size: var(--fs-sm); }
.rejected-data > div { display: grid; grid-template-columns: minmax(90px, 160px) 1fr; gap: var(--space-2); }
.rejected-data dt { color: var(--muted); }
.rejected-data dd { margin: 0; overflow-wrap: anywhere; }
.rejected-why { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0 0 var(--space-2); color: var(--over-fg); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.rejected-why svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.rejected-actions { flex-wrap: wrap; }
/* Einstellungen: Hinweis, warum „Spülung“ fehlt */
.settings-off { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0; font-size: var(--fs-sm); }
.settings-off svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* -- Schritt 6, Schalter (Rechte-Seite, Einrichtungs-Assistent) -- */
/* Bereichsschalter vorn im Bereichskopf (rechte.js formHtml): Zustand als Text „An/Aus“ + Knopfstellung, nicht nur Farbe */
.rt-area { flex-wrap: wrap; }
/* Handy: langer Name bricht neben dem Schalter um, statt den Schalter allein in eine Zeile zu schieben */
.rt-area .rt-name { flex: 1 1 0; }
.rt-slot { flex: none; }
.rt-switch {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; min-width: 44px; padding: 0 var(--space-2) 0 0;
  border: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer;
}
.rt-switch:disabled { cursor: progress; }
.rt-track {
  position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px;
  border: 2px solid var(--muted); background: var(--off-bg); transition: background var(--motion-fast), border-color var(--motion-fast);
}
.rt-knob {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted); transition: transform var(--motion-fast);
}
.rt-switch[aria-checked="true"] .rt-track { background: var(--primary); border-color: var(--primary); }
.rt-switch[aria-checked="true"] .rt-knob { transform: translateX(18px); background: var(--on-primary); }
.rt-sw-text { min-width: 2.2em; text-align: left; }
.rt-switch[aria-checked="false"] .rt-sw-text { color: var(--off-fg); }
@media (prefers-reduced-motion: reduce) { .rt-track, .rt-knob { transition: none; } }
/* Ausgeschalteter Bereich: Name gedämpft, Hinweis „Ausgeschaltet seit …“, Auswahlfelder gesperrt (werden trotzdem gespeichert) */
.rt-line.is-off .rt-name { color: var(--muted); }
.rt-off-note {
  flex: 1 0 100%; display: flex; align-items: center; gap: var(--space-1);
  font-size: var(--fs-sm); font-weight: 600; color: var(--off-fg);
}
.rt-off-note svg { width: 16px; height: 16px; flex: none; }
.rt-cell select.input:disabled { background: var(--neutral-bg); color: var(--muted); opacity: 1; cursor: not-allowed; }
/* Dialog „Bereich ausschalten?“ */
.rt-off-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.rt-off-facts li { display: flex; align-items: flex-start; gap: var(--space-2); }
.rt-off-facts svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--muted); }
/* Assistent „Was willst du dokumentieren?“: Liste ohne Rahmen (fieldset nur für Vorleseprogramme) */
.wz-areas { border: 0; margin: 0; padding: 0; min-width: 0; }
.wz-areas > .meter-tpl-row:first-of-type { border-top: 0; }

/* -- Schritt 6, Berichte (Bereiche ein/aus) -- */
/* Vermerk „… seit … ausgeschaltet“ im Kopf und in Abschnitten von Druckberichten (auch im PDF) */
.report .rp-area-notes { margin: 8px 0 0; padding: 6px 8px 6px 22px; border-left: 3px solid var(--due-fg); background: var(--surface-alt); }
.report .rp-area-notes li { margin: 2px 0; }
.report .rp-area-note { margin: 4px 0 8px; padding: 4px 8px; border-left: 3px solid var(--due-fg); background: var(--surface-alt); }
/* Hinweis unter den Inhalten: nicht angebotene, ausgeschaltete Bereiche */
.ba-off-note { display: flex; gap: var(--space-2); align-items: flex-start; }
.ba-off-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.banner .btn.small { margin-top: var(--space-2); }
/* Bädervergleich mit nur einem eingeschalteten Bereich: Überschrift statt Reiter */
.cmp-single { display: flex; align-items: center; gap: var(--space-2); }

/* ---------- Saison (Freibad) ---------- */
/* Status-Chip „Außer Saison“ (Symbol + Text) – für Startseite, Listen, Berichte; neben .badge verwendbar */
.season-off {
  display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--season-off-line); background: var(--season-off-bg); color: var(--season-off-fg);
  font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; max-width: 100%;
}
.season-off svg { width: 14px; height: 14px; flex: none; }
/* Hinweiszeile „… außer Saison“ (Wasserwerte): Symbol in Textgröße auf der ersten Zeile */
.season-note { display: flex; align-items: flex-start; gap: var(--space-2); }
.season-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
/* Gesamtübersicht: „2 Becken“ + Chip „1 außer Saison“ */
.ba-pools { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2); }
/* Seite Verwaltung → Saison (views/saison.js) */
.season-text { margin: 0; font-size: var(--fs-base); overflow-wrap: anywhere; }
.season-state .btn { align-self: flex-start; }
@media (max-width: 599px) { .season-state .btn { align-self: stretch; } }
.season-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 44px; }
.season-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 0; overflow-wrap: anywhere; }
.season-row .rt-switch { flex: none; }
.season-days { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 600px) { .season-days { grid-template-columns: 1fr 1fr; } }
.season-day-sel { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--space-2); }
.season-day .error { display: flex; align-items: flex-start; gap: var(--space-1); }
.season-day .error svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.season-pools { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.season-pools > li { padding: var(--space-2) 0; border-top: 1px solid var(--border-soft); }
.season-pools > li:first-child { border-top: 0; }
.season-pool-state { font-size: var(--fs-sm); }
/* „Geschlossen“ (Schließzeiten): Chip wie „Außer Saison“, eigene Farbe – überall nutzbar (Startseite, Übersichten, Berichte) */
.closed-off {
  display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--closed-line); background: var(--closed-bg); color: var(--closed-fg);
  font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; max-width: 100%;
}
.closed-off svg { width: 14px; height: 14px; flex: none; }
/* Betriebsbeginn (js/betrieb.js): „Noch nicht gestartet“ / „Betrieb ab …“ – Chip wie „Außer Saison“, eigene Farbe; „Läuft seit …“ grün */
.start-off, .start-on {
  display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px 9px; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; max-width: 100%;
}
.start-off { border: 1px solid var(--start-line); background: var(--start-bg); color: var(--start-fg); }
.start-on { border: 1px solid transparent; background: var(--ok-bg); color: var(--ok-fg); }
.start-off svg, .start-on svg { width: 14px; height: 14px; flex: none; }
/* Start-Formular (Einrichtung „Fertig“, Bäder-Verwaltung) */
.start-form { text-align: left; }
.start-form .field { max-width: 320px; }
.start-hint { margin: 0; font-size: var(--fs-sm); }
.start-actions .btn { flex: 1 1 auto; }
@media (min-width: 600px) { .start-actions .btn { flex: 0 0 auto; } }
.start-state { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.site-start { display: block; margin-top: var(--space-1); }
/* Seite Schließzeiten (views/schliessung.js) */
.sc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sc-list > li { padding: var(--space-3) 0; border-top: 1px solid var(--border-soft); }
.sc-list > li:first-child { border-top: 0; padding-top: 0; }
.sc-item { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; overflow-wrap: anywhere; }
.sc-item-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-2); }
.sc-span { font-size: var(--fs-base); }
.sc-reason { font-size: var(--fs-sm); color: var(--muted); }
.sc-late { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--fs-sm); font-weight: 600; color: var(--due-fg); }
.sc-late svg { width: 16px; height: 16px; flex: none; }
.sc-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-1); }
.sc-end-form { margin-top: var(--space-2); padding: var(--space-3); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.sc-day-time { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 420px) { .sc-day-time { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.sc-offline { display: flex; flex-direction: column; gap: var(--space-1); }
@media (max-width: 599px) { .sc-actions .btn { flex: 1 1 auto; } }

/* ---------- Nachweise: Rahmenseiten (js/rahmen.js) ----------
 * Protokolle/Kennzahlen: Reiterleiste mit Unterstrich (nur erlaubte Reiter, gleich breit, ohne seitliches Scrollen).
 * Berichte & Export: Liste „Was brauchst du?“ mit Format-Marke; am Handy nach der Wahl zugeklappt, ab 1024 px linke Spalte. */
.frame-body > div > .page { max-width: none; }
.frame-head:empty { display: none; }
.frame-tabs { display: flex; border-bottom: 1px solid var(--border); }
.frame-tab {
  flex: 1 1 0; min-width: 0; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-1); margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--muted);
  font-size: var(--fs-base); font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
}
.frame-tab-label { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.frame-tab > svg:first-child { width: 18px; height: 18px; flex: none; }
.frame-tab .menu-count svg { width: 14px; height: 14px; }
.frame-tab[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.frame-tab:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
@media (hover: hover) { .frame-tab:hover { background: var(--primary-soft); color: var(--text); } }
/* Reiterleiste nach ihrer eigenen Breite (Container, gilt auch neben dem festen Menü am PC): ist es knapp, ohne Symbol und
   die Zahl unter der Beschriftung – sonst bricht „Wasserwerte“/„Störungen“ mitten im Wort. 4 Reiter (Anlage & Lager) brauchen
   mit Symbol und Zahl gut 700 px, 3 Reiter knapp 600 px; ganz schmal (Handy 360 px) 4 Reiter mit 14 px. Die Leiste scrollt
   nicht, 4 Reiter sind die Grenze. Gemessen mit Chrome, Werte in px (in Container-Abfragen gehen keine Variablen). */
.frame-head { container-type: inline-size; }
@container (max-width: 599px) {
  .frame-tab > svg:first-child { display: none; }
  .frame-tab { flex-direction: column; gap: var(--space-1); }
}
@container (max-width: 719px) {
  .frame-tabs-many .frame-tab > svg:first-child { display: none; }
  .frame-tabs-many .frame-tab { flex-direction: column; gap: var(--space-1); }
}
@container (max-width: 369px) { .frame-tabs-many .frame-tab { font-size: var(--fs-sm); } }
.format-tag {
  flex: none; display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--space-2); border: 1px solid var(--border);
  border-radius: 999px; background: var(--neutral-bg); color: var(--text); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em;
}
.frame-chosen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); }
.frame-chosen-text { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-width: 0; }
.frame-chosen-text > svg { color: var(--primary); flex: none; }
.frame-chosen .btn { min-height: 44px; }
.hub-link > .format-tag { flex: none; display: inline-flex; flex-direction: row; margin-left: auto; } /* nicht wie .hub-link > span strecken */
.frame-picker .hub-link[aria-current="page"] { background: var(--primary-soft); }
.frame-picker .hub-link[aria-current="page"] > svg:last-child { color: var(--primary); }
@media (max-width: 1023px) {
  .frame-list:not(.is-open) .frame-picker { display: none; }
  .frame-empty { display: none; }
}
@media (min-width: 1024px) {
  .page.frame-list { max-width: 1240px; display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; gap: var(--space-5); }
  .frame-list .frame-chosen { display: none; }
}
/* Protokolle: ein Textlink nach „Berichte & Export“ statt eigener Exportkarten (E4) */
.export-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-4); margin: 0; padding: 0 var(--space-1); }
.export-links > svg { color: var(--muted); flex: none; }
.export-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }

/* Kennzahlen-Überblick */
/* Seite Nachweise → Kennzahlen → Überblick (views/kennzahlen-ueberblick.js) und Bausteine kpiTile/kpiChip (js/ui.js) */
.ku {
  --ku-energy: var(--primary);   /* Kostenart Energie & Wasser (Balken + Legende) */
  --ku-chem: #0F766E;            /* Kostenart Chemikalien (Kontrast > 5 : 1 auf Weiß, unterscheidbar von --primary) */
}
.ku-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-3); }
.ku-pick select { min-height: 44px; width: 100%; min-width: 0; }
.ku-pick .field { min-width: 0; }
.ku-status:empty { display: none; }
.ku-loading { display: flex; align-items: center; gap: var(--space-2); }
.ku-loading svg { width: 18px; height: 18px; flex: none; }
.ku-head { margin: var(--space-2) 0 0; font-size: var(--fs-xl); line-height: 1.3; overflow-wrap: anywhere; }
.ku-head .muted { font-size: var(--fs-lg); font-weight: 600; }
.ku-highlights { margin: 0; padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.ku-highlights li { overflow-wrap: anywhere; }
/* Kacheln: Handy 2 Spalten kompakt, ab 900 px 4 Spalten */
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); } }
.kpi-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); min-width: 0; padding: var(--space-3);
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow);
}
.kpi-title { margin: 0; font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; hyphens: auto; }
.kpi-chip { max-width: 100%; white-space: normal; }
.kpi-value { margin: var(--space-1) 0 0; font-size: var(--fs-xl); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (min-width: 600px) { .kpi-tile { padding: var(--space-4); } .kpi-value { font-size: var(--fs-2xl); } }
.kpi-delta, .kpi-meta { margin: 0; font-size: var(--fs-sm); line-height: 1.35; display: flex; align-items: flex-start; gap: var(--space-1); min-width: 0; overflow-wrap: anywhere; }
.kpi-delta svg, .kpi-meta svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.kpi-delta span, .kpi-meta span { min-width: 0; }
.kpi-better { color: var(--ok-fg); font-weight: 600; }
.kpi-worse { color: var(--over-fg); font-weight: 600; }
.kpi-neutral, .kpi-meta { color: var(--muted); }
.k-none { background: var(--neutral-bg); color: var(--muted); }
/* Bäder-Tabelle */
.ku-matrix td, .ku-matrix th[scope="row"] { vertical-align: top; }
/* Bad-Spalte: helle Zelle statt Kopfzeilen-Blau (table.data th), bleibt beim seitlichen Scrollen stehen */
.ku-matrix tbody th { background: var(--card); color: var(--text); font-weight: 600; white-space: normal; min-width: 120px; position: sticky; left: 0; z-index: 1; padding: 10px; border-bottom: 1px solid var(--border-soft); }
.ku-matrix tbody tr:nth-child(even) th { background: var(--surface-alt); }
/* Spaltenköpfe dürfen umbrechen, damit mehr Spalten in die Breite passen */
.ku-matrix thead th { white-space: normal; vertical-align: bottom; min-width: 96px; max-width: 150px; hyphens: auto; overflow-wrap: break-word; }
.ku-matrix thead th:first-child { min-width: 120px; }
.ku-site-btn { padding: 0; min-height: 44px; overflow-wrap: anywhere; }
.ku-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ku-cell-value { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Kosten nach Monat: gestapelter Balken (Zahlen stehen daneben in der Tabelle) */
.ku-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.ku-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.ku-key-e, .ku-bar-e { background: var(--ku-energy); fill: var(--ku-energy); }
.ku-key-c, .ku-bar-c { background: var(--ku-chem); fill: var(--ku-chem); }
.ku-key-c { margin-left: var(--space-2); }
.ku-bar-col { width: 40%; min-width: 96px; }
.ku-bar { display: block; width: 100%; height: 14px; border-radius: 3px; background: var(--neutral-bg); }
.ku-links { padding-top: var(--space-2); }

/* Monatsbericht */
/* Berichte & Export → Monatsbericht (Druck/PDF, A4 hochkant, höchstens 2 Seiten). Status immer Symbol + Wort
 * (graustufentauglich); „Zur Info“ und „Keine Daten“ neutral gedämpft. */
.mb-conf-hint { display: flex; align-items: center; gap: var(--space-2); }
.mb-conf-hint svg { width: 18px; height: 18px; flex: none; }
.report .mb-block { break-inside: avoid; page-break-inside: avoid; }
.report .mb-key { margin: 4px 0 12px; padding: 8px 12px; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); background: var(--surface-alt); }
.report .mb-key h2 { margin: 0 0 4px; font-size: 14px; color: var(--primary); }
.report .mb-key ul { margin: 0; padding-left: 18px; }
.report .mb-key li { margin: 2px 0; font-size: 12px; }
.report .mb-caption { margin: 4px 0; font-size: 10px; color: var(--muted); }
.report .mb-val { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report .mb-hint { color: var(--muted); font-size: 10px; }
.report .mb-st { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; white-space: nowrap; }
.report .mb-st svg { width: 12px; height: 12px; flex: none; }
.report .mb-st-ok { color: var(--ok-fg); }
.report .mb-st-due { color: var(--due-fg); }
.report .mb-st-over { color: var(--over-fg); }
.report .mb-st-season { color: var(--season-off-fg); }
.report .mb-st-none, .report .mb-st-info { color: var(--muted); font-weight: 600; }
.report .mb-conf { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; font-weight: 700; color: var(--over-fg); }
.report .mb-conf svg { width: 12px; height: 12px; flex: none; }
.report .mb-conf-end { margin-top: 12px; justify-content: center; }
.report .mb-sites td, .report .mb-pools td { font-size: 10.5px; }
@media print {
  .report .mb-key, .report .mb-st, .report .mb-conf { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
