/* N3 (senior-dev-Review r2 06.10.): App-Regeln mit display:flex/block heben das
   Standard-Ausblenden von [hidden] auf — gemessen in Chromium: alle Ansichten gleichzeitig. */
[hidden]{display:none !important}
/* apps/kundenstatus/static/app.css — Gestaltung 1:1 nach den Entwuerfen
 * (Main/Entscheidung/Erledigt/Zugang/Inaktiv.html, Review 06.10.2026).
 * ABWEICHUNG VOM ENTWURF (bewusst, dokumentiert): Figtree ist NICHT lokal
 * mitgeliefert (Bauplan §5 erlaubt ausdruecklich "Figtree nur wenn lokal
 * als Datei mitgeliefert, sonst Systemschrift" — eine Google-Fonts-
 * Verbindung vom Kunden-Browser aus waere ein drittes Netzwerkziel, das
 * dieser Dienst bewusst nicht hat). Systemschrift-Stack stattdessen.
 * Markenfarben kommen als CSS-Variablen aus app_kundenlink.marke (per
 * JS gesetzt, s. app.js) — --brand/--brand-deep/--brand-wash sind daher
 * hier NUR Vorgabewerte (GEIST-Navy), nie die einzige Quelle.
 */
/* Figtree lokal ausgeliefert (CSP default-src 'self', keine Verbindung zu Google vom Kunden aus).
   Schrift: SIL Open Font License 1.1. Ein variabler Schnitt je Zeichensatz deckt 400–800 ab. */
