/* e-dossier — Grundstil der Hülle (edo-oberflaeche-huelle-02, Entwurf „Design-System“ 16.10.2026).
   Regeln: eine Schrift (IBM Plex Sans, selbst gehostet); Text, Links, Knöpfe fast schwarz — kein Blau;
   Farbe NUR für Aufmerksamkeit (grün erledigt/aktiv, gelb bald/fehlt, rot überfällig/Treffer), immer
   mit Text oder Zeichen; Namen nicht fett; Linien statt Boxen. Keine externen Quellen. */
:root {
  --text: #3a3e44; --text-hover: #24272b; --text-2: #4a4f57; --text-3: #6b6f76;
  --grund: #f5f4f0; --flaeche: #ffffff; --flaeche-2: #faf9f6; --flaeche-3: #f0efea;
  --linie: #e3e1da; --linie-fein: #efede7; --linie-stark: #c9c6bc; --linie-gesperrt: #a8a59b;
  --aktion: #3a3e44; --aktion-hover: #24272b;
  --gruen: #1d5e2a; --gruen-grund: #eaf6ec; --gruen-linie: #9fd3a8;
  --gelb: #6b4e00; --gelb-grund: #fff4d6; --gelb-linie: #f0d68a; --gelb-marke: #916600;
  --rot: #8a1c1c; --rot-grund: #fdecec; --rot-linie: #e7a1a1;
  --r-punkt: 6px; --r-feld: 8px; --r-karte: 10px;
  --seitenleiste: 232px; --rand: 2.25rem;
  --schrift: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--grund);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--text); text-underline-offset: 0.15em; }
