/* zahlen-seite.css: Seite "Zahlen" (Beitrags-Auswertung), gewaehlt 24.11.2026: Geruest B Logbuch,
   aus C die Vergleichs-Karte und das Blaettern im Beitrag, aus A grosse Bilder und die Follower-Linie.
   Nur Farben aus theme.js (hell und dunkel), kein Rot, keine Schatten, Karten und Fotos 20 px Ecken.
   Schrift: Unbounded nur in Versalien ab 24 px (Titel, grosse Zahlen), sonst Funnel Display.
   Achtung theme.js: im Hellen ist jedes <p> grau (!important) und jedes <nav> gestylt. Tinte darum
   in <div>/<span>, keine eigenen <nav>. */

.zs { --zs-r: 20px; --zs-gap: 16px; --zs-nachtblau: #93B8F2; --zs-akzent: #F20D46; position: relative; z-index: 1; color: var(--text-primary, #F4F4F4); font-family: var(--font-body); }
.zs [hidden] { display: none !important; }
[data-theme="light"] .zs { --zs-nachtblau: #24508F; }
.zs-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.zs h2, .zs h3 { margin: 0; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-primary); }
/* Hoechstens drei Schriftgroessen je Flaeche (Runde 2, B1): 48 Unbounded (Titel, Hauptzahlen),
   16 Funnel (Text, Ueberschriften Semibold), 13 Funnel (Meta, Achsen); am Handy 40 statt 48 */
.zs h2 { font-size: 16px; line-height: 1.3; }
.zs h3 { font-size: 16px; line-height: 1.3; }
.zs p { margin: 0; }
.zs-zweit { color: var(--text-secondary); }
.zs-meta { font-size: 13px; line-height: 1.4; color: var(--text-muted); }
.zs-tinte { color: var(--text-primary); }
.zs-num { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.01em; line-height: 1.05; text-transform: uppercase; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.zs-num.gross { font-size: 48px; }
.zs-ico { display: inline-flex; flex: none; width: 18px; height: 18px; vertical-align: middle; color: inherit; }
.zs-ico svg { display: block; width: 100%; height: 100%; }
/* Schriftsatz (B2): kurze Texte ausgeglichen, Fliesstext ohne Einzelwort am Ende */
.zs h1, .zs h2, .zs h3, .zs-titelzeile, .zs-meta, .zs-urteil, .zs-satzzeile, .zs-aussage, .zs-bk-titel, .zs-bw-sub, .zs-tickl, .zs-jung { text-wrap: balance; }
.zs-zweit, .zs-satz-text, .zs-vergleich-satz, .zs-tipp { text-wrap: pretty; }

/* Karten (nur Beitragskarten und Vergleichs-Karte): im Dunkeln #0A0708 mit 20 % Weiss-Kontur (B12) */
.zs-karte { background: var(--bg-body); border: 1px solid var(--kontur); border-radius: var(--zs-r); }

/* ---- Kopf ---- */
.zs-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.zs-titel { margin: 0; font-family: var(--font-display) !important; font-weight: 900 !important; font-size: 48px !important; line-height: 1 !important; letter-spacing: -0.01em !important; text-transform: uppercase !important; color: var(--text-primary); display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.zs-konto { text-align: right; display: grid; gap: 4px; justify-items: end; }
.zs-konto .zs-name { font-weight: 600; font-size: 16px; }
.zs-konten { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.zs-teamzeile { display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; margin: -8px 0 20px; font-size: 13px; color: var(--text-secondary); }
.zs-teamzeile a { color: var(--text-primary); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; min-height: 32px; }
.zs-teamzeile a:hover { opacity: 0.75; }
.zs-teamzeile a:active { opacity: 0.6; }

/* ---- Pillen (Filter, Umschalter, Konten): gewaehlt = .vl-gewaehlt aus theme.js ---- */
.zs-pille { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--kontur); background: transparent; color: var(--text-primary); font: 600 16px/1 var(--font-body); cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.zs-pille:hover { opacity: 0.8; }
.zs-pille:active { transform: scale(0.97); }
.zs-pille small { font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.zs-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--kontur); background: transparent; color: var(--text-primary); font: 600 16px/1 var(--font-body); cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.zs-knopf:hover { opacity: 0.8; }
.zs-knopf:active { transform: scale(0.97); }
.zs-knopf[disabled] { opacity: 0.45; cursor: default; transform: none; }
/* Knopf laut Manual: Kontur-Pille; nur auf Schwarz weiss gefuellt (im Hellen bleibt er Kontur, Schrift Semibold) */
[data-theme="dark"] .zs-knopf.haupt { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border-color: var(--btn-primary-line); }
.zs-ibtn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--kontur); background: transparent; color: var(--text-primary); display: inline-grid; place-items: center; cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.zs-ibtn:hover:not([disabled]) { opacity: 0.75; }
.zs-ibtn:active:not([disabled]) { transform: scale(0.95); }
.zs-ibtn[disabled] { opacity: 0.35; cursor: default; }
/* Fokus nur bei Tastatur und in der Form der Marke: gewaehlter Zustand (helle Flaeche, Kontur), kein Doppelring */
[data-theme] .zs-ibtn:focus-visible { outline: none !important; background: var(--sel-bg); border-color: var(--sel-line); }
[data-theme] .zs-ibtn:focus:not(:focus-visible) { outline: none !important; }
/* Das Fenster selbst bekommt beim Oeffnen den Fokus, ohne Rahmen */
[data-theme] .zs-dlg:focus, [data-theme] .zs-dlg:focus-visible { outline: none !important; }

/* ---- Wirkung oben: rahmenlos auf dem Grund, getrennt durch Luft und Haarlinien (Runde 2, A1) ---- */
.zs-titelzeile { font-weight: 600; font-size: 16px; color: var(--text-primary); text-wrap: balance; }
/* Erste 30 Tage: staerkster Beitrag bisher (klickbar, oeffnet das Fenster) */
.zs-staerkster { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 20px; align-items: start; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: var(--zs-r); transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.zs-staerkster:hover { opacity: 0.85; }
.zs-staerkster:active { transform: scale(0.99); }
.zs-staerkster-text { display: grid; gap: 8px; min-width: 0; }
.zs-staerkster-text .zs-meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zs-titelzeile .zs-zeile { display: block; }
.zs-staerkster .zs-bild { width: 72px; }
.zs-messen { display: grid; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.zs-balken { display: grid; gap: 8px; margin-top: 10px; }
/* graue Zone unter den Balken, hoechstens drei Zeilen (L2) */
.zs-kachel-fuss { margin-top: 4px; text-wrap: pretty; }
.zs-balken .zeile { display: grid; gap: 4px; }
.zs-balken .beschr { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-secondary); }
/* Fortschritt und Balken 8 px (B11) */
.zs-spur { height: 8px; border-radius: 4px; background: var(--bg-s2); overflow: hidden; }
.zs-spur, .zs-fuell { display: block; }  /* spans: sonst bleibt die Fuellung 0 breit (Top-Beitraege, Pruefung 2) */
.zs-fuell { height: 100%; border-radius: 4px; background: var(--text-primary); }
.zs-fuell.alt { opacity: 0.32; }

/* ---- Wochen-Satz: Absender oben, Datum klein rechts, Tipp als eigene Zeile (Runde 2, A4) ---- */
.zs-satz-oben { padding: 28px 0; border-bottom: 1px solid var(--line); }
/* Spalte hoechstens etwa 62 Zeichen (G3); Kopf in einer Zeile an der Textkante, Datum grau direkt dahinter (G2) */
.zs-satzblock { display: grid; gap: 12px; max-width: 62ch; }
.zs-satz-kopf { display: flex; align-items: center; gap: 10px; }
.zs-satz-am { margin-left: 8px; font-weight: 400; white-space: nowrap; }
/* ausgeglichener Flattersatz (Wiki flattersatz): keine kurze Schlusszeile im Wochen-Satz */
.zs .zs-satz-text > div { text-wrap: balance; }
.zs-satz-text { display: grid; gap: 8px; font-size: 16px; line-height: 1.55; color: var(--text-primary); }
.zs-tipp b { font-weight: 600; }
.zs-wk-schmal { display: none; }
.zs-einzeilig { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-schild-kurz { display: none; }
/* Startlinie der Follower-Kachel in der Kachelhoehe gemittelt (K7) */
.zs-chart-start { margin-block: auto; }
.zs-initial { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-s2); display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--text-primary); flex: none; }

/* ---- Wie jeder Beitrag ankam: eine Karte, Umschalter je Format, hoechstens zwei Fotoreihen (A5) ---- */
.zs-vergleich { margin-top: 36px; }
.zs-abschnitt { margin: 0 0 16px; display: grid; gap: 6px; }
.zs-abschnitt .zs-meta { max-width: 72ch; }
.zs-bahn { padding: 16px 24px 18px; overflow: hidden; }
.zs-bahn-kopf { display: flex; justify-content: space-between; align-items: center; gap: 4px 16px; flex-wrap: wrap; margin-bottom: 8px; }
.zs-bahn-koerper { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.zs-plot-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.zs-plot-scroll::-webkit-scrollbar { display: none; }
/* Wischbar (Handy, Rueckfall): mit der Maus ziehbar; die Bahn hat 24 px Innenrand, kein Anschnitt am Start (E2) */
.zs-plot-scroll.wischt { cursor: grab; }
.zs-plot-scroll.zieht { cursor: grabbing; user-select: none; }
.zs-plot-scroll.zieht .zs-pin { pointer-events: none; }
.zs-plot { position: relative; min-height: 120px; }
.zs-zone { position: absolute; background: var(--surf-a050, rgba(244,244,244,0.05)); border-radius: var(--zs-r); }
[data-theme="light"] .zs-zone { background: var(--bg-s2); }
.zs-zonel { position: absolute; font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
/* Richtungszeile ueber der Bahn, fest (E3); Pfeil mit Zahl der Beitraege ausserhalb, ohne Rahmen (E2) */
.zs-richtung { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; font-size: 13px; color: var(--text-secondary); }
.zs-richtung:has(.zs-mehr-pfeil) { min-height: 44px; }
.zs-richtung-seite { display: inline-flex; align-items: center; gap: 6px; }
.zs-richtung-seite > .zs-ico { width: 16px; height: 16px; }
.zs-mehr-pfeil { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 0 8px; margin: 0 -8px; border: 0; border-radius: 999px; background: transparent; color: var(--text-primary); font: 600 13px/1 var(--font-body); cursor: pointer; justify-content: center; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.zs-mehr-pfeil .zs-ico { width: 16px; height: 16px; }
.zs-mehr-pfeil:hover { opacity: 0.75; }
.zs-mehr-pfeil:active { transform: scale(0.95); }
[data-theme] .zs-mehr-pfeil:focus-visible { outline: none !important; background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--sel-line); }
/* Zaehlzeile unter der Bahn, ueber alle Beitraege (E4) */
.zs-zaehl { font-size: 13px; line-height: 1.4; color: var(--text-primary); }
/* Bezugslinie "euer Schnitt" 1 px (B11) */
.zs-ref { position: absolute; width: 1px; background: var(--text-primary); }
.zs-tick { position: absolute; width: 1px; background: var(--line); }
.zs-tickl { position: absolute; font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.zs-tickl.eins { color: var(--text-primary); font-weight: 600; }
.zs-pin { position: absolute; padding: 0; border: 1px solid var(--line); background: var(--bg-s2); border-radius: var(--zs-r); overflow: hidden; cursor: pointer; transition: transform var(--dur-fast) var(--ease-out); }
.zs-pin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zs-pin:hover { transform: translateY(-2px); z-index: 3; }
.zs-pin:active { transform: scale(0.97); }
.zs-pin:focus-visible { z-index: 4; }
/* Wert jenseits des Skalenrands: Pfeil nach aussen am Foto (C10) */
.zs-pin-rand { position: absolute; top: 4px; width: 22px; height: 22px; border-radius: 999px; background: #F7F4F2; color: #0A0708; display: grid; place-items: center; }
.zs-pin-rand.rechts { right: 4px; } .zs-pin-rand.links { left: 4px; }
.zs-pin-rand .zs-ico { width: 14px; height: 14px; }
.zs-bahn-satz { margin: -2px 0 6px; max-width: 80ch; }
.zs-jung { display: flex; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
/* Erste Tage: fuenf Felder je Format, fertige als Foto, laufende mit Uhr, der Rest als leere Flaeche */
.zs-erster { display: grid; gap: 20px; padding: 4px 0 2px; }
.zs-erster .zs-satzzeile { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.zs-erster-reihe { display: grid; gap: 10px; }
.zs-erster-kopf { display: flex; gap: 4px 12px; align-items: baseline; flex-wrap: wrap; }
.zs-felder { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.zs-feld { display: grid; gap: 6px; justify-items: center; }
.zs-feld { width: var(--feld, 64px); }
.zs-feld > .zs-meta { white-space: nowrap; }
.zs-feld .zs-pin { position: relative; }
/* leerer Platz (F6): 1 px Kontur, Platznummer klein und grau */
.zs-feld .zs-leerbild { display: grid; place-items: center; border-radius: var(--zs-r); border: 1px solid var(--kontur); font-size: 13px; color: var(--text-muted); }
.zs-pin-uhr { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 999px; background: #F7F4F2; color: #0A0708; display: grid; place-items: center; }
.zs-pin-uhr .zs-ico { width: 16px; height: 16px; }
/* Anzeigen beim Darueberfahren: hell mit 1 px Kontur (C11), nicht als schwarze Blase */
.zs-tip { position: fixed; z-index: 150; pointer-events: none; background: var(--bg-body); color: var(--text-primary); border: 1px solid var(--kontur); font-size: 13px; line-height: 1.4; padding: 7px 11px; border-radius: 12px; max-width: 260px; opacity: 0; transition: opacity 120ms; }
.zs-tip.an { opacity: 1; }
.zs-tip b { font-weight: 600; }

/* ---- Haupt: Logbuch links, Bestwerte und Muster rechts ---- */
.zs-haupt { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px 56px; align-items: start; margin-top: 48px; }
.zs-feed { min-width: 0; }
.zs-seite { display: grid; gap: 0; position: sticky; top: 104px; }
.zs-feed-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 16px; }
.zs-steuer { display: flex; gap: 8px 16px; align-items: center; justify-content: space-between; min-width: 0; }
/* Navigation ohne Rahmen (Filter, Format): ungewaehlt grau, gewaehlt Tinte auf heller Flaeche (A6) */
.zs-nav { display: flex; gap: 2px; min-width: 0; }
.zs-filter { flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
.zs-filter::-webkit-scrollbar { display: none; }
.zs-nav-k { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary); font: 600 16px/1 var(--font-body); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.zs-nav-k small { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.zs-nav-k:hover { color: var(--text-primary); }
.zs-nav-k:active { transform: scale(0.97); }
.zs-nav-k.an { background: var(--sel-bg); color: var(--text-primary); }
.zs-nav-k.an small { color: var(--text-secondary); }
[data-theme] .zs-nav-k:focus-visible, [data-theme] .zs-schalter-k:focus-visible { outline: none !important; background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--sel-line); color: var(--text-primary); }
/* Ansicht: Zweier-Schalter nur mit Symbolen */
/* ohne aeussere Kontur, nur die gewaehlte Seite mit leichter Flaeche (H3) */
.zs-schalter { display: inline-flex; gap: 2px; flex: none; }
.zs-schalter-k { width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary); display: inline-grid; place-items: center; cursor: pointer; transition: transform var(--dur-fast) var(--ease-out); }
.zs-schalter-k:hover { color: var(--text-primary); }
.zs-schalter-k:active { transform: scale(0.95); }
.zs-schalter-k.an { background: var(--sel-bg); color: var(--text-primary); }

/* Hinweis rahmenlos und ohne Fuellung, Haarlinie oben und unten (K4) */
.zs-einladung { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin-bottom: 24px; display: flex; gap: 14px; align-items: flex-start; }
.zs-einladung .zs-ico { margin-top: 2px; }
.zs-woche { margin-bottom: 32px; }
.zs-woche-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.zs-woche .zs-satz { padding: 4px 0 20px; }
.zs-karten { display: grid; gap: 12px; }
.zs-mehr { display: flex; justify-content: center; margin-top: 8px; }

/* Karte (Liste): Bild mindestens 120 px breit */
.zs-bk { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; width: 100%; padding: 16px; text-align: left; color: inherit; cursor: pointer; transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); font: inherit; }
.zs-bk:hover { border-color: var(--text-primary); }
.zs-bk:active { transform: scale(0.995); }
.zs-bild { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: var(--zs-r); overflow: hidden; background: var(--bg-s2); position: relative; }
.zs-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zs-bild .zs-ohne { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted); }
.zs-bk-mitte { display: grid; gap: 6px; min-width: 0; padding-top: 2px; align-content: start; }
.zs-bk-mitte .zs-zahlen { margin-top: 6px; }
.zs-bk-kopf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
/* Titel bis zu zwei Zeilen (D1), der volle Text steht im Fenster */
.zs-bk-titel { font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zs-schild { display: table; justify-self: start; white-space: nowrap; max-width: 100%; margin-top: 4px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--kontur); font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--text-primary); }
.zs-bk-meta { display: flex; gap: 6px; align-items: flex-start; flex-wrap: nowrap; font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
.zs-bk-meta > span:last-child { min-width: 0; }
.zs-bk-meta .zs-ico { width: 16px; height: 16px; margin-top: 1px; color: var(--text-secondary); }
.zs-zahlen { display: flex; gap: 8px 28px; flex-wrap: wrap; margin-top: 2px; }
.zs-zahlen .z { display: grid; }
.zs-zahlen b { font-weight: 600; font-size: 16px; line-height: 1.25; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.zs-zahlen i { font-style: normal; font-size: 13px; color: var(--text-secondary); }
.zs-urteil { display: flex; gap: 8px; align-items: center; font-size: 16px; line-height: 1.3; color: var(--text-primary); }
.zs-urteil.fett { font-weight: 600; }
/* "laeuft noch" leiser als ein Urteil: klein, grau, Uhr statt Pfeil */
.zs-urteil.leise { font-size: 13px; color: var(--text-secondary); gap: 6px; }
.zs-urteil .zs-ico { width: 18px; height: 18px; }
.zs-urteil.leise .zs-ico { width: 16px; height: 16px; }
/* Bilder-Ansicht: Urteil als Schild auf dem Foto, Creme mit Tinte (nie farbig) */
.zs-foto-schild { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 10px; border-radius: 999px; background: #F7F4F2; font-size: 13px; line-height: 1.2; }
.zs-foto-schild, .zs-foto-schild.leise { color: #0A0708; }
.zs-foto-schild .zs-ico { width: 16px; height: 16px; }

/* Bilder (Raster, aus A) */
.zs-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
.zs-kachel { display: grid; gap: 8px; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; border-radius: var(--zs-r); font: inherit; }
.zs-kachel .zs-bild img { transition: transform var(--dur-base) var(--ease-out); }
.zs-kachel:hover .zs-bild img { transform: scale(1.025); }
.zs-kachel:active .zs-bild { transform: scale(0.99); }
.zs-chip { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 999px; background: var(--overlay-bg, rgba(10,7,8,0.72)); color: #F7F4F2; display: grid; place-items: center; }
.zs-chip .zs-ico { width: 16px; height: 16px; }
/* Bilder-Ansicht: eine Zeile unter dem Foto (D6) */
.zs-k-zeile { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-k-zeile b { font-weight: 600; font-size: 16px; color: var(--text-primary); font-variant-numeric: tabular-nums; }

/* Seite: Bestwerte, Muster, rahmenlos, getrennt durch eine Haarlinie (A1) */
.zs-seitenkarte { padding: 0; }
.zs-seite .zs-muster { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.zs-best-liste { display: grid; margin-top: 8px; }
.zs-bw { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 14px; align-items: center; padding: 14px 0; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; text-align: left; cursor: pointer; width: 100%; font: inherit; }
.zs-bw:first-child { border-top: 0; }
.zs-bw:hover .zs-bw-label { opacity: 0.75; }
.zs-bw:active { transform: scale(0.99); }
.zs-bw-label { font-weight: 600; font-size: 16px; color: var(--text-primary); }
.zs-bw-wert { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.zs-bw-zahl { font-weight: 600; font-size: 16px; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.zs-bw-wert .einheit { font-size: 13px; color: var(--text-secondary); }
.zs-bw-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Foto-Ecken 20 px (B6): ab 72 px liest die Ecke als Ecke */
.zs-bw .zs-bild { width: 72px; aspect-ratio: 1; }
/* Muster: Bereich klein und grau, die Aussage vorn (Semibold), Verglichen darunter (D4) */
.zs-reihe { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.zs-reihe-name { font-weight: 600; font-size: 16px; color: var(--text-primary); }
.zs-muster > h2 + .zs-reihe, .zs-muster > h2 + .zs-aussage { margin-top: 8px; }
.zs-muster > h2 + .zs-reihe { border-top: 0; }
.zs-aussage { font-size: 16px; line-height: 1.45; color: var(--text-primary); }
.zs-aussage.fett { font-weight: 600; }
.zs-aussage.leise { color: var(--text-secondary); }
.zs-bald .zs-aussage { color: var(--text-primary); }
.zs-bald-fortschritt { display: grid; gap: 8px; margin: 14px 0 6px; }
.zs-mehr-muster { border-top: 1px solid var(--line); }
.zs-mehr-muster > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 16px; color: var(--text-primary); cursor: pointer; border-radius: 999px; transition: opacity var(--dur-fast); }
.zs-mehr-muster > summary::-webkit-details-marker { display: none; }
.zs-mehr-muster > summary:hover { opacity: 0.75; }
.zs-mehr-muster > summary:active { opacity: 0.6; }
[data-theme] .zs-mehr-muster > summary:focus-visible { outline: none !important; background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--sel-line); padding: 0 12px; }
.zs-mehr-muster > summary .zs-ico { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.zs-mehr-muster[open] > summary .zs-ico { transform: rotate(90deg); }
.zs-muster-fuss { margin-top: 12px; }
/* "So lesen wir das" ueber der Vergleichs-Karte: ohne Linie, gleiche Form */
.zs-lesen { border-top: 0; }
.zs-lesen > .zs-meta { max-width: 72ch; padding-bottom: 4px; }
.zs-richtung[hidden] { display: none; }
.zs-reihe .zs-spur { margin-top: 2px; }

/* ---- Beitrag-Fenster (aus C, Inhalt aus B) ---- */
.zs-scrim { position: fixed; inset: 0; z-index: 140; background: var(--overlay-bg, rgba(10,7,8,0.72)); }
.zs-dlg { position: fixed; z-index: 141; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(1080px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); overflow: auto; background: var(--bg-body, #0A0708); border: 1px solid var(--line); border-radius: var(--zs-r); animation: zs-auf var(--dur-base) var(--ease-out); overscroll-behavior: contain; }
@keyframes zs-auf { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
.zs-dlg-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 14px 20px; background: var(--bg-body); border-bottom: 1px solid var(--line); }
.zs-dlg-bar .zs-meta { margin-left: 6px; }
.zs-dlg-bar .luecke { flex: 1; }
.zs-dlg-in { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; padding: 24px 28px 32px; }
.zs-dlg-foto { display: grid; gap: 14px; align-content: start; }
.zs-dlg-foto a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--text-primary); min-height: 44px; }
.zs-dlg-foto a:hover { opacity: 0.75; }
.zs-dlg-foto a:active { opacity: 0.6; }
.zs-dlg-caption { white-space: pre-line; font-size: 16px; line-height: 1.5; max-height: 18em; overflow: auto; }
.zs-dlg-plan { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.zs-dlg-plan .zs-fakten div { grid-template-columns: 104px minmax(0, 1fr); }
.zs-kurve-satz { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--text-primary); }
.zs-dlg-text { display: grid; gap: 24px; min-width: 0; align-content: start; }
.zs-dlg-titel { font-size: 16px !important; line-height: 1.3 !important; }
.zs-erreicht { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.zs-erreicht .zs-tinte { font-size: 16px; }
.zs-vergleich-satz { font-size: 16px; line-height: 1.5; color: var(--text-primary); margin-top: 8px; }
.zs-raster2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
.zs-legende { display: flex; gap: 6px 20px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--text-secondary); }
.zs-legende span { display: inline-flex; align-items: center; gap: 8px; }
.zs-legende svg { width: 28px; height: 8px; }
.zs-ohne-verlauf { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-s2); border-radius: var(--zs-r); padding: 16px 18px; margin-top: 10px; }
.zs-reakt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 10px 0 0; }
.zs-reakt div { display: flex; flex-direction: column; }
.zs-reakt dt { font-size: 13px; color: var(--text-secondary); order: 2; }
.zs-reakt dd { margin: 0; font-weight: 600; font-size: 16px; color: var(--text-primary); order: 1; font-variant-numeric: tabular-nums; }
.zs-zuschau .zs-spur { margin-top: 10px; }
.zs-fakten { margin: 0; display: grid; gap: 12px; }
.zs-fakten div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.zs-fakten dt { font-size: 13px; color: var(--text-secondary); }
.zs-fakten dd { margin: 0; font-weight: 600; color: var(--text-primary); }
.zs-ziel { display: flex; gap: 10px; align-items: flex-start; }
.zs-ziel .zeichen { width: 12px; height: 12px; border-radius: 50%; background: var(--zs-nachtblau); flex: none; margin-top: 6px; }

/* ---- Diagramme ---- */
.zs-chart { position: relative; width: 100%; }
.zs-chart svg { display: block; overflow: visible; max-width: 100%; touch-action: pan-y; }
/* Kein Fokusring am Diagramm (B5): Fokus wie bei den Knoepfen ueber helle Flaeche und Kontur */
[data-theme] .zs-chart svg:focus, [data-theme] .zs-chart svg:focus-visible { outline: none !important; }
.zs-chart:has(svg:focus-visible) { background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--sel-line); border-radius: 12px; }
.zs-chart .gitter { stroke: var(--line); stroke-width: 1; }
.zs-chart .achse { fill: var(--text-muted); font: 13px var(--font-body); }
.zs-chart .endwert { fill: var(--text-primary); font: 600 13px var(--font-body); paint-order: stroke; stroke: var(--bg-body); stroke-width: 5px; stroke-linejoin: round; }
.zs-chart .linie { fill: none; stroke: var(--text-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zs-chart .linie.schnitt { stroke: var(--text-muted); stroke-width: 1.5; stroke-dasharray: 5 5; }
.zs-chart .flaeche { fill: var(--text-primary); fill-opacity: 0.06; }
.zs-chart .punkt { fill: var(--text-primary); stroke: var(--bg-body); stroke-width: 2; }
.zs-chart .punkt.schnitt { fill: var(--text-muted); }
.zs-chart .faden { stroke: var(--kontur); stroke-width: 1; }
.zs-chart .start { stroke: var(--kontur); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.zs-chart .tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--bg-body); color: var(--text-primary); border: 1px solid var(--kontur); font-size: 13px; line-height: 1.35; padding: 6px 10px; border-radius: 12px; pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity 120ms; z-index: 5; }
.zs-chart .tip.an { opacity: 1; }
.zs-chart .tip b { font-weight: 600; }

/* ---- Team (erste Fassung, Gestaltung ungeprueft) ---- */
.zs-team { padding: 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.zs-team textarea { width: 100%; min-height: 130px; padding: 12px 14px; font: 16px/1.5 var(--font-body); background: var(--input-bg); color: var(--text-primary); border: 1px solid var(--kontur); resize: vertical; }
.zs-fakten-woche { display: grid; gap: 6px; }
.zs-fakten-woche ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.zs-fakten-woche b { font-weight: 600; color: var(--text-primary); }
.zs-regel { color: var(--text-primary); font-weight: 600; }
.zs-team .vorschlag { border-left: 2px solid var(--kontur); padding: 4px 0 4px 14px; display: grid; gap: 8px; }
.zs-zeilen { display: flex; gap: 10px 20px; flex-wrap: wrap; align-items: center; }
.zs-team-kopf, .zs-titelblock { display: grid; gap: 6px; }
/* zweite Aktion als Textlink in Semibold, ohne Rahmen und Unterstrich (G7) */
.zs-textlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; border-radius: 999px; background: none; color: var(--text-primary); font: 600 16px/1 var(--font-body); cursor: pointer; transition: opacity var(--dur-fast); }
.zs-textlink:hover { opacity: 0.7; }
.zs-textlink:active { opacity: 0.55; }
[data-theme] .zs-textlink:focus-visible { outline: none !important; background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--sel-line); padding: 0 12px; }
.zs-fakten-woche li, #zs-satz-hilfe { text-wrap: pretty; }
.zs-tipp-label, .zs-tipp-text { display: block; }
.zs-tipp-text { text-wrap: pretty; margin-bottom: 4px; }
.zs-status { font-size: 13px; color: var(--text-secondary); }
.zs-ungeprueft { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--kontur); font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.zs-liste { display: grid; }
.zs-teamliste { padding-top: 8px; }
/* Team: Konten verbinden (Vermittler) */
.zs-vm-liste { display: grid; gap: 4px; }
.zs-vm-zeile { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.zs-vm-text { display: grid; gap: 4px; min-width: 0; flex: 1 1 260px; }
.zs-vm-name { font-weight: 600; color: var(--text-primary); }
.zs-vm-fehler { color: var(--text-secondary); }
.zs-firmawahl select { min-height: 44px; padding: 0 14px; font: 16px/1 var(--font-body); background: var(--input-bg); color: var(--text-primary); border: 1px solid var(--kontur); border-radius: 999px; }
.zs-liste-kopf, .zs-liste-zeile { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)) 44px; gap: 16px; align-items: center; padding: 14px 4px; }
.zs-liste-kopf { border-bottom: 1px solid var(--line); align-items: end; }
.zs-liste-kopf .k { display: block; font-weight: 600; font-size: 13px; color: var(--text-primary); }
.zs-liste-kopf .z { display: block; font-size: 13px; color: var(--text-muted); }
/* feste Zeilenhoehe: jede Zeile zwei Textzeilen, nichts springt (D7) */
.zs-liste-zeile { border-bottom: 1px solid var(--line); color: inherit; min-height: 76px; }
.zs-liste-zeile > span { min-width: 0; }
.zs-liste-zeile .s, .zs-liste-zeile .w { display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
/* "noch nicht gemessen" umbrechen statt kuerzen (G7), alle Zeilen gleich hoch */
.zs-liste-zeile .umbruch { white-space: normal; overflow: visible; }
@media (min-width: 768px) { .zs-liste-zeile { height: 104px; } }
.zs-liste-zeile:hover { background: var(--surf-a030); }
.zs-liste-zeile:active { background: var(--surf-a050); }
.zs-liste-zeile .w { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.zs-liste-zeile .s { font-size: 13px; color: var(--text-secondary); }
/* "offen" ist das eine Signal der Liste: Punkt in Schriftfarbe davor (kein Rot) */
.zs-offen::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-primary); margin-right: 8px; vertical-align: 2px; }

/* Team-Liste: kein kraeftiger Schein direkt hinter der Tabelle (B9) */
html.zs-schein-leise #blob-bg-wrapper { opacity: 0.3; }

/* ---- Zustaende ---- */
.zs-laden { display: grid; gap: 16px; }
.zs-laden div { background: var(--surf-a040); border-radius: var(--zs-r); }
.zs-leer { padding: 32px; display: grid; gap: 12px; max-width: 640px; }

/* ---- Handy und Tablet ---- */
@media (max-width: 1099px) {
  .zs-haupt { grid-template-columns: minmax(0, 1fr); }
  .zs-seite { display: contents; position: static; }
  .zs-best { order: 1; } .zs-feed { order: 2; } .zs-muster { order: 3; }
  /* Bestwerte bei 1024: zwei mal zwei im Seitenraster, Rand wie alle Inhalte, keine Wischbahn (F1) */
  .zs-best .zs-best-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin-top: 8px; }
  .zs-best .zs-bw:nth-child(2) { border-top: 0; }
  .zs-dlg-in { grid-template-columns: 220px minmax(0, 1fr); }
  .zs-raster2 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
  .zs-titel { font-size: 40px !important; }
  .zs-num.gross { font-size: 40px; }
  .zs-kopf { align-items: flex-start; }
  .zs-konto { text-align: left; justify-items: start; }
  .zs-konten { justify-content: flex-start; }
  .zs-messen { margin-top: 14px; padding-top: 12px; }
  .zs-satz-oben, .zs-team { padding: 24px 0; }
  .zs-vergleich, .zs-haupt { margin-top: 40px; }
  .zs-bahn { padding: 14px 16px 16px; }
  /* Logbuch-Kopf am Handy: Titel und Ansicht in einer Zeile, darunter der Filter in einer Zeile */
  .zs-feed-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .zs-steuer { display: contents; }
  .zs-filter { grid-column: 1 / -1; grid-row: 2; }
  .zs-schalter { grid-column: 2; grid-row: 1; }
  /* Handy: untereinander wie am Desktop, Foto rechts 56 px, nichts abgeschnitten (F1) */
  .zs-best .zs-best-liste { grid-template-columns: minmax(0, 1fr); }
  .zs-best .zs-bw:nth-child(2) { border-top: 1px solid var(--line); }
  .zs-bw { grid-template-columns: minmax(0, 1fr) 56px; }
  .zs-bw .zs-bild { width: 56px; }
  /* Karte am Handy: Bild mit Titel und Datum daneben, Zahlen und Urteil darunter ueber die volle Breite */
  /* Handy-Karte kompakter (H1): Foto 96 px, Urteil und Art je eine Zeile, Uhrzeit nur im Fenster */
  .zs-bk { grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; row-gap: 12px; padding: 12px; }
  .zs-bk .zs-nur-breit { display: none; }
  .zs-bk .zs-gross-anfang::first-letter { text-transform: uppercase; }
  .zs-bk .zs-urteil > span:last-child, .zs-bk-meta > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Handy-Fenster (H2): Foto, Titel, Zahl, Urteil, Kurve mit Satz, dann Link, Text und Plan zuletzt */
  .zs-dlg-in { display: flex; flex-direction: column; }
  .zs-dlg-foto, .zs-dlg-text { display: contents; }
  .zs-dlg-foto > .zs-bild { order: 1; width: 160px; }
  .zs-dlg-kopf { order: 2; }
  .zs-dlg-zahl { order: 3; }
  .zs-dlg-text > .zs-raster2 { order: 4; }
  .zs-dlg-foto > a { order: 5; }
  .zs-dlg-caption { order: 6; }
  .zs-dlg-plan { order: 7; }
  .zs-bk > .zs-bild { grid-column: 1; grid-row: 1; }
  .zs-bk-mitte { display: contents; }
  .zs-bk-kopf { grid-column: 2; grid-row: 1; align-self: center; }
  .zs-bk .zs-zahlen { grid-column: 1 / -1; grid-row: 2; margin: 0 4px; }
  .zs-bk .zs-schild { grid-column: 1 / -1; grid-row: 3; margin: 0 4px 2px; }
  .zs-zahlen { gap: 6px 18px; }
  .zs-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .zs-k-zeile { white-space: normal; }
  /* Wochenkopf am Handy zwei Zeilen ohne Trennpunkt (K3) */
  .zs-wk-breit { display: none; }
  .zs-wk-schmal, .zs-wk-urteile { display: block; }
  /* Schild auf dem Foto am Handy kurz, einzeilig, alle gleich hoch (K5) */
  .zs-foto-schild { white-space: nowrap; height: 28px; padding: 0 10px; }
  .zs-schild-lang { display: none; }
  .zs-schild-kurz { display: inline; }
  /* Wochen-Saetze am Handy: mehr als sechs Zeilen balanciert Chrome nicht, dann "pretty" gegen die kurze Schlusszeile (M3) */
  .zs .zs-satz-text > div { text-wrap: pretty; }
  /* erster Tag am Handy (M2): keine Beschriftung unter laufenden und leeren Feldern */
  .zs-feld.laeuft > .zs-meta, .zs-feld.leer > .zs-meta { display: none; }
  /* Team-Liste am Handy: Zellen oben buendig, lange Zelle ueber die volle Breite, je Zelle hoechstens zwei Zeilen (K8) */
  .zs-liste-zeile { align-items: start; grid-auto-flow: row dense; }
  .zs-liste-zeile > [data-breit] { grid-column: 1 / -1; }
  .zs-liste-zeile .w, .zs-liste-zeile .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .zs-k-punkt { display: none; }
  .zs-k-tag { display: block; font-size: 13px; color: var(--text-secondary); }
  .zs-dlg { top: auto; bottom: 0; left: 0; right: 0; transform: none; width: 100%; max-height: calc(100dvh - 24px); border-radius: var(--zs-r) var(--zs-r) 0 0; animation-name: zs-auf-handy; }
  @keyframes zs-auf-handy { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .zs-dlg-bar { padding: 10px 12px; }
  .zs-dlg-in { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 16px 16px 28px; }

  .zs-fakten div { grid-template-columns: 104px minmax(0, 1fr); }
  .zs-liste-kopf { display: none; }
  /* Konto-Bloecke ohne Innenabstand, Kante buendig mit ZAHLEN (M8) */
  .zs-liste-zeile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; padding: 16px 0; }
  .zs-liste-zeile > :first-child { grid-column: 1 / -1; }
  .zs-liste-zeile > :last-child { display: none; }
  .zs-liste-zeile [data-label]::before { content: attr(data-label); display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .zs-dlg { animation: none; }
  .zs-pille, .zs-knopf, .zs-ibtn, .zs-bk, .zs-pin, .zs-kachel .zs-bild img, .zs-bw { transition: none; }
}

/* Herkunft der Zahlen (Kundin): eine ruhige Zeile ganz unten */
.zs-herkunft { max-width: 72ch; margin: 40px 0 0; }
/* Handy: die untere Leiste (fest, mit Tasche in der Mitte) darf nie den letzten Satz einer Karte verdecken */
@media (max-width: 767px) {
  #zs-main { padding-bottom: calc(168px + env(safe-area-inset-bottom, 0px)); }
}

/* Team-Liste: Konten eines Kunden stehen unter einem Kopf mit dem Kundennamen */
.zs-gruppe { padding: 22px 4px 6px; border-bottom: 1px solid var(--line); }
.zs-gruppe-name { font-weight: 600; font-size: 16px; color: var(--text-primary); }
.zs-liste-zeile .zs-plat { font-weight: 600; }
.zs-liste > .zs-gruppe ~ .zs-gruppe { margin-top: 0; }
.zs-nav-k.grau { opacity: .55; }
.zs-nav-k.grau.an { opacity: .8; }
.zs-vm-getrennt { font-size: 13px; color: var(--text-muted); }
@media (max-width: 767px) {
  .zs-gruppe { padding-left: 0; padding-right: 0; }
  .zs-liste-zeile .w.umbruch, .zs-liste-zeile .s.umbruch { white-space: normal; overflow: visible; text-overflow: clip; }
}


/* ============ Wachstum: grosse Kennzahl mit Flaechen-Graph, darunter kleine Graphen ============
   Ein Akzent je Seite: die Linie des grossen Graphen in viel-Liebe-Rot (Nicht-Text-Element), alles andere Tinte. */
.zs-held-karte { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 16px 40px; padding: 28px 32px 24px; background: var(--bg-body); border: 1px solid var(--kontur); border-radius: var(--zs-r); margin-bottom: 16px; }
.zs-held-kopf { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.zs-held-zahl { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.zs-held-zahl .zs-num { font-size: 48px; }
.zs-held-label { font-weight: 600; color: var(--text-secondary); }
.zs-kpis { display: grid; gap: 14px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.zs-kpi { display: grid; gap: 2px; }
.zs-kpi-wert { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.zs-wandel { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 10px 0 6px; border-radius: 999px; border: 1px solid var(--kontur); font-size: 13px; font-weight: 600; line-height: 1; color: var(--text-primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.zs-wandel .zs-ico { width: 16px; height: 16px; }
.zs-wandel-rest { font-weight: 400; color: var(--text-muted); margin-left: 2px; }
.zs-held-chart { align-self: end; min-height: 220px; }
.zs-held-chart .linie { stroke: var(--zs-akzent); stroke-width: 3; }
.zs-held-chart .punkt { fill: var(--zs-akzent); stroke: var(--bg-body); stroke-width: 3; }
.zs-held-chart .endwert { fill: var(--text-primary); }
.zs-chart .leerzeile { fill: var(--text-secondary); font: 600 13px var(--font-body); }
.zs-held-karte[data-art="start"] .zs-held-chart .start { stroke: var(--zs-akzent); stroke-opacity: 0.7; }

.zs-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 8px; }
.zs-minis[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.zs-minis[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zs-mini { display: grid; align-content: start; gap: 10px; padding: 20px 22px 18px; background: var(--bg-body); border: 1px solid var(--kontur); border-radius: var(--zs-r); min-width: 0; }
.zs-mini-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.zs-mini-wert { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.zs-num.mittel { font-size: 24px; }
.zs-mini-chart .balken { fill: var(--text-primary); fill-opacity: 0.45; }  /* mind. 3:1 zur Flaeche (WCAG 1.4.11), hell und dunkel */
.zs-mini-chart .balken.jetzt { fill-opacity: 1; }
.zs-mini-chart .balken.laeuft { fill: none; stroke: var(--text-primary); stroke-opacity: 0.55; stroke-width: 1.5; stroke-dasharray: 4 4; }
.zs-mini-chart .markierung { fill: var(--text-primary); fill-opacity: 0.07; }
.zs-mini-chart svg { overflow: visible; }
.zs-top-liste { display: grid; gap: 2px; }
.zs-top-zeile { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 12px; transition: opacity var(--dur-fast, 160ms); }
.zs-top-zeile:hover { opacity: 0.8; }
.zs-top-zeile:active { opacity: 0.6; }
.zs-top-bild { width: 40px; aspect-ratio: 1; border-radius: 10px; }
.zs-top-mitte { display: grid; gap: 6px; min-width: 0; }
.zs-top-titel { font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-top .zs-spur { height: 6px; }
.zs-top-zahl { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.zs-haupt.ohne-seite { grid-template-columns: minmax(0, 1fr); }
.zs-vergleich { margin-top: 40px; }

@media (max-width: 1099px) {
  .zs-minis, .zs-minis[data-n="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zs-minis .zs-top { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .zs-held-zahl .zs-num { font-size: 40px; }
  .zs-held-karte { grid-template-columns: minmax(0, 1fr); padding: 22px 20px 18px; }
  .zs-kpis { margin-top: 4px; padding-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); order: 3; }
  .zs-held-karte .zs-held-kopf { display: contents; }
  .zs-held-karte .zs-held-label { order: 0; }
  .zs-held-karte .zs-held-zahl { order: 1; }
  .zs-held-karte .zs-held-kopf > .zs-meta:not(.zs-held-label) { order: 2; }
  .zs-held-chart { order: 2; min-height: 200px; }
}
@media (max-width: 767px) {
  .zs-minis, .zs-minis[data-n="2"], .zs-minis[data-n="3"] { grid-template-columns: minmax(0, 1fr); }
  .zs-mini { padding: 18px 18px 16px; }
}
.zs-fakten-klappe { border-top: 0; }
.zs-fakten-klappe[open] { display: grid; gap: 12px; }
.zs-satz-zu { border-top: 0; margin-top: 4px; }
.zs-satz-zu[open] { display: grid; gap: 10px; }

/* Chip in Worten: ohne Pfeil, etwas mehr Luft links */
.zs-wandel-wort { padding: 0 10px; }
/* laufende Woche: kleine Beschriftung über dem gestrichelten Balken */
.zs-mini-chart .laeuft-label { fill: var(--text-muted); font: 500 13px var(--font-body); }
/* Anzeige braucht den Platz der Wertbeschriftung: sie tritt solange zurück */
.zs-chart svg.ohne-wert .endwert, .zs-chart svg.ohne-wert .laeuft-label { visibility: hidden; }