@font-face { font-family: Figtree; font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/figtree-0.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/figtree-1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.stnote { margin-top: 6px; font-size: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: #363c42; }
body { margin: 0; background: #e9edf2; }

.phone {
  --ink: #1c2024; --muted: #5d6670; --soft: #8a929b; --line: #e3e7ec; --bg: #f3f5f8;
  --card: #ffffff; --brand: #2B61A1; --brand-deep: #1C4A80; --brand-wash: #e9f0f8;
  width: 100%; max-width: 480px; min-height: 100vh; margin: 0 auto;
  background: var(--bg); color: var(--ink);
  font-family: Figtree, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 15px; line-height: 1.5; box-sizing: border-box;
  display: flex; flex-direction: column;
}
.phone * { box-sizing: border-box; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.logo { height: 40px; width: auto; display: block; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wrap { padding: 22px 20px 28px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.eyebrow { margin: 0; font-size: 13px; color: var(--muted); font-weight: 500; }
h1 { margin: 2px 0 0; font-size: 27px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
h2 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
p { margin: 0; }
.card { background: var(--card); border-radius: 18px; padding: 20px; box-shadow: 0 1px 2px rgba(28,32,36,.06), 0 8px 24px rgba(28,32,36,.06); display: flex; flex-direction: column; gap: 12px; }
.bar { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 5px; }
.seg { height: 6px; border-radius: 3px; background: var(--line); }
.seg.done { background: var(--ink); }
.seg.cur { background: var(--brand); }
.nowlabel { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brand-deep); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px var(--brand-wash); }
.lead { color: #363c42; }
.next { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #363c42; }
.next b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.arrow { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--muted); }
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.verlauf-hinweis { margin: -4px 0 8px; }
.st { position: relative; padding-bottom: 18px; }
.st:last-child { padding-bottom: 0; }
.st::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.st.done::before { background: var(--ink); }
.st:last-child::before { display: none; }
/* E2 06.10.2026 abends (Tom: jeder Schritt anklickbar): der komplette
 * Kopf (Punkt+Titel+Meta) ist jetzt ein <button> statt reinem Text —
 * `.st` selbst traegt nur noch position:relative (fuer die Verbindungs-
 * linie ::before), das Grid sitzt auf `.st-row`. */
.st-row { appearance: none; display: grid; grid-template-columns: 28px 1fr 18px; column-gap: 14px; align-items: start; width: 100%; background: none; border: 0; margin: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.st-row:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 8px; }
.chev { flex: none; margin-top: 7px; color: var(--soft); transition: transform .15s ease; }
.st-row[aria-expanded="true"] .chev { transform: rotate(90deg); color: var(--muted); }
.st-detail { margin: 10px 0 0 42px; display: flex; flex-direction: column; gap: 10px; }
.st-detail[hidden] { display: none; }
.dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--card); border: 2px solid var(--line); color: var(--soft); font-size: 12px; font-weight: 700; position: relative; z-index: 1; }
.st.done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.st.cur .dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-wash); }
.st.ask .dot { border-color: var(--brand); color: var(--brand-deep); border-style: dashed; }
.sttitle { font-weight: 700; font-size: 15px; line-height: 1.3; padding-top: 3px; }
.st.open .sttitle { color: var(--muted); font-weight: 600; }
.stmeta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--brand-wash); color: var(--brand-deep); margin-top: 6px; width: fit-content; }
/* E2 06.10.2026 abends, zusammengefuehrt 07.10. (UX-Review FYI): der Chip fuer
 * einen kuenftigen Entscheidungsschritt nutzt bewusst dieselbe freundliche
 * Farbe wie .chip (KEINE Warnfarbe wie .hinweis amber/orange — "Sie können
 * schon handeln" soll nicht wie eine Warnung wirken). .chip-future bleibt als
 * Markup-Hook erhalten (JS/Template setzen die Klasse), setzt aber keine
 * eigenen Werte mehr, weil sie mit .chip identisch waren. */
.chip-future { }
.hinweis-future { background: var(--brand-wash); border-color: var(--brand); color: var(--brand-deep); }
.help { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.help-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tel { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.btn { appearance: none; border: 0; font: inherit; font-weight: 700; font-size: 16px; border-radius: 14px; min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--brand); color: #fff; width: 100%; }
.btn.primary:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: var(--bg); color: var(--ink); min-height: 44px; font-size: 15px; }
.foot { font-size: 12px; color: var(--soft); text-align: center; line-height: 1.5; padding: 4px 8px 0; }
.q { font-size: 19px; font-weight: 800; line-height: 1.25; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { appearance: none; font: inherit; text-align: left; width: 100%; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 14px 14px; display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; cursor: pointer; color: var(--ink); }
.opt.on { border-color: var(--brand); background: #fbfdff; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b9bfc5; margin-top: 1px; display: flex; align-items: center; justify-content: center; }
.opt.on .radio { border-color: var(--brand); }
.opt.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.optt { font-weight: 700; font-size: 16px; line-height: 1.3; }
.optd { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.pills { display: flex; gap: 8px; }
.pill { appearance: none; font: inherit; font-weight: 600; font-size: 14px; min-height: 44px; padding: 0 14px; flex: 1; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.pill.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.small { font-size: 13px; color: var(--muted); }
.collapsed { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 600; }
.checks { display: flex; gap: 4px; }
.mini { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.center { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 28px 24px; }
.lockic { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-wash); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; }
.muted-ic { width: 64px; height: 64px; border-radius: 50%; background: #e9e7e3; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.pin { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 260px; }
.pin input { width: 100%; height: 64px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); text-align: center; font: inherit; font-size: 28px; font-weight: 800; color: var(--ink); }
.pin input.err { border-color: #c4121b; }
label.lbl { font-size: 14px; font-weight: 700; }
.why { display: flex; gap: 10px; font-size: 13px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.big-ok { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.focus-visible:focus-visible, button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* M3 (senior-dev+ux-Review 06.10.): Hilfsklassen statt style="" — die CSP
 * (default-src 'self', server.py _sicherheits_header) blockiert sonst jedes
 * inline style="" im Browser, ausgerechnet auf der einzigen Seite, die nie
 * kaputt aussehen darf. Sichtbarkeit, die app.js umschaltet, läuft über
 * das native HTML-Attribut `hidden` (UA-Stylesheet `[hidden]{display:none}`
 * — KEINE eigene .hidden-Klasse hier, die würde beim Wieder-Einblenden per
 * `el.style.display=''` nicht weichen, weil eine Klasse dieselbe
 * Spezifität wie .center/.wrap hat und die später deklarierte gewinnt). */
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-14 { display: flex; flex-direction: column; gap: 14px; }
.icon-flex-none { flex: none; }
.err-text { color: #c4121b; }
.card-start { align-items: flex-start; gap: 14px; }
.inline-block { display: block; }
.lbl-sm { font-weight: 700; font-size: 14px; }
.bold { font-weight: 700; }

/* E1 06.10.2026 (Bauplan-Editor §9/§10): Unterschritte, Dokumentliste,
 * Hinweisbox — Klassen 1:1 aus dem Entwurf scratch statuslink/html/
 * Geist-Unterschritte.html übernommen (kein neues Farbschema erfunden). */
.subs { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.sub { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; font-size: 13.5px; }
.sub .ic { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.sub.ok .ic { background: var(--ink); color: #fff; }
.sub.wait .ic { background: #fff3e0; color: #a35a00; }
.sub.open .ic { border: 2px solid var(--line); }
.sub .t { font-weight: 600; }
.sub .m { font-size: 12.5px; color: var(--muted); }
.extern { display: inline-block; margin-top: 3px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fff3e0; color: #a35a00; }
.hinweis { margin-top: 10px; display: flex; gap: 10px; align-items: flex-start; background: #fff8ec; border: 1px solid #f4d9a8; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: #5b4a2a; }
.dok-liste { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.dok-link { justify-content: flex-start; gap: 10px; }

/* Punkt 10: Zugangscode ist 4 (PLZ) ODER 6 (Zufall) Ziffern — app.js setzt
 * genau eine dieser beiden Klassen auf #pin-wrap, je nach code_art. */
.pin-4 { grid-template-columns: repeat(4, 1fr); }
.pin-6 { grid-template-columns: repeat(6, 1fr); max-width: 320px; }

/* Nachtrag 07.10.2026 (Download-Code je Fall statt Zufallscode-Link):
 * Modal-Overlay für die Download-Code-Abfrage beim Antippen eines
 * Dokuments — eigener, schmaler Baustein (kein generisches Dialog-System
 * vorhanden, R138-Suche: grep -rn "\.modal\|\.overlay" apps/kundenstatus/
 * static/app.css -> 0 Treffer vor dieser Ergänzung). Sichtbarkeit über
 * das native `hidden`-Attribut (wie .center oben, CSP-Grund dort erklärt). */
.dl-overlay { position: fixed; inset: 0; background: rgba(20, 18, 14, .55); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 40; }
.dl-overlay[hidden] { display: none; }
.dl-modal { position: relative; background: var(--card); border-radius: 18px; padding: 24px 20px; max-width: 320px; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.dl-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--line); color: var(--ink); font-size: 16px; cursor: pointer; }
.dok-schloss { flex: none; }
.dl-pin { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.dl-pin input { width: 100%; height: 52px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); text-align: center; font: inherit; font-size: 22px; font-weight: 800; color: var(--ink); }
.dl-pin input.err { border-color: #c4121b; }

/* Tom 07.10.2026: Anzahl Unterpunkte/Dokumente im zugeklappten Schritt */
.chip.chip-unter { background: #eef2f7; color: #3a4a5e; margin-right: 6px; }

/* schema/537 (Tom 07.10.2026): Fußzeile mit Link zur Website der Marke. */
.fuss { margin-top: auto; padding: 16px 20px 22px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.fuss a { color: var(--brand); text-decoration: none; font-weight: 600; }
.fuss a:hover { text-decoration: underline; }