a:hover { color: var(--text-hover); }
/* Platzhalter lesbar (R1400-Kontrast, WebKit: Grau des Browsers rgb(169,169,169) = 2.35:1; Firefox halbiert ihn mit opacity). */
::placeholder { color: var(--text-3); opacity: 1; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
h1, h2, h3 { color: var(--text); }

/* ── Schlichter Kopf ausserhalb des Mandanten (Anmeldung, Mandantwahl, Betrieb) ── */
.rahmen { width: 100%; max-width: 40rem; margin: 0 auto; padding: 0 1rem; }
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf__innen { display: flex; align-items: center; min-height: 3.5rem; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.marke { font-weight: 700; font-size: 1.125rem; color: var(--text); text-decoration: none; letter-spacing: 0.01em; }
.kopf__wer { display: flex; align-items: center; gap: 0.25rem 0.75rem; flex-wrap: wrap; min-width: 0; font-size: 0.875rem; }
.kopf__mandant { overflow-wrap: anywhere; }
.kopf__form { margin: 0; }
.kopf__link { color: var(--text); text-decoration: underline; font: inherit; min-height: 2.75rem; display: inline-flex; align-items: center; }
.kopf__knopf { background: none; border: 0; padding: 0; cursor: pointer; }
.haupt { flex: 1; padding: 2rem 0; }
.fuss { border-top: 1px solid var(--linie); background: var(--flaeche); font-size: 0.875rem; color: var(--text-3); }
.fuss__innen { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; justify-content: space-between; padding-top: 0.75rem; padding-bottom: 0.75rem; }

/* ── App-Hülle im Mandanten: Seitenleiste (Desktop) / Kopf mit Menü (Handy) ── */
.app { display: flex; min-height: 100vh; width: 100%;
  /* Fläche der Seitenleiste über die ganze Seitenhöhe, auch wenn die Leiste selbst klebt (sticky, 100vh). */
  background: linear-gradient(to right, var(--flaeche-3) calc(var(--seitenleiste) - 1px), var(--linie) calc(var(--seitenleiste) - 1px), var(--linie) var(--seitenleiste), transparent var(--seitenleiste)); }
/* Grund der Inhaltsspalte ausdrücklich (gleich dem Körper, der dort durch den Verlauf von .app scheint): der Verlauf gehört zur Seitenleiste (R1400-Kontrast). */
.app__inhalt { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--grund); }
.seitenleiste {
  flex: none; width: var(--seitenleiste); background: var(--flaeche-3); border-right: 1px solid var(--linie);
  display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem 0.75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.seitenleiste__marke { font-weight: 700; font-size: 1.125rem; color: var(--text); text-decoration: none; padding: 0 0.5rem; }
.seitenleiste__mandant { display: grid; gap: 0.125rem; padding: 0 0.5rem; min-width: 0; }
.seitenleiste__klein { font-size: 0.75rem; color: var(--text-2); overflow-wrap: anywhere; }
.seitenleiste__name { overflow-wrap: anywhere; }
.seitenleiste__wechseln { font-size: 0.875rem; color: var(--text-2); justify-self: start; min-height: 2.75rem; display: inline-flex; align-items: center; }
.seitenleiste__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.125rem; }
.seitenleiste__punkt {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.75rem;
  border-radius: var(--r-punkt); color: var(--text-2); text-decoration: none; border-left: 3px solid transparent;
}
.seitenleiste__punkt:hover { background: var(--flaeche-2); color: var(--text-hover); }
.seitenleiste__punkt.is-aktiv { background: var(--flaeche); color: var(--text); font-weight: 700; border-left-color: var(--text); }
.seitenleiste__zahl { display: inline-block; min-width: 1.5rem; padding: 0 0.4rem; border-radius: 999px; background: var(--gelb-grund); color: var(--gelb); font-size: 0.8125rem; font-weight: 700; text-align: center; }
.seitenleiste__wer { margin-top: auto; display: grid; gap: 0.125rem; padding: 0.75rem 0.5rem 0; border-top: 1px solid var(--linie); min-width: 0; }
.seitenleiste__email { font-size: 0.875rem; overflow-wrap: anywhere; }
.seitenleiste__wer form, .kopf-mobil__blatt form { margin: 0; }
.seitenleiste__abmelden { background: none; border: 0; padding: 0; font: inherit; font-size: 0.875rem; color: var(--text-2); text-decoration: underline; cursor: pointer; min-height: 2.75rem; text-align: left; overflow-wrap: anywhere; }
.kopf-mobil { display: none; }
.app .haupt { padding: 1.5rem 0 2.5rem; }
.app .rahmen { max-width: none; margin: 0; padding: 0 var(--rand); }
.app .karte { max-width: 52rem; }
.app .fuss { margin-top: auto; }

.bottom-nav { display: none; }
/* Sprünge (edo-ux-struktur-01): Anker-Ziele landen unter dem klebenden Kopf und über der Bottom-Navigation. */
html { scroll-padding-top: 1rem; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
/* Landungsmarke am Ende des Aktendeckels (sprung.js): leere Fläche ohne Höhe — ein Fokusring wäre nur ein Strich quer über die Seite. */
#seiteninhalt:focus { outline: none; }

@media (max-width: 900px) {
  :root { --rand: 1rem; --kopf-mobil-h: 3.5rem; --bottom-nav-h: 3.75rem; }
  html { scroll-padding-top: calc(var(--kopf-mobil-h) + 0.75rem); scroll-padding-bottom: calc(var(--bottom-nav-h) + 0.75rem); }
  .app { display: block; background: none; padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); }
  .seitenleiste { display: none; }
  .kopf-mobil { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 0 1rem; min-height: var(--kopf-mobil-h); position: sticky; top: 0; z-index: 30; }
  .kopf-mobil__marke { font-weight: 700; font-size: 1.125rem; color: var(--text); text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
  .kopf-mobil__menue > summary { list-style: none; }
  .kopf-mobil__menue > summary::-webkit-details-marker { display: none; }
  .kopf-mobil__auf { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 0.875rem; border: 1px solid var(--linie-stark); border-radius: var(--r-feld); cursor: pointer; font-weight: 700; }
  .kopf-mobil__menue:not([open]) .kopf-mobil__blatt { display: none; }
  .kopf-mobil__blatt { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--flaeche); border-bottom: 1px solid var(--linie); box-shadow: 0 8px 16px rgba(0,0,0,.08); padding: 0.5rem 1rem 1rem; display: grid; gap: 0.5rem; }
  .kopf-mobil__mandant { margin: 0; font-size: 0.875rem; color: var(--text-2); overflow-wrap: anywhere; }
  .kopf-mobil__mandant a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  /* Bottom-Navigation: fünf Hauptpunkte, immer sichtbar, Touch-Ziel ≥ 44 px, aktiver Punkt fett + Strich (nicht nur Farbe). */
  .bottom-nav { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--flaeche); border-top: 1px solid var(--linie-stark);
    padding-bottom: env(safe-area-inset-bottom, 0px); }
  .bottom-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bottom-nav__punkt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.125rem; min-height: var(--bottom-nav-h);
    padding: 0.25rem 0.125rem; color: var(--text-2); text-decoration: none; font-size: 0.6875rem; line-height: 1.2; text-align: center; border-top: 3px solid transparent; }
  .bottom-nav__label { max-width: 100%; overflow-wrap: anywhere; }
  .bottom-nav__punkt.is-aktiv { color: var(--text); font-weight: 700; border-top-color: var(--text); background: var(--flaeche-2); }
  .bottom-nav__zahl { min-width: 1.25rem; padding: 0 0.3rem; border-radius: 999px; background: var(--gelb-grund); color: var(--gelb); font-size: 0.6875rem; font-weight: 700; }
  .app .haupt { padding: 1rem 0 2rem; }
}
@media print { .bottom-nav, .kopf-mobil { display: none !important; } .app { padding-bottom: 0; } }

