/* Becker Office, Oberfläche. Farben aus dem Logo (Rot #fc0000) sparsam als Akzent,
   ruhige Grautöne für die tägliche Arbeit, Inter als Schrift (lokal gebündelt). */
@font-face {
  font-family: "Inter";
  src: url("/static/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --rot: #e60000;
  --rot-hell: #fc0000;
  --rot-dunkel: #b80000;
  --rot-wash: #fff0f0;
  --ink: #16181d;
  --ink-2: #3b3f47;
  --ink-3: #6b7280;
  --ink-4: #9aa0aa;
  --linie: #e6e8ec;
  --linie-2: #f0f1f4;
  --flaeche: #f6f7f9;
  --karte: #ffffff;
  --nacht: #15171c;
  --nacht-2: #1f2229;
  --nacht-text: #c9cdd6;
  --gruen: #15803d; --gruen-wash: #e8f7ee;
  --gelb: #a16207; --gelb-wash: #fff7e0;
  --blau: #1d4ed8; --blau-wash: #e8efff;
  --radius: 12px;
  --radius-klein: 8px;
  --schatten: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --schatten-2: 0 8px 24px rgba(16, 24, 40, .08);
  --seitenleiste: 232px;
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--flaeche); line-height: 1.5; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01", "tnum"; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--rot-dunkel); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.35rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; min-width: 0; }
h2 { font-size: 1rem; }
small { font-size: .8rem; color: var(--ink-3); }
.block { display: block; }
.gedimmt { color: var(--ink-3); }
pre { font: inherit; white-space: pre-wrap; margin: 0; }

/* ---------- App-Shell ---------- */
body.app { display: grid; grid-template-columns: var(--seitenleiste) 1fr; min-height: 100vh; }
.seitenleiste { background: var(--nacht); color: var(--nacht-text); display: flex; flex-direction: column; padding: 1.1rem .9rem; position: sticky; top: 0; height: 100vh; }
.marke { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem 1.2rem; color: #fff; }
.marke img { height: 30px; }
.marke-text { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; color: var(--nacht-text); border-left: 1px solid #3a3e47; padding-left: .6rem; }
.hauptnav { display: flex; flex-direction: column; gap: .2rem; }
.hauptnav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: var(--radius-klein); color: var(--nacht-text); font-weight: 500; font-size: .92rem; }
.hauptnav a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.hauptnav a:hover { background: var(--nacht-2); color: #fff; }
.hauptnav a.aktiv { background: var(--nacht-2); color: #fff; box-shadow: inset 3px 0 0 var(--rot-hell); }
.hauptnav a.neu { margin-top: .8rem; border: 1px dashed #3a3e47; }
.seitenleiste-fuss { margin-top: auto; border-top: 1px solid #2a2e36; padding-top: .9rem; display: flex; flex-direction: column; gap: .5rem; }
.nutzerchip { display: flex; align-items: center; gap: .6rem; }
.nutzerchip-text { display: flex; flex-direction: column; line-height: 1.2; }
.nutzerchip-text strong { color: #fff; font-weight: 600; font-size: .9rem; }
.nutzerchip-text small { color: var(--ink-4); text-transform: capitalize; }
.buehne { min-width: 0; }
.kopfleiste { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 2rem; background: var(--karte); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 5; }
.kopfleiste-titel { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.kopfleiste-aktionen { display: flex; align-items: center; gap: .6rem; }
.kopfleiste-aktionen form { margin: 0; }
.brotkrumen { display: flex; align-items: center; gap: .1rem; }
.brotkrume { font-size: .8rem; color: var(--ink-3); }
.brotkrume-trenner { color: var(--ink-4); margin: 0 .35rem; font-size: .8rem; }
main { padding: 1.5rem 2rem 4rem; max-width: 1400px; }

/* ---------- Bausteine ---------- */
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1.1rem; box-shadow: var(--schatten); }
.karte.flach { padding: 0; overflow: hidden; }
.karte.warn { border-color: #f5d78e; background: #fffdf5; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.karte.flach .karte-kopf { padding: 1rem 1.25rem 0; }
.zaehler { background: var(--rot); color: #fff; border-radius: 999px; font-size: .75rem; font-weight: 600; padding: .05rem .55rem; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--rot); color: #fff; font-weight: 600; font-size: .85rem; flex: none; letter-spacing: .02em; }
.avatar.klein { width: 30px; height: 30px; font-size: .74rem; }
.avatar.grau { background: var(--linie); color: var(--ink-2); }
.tag { display: inline-block; font-size: .78rem; font-weight: 500; color: var(--ink-2); background: var(--linie-2); border-radius: 6px; padding: .12rem .5rem; white-space: nowrap; }
.pille { display: inline-block; font-size: .7rem; font-weight: 600; border-radius: 999px; padding: .05rem .5rem; margin-left: .4rem; vertical-align: middle; }
.pille.warn { background: var(--gelb-wash); color: var(--gelb); }
.pille.grau { background: var(--linie-2); color: var(--ink-3); }
.status { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--linie-2); color: var(--ink-2); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-neu { background: var(--rot-wash); color: var(--rot-dunkel); }
.status-in_klaerung, .status-nachfassen { background: var(--gelb-wash); color: var(--gelb); }
.status-angebot_raus { background: var(--blau-wash); color: var(--blau); }
.status-zusage, .status-termin_bestaetigt, .status-rechnung_gestellt { background: var(--gruen-wash); color: var(--gruen); }
.status-absage, .status-abgeschlossen { background: var(--linie-2); color: var(--ink-3); }
.status-angebot-entwurf { background: var(--linie-2); color: var(--ink-2); }
.status-angebot-versendet { background: var(--blau-wash); color: var(--blau); }
.status-angebot-angenommen { background: var(--gruen-wash); color: var(--gruen); }
.status-angebot-abgelehnt { background: var(--rot-wash); color: var(--rot-dunkel); }
.status-angebot-ersetzt { background: var(--linie-2); color: var(--ink-4); }
.meldung { padding: .7rem 1rem; border-radius: var(--radius-klein); margin-bottom: 1rem; font-size: .92rem; }
.meldung.fehler { background: var(--rot-wash); color: var(--rot-dunkel); border: 1px solid #ffd0d0; }
.meldung.fehler ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.toast { position: fixed; right: 1.5rem; bottom: 1.5rem; padding: .7rem 1.1rem; border-radius: var(--radius-klein); box-shadow: var(--schatten-2); z-index: 20; font-weight: 500; transition: opacity .4s, transform .4s; }
.toast.ok { background: var(--ink); color: #fff; }
.toast.fehler { background: var(--rot); color: #fff; }
.toast.weg { opacity: 0; transform: translateY(8px); }
.leer { color: var(--ink-3); font-style: italic; }

/* ---------- Knöpfe und Formulare ---------- */
.knopf { display: inline-flex; align-items: center; gap: .4rem; background: var(--rot); color: #fff; border: 0; border-radius: var(--radius-klein); padding: .55rem 1rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; transition: background .15s, transform .05s; }
.knopf:hover { background: var(--rot-dunkel); color: #fff; }
.knopf:active { transform: translateY(1px); }
.knopf.klein { padding: .38rem .75rem; font-size: .82rem; }
.knopf.gross { padding: .7rem 1.3rem; font-size: .95rem; }
.knopf.breit { width: 100%; justify-content: center; }
.knopf.hell { background: var(--karte); color: var(--ink); border: 1px solid var(--linie); }
.knopf.hell:hover { background: var(--flaeche); color: var(--ink); border-color: #d5d8de; }
.leise { background: none; border: 0; color: var(--rot-dunkel); cursor: pointer; font: inherit; font-size: .82rem; font-weight: 500; padding: 0; }
.leise.hell { color: var(--ink-4); }
.leise.hell:hover { color: #fff; }
.aktionen { margin-top: 1rem; display: flex; gap: .6rem; align-items: center; }
.aktionen.rechts { justify-content: flex-end; }
.aktionen form { margin: 0; }
input, select, textarea { font: inherit; color: var(--ink); }
.formular label, .feld label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 500; color: var(--ink-2); margin-bottom: .7rem; }
.formular input, .formular select, .formular textarea, .feld input, .feld select, .feld textarea, .suche input {
  padding: .5rem .65rem; border: 1px solid var(--linie); border-radius: var(--radius-klein); background: var(--karte); font-weight: 400; transition: border-color .15s, box-shadow .15s; width: 100%; }
.formular input:focus, .formular select:focus, .formular textarea:focus, .feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none; border-color: var(--rot); box-shadow: 0 0 0 3px rgba(230, 0, 0, .12); }
.formular textarea, .feld textarea { resize: vertical; }
.formular.kompakt label { margin-bottom: .55rem; }
.zeile { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.zeile2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.zeile3 { display: grid; grid-template-columns: 70px 1fr 1fr; gap: .6rem; }
.plz-ort { grid-template-columns: 90px 1fr; }
.suche { display: flex; align-items: center; gap: .5rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: 0 .6rem; }
.suche svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-4); stroke-width: 2; stroke-linecap: round; }
.suche input { border: 0; background: transparent; padding: .5rem 0; width: 260px; }
.suche input:focus { outline: none; }
.pflicht { color: var(--rot); }
.hilfe { color: var(--ink-4); font-size: .75rem; font-weight: 400; }

/* ---------- Tabellen ---------- */
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { text-align: left; padding: .75rem 1.25rem; border-bottom: 1px solid var(--linie-2); vertical-align: middle; }
.tabelle th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; background: #fafbfc; }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle.klickbar tbody tr { cursor: pointer; transition: background .1s; }
.tabelle.klickbar tbody tr:hover { background: #fcfcfd; }
.tabelle .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabelle.preise th, .tabelle.preise td { padding: .6rem .5rem; }
.tabelle.preise th:first-child, .tabelle.preise td:first-child { padding-left: 0; }
.tabelle.preise th:last-child, .tabelle.preise td:last-child { padding-right: 0; }
.tabelle tfoot td { color: var(--ink-2); border-bottom: 0; }
.tabelle .summe td { font-weight: 700; font-size: 1.05rem; border-top: 2px solid var(--ink); padding-top: .8rem; }
.zelle-kunde { display: flex; align-items: center; gap: .7rem; }
.zelle-kunde span { display: flex; flex-direction: column; line-height: 1.25; }
.zelle-kunde small { margin-top: .1rem; }

/* ---------- Anfragen ---------- */
.kacheln { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; margin-bottom: 1.1rem; }
.kacheln.drei { grid-template-columns: repeat(3, 1fr); }
.kachel { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; box-shadow: var(--schatten); transition: border-color .15s, transform .15s; }
.kachel:hover { border-color: #cfd3da; transform: translateY(-1px); color: var(--ink); }
.kachel.aktiv { border-color: var(--rot); box-shadow: inset 0 3px 0 var(--rot), var(--schatten); }
.kachel.warn .kachel-wert { color: var(--gelb); }
.kachel.gut .kachel-wert { color: var(--gruen); }
.kachel-wert { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kachel-label { font-size: .8rem; color: var(--ink-3); font-weight: 500; }
.filterleiste { display: flex; gap: .4rem; align-items: center; padding: .9rem 1.25rem; border-bottom: 1px solid var(--linie-2); flex-wrap: wrap; }
.chip { font-size: .8rem; font-weight: 500; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--linie); color: var(--ink-2); background: var(--karte); }
.chip:hover { border-color: #cfd3da; color: var(--ink); }
.chip.aktiv { background: var(--ink); color: #fff; border-color: var(--ink); }
.filterleiste-info { margin-left: auto; font-size: .8rem; color: var(--ink-4); }
.aufgaben { list-style: none; margin: 0; padding: 0; }
.aufgaben li { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--linie-2); }
.aufgaben li:last-child { border-bottom: 0; }
.aufgaben form { margin: 0; margin-left: auto; }
.aufgabe-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.aufgaben.kompakt li { padding: .45rem 0; font-size: .9rem; }
.aufgaben li.faellig .aufgabe-text strong { color: var(--rot-dunkel); }
.aufgaben li.erledigt { color: var(--ink-4); text-decoration: line-through; }

/* ---------- Neuer Vorgang ---------- */
.neu-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.1rem; align-items: start; }
.terminart-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.terminart-karte { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: .9rem .9rem .8rem; border: 1px solid var(--linie); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, box-shadow .15s; background: var(--karte); }
.terminart-karte:hover { border-color: #cfd3da; }
.terminart-karte input { position: absolute; opacity: 0; }
.terminart-karte:has(input:checked) { border-color: var(--rot); box-shadow: 0 0 0 3px rgba(230, 0, 0, .1); }
.terminart-karte.gedimmt { opacity: .5; cursor: not-allowed; }
.terminart-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; font-weight: 700; font-size: .85rem; margin-bottom: .45rem; color: #fff; background: var(--ink-3); }
.gruppe-hof { background: var(--rot); } .gruppe-wassersport { background: #0e7490; } .gruppe-bus { background: #475569; } .gruppe-schule { background: #15803d; } .gruppe-staumauer { background: #7c3aed; }
.terminart-name { font-weight: 600; font-size: .9rem; line-height: 1.25; }

/* ---------- Akte ---------- */
.kopfband { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem 1.25rem; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.1rem; box-shadow: var(--schatten); }
.kopfband-fakt { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.kopfband-fakt small { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--ink-4); }
.kopfband-fakt strong { font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.akte { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.1rem; align-items: start; }
.akte-seite { position: sticky; top: 80px; }
.stepper { display: flex; flex-direction: column; gap: .9rem; }
.schritt { border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.1rem 1rem; margin: 0; background: #fcfcfd; }
.schritt legend { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem; padding: 0 .5rem; margin-left: -.5rem; background: transparent; }
.schritt-nr { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; }
.feldraster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem 1rem; }
.feld { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .4rem; min-width: 0; }
.feld > label { display: block; margin: 0; }
.lbl { display: inline; }
.lbl .pflicht { margin-left: .15rem; }
.feld.breit { grid-column: 1 / -1; }
.feld.versteckt { display: none; }
.kaestchen { display: flex; flex-wrap: wrap; gap: .45rem; }
.kaestchen-chip { position: relative; flex-direction: row !important; margin: 0 !important; }
.kaestchen-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.kaestchen-chip span { display: inline-block; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--linie); background: var(--karte); font-size: .82rem; font-weight: 500; cursor: pointer; transition: all .12s; }
.kaestchen-chip:hover span { border-color: #cfd3da; }
.kaestchen-chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.schalter { display: inline-flex; border: 1px solid var(--linie); border-radius: var(--radius-klein); overflow: hidden; background: var(--karte); }
.schalter label { position: relative; flex-direction: row !important; margin: 0 !important; }
.schalter input { position: absolute; opacity: 0; width: 0; height: 0; }
.schalter span { display: inline-block; padding: .45rem 1.1rem; font-size: .85rem; font-weight: 500; cursor: pointer; color: var(--ink-2); border-right: 1px solid var(--linie); }
.schalter label:last-child span { border-right: 0; }
.schalter input:checked + span { background: var(--ink); color: #fff; }
.stepper-fuss { display: flex; align-items: center; gap: 1rem; padding-top: .3rem; }
.hinweisliste { display: flex; flex-direction: column; gap: .35rem; margin-top: .9rem; font-size: .86rem; color: var(--ink-2); }
.hinweiszeile { display: flex; gap: .55rem; align-items: baseline; }
.hinweiszeile .punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); flex: none; position: relative; top: -1px; }
.hinweiszeile.offen { color: var(--gelb); font-weight: 500; }
.hinweiszeile.offen .punkt { background: var(--gelb); }
.zeitleiste-eintrag { display: flex; gap: .9rem; position: relative; padding-bottom: 1rem; }
.zeitleiste-eintrag::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: var(--linie); }
.zeitleiste-eintrag:last-of-type::before { display: none; }
.zl-punkt { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-4); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--linie); flex: none; margin-top: .35rem; }
.zeitleiste-eintrag.aus .zl-punkt { background: var(--rot); }
.zeitleiste-eintrag.anfrage .zl-punkt { background: var(--blau); }
.zl-inhalt { background: var(--flaeche); border-radius: var(--radius-klein); padding: .6rem .8rem; flex: 1; min-width: 0; font-size: .9rem; }
.zeitleiste-eintrag.aus .zl-inhalt { background: var(--rot-wash); }
.zl-meta { font-size: .74rem; color: var(--ink-3); margin-bottom: .2rem; }
.notizform { margin-top: .5rem; display: flex; flex-direction: column; gap: .5rem; }
.notizform textarea { padding: .55rem .7rem; border: 1px solid var(--linie); border-radius: var(--radius-klein); resize: vertical; }
.notizform select { padding: .4rem .5rem; border: 1px solid var(--linie); border-radius: var(--radius-klein); background: var(--karte); }
.versionen { list-style: none; margin: 0 0 .8rem; padding: 0; }
.versionen li { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .5rem 0; border-bottom: 1px solid var(--linie-2); }
.versionen li:last-child { border-bottom: 0; }
.versionen li.aktuell { background: var(--flaeche); margin: 0 -.6rem; padding: .5rem .6rem; border-radius: var(--radius-klein); }
.versionen small { width: 100%; }

/* ---------- Angebot ---------- */
.angebot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.1rem; align-items: start; }
.angebot-vorschau { background: #dfe2e7; border-radius: var(--radius); padding: 1.5rem; overflow: hidden; }
.angebot-vorschau .blatt { width: 794px; max-width: 100%; margin: 0 auto; position: relative; }
.angebot-vorschau iframe { width: 794px; min-height: 1123px; border: 0; background: #fff; box-shadow: 0 10px 40px rgba(16, 24, 40, .18); transform-origin: top left; display: block; }
.fakten { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin: 0; font-size: .9rem; }
.fakten dt { color: var(--ink-3); }
.fakten dd { margin: 0; text-align: right; }

/* ---------- Login ---------- */
body.login { display: block; background: var(--nacht); }
body.login main { padding: 0; max-width: none; }
.login-buehne { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-marke { padding: 4rem; display: flex; flex-direction: column; justify-content: center; color: var(--nacht-text); background: radial-gradient(1200px 600px at 20% 20%, #2a1414 0%, var(--nacht) 60%); }
.login-marke img { height: 64px; align-self: flex-start; margin-bottom: 3rem; }
.login-marke h2 { color: #fff; font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; max-width: 22ch; }
.login-marke p { max-width: 44ch; margin-top: 1rem; font-size: 1.02rem; }
.login-karte { background: var(--karte); display: flex; flex-direction: column; justify-content: center; padding: 4rem 5rem; }
.login-karte h1 { font-size: 1.6rem; }
.login-karte .formular { margin-top: 1.5rem; max-width: 380px; }

@media (max-width: 1100px) {
  .kacheln { grid-template-columns: repeat(3, 1fr); }
  .akte, .angebot-layout, .neu-layout { grid-template-columns: 1fr; }
  .akte-seite { position: static; }
  .kopfband { grid-template-columns: repeat(3, 1fr); }
  .feldraster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  body.app { grid-template-columns: 1fr; }
  .seitenleiste { position: static; height: auto; flex-direction: row; align-items: center; gap: 1rem; }
  .seitenleiste-fuss { margin-top: 0; margin-left: auto; border: 0; padding: 0; }
  .hauptnav { flex-direction: row; }
  main, .kopfleiste { padding-left: 1rem; padding-right: 1rem; }
  .login-buehne { grid-template-columns: 1fr; }
  .login-marke { display: none; }
}

/* ---------- Öffentliche Kundenseite (Vorbereitungs-Abfrage) ---------- */
body.oeffentlich { display: block; background: var(--flaeche); }
.oeff-kopf { background: var(--nacht); padding: 1.1rem 1.5rem; border-bottom: 3px solid var(--rot-hell); }
.oeff-kopf img { height: 40px; display: block; margin: 0 auto; max-width: 100%; }
.oeff-inhalt { max-width: 680px; margin: 2rem auto; padding: 0 1rem; }
.oeff-karte { padding: 2rem 2.2rem; }
.oeff-karte h1 { font-size: 1.5rem; margin-bottom: .5rem; }
.oeff-tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rot-dunkel); font-weight: 600; margin: 0 0 .5rem; }
.oeff-abschnitt { margin: 1.4rem 0 .4rem; font-size: 1rem; padding-top: 1rem; border-top: 1px solid var(--linie-2); }
.oeff-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem .8rem; }
.oeff-formular label { margin-bottom: .8rem; }
.oeff-formular .breit { margin-top: 1rem; }
.oeff-haken { width: 56px; height: 56px; border-radius: 50%; background: var(--gruen-wash); color: var(--gruen); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }
.oeff-fuss { text-align: center; color: var(--ink-4); font-size: .78rem; padding: 2rem 1rem; }
.klein { font-size: .82rem; }
.details summary { cursor: pointer; font-size: .85rem; color: var(--ink-3); margin: .8rem 0 .5rem; }
@media (max-width: 600px) { .oeff-zahlen { grid-template-columns: 1fr 1fr; } .oeff-karte { padding: 1.3rem 1.2rem; } }

/* ---------- Feinschliff Audit 12.09. ---------- */
:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; border-radius: 4px; }
.knopf:focus-visible { outline-offset: 3px; }
.tabelle td.gedimmt, .tabelle td .gedimmt { white-space: nowrap; }
.kopfleiste-titel h1 .status { flex: none; }
.feld .schalter, .feld .kaestchen { margin-top: .1rem; }
.hilfe { line-height: 1.35; }
.karte-kopf h2 { min-width: 0; }
.aufgaben li form button { white-space: nowrap; }
@media (max-width: 1280px) {
  .kopfleiste { padding: .85rem 1.25rem; }
  main { padding: 1.25rem 1.25rem 3rem; }
}

/* Anmeldung mit zweitem Faktor, Konto, Nutzerverwaltung (14.09.2026) */
.meldung.warn { background: var(--gelb-wash); color: var(--gelb); border: 1px solid #f5d78e; }
.meldung.ok { background: var(--gruen-wash); color: var(--gruen); border: 1px solid #bfe6cc; }
.pille.gruen { background: var(--gruen-wash); color: var(--gruen); }
.pille.gelb { background: var(--gelb-wash); color: var(--gelb); }
.pille.rot { background: var(--rot-wash); color: var(--rot-dunkel); }
.login-karte.einrichten { max-width: 34rem; }
.schritte { padding-left: 1.2rem; margin: 0 0 1rem; font-size: .92rem; line-height: 1.5; }
.schritte li { margin-bottom: .6rem; }
.qr { display: block; margin: .5rem 0; border: 1px solid var(--linie); border-radius: var(--radius-klein); background: #fff; }
code.geheimnis { display: inline-block; font-size: .95rem; letter-spacing: .08em; padding: .35rem .6rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein); user-select: all; }
code.geheimnis.gross { font-size: 1.3rem; letter-spacing: .12em; }
.codes { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; }
.codes code { display: block; font-size: 1.05rem; letter-spacing: .1em; padding: .4rem .6rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein); text-align: center; user-select: all; }
.raster.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: start; }
@media (max-width: 1100px) { .raster.zwei { grid-template-columns: 1fr; } }
.tabelle td.aktionen { display: flex; flex-wrap: wrap; gap: .35rem; }
details { margin-top: .8rem; }
details summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
details .formular { margin-top: .6rem; }
.login-karte .leise { margin-top: .8rem; }