/* ── Pfad über dem Titel: leise, grau; Glieder werden erst beim Zeigen zum Link ── */
.brot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; padding-top: 1rem; font-size: 0.875rem; color: var(--text-3); }
.brot__zurueck { color: var(--text-2); min-height: 2.75rem; display: inline-flex; align-items: center; }
.brot__kette { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.375rem; min-width: 0; }
.brot__kette li { overflow-wrap: anywhere; min-height: 1.75rem; display: inline-flex; align-items: center; }
.brot__kette li + li::before { content: "/"; margin-right: 0.375rem; color: var(--linie-gesperrt); }
.brot__kette a { color: var(--text-3); text-decoration: none; }
.brot__kette a:hover { color: var(--text); text-decoration: underline; }

/* ── Bausteine ── */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); padding: 1.5rem 1.25rem; overflow-wrap: anywhere; }
.karte h1 { margin: 0 0 0.75rem; font-size: 1.75rem; line-height: 1.2; }
.karte h2 { margin: 1.75rem 0 0.75rem; font-size: 1.1875rem; }
.karte p { margin: 0 0 1rem; overflow-wrap: anywhere; }
.hinweis { background: var(--gelb-grund); border: 1px solid var(--gelb-linie); color: var(--gelb); border-radius: var(--r-feld); padding: 0.75rem; overflow-wrap: anywhere; }
/* Knopf, der wie ein Link aussieht (R1400-Kontrast: ohne Regel blieb der graue Grund des Browsers, 4.38:1). Vor .klein, damit dessen Farbe gilt. */
.btn--link { background: none; border: 0; padding: 0; min-height: 2.75rem; font: inherit; color: var(--text); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }
.klein { font-size: 0.875rem; color: var(--text-3); }
/*
 * R289: dieselbe Clip-Ursache ausserhalb von .feld — ein Text ohne Umbruchstelle direkt im Formular (Meldung, Hinweis) machte die
 * Grid-Spalte so breit wie das Wort; Formular, Felder und Knopf liefen aus der Karte (/anmelden, beide Engines). Spalte begrenzt,
 * Umbruch überall im Formular und in der Karte. Gate: Selbstprobe „umbruch-formular“ (muss beissen) und Probe „umbruch-fix“ (0 Befunde).
 */
.formular { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 1rem; overflow-wrap: anywhere; }
.feld { display: grid; gap: 0.25rem; min-width: 0; }
.feld__name { font-weight: 700; font-size: 0.9375rem; }
.feld input, .feld select {
  width: 100%; max-width: 100%; min-height: 2.75rem; padding: 0.5rem 0.75rem;
  font: inherit; color: var(--text); border: 1px solid var(--linie-stark); border-radius: var(--r-feld); background: var(--flaeche);
}
.feld input:disabled { background: var(--flaeche-3); }
.feld__check { display: flex; gap: 0.5rem; align-items: center; min-height: 2.75rem; }
.feld__check input { width: 1.25rem; height: 1.25rem; min-height: 0; flex: none; }
fieldset.feld { border: 0; padding: 0; margin: 0; }
/*
 * R251/R257 (Etappe Ü 4.1): Überlauf an der Ursache, Kanzlei- und Kundenseite.
 * 1. iOS-Safari rechnet Datums- und Zeitfelder mit eigener Darstellung als content-box: RenderThemeIOS.mm
 *    adjustInputElementButtonStyle („Enforce the width and set the box-sizing to content-box“), WebKit Bug 301648 —
 *    Breite 100 % + Polster + Rand ragt um ≈ 26 px über die Karte. Der Pfad läuft nur bei appearance ≠ none.
 * 2. WebKit: eine Auswahl mit langem angezeigtem Wert erweitert den Scrollbereich des Feldes (gemessen 481 statt 375 px,
 *    Sheet seitlich verschiebbar). clip schneidet nur den unsichtbaren Überhang des Feldes ab — kein overflow hidden auf
 *    Seite, Karte oder Sheet (das versteckte statt zu beheben). Der Fokusring liegt darum innen (outline-offset negativ).
 */
input:is([type="date"], [type="time"], [type="datetime-local"], [type="month"], [type="week"]) {
  appearance: none; -webkit-appearance: none; min-width: 0; display: block; width: 100%; max-width: 100%;
}
input:is([type="date"], [type="time"], [type="datetime-local"], [type="month"], [type="week"])::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.2em; }
.field, .feld { overflow-x: clip; }
/*
 * Clip-Probe (Etappe Ü Runde 2, Punkt 10, 375 px Chromium + WebKit): ein langer Text ohne Umbruchstelle (Fehlermeldung mit Adresse,
 * Hinweis) machte die Spalte des Felds so breit wie das Wort — Text UND Eingabefeld wurden rechts abgeschnitten. Ursache: die
 * Grid-Spalte wächst auf die min-content-Breite. Umbruch überall erlaubt und die Spalte auf die Breite des Felds begrenzt.
 */
:is(.field, .feld):not(.field--check) { overflow-wrap: anywhere; grid-template-columns: minmax(0, 1fr); }
:is(.field, .feld) :focus-visible { outline-offset: -3px; }
.angaben { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.5rem 1.5rem; margin: 0 0 1rem; }
.angaben dt { color: var(--text-3); }
.angaben dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .angaben { grid-template-columns: 1fr; gap: 0 0; } .angaben dd { margin-bottom: 0.5rem; } }
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.5rem 1.25rem; max-width: 100%;
  font: inherit; font-weight: 700; color: #fff; background: var(--aktion);
  border: 1px solid var(--aktion); border-radius: var(--r-feld); text-decoration: none; cursor: pointer; text-align: center;
}
.knopf:hover { background: var(--aktion-hover); color: #fff; }
.knopf:disabled { opacity: 0.55; cursor: not-allowed; }
.knopf--zweit { color: var(--text); background: var(--flaeche); border-color: var(--linie-stark); }
.knopf--zweit:hover { color: var(--text-hover); background: var(--flaeche-2); }
.knopf--klein { min-height: 2.75rem; padding: 0.25rem 0.75rem; font-size: 0.875rem; }
.meldung { border-radius: var(--r-feld); padding: 0.75rem; border: 1px solid var(--linie-stark); background: var(--flaeche-2); overflow-wrap: anywhere; }
.meldung--fehler, .meldung--error { background: var(--rot-grund); border-color: var(--rot-linie); color: var(--rot); }
.meldung--erfolg, .meldung--success, .meldung--ok { background: var(--gruen-grund); border-color: var(--gruen-linie); color: var(--gruen); }
.meldung--warnung, .meldung--warning { background: var(--gelb-grund); border-color: var(--gelb-linie); color: var(--gelb); }
.liste { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.5rem; }
.liste__zeile { border: 1px solid var(--linie); border-radius: var(--r-feld); padding: 0.75rem; min-width: 0; overflow-wrap: anywhere; }
.wahl { margin: 0; }
.wahl__knopf { display: grid; gap: 0.125rem; width: 100%; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; min-height: 2.75rem; }
.wahl__name { color: var(--text); text-decoration: underline; text-underline-offset: 0.15em; }
.zuweisung { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.zuweisung__text { display: grid; min-width: 0; flex: 1 1 12rem; }
.zuweisung__name { font-weight: 400; }
.zuweisung form { margin: 0; }

/* edo-sro-einstellung-01 — SRO-Wahl, Profil-Liste, Pflichten im Dossier-Rahmen */
.sro-wahl { border: 0; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.5rem; min-width: 0; }
.sro-wahl__option { display: flex; gap: 0.75rem; align-items: flex-start; border: 1px solid var(--linie); border-radius: var(--r-feld); padding: 0.75rem; min-height: 2.75rem; }
.sro-wahl__option input { margin-top: 0.25rem; width: 1.25rem; height: 1.25rem; flex: none; }
.sro-wahl__text { display: grid; gap: 0.125rem; min-width: 0; overflow-wrap: anywhere; }
.sro-vorschau { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; }
.sro-vorschau__link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.75rem; border: 1px solid var(--linie); border-radius: 999px; text-decoration: none; }
.sro-vorschau__link.is-aktiv { border-color: var(--text); font-weight: 700; }
.sro-pflicht { display: grid; gap: 0.25rem; }
.sro-pflicht.is-nicht_verlangt { background: var(--flaeche-2); }
.sro-pflicht.is-offen { border-color: var(--gelb-linie); background: var(--gelb-grund); }
.dossier-rahmen__sro { margin: 0.5rem 0 0; font-size: 0.875rem; overflow-wrap: anywhere; }
.dossier-rahmen__pflichten { margin: 0.25rem 0 0; padding-left: 1.25rem; font-size: 0.875rem; overflow-wrap: anywhere; }
/* Einstellungen „Auftritt“ (edo-auftritt-01) */
.auftritt-logo img { display: block; max-height: 4rem; max-width: 100%; height: auto; width: auto; }
.auftritt-farbe { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.auftritt-farbe__muster { display: inline-block; width: 1.5rem; height: 1.5rem; border-radius: 0.25rem; border: 1px solid var(--linie-stark); vertical-align: middle; }
.wahl-zeile { display: flex; gap: 0.5rem; align-items: flex-start; min-height: 2.75rem; overflow-wrap: anywhere; }
.wahl-zeile input { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.125rem; }

/* Demo (edo-demo-zugang-01): Band über jeder Seite, Anforderungs-Formular */
.demo-band { margin: 0; padding: 0.5rem 1rem; background: var(--gelb-grund); border-bottom: 1px solid var(--gelb-linie); color: var(--gelb); font-size: 0.875rem; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.feld--haken { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.9375rem; }
.feld--haken input { width: 1.25rem; height: 1.25rem; margin: 0.125rem 0 0; flex: none; }
.demo-liste { margin: 0 0 1rem; padding-left: 1.25rem; }
.demo-liste li { margin-bottom: 0.375rem; }

/* Startseite „Heute“ (Entwurf 8a): nach Dringlichkeit gruppiert, kompakte Zeilen, Etikett über dem Titel. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zaehler, .braucht__n { display: inline-block; min-width: 1.5rem; padding: 0 0.4rem; border-radius: 999px; background: var(--flaeche-3); font-size: 0.8125rem; text-align: center; font-weight: 700; color: var(--text-2); }
.braucht { margin: 1.5rem 0; }
.braucht h3 { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin: 0 0 0.375rem; display: flex; align-items: center; gap: 0.5rem; }
.braucht--ueberfaellig h3 { color: var(--rot); }
.braucht__leer, .start__leer { color: var(--text-2); margin: 0.25rem 0; }
.braucht .rows { list-style: none; margin: 0; padding: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); }
.braucht .row { display: grid; grid-template-columns: 1fr auto; gap: 0.125rem 1rem; padding: 0.75rem 1rem; border-top: 1px solid var(--linie-fein); }
.braucht .row:first-child { border-top: 0; }
.braucht .row--dringend { box-shadow: inset 3px 0 0 var(--rot); }
.braucht .row__art { grid-column: 1; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.braucht .row__titel { grid-column: 1; font-weight: 700; overflow-wrap: anywhere; }
.braucht .row__meta, .braucht .row__hinweis { grid-column: 1; font-size: 0.875rem; color: var(--text-2); overflow-wrap: anywhere; }
.braucht .row__wann:empty, .braucht .row__hinweis:empty { display: none; }
.braucht .row__wann.is-rot { color: var(--rot); font-weight: 700; }
.braucht .row__wann.is-gelb { color: var(--gelb); font-weight: 700; }
/* R1400: nur Lage, keine Farbe — der Weg erbt die Farbe von `a`, der Hauptknopf die von .btn--primary (eine Farbe hier schlug sie mit (0,2,0), Kontrast 1:1). */
.braucht .row__aktion { grid-column: 2; grid-row: 1 / span 4; align-self: center; min-height: 2.75rem; display: inline-flex; align-items: center; white-space: nowrap; }
@media (max-width: 480px) { .braucht .row { grid-template-columns: 1fr; } .braucht .row__aktion { grid-column: 1; grid-row: auto; } }
.start__weiter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.status-zeile { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; overflow-wrap: anywhere; }
.status-zeile--ok { color: var(--gruen); }
.status-zeile--warn { color: var(--gelb); }
.einstellungen__liste { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.einstellungen__liste .row { display: grid; gap: 0.375rem; align-content: start; padding: 1rem; border: 1px solid var(--linie); border-radius: var(--r-karte); background: var(--flaeche); min-width: 0; }
.einstellungen__liste .row__titel { font-weight: 700; color: var(--text); min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.einstellungen__liste .row__meta { font-size: 0.875rem; color: var(--text-2); }
.einstellungen__liste .row__stand { font-size: 0.875rem; overflow-wrap: anywhere; }
.einstellungen__liste .row__stand.is-ok { color: var(--gruen); }
.einstellungen__liste .row__stand.is-warn { color: var(--gelb); }
.einstellungen__liste .row__stand.is-rot { color: var(--rot); }

/* Register-Leiste (Unterseiten von Pflichten und Einstellungen; wie die Register im Dossier). */
.register-leiste { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0 0 1.25rem; padding: 0 0.25rem;
  background: var(--flaeche-2); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.register-leiste a { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; color: var(--text-2); text-decoration: none; border-bottom: 3px solid transparent; }
.register-leiste a:hover { color: var(--text-hover); }
.register-leiste a[aria-current="page"] { color: var(--text); font-weight: 700; border-bottom-color: var(--text); }
.register-leiste .zahl { font-size: 0.8125rem; color: var(--text-3); }

/* Seitenkopf über dem Inhalt (Heute, Register): Titel links, Status/Werkzeuge rechts. */
.seitenkopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.75rem 1.5rem; margin: 0 0 1.25rem; }
.seitenkopf__titel { display: grid; gap: 0.25rem; min-width: 0; }
.seitenkopf .status-zeile { margin: 0; }
.status-zeile__marke { flex: none; width: 1.375rem; height: 1.375rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: #fff; background: currentColor; }
.status-zeile--ok .status-zeile__marke { background: var(--gruen); color: #fff; }
.status-zeile--warn .status-zeile__marke { background: var(--gelb-marke); color: #fff; }
/* Seitentitel und Untertitel auch auf schmalen Seiten (Einstellungen, Rollen …) — dieselben wie in dossier.css. */
.shell-title { margin: 0; font-size: 1.75rem; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; hyphens: auto; }
.shell-lead { margin: 0.25rem 0 0; color: var(--text-3); overflow-wrap: anywhere; }

/* Einrichtung der Kanzlei (edo-einrichtung-01): oben auf „Heute“ und unter Einstellungen › Einrichtung. */
.einrichtung__titel { font-size: 1.0625rem; font-weight: 700; margin: 0 0 0.25rem; }
.einrichtung__lead { color: var(--text-2); margin: 0 0 0.5rem; font-size: 0.875rem; }
.braucht .row--offen { box-shadow: inset 3px 0 0 var(--gelb-marke); }
.einrichtung__stand { text-transform: none; letter-spacing: 0; }
.einrichtung__stand.is-ok, .einrichtung__stand.is-allein { color: var(--gruen); }
.einrichtung__stand.is-offen { color: var(--gelb); }
.einrichtung__fundstelle { white-space: normal; }

/* edo-ux-nachschliff-01 · Register-Leiste am Handy: EINE Zeile, waagrecht wischbar (data-wisch-hinweis); der Rand rechts läuft
   in einen Schatten aus, solange mehr Reiter folgen (Schatten-Technik: background-attachment local/scroll). */
@media (max-width: 900px) {
  .register-leiste { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; gap: 0 1rem;
    background:
      linear-gradient(to right, var(--flaeche-2) 30%, rgba(255,255,255,0)) left center / 2rem 100% no-repeat local,
      linear-gradient(to left, var(--flaeche-2) 30%, rgba(255,255,255,0)) right center / 2rem 100% no-repeat local,
      linear-gradient(to left, rgba(0,0,0,.28), rgba(0,0,0,0)) right center / 0.75rem 100% no-repeat scroll,
      var(--flaeche-2); }
  .register-leiste::-webkit-scrollbar { display: none; }
  .register-leiste a { flex: none; white-space: nowrap; }
}

/* Neuer Kunde K2–K4, K3c (v2 E1c): eine Frage je Block, ein Hauptknopf. Folgefragen stehen offen da (der Server prüft sie nur, wo
   sie gelten) — ein Aus- und Einblenden bräuchte Folgezustände, die die Vermessung nach der Annahme (Seite ohne Formular) nicht kann. */
.neu-kunde { max-width: 40rem; }
.neu-kunde textarea { width: 100%; max-width: 100%; min-height: 4.5rem; padding: 0.5rem 0.75rem; font: inherit; color: var(--text); border: 1px solid var(--linie-stark); border-radius: var(--r-feld); background: var(--flaeche); }
.neu-kunde .feld__check span { overflow-wrap: anywhere; min-width: 0; }
.neu-kunde__knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.neu-kunde__abbrechen { min-height: 2.75rem; display: inline-flex; align-items: center; color: var(--text-2); }
.neu-kunde__ergebnis { max-width: 40rem; margin: 0 0 1.25rem; padding: 1rem; border: 1px solid var(--linie); border-radius: var(--r-karte); background: var(--flaeche); overflow-wrap: anywhere; }
.neu-kunde__wege a, .neu-kunde__wege span { display: inline-flex; align-items: center; min-height: 2.75rem; }
.neu-kunde__folge { display: grid; gap: 0.5rem; }

/* Kunden-Liste K1 (v2 E1c): ruhige Zeilen — Name, Zustandswort und EIN Detail; Filter als Leiste mit Zahlen. */
.kunden__neu { margin: 0; }
.kunden-suche { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: flex-end; margin: 0 0 0.75rem; max-width: 52rem; }
.kunden-suche__feld { flex: 2 1 16rem; }
.kunden-suche__wer { flex: 1 1 12rem; }
.kunden-filter { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0.5rem 0 1rem; border-bottom: 1px solid var(--linie); }
.kunden-filter a { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; color: var(--text-2); text-decoration: none; border-bottom: 3px solid transparent; }
.kunden-filter a[aria-current="page"] { color: var(--text); font-weight: 700; border-bottom-color: var(--text); }
.kunden-filter .zahl { font-size: 0.8125rem; color: var(--text-3); }
.kunden { list-style: none; margin: 0; padding: 0; max-width: 52rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); }
.kunde { display: grid; gap: 0.125rem; padding: 0.625rem 1rem; border-top: 1px solid var(--linie-fein); min-width: 0; }
.kunde:first-child { border-top: 0; }
.kunde__name { font-weight: 700; color: var(--text); min-height: 2.75rem; display: inline-flex; align-items: center; overflow-wrap: anywhere; min-width: 0; }
.kunde__zeile { font-size: 0.9375rem; color: var(--text-2); overflow-wrap: anywhere; }
.kunde .entzug-marke { color: var(--gelb); font-weight: 700; }
.kunde .entzug-zeichen { display: inline-flex; align-items: center; justify-content: center; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--gelb-marke); color: #fff; font-size: 0.75rem; }
.kunden-leer { max-width: 52rem; color: var(--text-2); }
@media (max-width: 900px) {
  .kunden-filter[data-status-filter] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .kunden-filter[data-status-filter]::-webkit-scrollbar { display: none; }
  .kunden-filter a { white-space: nowrap; }
}

/* KZ1 (E8 C4): die Einrichtung oben auf der Kanzlei-Seite — auch am Handy der Weg rechts neben Titel und „Warum?“ (zwei Zeilen je Schritt statt drei), damit Einrichtung
   und Bereiche zusammen in zwei Bildschirmen bleiben; der Weg bleibt ≥ 44 px hoch. */
.einrichtung--kanzlei .row { padding: 0.375rem 0.75rem; }
.einrichtung--kanzlei .einrichtung__unter { grid-column: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.75rem; font-size: 0.875rem; }
.einrichtung--kanzlei .einrichtung__unter .row__stand.is-warn { color: var(--gelb); }
.einrichtung--kanzlei .einrichtung__unter .row__stand.is-rot { color: var(--rot); }
.einrichtung--kanzlei .schritt-warum { margin: 0; }
@media (max-width: 480px) { .einrichtung--kanzlei .row { grid-template-columns: 1fr auto; } .einrichtung--kanzlei .row__aktion { grid-column: 2; grid-row: 1 / span 2; } }
/* Kanzlei-Übersicht am Handy (v2 E1c): mit „Bestand übernehmen“ eine Zeile mehr — dichter, damit sie in zwei Bildschirmen bleibt. */
@media (max-width: 480px) {
  .einstellungen__liste { gap: 0.375rem; margin-top: 0.5rem; }
  .einstellungen__liste .row { padding: 0.25rem 0.75rem; gap: 0; }
  /* E8 C4 (KZ1): der Stand rechts neben dem Namen (eine Zeile je Bereich) — Einrichtung und Bereiche bleiben mit Spielraum in zwei Bildschirmen. */
  .einstellungen__liste .row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 0.5rem; }
  .einstellungen__liste .row__stand { text-align: right; max-width: 45vw; }
}
/* crm-me2 Runde 3 (Sicht „umzug“): lange Kennungen brechen um (sonst ragen sie bei 360 px aus der Karte); am Handy eine Spalte (Titel, darunter
   Stand und Grund), sonst nähme der lange Grund die zweite Spalte und der Titel bliebe ohne Breite. */
.umzug__liste .row__titel, .umzug__liste .row__meta { min-width: 0; overflow-wrap: anywhere; }
.umzug__liste .row__titel > * { min-width: 0; }
@media (max-width: 480px) { .umzug__liste .row { grid-template-columns: minmax(0, 1fr); } .umzug__liste .row__stand { text-align: left; max-width: none; } }
.umzug__inline { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; margin: 0.25rem 0 0; }
.umzug__stichprobe, .umzug__alles { margin: 0.5rem 0; }
/* crm-ge1 (Sicht „floow-lieferungen“): Karte je Lieferung; die Kennung der Firma bricht um, die Formulare stehen untereinander. */
.floow-lieferung { margin: 0 0 1.25rem; }
.floow-lieferung h2 { margin-top: 0; }
.floow-lieferung__ref { overflow-wrap: anywhere; word-break: break-all; }
.floow-lieferung__wahl { margin: 0 0 1rem; }
.floow-lieferung__akte { margin: 0 0 0.5rem; }

/* Etappe 7 §4.3 L1: „Was hat sich geändert?“ öffnet sich erst mit der Antwort „geändert“ (ohne Skript; ohne :has bleibt das Feld sichtbar). */
.l1-frage:not(:has(input[data-geaendert]:checked)) .l1__was { display: none; }
.rows--innen { margin: .25rem 0 0; }

/* R2628 (E8 C6a): eine Regel für den Hauptknopf — .btn und .btn--primary hier, wo sie immer lädt (vorher nur dossier.css, also nur bei `breit`:
   ohne `breit` war ein .btn--primary ungefärbt und für das Messgerät kein Hauptknopf). Am Ende, damit die Reihenfolge zu den übrigen Regeln bleibt. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.5rem 1rem; max-width: 100%;
  font: inherit; font-weight: 700; border-radius: var(--r-feld); border: 1px solid var(--linie-stark); color: var(--text); background: var(--flaeche); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--flaeche-2); color: var(--text-hover); }
.btn--primary { color: #fff; background: var(--aktion); border-color: var(--aktion); }
.btn--primary:hover { color: #fff; background: var(--aktion-hover); }
.btn--ghost { border-color: var(--linie-stark); }
.btn--danger { color: var(--rot); border-color: var(--rot-linie); }
.btn--sm { min-height: 2.75rem; padding: 0.25rem 0.75rem; font-size: 0.875rem; }

/* ── crm-b1: Gast-Modus (eingebettet beim Gastgeber, SPEC-B §2.5) — keine Seitenleiste, kein eigener Kopf, keine Bottom-Navigation;
   eine schmale Gast-Leiste mit Rückweg, Hauptpunkten und Konto. Touch-Ziele ≥ 44 px, bricht am Handy um. ── */
.app--gast { display: block; background: none; padding-bottom: 0; }
.gast-leiste { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.25rem; padding: 0 var(--rand); background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.gast-leiste__zurueck { display: inline-flex; align-items: center; min-height: 2.75rem; padding-right: 0.75rem; margin-right: 0.25rem; border-right: 1px solid var(--linie); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.gast-leiste__punkte { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.125rem; min-width: 0; }
.gast-leiste__punkt { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 0.625rem; color: var(--text-2); text-decoration: none; border-bottom: 3px solid transparent; }
.gast-leiste__punkt:hover { color: var(--text-hover); }
.gast-leiste__punkt.is-aktiv { color: var(--text); font-weight: 700; border-bottom-color: var(--text); }
.gast-leiste__zahl { display: inline-block; min-width: 1.5rem; padding: 0 0.4rem; border-radius: 999px; background: var(--gelb-grund); color: var(--gelb); font-size: 0.8125rem; font-weight: 700; text-align: center; }
.gast-leiste__konto { margin-left: auto; }
.gast-leiste__konto > summary { list-style: none; }
.gast-leiste__konto > summary::-webkit-details-marker { display: none; }
.gast-leiste__auf { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.625rem; cursor: pointer; color: var(--text-2); text-decoration: underline; }
.gast-leiste__konto:not([open]) .gast-leiste__blatt { display: none; }
.gast-leiste__blatt { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--flaeche); border-bottom: 1px solid var(--linie); box-shadow: 0 8px 16px rgba(0,0,0,.08); padding: 0.5rem var(--rand) 1rem; display: grid; gap: 0.5rem; }
.gast-leiste__zeile { margin: 0; font-size: 0.875rem; color: var(--text-2); overflow-wrap: anywhere; }
.gast-leiste__zeile a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.gast-leiste__blatt form { margin: 0; }
@media print { .gast-leiste { display: none !important; } }
