/* Schrift und Abstand (PB-4330): fünf Schriftstufen, drei Zeilenhöhen, sechs Abstände. Jede Stil-Datei nimmt Größen nur von hier.
   Schrift: --schrift-xs 12 px (Etikett, Kopfzelle), --schrift-s 13 px (Nebenzeile, dichte Tabelle), --schrift-m 15 px (Fließtext),
   --schrift-l 18 px (Abschnittstitel), --schrift-xl 24 px (Seitentitel). Nur für Kennzahlen: --schrift-zahl 32 px, --schrift-zahl-gross 40 px.
   Zeilenhöhe: --zeile-eng (Titel, Zahlen), --zeile-dicht (Listen, Tabellen), --zeile (Fließtext).
   Abstand: --raum-1 4 px, --raum-2 8 px, --raum-3 12 px, --raum-4 16 px, --raum-5 24 px, --raum-6 32 px. --abstand bleibt als Name für --raum-4.
   Formular: --feldhoehe (Mindesthöhe von Feld und Knopf), --formbreite (Höchstbreite einer Formularspalte). */
/* Plattbase Portal, Grundlagen (PB-1003: aufgeteilt, Reihenfolge in src/Stile.php). Keine Bibliotheken. Farben als Variablen. Hell ist die Vorgabe (wie die Vorbild-Oberfläche
   der Betreiber, PB-106), Dunkel und "wie auf dem Gerät" sind wählbar. Kontrastwerte stehen in docs/KONTRAST.md.
   Gestaltung: docs/VORBILD-OBERFLAECHE.md. */

:root {
  --bg: #ffffff;
  --seite: #f5f5f7;
  --flaeche: #ffffff;
  --flaeche-leise: #f2f2f4;
  --text: #17171a;
  --text-leise: #5b5b64;
  --rand: #e4e4e8;
  --feldrand: #767680;
  --akzent: #2a5bd7;
  --akzent-text: #ffffff;
  --knopf: #2a5bd7; /* PB-9218: Hauptknopf (.primaer); hell gleich akzent */
  --knopf-text: #ffffff;
  --knopf-hover: #2d62e8; /* PB-9218: wie bisher akzent mit brightness(1.08) */
  --akzent-leise: #e1e1e6;
  --warn-bg: #fff2cc;
  --warn-text: #4d3a00;
  --warn-rand: #d9a900;
  --fehler: #a11217;
  --fehler-bg: #fdeaea;
  --ok: #17663a;
  --fokus: #0b3d91;
  --st-offen: #2a5bd7;
  --st-arbeit: #8a6100;
  --st-fertig: #17663a;
  --st-blockiert: #b3261e;
  --st-aus: #5f5f68;
  --wer-hand: #5e35d6; --wer-hand-flaeche: #f1ebff; /* PB-9209: Marke „Von Hand“ (Skizze auftrag-seite, --du) */
  --prio-hoch: #a64b00;
  --radius: 0.5rem;
  --schrift-xs: 0.75rem;
  --schrift-s: 0.8125rem;
  --schrift-m: 0.9375rem;
  --schrift-l: 1.125rem;
  --schrift-xl: 1.5rem;
  --schrift-zahl: 2rem;
  --schrift-zahl-gross: 2.5rem;
  --zeile-eng: 1.2;
  --zeile-dicht: 1.35;
  --zeile: 1.5;
  --raum-1: 0.25rem;
  --raum-2: 0.5rem;
  --raum-3: 0.75rem;
  --raum-4: 1rem;
  --raum-5: 1.5rem;
  --raum-6: 2rem;
  --abstand: var(--raum-4);
  --feldhoehe: 2.25rem;
  --formbreite: 40rem;
  color-scheme: light;
}

/* PB-10314 (Soll Ricco 03.12., Kunden-Dashboard): dunkle Flächen mit leichtem Blauton wie im Bild (Seite 15,16,20, Karten 22,24,29 gemessen);
   der Abstand Karte zu Seite bleibt wie vorher (etwa 7 Stufen), Rand und Text unverändert hell genug. Gilt auch für „system“ unten. */
:root[data-theme="dunkel"] {
  --bg: #0f1014;
  --seite: #0f1014;
  --flaeche: #16181d;
  --flaeche-leise: #20232a;
  --text: #ececee;
  --text-leise: #a1a1aa;
  --rand: #2a2d34;
  --feldrand: #71717a;
  --akzent: #8cb4ff;
  --akzent-text: #0b1020;
  --knopf: #8cb4ff; /* PB-9574 (Bild 1, 9, 13; Architekt 03.12.): dunkel hellblau mit dunkler Schrift, wie akzent (ersetzt PB-9218) */
  --knopf-text: #0b1020;
  --knopf-hover: #a8c6ff;
  --akzent-leise: #2e3038;
  --warn-bg: #3a2f08;
  --warn-text: #ffe9a8;
  --warn-rand: #b88a00;
  --fehler: #ff9a9d;
  --fehler-bg: #3b1618;
  --ok: #5fd39a;
  --fokus: #b9d0ff;
  --st-offen: #7cb0ff;
  --st-arbeit: #e8c14e;
  --st-fertig: #4fd18f;
  --st-blockiert: #ff7b7b;
  --st-aus: #9a9aa3;
  --wer-hand: #b39cff; --wer-hand-flaeche: #231a3d;
  --prio-hoch: #ff9f4a;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #0f1014;
  --seite: #0f1014;
    --flaeche: #16181d;
    --flaeche-leise: #20232a;
    --text: #ececee;
    --text-leise: #a1a1aa;
    --rand: #2a2d34;
    --feldrand: #71717a;
    --akzent: #8cb4ff;
    --akzent-text: #0b1020;
    --knopf: #8cb4ff; /* PB-9574 (Bild 1, 9, 13; Architekt 03.12.): dunkel hellblau mit dunkler Schrift, wie akzent (ersetzt PB-9218) */
    --knopf-text: #0b1020;
    --knopf-hover: #a8c6ff;
    --akzent-leise: #2e3038;
    --warn-bg: #3a2f08;
    --warn-text: #ffe9a8;
    --warn-rand: #b88a00;
    --fehler: #ff9a9d;
    --fehler-bg: #3b1618;
    --ok: #5fd39a;
    --fokus: #b9d0ff;
    --st-offen: #7cb0ff;
    --st-arbeit: #e8c14e;
    --st-fertig: #4fd18f;
    --st-blockiert: #ff7b7b;
    --st-aus: #9a9aa3;
    --wer-hand: #b39cff; --wer-hand-flaeche: #231a3d;
    --prio-hoch: #ff9f4a;
    color-scheme: dark;
  }
}

/* PB-6185: Wo hell fest steht (die öffentliche Website, Website\Ansicht; im Kundenbereich die eigene Wahl "hell"), dunkelt auch ein Browser
   mit automatischem Dunkelmodus die Seite nicht ab ("only"; gemessen mit Chrome, Dunkelmodus für Webinhalte). */
:root[data-theme="hell"] { color-scheme: only light; }

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--schrift-m);
  line-height: var(--zeile);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--akzent); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
}

.sprung {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--flaeche);
  color: var(--text);
  padding: 0.5rem 1rem;
  z-index: 10;
}
/* PB-10236 (WCAG 2.4.11): beim Fokus über allem, auch über dem festen Kopf des Rahmens (z 20) und offenen Fenstern (z 100) */
.sprung:focus { left: 0.5rem; top: 0.5rem; z-index: 200; }

.nur-leser {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

h1 { font-size: var(--schrift-xl); line-height: var(--zeile-eng); margin: 0 0 var(--abstand); }
h2 { font-size: var(--schrift-l); line-height: var(--zeile-dicht); margin: var(--raum-5) 0 var(--raum-2); }
/* Dritte Ebene nur im Betrieb fest (ohne Gewicht, damit jede Bereichsregel vorgeht); der Kundenbereich behält die Vorgabe des Browsers */
:where(body.betrieb) h3 { font-size: var(--schrift-m); line-height: var(--zeile-dicht); margin: var(--raum-4) 0 var(--raum-2); }
p { margin: 0 0 var(--abstand); }


/* PB-9492 (Ricco 02.12.2026 22:42): Scroll-Balken unsichtbar, dünn; erst beim Überfahren leise sichtbar (22 % der Textfarbe, passt
   hell und dunkel). Gilt überall, wo basis.css lädt: Kundenseiten, Betrieb, Website und das Rahmen-Paket (rahmen.css). Rollen bleibt
   mit Rad, Tasten und Finger wie vorher. Einzelne Stellen mit scrollbar-width: none bleiben ganz ohne Balken. */
* { scrollbar-width: thin; scrollbar-color: transparent transparent; }
*:hover { scrollbar-color: color-mix(in srgb, currentColor 22%, transparent) transparent; }

/* Gerüst: Seitenleiste links (Desktop), Kopfzeile oben und Tab-Leiste unten (Handy) */
.rahmen { display: flex; flex: 1; }
.leiste {
  width: 15rem;
  flex: none;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  padding: 0.75rem;
  background: var(--flaeche-leise);
  border-right: 1px solid var(--rand);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.marke { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: var(--schrift-l); color: var(--text); text-decoration: none; }
.kopf { padding: 0.75rem var(--abstand); background: var(--flaeche); border-bottom: 1px solid var(--rand); }
main { flex: 1; min-width: 0; padding: 1.5rem 2rem; max-width: 80rem; width: 100%; }
body.solo main { margin: 0 auto; max-width: 28rem; }
.fuss { padding: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; font-size: var(--schrift-s); color: var(--text-leise); border-top: 1px solid var(--rand); }
.fuss a { color: var(--text-leise); text-decoration: none; } .fuss a:hover, .fuss a:focus-visible { color: var(--text); text-decoration: underline; } /* PB-10311 (Soll Ricco 03.12.): Links ohne Unterstrich, beim Zeigen und mit Fokus unterstrichen */

.firmenkopf { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.4rem; color: var(--text); text-decoration: none; font-weight: 600; border-radius: var(--radius); min-width: 0; }
.firmenlogo { width: 1.6rem; height: 1.6rem; flex: none; border-radius: 0.4rem; background: var(--akzent); color: var(--akzent-text); display: grid; place-items: center; font-size: var(--schrift-s); font-weight: 700; }
.firmenname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sym { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.leiste nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.125rem; }
.leiste nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}
.leiste nav a:hover { background: var(--akzent-leise); }
.leiste nav a[aria-current="page"] { background: var(--akzent-leise); font-weight: 600; }
.nav-aktionen { margin-bottom: 0.25rem; }
.abschnitt { margin: 0.9rem 0.6rem 0.25rem; font-size: var(--schrift-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-leise); font-weight: 600; }
.zaehler {
  margin-left: auto;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  min-width: 1.4rem;
  padding: 0 0.4rem;
  text-align: center;
  font-size: var(--schrift-s);
  font-weight: 700;
}

.konto-menue { margin-top: auto; position: relative; }
/* PB-4390: Sonne und Mond neben dem Konto (Kunde: unten in der Leiste, am Handy oben rechts; Betrieb: Kopfzeile rechts). Der gewählte Knopf
   trägt Fläche und Ring (nie die Farbe allein), Vorlese-Programme hören aria-pressed. */
.konto-zeile { margin-top: auto; display: flex; align-items: center; gap: 0.25rem; min-width: 0; }
.konto-zeile .konto-menue { flex: 1; min-width: 0; margin-top: 0; }
.hell-dunkel { display: inline-flex; flex: none; align-items: center; gap: 0.125rem; margin: 0; padding: 0.125rem; border: 1px solid transparent; border-radius: 999px; background: var(--flaeche-leise); } /* PB-10440 (Bild 1 und 2): graue Kapsel ohne sichtbaren Rand */
.hd-knopf { display: inline-grid; place-items: center; width: 2rem; height: 2rem; min-height: 2rem; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--text-leise); cursor: pointer; }
.hd-knopf:hover { background: var(--akzent-leise); color: var(--text); } /* PB-10440: die Kapsel ist schon flaeche-leise */
.hd-knopf[aria-pressed="true"] { background: var(--flaeche); color: var(--text); box-shadow: 0 0 0 1px var(--feldrand), 0 1px 2px rgba(0, 0, 0, 0.06); } /* PB-10440: helle Pille wie im Bild, kein blauer Rand; Rand in feldrand wie der aktive Punkt der Leiste (PB-8519, ohne Farbe erkennbar) */
@media (max-width: 47.99rem) { .hd-knopf { width: 2.5rem; height: 2.5rem; min-height: 2.5rem; } }
.konto-knopf { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.5rem; border-radius: var(--radius); min-width: 0; }
.konto-knopf::-webkit-details-marker { display: none; }
.konto-knopf:hover, .konto-menue[open] > .konto-knopf { background: var(--akzent-leise); }
.konto-person { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; text-align: left; }
.konto-rolle { font-size: .75rem; color: var(--text-leise); }
.konto-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 1.6rem; height: 1.6rem; flex: none; border-radius: 50%; background: var(--akzent-leise); color: var(--text); display: grid; place-items: center; font-size: var(--schrift-xs); font-weight: 700; border: 1px solid var(--rand); }
.menue {
  position: absolute;
  bottom: calc(100% + 0.4rem);
  left: 0;
  width: 17rem;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 0.75rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  padding: 0.5rem;
  z-index: 20;
}
.menue-kopf { display: flex; gap: 0.6rem; align-items: center; padding: 0.4rem 0.4rem 0.6rem; border-bottom: 1px solid var(--rand); margin: 0 0 0.4rem; }
.menue-person { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.km-rolle { margin-left: auto; flex: none; font-size: .75rem; font-weight: 600; color: var(--text-leise); border: 1px solid var(--rand); border-radius: 99px; padding: 1px 8px; } /* PB-9704b */
.menue ul { list-style: none; margin: 0; padding: 0; }
.menue a, .menue-knopf {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.menue a:hover, .menue-knopf:hover, .menue a[aria-current="page"] { background: var(--flaeche-leise); }
.nur-mobil, .tableiste { display: none; }


/* Mehr-Seite am Handy (PB-1113): große Tippflächen, eine Spalte */
.mehr-liste { list-style: none; margin: 0 0 1rem; padding: 0; }
.mehr-liste a { display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--rand); color: var(--text); text-decoration: none; }
.mehr-liste a:hover, .mehr-liste a:focus-visible { background: var(--flaeche-leise); }

/* Rahmen des Betriebs (PB-3945a): Kopfzeile über die ganze Breite, darunter links die Leiste in Gruppen, rechts der Inhalt.
   Eigene Klassen (bk- Kopfzeile, bl- Leiste), damit der Kundenbereich unberührt bleibt. Farben nur aus den Variablen in basis.css.
   Die Höhe der Kopfzeile (3.25rem) steht an drei Stellen: .bk, .bl top und .bl height. */
.bk { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 0.75rem; height: 3.25rem; padding: 0 1rem; background: var(--flaeche); border-bottom: 1px solid var(--rand); }
.bk-marke { flex: none; font-size: var(--schrift-l); border-radius: var(--radius); }
.bk-bereich { margin-left: 0.1rem; padding: 0.05rem 0.5rem; border: 1px solid var(--rand); border-radius: 999px; font-size: var(--schrift-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-leise); }
.bk-platz { flex: 1; min-width: 0; }
/* Suchfeld über alles (PB-3944b): ein GET-Formular, ohne Skript. Am schmalen Handy bleibt nur der Knopf (anpassung.css). */
.bk-suche { display: flex; align-items: center; gap: 0.4rem; max-width: 30rem; }
.bk-suche input { flex: 1; min-width: 0; padding: 0.35rem 0.6rem; }
.bk-suche button { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.7rem; }
/* PB-9988 (Bild 12): Ab 45rem sieht die Suche aus wie ein Knopf: Funkeln links, Feld als Pille, „Strg K“ rechts (nur mit rahmen.js).
   Abgeschickt wird mit der Eingabetaste, der Knopf „Suchen“ bleibt im Formular und kommt am Handy wieder (anpassung.css). */
@media (min-width: 45rem) {
  .bk-suche { position: relative; max-width: 15rem; } /* Breite wie Bild 12 (Bild/Klick B6) */
  .bk-suche-zeichen { position: absolute; left: 0.7rem; width: 1rem; height: 1rem; color: var(--akzent); pointer-events: none; }
  .bk-suche input { min-height: 2rem; padding-left: 2.1rem; padding-right: 3.2rem; font-size: 0.875rem; background: var(--suche-grund); border: 1px solid transparent; border-radius: var(--radius); text-overflow: ellipsis; }
  .bk-suche input:focus { border-color: var(--akzent); background: var(--flaeche); }
  .bk-suche button { display: none; }
}
.bk-konto { flex: none; margin-top: 0; }
.bk-konto .konto-knopf { max-width: 20rem; }
.bk-stellung { font-size: var(--schrift-xs); color: var(--text-leise); }
/* PB-10439 (Soll-Ist R1, Bild 11/12): Name fett, Rolle darunter; heller Kreis in beiden Darstellungen */
.bk-person { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.bk-person .konto-name { font-weight: 600; }
.bk-konto .konto-knopf .avatar { background: #fbe3e6; color: #9f1d3a; }
.bk-konto .menue { bottom: auto; top: calc(100% + 0.4rem); left: auto; right: 0; max-width: calc(100vw - 1.5rem); }
.betrieb-rahmen { flex: 1; display: flex; align-items: flex-start; min-width: 0; }
body.betrieb main { max-width: 100rem; }
body.betrieb main > p:not([class]) { max-width: 75ch; }
.bl { flex: none; width: 14.5rem; position: sticky; top: 3.25rem; z-index: 4; height: calc(100vh - 3.25rem); overflow-y: auto; padding: var(--raum-2); background: var(--flaeche-leise); border-right: 1px solid var(--rand); }
.bl-knopf { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0.4rem 0.6rem; border-radius: var(--radius); font-weight: 600; }
.bl-knopf::-webkit-details-marker { display: none; }
.bl-knopf::before { content: ""; flex: none; width: 1.1rem; height: 0.8rem; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.bl-knopf:hover, .bl-klappe[open] > .bl-knopf { background: var(--akzent-leise); }
.bl-knopf-ort { margin-left: auto; min-width: 0; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Gruppen der Leiste (PB-4330): jede Gruppe ist ein <details>, ohne Skript zu öffnen und zu schließen. Offen stehen Start, Arbeit und
   die Gruppe der aktiven Seite (Betrieb\Navigation::rahmen, nur aus der Seite abgeleitet, nichts wird gespeichert). Jede Zeile ist
   mindestens 2 rem (32 px) hoch. Der Fokusring sitzt innen (outline-offset negativ), damit ihn der rollende Kasten nie abschneidet. */
.bl-nav ul { list-style: none; margin: 0; padding: 0 0 var(--raum-1); }
.bl-gruppe + .bl-gruppe { margin-top: var(--raum-1); }
.bl-nav .abschnitt { display: flex; align-items: center; gap: var(--raum-2); min-height: 2rem; margin: 0; padding: 0 var(--raum-2); border-radius: var(--radius); font-size: var(--schrift-xs); line-height: var(--zeile-dicht); cursor: pointer; list-style: none; }
.bl-nav .abschnitt::-webkit-details-marker { display: none; }
.bl-nav .abschnitt::after { content: ""; flex: none; width: 0.4rem; height: 0.4rem; margin-left: auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.bl-gruppe[open] > .abschnitt::after { transform: rotate(45deg); }
.bl-nav .abschnitt:hover { background: var(--akzent-leise); color: var(--text); }
.bl-gruppe-aktiv > .abschnitt { color: var(--text); }
/* PB-4349: Symbol und Punkt am Symbol erscheinen nur in der schmalen Schiene (unten); sonst steht der Text wie bisher. */
.bl-nav .bl-sym, .bl-nav .bl-punkt { display: none; }
.bl-nav a { display: flex; align-items: center; gap: var(--raum-2); min-height: 2rem; padding: var(--raum-1) var(--raum-2) var(--raum-1) var(--raum-3); border-radius: var(--radius); color: var(--text); text-decoration: none; font-size: var(--schrift-s); line-height: var(--zeile-dicht); overflow-wrap: anywhere; }
.bl-nav a:hover { background: var(--akzent-leise); }
.bl-nav a[aria-current="page"] { background: var(--akzent-leise); font-weight: 600; box-shadow: inset 3px 0 0 var(--akzent); }
.bl-nav a:focus-visible, .bl-nav .abschnitt:focus-visible, .bl-knopf:focus-visible { outline-offset: -3px; }
.bl-nav .zaehler { flex: none; min-width: 1.3rem; font-size: var(--schrift-xs); line-height: var(--zeile-dicht); }
/* PB-10535 (Soll-Ist R7, Bild 11/12): unten „Live-Hilfe“, durch eine Linie abgetrennt; in der Schiene nur das Zeichen ganz unten */
.bl-hilfe { display: flex; align-items: center; gap: var(--raum-2); min-height: 2rem; margin-top: var(--raum-4); padding: var(--raum-2); border-top: 1px solid var(--rand); color: var(--text); text-decoration: none; font-size: var(--schrift-s); }
.bl-hilfe:hover { background: var(--akzent-leise); }
/* PB-10535 (Soll-Ist R3): oben „Menü“ mit Kachel-Zeichen und Stecknadel rechts; gedrückt (angeheftet) ist die Nadel blau */
.bl-menue { margin: 0 0 var(--raum-2); }
.bl-menue button { display: flex; align-items: center; gap: var(--raum-2); width: 100%; min-height: 2.25rem; padding: var(--raum-1) var(--raum-2); border: 0; border-radius: var(--radius); background: none; color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.bl-menue button:hover { background: var(--akzent-leise); }
.bl-menue-sym { flex: none; width: 1.1rem; height: 1.1rem; }
.bl-pin { flex: none; width: 0.55rem; height: 0.55rem; margin-left: auto; border: 2px solid var(--text-leise); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.bl-menue button[aria-pressed="true"] .bl-pin { border-color: var(--akzent); background: var(--akzent); }
.bl-hilfe-sym { flex: none; width: 1.1rem; height: 1.1rem; color: var(--text-leise); }
/* PB-10439 (Soll-Ist R4 bis R6, Bild 11): jeder Punkt mit Zeichen; Gruppentitel größer und kräftiger mit mehr Luft; der aktive Punkt
   blau getönt mit dem Strich links außerhalb der Fläche und blauer Zahl. Die Schiene (unten) bleibt, wie sie ist. */
.bl-nav .bl-punkt-sym { flex: none; width: 1.1rem; height: 1.1rem; color: var(--text-leise); }
.bl-nav a { position: relative; padding-left: var(--raum-2); }
.bl-nav .abschnitt { min-height: 2.25rem; font-size: var(--schrift-s); font-weight: 700; letter-spacing: 0.06em; color: var(--text-leise); }
.bl-gruppe + .bl-gruppe { margin-top: var(--raum-2); }
.bl-nav a[aria-current="page"] { background: color-mix(in srgb, var(--akzent) 16%, transparent); color: var(--text); box-shadow: none; }
.bl-nav a[aria-current="page"]::before { content: ""; position: absolute; left: calc(-1 * var(--raum-2)); top: 0.25rem; bottom: 0.25rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--akzent); }
.bl-nav a[aria-current="page"] .bl-punkt-sym { color: var(--akzent); }
.bl-nav a[aria-current="page"] .zaehler { background: var(--akzent); color: var(--akzent-text); }
/* Breiter Bildschirm: Die Leiste steht immer offen, der Knopf "Menü" entfällt. Die Klappe bleibt ein <details> (am Handy klappt sie
   ohne Skript); offen gehalten wird sie hier über ihren Inhalts-Kasten. Ein Browser, der das nicht kennt, zeigt weiter den Knopf. */
@media (min-width: 48rem) {
  @supports selector(::details-content) {
    .bl-knopf { display: none; }
    .bl-klappe::details-content { content-visibility: visible; }
    /* Schiene (PB-4330, Klasse br-schiene am Rahmen; Betrieb\Navigation::SCHIENE nennt die Seiten, heute nur die Zentrale): Die
       Leiste ist 3.5 rem schmal und zeigt je Gruppe ihr Linien-Symbol (PB-4349; Name als title und als Text für Vorlese-Programme). Mit der Maus darüber oder mit dem Fokus darin legt
       sie sich in voller Breite über den Inhalt, ohne ihn zu verschieben. Ohne Skript, ohne Bewegung. Eine Gruppe mit Zähler
       trägt in der Schiene einen Punkt am Symbol (mit Text für Vorlese-Programme); die Zahl selbst steht in der offenen Leiste. */
    .br-schiene > .bl { width: 3.5rem; padding: 0; overflow: visible; background: none; border-right: 0; }
    .br-schiene .bl-nav { position: absolute; top: 0; bottom: 0; left: 0; width: 3.5rem; overflow-x: hidden; overflow-y: auto; padding: var(--raum-2); background: var(--flaeche-leise); border-right: 1px solid var(--rand); }
    .br-schiene > .bl:not(:hover):not(:focus-within) ul { display: none; }
    .br-schiene > .bl:not(:hover):not(:focus-within) .abschnitt { position: relative; justify-content: center; padding: 0; }
    .br-schiene > .bl:not(:hover):not(:focus-within) .bl-sym { display: block; width: 1.4rem; height: 1.4rem; }
    .br-schiene > .bl:not(:hover):not(:focus-within) .bl-titel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .br-schiene > .bl:not(:hover):not(:focus-within) .bl-punkt { display: block; position: absolute; top: 0.3rem; right: 0.3rem; }
    .br-schiene > .bl:not(:hover):not(:focus-within) .bl-punkt-zeichen { display: block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 2px var(--flaeche-leise); }
    .br-schiene > .bl:not(:hover):not(:focus-within) .abschnitt::after { display: none; }
    .br-schiene .bl-nav { display: flex; flex-direction: column; }
    .br-schiene .bl-hilfe { margin-top: auto; }
    .br-schiene > .bl:not(:hover):not(:focus-within) .bl-menue button { justify-content: center; padding: var(--raum-2) 0; }
    .br-schiene > .bl:not(:hover):not(:focus-within) .bl-menue-text, .br-schiene > .bl:not(:hover):not(:focus-within) .bl-pin { display: none; }
    .br-schiene > .bl:not(:hover):not(:focus-within) .bl-hilfe { justify-content: center; padding: var(--raum-2) 0; }
    .br-schiene > .bl:not(:hover):not(:focus-within) .bl-hilfe-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .br-schiene > .bl:not(:hover):not(:focus-within) .bl-gruppe-aktiv > .abschnitt { background: var(--akzent-leise); box-shadow: inset 3px 0 0 var(--akzent); font-weight: 700; }
    .br-schiene > .bl:hover .bl-nav, .br-schiene > .bl:focus-within .bl-nav { width: 14.5rem; box-shadow: 8px 0 28px rgba(0, 0, 0, 0.18); }
  }
}
/* PB-5129: Speicherbalken im Konto-Menü */
.sp-balken { padding: 0.2rem 0.4rem 0.6rem; border-bottom: 1px solid var(--rand); margin: 0 0 0.4rem; font-size: 0.85rem; }
.sp-balken progress { display: block; width: 100%; height: 0.4rem; border: 0; border-radius: 999px; background: var(--rand); color: var(--akzent); appearance: none; -webkit-appearance: none; overflow: hidden; }
.sp-balken progress::-webkit-progress-bar { background: var(--rand); border-radius: 999px; }
.sp-balken progress::-webkit-progress-value { background: var(--akzent); border-radius: 999px; }
.sp-balken progress::-moz-progress-bar { background: var(--akzent); }
.sp-hinweis progress { color: var(--warn-rand); }
.sp-hinweis progress::-webkit-progress-value { background: var(--warn-rand); }
.sp-hinweis progress::-moz-progress-bar { background: var(--warn-rand); }
.sp-voll progress { color: var(--fehler); }
.sp-voll progress::-webkit-progress-value { background: var(--fehler); }
.sp-voll progress::-moz-progress-bar { background: var(--fehler); }

/* PB-5193 (ENT-31): im Kundenbereich keine linke Spalte. Die Leiste ist der Kopfbalken oben; Einstellungen klappen am Profil rechts oben auf (ohne Skript). */
.rahmen-oben { flex-direction: column; }
.rahmen-oben > .leiste { position: sticky; top: 0; z-index: 20; width: 100%; height: auto; overflow: visible; flex-direction: row; align-items: center; gap: var(--raum-4, 1rem); padding: 0.5rem var(--raum-5, 1.25rem); border-right: 0; border-bottom: 1px solid var(--rand); background: var(--flaeche); }
.rahmen-oben > .leiste .firmenkopf { flex: none; max-width: 16rem; }
.kopf-suche { flex: 1 1 auto; max-width: 32rem; margin: 0 auto; }
.kopf-suche input { width: 100%; box-sizing: border-box; min-height: 2.5rem; border-radius: 999px; padding: 0 var(--raum-4, 1rem); }
.rahmen-oben > .leiste .konto-zeile { margin-top: 0; flex: none; }
.rahmen-oben > .leiste .konto-zeile .konto-menue { flex: none; }
.rahmen-oben .menue { bottom: auto; top: calc(100% + 0.4rem); left: auto; right: 0; }
.rahmen-oben .menue .abschnitt { margin: 0.6rem 0.6rem 0.25rem; }
@media (max-width: 47.99rem) {
  .rahmen-oben > .leiste { position: static; padding: 0.5rem 0.75rem; gap: 0.5rem; flex-wrap: wrap; }
  .rahmen-oben > .leiste .firmenname { display: none; }
  .kopf-suche { order: 5; flex-basis: 100%; max-width: none; }
}
/* PB-8101 (E48, ENDSTAND 2): gemeinsamer Kopf, ca. 40 px hoch. Marke links (einziger Rückweg), Ort daneben, Suche schmal (höchstens 240 px).
   Am Handy fällt die Wortmarke weg, das Zeichen bleibt. */
.rahmen-oben > .leiste { min-height: 2.5rem; padding-block: 0.25rem; }
.rk-marke { display: inline-flex; align-items: center; gap: 0.45rem; flex: none; color: var(--text); text-decoration: none; font-weight: 700; }
.rk-marke .logo-klein { width: 1.5rem; height: 1.5rem; }
.rk-ort { display: inline-flex; align-items: center; gap: 0.35rem; flex: none; margin: 0; max-width: 18rem; overflow: hidden; white-space: nowrap; font-weight: 700; color: var(--text); }
/* PB-8901 Bildvergleich (Soll 2-fastmail): „PlattbaseOS / Fastmail“ mit Schrägstrich, Symbol mittig zur Zeile, Firmen-Chip mit Rand, Suche kürzt mit … */
.rk-ort::before { content: "/"; font-weight: 400; color: var(--text-leise); margin-right: 0.15rem; }
.rk-ort > svg { flex: none; width: 1rem; height: 1rem; }
.rk-ort .zp { font-weight: 400; font-size: var(--schrift-xs); color: var(--text-leise); }
.rahmen-oben > .leiste .firmenkopf { border: 1px solid var(--rand); border-radius: var(--radius); padding: 0.2rem 0.6rem 0.2rem 0.3rem; }
.kopf-suche input { text-overflow: ellipsis; }
.kopf-suche input::placeholder { text-overflow: ellipsis; }
.rahmen-oben .kopf-suche { flex: 0 1 17rem; max-width: 17rem; margin: 0 auto 0 0.75rem; } /* PB-9704 (Bild 1): die Suche steht links neben der Firma, Glocke und Konto rechts; PB-10309: 17rem (Soll Ricco 03.12.) */
.rahmen-oben .kopf-suche input, .rahmen-oben .kopf-glocke { min-height: 2rem; }
/* PB-8572: Hinweis ohne Helfer unter dem Feld; sichtbar, sobald das Feld den Fokus hat (Strg K, Klick, Tab), der Kopf bleibt sonst flach */
.kopf-suche { position: relative; }
.kopf-suche-hinweis { display: none; position: absolute; top: calc(100% + 0.3rem); left: 0; right: 0; z-index: 30; margin: 0; padding: 0.4rem 0.6rem; font-size: 0.85rem; color: var(--text); background: var(--flaeche); border: 1px solid var(--rand); border-radius: 0.5rem; }
.kopf-suche:focus-within .kopf-suche-hinweis { display: block; }
@media (min-width: 48rem) {
  .rahmen-oben > .leiste .konto-knopf { padding-block: 0; }
  .rahmen-oben > .leiste .konto-person { line-height: 1.15; }
  .rahmen-oben > .leiste .hell-dunkel { padding: 0; }
  .rahmen-oben > .leiste .hd-knopf { width: 1.75rem; height: 1.75rem; min-height: 1.75rem; }
}
@media (max-width: 47.99rem) {
  .rk-wortmarke, .rk-ort { display: none; }
  .rahmen-oben .kopf-suche { flex-basis: 100%; max-width: none; margin: 0; }
}
/* PB-8102 (ENDSTAND 2): Konto-Menü als Overlay in zwei Spalten, blättert nie (keine Höhengrenze, kein Rollbalken). Öffnet per Klick
   (details) und beim Darüberfahren oder Fokus über ::details-content (wo der Browser es kennt; sonst bleibt der Klick). */
.rahmen-oben .konto-menue > .menue { width: min(36rem, calc(100vw - 2rem)); overflow: visible; }
.km-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--raum-4, 1rem); }
.km-gruppe ul { list-style: none; margin: 0; padding: 0; }
.km-bald { display: block; padding: 0.35rem 0.6rem; color: var(--text-leise); }
.km-bald-zeichen { font-size: var(--schrift-xs); border: 1px solid var(--rand); border-radius: 999px; padding: 0 0.4rem; }
.km-unten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: var(--raum-2, 0.5rem); border-top: 1px solid var(--rand); }
.km-recht { display: flex; flex-wrap: wrap; gap: 0 0.25rem; margin: 0.25rem 0 0; font-size: var(--schrift-xs); } /* PB-FD8-glas-gui: Impressum, Datenschutz, Nutzungsbedingungen */
.menue .km-recht a { width: auto; padding: 0.25rem 0.6rem; color: var(--text-leise); }
@media (hover: hover) and (min-width: 48rem) {
  .rahmen-oben .konto-menue:not([open]):not(.rahmen-zu):hover::details-content, .rahmen-oben .konto-menue:not([open]):not(.rahmen-zu):focus-within::details-content { content-visibility: visible; display: contents; }
}
@media (max-width: 21.99rem) { .km-spalten { grid-template-columns: 1fr; } } /* PB-9121: zwei Spalten bis 352 px, sonst blättert das Menü am Handy (G-6) */
/* PB-5194: Posteingang als Glocke im Kopfbalken, kleine Weiter-Links unter den Dashboard-Karten */
.kopf-glocke { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.5rem; padding: 0 0.6rem; border-radius: var(--radius); color: var(--text); text-decoration: none; flex: none; }
.kopf-glocke:hover, .kopf-glocke[aria-current="page"] { background: var(--akzent-leise); }
.db-weiter { margin: var(--raum-2, 0.5rem) 0 0; font-size: var(--schrift-s); }
/* PB-5130: Firmen-Umschalter oben links, ohne Skript (details/summary); Pfeil ist Schmuck */
.firmen-umschalter { position: relative; min-width: 0; }
.firmen-umschalter > summary { cursor: pointer; list-style: none; }
.firmen-umschalter > summary::-webkit-details-marker { display: none; }
.firmen-pfeil { flex: none; width: 0.45rem; height: 0.45rem; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.firmen-umschalter[open] .firmen-pfeil { transform: rotate(-135deg); }
.firmen-liste { position: absolute; left: 0; z-index: 3; min-width: 15rem; max-width: 22rem; margin-top: var(--raum-2); padding: var(--raum-2); background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
.firmen-liste ul { list-style: none; margin: 0; padding: 0; }
.firmen-liste p { margin: var(--raum-1) 0; }
.firmen-wahl { display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left; }
/* PB-5909: Hinweis "Sie arbeiten für …" bleibt beim Blättern oben sichtbar */
.agentur-hinweis { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); margin-bottom: var(--raum-2); }
/* PB-8109: Glocke im Kopf, Overlay ohne Skript (details/summary); höchstens fünf Meldungen, blättert nie */
.glocke-menue { position: relative; flex: none; }
.glocke-menue > summary { cursor: pointer; list-style: none; }
.glocke-menue > summary::-webkit-details-marker { display: none; }
.glocke-menue[open] > .kopf-glocke { background: var(--akzent-leise); }
.glocke-overlay { width: min(24rem, calc(100vw - 1.5rem)); }
.glocke-overlay li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.75rem; row-gap: 0.15rem; align-items: center; padding: 0.5rem 0; border-top: 1px solid var(--rand); } /* PB-9704: Text links, Knopf rechts wie „Wartet auf Sie“ */
.glocke-overlay li > span { grid-column: 1; }
.glocke-overlay li > a { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.75rem; border: 1px solid var(--akzent); border-radius: 8px; background: var(--flaeche); color: var(--akzent); white-space: nowrap; text-decoration: none; }
/* PB-8109d: blättert nie, auch bei fünf Texten mit 300 Zeichen: je Meldung höchstens zwei Zeilen, der ganze Text steht unter "Alle anzeigen" */
.glocke-overlay li .leise { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
/* PB-10606 (Soll-Ist 10603): Am Handy steht die Glocke mittig im Kopf, das rechtsbündige Panel lief links aus dem Bild (x = -161 bei 390 px).
   Unter 48rem hängt es am Kopfbalken und nimmt dessen volle Breite (je 0.5rem Rand). Mit Glas ist der Balken über backdrop-filter ohnehin der Bezug. */
@media (max-width: 47.99rem) {
  .rahmen-oben > .leiste { position: relative; }
  .rahmen-oben .glocke-menue { position: static; }
  .rahmen-oben .glocke-overlay { left: 0.5rem; right: 0.5rem; width: auto; }
}
/* PB-8482: Kopf nach der Skizze (1-dashboard). Suche grau ohne Rand mit Funkeln vorn, "Strg K" nur, wenn rahmen.js die Taste setzt
   (Klasse rahmen-taste an html); Glocke mit blauer Zahl als Abzeichen; Firmen-Chip mit Doppelpfeil; Avatar farbig (eine Farbe für alle). */
:root { --avatar-grund: #fbe3e6; --avatar-text: #9f1d3a; --suche-grund: #eeeff3; }
:root[data-theme="dunkel"] { --avatar-grund: #4a2530; --avatar-text: #ffc9d4; --suche-grund: #262830; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] { --avatar-grund: #4a2530; --avatar-text: #ffc9d4; --suche-grund: #262830; } }
.kopf-suche { position: relative; display: flex; align-items: center; }
.kopf-suche > svg { position: absolute; left: 0.7rem; width: 1rem; height: 1rem; color: var(--akzent); pointer-events: none; }
.kopf-suche input { background: var(--suche-grund); border: 1px solid transparent; border-radius: var(--radius); padding-left: 2.1rem; }
.kopf-suche input:focus { border-color: var(--akzent); background: var(--flaeche); }
.kopf-taste { display: none; position: absolute; right: 0.4rem; padding: 0 0.35rem; border: 1px solid var(--rand); border-radius: 0.3rem; background: var(--flaeche); font: inherit; font-size: var(--schrift-xs); color: var(--text-leise); pointer-events: none; }
.rahmen-taste .kopf-taste { display: inline-block; }
.rahmen-taste .kopf-suche input { padding-right: 3.6rem; }
@media (max-width: 759px), (pointer: coarse) { .rahmen-taste .kopf-taste[aria-hidden] { display: none; } .rahmen-taste .kopf-suche input { padding-right: var(--raum-2, 0.5rem); } } /* PB-9422 (E65 PB-9704, Soll-Ist Kopf): am Handy keine Tastatur, also kein „Strg K“ */
.kopf-glocke { position: relative; }
.kopf-glocke .zaehler { position: absolute; top: -0.15rem; right: 0.05rem; min-width: 1.05rem; padding: 0 0.25rem; border-radius: 999px; background: var(--akzent); color: var(--akzent-text); font-size: 0.7rem; line-height: 1.05rem; text-align: center; }
.firmen-pfeil { position: relative; width: 0.5rem; height: 0.8rem; border: 0; transform: none; }
.firmen-pfeil::before, .firmen-pfeil::after { content: ""; position: absolute; left: 0.1rem; width: 0.3rem; height: 0.3rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.firmen-pfeil::before { top: 0.1rem; transform: rotate(-135deg); }
.firmen-pfeil::after { bottom: 0.1rem; transform: rotate(45deg); }
.firmen-umschalter[open] .firmen-pfeil { transform: none; }
.konto-knopf .avatar, .menue-kopf .avatar { background: var(--avatar-grund); color: var(--avatar-text); font-weight: 700; }
/* Soll-Ist K18 (Bild 7): hinter dem Ort im Kopf nur der Punkt; das Wort bleibt für Vorlese-Programme. */
.rk-ort .zp-wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* PB-loop (L2, Bild 8): leiser Zusatz hinter dem Ort im Kopf („Agent Builder · Routine“). */
.rk-ort-zusatz { font-weight: 400; font-size: var(--schrift-s); color: var(--text-leise); }

/* Formulare und Knöpfe */
label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--flaeche);
  border: 1px solid var(--feldrand);
  border-radius: var(--radius);
  padding: 0.5rem 0.6rem;
  width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: auto; }
button, .knopf {
  font: inherit;
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--feldrand);
  border-radius: var(--radius);
  background: var(--flaeche);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
button:hover, .knopf:hover { background: var(--flaeche-leise); }
.primaer, button[type="submit"].primaer {
  background: var(--knopf);
  color: var(--knopf-text);
  border-color: var(--knopf);
  font-weight: 600;
}
.primaer:hover { background: var(--knopf-hover); border-color: var(--knopf-hover); }
/* PB-9634: Am Handy ist jeder Knopf mindestens 44 px hoch (Regel der Skizzen, Befund H4 aus PB-9536: 41 px).
   Der Innenabstand wächst mit, damit eine Zeile Text in der Mitte steht. */
@media (max-width: 30rem) {
  .knopf { min-height: 2.75rem; padding-top: calc((2.75rem - 1.5em - 2px) / 2); padding-bottom: calc((2.75rem - 1.5em - 2px) / 2); }
}
/* PB-9635: Am Handy ist jede Trefferfläche mindestens 44 × 44 px. Gemessen auf 27 Kundenseiten bei 390 px (Liste in KnopfHandyTest).
   Liste A wird sichtbar mindestens 44 px hoch. Liste B behält ihr Maß und bekommt eine unsichtbare Trefferfläche (::after, mittig,
   mindestens 44 × 44 px, nur wo das Element selbst kleiner ist). Nicht hier: die Mini-Tools-Leiste (Bau-MiniTools, PB-9484). */
@media (max-width: 30rem) {
  button:not([class]), button.primaer, select, .menue a, .menue-knopf, .glocke-posteingang, .db-kachel-menue .db-mt-liste a { min-height: 2.75rem; }
  button:not([class]), button.primaer { padding-top: calc((2.75rem - 1.5em - 2px) / 2); padding-bottom: calc((2.75rem - 1.5em - 2px) / 2); }
  .zeile-titel { padding-block: 0.7rem; margin-block: -0.7rem; }
  .sk-wahl-feld .sk-eintrag { display: flex; flex-direction: column; justify-content: center; min-height: 2.75rem; }
  .hd-knopf, .rk-marke, .firmenkopf, .konto-knopf, .db-kachel-menue > summary, .sk-wahl > summary, .agent-chat-wahl > summary, .app-mehr > summary, .sk-gruppe > summary, .pe-oeffnen { position: relative; }
  .hd-knopf::after, .rk-marke::after, .firmenkopf::after, .kopf-glocke::after, .konto-knopf::after, .db-kachel-menue > summary::after, .sk-wahl > summary::after, .agent-chat-wahl > summary::after, .app-mehr > summary::after, .sk-gruppe > summary::after, .pe-oeffnen::after {
    content: ""; position: absolute; top: min(0px, calc(50% - 1.4rem)); right: min(0px, calc(50% - 1.4rem)); bottom: min(0px, calc(50% - 1.4rem)); left: min(0px, calc(50% - 1.4rem));
  }
}
/* PB-9637: Sonne und Mond: Ihre Trefferflächen überlappen sich nie, ein Fehltipp wählt nie das Gegenteil. Zwischen den Knöpfen
   0.3rem Abstand; jede Fläche reicht nach innen nur bis zur Mitte davon (die halbe Lücke), nach außen wie oben. Knopf 2.5rem
   (geruest.css, unter 48rem) + 2 × 0.15rem = 2.8rem = 44,8 px breit. */
@media (max-width: 30rem) {
  .hell-dunkel { gap: 0.3rem; }
  .hd-knopf:not(:last-of-type)::after { right: -0.15rem; }
  .hd-knopf:not(:first-of-type)::after { left: -0.15rem; }
}
/* PB-9638 (L6 aus PB-9640): Felder, Haken und Optionen am Handy mindestens 44 px. Gemessen bei 390 px auf 33 Seiten (Kunde und
   Mini-Tools): Felder 41/42, Kopfsuche 32, Zeile mit Haken oder Option 23 (der Haken selbst 13, die Zeile ist die Trefferfläche).
   Die Zeile wächst sichtbar, ohne negativen Rand (sonst überlappen untereinander stehende Haken). :where ohne Gewicht: Zeilen mit
   eigenem Maß (.wahlfelder, .optionen, Cookie-Banner) bleiben, wie sie sind. Die Zeile ist das umschließende label oder das label[for] direkt
   hinter dem Haken (Mini-Tools: Original behalten). */
@media (max-width: 30rem) {
  input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="color"], [type="image"]), .rahmen-oben .kopf-suche input { min-height: 2.75rem; }
  :where(label:has(> input[type="checkbox"], > input[type="radio"]), input[type="checkbox"] + label[for], input[type="radio"] + label[for]) { min-height: 2.75rem; padding-block: calc((2.75rem - 1.5em) / 2); }
}
.feld { margin-bottom: var(--abstand); }
.optionen { display: flex; gap: 1rem; flex-wrap: wrap; }
.optionen label { font-weight: 400; display: flex; gap: 0.4rem; align-items: center; }
.fehler { color: var(--fehler); background: var(--fehler-bg); padding: 0.6rem 0.8rem; border-radius: var(--radius); border: 1px solid var(--fehler); }
.hinweis { background: var(--akzent-leise); padding: 0.6rem 0.8rem; border-radius: var(--radius); }
.banner { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-rand); border-radius: var(--radius); padding: 0.75rem 1rem; }
.leise { color: var(--text-leise); }

/* Karten und Listen */
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: var(--abstand); margin-bottom: var(--abstand); }
.karte.hervor { border-color: var(--akzent); border-width: 2px; }
.kacheln { list-style: none; padding: 0; margin: 0 0 var(--abstand); display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; }
.kacheln a { display: block; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 0.75rem; padding: 1rem 1.1rem; text-decoration: none; color: var(--text); }
.kacheln a:hover { border-color: var(--akzent); }
/* PB-5902: Kundenkachel der Agentur: Name ohne Leerstreifen oben, Links in der Kachel bleiben Links (kein Kartenblock) */
.karte > h2:first-child { margin-top: 0; } /* PB-9642 (L2 aus PB-9640): keine 40 px leer über der ersten Überschrift einer Karte (Innenabstand 16 + Rand der h2 24); früher nur .kacheln > li.karte */
.kacheln > li.karte a.knopf { display: inline-block; width: auto; padding: 0.5rem 1rem; border: 1px solid var(--feldrand); border-radius: var(--radius); background: var(--flaeche); color: var(--text); }
.kacheln > li.karte > form { margin: 0 0 var(--raum-2); }
.kacheln > li.karte a:not(.knopf) { display: inline; background: none; border: 0; padding: 0; color: var(--akzent); text-decoration: underline; }
.kacheln .zahl { display: block; font-size: var(--schrift-zahl); font-weight: 700; line-height: var(--zeile-eng); letter-spacing: -0.02em; }
.kacheln .name { color: var(--text-leise); }
.kacheln .unter { display: block; margin-top: var(--raum-1); font-size: var(--schrift-s); line-height: var(--zeile-dicht); color: var(--text-leise); }
.liste { list-style: none; padding: 0; margin: 0; }
.liste li { display: flex; gap: 0.75rem; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-top: 1px solid var(--rand); flex-wrap: wrap; }
.liste li:first-child { border-top: 0; }
.liste .titel { font-weight: 600; flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.status { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--flaeche-leise); border: 1px solid var(--rand); font-size: var(--schrift-s); white-space: nowrap; }
.status.wartet_auf_mich { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-rand); font-weight: 600; }
.status.erledigt { color: var(--ok); }
.marke-dringend { color: var(--fehler); font-weight: 700; font-size: var(--schrift-s); }

table.aufgaben { width: 100%; border-collapse: collapse; }
table.aufgaben th, table.aufgaben td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--rand); vertical-align: top; }
table.aufgaben th { color: var(--text-leise); font-weight: 600; font-size: var(--schrift-s); }
.filter { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: end; margin-bottom: var(--abstand); }
.filter .feld { margin: 0; min-width: 10rem; }
.seiten { display: flex; gap: 0.5rem; align-items: center; margin-top: var(--abstand); flex-wrap: wrap; }

.verlauf { list-style: none; padding: 0; margin: 0 0 var(--abstand); display: flex; flex-direction: column; gap: 0.75rem; }
.verlauf li { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 0.75rem 1rem; }
.verlauf .kopfzeile { color: var(--text-leise); font-size: var(--schrift-s); margin-bottom: 0.25rem; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Zeichen von PlattbaseOS (Teil logo): Farben aus dem Thema, damit es hell und dunkel stimmt */
.logo { flex: none; }
.logo-grund { fill: var(--akzent); }
.logo-strich { stroke: var(--akzent-text); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.logo-klein { width: 1.75rem; height: 1.75rem; }

/* Zustandsmarke (Teil zustand): Zeichen im Kreis und Text. Die Farbe sagt, wer am Zug ist; der Text sagt es immer auch. */
.zustand { display: inline-flex; align-items: center; gap: 0.4rem; vertical-align: middle; }
.zustand .sym { width: 1.15rem; height: 1.15rem; stroke-width: 1.6; flex: none; }
.zustand .voll { fill: currentColor; stroke: none; }
.zustand-text { font-size: var(--schrift-s); }
.zf-aus .sym { color: var(--st-aus); }
.zf-arbeit .sym { color: var(--st-arbeit); }
.zf-wartet .sym { color: var(--prio-hoch); }
.zf-fertig .sym { color: var(--st-fertig); }

/* Karte, Kennzahl, Kartenraster (PB-1105): bei 360 Pixel Breite (22,5 rem) immer eine Spalte */
@media (max-width: 22.5rem) {
  .kacheln, .pakete { grid-template-columns: 1fr; }
}
/* Leerzustand (Teil leer): Überschrift, ein Satz, ein Knopf. Kompakt innerhalb von Karten und Abschnitten. */
.leerzustand { max-width: 36rem; margin: 3rem auto; text-align: center; }
.leerzustand h2, .leerzustand h3 { margin-top: 0; }
.leerzustand-kompakt { margin: 1rem auto; }
/* Im Betrieb sieht jeder leere Zustand gleich aus (PB-4330): ein ruhiger, gestrichelter Kasten über die Breite des Inhalts mit Titel,
   einem Satz und höchstens einer Aktion. Gilt für den Teil leer (.leerzustand) und für die leere Tabelle (Teil tabelle, .daten-leer). */
body.betrieb .leerzustand, .daten-leer { max-width: none; margin: 0 0 var(--abstand); padding: var(--raum-5) var(--raum-4); border: 1px dashed var(--feldrand); border-radius: var(--radius); background: none; text-align: center; }
body.betrieb .leerzustand h2, body.betrieb .leerzustand h3, .daten-leer .leer-titel { margin: 0 0 var(--raum-1); padding: 0; border: 0; font-size: var(--schrift-m); font-weight: 600; line-height: var(--zeile-dicht); letter-spacing: 0; text-transform: none; color: var(--text); }
body.betrieb .leerzustand p { margin: 0 0 var(--raum-3); font-size: var(--schrift-s); }
body.betrieb .leerzustand p:last-child { margin: 0; }

/* Bausteine-Katalog (PB-1111), nur in der Entwicklung */
.katalog-inhalt ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; padding: 0; margin: 0 0 var(--abstand); }
.katalog-raster { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; list-style: none; padding: 0; margin: 0 0 var(--abstand); }
.katalog-raster li { display: inline-flex; align-items: center; gap: 0.5rem; }
.katalog-raster code { color: var(--text-leise); font-size: var(--schrift-s); }

/* Begrüßung neuer Konten (PB-1214): "Später" als kleines Formular unter den Schritten, am Handy umbrechend */
.begruessung-spaeter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: var(--abstand); }

/* Konto und Darstellung (PB-GUI): Knöpfe in einer Reihe, Wahlfelder groß genug für den Daumen */
.knopfreihe { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; }
.wahlfelder label { min-height: 2.75rem; padding: 0.5rem 0.9rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); cursor: pointer; }
.wahlfelder label:has(input:checked) { border-color: var(--akzent); background: var(--akzent-leise); }
.wahlfelder label:focus-within { outline: 3px solid var(--fokus); outline-offset: 2px; }

/* Fehlerseiten (templates/fehler.php, einfach.php; Klasse ohne "fehler", denn das hieße Meldung mit role="alert"): ruhige Karte, großer Code, Wege weiter; am Handy untereinander */
.irrkarte { max-width: 34rem; margin: clamp(2rem, 8vh, 5rem) auto; text-align: center; }
.irrkarte-code { margin: 0 0 0.5rem; font-size: clamp(3.5rem, 14vw, 5.5rem); font-weight: 800; line-height: var(--zeile-eng); letter-spacing: -0.04em; color: var(--akzent); }
.irrkarte h1 { font-size: var(--schrift-xl); margin-bottom: 0.6rem; }
.irrkarte-wege { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 1.5rem 0 0; }
.irrkarte-rahmen { width: 100%; padding: 1rem; }
@media (max-width: 30rem) {
  .irrkarte-wege .knopf { flex: 1 1 100%; }
}

/* Bausteine des Betriebs (PB-4330). Nur Klassen; die Fachseiten setzen sie mit dem nächsten Paket ein.

   Datenblatt: Bezeichnung links, Wert rechts, eine feine Linie je Zeile. Für <dl>:
     <dl class="datenblatt"><dt>Bezeichnung</dt><dd>Wert</dd> ... </dl>   (auch mit <div> um jedes Paar)
     .datenblatt-eng: ohne Linien und dichter, für Karten und Seitenspalten.
   Ein <dl> ohne Klasse im Inhalt des Betriebs sieht von selbst so aus (Regel ohne Gewicht: jede eigene Regel geht vor).

   Zustand: die Marke .stufe mit Punkt und Wort steht in betrieb.css (ok, hinweis, warnung, fehler, neutral).

   Kennzahl: Karte mit Wert, Bezeichnung und freiwilliger Nebenzeile. Als Liste über die Teile kartenraster und kennzahl
   (.kacheln mit .zahl, .name, .unter) oder frei stehend:
     <div class="kennzahl"><span class="kennzahl-wert">12</span><span class="kennzahl-name">Offene Aufträge</span>
     <span class="kennzahl-neben">3 seit gestern</span></div>
     Mehrere nebeneinander: <div class="kennzahlen"> ... </div>. Mit Zustand zusätzlich .kennzahl-ok, -hinweis, -warnung, -fehler
     oder -neutral (Rand links in der Farbe; das Wort dazu trägt die Marke .stufe). */
.datenblatt, :where(body.betrieb main) dl:where(:not([class])) { display: grid; grid-template-columns: minmax(8rem, 15rem) minmax(0, 1fr); margin: 0 0 var(--abstand); max-width: 60rem; flex: 1 1 100%; }
.datenblatt > div, :where(body.betrieb main) dl:where(:not([class])) > div { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; }
.datenblatt dt, :where(body.betrieb main) dl:where(:not([class])) dt { padding: var(--raum-2) var(--raum-4) var(--raum-2) 0; border-bottom: 1px solid var(--rand); font-size: var(--schrift-s); line-height: var(--zeile); color: var(--text-leise); overflow-wrap: anywhere; }
.datenblatt dd, :where(body.betrieb main) dl:where(:not([class])) dd { margin: 0; padding: var(--raum-2) 0; border-bottom: 1px solid var(--rand); min-width: 0; overflow-wrap: anywhere; }
.datenblatt-eng dt, .datenblatt-eng dd { padding-top: var(--raum-1); padding-bottom: var(--raum-1); border-bottom: 0; }
@media (max-width: 30rem) {
  .datenblatt, :where(body.betrieb main) dl:where(:not([class])) { grid-template-columns: minmax(0, 1fr); }
  .datenblatt dt, :where(body.betrieb main) dl:where(:not([class])) dt { padding-bottom: 0; border-bottom: 0; }
  .datenblatt dd, :where(body.betrieb main) dl:where(:not([class])) dd { padding-top: 0; }
}
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--raum-3); margin: 0 0 var(--abstand); }
.kennzahl { display: block; min-width: 0; padding: var(--raum-3) var(--raum-4); background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); color: var(--text); text-decoration: none; }
a.kennzahl:hover { border-color: var(--akzent); }
.kennzahl-wert { display: block; font-size: var(--schrift-zahl); font-weight: 700; line-height: var(--zeile-eng); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kennzahl-name { display: block; margin-top: var(--raum-1); font-size: var(--schrift-s); font-weight: 600; overflow-wrap: anywhere; }
.kennzahl-neben { display: block; margin-top: var(--raum-1); font-size: var(--schrift-s); line-height: var(--zeile-dicht); color: var(--text-leise); }
.kennzahl-ok { border-left: 4px solid var(--ok); }
.kennzahl-hinweis { border-left: 4px solid var(--akzent); }
.kennzahl-warnung { border-left: 4px solid var(--warn-rand); }
.kennzahl-fehler { border-left: 4px solid var(--fehler); }
.kennzahl-neutral { border-left: 4px dashed var(--feldrand); }
.kennzahl-neutral .kennzahl-wert { color: var(--text-leise); }
/* Eine Tabelle ohne Klasse oder mit der bisher regellosen Klasse .tabelle im Inhalt des Betriebs (PB-4330): ruhige Zeilen statt der Vorgabe des Browsers. Ohne Gewicht, wie beim
   Datenblatt: jede eigene Regel geht vor. Listen mit Sortierung und Handy-Karten nimmt weiter der Teil tabelle (table.daten). */
:where(body.betrieb main) table:where(:not([class]), .tabelle) { width: 100%; max-width: 60rem; margin: 0 0 var(--abstand); border-collapse: collapse; font-size: var(--schrift-s); font-variant-numeric: tabular-nums; }
:where(body.betrieb main) table:where(:not([class]), .tabelle) :where(th, td) { padding: var(--raum-2) var(--raum-4) var(--raum-2) 0; border-bottom: 1px solid var(--rand); text-align: left; vertical-align: top; overflow-wrap: break-word; }
:where(body.betrieb main) table:where(:not([class]), .tabelle) :where(thead th) { font-size: var(--schrift-xs); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-leise); white-space: nowrap; }
:where(body.betrieb main) table:where(:not([class]), .tabelle) :where(caption) { padding: 0 0 var(--raum-2); text-align: left; font-weight: 600; }
/* Kennzahl ohne Link im Betrieb: dieselbe Karte wie mit Link, damit eine Reihe nicht halb aus Kästen und halb aus losen Zahlen besteht */
body.betrieb .kacheln > li:not(:has(> a)) { min-width: 0; padding: var(--raum-4); background: var(--flaeche); border: 1px solid var(--rand); border-radius: 0.75rem; }

/* PB-web1: Cookie-Banner (Teil cookie_banner), auf jeder öffentlichen Seite. Nicht modal, fest unten, am Handy höchstens 80vh mit eigenem
   Scrollen. "Ablehnen" und "Akzeptieren" gleich groß und gleich gestaltet (cookie-wahl, Raster 1fr 1fr). Farben nur über Variablen. */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0 0.75rem 0.75rem; pointer-events: none; }
.cookie-innen { pointer-events: auto; max-width: 46rem; margin: 0 auto; background: var(--flaeche); color: var(--text); border: 1px solid var(--rand); border-radius: 1rem; padding: 1.1rem 1.2rem; box-shadow: 0 10px 40px color-mix(in srgb, var(--text) 25%, transparent); max-height: 80vh; overflow: auto; }
.cookie-banner h2 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.cookie-banner p { margin: 0 0 0.8rem; font-size: 0.92rem; color: var(--text-leise); }
.cookie-einstellungen { margin: 0 0 0.8rem; font-size: 0.92rem; }
.cookie-einstellungen summary { cursor: pointer; font-weight: 600; color: var(--akzent); min-height: 2.75rem; display: flex; align-items: center; }
.cookie-einstellungen ul { list-style: none; margin: 0.75rem 0; padding: 0; display: grid; gap: 0.6rem; }
.cookie-einstellungen label { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; color: var(--text-leise); }
.cookie-einstellungen b { color: var(--text); }
.cookie-einstellungen input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: var(--akzent); }
.cookie-marke { padding: 0.05rem 0.45rem; border: 1px solid var(--rand); border-radius: 999px; font-size: 0.75rem; }
.cookie-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 0 !important; }
.cookie-wahl, .cookie-speichern { width: 100%; min-height: 2.75rem; }
/* PB-9463 (Soll-Ist 10626): Ab 64rem steht der Banner breit und niedrig, Text links, die zwei Knöpfe rechts daneben. So bleibt der Hero
   bei 1440×900 mit seinen Knöpfen frei (vorher 263 px hoch, verdeckte „Beta-Platz sichern“). Die Reihenfolge im Formular bleibt. */
@media (min-width: 64rem) {
  .cookie-innen { max-width: 72rem; display: grid; grid-template-columns: minmax(0, 1fr) 20rem; column-gap: 2rem; align-items: center; padding: 0.9rem 1.2rem; }
  .cookie-innen > * { grid-column: 1; }
  .cookie-innen > .cookie-knoepfe { grid-column: 2; grid-row: 1 / span 3; }
  .cookie-banner .cookie-innen > p#cookie-text { margin-bottom: 0.2rem; }
  .cookie-einstellungen { margin: 0; }
}
/* PB-5414: Mediathek, Bilder als Raster, Platzhalter ohne eigene Fotos */
.mediathek { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.mediathek img { display: block; max-width: 100%; height: auto; border-radius: 0.4rem; border: 1px solid var(--rand); }
.mediathek-platzhalter { display: inline-flex; align-items: center; justify-content: center; width: 10rem; aspect-ratio: 4 / 3; border: 1px dashed var(--rand); border-radius: 0.4rem; color: var(--text-leise); }

/* PB-5173b: Begrüßung als Fenster über dem Dashboard; minimiert eine Bubble unten links (über der Chat-Karte). Keine Animation. */
.begruessung-fenster { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: var(--abstand); background: rgba(0, 0, 0, 0.35); overflow-y: auto; }
.begruessung-fenster > .karte { max-width: 32rem; width: 100%; max-height: 100%; overflow-y: auto; }
.begruessung-minimieren { margin-top: var(--abstand); }
.begruessung-bubble { position: fixed; left: var(--abstand); bottom: var(--abstand); z-index: 40; }
.begruessung-bubble button { border-radius: 999px; padding: 0.6rem 1rem; background: var(--akzent); color: var(--akzent-text); border: 0; cursor: pointer; }
.begruessung-bubble button:focus-visible, .begruessung-minimieren button:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

/* PB-8110 Zustandspunkt (ENDSTAND 4): ~6 px, Vorrang rot > gelb > grün pulsierend > grün > grau. Der Puls bleibt am Punkt. Bei weniger
   Bewegung (System oder Konto) pulsiert nichts, der Punkt bekommt einen gepunkteten Ring. Das Wort steht immer dabei (Leser, Tooltip). */
.zp { display: inline-flex; align-items: center; gap: var(--raum-1); }
.zp-punkt { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-leise); }
.zp-rot .zp-punkt { background: var(--fehler); }
.zp-gelb .zp-punkt { background: var(--warn-rand); }
.zp-gruen .zp-punkt, .zp-gruen_aktiv .zp-punkt { background: var(--ok); }
.zp-grau .zp-punkt { background: none; box-shadow: inset 0 0 0 1.5px var(--text-leise); }
@keyframes zp-pulsieren { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 0%, transparent); } }
@media (prefers-reduced-motion: no-preference) { .zp-gruen_aktiv .zp-punkt { animation: zp-pulsieren 1.8s ease-in-out infinite; } }
.zp-gruen_aktiv .zp-punkt { outline: 1.5px solid var(--ok); outline-offset: 2px; } /* PB-9313 (Ricco 01.12., wie LIVE): „Architekten arbeiten“ mit Ring, bei weniger Bewegung gepunktet (folgende Regeln) */
@media (prefers-reduced-motion: reduce) { .zp-gruen_aktiv .zp-punkt { outline: 1.5px dotted var(--ok); outline-offset: 2px; } }
.db-bewegung-weniger .zp-gruen_aktiv .zp-punkt { animation: none; outline: 1.5px dotted var(--ok); outline-offset: 2px; }
.zp-wort { font-size: var(--schrift-xs); color: var(--text-leise); }

/* PB-8215: das eine Seitenkopf-Muster (Teil seitenkopf): Titel und Unterzeile links, eine blaue Hauptaktion oben rechts. */
.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.5rem 0.75rem; margin: 0 0 var(--abstand); }
.seitenkopf > .brotkrumen { flex: 1 1 100%; margin: 0; display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; color: var(--text-leise); } /* wie .brotkrumen in aufgaben.css, damit das Rahmen-Paket ihn mitträgt (PB-8209g) */
.seitenkopf .sk-titel { flex: 1 1 20rem; min-width: 0; }
.seitenkopf h1 { margin: 0; overflow-wrap: anywhere; }
/* PB-9650 (U15, Soll-Ist): Überschriften wie die Soll-Skizzen (wissen, marke-profil, agentbase-projekte, hilfe-shop, team-neu bei
   1440 px): Seitentitel 26 px mit -0.02em, Karten-h2 16 px, beide 700 wie bisher. Nur im Kundenbereich (body.mit-leiste); :where hält das
   Gewicht klein, eigene Regeln (Dashboard nach Bild 1, Pakete im Abo) gehen vor. Am Handy bleibt h1 bei 24 px (kein Soll-Bild). */
:where(body.mit-leiste) .karte > h2 { font-size: 1rem; }
@media (min-width: 48rem) {
  :where(body.mit-leiste :not(.db) > .seitenkopf) h1 { font-size: 1.625rem; letter-spacing: -0.02em; }
}
.seitenkopf .sk-zeile { color: var(--text-leise); max-width: 44rem; margin: 0.3rem 0 0; }
.seitenkopf .sk-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.seitenkopf .sk-aktionen form { margin: 0; }
.seitenkopf .sk-aktionen .knopf { display: inline-flex; align-items: center; gap: 0.4rem; } /* PB-9705c: Symbol im Knopf (Skizze Bild 3) */
.seitenkopf .sk-sym { width: 1rem; height: 1rem; }
.seitenkopf + .reiter, .seitenkopf + .hinweis + .reiter { margin-bottom: 1.25rem; }
/* QR-Code (PB-8614): Bild schwarz auf weiß mit eigener Ruhezone, schrumpft auf schmalen Schirmen, Adresse bricht um */
.qr { margin: 0 0 var(--abstand); max-width: 20rem; }
.qr .qr-titel { font-weight: 600; margin-bottom: 0.5rem; }
.qr .qr-bild { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
.qr .qr-adresse code { overflow-wrap: anywhere; }
/* PB-9240 (Ricco 01.12.): Erklär-Hinweis mit „×“ zum dauerhaften Wegklicken, danach ein kleines „i“ mit demselben Satz (teile/hinweis_weg) */
.hinweis-weg { display: flex; align-items: flex-start; gap: var(--raum-2); margin: 0 0 var(--raum-2); padding: var(--raum-2) var(--raum-2) var(--raum-2) var(--raum-3); border-radius: var(--radius); background: var(--akzent-leise); font-size: var(--schrift-s); }
.hinweis-weg > p { flex: 1 1 auto; margin: 0; }
.hinweis-weg > form { flex: none; margin: 0; }
.hinweis-weg-x { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; min-height: 2rem; padding: 0; border: 0; background: none; color: var(--text-leise); font-size: 1.1rem; line-height: 1; }
.hinweis-weg-x:hover, .hinweis-weg-x:focus-visible { color: var(--text); }
.hinweis-i { position: relative; display: inline-block; vertical-align: middle; }
.hinweis-i > summary { display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; border: 1px solid var(--rand); border-radius: 50%; color: var(--text-leise); font-size: var(--schrift-xs); font-style: italic; cursor: pointer; list-style: none; }
.hinweis-i > summary::-webkit-details-marker { display: none; }
.hinweis-i[open] > p { position: absolute; z-index: 20; top: calc(100% + 0.25rem); left: 0; width: 16rem; max-width: 80vw; margin: 0; padding: var(--raum-2) var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); box-shadow: 0 4px 12px color-mix(in srgb, var(--text) 12%, transparent); font-size: var(--schrift-s); font-weight: 400; }
@media (pointer: coarse) { .hinweis-weg-x { min-width: 2.75rem; min-height: 2.75rem; } .hinweis-i > summary { width: 2rem; height: 2rem; } }

/* Schmale Bildschirme: Leiste oben, Inhalt darunter, nichts läuft seitlich über */
@media (max-width: 47.99rem) {
  .rahmen { flex-direction: column; }
  .leiste { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--rand); padding: 0.5rem 0.75rem; background: var(--flaeche); overflow: visible; }
  .leiste > nav { display: none; }
  .konto-menue { margin-top: 0; }
  .konto-person { display: none; }
  .menue { bottom: auto; top: calc(100% + 0.4rem); left: auto; right: 0; }
  .nur-mobil { display: block; }
  body.mit-leiste { padding-bottom: 4.75rem; }
  html:has(> body.mit-leiste) { scroll-padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); } /* PB-9462: Fokus nie unter der festen Tab-Leiste (WCAG 2.4.11) */
  .tableiste { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; justify-content: space-around; background: var(--flaeche-leise); border-top: 1px solid var(--rand); padding: 0.25rem 0.25rem calc(0.25rem + env(safe-area-inset-bottom)); }
  .tableiste a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; min-width: 3.5rem; padding: 0.35rem 0.5rem; color: var(--text-leise); text-decoration: none; font-size: 0.72rem; border-radius: var(--radius); }
  .tableiste a.aktiv { color: var(--text); font-weight: 600; }
  .tableiste .zaehler { position: absolute; top: 0; right: 0.1rem; margin: 0; font-size: 0.7rem; min-width: 1.1rem; }
  main { padding: 1rem; }
  table.aufgaben, table.aufgaben tbody, table.aufgaben tr, table.aufgaben td { display: block; width: 100%; }
  table.aufgaben thead { position: absolute; left: -999px; }
  table.aufgaben tr { border: 1px solid var(--rand); border-radius: var(--radius); margin-bottom: 0.75rem; padding: 0.25rem 0.5rem; background: var(--flaeche); }
  table.aufgaben td { border: 0; padding: 0.2rem 0; }
  table.aufgaben td::before { content: attr(data-label) ": "; color: var(--text-leise); font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Rahmen des Betriebs am Handy (PB-3945a): Kopfzeile, darunter die Leiste als Klappe "Menü" (ohne Skript), dann der Inhalt.
   Breite Tabellen rollen im Inhalt, nicht die ganze Seite. */
@media (max-width: 47.99rem) {
  .bk { position: static; padding: 0 0.75rem; }
  .bk-stellung { display: none; }
  .bk-konto { flex: 0 1 auto; min-width: 0; } /* PB-8554: Der Kontoname kürzt sich mit „…“, statt rechts hinauszulaufen */
  .betrieb-rahmen { display: block; }
  .bl { position: static; width: auto; height: auto; overflow: visible; padding: 0.3rem 0.75rem; border-right: 0; border-bottom: 1px solid var(--rand); }
  .bl-nav { padding-bottom: 0.5rem; }
  .bl-nav a { padding: 0.6rem; font-size: 0.9375rem; }
  body.betrieb main { overflow-x: auto; }
}
/* PB-8624: Ab 45rem steht das Suchfeld im Kopf (darunter nur die Lupe, PB-8560). Bei sehr langem Namen (bis 20rem) war zwischen 45 und
   48rem und um 768 px kein Platz mehr für die Suche: Das Feld wurde 21 px schmal, der Suchknopf lag über Hell/Dunkel. Jetzt hält der Platz
   Feld (mindestens 6rem) und Knopf, und der Konto-Knopf gibt nach: Der Name wird mit Auslassungspunkten gekürzt (er steht ganz im
   aria-label und oben im Menü). */
@media (min-width: 45rem) {
  .bk-konto { flex: 0 1 auto; min-width: 0; } /* PB-8624: auch ab 48rem, wie darunter (PB-8554) */
  .bk-platz { min-width: min-content; }
  .bk-suche input { min-width: 6rem; }
}
/* Suchfeld der Kopfzeile am schmalen Handy (PB-3944b): Das Feld weicht, der Knopf mit der Lupe bleibt und führt zur Suchseite
   (dort steht das Feld groß). Der Text des Knopfs bleibt für Vorlese-Programme. So bleibt die Kopfzeile bei 375 px einzeilig.
   PB-8560: Grenze 45rem statt 30rem. Gemessen war das Feld bei 480 px 21 px breit, bei 640 px 37 px; erst ab 720 px ist es lesbar (117 px). */
@media (max-width: 44.99rem) {
  .bk-platz { display: flex; justify-content: flex-end; min-width: 2.75rem; } /* sonst schrumpft der Platz auf 0, und der Knopf liegt über „BETRIEB“ */
  .bk-suche label, .bk-suche input { display: none; }
  .bk-suche-zeichen, .rahmen-taste .bk-suche .kopf-taste { display: none; } /* PB-9988: ohne Feld weder Funkeln noch „Strg K“ */
  .bk-glocke { min-width: 2.75rem; min-height: 2.75rem; justify-content: center; } /* PB-9988: Treffläche wie der Suchknopf */
  .bk-suche button { min-width: 2.75rem; min-height: 2.75rem; justify-content: center; padding: 0.35rem 0.6rem; }
  .bk-suche-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 31.99rem) {
  /* PB-8554: Seit dem Schalter Hell/Dunkel (PB-4390) reicht der Platz nicht mehr; der Kontoname lief bei 400 px rechts hinaus.
     Der Name bleibt im aria-label des Knopfs und oben im geöffneten Menü, das Wort neben dem Logo bleibt für Vorlese-Programme.
     PB-8560: 32rem statt 30rem, denn mit dem Lupen-Knopf blieben bei 480 px nur 23 px vom Namen („B…“). */
  .bk .konto-name { display: none; }
}
@media (max-width: 29.99rem) {
  .bk { gap: 0.5rem; } /* PB-8620: bei 320 px sonst 2 px zu breit */
  .bk-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media print {
  .leiste, .tableiste, .fuss, .sprung, .nur-bildschirm, .banner, .bk, .bl { display: none; }
  body { background: #fff; color: #000; }
  main { max-width: none; padding: 0; }
}

.ohne-rahmen { border: 0; padding: 0; margin: 0 0 1rem; }

/* PB-10309 (Soll Ricco 03.12., Kopf): Kürzel im Firmen-Chip grün, Platzhalter der Suche in kleiner Schrift, damit „Fragen Sie Ihren Host od…“ lesbar bleibt (am Handy 16 px gegen Zoomen, an der bestehenden Grenze 47.99rem). */
.firmenkopf .firmenlogo { background: color-mix(in srgb, var(--ok) 22%, var(--flaeche)); color: var(--ok); }
.rahmen-oben .kopf-suche input { font-size: var(--schrift-s); }
@media (max-width: 47.99rem) { .rahmen-oben .kopf-suche input { font-size: 1rem; } }

/* Budget-Karte (PB-082): <progress> statt Inline-Stil, weil die Seitenrichtlinie keine Inline-Stile erlaubt */
.budget progress { width: 100%; height: 1rem; accent-color: var(--ok); }
.budget.warnung progress { accent-color: var(--warn-rand); }
.budget.gesperrt progress { accent-color: var(--fehler); }
.budget .zahlen { margin: 0.25rem 0; }

/* Budget (PB-115): Balken mit Marke bei 80 Prozent, Skala */
.budget-seite { margin-bottom: 1rem; }
.budget-balken { display: block; width: 100%; height: 0.75rem; margin: 0.75rem 0 0.15rem; }
.budget-balken .marke { stroke: var(--text-leise); stroke-width: 0.6; fill: none; }
.budget-skala { display: flex; justify-content: space-between; font-size: 0.75rem; margin: 0 0 0.75rem; }
.budget-skala span:nth-child(2) { margin-left: 62%; }
.st-blockiert { fill: var(--st-blockiert); }
.karte-link { font-size: 0.85rem; font-weight: 400; margin-left: 0.5rem; }

/* Aufladen: Beträge als wählbare Felder, am Handy untereinander (PB-GUI) */
.stufen { border: 0; padding: 0; margin: 0 0 0.75rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.5rem; }
.stufen legend { grid-column: 1 / -1; padding: 0; font-weight: 600; margin-bottom: 0.25rem; }
.stufen .stufe { margin: 0; }
.stufen .stufe label { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 0.75rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); cursor: pointer; }
.stufen .stufe label:has(input:checked) { border-color: var(--akzent); background: var(--akzent-leise); }
.stufen .stufe label:focus-within { outline: 2px solid var(--fokus); outline-offset: 2px; }
.budget-aufladungen { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.budget-aufladungen li { border: 1px solid var(--rand); border-radius: var(--radius); padding: 0.5rem 0.75rem; background: var(--flaeche); }

/* Monatsbericht (PB-090): Zahlenkacheln ohne Link */
.kacheln.statistik li { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 0.75rem 1rem; }
.kacheln.statistik .name { display: block; }
@media print {
  .kacheln.statistik li { border-color: #000; }
}

/* Roadmap (PB-091) */
.roadmap progress { width: 100%; height: 1rem; accent-color: var(--akzent); }
.roadmap h3 { margin: 1rem 0 0.25rem; font-size: 1rem; }

.einmalpasswort { font-size: 1.25rem; letter-spacing: 0.05em; user-select: all; }


/* Monatsbericht (PB-1115): erledigte Aufgaben als Zeilenliste; lange Titel umbrechen, auch im Druck */
.zeilen .zeile-titel { white-space: normal; overflow-wrap: anywhere; }
.zeilen .zeile:hover { background: none; }
@media print {
  .zeilen .zeile { border-top: 1px solid #000; border-radius: 0; break-inside: avoid; }
  .zeilen .zeile:first-child { border-top: 0; }
}

/* Anmeldeseite: zentrierte Karte, ohne Kopfleiste */
body:has(.anmeldung) .kopf { display: none; }
body:has(.anmeldung) main { display: flex; align-items: center; justify-content: center; max-width: none; padding: 2rem 1rem; }
.anmeldung {
  width: 100%;
  max-width: 26rem;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 0.9rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
}
.anmeldung-kopf { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.anmeldung-name { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: 0.01em; }
.anmeldung h1 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.anmelde-formular { margin-top: 1.25rem; }
.passwort-zeile { display: flex; gap: 0.5rem; }
.passwort-zeile input { flex: 1; min-width: 0; }
.passwort-zeigen { flex: none; }
button.breit { width: 100%; padding: 0.65rem 1rem; font-size: 1.05rem; }
.klein { font-size: 0.9rem; margin: 1.25rem 0 0; }
@media (max-width: 30rem) {
  .anmeldung { border: 0; box-shadow: none; padding: 1rem 0.25rem; background: transparent; }
}

/* Kopf als Weg zur Startseite (Teil anmeldekopf); Passwort vergessen neben der Beschriftung; "oder" vor Google; Wechsel zu Konto anlegen */
.anmeldung-marke { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--text); text-decoration: none; }
.anmeldung-marke:hover .anmeldung-name { text-decoration: underline; }
.feld-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin: 0; }
.feld-kopf a { font-size: 0.9rem; }
.anmeldung-oder { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0 0; color: var(--text-leise); font-size: 0.9rem; }
.anmeldung-oder::before, .anmeldung-oder::after { content: ""; flex: 1; border-top: 1px solid var(--rand); }
.anmelde-formular-google { margin-top: 1rem; }
.anmeldung-wechsel { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--rand); text-align: center; }

/* Übersicht (PB-109): Kennzahlen mit Unterzeile, Diagramme als reines SVG (Farben über Klassen, kein Inline-Stil) */
.kacheln .name { display: block; margin-top: 0.35rem; font-weight: 500; }
.kacheln .unter { display: block; font-size: 0.85rem; color: var(--text-leise); }
.diagramme { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; margin-bottom: var(--abstand); }
.diagramm { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 0.75rem; padding: 1rem 1.1rem; min-width: 0; }
.diagramm h3 { margin: 0 0 0.15rem; font-size: 0.95rem; }
.diagramm p { margin: 0; }
.diagramm-bild { display: block; width: 100%; height: auto; margin-top: 0.5rem; }
.diagramm-bild .achse { stroke: var(--rand); stroke-width: 1; fill: none; }
.diagramm-achse { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-leise); margin-top: 0.15rem; }
.balken { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.balken li { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 0.5rem; align-items: baseline; }
.balken-name { color: var(--text-leise); font-size: 0.9rem; }
.balken-zahl { font-weight: 700; }
.balken-svg { grid-column: 1 / -1; width: 100%; height: 0.4rem; }
.spur { fill: var(--flaeche-leise); }
.st-offen { fill: var(--st-offen); }
.st-arbeit { fill: var(--st-arbeit); }
.st-wartet { fill: var(--prio-hoch); }
.st-fertig { fill: var(--st-fertig); }


/* Aufgabenliste und Posteingang (PB-110): Reiter, Werkzeugleiste, Datumsgruppen, dichte Zeilen ohne Rahmen */
.werkzeugleiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.reiter { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.reiter a, .reiter-aktiv { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.7rem; border-radius: var(--radius); color: var(--text-leise); text-decoration: none; }
.reiter a:hover { background: var(--flaeche-leise); color: var(--text); }
.reiter-aktiv { background: var(--akzent-leise); color: var(--text); font-weight: 600; }
.reiter-zahl { font-size: 0.8rem; color: var(--text-leise); }
.reiter a.reiter-leer { color: var(--text-leise); font-size: 0.85rem; } /* PB-9801: zusammengefasste leere Reiter („+5 leer“) */
.werkzeuge { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.filter.kompakt { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.filter.kompakt select { width: auto; }
.gruppe { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0 0.35rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-leise); }
.gruppe::before, .gruppe::after { content: ""; flex: 1; border-top: 1px solid var(--rand); }
.zeilen { list-style: none; margin: 0; padding: 0; }
.zeile { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.6rem; border-radius: var(--radius); }
.zeile:hover { background: var(--flaeche-leise); }
.zeile-titel { flex: 1; min-width: 0; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile-titel:hover { text-decoration: underline; }
.zeile-projekt { color: var(--text-leise); font-size: 0.85rem; white-space: nowrap; }
.zeile-zeit { color: var(--text-leise); font-size: 0.85rem; white-space: nowrap; min-width: 5.5rem; text-align: right; }
.zeile-umbruch { flex-wrap: wrap; } /* PB-8549: Zeile mit einem Satz darunter (.zeile-unten), sonst schrumpft der Titel auf null */
.zeile-unten { flex-basis: 100%; }
.zeile-umbruch .zeile-titel { flex: 1 1 10rem; } /* B10: mittlere Breite, langer Teamname drückt sonst den Kunden auf wenige Pixel */
.zeile-umbruch .zeile-projekt { white-space: normal; }
.status-symbol { display: inline-flex; flex: none; }
.status-symbol .sym { width: 1.15rem; height: 1.15rem; stroke-width: 1.6; }
.status-symbol .voll { fill: currentColor; stroke: none; }
.status-symbol.offen, .status-symbol.abgebrochen { color: var(--st-aus); }
.status-symbol.in_arbeit { color: var(--st-arbeit); }
.status-symbol.wartet_auf_mich { color: var(--prio-hoch); }
.status-symbol.erledigt { color: var(--st-fertig); }
.leer { padding: 2rem 0; text-align: center; color: var(--text-leise); }
@media (max-width: 47.99rem) {
  .zeile { flex-wrap: wrap; }
  .zeile-titel { white-space: normal; flex-basis: calc(100% - 2.2rem); }
  .zeile-projekt, .zeile-zeit { margin-left: 1.9rem; min-width: 0; text-align: left; }
}

/* Aufgabe (PB-111): Brotkrumen, Kopf, Eigenschaften rechts, Gespräch in Blasen, Eingabefeld unten */
.aufgabe-rahmen { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; grid-template-areas: "kopf eig" "haupt eig"; gap: 0 2rem; align-items: start; }
.aufgabe-oben { grid-area: kopf; }
.aufgabe-haupt { grid-area: haupt; min-width: 0; }
.eigenschaften { grid-area: eig; position: sticky; top: 1rem; border: 1px solid var(--rand); border-radius: 0.75rem; padding: 0.9rem 1rem; background: var(--flaeche); }
.eigenschaften h2 { margin: 0 0 0.5rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-leise); }
.eigenschaften dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0.15rem; }
.eigenschaften dt { margin-top: 0.6rem; font-size: 0.8rem; color: var(--text-leise); }
.eigenschaften dd { margin: 0; overflow-wrap: anywhere; }
.eig-form { margin-top: 0.35rem; }
.eig-form button { padding: 0.25rem 0.6rem; font-size: 0.85rem; }
.kennung { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; color: var(--text-leise); }
.brotkrumen { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-leise); }
.brotkrumen a { color: var(--text-leise); }
.aufgabe-oben .brotkrumen-ende { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; } /* Soll-Ist K3 (B4 16:5x): Schreibmaschinenschrift nur für die Kennung der Aufgabe, sonst steht das Ende des Pfads wie Text (z. B. „Routinen“) */
.aufgabe-oben .seitenkopf { margin-bottom: 0.4rem; }
.aufgabe-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.gespraech { list-style: none; padding: 0; margin: 0 0 var(--abstand); display: flex; flex-direction: column; gap: 1rem; }
.nachricht { display: flex; flex-direction: column; max-width: 46rem; }
.nachricht.eigene { align-self: flex-end; align-items: flex-end; }
.nachricht-kopf { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.3rem; }
.nachricht-fuss { margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--text-leise); }
.blase { padding: 0.65rem 0.9rem; border-radius: 0.9rem; background: var(--flaeche-leise); }
.eigene .blase { background: var(--akzent); color: var(--akzent-text); border-bottom-right-radius: 0.25rem; }
.fremde .blase { border-top-left-radius: 0.25rem; }
.eingabe { position: sticky; bottom: 0.75rem; background: var(--flaeche); border: 1px solid var(--feldrand); border-radius: 0.9rem; padding: 0.6rem; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }
.eingabe textarea { border: 0; min-height: 4.5rem; resize: vertical; background: transparent; }
.eingabe textarea:focus-visible { outline-offset: 0; }
.eingabe-zeile { display: flex; justify-content: flex-end; }
@media (max-width: 63.99rem) {
  .aufgabe-rahmen { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kopf" "eig" "haupt"; }
  .eigenschaften { position: static; margin-bottom: var(--abstand); }
}
@media (max-width: 47.99rem) {
  main { padding: 1rem; }
  .eingabe { bottom: 4.9rem; }
}

/* Neue Aufgabe als Dialog-Karte und Suche (PB-112) */
.dialog { max-width: 40rem; margin: 2rem auto; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 1rem; padding: 1.5rem; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14); }
.dialog h1 { font-size: 1.25rem; margin-bottom: 1rem; }
.dialog .feld label { font-size: 0.85rem; color: var(--text-leise); font-weight: 500; }
.dialog-titelfeld { font-size: 1.1rem; font-weight: 600; }
.dialog-unten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.5rem; }
.dialog-dringend { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; font-weight: 400; color: var(--text); }
.dialog-knoepfe { display: inline-flex; gap: 0.5rem; }
.suche-gross { display: flex; align-items: center; gap: 0.6rem; max-width: 46rem; border: 1px solid var(--feldrand); border-radius: 0.9rem; padding: 0.4rem 0.5rem 0.4rem 0.9rem; background: var(--flaeche); margin-bottom: 1rem; }
.suche-gross input { border: 0; background: transparent; font-size: 1.05rem; padding: 0.45rem 0.25rem; }
.suche-gross input:focus-visible { outline-offset: 0; }
.leerzustand { max-width: 36rem; margin: 3rem auto; text-align: center; }
.leerzustand h2 { margin-top: 0; }
@media (max-width: 47.99rem) {
  .dialog { margin: 0.5rem 0; padding: 1rem; box-shadow: none; }
}


/* Freigaben (PB-114): Entscheidung als hervorgehobene Karte, Verlauf in Zeilen */
.entscheidung { border: 2px solid var(--akzent); border-radius: 0.9rem; padding: 1rem 1.1rem; margin: 1rem 0; background: var(--flaeche); }
.entscheidung h2 { margin-top: 0; }
.verlauf-zeilen .zeile-titel { white-space: normal; }

.freigaben-offen.wartet { border: 2px solid var(--akzent); border-radius: 0.9rem; padding: 0.25rem 1rem 0.75rem; margin: 1rem 0; background: var(--flaeche); }
.freigaben-offen.wartet h2 { margin-top: 0.75rem; }
/* Entscheidung (PB-GUI): die drei Möglichkeiten als große Wahlfelder, am Handy untereinander */
.entscheidung .optionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.5rem; }
.entscheidung .optionen label { min-height: 2.75rem; padding: 0.5rem 0.9rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); cursor: pointer; }
.entscheidung .optionen label:has(input:checked) { border-color: var(--akzent); background: var(--akzent-leise); }
.entscheidung .optionen label:focus-within { outline: 2px solid var(--fokus); outline-offset: 2px; }
.entscheidung textarea { width: 100%; }
@media (max-width: 30rem) { .entscheidung .primaer { width: 100%; min-height: 2.75rem; } }

/* Rechnungen und Zahlungsmittel (PB-118) */
.zahlung, .rechnungen-liste { margin-bottom: 1.5rem; }
.zahlung-form { margin-top: 0.75rem; }
.zahlung-form p { margin: 0.5rem 0 0; max-width: 40rem; }


/* Abo-Modell (PB-119): Paketkarte */
.pakete { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 24rem)); gap: 1rem; margin: 1rem 0; }
.paket { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 0.9rem; padding: 1.25rem 1.4rem; }
.paket.gewaehlt { border: 2px solid var(--akzent); }
.paket h2 { margin-top: 0; }
.paket h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-leise); margin: 1rem 0 0.4rem; }
.preis { margin: 0.25rem 0 0; }
.preis .zahl { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; }
.funktionen { margin: 0 0 1.25rem; padding-left: 1.1rem; }
.funktionen li { margin: 0.2rem 0; }
.nutzung { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 0.9rem; padding: 1rem 1.4rem; margin: 1rem 0; max-width: 40rem; }
.nutzung h2 { margin-top: 0; }
.nutzung p { margin: 0.3rem 0; }

/* Projekte (E3): Liste als Karten, Projektseite. Bausteine (Karte, Zustandsmarke, Reiter) kommen aus bausteine.css und aufgaben.css. */
.pk-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: var(--abstand); }
.pk-kopf h2 { margin: 0; }
.pj-raster { list-style: none; margin: 0 0 var(--abstand); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.75rem; }
.pj-karte { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.pj-karte h3 { margin: 0; font-size: 1.1rem; }
.pj-karte h3 a { color: var(--text); text-decoration: none; }
.pj-karte h3 a:hover { text-decoration: underline; }
.pj-karte p { margin: 0; }
.pj-art { margin: 0; font-size: 0.8rem; color: var(--text-leise); text-transform: uppercase; letter-spacing: 0.04em; }
.pj-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 0.75rem; font-size: 0.85rem; margin-top: auto; padding-top: 0.4rem; overflow-wrap: anywhere; }
.pj-beendet { margin-top: var(--abstand); }
.pj-beendet summary { cursor: pointer; color: var(--text-leise); padding: 0.4rem 0; }
.pj-beendet[open] summary { margin-bottom: 0.5rem; }
.pj-angaben { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; }
.pj-angaben dt { color: var(--text-leise); }
.pj-angaben dd { margin: 0; overflow-wrap: anywhere; }
.pj-beschreibung { white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .pj-raster { grid-template-columns: 1fr; } .pj-angaben { grid-template-columns: 1fr; gap: 0 0; } .pj-angaben dd { margin-bottom: 0.5rem; } }
.pj-entwurf { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pj-wuensche { list-style: none; margin: 0; padding: 0; }
.pj-wuensche li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rand); }
.pj-wuensche li:last-child { border-bottom: 0; }
.pj-wuensche li > span { display: flex; flex-direction: column; min-width: 12rem; flex: 1; }
.meilenstein-naechster { margin: 0 0 0.75rem; font-weight: 600; }
.meilensteine .schritt { align-items: flex-start; }
.meilenstein-inhalt { flex: 1; min-width: 0; }
.meilenstein-inhalt p { margin: 0; }
.meilenstein-text { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--text-leise); }
.meilenstein-text dt { font-weight: 600; }
.meilenstein-text dd { margin: 0 0 0.25rem; }
.meilenstein-aktuell .schritt-titel { font-weight: 600; }
.meilenstein-aktuell .meilenstein-text { color: var(--text); }
.pj-schreiben { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; } /* PB-1713 */
.pj-stand { display: flex; flex-direction: column; font-size: 0.9rem; }
.pj-stand-wartet > span:first-child { font-weight: 600; }
/* PB-GUI-kunde-projekte: Die ganze Karte führt zum Projekt (der Titel-Link deckt sie ab, ohne Skript); Knöpfe und Links in der Karte
   liegen darüber und bleiben einzeln erreichbar. Projekte, die auf den Kunden warten, tragen den Rand "wartet"; das Wort steht in der
   Gruppenüberschrift, nie die Farbe allein. Am Handy sind Knöpfe daumengroß und die Reiter der Projektseite eine verschiebbare Zeile. */
.pj-karte { position: relative; transition: border-color 0.15s; }
.pj-karte h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pj-karte h3 a:focus-visible { outline: none; }
.pj-karte h3 a:focus-visible::after { outline: 2px solid var(--fokus); outline-offset: 2px; }
.pj-karte:hover { border-color: var(--feldrand); }
.pj-karte .knopf, .pj-karte p a:not(.knopf) { position: relative; z-index: 1; }
#pj-wartet + .pj-raster > .pj-karte, .pj-karte:has(.pj-stand-wartet) { border-color: var(--warn-rand); border-left-width: 4px; }
@media (prefers-reduced-motion: reduce) { .pj-karte { transition: none; } }
@media (max-width: 47.99rem) {
  .pj-karte .knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; }
  .pj-schreiben .knopf, .pj-entwurf .knopf { flex: 1 1 8rem; }
  .pj-reiter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 0.25rem; }
  .pj-reiter a, .pj-reiter .reiter-aktiv { flex: none; min-height: 2.75rem; }
}
/* PB-9423 (Skizze „Projekt wird eingerichtet“): Zahnräder links, drehen langsam; bei reduzierter Bewegung stehen sie still. */
.pj-einr { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--raum-4, 1.5rem); align-items: start; border-color: var(--akzent); }
.pj-einr-zahnraeder { align-self: center; color: var(--akzent); }
/* PB-10232 (Skizze): drei Zahnräder, groß Akzent, oben Grün, unten Lila; jedes dreht um seine Mitte, die kleinen gegenläufig */
.pj-einr-zahnraeder .pj-zr { display: block; width: 6rem; height: auto; }
.pj-zr-gross { fill: var(--akzent); }
.pj-zr-oben { fill: var(--ok); }
.pj-zr-unten { fill: var(--wer-hand); }
.pj-zr path { transform-box: fill-box; transform-origin: center; }
@keyframes pj-einr-drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) { .pj-einr-zahnraeder .pj-zr path { animation: pj-einr-drehen 8s linear infinite; } .pj-einr-zahnraeder .pj-zr path:not(.pj-zr-gross) { animation-duration: 4s; animation-direction: reverse; } }
.pj-einr-inhalt h2 { margin-top: 0; }
.pj-einr-balken { display: block; width: 100%; margin: var(--raum-3, 1rem) 0 var(--raum-2, 0.5rem); }
.pj-einr-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--raum-2, 0.5rem); margin: 0; font-size: var(--schrift-s); }
@media (max-width: 759px) { .pj-einr { grid-template-columns: minmax(0, 1fr); } .pj-einr-zahnraeder .pj-zr { width: 4rem; } }
/* PB-11311: „Alles erledigt.“ (24 h) */
.pj-fertig { border-color: var(--ok); }
.pj-fertig-titel { font-size: 2rem; color: var(--ok); margin-top: 0; }
.pj-fertig-schritte li { margin-bottom: var(--raum-2, 0.5rem); }

/* Bausteine für Formulare und Abläufe: Feld mit Hilfe und Fehler (Teil feld), Meldung (Teil meldung), Schritte (Teil schritte),
   Auswahlkarten und die Fußzeile eines Assistenten. Grundregeln für label, input und .feld stehen in bausteine.css. */
.feld-hilfe { margin: 0 0 0.35rem; font-size: var(--schrift-s); color: var(--text-leise); }
.feld-fehlertext { margin: 0.35rem 0 0; font-size: var(--schrift-s); color: var(--fehler); font-weight: 600; }
.feld-ungueltig input, .feld-ungueltig textarea { border-color: var(--fehler); }

.meldung { margin: 0 0 var(--abstand); padding: 0.6rem 0.8rem; border-radius: var(--radius); border: 1px solid var(--rand); background: var(--flaeche-leise); }
.meldung-hinweis { background: var(--akzent-leise); border-color: transparent; }
.meldung-erfolg { border-color: var(--st-fertig); }
.meldung-warnung { border-color: var(--prio-hoch); }
.meldung-fehler { color: var(--fehler); background: var(--fehler-bg); border-color: var(--fehler); }

.schritte { margin: 0 0 var(--abstand); }
.schritte ol { list-style: none; margin: 0; padding: 0; }
.schritte-stand { margin: 0 0 0.5rem; font-size: var(--schrift-s); color: var(--text-leise); }
.schritte-assistent ol { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.schritte-assistent .schritt { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-leise); }
.schritt-nr { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid currentColor; font-size: var(--schrift-s); font-weight: 600; flex: none; }
.schritt-aktuell { color: var(--text); font-weight: 600; }
.schritt-aktuell .schritt-nr { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.schritt-erledigt .schritt-nr { border-color: var(--st-fertig); color: var(--st-fertig); }
ol.schritte-einrichtung { list-style: none; padding: 0; }
.schritte-einrichtung .schritt { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--rand); }
.schritte-einrichtung .schritt:last-child { border-bottom: 0; }
.schritte-einrichtung .schritt-titel { flex: 1; min-width: 0; }
.schritt-wort { font-size: var(--schrift-s); color: var(--text-leise); white-space: nowrap; }

/* Auswahlkarten: eine Auswahl aus wenigen Möglichkeiten, jede mit Titel und Erklärung (Radioknöpfe, ohne Skript) */
.wahlkarten { border: 0; margin: 0 0 var(--abstand); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.6rem; }
.wahlkarten legend { font-weight: 600; margin-bottom: 0.5rem; padding: 0; }
.wahlkarte { position: relative; display: block; margin: 0; padding: 0.8rem 0.9rem 0.8rem 2.4rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); font-weight: 400; cursor: pointer; }
.wahlkarte input { position: absolute; left: 0.85rem; top: 1rem; width: 1rem; height: 1rem; margin: 0; }
.wahlkarte:has(input:checked) { border-color: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); }
.wahlkarte:has(input:focus-visible) { outline: 3px solid var(--fokus); outline-offset: 2px; }
.wahlkarte-titel { display: block; font-weight: 600; }
.wahlkarte-text { display: block; font-size: var(--schrift-s); color: var(--text-leise); margin-top: 0.15rem; }
.wahlkarte-symbol { float: left; font-size: 1.4rem; line-height: 1.3; margin-right: 0.5rem; }
.branchenwahl { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.branchenwahl legend, .branchenwahl .feld-fehlertext { grid-column: 1 / -1; }

.assistent { max-width: 46rem; }
.assistent-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; margin-top: var(--abstand); }
.assistent-fuss .rechts { display: inline-flex; gap: 0.6rem; margin-left: auto; }
.leitfragen { margin: 0 0 0.6rem; padding-left: 1.2rem; color: var(--text-leise); font-size: var(--schrift-s); }

/* Formulare im Betrieb (PB-4330): eine Spalte von höchstens --formbreite, Felder und Knöpfe gleich hoch (--feldhoehe), Abstand
   zwischen Hauptknopf und "Abbrechen". Der Fokusring kommt für alles aus basis.css (:focus-visible, 3 px) und wird nirgends
   abgeschwächt. Für ein Formular ohne .feld: Klasse .formspalte am Formular oder an seinem Kasten; .knopfzeile für die Knöpfe am Ende. */
body.betrieb main .feld, .formspalte { max-width: var(--formbreite); }
body.betrieb main form:not([class]) > p { max-width: var(--formbreite); }
body.betrieb :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="file"]), select, button, .knopf) { min-height: var(--feldhoehe); }
body.betrieb main :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="file"]), select, button, .knopf) { padding-top: 0.375rem; padding-bottom: 0.375rem; }
body.betrieb main :is(input[type="checkbox"], input[type="radio"]) { width: 1rem; height: 1rem; margin: 0 var(--raum-1) 0 0; vertical-align: -0.125rem; accent-color: var(--akzent); }
body.betrieb main p > :is(button, .knopf) + :is(a, button) { margin-left: var(--raum-3); }
.knopfzeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) var(--raum-4); margin: var(--raum-5) 0 0; }
body.betrieb main label:has(> input[type="checkbox"], > input[type="radio"]) { font-weight: 400; }
/* PB-5146 Oberflächenwahl: kleine Skizzen aus Kästchen, ausgegraut was noch nicht wählbar ist */
.wahlkarte-aus { opacity: 0.6; cursor: not-allowed; }
.skizze { display: flex; gap: 0.25rem; height: 2rem; margin-bottom: 0.4rem; }
.skizze i { flex: 1; border: 1px solid var(--rand); border-radius: 3px; background: var(--flaeche); }
.skizze-loop i:first-child { flex: 2; }
.skizze-baukasten { flex-wrap: wrap; }
.skizze-baukasten i { flex: 1 1 40%; }
.skizze-mehr i { border-style: dashed; }

/* PB-4202d: Abstand zwischen Speichern und Zurück, Logbuch-Karte ohne Leerraum oben */
.anrede-zurueck { margin-top: var(--abstand); }
.lb-karte > h2:first-child { margin-top: 0; }

/* Betrieb (unsere Oberfläche): Eingang und Auftragsseite. Bausteine (Karte, Zeilen, Reiter, Zustandsmarke, Feld) kommen aus den gemeinsamen Dateien. */
.ba-schritte { list-style: none; margin: 0; padding: 0; }
.ba-schritte > li { padding: var(--raum-3) 0; border-bottom: 1px solid var(--rand); }
.ba-schritte > li:last-child { border-bottom: 0; }
.ba-schritte p { margin: 0 0 var(--raum-1); }
.ba-schritt-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); }
.ba-schritt-kopf strong { flex: 1; min-width: 12rem; }
.ba-notiz { font-size: var(--schrift-s); white-space: pre-line; overflow-wrap: anywhere; }
.ba-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); margin-top: var(--raum-2); }
.ba-zeile label { margin: 0; font-weight: 400; font-size: var(--schrift-s); }
.ba-zeile input[type="text"] { flex: 1; min-width: 12rem; width: auto; }
.ba-zeile select { width: auto; }
.ba-abbruch { margin-top: var(--abstand); }
.ba-abbruch summary { cursor: pointer; color: var(--text-leise); }
.ba-verlauf { list-style: none; margin: 0; padding: 0; }
.ba-verlauf li { padding: var(--raum-2) 0; border-bottom: 1px solid var(--rand); }
.ba-verlauf li:last-child { border-bottom: 0; }
.ba-text { display: block; white-space: pre-line; overflow-wrap: anywhere; margin-top: 0.15rem; }
.bk-inhaber { display: block; }
.tabelle-rahmen { overflow-x: auto; }
/* Leitung und Plan (PB-1430): Startseite, Roadmap, Mindmap, C4-Zeichnung, Ideen. Farben nur aus den Variablen in basis.css. */
.plan-karten { list-style: none; padding: 0; margin: 0 0 var(--abstand); display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--raum-3); }
.plan-karten .karte { margin: 0; }
.plan-karten h2 { margin-top: 0; font-size: var(--schrift-l); }
.plan-bald { border-style: dashed; }
.plan-balken { width: 6rem; height: 0.75rem; vertical-align: middle; accent-color: var(--st-fertig); }
.plan-tabelle th[scope="row"] { font-weight: 600; white-space: nowrap; }
.plan-tabelle td { vertical-align: top; overflow-wrap: anywhere; }
.plan-marke { display: inline-block; padding: 0.05rem var(--raum-2); border-radius: 999px; border: 1px solid currentColor; font-size: var(--schrift-s); white-space: nowrap; }
.plan-marke-erledigt, .plan-marke-gebaut, .plan-marke-entschieden { color: var(--st-fertig); }
.plan-marke-offen { color: var(--st-blockiert); }
.plan-marke-in_arbeit, .plan-marke-eingeplant { color: var(--st-arbeit); }
.plan-marke-geplant, .plan-marke-aufgenommen { color: var(--st-offen); }
.plan-marke-entfaellt, .plan-marke-wandert, .plan-marke-zurueckgestellt { color: var(--st-aus); }
.plan-mindmap { margin-top: var(--abstand); }
.plan-mitte { text-align: center; max-width: 36rem; margin: 0 auto var(--abstand); padding: var(--abstand); border: 2px solid var(--akzent); border-radius: 999px; background: var(--flaeche); }
.plan-mitte h2 { margin: 0 0 var(--raum-1); }
.plan-mitte p { margin: 0; }
.plan-zweige { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--raum-3); }
.plan-zweig { background: var(--flaeche); border: 1px solid var(--rand); border-top: 3px solid var(--akzent); border-radius: var(--radius); padding: var(--raum-3); }
.plan-baum, .plan-baum ul { list-style: none; margin: 0; padding: 0; }
.plan-baum ul { margin-left: var(--raum-2); padding-left: var(--raum-3); border-left: 2px solid var(--rand); }
.plan-baum li { margin: var(--raum-2) 0; }
.plan-baum > li > .plan-knoten .plan-knoten-text { font-weight: 700; font-size: var(--schrift-l); }
.plan-knoten p { margin: 0.15rem 0 0; font-size: var(--schrift-s); }
.plan-bezug { font-size: var(--schrift-s); }
.plan-sprung { display: flex; flex-wrap: wrap; gap: var(--raum-2) var(--raum-4); list-style: none; padding: 0; }
.plan-c4-bild { margin: 0 0 var(--abstand); overflow-x: auto; }
.plan-c4-svg { display: block; width: 100%; min-width: 40rem; height: auto; }
.plan-c4-kasten rect { fill: var(--flaeche-leise); stroke: var(--feldrand); stroke-width: 2; }
.plan-c4-art-person rect, .plan-c4-art-system rect { fill: var(--akzent); stroke: var(--akzent); }
.plan-c4-art-person text, .plan-c4-art-system text { fill: var(--akzent-text); }
.plan-c4-art-extern rect { fill: var(--flaeche); stroke: var(--st-aus); }
.plan-c4-art-speicher rect { fill: var(--flaeche); stroke: var(--akzent); }
.plan-c4-geplant rect { stroke-dasharray: 7 5; }
.plan-c4-art-person.plan-c4-geplant rect, .plan-c4-art-system.plan-c4-geplant rect { fill: var(--flaeche); }
.plan-c4-art-person.plan-c4-geplant text, .plan-c4-art-system.plan-c4-geplant text { fill: var(--text); }
.plan-c4-name { font-size: 14px; font-weight: 700; fill: var(--text); }
.plan-c4-technik { font-size: 11px; fill: var(--text-leise); }
.plan-c4-linie { stroke: var(--text-leise); stroke-width: 1.5; }
.plan-c4-spitze { fill: var(--text-leise); }
.plan-c4-nr circle { fill: var(--flaeche); stroke: var(--text-leise); stroke-width: 1; }
.plan-c4-nr text { font-size: 11px; font-weight: 700; fill: var(--text); }
.plan-ideen { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--raum-3); }
.plan-ideen .karte { margin: 0; }
.plan-ideen h3 { margin-top: 0; font-size: var(--schrift-l); }
/* Bausteine des Master-Backends (PB-3945b): Stufe, Statuszeile, Verbindung, Tabelle, Filterleiste, Seiten, Aktenkopf, Karte "wartet".
   Arbeitsoberfläche: dicht und ruhig. Farben nur aus basis.css und nur in Paaren, die docs/KONTRAST.md trägt:
   ok auf flaeche, warn-text auf warn-bg, fehler auf fehler-bg, text-leise auf flaeche und auf flaeche-leise, text auf akzent-leise.
   Keine Bewegung (nichts, was prefers-reduced-motion abschalten müsste); der Fokus kommt aus basis.css und wird nirgends abgeschnitten. */
.stufe { display: inline-flex; align-items: center; gap: var(--raum-1); padding: 0.125rem var(--raum-2); border: 1px solid var(--rand); border-radius: 999px; background: var(--flaeche); color: var(--text); font-size: var(--schrift-xs); font-weight: 600; line-height: var(--zeile-dicht); letter-spacing: 0; text-transform: none; white-space: nowrap; vertical-align: middle; }
.stufe-ok { color: var(--ok); border-color: var(--ok); }
.stufe-achtung { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-rand); }
.stufe-dringend { background: var(--fehler-bg); color: var(--fehler); border-color: var(--fehler); }
.stufe-unbekannt { background: var(--flaeche-leise); color: var(--text-leise); border-style: dashed; border-color: var(--feldrand); }
/* Zustand (PB-4330): die eine Marke für jeden Zustand im Betrieb, Punkt und Wort. Fünf Stufen: ok, hinweis, warnung, fehler, neutral.
   Die älteren Namen bleiben gültig und sehen gleich aus: achtung = warnung, dringend = fehler, unbekannt = neutral (Teil stufe).
   Einsatz: <span class="stufe stufe-warnung">Wort</span>. Das Wort steht immer da, die Farbe nie allein. */
.stufe::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.stufe-hinweis { background: var(--akzent-leise); border-color: transparent; }
.stufe-hinweis::before { background: var(--akzent); }
.stufe-warnung { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-rand); }
.stufe-fehler { background: var(--fehler-bg); color: var(--fehler); border-color: var(--fehler); }
.stufe-neutral { background: var(--flaeche-leise); color: var(--text-leise); border-style: dashed; border-color: var(--feldrand); }
.stufe-unbekannt::before, .stufe-neutral::before { background: none; border: 1.5px solid currentColor; }
/* Kennzahl mit Stufe: Rand der Kachel und das Wort; eine unlesbare Zahl ist grau und gestrichelt, nie eine 0 */
.kacheln .kz .stufe { margin-top: var(--raum-1); }
.kacheln .kz-ok > a { border-color: var(--ok); }
.kacheln .kz-achtung > a { border-color: var(--warn-rand); }
.kacheln .kz-dringend > a { border-color: var(--fehler); }
.kacheln .kz-unbekannt > a { border-style: dashed; border-color: var(--feldrand); }
.kacheln .kz-unbekannt .zahl, .veraltet .sz-zahl, .veraltet .kacheln .zahl { color: var(--text-leise); }
/* Karte, die auf uns wartet: Rand in der Warnfarbe, das Wort steht in der Überschrift (Teil karte, Angabe wartet) */
.karte.wartet { border-color: var(--warn-rand); border-left-width: 4px; }
/* Statuszeile */
.statuszeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) var(--raum-4); margin-bottom: var(--abstand); padding: var(--raum-2) var(--raum-3); background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
.sz-werte { display: flex; flex-wrap: wrap; flex: 1 1 auto; gap: var(--raum-2) var(--raum-5); min-width: 0; margin: 0; }
.sz-wert { min-width: 0; padding-left: var(--raum-2); border-left: 3px solid var(--rand); }
.sz-ok { border-left-color: var(--ok); }
.sz-achtung { border-left-color: var(--warn-rand); }
.sz-dringend { border-left-color: var(--fehler); }
.sz-unbekannt { border-left-style: dashed; border-left-color: var(--feldrand); }
.sz-wert dt, .ak-angaben dt { font-size: var(--schrift-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-leise); }
.sz-wert dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem var(--raum-2); margin: 0; }
.sz-wert a { color: var(--text); }
.sz-zahl { font-size: var(--schrift-l); font-weight: 700; line-height: var(--zeile-dicht); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sz-stand { margin: 0; font-size: var(--schrift-s); color: var(--text-leise); }
.sz-handlungen, .ak-handlungen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); }
.sz-handlungen { margin-left: auto; }
.sz-handlungen form, .sz-handlungen p, .ak-handlungen form, .ak-handlungen p { margin: 0; }
/* Verbindung */
.verbindung { margin: 0 0 var(--abstand); font-size: var(--schrift-s); color: var(--text-leise); }
.verbindung-aus { padding: var(--raum-2) var(--raum-3); border: 1px solid var(--warn-rand); border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-text); }
.verbindung-aus a { color: inherit; font-weight: 600; }
/* Tabelle: rollt nur in ihrem Rahmen; Zahlen rechts und in gleich breiten Ziffern */
.daten-rahmen { max-width: 100%; margin-bottom: var(--abstand); overflow-x: auto; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
table.daten { width: 100%; border-collapse: collapse; font-size: var(--schrift-s); font-variant-numeric: tabular-nums; }
table.daten caption { padding: var(--raum-2) var(--raum-3); text-align: left; font-weight: 600; }
table.daten th, table.daten td { padding: var(--raum-2) var(--raum-3); border-bottom: 1px solid var(--rand); text-align: left; vertical-align: top; overflow-wrap: break-word; }
table.daten thead th { background: var(--flaeche-leise); color: var(--text-leise); font-size: var(--schrift-xs); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
table.daten thead a { color: inherit; text-decoration: none; }
table.daten thead a:hover { text-decoration: underline; }
table.daten th[aria-sort="ascending"] a, table.daten th[aria-sort="descending"] a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
table.daten tbody th { font-weight: 600; }
table.daten tbody tr:last-child > * { border-bottom: 0; }
table.daten .daten-zahl { text-align: right; white-space: nowrap; }
.daten-pfeil { font-size: var(--schrift-xs); }
.daten-unter { display: block; font-size: var(--schrift-s); font-weight: 400; color: var(--text-leise); }
/* Leerer Zustand einer Tabelle: derselbe Kasten wie der Baustein Leerzustand (bausteine.css), dort stehen Rahmen und Titel */
.daten-leer p { margin: 0 0 var(--raum-3); font-size: var(--schrift-s); color: var(--text-leise); }
.daten-leer p:last-child { margin: 0; }
/* Filterleiste */
.filterleiste { margin-bottom: var(--abstand); padding: var(--raum-2) var(--raum-3); background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
.fl-felder { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--raum-2) var(--raum-3); }
.fl-feld { flex: 0 1 11rem; min-width: 0; }
.fl-feld-text { flex: 1 1 14rem; }
.fl-feld label { margin: 0 0 0.15rem; font-size: var(--schrift-xs); color: var(--text-leise); }
.fl-feld input, .fl-feld select { padding: var(--raum-2) var(--raum-2); }
.fl-haken { flex: 0 0 auto; }
.fl-haken label { display: flex; align-items: center; gap: var(--raum-2); margin: 0; padding: var(--raum-2) 0; font-size: var(--schrift-s); font-weight: 400; color: var(--text); }
.fl-knoepfe { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin-left: auto; }
.fl-knoepfe button, .fl-knoepfe .knopf, .seiten .knopf { padding: var(--raum-2) var(--raum-3); }
.fl-marken { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin: var(--raum-2) 0 0; padding: var(--raum-2) 0 0; border-top: 1px solid var(--rand); list-style: none; }
.fl-marke { display: inline-flex; align-items: center; gap: var(--raum-2); padding: 0.1rem var(--raum-2); border: 1px solid var(--feldrand); border-radius: 999px; background: var(--flaeche); color: var(--text); font-size: var(--schrift-s); text-decoration: none; }
.fl-marke:hover { border-color: var(--akzent); text-decoration: underline; }
/* Seiten: die Gesamtzahl steht links, die Navigation daneben (die Klasse .seiten selbst kommt aus bausteine.css) */
.seiten-stand { margin: 0; font-size: var(--schrift-s); color: var(--text-leise); font-variant-numeric: tabular-nums; }
.seiten .seiten-stand { margin-right: auto; }
.seiten-allein { margin-top: var(--abstand); }
.seiten-zahlen { display: flex; flex-wrap: wrap; gap: var(--raum-1); margin: 0; padding: 0; list-style: none; }
.seiten-zahlen a, .seiten-zahlen [aria-current] { display: inline-flex; justify-content: center; min-width: 2rem; padding: var(--raum-1) var(--raum-2); border-radius: var(--radius); color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums; }
.seiten-zahlen a:hover { text-decoration: underline; }
.seiten-zahlen [aria-current] { background: var(--akzent-leise); font-weight: 600; }
.seiten-luecke { padding: var(--raum-1) 0.1rem; color: var(--text-leise); }
/* Aktenkopf */
.aktenkopf { margin-bottom: var(--abstand); padding-bottom: var(--raum-3); border-bottom: 1px solid var(--rand); }
.ak-ueber { margin: 0 0 0.15rem; font-size: var(--schrift-s); letter-spacing: 0.04em; text-transform: uppercase; }
.ak-zeile { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--raum-2) var(--raum-4); }
.ak-titel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) var(--raum-3); min-width: 0; }
.ak-titel h1, .ak-titel h2, .ak-titel h3 { margin: 0; overflow-wrap: anywhere; }
.ak-angaben { display: flex; flex-wrap: wrap; gap: var(--raum-2) var(--raum-5); margin: var(--raum-2) 0 0; }
.ak-angaben > div { min-width: 0; }
.ak-angaben dd { margin: 0; overflow-wrap: anywhere; }
.ak-merkmale { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin: var(--raum-2) 0 0; padding: 0; list-style: none; }
.ak-merkmale li { padding: 0.05rem var(--raum-2); border-radius: 999px; background: var(--flaeche-leise); color: var(--text-leise); font-size: var(--schrift-s); }
.reiter-leiste { margin-top: var(--raum-3); }
/* Mehrere Fenster nebeneinander (Bauarbeiter-Zentrale): am Handy eine Spalte, darüber eine Sprungleiste aus Ankern (Teil reiter in .sprungleiste) */
.fenster-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--raum-3); align-items: start; }
.fenster-raster > * { min-width: 0; margin: 0; }
.sprungleiste { display: none; }
/* Handy (unter 48 rem, wie anpassung.css): Tabellenzeilen werden Karten, jede Zelle nennt ihre Spalte; Reiter rollen waagerecht in ihrer
   Leiste statt umzubrechen (PB-10443: auch im Seitenkopf .bko und über Listen .bl-liste) (ohne Skript); nichts außer Tabellenrahmen und Reiterleiste rollt seitlich */
@media (max-width: 47.99rem) {
  .daten-gestapelt { overflow: visible; background: none; border: 0; }
  table.daten-karten, table.daten-karten tbody, table.daten-karten tr, table.daten-karten th, table.daten-karten td { display: block; width: 100%; }
  table.daten-karten thead { display: none; }
  table.daten-karten tr { margin-bottom: var(--raum-2); padding: var(--raum-2) var(--raum-3); background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
  table.daten-karten tbody th, table.daten-karten td { padding: 0.15rem 0; border: 0; }
  table.daten-karten tbody th { font-size: var(--schrift-m); }
  table.daten-karten td::before { content: attr(data-label) ": "; color: var(--text-leise); font-size: var(--schrift-s); }
  table.daten-karten .daten-zahl { text-align: left; white-space: normal; }
  table.daten:not(.daten-karten) { min-width: 40rem; }
  .seiten .seiten-stand { flex-basis: 100%; }
  .fl-feld, .fl-feld-text { flex: 1 1 100%; }
  .fl-knoepfe, .sz-handlungen { margin-left: 0; }
  .reiter-leiste .reiter, .sprungleiste .reiter, .bko .reiter, .bl-liste .reiter { flex-wrap: nowrap; overflow-x: auto; padding: var(--raum-1); scrollbar-width: thin; }
  /* PB-10609 (Soll-Ist 10601): sichtbarer Hinweis zum Wischen. Schatten am Rand, solange dort noch Reiter liegen (Hintergrund mit local deckt ihn am Ende ab); ohne Skript */
  .reiter-leiste .reiter, .sprungleiste .reiter, .bko .reiter, .bl-liste .reiter {
    background:
      linear-gradient(to right, var(--bg) 40%, transparent) left / 2.5rem 100% no-repeat local,
      linear-gradient(to left, var(--bg) 40%, transparent) right / 2.5rem 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, color-mix(in srgb, var(--text) 55%, transparent), transparent) left / 1.1rem 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--text) 55%, transparent), transparent) right / 1.1rem 100% no-repeat scroll;
  }
  .reiter-leiste .reiter a, .reiter-leiste .reiter-aktiv, .sprungleiste .reiter a, .sprungleiste .reiter-aktiv, .bko .reiter a, .bko .reiter-aktiv, .bl-liste .reiter a, .bl-liste .reiter-aktiv { flex: none; white-space: nowrap; }
  .fenster-raster { grid-template-columns: 1fr; }
  .sprungleiste { display: block; margin-bottom: var(--abstand); }
}
/* Suche über alles (PB-3944a, /betrieb/suche): großes Feld, Treffer je Gruppe als Tabelle; die Fundstelle ist hervorgehoben (mark),
   lange Kennungen und E-Mail-Adressen brechen um, damit am Handy nichts seitlich rollt */
.bs-suche input { min-width: 0; }
.bs-hinweis { max-width: 46rem; padding: var(--raum-2) var(--raum-3); border: 1px solid var(--warn-rand); border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-text); }
.bs-nichts { max-width: 46rem; }
.bs-gruppe { margin-bottom: calc(var(--abstand) * 1.5); }
.bs-gruppe h2 { margin: 0 0 var(--raum-2); font-size: var(--schrift-l); }
.bs-gruppe .daten-rahmen { margin-bottom: var(--raum-2); }
.bs-treffer table.daten th, .bs-treffer table.daten td { overflow-wrap: anywhere; }
.bs-treffer mark, .bs-seiten mark { padding: 0 0.1em; border-radius: 0.2em; background: var(--warn-bg); color: var(--warn-text); }
.bs-alle { margin: 0 0 var(--raum-2); font-size: var(--schrift-s); color: var(--text-leise); }
/* Leitstand (PB-3943c, /betrieb/leitstand): die Lage auf einer Seite, nach Dringlichkeit von oben nach unten. Hierarchie über Schrift
   und Abstand, nicht über Schmuck: große Zahl, kleines Wort, feine Linien. Dringendes trägt einen kräftigen Rand UND das Wort
   (Teil stufe), Ruhiges tritt zurück. Farben nur aus basis.css und nur in den Paaren von oben (keine neue Fläche, nur Ränder).
   Keine Bewegung, wie in der ganzen Datei (BetriebBausteineTest hält das fest). Kein overflow: hidden um Links,
   der Fokus aus basis.css bleibt ganz sichtbar. Bei 375 px rollt nichts seitlich: Raster mit minmax und Umbruch in Zahl und Wort. */
.ls { max-width: 84rem; }
.ls-gruss { margin: 0 0 var(--raum-4); }
.ls-gruss h1 { margin: 0; font-size: var(--schrift-xl); line-height: var(--zeile-eng); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ls-gruss .bko-handlung .knopf { display: inline-flex; align-items: center; gap: var(--raum-2); }
.ls-gruss .bko-handlung .sym { width: 1rem; height: 1rem; }
/* PB-9947 (bild=12): Karten mit feinem Rand auf der Fläche; Zeile Bauarbeiter, Braucht Aufmerksamkeit und die Bereiche */
.ls-karte, .ls-achtung, .ls-bereiche { margin: 0 0 var(--raum-4); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.ls-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin: 0; }
.ls-feld { min-width: 0; padding: var(--raum-3) var(--raum-4); border-left: 1px solid var(--rand); }
.ls-feld:first-child { border-left: 0; }
.ls-feld dt { font-size: var(--schrift-s); color: var(--text-leise); }
.ls-feld dd { margin: 0; }
.ls-f-wert { margin-top: var(--raum-1); font-size: var(--schrift-l); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ls-f-wert a { color: var(--text); text-decoration: none; } .ls-f-wert a:hover { text-decoration: underline; }
.ls-f-unter { margin-top: var(--raum-1); font-size: var(--schrift-xs); color: var(--text-leise); }
.ls-f-balken { margin: var(--raum-1) 0 0; } .ls-balken { display: block; width: 100%; height: 0.5rem; }
.ls-f-unter::before, .ls-punkt, .ls-anzahl::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: var(--raum-1); border-radius: 50%; background: var(--feldrand); vertical-align: 0.05em; }
.ls-f-ok .ls-f-unter::before, .ls-p-ok, .ls-p-ok.ls-anzahl::before { background: var(--ok); }
.ls-f-achtung .ls-f-unter::before, .ls-p-achtung, .ls-p-achtung.ls-anzahl::before { background: var(--warn-rand); }
.ls-f-dringend .ls-f-unter::before, .ls-p-dringend, .ls-p-dringend.ls-anzahl::before { background: var(--fehler); }
.ls-p-unbekannt { background: transparent; border: 1px dashed var(--feldrand); }
.ls-abschnitt { margin: 0 0 var(--raum-4); }
.ls-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-1) var(--raum-3); margin: 0; padding: var(--raum-3) var(--raum-4); }
.ls-kopf h2 { margin: 0; font-size: var(--schrift-m); font-weight: 700; scroll-margin-top: 5rem; }
.ls-anzahl { padding: 0 var(--raum-2); border-radius: 999px; background: var(--fehler-bg); font-size: var(--schrift-s); font-weight: 600; }
.ls-anzahl.ls-p-achtung { background: var(--warn-bg); } .ls-anzahl.ls-p-unbekannt { background: var(--flaeche-leise); border: 0; }
/* Kacheln der Bereiche (Teile kartenraster und kennzahl): aufgeklappt eine dichte Liste "Name … Zahl", wie im Soll-Bild */
.ls .kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 var(--raum-5); margin: 0 0 var(--raum-2); }
.ls .kacheln > li { display: flex; min-width: 0; }
.ls .kacheln a { flex: 1 1 auto; display: flex; flex-wrap: wrap; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 0 var(--raum-3); min-width: 0; padding: var(--raum-1) 0; border: 0; border-radius: 0; background: none; }
.ls .kacheln a:hover .name { text-decoration: underline; }
.ls .kacheln .zahl { font-size: var(--schrift-m); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ls .kacheln .name { flex: 1 1 8rem; margin: 0; font-size: var(--schrift-s); font-weight: 400; color: var(--text-leise); overflow-wrap: anywhere; }
.ls .kacheln .unter { flex-basis: 100%; order: 3; margin: 0; font-size: var(--schrift-xs); line-height: var(--zeile-dicht); color: var(--text-leise); }
.ls .kacheln .stufe { order: -1; margin: 0; }
.ls .kacheln .kz-dringend .zahl { color: var(--fehler); }
.ls .kacheln .kz-ok .stufe { display: none; } /* ruhig: nur Name und Zahl, wie die Ampelzeilen */
.ls-ruhig { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--raum-1) var(--raum-4); margin: 0; padding: 0 var(--raum-4) var(--raum-3); }
.ls-ruhig-satz { font-weight: 600; }
.ls-ruhig a { font-size: var(--schrift-s); }
.ls-achtung-liste { list-style: none; margin: 0; padding: 0; } /* PB-8593: Braucht Aufmerksamkeit, eine Zeile je Störung */
.ls-a { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) var(--raum-3); padding: var(--raum-3) var(--raum-4); border-top: 1px solid var(--rand); border-left: 4px solid var(--rand); }
.ls-a-dringend { border-left-color: var(--fehler); } .ls-a-achtung { border-left-color: var(--warn-rand); }
.ls-a-text { flex: 1 1 18rem; min-width: 0; }
.ls-a-satz { display: block; font-weight: 600; overflow-wrap: anywhere; }
.ls-a-faelle { flex-basis: 100%; margin: 0; padding-left: var(--raum-4); font-size: var(--schrift-s); } /* hängende Aufträge einzeln (Leitstand) */
.ls-a-mehr { display: block; font-size: var(--schrift-s); color: var(--text-leise); overflow-wrap: anywhere; }
/* Bereiche: je eine Zeile mit Symbol, Name, Text und Punkt, aufklappbar ohne Skript */
.ls-bereiche .ls-abschnitt { margin: 0; border-top: 1px solid var(--rand); }
.ls-bereiche .ls-abschnitt:first-child { border-top: 0; }
.ls-auf > summary { display: flex; align-items: center; gap: var(--raum-3); padding: var(--raum-3) var(--raum-4); cursor: pointer; list-style: none; }
.ls-auf > summary::-webkit-details-marker { display: none; }
.ls-auf > summary::after { content: "›"; color: var(--text-leise); font-size: var(--schrift-l); line-height: 1; }
.ls-auf[open] > summary::after { transform: rotate(90deg); }
.ls-b-sym { flex: none; width: 1.75rem; height: 1.75rem; padding: 0.3rem; border-radius: var(--radius); background: color-mix(in srgb, var(--akzent) 16%, transparent); color: var(--akzent); } /* PB-10442 (Soll-Ist L10): blau getönte Kachel */
.ls-b-name { flex: 1 1 auto; font-weight: 600; }
.ls-b-zeile { font-size: var(--schrift-s); color: var(--text-leise); text-align: right; overflow-wrap: anywhere; }
.ls-b-inhalt { padding: 0 var(--raum-4) var(--raum-3) calc(var(--raum-4) + 1.75rem + var(--raum-3)); }
.ls-b-inhalt .ls-ruhig { padding: 0; }
.ls-wort { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--raum-1) var(--raum-2); margin: 0 0 var(--raum-2); }
.ls-wort-name { color: var(--text-leise); }
.ls-wort a { font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
/* Technik und Bauarbeiter: Ampelzeilen ohne Kasten, zwei Spalten. Name und Zahl sind der Link, daneben das Wort der Stufe und "seit" */
.ls-zeilen { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 0 var(--raum-5); margin: 0 0 var(--raum-2); padding: 0; list-style: none; }
.ls-zeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--raum-2); min-width: 0; padding: var(--raum-1) 0; }
.ls-link { flex: 1 1 12rem; display: flex; align-items: baseline; justify-content: space-between; gap: var(--raum-4); min-width: 0; color: var(--text); text-decoration: none; }
.ls-link:hover .ls-name { text-decoration: underline; }
.ls-name { min-width: 0; font-size: var(--schrift-s); color: var(--text-leise); overflow-wrap: anywhere; }
.ls-zahl { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.ls-z-dringend .ls-zahl { color: var(--fehler); }
.ls-z-ok .stufe { display: none; } /* ruhig: nur Name und Zahl; das Wort trägt erst die Störung (und Vorlese-Programme lesen die Zahl) */
.ls-neben { flex-basis: 100%; min-width: 0; font-size: var(--schrift-xs); color: var(--text-leise); overflow-wrap: anywhere; }
.ls-kommt { margin: 0 0 var(--raum-2); font-size: var(--schrift-s); color: var(--text-leise); }
.ls-weiter { display: flex; flex-wrap: wrap; gap: var(--raum-1) var(--raum-5); margin: 0; font-size: var(--schrift-s); }
@media (max-width: 47.99rem) {
  .ls-feld { border-left: 0; border-top: 1px solid var(--rand); } .ls-feld:first-child { border-top: 0; }
  .ls-b-inhalt { padding-left: var(--raum-4); }
  .ls-b-zeile { flex: 1 1 100%; order: 3; text-align: left; }
  .ls-auf > summary { flex-wrap: wrap; }
}

/* PB-6003: Seite Server, eine Karte je Server */
.srv-kopf { margin: var(--raum-2) 0; }
.srv-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: var(--raum-3); }
.srv-karte h2 { margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); }
.srv-warnung { margin: 0 0 var(--raum-2); padding: 0.25rem var(--raum-2); border-left: 4px solid var(--warn-rand); background: var(--flaeche); }
.srv-werte { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.25rem var(--raum-3); margin: 0; }
.srv-werte dt { color: var(--text-leise); }
.srv-werte dd { margin: 0; overflow-wrap: anywhere; }
/* PB-8590 (E64 BO-09): Seitenkopf des Betriebs, Krümelpfad "Gruppe › Seite" über dem Titel; das Zeichen kommt aus dem CSS, nicht aus dem Text */
.bko { margin: 0 0 var(--raum-3); }
.bko > h1, .bko > .fs-kopf { margin-bottom: var(--raum-2); }
.bko-pfad ol { display: flex; flex-wrap: wrap; gap: 0 var(--raum-2); margin: 0 0 var(--raum-1); padding: 0; list-style: none; font-size: var(--schrift-s); color: var(--text-leise); }
.bko-pfad li + li::before { content: "›"; margin-right: var(--raum-2); }
.bko-pfad a[aria-current] { color: inherit; }
/* PB-9803: Plan, Reiter "Aufbau live" (Skizze plan-live.html). Farben nur aus basis.css; helle Töne als Mischung mit der Fläche. */
.al-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--raum-2) var(--raum-4); }
.al-kopf h1 { margin-bottom: 0; }
.al-stand { margin: 0 0 0 auto; text-align: right; color: var(--text-leise); font-size: var(--schrift-s); }
.al-stand-neu { display: block; }
.al { --al-hell: color-mix(in srgb, var(--akzent) 14%, var(--flaeche)); --al-mittel: color-mix(in srgb, var(--akzent) 38%, var(--flaeche)); --al-grund: color-mix(in srgb, var(--text) 14%, var(--flaeche)); --al-ok-hell: color-mix(in srgb, var(--st-fertig) 14%, var(--flaeche)); }
.al .karte { margin-bottom: 0; border-radius: 0.75rem; }
.al h2 { font-size: var(--schrift-m); margin: 0; }
.al-leit h2 { font-size: var(--schrift-l); margin-bottom: 0.1rem; }
.al-unter { color: var(--text-leise); margin: 0 0 var(--raum-4); }
.al-strahl { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }
.al-st { flex: 1; min-width: 0; text-align: center; position: relative; font-size: var(--schrift-xs); color: var(--text-leise); }
.al-st::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--al-grund); }
.al-st:first-child::before { display: none; }
.al-st-fertig::before, .al-st-jetzt::before { background: var(--akzent); }
.al-st-punkt { display: block; width: 20px; height: 20px; margin: 0 auto var(--raum-2); border-radius: 50%; background: var(--flaeche); border: 3px solid var(--al-grund); position: relative; z-index: 1; box-sizing: border-box; }
.al-st-fertig .al-st-punkt { background: var(--akzent); border-color: var(--akzent); }
.al-st-jetzt .al-st-punkt { border-color: var(--akzent); box-shadow: 0 0 0 4px var(--al-hell); }
.al-st-jetzt { color: var(--text); font-weight: 600; }
.al-st-name, .al-st-zahl { display: block; overflow-wrap: anywhere; }
.al-st-zahl { font-weight: 400; color: var(--text-leise); }
.al-gesamt { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-3); margin-top: var(--raum-4); }
.al-balken { display: block; width: 100%; height: 8px; border-radius: 999px; overflow: hidden; }
.al-balken-gesamt { flex: 1; min-width: 10rem; width: auto; }
.al-balken-ber { height: 6px; margin-bottom: var(--raum-3); }
.al-b-grund { fill: var(--al-grund); }
.al-b-fertig { fill: var(--akzent); }
.al-b-arbeit { fill: var(--al-mittel); }
.al-legende { display: flex; flex-wrap: wrap; gap: var(--raum-1) var(--raum-4); color: var(--text-leise); font-size: var(--schrift-xs); }
.al-legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--al-grund); }
.al-legende .al-lg-fertig::before { background: var(--akzent); }
.al-legende .al-lg-arbeit::before { background: var(--al-mittel); }
.al-raster { display: grid; grid-template-columns: minmax(0, 1fr) 18.75rem; gap: var(--raum-5); margin-top: var(--raum-5); align-items: start; }
.al-bereiche { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: var(--raum-4); align-content: start; }
.al-ber h2 { display: flex; align-items: center; gap: var(--raum-2); }
.al-nr { color: var(--text-leise); font-weight: 400; font-size: var(--schrift-xs); }
.al-rang { margin-left: auto; font-size: var(--schrift-xs); font-weight: 400; padding: 0.1rem var(--raum-2); border-radius: 999px; background: var(--seite); color: var(--text-leise); white-space: nowrap; }
.al-rang-eins { background: var(--al-hell); color: var(--akzent); }
.al-zahl { color: var(--text-leise); font-size: var(--schrift-xs); margin: 0.1rem 0 var(--raum-2); }
.al-auftraege { list-style: none; margin: 0; padding: 0; }
.al-auf { display: flex; align-items: center; gap: var(--raum-2); border-top: 1px solid var(--rand); padding: 0.45rem 0; }
.al-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.al-t a { color: inherit; text-decoration: none; }
.al-t a:hover, .al-t a:focus-visible { color: var(--akzent); text-decoration: underline; }
.al-wer { display: block; font-size: var(--schrift-xs); color: var(--text-leise); }
.al-stufe { font-size: var(--schrift-xs); border: 1px solid var(--rand); border-radius: 6px; padding: 0 0.3rem; color: var(--text-leise); }
.al-zust { font-size: var(--schrift-xs); padding: 0.1rem 0.45rem; border-radius: 999px; white-space: nowrap; }
.al-z-offen { background: var(--seite); color: var(--text-leise); }
.al-z-arbeit { background: var(--al-hell); color: var(--akzent); }
.al-z-fertig { background: var(--al-ok-hell); color: var(--st-fertig); }
.al-mehr { margin: var(--raum-2) 0 0; font-size: var(--schrift-xs); }
.al-mehr a { color: var(--text-leise); }
.al-seite { display: flex; flex-direction: column; gap: var(--raum-4); min-width: 0; }
.al-seite h2 { margin-bottom: var(--raum-3); }
.al-liste { list-style: none; margin: 0; padding: 0; }
.al-liste li { padding: var(--raum-2) 0; border-top: 1px solid var(--rand); font-size: var(--schrift-s); overflow-wrap: anywhere; }
.al-liste li:first-child { border-top: 0; }
.al-k { display: block; color: var(--text-leise); font-size: var(--schrift-xs); }
.al-platz { display: flex; gap: var(--raum-2); align-items: center; }
.al-punkt { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--st-fertig); }
.al-platz-ruht .al-punkt { background: var(--al-grund); }
.al-hinweis { margin: var(--raum-3) 0 0; font-size: var(--schrift-xs); color: var(--text-leise); }
@media (max-width: 900px) {
  .al-raster { grid-template-columns: minmax(0, 1fr); }
  .al-bereiche { grid-template-columns: minmax(0, 1fr); }
  .al-st-name, .al-st-zahl { display: none; }
  .al-st-jetzt .al-st-name { display: block; }
}
/* PB-9946 (Bild 11): "Seit" im Eingang, rot ab 2 Tagen; das Wort für Vorlese-Programme steht daneben (Farbe nie allein) */
.eg-seit { white-space: nowrap; }
.eg-seit-alt { color: var(--fehler); font-weight: 600; }
.eg-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); }
.eg-handlung { display: inline-flex; margin: 0; }
/* PB-9209a (ENT-78): wer ist dran – Kasten Ihr Teil, Marke je Schritt, Trennlinie beim Wechsel des Wegs */
.ba-wer { margin: 0 0 var(--raum-3); padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.ba-wer p { margin: 0 0 var(--raum-1); }
.ba-wer p:last-child { margin-bottom: 0; }
.ba-wer-offen, .ba-wer-erledigt { border-left: 4px solid var(--wer-hand); }
.ba-wer-stand { display: flex; flex-wrap: wrap; gap: var(--raum-2); align-items: baseline; }
.ba-wer-legende { font-size: var(--schrift-s); }
.ba-marke { display: inline-flex; gap: 0.25em; align-items: center; padding: 0 var(--raum-2); border: 1px solid var(--rand); border-radius: 999px; font-size: var(--schrift-s); white-space: nowrap; }
.ba-schritte > li.ba-trenn { display: flex; align-items: center; gap: var(--raum-3); padding: var(--raum-2) 0; font-size: var(--schrift-s); color: var(--text-leise); }
.ba-schritte > li.ba-trenn::before, .ba-schritte > li.ba-trenn::after { content: ""; flex: 1; border-top: 1px solid var(--rand); }
.ba-wer-fertig { color: var(--ok); }
.ba-marke-hand { border-color: var(--wer-hand-flaeche); background: var(--wer-hand-flaeche); color: var(--wer-hand); font-weight: 600; }
.ba-von-hand > summary { cursor: pointer; font-size: var(--schrift-s); color: var(--text-leise); }
/* PB-9209b: Auftrag erledigen grau, solange ein Schritt offen ist */
.ba-erledigen-grau button[disabled] { opacity: 0.5; cursor: not-allowed; }
/* PB-9209d: Alarm oben, ein Automat hängt */
.ba-alarm { margin: 0 0 var(--raum-4); padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.ba-alarm p { margin: 0 0 var(--raum-2); }
.ba-alarm form p { margin-bottom: 0; }
/* PB-9209e: Fortschritt oben, Kreise, Uhrzeit, Seitenleiste (Was heißt was, Auftrag, Verlauf) ab breitem Bildschirm */
.ba-fortschritt { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) var(--raum-4); margin: 0 0 var(--raum-4); }
.ba-fortschritt p { margin: 0; }
.ba-balken { display: flex; flex: 1; min-width: 12rem; gap: 2px; height: 0.375rem; }
.ba-feld { flex: 1; border-radius: 2px; background: var(--akzent-leise); }
.ba-feld-hand { background: var(--wer-hand); }
.ba-feld-automat { background: var(--st-fertig); }
.ba-feld-haengt { background: var(--st-blockiert); }
.ba-feld-laeuft { background: var(--st-offen); }
.ba-kreis { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--feldrand); border-radius: 50%; font-size: var(--schrift-s); font-variant-numeric: tabular-nums; }
.ba-legende .ba-kreis { width: 0.875rem; height: 0.875rem; vertical-align: -0.1em; }
.ba-kreis-fertig { border-color: var(--st-fertig); background: var(--st-fertig); color: var(--bg); font-weight: 600; }
.ba-kreis-haengt { border-color: var(--st-blockiert); background: var(--st-blockiert); color: var(--bg); font-weight: 600; }
.ba-kreis-laeuft { border: 2px solid var(--st-offen); color: var(--st-offen); }
.ba-stand { display: inline-flex; align-items: center; gap: var(--raum-1); white-space: nowrap; }
.ba-stand .zf-arbeit .sym { color: var(--st-offen); } /* PB-9222: Zeichen „läuft“ wie Kreis und Balken */
.ba-stand .zf-wartet .sym { color: var(--st-blockiert); } /* PB-9222: Zeichen „Fehler“ wie Kreis und Balken */
.ba-uhr { color: var(--text-leise); font-variant-numeric: tabular-nums; }
.ba-legende ul { list-style: none; margin: 0; padding: 0; }
.ba-legende li { padding: var(--raum-1) 0; font-size: var(--schrift-s); }
.ba-seite .pj-angaben dd { overflow-wrap: anywhere; }
@media (min-width: 75rem) {
  .ba-spalten-auftrag { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--raum-4); align-items: start; }
}
/* PB-9578 (Soll seite-auftrag, A1): Kunde · fällig · angelegt unter dem Titel, rechts der Sprung zur Notiz; schmal untereinander */
.ba-kopfzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--raum-2) var(--raum-4); margin: 0 0 var(--raum-3); }
.ba-kopfzeile p { margin: 0; }
.ba-kopfzeile-angaben strong { color: var(--text); font-weight: 500; }
/* PB-9616 (Soll seite-auftrag, A2): Erklärung eines Schritts als leise Zeile unter dem kurzen Titel */
.ba-schritt-erkl { margin: 0.15rem 0 0; color: var(--text-leise); }
/* PB-9618 (Soll seite-auftrag, A7/A8): Balken als ein Strich (Felder ohne Lücke, runde Enden nur außen); Überschriften der
   Seitenleiste als kleine Großbuchstaben in leiser Farbe wie im Soll („WAS HEISST WAS“, „AUFTRAG“, „VERLAUF“). */
.ba-balken { gap: 0; border-radius: 999px; overflow: hidden; }
.ba-balken .ba-feld { border-radius: 0; }
.ba-seite .karte > h2 { font-size: var(--schrift-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-leise); }
/* PB-9619 (Soll seite-auftrag, A4): hängt ein Automat, ein einziger roter Kasten: Titel und Grund links, „Jetzt neu versuchen“ rechts
   als ruhiger Knopf (kein Hauptknopf); schmal untereinander. Die Meldung darin ohne eigenen Rahmen. */
.ba-alarm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--raum-2) var(--raum-4); border-color: var(--fehler); background: var(--fehler-bg); }
.ba-alarm-text { flex: 1 1 20rem; min-width: 0; }
.ba-alarm .meldung-fehler { margin: 0 0 var(--raum-1); padding: 0; border: 0; background: none; font-weight: 600; }
.ba-alarm-text > p:last-child { margin: 0; color: var(--text); }
.ba-alarm form { flex: 0 1 18rem; }
.ba-alarm form .leise { display: block; margin-top: var(--raum-1); font-size: var(--schrift-xs); }
.ba-alarm-knopf { background: var(--flaeche); }
.eingang-dauer { margin-top: var(--raum-5); } .eingang-dauer > summary { cursor: pointer; color: var(--text-leise); } /* PB-10636: mittlere Dauer zugeklappt unter der Liste */

/* Hilfe (PB-1117): Themen links als Liste, Inhalt rechts, am Handy untereinander */
.hilfe { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); gap: var(--abstand); align-items: start; }
.hilfe-themen { position: sticky; top: var(--abstand); max-height: calc(100vh - 2 * var(--abstand)); overflow-y: auto; overscroll-behavior: contain; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: var(--abstand); }
.hilfe-themen h2 { margin-top: 0; font-size: 1rem; }
.hilfe-themen ul { list-style: none; margin: 0; padding: 0; }
.hilfe-themen li + li { margin-top: 0.4rem; }
.hilfe-inhalt .karte:last-child { margin-bottom: 0; }
.hilfe-inhalt .karte { scroll-margin-top: var(--abstand); }
/* PB-10241: Im Rahmen steht der Kopf fest oben (2,7 rem). Die Themenliste klebt darunter und scrollt selbst, wenn sie höher als das Fenster ist; so liegt kein Fokus außerhalb des Bildes. */
.rahmen-oben .hilfe-themen { top: calc(2.75rem + var(--abstand)); max-height: calc(100vh - 2.75rem - 2 * var(--abstand)); }
.rahmen-oben .hilfe-inhalt .karte { scroll-margin-top: calc(2.75rem + var(--abstand)); }
@media (max-width: 47.99rem) {
  .hilfe { grid-template-columns: minmax(0, 1fr); }
  .hilfe-themen, .rahmen-oben .hilfe-themen { position: static; max-height: none; overflow: visible; }
}
/* Rechtliche Seiten (GUI öffentlich): breitere Lesespalte als die Anmeldung, ruhige Abstände, lange Adressen brechen am Handy um */
body.solo main:has(> .rechtstext) { max-width: 44rem; }
.rechtstext { line-height: 1.6; overflow-wrap: anywhere; }
.rechtstext h2 { font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }
.rechtstext address { font-style: normal; }
.rechtstext-weiter { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rand); }
.rechtstext-weiter ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* PB-5603: Status-Punkt eines Servers. Das Wort steht immer daneben (Farbe nie allein); Blinken nur ohne "weniger Bewegung". */
.status-punkt { display: inline-flex; align-items: center; gap: 0.4rem; }
.status-punkt-kreis { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--text-leise); }
.status-punkt-online .status-punkt-kreis { background: var(--ok); }
.status-punkt-offline .status-punkt-kreis { background: var(--fehler); }
.status-punkt-kein .status-punkt-kreis, .status-punkt-unbekannt .status-punkt-kreis, .status-punkt-adresse-fehlt .status-punkt-kreis { background: transparent; border: 0.12rem solid var(--text-leise); }
@media (prefers-reduced-motion: no-preference) {
  .status-punkt-online .status-punkt-kreis { animation: status-punkt-blink 2s ease-in-out infinite; }
  .status-punkt-offline .status-punkt-kreis { animation: status-punkt-blink 1s ease-in-out infinite; }
  @keyframes status-punkt-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
}
/* PB-5602: Server-Mindmap. Ohne Skript: Zweige untereinander; breit: Zweige nebeneinander. Geplante Kacheln ausgegraut, gestrichelt. */
.server-mindmap { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.server-zweig { border-left: 0.2rem solid var(--text-leise); padding-left: 0.8rem; }
.server-kacheln { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.server-kachel { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.8rem; padding: 0.6rem 0.8rem; border: 0.07rem solid var(--text-leise); border-radius: 0.4rem; }
.server-kachel-geplant, .server-kachel-abgeschaltet { border-style: dashed; opacity: 0.6; }

/* Adressen (E5): Liste (PB-1509) und Hinterlegen (PB-1510) */
.dm-liste { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.dm-liste th, .dm-liste td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--rand); vertical-align: middle; }
.dm-liste th { color: var(--text-leise); font-weight: 600; }
.dm-adresse { overflow-wrap: anywhere; font-weight: 600; }
@media (max-width: 40rem) {
  .dm-liste thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dm-liste, .dm-liste tbody, .dm-liste tr, .dm-liste td { display: block; width: 100%; }
  .dm-liste tr { border: 1px solid var(--rand); border-radius: 0.6rem; background: var(--flaeche); margin-bottom: 0.5rem; padding: 0.4rem 0; }
  .dm-liste td { border-bottom: 0; padding: 0.25rem 0.8rem; }
  .dm-liste td::before { content: attr(data-titel); display: block; font-size: 0.85em; color: var(--text-leise); }
}
.dm-angaben { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; }
.dm-angaben dt { color: var(--text-leise); }
.dm-angaben dd { margin: 0; overflow-wrap: anywhere; }
/* Seite einer Adresse mit Anleitung (PB-1511): drei Werte zum Markieren, ein Klick markiert den ganzen Wert */
.dm-werte { margin: 0.8rem 0; display: grid; gap: 0.6rem; }
.dm-wert-zeile { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.2rem 1rem; align-items: baseline; }
.dm-werte dt { color: var(--text-leise); font-weight: 600; }
.dm-werte dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: baseline; }
.dm-wert { user-select: all; -webkit-user-select: all; cursor: text; overflow-wrap: anywhere; font-size: 1.05em; padding: 0.25rem 0.5rem; border: 1px solid var(--rand); border-radius: 0.4rem; background: var(--flaeche); }
.dm-wert-hilfe { font-size: 0.9em; }
@media (max-width: 40rem) {
  .dm-wert-zeile { grid-template-columns: 1fr; }
}
/* Zuordnen und Entfernen (PB-1516) */
.dm-zuordnen { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: center; }
.dm-zuordnen label { font-weight: 600; flex-basis: 100%; }
.dm-zuordnen select { min-width: 0; max-width: 100%; }
.dm-zuordnen p { flex-basis: 100%; margin: 0; }
.dm-entfernen { margin: 1rem 0 0; }
.dm-entfernen-knopf, .dm-entfernen-bestaetigen { color: var(--fehler); border-color: var(--fehler); text-decoration: none; }
.dm-entfernen-knopf:hover, .dm-entfernen-bestaetigen:hover { background: var(--fehler-bg); }

/* Posteingang (E8, PB-1805): Liste der Hinweise, ungelesene fett mit Punkt */
.pe-liste { list-style: none; margin: 1rem 0; padding: 0; }
.pe-hinweis { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--rand); }
.pe-hinweis form { margin: 0; }
.pe-oeffnen { display: flex; align-items: baseline; gap: 0.5rem; margin: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; overflow-wrap: anywhere; }
button.pe-oeffnen { cursor: pointer; color: var(--akzent); text-decoration: underline; text-underline-offset: 0.15em; }
button.pe-oeffnen:hover { text-decoration-thickness: 2px; }
.pe-ungelesen .pe-text { font-weight: 700; }
.pe-punkt { flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--akzent); align-self: center; }
.pe-angaben { margin: 0.25rem 0 0; font-size: 0.9em; }
.pe-markieren { margin-top: 0.4rem; }
.pe-klein { font-size: 0.9em; padding: 0.2rem 0.6rem; }
@media (max-width: 40rem) {
  .pe-hinweis { padding: 0.6rem 0.2rem; }
}

/* Betrieb: Seiten der Leitung für die internen Loops (PB-4014): Reiter, Notaus oben auf jeder Seite, Warnungen, Ausgaben des Dienstes. */
.il-reiter { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: var(--abstand); }
.il-reiter a, .il-reiter .reiter-aktiv { display: inline-flex; padding: 0.3rem 0.6rem; border-radius: var(--radius); color: var(--text); text-decoration: none; }
.il-reiter .reiter-aktiv { background: var(--flaeche-leise); font-weight: 600; }
.il-notaus { border: 1px solid var(--rand); border-radius: var(--radius); padding: 0.6rem 0.9rem; margin-bottom: var(--abstand); }
.il-notaus h2 { font-size: 1rem; margin: 0 0 0.3rem; }
.il-notaus-an { border-color: var(--fehler); background: var(--fehler-bg); }
button.il-gefahr { border-color: var(--fehler); color: var(--fehler); font-weight: 600; }
.il-warnung { color: var(--warn-text); }
.il-ausgabe { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 30rem; overflow: auto; padding: 0.6rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche-leise); font-size: 0.85rem; }
.il-formular textarea { min-height: 10rem; width: 100%; }
.il-formular .feld-fehler { color: var(--fehler); font-size: 0.9rem; margin: 0.2rem 0 0; }
.il-werte { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; margin: 0 0 var(--abstand); }
.il-werte dt { color: var(--text-leise); }
.il-werte dd { margin: 0; overflow-wrap: anywhere; }

/* Live-Ansicht als Teil im Reiter Gespräch (PB-2417, Teil live_ansicht nach dem Gespräch von PB-1706). Die Breite des Rahmens hängt
   nur an Klassen (la-breite-*), umgeschaltet per Link mit ?breite= (ohne Skript, ohne Inline-Stil).
   Zwei Spalten ab 60rem ohne eigene Hülle: Der Projektkopf (bis zu den Reitern) steht über beiden Spalten; alles danach außer der
   Ansicht fließt links als gestapelte Floats, die Ansicht steht rechts daneben. Schmaler: untereinander, Gespräch zuerst. */
.la-ansicht { min-width: 0; margin-top: var(--abstand); }
.la-ansicht h2 { margin-top: 0; }
.la-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0 0 0.5rem; }
.la-neu { margin: 0; }
.la-buehne { background: var(--flaeche-leise); border: 1px solid var(--rand); border-radius: var(--radius); padding: 0.5rem; overflow-x: auto; }
.la-rahmen { display: block; margin: 0 auto; height: 70vh; min-height: 24rem; border: 1px solid var(--rand); background: var(--bg); }
.la-breite-handy { width: 390px; max-width: 100%; }
.la-breite-tablet { width: 820px; max-width: 100%; }
.la-breite-rechner { width: 100%; }
@media (min-width: 60rem) {
    main:has(> .la-ansicht) { display: flow-root; }
    main:has(> .la-ansicht) > .reiter ~ :not(.la-ansicht) { float: left; clear: left; width: 33%; min-width: 15rem; box-sizing: border-box; }
    main:has(> .la-ansicht) > .la-ansicht { margin-left: calc(max(33%, 15rem) + var(--abstand)); }
}
@media (max-width: 60rem) {
    .la-rahmen { height: 60vh; }
}

/* Gespräch (E7): Blasen, Eingabe. Eigene rechts, Team links; am Handy bleibt das Eingabefeld über der Tab-Leiste stehen (PB-1713). */
.gs-verlauf { list-style: none; margin: 0 0 var(--abstand); padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.gs-blase { max-width: 85%; padding: 0.5rem 0.8rem; border: 1px solid var(--rand); border-radius: 0.75rem; overflow-wrap: anywhere; }
.gs-eigene { align-self: flex-end; background: var(--flaeche-leise, transparent); }
.gs-team { align-self: flex-start; }
.gs-kopf { margin: 0 0 0.2rem; font-size: 0.85rem; }
.gs-text { margin: 0; white-space: pre-line; }
.gs-eingabe textarea { width: 100%; box-sizing: border-box; }
@media (max-width: 30rem) { .gs-blase { max-width: 95%; } }
.marke-neu { display: inline-block; margin-left: 0.3rem; padding: 0 0.4rem; border-radius: 0.6rem; background: var(--akzent); color: var(--akzent-text); font-size: 0.75rem; font-weight: 700; }
.pj-neu { margin: 0; font-weight: 700; }
/* PB-1713: Am Handy bleibt das Eingabefeld beim Blättern sichtbar, direkt über der Tab-Leiste (fest unten, siehe anpassung.css). */
@media (max-width: 47.99rem) { .gs-eingabe { position: sticky; bottom: calc(4rem + env(safe-area-inset-bottom)); z-index: 5; background: var(--flaeche); padding: 0.5rem 0; border-top: 1px solid var(--rand); } .gs-eingabe textarea { max-height: 30vh; } }
.gs-vorlesen { margin: 0.3rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gs-vorlesen button { font-size: 0.85rem; padding: 0.15rem 0.6rem; }
/* PB-GUI-kunde-gespraech: Blasen klar unterscheidbar (Ihre in Akzent-leise, Team auf leiser Fläche), in hell und dunkel aus den Variablen.
   Die Bedeutung trägt immer der Name im Kopf, nie die Farbe allein. Leerzustand mit Beispielen als Zitate; Knöpfe am Handy daumengroß. */
.gs-blase { border-radius: 1rem; line-height: 1.5; }
.gs-eigene { background: var(--akzent-leise); border-color: transparent; border-bottom-right-radius: 0.3rem; }
.gs-team { background: var(--flaeche-leise); border-color: var(--rand); border-bottom-left-radius: 0.3rem; }
.gs-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5rem; }
.gs-datei { margin: 0.3rem 0 0; font-size: 0.9rem; }
.gs-leer { max-width: 40rem; margin: 1.5rem auto var(--abstand); padding: 1rem 1.2rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.gs-leer h2 { margin-top: 0; }
.gs-beispiele { list-style: none; margin: 0 0 var(--abstand); padding: 0; display: grid; gap: 0.5rem; }
.gs-beispiele li { padding: 0.6rem 0.8rem; border-left: 3px solid var(--akzent); border-radius: var(--radius); background: var(--flaeche-leise); overflow-wrap: anywhere; }
.gs-senden { margin: 0.5rem 0 0; }
.gs-vorlesen button { min-height: 2.25rem; }
@media (max-width: 47.99rem) {
  .gs-vorlesen button { min-height: 2.75rem; padding: 0.4rem 0.8rem; }
  .gs-senden button { width: 100%; min-height: 2.75rem; }
  .gs-eingabe .feld { margin-bottom: 0.5rem; }
  .gs-eingabe .feld-hilfe { font-size: 0.85rem; }
}

/* Bauarbeiter-Zentrale (/betrieb/bauarbeiter), seit PB-4320 die Kommandozentrale mit Chat, seit PB-4320c ein Chat-Werkzeug.
   Die Seite ist genau so hoch wie das Fenster und rollt nicht, nur die Spalten rollen. Mitte: der große Chat mit dem eigenen
   Architekten (Blasen, PB-4391: eigene links, die der Agenten grau rechts). Rechts: die Mannschaft als Liste; ein geöffneter Mini-Chat übernimmt die ganze Spalte.
   Links: die Spalte "Wissen" mit "Dreaming". Darüber EINE Kopfzeile mit Verbindung und Griffen.
   Im Quelltext steht der Chat zuerst (Tab-Taste); "order" setzt die Spalte Wissen am breiten Bildschirm nach links.
   Schrift und Abstand (PB-4332): nur aus den Stufen des Fundaments in basis.css, --schrift-xs bis --schrift-l (12, 13, 15, 18 px bei
   üblicher Grundschrift) und --raum-1 bis --raum-6; keine Regel dieser Datei nennt eine andere Schriftgröße.
   Farben nur aus basis.css und nur in Paaren, die docs/KONTRAST.md trägt: text und text-leise auf flaeche, flaeche-leise und bg, text
   auf akzent-leise, akzent-text auf akzent, warn-text auf warn-bg, fehler auf fehler-bg und flaeche, ok auf flaeche; akzent, rand,
   feldrand, ok, warn-rand und fehler sonst nur als Linien und Punkte. Jeder Zustand steht als Wort da; Punkt, Rand und Seite der
   Blase helfen nur dem Auge. Klickflächen sind mindestens 2rem hoch (Baum und kleine Verweise 1.75rem), am Handy 2.5rem.
   Kein overflow: hidden um etwas, das den Fokus tragen kann. Die einzige Bewegung (neue Nachricht blendet ein) steht unten und nur,
   wenn das Gerät Bewegung nicht abgewählt hat. Bei 375 px rollt nichts seitlich: jede Spalte hat minmax(0, …), lange Wörter brechen um. */
body.betrieb main:has(> .bz) { max-width: none; padding: var(--raum-2) var(--raum-4); }
.bz { display: flex; flex-direction: column; min-width: 0; font-size: var(--schrift-m); }
.bz [hidden] { display: none; }
.bz button, .bz .knopf, .bz input, .bz select, .bz textarea, .bz label, .bz .meldung, .bz .leise, .bz th, .bz td, .bz caption { font-size: var(--schrift-s); }
.bz .stufe, .bz kbd { font-size: var(--schrift-xs); }
.bz table { font-size: var(--schrift-s); }
.bz button, .bz .knopf { min-height: 2rem; padding: 0.2rem var(--raum-3); }
/* PB-4332: Das Fundament (formular.css) gibt im Betrieb jedem Feld und Knopf --feldhoehe (36 px) und 6 px Innenabstand oben und unten.
   Die Zentrale ist dichter (Kopfzeile, Symbolknöpfe, Sendeknopf neben dem einzeiligen Feld): hier gilt 2rem, am Handy 2.5rem (unten).
   Die Höhe über die Variable (ein Knopf mit eigener Höhe setzt sie für sich, etwa "erneut senden"); der Innenabstand mit demselben
   Selektor wie im Fundament, um .bz erweitert */
.bz { --feldhoehe: 2rem; }
body.betrieb main .bz :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="file"]), select, button, .knopf) { padding-top: 0.2rem; padding-bottom: 0.2rem; }
.bz .meldung { margin: 0 0 0.4rem; padding: 0.35rem 0.6rem; }
.bz :focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.bz-punkt { flex: none; display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; border: 2px solid var(--feldrand); }

/* Kopf: eine Zeile mit Titel, Verbindung und Griffen */
.bz-kopf { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem; min-width: 0; margin: 0 0 var(--raum-2); }
.bz-kopf h1 { margin: 0; font-size: var(--schrift-l); line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; }
.bz-verbindung { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.4rem; min-height: 1.75rem; margin: 0; padding: 0.1rem 0.6rem; border: 1px solid var(--rand); border-radius: 999px; background: var(--flaeche); font-size: var(--schrift-s); font-weight: 600; }
.bz-v-stand { font-weight: 400; color: var(--text-leise); font-variant-numeric: tabular-nums; }
.bz-v-ok .bz-punkt { background: var(--ok); border-color: var(--ok); }
.bz-v-veraltet, .bz-v-chat { border-color: var(--warn-rand); background: var(--warn-bg); color: var(--warn-text); }
.bz-v-veraltet .bz-punkt, .bz-v-chat .bz-punkt { border-color: var(--warn-rand); }
.bz-v-keine { border-color: var(--fehler); background: var(--fehler-bg); color: var(--fehler); }
.bz-v-keine .bz-punkt { border-color: var(--fehler); }
.bz-v-veraltet .bz-v-stand, .bz-v-chat .bz-v-stand, .bz-v-keine .bz-v-stand { color: inherit; }
.bz-handlungen { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.bz-handlungen form { margin: 0; }
.bz-handlungen .knopf, .bz-handlungen > form > button { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.bz .bz-h-neu { min-width: 2rem; padding-left: 0; padding-right: 0; font-size: var(--schrift-m); }
.bz-gefahr, button.bz-gefahr { border-color: var(--fehler); border-width: 2px; color: var(--fehler); font-weight: 700; }
/* Aufklapper im Kopf (An alle schreiben, Notaus, Tastenkürzel): zwei Griffe ohne Skript; der Inhalt liegt über der Seite */
.bz-auf { position: relative; }
.bz-auf > summary { list-style: none; cursor: pointer; }
.bz-auf > summary::-webkit-details-marker { display: none; }
.bz-auf[open] > summary { background: var(--flaeche-leise); }
.bz-auf-inhalt { position: absolute; top: calc(100% + 0.4rem); right: 0; z-index: 8; width: 26rem; max-width: calc(100vw - 2rem); padding: 0.8rem 0.9rem; background: var(--flaeche); border: 1px solid var(--feldrand); border-radius: 0.75rem; }
.bz-notaus .bz-auf-inhalt { border-color: var(--fehler); border-width: 2px; }
.bz-auf-inhalt p { margin: 0 0 var(--raum-2); font-size: var(--schrift-s); }
.bz-notaus-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.4rem 0.6rem; margin: 0; }
.bz-notaus-form p { flex: 1 1 100%; margin: 0; font-size: var(--schrift-s); }
.bz-notaus-form label { flex: 1 1 100%; margin: 0; color: var(--text-leise); }
.bz-notaus-form input { flex: 1 1 12rem; width: auto; min-width: 0; }
.bz-eingabe-alle textarea { min-height: 5.5rem; resize: none; }
.bz-e-rechts { display: flex; justify-content: flex-end; margin-top: 0.4rem; }
.bz .bz-tasten > summary { min-width: 2rem; padding-left: 0; padding-right: 0; font-weight: 700; }
.bz-tasten-titel { font-weight: 700; }
.bz-tasten-liste { margin: 0; font-size: var(--schrift-s); }
.bz-tasten-liste div { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.2rem 0; border-bottom: 1px solid var(--rand); }
.bz-tasten-liste div:last-child { border-bottom: 0; }
.bz-tasten-liste dt { flex: 0 0 10.5rem; }
.bz-tasten-liste dd { margin: 0; }
.bz kbd { padding: 0.05rem 0.4rem; border: 1px solid var(--feldrand); border-radius: 0.3rem; background: var(--flaeche-leise); font-family: inherit; font-weight: 600; white-space: nowrap; }

/* Meldungen unter dem Kopf: schmal, damit dem Chat die Höhe bleibt. Der Hinweis auf Beispieldaten steht nur hier, einmal */
.bz-meldungen { flex: none; }
.bz-meldungen > p, .bz-meldungen > div { margin: 0 0 0.4rem; }
.bz-beispiel { padding: 0.15rem 0.6rem; border: 1px solid var(--warn-rand); border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-text); font-size: var(--schrift-xs); }
.bz-ohne-verbindung { padding: 0.2rem 0.6rem; border: 1px solid var(--fehler); border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-text); font-size: var(--schrift-s); }
.bz-neu-laden { padding: 0.3rem 0.6rem; border: 1px solid var(--warn-rand); border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-text); font-size: var(--schrift-s); }
.bz-neu-laden a { color: inherit; font-weight: 600; }
.bz-notaus-an { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem var(--raum-4); padding: 0.4rem 0.7rem; background: var(--fehler-bg); border: 2px solid var(--fehler); border-radius: var(--radius); }
.bz-notaus-kopf { flex: 1 1 24rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; margin: 0; font-size: var(--schrift-s); overflow-wrap: anywhere; }
.bz-notaus-an .bz-notaus-form { flex: 1 1 26rem; flex-wrap: nowrap; align-items: center; }
.bz-notaus-an .bz-notaus-form label { flex: 0 1 auto; color: var(--text); }
.bz-notaus-kopf strong { font-size: var(--schrift-m); color: var(--fehler); }
.bz-notaus-an .leise { margin: 0; color: var(--text); }
/* Reiter: am Handy steht eine Ansicht im Bild (Links, ohne Skript); am breiten Bildschirm stehen alle drei Spalten da */
.bz-reiter { flex: none; display: flex; gap: var(--raum-1); margin: 0 0 var(--raum-2); padding: 0.2rem; background: var(--flaeche-leise); border: 1px solid var(--rand); border-radius: var(--radius); }
.bz-reiter a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 2.5rem; padding: 0.1rem 0.4rem; border-radius: 0.35rem; color: var(--text); font-size: var(--schrift-s); font-weight: 600; text-decoration: none; text-align: center; }
.bz-reiter a:hover { background: var(--akzent-leise); }
.bz-reiter a.bz-reiter-aktiv { background: var(--flaeche); box-shadow: inset 0 -3px 0 var(--akzent); }

/* Die drei Spalten */
.bz-app { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: var(--raum-3); min-width: 0; min-height: 0; }
/* position: relative hält versteckte Texte für Vorlese-Programme (absolut gesetzt) in ihrer Spalte; sonst verlängerten sie die Seite.
   Dasselbe gilt für jeden Kasten, der in sich rollt (Liste der Mannschaft, Verlauf, Steuerung, Wissen): Er trägt position: relative */
.bz-mitte, .bz-rechts, .bz-links, .bz-wissen { position: relative; min-width: 0; min-height: 0; }
/* PB-4348: links oben das Wissen (kurz, rollt in sich), darunter der Leitstrahl des Projekts; beide in einer Spalte */
.bz-links { display: flex; flex-direction: column; gap: var(--raum-3); }
.bz-links > .bz-wissen { flex: 0 1 auto; min-height: 2.6rem; max-height: 20rem; }
.bz-links > .lst { position: relative; flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
/* PB-4396: Kachel "Micro-Tasks" unter dem Leitstrahl, im Bild wie der Leitstrahl */
.bz-links > .bz-mt { flex: 0 0 auto; display: flex; flex-direction: column; gap: 0.35rem; padding: 0.35rem var(--raum-3) 0.45rem; background: var(--flaeche-leise); border: 1px solid var(--rand); border-radius: 0.75rem; font-size: var(--schrift-s); line-height: var(--zeile-eng); }
.bz-mt h2, .bz-mt-unter { margin: 0; font-size: var(--schrift-s); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-leise); }
.bz-mt p { margin: 0; }
.bz-mt-liste { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.bz-mt-punkt { overflow-wrap: anywhere; }
.bz-mt-nr { font-weight: 700; }
.bz-mt-fuss { margin-top: 0.15rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.bz-mitte, .bz-rechts { display: flex; flex-direction: column; }
.bz-zustand-karte { max-width: 38rem; margin: var(--raum-6) auto; padding: 1.1rem 1.3rem; background: var(--flaeche); border: 1px dashed var(--feldrand); border-radius: 0.75rem; }
.bz-zustand-karte h2 { margin: 0 0 var(--raum-2); font-size: var(--schrift-l); }
.bz-zustand-karte p { margin: 0 0 0.7rem; }
.bz-zustand-karte form, .bz-zustand-karte p:last-child { margin: 0; }
.bz-getrennt { border-style: solid; border-color: var(--fehler); }

/* Zustand: Punkt und Wort */
.bz-zustand { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--schrift-s); font-weight: 600; white-space: nowrap; }
.bz-z-arbeitet .bz-punkt, .bz-z-frei .bz-punkt { border-color: var(--ok); }
.bz-z-arbeitet .bz-punkt { background: var(--ok); }
/* Umbau 9: im Limit = grau mit kleiner Uhr (Kreis, zwei Zeiger), nie grün, nie bewegt; das Wort steht daneben, die Farbe nie allein */
.bz-z-limit { color: var(--text-leise); }
.bz-z-limit .bz-punkt { width: 0.8rem; height: 0.8rem; border-color: var(--text-leise); background: linear-gradient(var(--text-leise), var(--text-leise)) 50% 22% / 2px 32% no-repeat, linear-gradient(var(--text-leise), var(--text-leise)) 62% 50% / 28% 2px no-repeat; }
.bz-z-wartet .bz-punkt { background: var(--warn-rand); border-color: var(--warn-rand); }
.bz-z-angehalten .bz-punkt, .bz-z-aus .bz-punkt { background: var(--fehler); border-color: var(--fehler); border-radius: 0.1rem; }
.bz-z-angehalten, .bz-z-aus { color: var(--fehler); }
.bz-z-pausiert .bz-punkt, .bz-z-ruht .bz-punkt, .bz-z-unbekannt .bz-punkt { border-style: dashed; }
.bz-z-ruht, .bz-z-unbekannt, .bz-z-pausiert { color: var(--text-leise); }
.bz-k-seit { font-size: var(--schrift-xs); font-weight: 700; }
.bz-k-seit:empty { display: none; }
.bz-nur-wort { padding: 0 0.45rem; border: 1px dashed var(--feldrand); border-radius: 999px; font-size: var(--schrift-xs); font-weight: 600; color: var(--text-leise); white-space: nowrap; }

/* Der große Chat. Kopf in einer Zeile; "Details" klappt über den Verlauf, ohne ihm Höhe zu nehmen */
.bz-chat { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 0.75rem; }
.bz-chat.wartet { border-color: var(--warn-rand); }
.bz-c-kopf { position: relative; flex: none; display: flex; align-items: center; gap: var(--raum-3); min-height: 2.75rem; padding: 0.3rem 0.9rem; border-bottom: 1px solid var(--rand); }
.bz-c-wer { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.7rem; min-width: 0; }
.bz-c-wer h2 { margin: 0; font-size: var(--schrift-l); line-height: 1.3; overflow-wrap: anywhere; }
.bz-c-ueber { margin: 0 0 0 auto; font-size: var(--schrift-xs); color: var(--text-leise); white-space: nowrap; }
.bz-c-details > summary { display: inline-flex; align-items: center; min-height: 2rem; padding: 0 0.7rem; border: 1px solid var(--rand); border-radius: var(--radius); font-size: var(--schrift-s); color: var(--text-leise); cursor: pointer; white-space: nowrap; }
.bz-c-details[open] > summary { background: var(--flaeche-leise); color: var(--text); }
.bz-c-mehr { position: absolute; left: 0; right: 0; top: 100%; z-index: 3; max-height: 60vh; overflow-y: auto; padding: 0.7rem 0.9rem 0.8rem; background: var(--flaeche); border-bottom: 2px solid var(--feldrand); font-size: var(--schrift-s); }
.bz-c-rolle { margin: 0 0 var(--raum-2); line-height: 1.45; color: var(--text-leise); }
.bz-c-angaben, .bz-k-angaben { display: flex; flex-wrap: wrap; gap: 0.1rem 1.1rem; margin: 0 0 var(--raum-2); }
.bz-c-angaben div, .bz-k-angaben div { min-width: 0; }
.bz-c-angaben dt, .bz-k-angaben dt { display: inline; color: var(--text-leise); }
.bz-c-angaben dt::after, .bz-k-angaben dt::after { content: ": "; white-space: pre; }
.bz-c-angaben dd, .bz-k-angaben dd { display: inline; margin: 0; overflow-wrap: anywhere; }
.bz-c-weiter { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem var(--raum-2); margin: 0 0 var(--raum-2); }
.bz-c-weiter-name { flex: none; font-weight: 600; color: var(--text-leise); }
.bz-c-weiter-text { min-width: 0; overflow-wrap: anywhere; }
.bz-c-weiter time { flex: none; color: var(--text-leise); font-variant-numeric: tabular-nums; }
/* PB-4321: wem der Architekt gehört (Aufklapper in den Details des Chats, je Architekt eine Zeile) */
.bz-zu { margin: 0; }
.bz-zu > summary { display: flex; align-items: center; min-height: 2rem; cursor: pointer; color: var(--text-leise); }
.bz-zu p { margin: 0.3rem 0; }
.bz-zu-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin: 0 0 0.4rem; }
.bz-zu-form label { flex: 0 0 auto; margin: 0; font-weight: 600; }
.bz-zu-form select { flex: 1 1 10rem; width: auto; min-width: 0; padding: var(--raum-1) var(--raum-2); }
/* Verlauf: rollt in sich und beginnt unten bei der neuesten Nachricht (column-reverse, ohne Skript); mit der Tastatur erreichbar */
.bz-lauf { position: relative; display: flex; flex-direction: column-reverse; flex: 1 1 auto; min-height: 0; padding: 0.8rem var(--raum-4) 0.6rem; overflow-y: auto; overflow-anchor: none; overscroll-behavior: contain; }
.bz-lauf:focus-visible { outline-offset: -3px; }
.bz-lauf-innen { min-width: 0; }
.bz-aeltere { margin: 0 0 0.6rem; font-size: var(--schrift-xs); color: var(--text-leise); text-align: center; }
.bz-aeltere a { display: inline-flex; align-items: center; min-height: 1.75rem; }
.bz-leer { margin: 0; font-size: var(--schrift-s); color: var(--text-leise); }
.bz-leer-gross { max-width: 26rem; margin: 0 auto var(--raum-5); padding: var(--raum-4) 1.2rem; border: 1px dashed var(--feldrand); border-radius: 0.75rem; text-align: center; }
.bz-leer-gross p { margin: 0; }
.bz-leer-titel { margin: 0 0 0.3rem; font-size: var(--schrift-m); font-weight: 700; color: var(--text); }
.bz-leer-gross .bz-leer-titel { margin-bottom: 0.3rem; }
.bz-verlauf { display: flex; flex-direction: column; gap: var(--raum-2); margin: 0; padding: 0; list-style: none; }
/* Tagestrenner ("Heute", "Gestern", sonst der Tag) und die Linie "Neu ab hier" (vom Skript): Wort in der Mitte, Linie links und rechts */
.bz-tag, .bz-neu-ab { display: flex; align-items: center; gap: 0.6rem; margin: var(--raum-2) 0 0.15rem; font-size: var(--schrift-xs); font-weight: 700; color: var(--text); }
.bz-tag::before, .bz-tag::after, .bz-neu-ab::before, .bz-neu-ab::after { content: ""; flex: 1 1 0; border-top: 1px solid var(--rand); }
.bz-tag span { padding: 0.1rem 0.7rem; border: 1px solid var(--rand); border-radius: 999px; background: var(--flaeche-leise); }
.bz-neu-ab::before, .bz-neu-ab::after { border-top: 2px solid var(--akzent); }
/* PB-4391 (Ricco 20.11.): die eigenen Nachrichten links, die der Agenten grau rechts */
.bz-n { position: relative; display: flex; flex-direction: column; align-items: flex-end; align-self: flex-end; max-width: min(80%, 44rem); min-width: 0; }
.bz-n-ich { align-items: flex-start; align-self: flex-start; }
.bz-n-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.45rem; margin: 0 0.3rem 0.1rem; font-size: var(--schrift-xs); color: var(--text-leise); }
.bz-n-von { font-size: var(--schrift-s); font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.bz-n-kopf time { font-variant-numeric: tabular-nums; }
/* PB-4337: in Sammelfenstern der Empfänger, ruhig hinter dem Namen ("an Bauarbeiter 3"), ohne Pfeil */
.bz-n-an { color: var(--text-leise); overflow-wrap: anywhere; }
.bz-n-zusatz { padding: 0 0.45rem; border: 1px solid var(--feldrand); border-radius: 999px; }
/* Die Stellung steht für Vorlese-Programme da (der Name sagt sie schon); über eigenen Blasen auch der Name. Derselbe Verfasser kurz
   danach: enger, der ganze Kopf nur noch für Vorlese-Programme */
.bz-n-stellung, .bz-n-ich .bz-n-von, .bz-n-folge .bz-n-kopf { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bz-n-folge { margin-top: -0.3rem; }
/* PB-4320b: Zeile aus dem Chat des Bau-Hosts. PB-4337: sieht aus wie jede Antwort (ruhig, wie im Messenger); nur eine Zeile aus dem Chat mit
   Absender "Entwickler" bleibt gestrichelt mit deutlicher Marke (der Name beweist dort nichts) */
.bz-n-herkunft { padding: 0 0.45rem; border: 1px dashed var(--warn-rand); border-radius: 999px; color: var(--text-leise); }
.bz-n-entwickler.bz-n-chat .bz-n-blase { border-style: dashed; }
.bz-n-entwickler.bz-n-chat .bz-n-herkunft { border-style: solid; background: var(--warn-bg); color: var(--warn-text); font-weight: 600; }
/* Die Blase trägt Rand und Fläche, der Text darin die Zeilenumbrüche */
.bz-n-blase { max-width: 100%; min-width: 0; padding: 0.45rem var(--raum-3); border: 1px solid var(--rand); border-radius: 1rem; border-bottom-right-radius: 0.3rem; background: var(--flaeche-leise); }
.bz-n-ich .bz-n-blase { border-color: var(--akzent); border-bottom-right-radius: 1rem; border-bottom-left-radius: 0.3rem; background: var(--akzent); color: var(--akzent-text); }
.bz-n-text { margin: 0; font-size: var(--schrift-m); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.bz-n-text code, .bz-md code { padding: 0 0.25em; border-radius: 0.25rem; background: var(--flaeche); color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--schrift-s); }
.bz-n-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.4rem; margin: 0.1rem 0.3rem 0; font-size: var(--schrift-xs); color: var(--text-leise); }
/* Sendezustand an der Blase (Skript): unterwegs gestrichelt, gescheitert rot mit dem Wort und dem Knopf "erneut senden" */
.bz-n-wartend .bz-n-blase, .bz-n-vorab .bz-n-blase { border-style: dashed; }
.bz-n-aus .bz-n-blase { border-color: var(--fehler); background: var(--fehler-bg); color: var(--fehler); }
.bz-n-aus .bz-n-status { color: var(--fehler); font-weight: 700; }
.bz .bz-n-status button { --feldhoehe: 1.75rem; min-height: 1.75rem; padding: 0 0.6rem; border-color: var(--fehler); color: var(--fehler); font-size: var(--schrift-xs); font-weight: 700; }
.bz-neue { position: relative; z-index: 2; flex: none; height: 0; margin: 0; text-align: center; }
.bz-neue button { position: relative; top: -2.5rem; border-radius: 999px; border-color: var(--akzent); background: var(--akzent); color: var(--akzent-text); font-weight: 600; }
/* Eingabe: klebt unten am Chat. Feld und Sendeknopf in einem Rahmen, kein Ziehgriff; das Feld wächst mit dem Text bis etwa acht Zeilen */
.bz-eingabe { margin: 0; }
.bz-chat .bz-eingabe, .bz-karte .bz-eingabe { flex: none; padding: var(--raum-2) 0.9rem 0.55rem; border-top: 1px solid var(--rand); }
.bz-e-feld { display: flex; align-items: flex-end; gap: 0.4rem; padding: var(--raum-1) var(--raum-1) var(--raum-1) 0.7rem; border: 1px solid var(--feldrand); border-radius: 0.8rem; background: var(--flaeche); }
.bz-e-feld:focus-within { border-color: var(--akzent); }
.bz-e-feld:has(textarea:focus-visible) { outline: 3px solid var(--fokus); outline-offset: 2px; }
.bz-e-feld textarea { flex: 1 1 auto; width: auto; min-width: 0; height: 2rem; min-height: 2rem; max-height: 11.5rem; padding: 0.3rem 0; border: 0; border-radius: 0; background: transparent; font-size: var(--schrift-m); line-height: 1.4; resize: none; }
@supports (field-sizing: content) {
  .bz-e-feld textarea { height: auto; field-sizing: content; }
}
.bz-e-feld textarea:focus-visible { outline: 0; }
.bz-e-feld button { flex: none; border-radius: 0.6rem; font-weight: 600; }
.bz-eingabe textarea:disabled, .bz-eingabe button:disabled { cursor: not-allowed; opacity: 0.6; }
.bz-eingabe-hinweis { margin: 0.2rem 0.2rem 0; font-size: var(--schrift-xs); color: var(--text-leise); }
.bz-zaehler { font-variant-numeric: tabular-nums; font-weight: 600; }
.bz-zaehler-voll { color: var(--fehler); }
/* Sperrzeile über dem Feld: angehalten, pausiert, Notaus, keine Verbindung. Als Satz mit Rand und Fläche, nicht nur ein roter Rand */
.bz-sperre { margin: 0 0 0.4rem; padding: 0.35rem 0.6rem; border: 1px solid var(--warn-rand); border-left-width: 4px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-text); font-size: var(--schrift-s); font-weight: 600; }
.bz-sperre-angehalten, .bz-eingabe-gesperrt { border-color: var(--fehler); background: var(--fehler-bg); color: var(--fehler); }
.bz-sperre-angehalten::before, .bz-eingabe-gesperrt::before { content: "■ "; }
.bz-eingabe-warnung { margin: 0 0 0.4rem; padding: 0.3rem 0.6rem; border: 1px solid var(--warn-rand); border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-text); font-size: var(--schrift-s); }
.bz-zugestellt { margin: 0 0 0.4rem; padding: 0.3rem 0.6rem; border-left: 3px solid var(--ok); background: var(--flaeche-leise); font-size: var(--schrift-s); }
.bz-sendemeldung { margin: var(--raum-1) 0.2rem 0; font-size: var(--schrift-xs); }
.bz-sendemeldung-aus { color: var(--fehler); font-weight: 600; }

/* Mannschaft: eine Liste, je Teilnehmer eine Zeile (Name, Zeit; Zustand und Aufgabe; letzte eigene Meldung). Wer wartet, ist gefärbt
   UND trägt das Wort. Die Spalte rollt in sich */
.bz-m-liste { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.4rem; min-height: 0; padding-right: 0.2rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.bz-m-liste > * { flex: none; }
.bz-hat-offen .bz-m-liste { display: none; }
/* PB-4354: Leiste "Prüfplätze" über der Mannschaft, eine Zeile, nur zur Orientierung: je Platz eine kleine quadratische Kachel in einer
   Reihe, belegt gefüllt (ok), frei nur mit Rand (feldrand). Die Farbe ist nie das einzige Merkmal: gefüllt oder leer, dazu Name und
   Zustand im Tooltip und als Text für Vorlese-Programme, die Summe als Wort. Sie bleibt über einem geöffneten Mini-Chat stehen */
.bz-pp { flex: none; display: flex; align-items: center; gap: var(--raum-2); min-width: 0; min-height: 1.25rem; margin: 0 0 0.3rem; font-size: var(--schrift-xs); color: var(--text-leise); }
.bz-pp-titel, .bz-pp-summe { flex: none; margin: 0; white-space: nowrap; }
.bz-pp-titel { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.bz-pp-reihe { flex: 0 1 auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 3px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.bz-pp-platz { flex: 0 1 0.7rem; box-sizing: border-box; width: 0.7rem; min-width: 4px; height: 0.7rem; margin: 0; border: 2px solid var(--feldrand); border-radius: 2px; }
.bz-pp-belegt { border-color: var(--ok); background: var(--ok); }
@media (forced-colors: active) {
  .bz-pp-platz { border-color: CanvasText; }
  .bz-pp-belegt { forced-color-adjust: none; background: CanvasText; }
}
.bz-r-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.8rem; min-height: 1.75rem; }
.bz-r-kopf h2, .bz-g-titel, .bz-w-klappe > summary h2 { margin: 0; font-size: var(--schrift-s); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-leise); }
.bz-zahlen { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.9rem; margin: 0.2rem 0 0; padding: 0.4rem 0.7rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); font-size: var(--schrift-xs); }
.bz-zahlen > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.3rem; min-width: 0; padding: 0; border: 0; }
.bz-zahlen dt { font-size: var(--schrift-xs); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-leise); }
.bz-zahlen .sz-zahl { font-size: var(--schrift-xs); }
.bz-zahlen dd { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.3rem; margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.bz-zahlen a { display: inline-flex; align-items: center; min-height: 1.75rem; color: var(--text); }
.bz-balken { width: 3.5rem; height: 0.45rem; accent-color: var(--ok); }
.bz-b-achtung { accent-color: var(--warn-rand); }
.bz-b-dringend { accent-color: var(--fehler); }
.bz-kein { margin: 0; padding: var(--raum-2) 0.7rem; border: 1px dashed var(--feldrand); border-radius: var(--radius); font-size: var(--schrift-s); color: var(--text-leise); }
.bz-zeilen { display: flex; flex-direction: column; gap: var(--raum-1); margin: 0; padding: 0; list-style: none; }
.bz-zeile { min-width: 0; background: var(--flaeche); border: 1px solid var(--rand); border-left-width: 3px; border-radius: 0.5rem; scroll-margin-top: 0.5rem; }
.bz-zeile.bz-kz-arbeitet { border-left-color: var(--ok); }
.bz-zeile.bz-kz-wartet { border-color: var(--warn-rand); background: var(--warn-bg); }
.bz-zeile.bz-kz-angehalten, .bz-zeile.bz-kz-aus { border-color: var(--fehler); }
.bz-zeile.bz-kz-pausiert { border-left-style: dashed; border-left-color: var(--feldrand); }
.bz-zl-link { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 0 var(--raum-2); min-height: 2rem; padding: 0.3rem 0.6rem 0.35rem; border-radius: 0.4rem; color: var(--text); text-decoration: none; }
.bz-zl-link:hover { background: var(--flaeche-leise); }
.bz-kz-wartet .bz-zl-link, .bz-kz-wartet .bz-zl-link:hover { background: transparent; color: var(--warn-text); }
.bz-zl-wer, .bz-zl-lage, .bz-zl-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-zl-name { font-size: var(--schrift-s); font-weight: 700; }
.bz-zl-zeit { font-size: var(--schrift-xs); color: var(--text-leise); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bz-zl-lage { grid-column: 1 / -1; font-size: var(--schrift-xs); color: var(--text-leise); }
.bz-zl-lage .bz-zustand { font-size: var(--schrift-xs); color: var(--text); vertical-align: baseline; }
.bz-zl-lage .bz-z-angehalten, .bz-zl-lage .bz-z-aus { color: var(--fehler); }
.bz-zl-lage .bz-z-ruht, .bz-zl-lage .bz-z-unbekannt, .bz-zl-lage .bz-z-pausiert { color: var(--text-leise); }
/* Wer wartet: statt "wartet auf Antwort" steht da, seit wann ("wartet seit 25 Min"); das Wort bleibt für Vorlese-Programme */
.bz-zl-lage:has(.bz-k-seit:not(:empty)) .bz-z-wort, .bz-k-kopf:has(.bz-k-seit:not(:empty)) .bz-z-wort, .bz-c-wer:has(.bz-k-seit:not(:empty)) .bz-z-wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bz-zl-lage .bz-k-arbeit-text:not(:empty)::before { content: "· "; }
.bz-zl-text { grid-column: 1 / -1; font-size: var(--schrift-s); }
.bz-zl-von { font-weight: 600; }
.bz-kz-wartet .bz-zl-zeit, .bz-kz-wartet .bz-zl-lage, .bz-kz-wartet .bz-zustand, .bz-kz-wartet .bz-nur-wort { color: var(--warn-text); }
/* PB-4320b: Marke "neu" je Fenster (Punkt und Wort, seit PB-4320c mit der Zahl; die Farbe steht nie allein) */
.bz-ungelesen { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0 0.45rem; border-radius: 999px; background: var(--akzent); color: var(--akzent-text); font-size: var(--schrift-xs); font-weight: 700; line-height: 1.5; white-space: nowrap; }
.bz-ungelesen-punkt { display: inline-block; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--akzent-text); }
/* Der geöffnete Mini-Chat: die ganze Spalte. Kopf mit dem Weg zurück, Verlauf, Eingabe; die Steuerung als Aufklapper darunter */
.bz-karte { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 0.75rem; }
.bz-karte.bz-kz-wartet { border-color: var(--warn-rand); }
.bz-karte.bz-kz-angehalten, .bz-karte.bz-kz-aus { border-color: var(--fehler); }
.bz-k-kopf { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; min-height: 2.75rem; padding: 0.3rem 0.6rem; border-bottom: 1px solid var(--rand); }
.bz-k-auf { display: inline-flex; align-items: center; min-height: 2rem; padding: 0 0.6rem; border: 1px solid var(--feldrand); border-radius: var(--radius); color: var(--text); font-size: var(--schrift-s); font-weight: 600; text-decoration: none; white-space: nowrap; }
.bz-k-auf:hover { background: var(--flaeche-leise); }
.bz-k-kopf h3 { margin: 0; font-size: var(--schrift-m); line-height: 1.3; overflow-wrap: anywhere; }
.bz-k-lage { flex: none; margin: 0; padding: 0.3rem 0.8rem; border-bottom: 1px solid var(--rand); font-size: var(--schrift-xs); line-height: 1.4; color: var(--text-leise); overflow-wrap: anywhere; }
.bz-karte .bz-lauf { padding: 0.6rem 0.7rem 0.4rem; }
.bz-karte .bz-n { max-width: 92%; }
.bz-karte .bz-n-text { font-size: var(--schrift-s); }
.bz-karte .bz-eingabe { padding: 0.45rem 0.6rem var(--raum-2); }
.bz-karte > .meldung { margin: 0.4rem 0.6rem; }
.bz-lesend { flex: none; margin: 0; padding: var(--raum-2) 0.8rem; border-top: 1px solid var(--rand); font-size: var(--schrift-xs); color: var(--text-leise); }
.bz-mehr { flex: none; border-top: 1px solid var(--rand); font-size: var(--schrift-s); }
.bz-mehr > summary { display: flex; align-items: center; min-height: 2rem; padding: 0 0.8rem; font-weight: 600; color: var(--text-leise); cursor: pointer; }
.bz-mehr-inhalt { position: relative; max-height: 40vh; padding: 0.2rem 0.8rem 0.7rem; overflow-y: auto; overscroll-behavior: contain; }
.bz-mehr h4 { margin: var(--raum-2) 0 0.2rem; font-size: var(--schrift-s); font-weight: 700; color: var(--text-leise); }
/* Aufklapper mit eigenem Zeichen (die Zeile ist ein flex-Kasten, das Zeichen des Browsers entfiele sonst): zu ▸, offen ▾ */
.bz-mehr > summary, .bz-gruppe > summary, .bz-zu > summary, .bz-c-details > summary { list-style: none; }
.bz-mehr > summary::-webkit-details-marker, .bz-gruppe > summary::-webkit-details-marker, .bz-zu > summary::-webkit-details-marker, .bz-c-details > summary::-webkit-details-marker { display: none; }
.bz-mehr > summary::before, .bz-gruppe > summary::before, .bz-zu > summary::before, .bz-c-details > summary::before { content: "▸"; flex: none; width: 0.9rem; font-size: var(--schrift-xs); color: var(--text-leise); }
.bz-mehr[open] > summary::before, .bz-gruppe[open] > summary::before, .bz-zu[open] > summary::before, .bz-c-details[open] > summary::before { content: "▾"; }
/* Gruppen und die Aufklapper am Ende der Liste */
.bz-gruppe > summary, .bz-klappe summary { cursor: pointer; }
.bz-gruppe > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.6rem; min-height: 2rem; }
.bz-gruppe[open] > summary { margin-bottom: 0.2rem; }
.bz-klappe { margin: 0; padding: 0.2rem 0.7rem; }
.bz-klappe summary { min-height: 2rem; padding: 0.35rem 0; }
.bz-klappe summary h3 { display: inline; margin: 0; font-size: var(--schrift-s); }
.bz-klappe-neben { font-size: var(--schrift-xs); color: var(--text-leise); font-variant-numeric: tabular-nums; }
.bz-klappe details[open] > summary { margin-bottom: 0.4rem; }
.bz-klappe h4, .bz-klappe .tabelle-titel { font-size: var(--schrift-s); }
.bz-liste { margin: 0; padding: 0; list-style: none; }
.bz-liste li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.05rem 0.6rem; padding: 0.3rem 0; border-bottom: 1px solid var(--rand); font-size: var(--schrift-s); overflow-wrap: anywhere; }
.bz-liste li:last-child { border-bottom: 0; }
.bz-liste-wer { font-weight: 600; }
.bz-liste-was { min-width: 0; overflow-wrap: anywhere; }
.bz-liste-neben, .bz-liste time { font-size: var(--schrift-xs); color: var(--text-leise); }
/* PB-4302d und PB-4302f: eigener Notaus, Einstellungen, Warteschlange und Verbrauch (Teile bz_halt, bz_steuerung, bz_verbrauch) */
.bz-halt { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem var(--raum-3); margin: 0 0 var(--raum-2); }
.bz-halt-zustand, .bz-halt .leise { margin: 0; font-size: var(--schrift-s); }
.bz-halt-griff > summary, .bz-st-griff > summary { display: inline-flex; align-items: center; list-style: none; cursor: pointer; }
.bz-halt-griff > summary::-webkit-details-marker, .bz-st-griff > summary::-webkit-details-marker { display: none; }
.bz-halt-griff[open] { flex: 1 1 100%; }
.bz-halt-griff[open] > summary { margin-bottom: var(--raum-2); }
.bz-steuerung { margin: 0; padding: 0.4rem 0 0; border-top: 1px solid var(--rand); font-size: var(--schrift-s); }
.bz-steuerung p { margin: 0 0 0.35rem; overflow-wrap: anywhere; }
.bz-st-werte { display: flex; flex-wrap: wrap; gap: 0.15rem var(--raum-4); margin: 0 0 0.35rem; }
.bz-st-werte dt { display: inline; color: var(--text-leise); }
.bz-st-werte dd { display: inline; margin: 0; }
.bz-st-griff { margin: 0 0 var(--raum-2); }
.bz-st-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.4rem var(--raum-3); margin-top: var(--raum-2); }
.bz-st-form label { flex: 1 1 100%; margin: 0; color: var(--text-leise); }
.bz-st-form input, .bz-st-form select { flex: 1 1 10rem; width: auto; min-width: 0; }
.bz-st-form p { flex: 1 1 100%; }
.bz-verbrauch p { margin: 0 0 0.4rem; font-size: var(--schrift-s); }
.bz-verbrauch form { margin: 0 0 var(--raum-2); }

/* Wissen: der neue Vault, nur lesen */
.bz-wissen { background: var(--flaeche-leise); border: 1px solid var(--rand); border-radius: 0.75rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.bz-w-klappe > summary { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: var(--raum-2); min-height: 2.25rem; padding: 0.3rem var(--raum-3); background: var(--flaeche-leise); border-radius: 0.75rem; cursor: pointer; list-style: none; }
.bz-w-klappe > summary::-webkit-details-marker { display: none; }
.bz-w-klappe > summary::after { content: "▸"; margin-left: auto; font-size: var(--schrift-l); line-height: 1; color: var(--text-leise); }
.bz-w-klappe[open] > summary::after { content: "▾"; }
.bz-w-inhalt { display: flex; flex-direction: column; gap: 0.7rem; padding: 0.1rem var(--raum-3) 0.9rem; }
.bz-dream { padding: 0.45rem 0.6rem var(--raum-2); background: var(--flaeche); border: 1px solid var(--rand); border-radius: 0.6rem; font-size: var(--schrift-s); }
.bz-dream p { margin: 0 0 var(--raum-1); }
.bz-dream p:last-child { margin: 0; }
.bz-dream-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.2rem var(--raum-2); }
.bz-dream-titel { font-size: var(--schrift-m); font-weight: 700; }
.bz-dream-text, .bz-dream-bilanz { color: var(--text-leise); }
.bz-dream-text time { color: var(--text); font-weight: 600; }
.bz-dream-bericht a, .bz-dream-liste a, .bz-w-fuss a, .bz-n-zurueck a { display: inline-flex; align-items: center; min-height: 1.75rem; }
.bz-dream-liste { margin: 0.3rem 0 0; padding: 0.3rem 0 0; border-top: 1px solid var(--rand); list-style: none; }
.bz-dream-liste li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--raum-2); min-height: 1.75rem; }
.bz-dream-liste time, .bz-w-liste time, .bz-w-ort { font-size: var(--schrift-xs); color: var(--text-leise); }
.bz-w-leer { padding: 0.8rem 0.9rem; border: 1px dashed var(--feldrand); border-radius: 0.6rem; font-size: var(--schrift-s); color: var(--text-leise); }
.bz-w-leer p { margin: 0; }
.bz-w-leer .bz-leer-titel { margin-bottom: 0.3rem; }
.bz-w-suche { display: flex; gap: 0.3rem; margin: 0; }
.bz-w-suche input { flex: 1 1 auto; min-width: 0; min-height: 2rem; padding: 0.2rem var(--raum-2); }
.bz-w-suche button { flex: none; padding-left: 0.6rem; padding-right: 0.6rem; }
.bz-w-teil h3 { margin: 0 0 var(--raum-1); font-size: var(--schrift-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-leise); }
.bz-w-teil .leise, .bz-w-fuss { margin: 0; font-size: var(--schrift-s); }
.bz-w-fuss { margin-top: 0.3rem; }
/* Treffer und "Zuletzt geändert": immer zwei Zeilen, oben der Name, darunter Zeit und Ordner */
.bz-w-liste { margin: 0; padding: 0; list-style: none; font-size: var(--schrift-s); }
.bz-w-liste li { padding: 0 0 0.3rem; border-bottom: 1px solid var(--rand); line-height: 1.35; }
.bz-w-liste li:last-child { border-bottom: 0; }
.bz-w-liste a { display: flex; align-items: center; min-height: 1.75rem; overflow-wrap: anywhere; }
.bz-w-liste time { white-space: nowrap; }
.bz-w-liste time + .bz-w-ort::before { content: "· "; }
.bz-w-ort { overflow-wrap: anywhere; }
.bz-w-ausschnitt { display: block; font-size: var(--schrift-xs); color: var(--text-leise); overflow-wrap: anywhere; }
.bz-baum { margin: 0; padding: 0; list-style: none; font-size: var(--schrift-s); }
.bz-baum .bz-baum { margin-left: var(--raum-2); padding-left: var(--raum-2); border-left: 1px solid var(--rand); }
.bz-b-ordner summary { display: flex; align-items: center; gap: 0.4rem; min-height: 1.75rem; padding: 0.1rem 0.35rem; border-radius: 0.3rem; cursor: pointer; font-weight: 600; list-style: none; }
.bz-b-ordner summary::-webkit-details-marker { display: none; }
.bz-b-ordner summary::before { content: "▸"; flex: none; width: 0.7rem; font-size: var(--schrift-xs); color: var(--text-leise); }
.bz-b-ordner details[open] > summary::before { content: "▾"; }
.bz-b-ordner summary:hover, .bz-b-notiz a:hover { background: var(--akzent-leise); }
.bz-b-name { min-width: 0; overflow-wrap: anywhere; }
.bz-b-zahl { font-size: var(--schrift-xs); font-weight: 400; color: var(--text-leise); font-variant-numeric: tabular-nums; }
.bz-b-notiz a { display: flex; align-items: center; min-height: 1.75rem; padding: 0.1rem 0.35rem 0.1rem 1.1rem; border-radius: 0.3rem; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.bz-b-notiz a[aria-current] { background: var(--akzent-leise); font-weight: 600; box-shadow: inset 3px 0 0 var(--akzent); }
/* Vorschau einer Notiz: Text, nie HTML aus der Notiz */
.bz-notiz { min-width: 0; padding: 0.6rem var(--raum-3) 0.9rem; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 0.6rem; }
.bz-n-zurueck { margin: 0 0 0.3rem; font-size: var(--schrift-s); }
.bz-notiz h3 { margin: 0; font-size: var(--schrift-l); line-height: 1.25; overflow-wrap: anywhere; }
.bz-notiz-ort { display: flex; flex-wrap: wrap; gap: 0 0.6rem; margin: 0.15rem 0 0.6rem; padding-bottom: var(--raum-2); border-bottom: 1px solid var(--rand); font-size: var(--schrift-xs); color: var(--text-leise); overflow-wrap: anywhere; }
.bz-md { font-size: var(--schrift-s); line-height: 1.5; overflow-wrap: anywhere; }
.bz-md p, .bz-md ul, .bz-md ol, .bz-md pre, .bz-md blockquote { margin: 0 0 0.6rem; }
.bz-md ul, .bz-md ol { padding-left: 1.2rem; }
.bz-md li { margin: 0.1rem 0; }
.bz-md .bz-md-h { margin: 0.9rem 0 0.3rem; font-weight: 700; line-height: 1.3; }
.bz-md .bz-md-h:first-child { margin-top: 0; }
.bz-md-h1, .bz-md-h2 { font-size: var(--schrift-m); }
.bz-md-h3, .bz-md-h4 { font-size: var(--schrift-s); color: var(--text-leise); }
.bz-md pre { padding: var(--raum-2) 0.6rem; overflow-x: auto; background: var(--flaeche-leise); border: 1px solid var(--rand); border-radius: 0.4rem; font-size: var(--schrift-xs); line-height: 1.4; }
.bz-md pre code { padding: 0; background: none; font-size: var(--schrift-xs); }
.bz-md code { background: var(--flaeche-leise); }
.bz-md blockquote { padding-left: 0.6rem; border-left: 3px solid var(--akzent); color: var(--text-leise); }
.bz-md hr { margin: 0.8rem 0; border: 0; border-top: 1px solid var(--rand); }
.bz-md-tag { padding: 0 0.4rem; border: 1px solid var(--rand); border-radius: 999px; background: var(--flaeche-leise); font-size: var(--schrift-xs); color: var(--text-leise); white-space: nowrap; }
.bz-md-fehlt { border-bottom: 1px dashed var(--feldrand); color: var(--text-leise); }

/* Dunkel: eigene Blasen ruhiger (Fläche akzent-leise mit Text, nur der Rand trägt den Akzent) statt einer hellen Akzentfläche */
:root[data-theme="dunkel"] .bz-n-ich:not(.bz-n-aus) .bz-n-blase { background: var(--akzent-leise); color: var(--text); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .bz-n-ich:not(.bz-n-aus) .bz-n-blase { background: var(--akzent-leise); color: var(--text); }
}

/* Genau die Höhe des Fensters: Die Seite selbst rollt nicht. Die Kette der Höhen läuft über das Gerüst des Betriebs (Kopfzeile fest,
   Rahmen füllt den Rest, der Fuß bleibt als schmale Zeile stehen); darin füllt die Zentrale den Inhalt und nur ihre Spalten rollen.
   Bei sehr niedrigem Fenster (unter 30rem) gilt das nicht: Dann rollt die Seite, und jede Spalte bekommt eine feste Höhe */
body.betrieb:has(.bz) .fuss { flex: none; gap: 0.2rem var(--raum-4); padding: var(--raum-1) var(--raum-4); font-size: var(--schrift-xs); }
.bz-mitte, .bz-rechts { height: 30rem; }
@media (min-height: 30rem) {
  body.betrieb:has(.bz) { height: 100vh; height: 100dvh; }
  /* PB-4332: Ist das Menü des Betriebs aufgeklappt (Handy, Knopf "Menü"), wächst die Seite mit ihm und rollt; die Zentrale behält
     darunter wie beim niedrigen Fenster Spalten fester Höhe, der Fuß bleibt unter ihr statt über ihr */
  body.betrieb:has(.bz):has(.bl-klappe[open]) { height: auto; min-height: 100vh; min-height: 100dvh; }
  body.betrieb:has(.bl-klappe[open]) :is(.bz-mitte, .bz-rechts) { height: 30rem; }
  body.betrieb:has(.bz) .betrieb-rahmen { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  body.betrieb:has(.bz) .bl { flex: none; }
  body.betrieb main:has(> .bz) { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 20rem; overflow: visible; }
  .bz { flex: 1 1 auto; min-height: 0; }
  .bz-mitte, .bz-rechts { height: auto; }
  /* Wissen höchstens gut ein Drittel der Höhe; mit offener Notiz mehr, der Leitstrahl rollt dann in sich */
  .bz-links > .bz-wissen { max-height: clamp(7rem, 22vh, 24rem); }
  .bz-links:has(.bz-notiz) > .bz-wissen { max-height: 62vh; }
}
@media (min-height: 30rem) and (min-width: 48rem) {
  body.betrieb:has(.bz) .betrieb-rahmen { flex-direction: row; }
  body.betrieb:has(.bz) .bl { height: auto; }
  body.betrieb main:has(> .bz) { min-height: 0; }
}

/* Ab 85rem: drei Spalten in einem Bild (links Wissen und Leitstrahl 19rem, der Chat bekommt den Rest, Mannschaft 22rem). Mit offener
   Notiz wird die linke Spalte breiter; eingeklappt bleibt vom Wissen nur seine Kopfzeile, der Leitstrahl rückt nach oben */
@media (min-width: 85rem) {
  .bz-reiter { display: none; }
  .bz-app { grid-template-columns: 19rem minmax(0, 2fr) 22rem; }
  .bz-app:has(.bz-notiz) { grid-template-columns: 22rem minmax(0, 2fr) 22rem; }
  .bz-links { order: -1; }
}
/* Ab 110rem (großer Bildschirm): links mehr Platz, damit Kapitel und Schritte selten gekürzt werden */
@media (min-width: 110rem) {
  .bz-app { grid-template-columns: 23rem minmax(0, 2fr) 22rem; }
  .bz-app:has(.bz-notiz) { grid-template-columns: 26rem minmax(0, 2fr) 22rem; }
}
/* 64rem bis 85rem: zwei Spalten. Der Chat bleibt stehen; daneben die Mannschaft oder, über den Reiter, das Wissen */
@media (min-width: 64rem) and (max-width: 84.99rem) {
  .bz-app { grid-template-columns: minmax(0, 1fr) 21rem; }
  .bz-reiter { align-self: flex-end; width: 21rem; }
  .bz-reiter a { min-height: 2rem; }
  .bz-reiter a[data-ansicht="architekt"] { display: none; }
  .bz-a-wissen .bz-rechts, .bz:not(.bz-a-wissen) .bz-links { display: none; }
}
/* Unter 64rem (Tablett, Handy): eine Ansicht im Bild, gewählt über die Reiter (Architekt, Mannschaft, Wissen). Die Eingabe steht
   unten fest, weil die Ansicht genau so hoch ist wie das Fenster */
@media (max-width: 63.99rem) {
  .bz-a-architekt .bz-rechts, .bz-a-architekt .bz-links, .bz-a-mannschaft .bz-mitte, .bz-a-mannschaft .bz-links, .bz-a-wissen .bz-mitte, .bz-a-wissen .bz-rechts { display: none; }
}
/* Handy (bis 700 px): große Tippflächen, Eingaben in der vierten Schriftstufe (kein Heranzoomen beim Tippen), die Griffe des Kopfs
   brechen um, damit Notaus ohne seitliches Rollen zu sehen ist (PB-9728); ihre Aufklapper liegen als Blatt über der Seite */
@media (max-width: 43.75rem) {
  body.betrieb main:has(> .bz) { padding: var(--raum-2) 0.6rem; }
  .bz { --feldhoehe: 2.5rem; }
  .bz button, .bz .knopf { min-height: 2.5rem; }
  .bz input, .bz select, .bz textarea, .bz-e-feld textarea { font-size: var(--schrift-l); }
  .bz-kopf { gap: 0.3rem 0.6rem; }
  .bz-kopf h1 { font-size: var(--schrift-m); }
  .bz-handlungen { flex: 1 1 100%; flex-wrap: wrap; margin-left: 0; }
  .bz-auf { position: static; }
  .bz-auf-inhalt { position: fixed; top: auto; bottom: 0.6rem; left: 0.6rem; right: 0.6rem; width: auto; max-width: none; max-height: calc(100vh - 12rem); overflow-y: auto; } /* PB-9728: Blatt von unten, die umgebrochenen Griffe bleiben frei */
  .bz-tasten { display: none; }
  .bz-c-kopf { padding-left: 0.7rem; padding-right: 0.7rem; }
  .bz-c-ueber { display: none; }
  .bz-lauf { padding: 0.6rem 0.6rem var(--raum-2); }
  .bz-chat .bz-eingabe, .bz-karte .bz-eingabe { padding: 0.4rem var(--raum-2) 0.45rem; }
  .bz-e-feld textarea { min-height: 2.5rem; }
  .bz-n, .bz-karte .bz-n { max-width: 90%; }
  .bz-karte .bz-n-text { font-size: var(--schrift-m); }
  .bz-zl-link { padding-top: 0.45rem; padding-bottom: var(--raum-2); }
  .bz-b-ordner summary, .bz-b-notiz a, .bz-w-liste a, .bz-dream-liste a, .bz-zahlen a { min-height: 2.5rem; }
}
/* PB-4375: Live-Zustand unter dem Verlauf (liest, denkt nach, schreibt, arbeitet), leise wie eine Zeile im Messenger */
.bz-live { display: flex; align-items: center; gap: 0.45rem; margin: var(--raum-2) 0.3rem 0; font-size: var(--schrift-s); color: var(--text-leise); }
.bz-live[hidden] { display: none; }
.bz-live-punkte { display: inline-block; width: 1.6rem; height: 0.5rem; background: radial-gradient(circle, currentColor 0.16rem, transparent 0.18rem) 0 50% / 0.55rem 0.5rem repeat-x; opacity: 0.7; }
/* Bewegung nur, wenn sie nicht abgewählt ist: Eine neue Nachricht (vom Skript eingefügt) blendet kurz ein */
@media (prefers-reduced-motion: no-preference) {
  .bz-n.bz-neu { animation: bz-neu 0.6s ease-out 1; }
  @keyframes bz-neu { from { opacity: 0.3; } to { opacity: 1; } }
  /* PB-4353: wer arbeitet, trägt einen Punkt, der weich pulsiert (Helligkeit und ein leiser Hof, rund 2 s je Durchgang, nie unsichtbar) */
  .bz-z-arbeitet .bz-punkt { animation: bz-puls 2s ease-in-out infinite; }
  .bz-live-punkte { animation: bz-live 1.4s ease-in-out infinite; } /* PB-4375: drei ruhige Punkte */
  @keyframes bz-live { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }
  .bz-strom-laeuft .bz-n-text::after { animation: bz-marke 1s steps(2, start) infinite; } /* PB-9834: Schreibmarke der laufenden Antwort */
  @keyframes bz-marke { to { visibility: hidden; } }
  @keyframes bz-puls {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 0%, transparent); }
    50% { opacity: 0.55; box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--ok) 35%, transparent); }
  }
}
/* PB-4337 Teil 3: "Zum Vorlesen". Ohne Skript steht die Zeile als ruhiger Text unter der Blase; mit Skript ein runder Knopf mit Lautsprecher
   (der Text bleibt für Vorlese-Programme da). Läuft die Wiedergabe, ist der Knopf gefüllt (aria-pressed). Der Schalter oben wie ein Knopf. */
.bz-vorlesen { display: flex; align-items: center; gap: 0.35rem; margin: 0.15rem 0.3rem 0; font-size: var(--schrift-xs); color: var(--text-leise); }
.bz-vorlesen-knopf { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; min-width: 1.9rem; height: 1.9rem; min-height: 1.9rem; padding: 0; border: 1px solid var(--rand); border-radius: 999px; background: var(--flaeche); color: var(--text); }
.bz-vorlesen-knopf .sym { width: 1rem; height: 1rem; }
.bz-vorlesen-knopf[aria-pressed="true"] { border-color: var(--akzent); background: var(--akzent); color: var(--akzent-text); }
.bz-kann-vorlesen .bz-vorlesen-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bz-vorlesen-schalter[aria-pressed="true"] { border-color: var(--akzent); background: var(--akzent); color: var(--akzent-text); }

/* PB-4305b: Aufgaben-Ansicht (Spalten je Bauarbeiter, Vorrat rechts; am Handy untereinander) */
.ba-raster { display: grid; gap: var(--raum-4); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.ba-spalten { display: grid; gap: var(--raum-3); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.ba-spalte ol, .ba-vorrat-liste { margin: 0; padding-left: var(--raum-4); }
.ba-vorrat-liste { list-style: none; padding: 0; }
.ba-aufgabe { border-top: 1px solid var(--feldrand); padding: var(--raum-2) 0; }
.ba-griffe, .ba-zuteilen, .ba-filter { display: flex; flex-wrap: wrap; gap: var(--raum-2); align-items: center; }
.ba-knopf { display: inline; }
.ba button, .ba .knopf { min-height: 2.75rem; padding: 0.2rem var(--raum-3); }
.ba input, .ba select { min-height: 2.75rem; font-size: var(--schrift-m); }
.ba-frage { border: 2px solid var(--feldrand); padding: var(--raum-3); }
@media (max-width: 52rem) { .ba-raster { grid-template-columns: minmax(0, 1fr); } }
/* PB-4397: Eingabezeile der Kachel "Micro-Tasks" */
/* Micro-Task Ricco 22.11.2026: Token-Balken unter den Prüfplätzen (Zustand und "aktiv" stehen auch als Wort da) */
.bz-tok { flex: none; margin: 0 0 0.5rem; font-size: var(--schrift-xs); color: var(--text-leise); }
.bz-tok-titel { margin: 0 0 0.2rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.bz-tok-liste { display: flex; flex-direction: column; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.bz-tok-text { margin: 0; }
.bz-tok-aktiv .bz-tok-text { color: var(--text); }
.bz-tok-marke { margin-right: 0.25rem; }
.bz-tok-balken { display: block; width: 100%; height: 0.6rem; }
.bz-tok-veraltet .bz-tok-balken { opacity: 0.5; }
/* PB-4303b: Team-Chat (nur lesen) */
.bt-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); margin: var(--raum-3) 0; }
.bt-filter select, .bt-filter input[type="text"] { width: auto; min-width: 10rem; }
.bt-liste { list-style: none; margin: 0; padding: 0; }
.bt-n { padding: var(--raum-2) 0; border-bottom: 1px solid var(--rand); }
.bt-kopf { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin: 0 0 var(--raum-1); font-size: var(--schrift-s); }
.bt-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
/* PB-9804 S1/S2: Zentrale im Raster (templates/bauarbeiter_raster.php). Feste Spalte links, Karten rechts; am Handy untereinander, oben Reiter als Sprungmarken. */
.bzr-flaeche { display: grid; grid-template-columns: minmax(16rem, 22rem) 1fr; gap: var(--raum-4); align-items: start; }
.bzr-fest { display: grid; gap: var(--raum-3); position: sticky; top: var(--raum-3); }
.bzr-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: var(--raum-3); }
.bzr-karte { display: flex; flex-direction: column; gap: var(--raum-2); min-width: 0; padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); scroll-margin-top: 5rem; }
.bzr-karte.wartet { border-color: var(--warn-rand); box-shadow: inset 3px 0 0 var(--warn-rand); }
.bzr-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--raum-1) var(--raum-2); }
.bzr-kopf h2 { margin: 0; font-size: var(--schrift-m); }
.bzr-aufgabe { margin: 0; font-size: var(--schrift-s); color: var(--text-leise); overflow-wrap: anywhere; }
.bzr-verlauf { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--raum-1); font-size: var(--schrift-s); }
.bzr-n { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bzr-wer { color: var(--text-leise); }
.bzr-ganz { margin: 0; font-size: var(--schrift-s); }
.bzr-eingabe { display: flex; gap: var(--raum-2); align-items: flex-end; margin-top: auto; }
.bzr-eingabe textarea { flex: 1 1 auto; min-width: 0; min-height: 2.75rem; height: 2.75rem; resize: vertical; }
.bzr-reiter ul { display: flex; gap: var(--raum-2); margin: 0 0 var(--raum-3); padding: 0; list-style: none; overflow-x: auto; }
.bzr-reiter a { display: inline-block; white-space: nowrap; padding: var(--raum-1) var(--raum-2); border: 1px solid var(--rand); border-radius: var(--radius); }
.bzr-wartet-marke { font-size: var(--schrift-s); color: var(--text-leise); }
@media (min-width: 60rem) { .bzr-reiter { display: none; } }
@media (max-width: 59.99rem) { .bzr-flaeche { grid-template-columns: 1fr; } .bzr-fest { position: static; } }
/* PB-9834: die laufende Antwort (strom.js) als Blase wie jede andere, darunter leise der Schritt ("arbeitet: liest Datei …"); solange sie läuft,
   steht die Zeile des Live-Zustands nicht noch einmal da, und am Ende des Textes blinkt eine Schreibmarke. Neben Senden: "Abbrechen". */
.bz-strom-an .bz-live { display: none; }
.bz-strom-schritt { display: flex; align-items: center; gap: 0.45rem; margin: 0.25rem 0.3rem 0; font-size: var(--schrift-s); color: var(--text-leise); }
.bz-strom-schritt.bz-strom-stoerung { color: var(--fehler); }
.bz-n-strom:not(.bz-strom-text) .bz-n-blase { display: none; } /* bis das erste Wort da ist, nur Name und Schritt */
.bz-strom-laeuft .bz-n-text::after { content: ""; display: inline-block; width: 0.45em; height: 1.05em; margin-left: 0.08em; vertical-align: -0.15em; border-radius: 0.1em; background: currentColor; opacity: 0.45; }
.bz-n-strom-leer .bz-n-blase { display: none; }
.bz-e-feld .bz-stopp { border: 1px solid var(--feldrand); background: var(--flaeche-leise); color: var(--text); }
.bz-e-feld .bz-stopp:hover { border-color: var(--fehler); color: var(--fehler); }
.bz-e-feld .bz-stopp[hidden] { display: none; }

/* Wiederkehrende Aufgaben (PB-3507) */
.loops-liste { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.loop dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0.5rem 0; }
.loop dt { color: var(--text-leise); }
.loop-zustand { font-size: 0.8rem; font-weight: 400; margin-left: 0.5rem; }
.loop-tat { display: inline-block; margin-right: 0.5rem; }
.loops-projekt { margin: 1rem 0; }

/* Wissensspeicher (E22, PB-3205): Pfadleiste, Liste der Ordner und Notizen, Notiz zum Lesen. Am Handy eine Spalte, große Ziele. */
.ws-pfad ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0 0 0.5rem; padding: 0; font-size: 0.9rem; }
.ws-pfad li + li::before { content: "/"; margin-right: 0.3rem; color: var(--rand); }
.ws-liste { list-style: none; margin: 0 0 var(--abstand); padding: 0; border-top: 1px solid var(--rand); }
.ws-eintrag { border-bottom: 1px solid var(--rand); }
.ws-eintrag > a, .ws-eintrag > span { display: block; padding: 0.7rem 0.4rem; min-height: 2.75rem; box-sizing: border-box; overflow-wrap: anywhere; }
.ws-ordner > a { font-weight: 700; }
.ws-datei > span { color: var(--text-leise); }
.ws-notiz { max-width: 46rem; overflow-wrap: anywhere; line-height: 1.55; }
.ws-notiz pre { overflow-x: auto; padding: 0.6rem; border: 1px solid var(--rand); border-radius: 0.4rem; }
.ws-notiz blockquote { margin: 0 0 1rem; padding-left: 0.8rem; border-left: 3px solid var(--rand); }
.ws-notiz img { max-width: 100%; height: auto; }
.wissen-fehlt { text-decoration: underline dotted; }
.ws-erwaehnt { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rand); }
.ws-erwaehnt li { padding: 0.3rem 0; }
.ws-erwaehnt .leise { font-size: 0.85rem; margin-left: 0.3rem; }
/* PB-3206: Suchfeld und Treffer */
.ws-suche { margin: 0 0 var(--abstand); max-width: 46rem; }
.ws-suche label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.ws-suche-zeile { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ws-suche-zeile input { flex: 1 1 12rem; min-height: 2.75rem; }
.ws-treffer { list-style: none; margin: 0 0 var(--abstand); padding: 0; border-top: 1px solid var(--rand); max-width: 46rem; }
.ws-treffer li { border-bottom: 1px solid var(--rand); padding: 0.6rem 0.4rem; overflow-wrap: anywhere; }
.ws-treffer li > a { font-weight: 600; }
.ws-treffer li > p { margin: 0.2rem 0 0; font-size: 0.9rem; }
/* PB-3207: Bearbeiten, Konflikt, Papierkorb */
.ws-bearbeiten { max-width: 46rem; margin: 0 0 var(--abstand); }
.ws-bearbeiten textarea { width: 100%; box-sizing: border-box; min-height: 18rem; font-family: inherit; line-height: 1.5; }
.ws-bearbeiten input[type="text"] { width: 100%; max-width: 28rem; min-height: 2.75rem; box-sizing: border-box; }
.ws-knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ws-konflikt { max-width: 46rem; margin: 0 0 var(--abstand); padding: 0.8rem 1rem; border: 1px solid var(--warn-rand); border-radius: 0.4rem; background: var(--warn-bg); color: var(--warn-text); }
.ws-konflikt h2 { margin-top: 0; font-size: 1.1rem; }
.ws-aktuell { max-width: 46rem; margin: 0 0 var(--abstand); }
.ws-aktuell pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 0.6rem; border: 1px solid var(--rand); border-radius: 0.4rem; }
.ws-werkzeug { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0 0 var(--abstand); }
/* PB-GUI-kunde-wissen: Liste mit Symbol je Art (schmückend; die Art steht für Vorlese-Programme im Text), ganze Zeile als Ziel,
   Treffer mit Name fett und Ort darunter; am Handy ist die Pfadleiste eine verschiebbare Zeile statt vieler Umbrüche. */
.ws-eintrag > a, .ws-eintrag > span { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); border-radius: var(--radius); }
.ws-eintrag > a:hover { background: var(--flaeche-leise); }
.ws-eintrag > a:hover, .ws-eintrag > a:focus-visible { text-decoration: underline; }
.ws-eintrag .sym { flex: none; width: 1.25rem; height: 1.25rem; color: var(--text-leise); }
.ws-ordner .sym { color: var(--akzent); }
.ws-datei > span { cursor: default; }
.ws-treffer li > a { font-weight: 600; }
.ws-treffer li > .leise { display: block; font-size: 0.85rem; }
.ws-treffer li > p { margin: 0.3rem 0 0; }
.ws-erwaehnt ul { padding-left: 1.2rem; }
@media (max-width: 47.99rem) {
  .ws-pfad ol { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; padding-bottom: 0.2rem; }
  .ws-pfad a { display: inline-block; padding: 0.4rem 0; min-height: 2.75rem; box-sizing: border-box; }
  .ws-suche-zeile button { flex: 1 1 100%; min-height: 2.75rem; }
  .ws-notiz { font-size: 1.05rem; }
}
/* PB-5197c: Wissensspeicher nutzt am breiten Bildschirm die Breite wie Dashboard und Builder; Lesetext und Suche bleiben schmal */
main:has(> .ws-pfad) { max-width: none; padding-left: var(--raum-5); padding-right: var(--raum-5); }
/* PB-9267: Notizen nach Themen, je Thema eine Karte (Skizze wissen.html?ansicht=liste) */
.ws-themen { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: var(--abstand); margin: 0 0 var(--abstand); }
.ws-thema { border: 1px solid var(--rand); border-radius: var(--radius); padding: 0.8rem 1rem; background: var(--flaeche); }
.ws-thema h2 { font-size: 1.05rem; margin: 0 0 0.5rem; display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.ws-thema h2 small { font-weight: 400; color: var(--text-leise); font-size: 0.85rem; }
.ws-thema-liste { list-style: none; margin: 0; padding: 0; }
.ws-thema-liste a { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.45rem 0.3rem; min-height: 2.75rem; box-sizing: border-box; align-items: center; text-decoration: none; color: var(--text); border-radius: var(--radius); overflow-wrap: anywhere; }
.ws-thema-liste a:hover, .ws-thema-liste a:focus-visible { background: var(--flaeche-leise); text-decoration: underline; }
.ws-thema-quelle { flex: none; color: var(--text-leise); font-size: 0.85rem; }
/* PB-9268: Seite einer Notiz, Angaben oben, rechts "Verknüpft mit" (Skizze wissen.html?ansicht=notiz); schmal untereinander */
.ws-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 var(--abstand); padding: 0; }
.ws-meta li { border: 1px solid var(--rand); border-radius: 999px; padding: 0.1rem 0.7rem; font-size: 0.85rem; color: var(--text-leise); }
.ws-notizrahmen { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: var(--abstand); align-items: start; }
.ws-bezuege { border: 1px solid var(--rand); border-radius: var(--radius); padding: 0.8rem 1rem; background: var(--flaeche); }
.ws-bezuege h2 { font-size: 0.95rem; margin: 0 0 0.5rem; }
.ws-bezuege ul { list-style: none; margin: 0; padding: 0; }
.ws-bezuege li { padding: 0.35rem 0; border-top: 1px solid var(--rand); display: flex; justify-content: space-between; gap: 0.5rem; overflow-wrap: anywhere; }
.ws-bezuege li:first-child { border-top: 0; }
.ws-bezuege .leise { font-size: 0.85rem; flex: none; }
@media (max-width: 60rem) { .ws-notizrahmen { grid-template-columns: 1fr; } }
/* PB-9269: Lücken („Fehlt noch“), gestrichelt wie in der Skizze */
.ws-luecken { margin: var(--abstand) 0; }
.ws-luecken-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.ws-luecken-liste a { color: var(--warn-text); border: 1px dashed var(--warn-rand); border-radius: var(--radius); padding: 0.1rem 0.5rem; display: inline-block; }
.ws-luecke-zeichen { font-weight: 700; }
.ws-bezuege h3 { font-size: 0.9rem; margin: 0.8rem 0 0.4rem; }
/* PB-9270: Wissenslandkarte (Skizze wissen.html?ansicht=karte) und Mini-Netz; Farbe je Thema über Klassen, ohne Skript */
.wk-rahmen { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: var(--abstand); align-items: start; }
.wk-bild { border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); padding: 0.6rem; }
.wk-svg { display: block; width: 100%; height: auto; }
.wk-themen { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.4rem; padding: 0; }
.wk-themen li { border: 1px solid var(--rand); border-radius: 999px; padding: 0.1rem 0.7rem; font-size: 0.85rem; display: flex; align-items: center; gap: 0.4rem; }
.wk-themen li.wk-themen-luecke { border-style: dashed; color: var(--warn-text); }
.wk-farbe { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--st-aus); flex: none; }
.wk-gross { width: 1rem; height: 1rem; background: var(--rand); }
.wk-strich { display: inline-block; width: 0.8rem; height: 3px; background: var(--rand); flex: none; }
.wk-linien line { stroke: var(--rand); stroke-width: 1.4; }
.wk-linien line.wk-hell { stroke: var(--akzent); stroke-width: 2.4; }
.wk-punkt circle, .wk-punkt-mitte { fill: var(--st-aus); stroke: var(--flaeche); stroke-width: 3; }
.wk-punkt text { font-size: 11px; font-weight: 600; fill: var(--text); paint-order: stroke; stroke: var(--flaeche); stroke-width: 4px; }
.wk-mitte text { font-size: 13px; }
.wk-punkt:hover circle, .wk-punkt:focus-visible circle, .wk-wahl circle { stroke: var(--fokus); stroke-width: 4; }
.wk-punkt:focus { outline: none; }
.wk-t-firma circle, circle.wk-t-firma, .wk-farbe.wk-t-firma { fill: var(--akzent); background: var(--akzent); }
.wk-t-leistungen circle, circle.wk-t-leistungen, .wk-farbe.wk-t-leistungen { fill: var(--ok); background: var(--ok); }
.wk-t-kunden circle, circle.wk-t-kunden, .wk-farbe.wk-t-kunden { fill: var(--wer-hand); background: var(--wer-hand); }
.wk-t-marke circle, circle.wk-t-marke, .wk-farbe.wk-t-marke { fill: var(--prio-hoch); background: var(--prio-hoch); }
.wk-t-entscheidungen circle, circle.wk-t-entscheidungen, .wk-farbe.wk-t-entscheidungen { fill: var(--text-leise); background: var(--text-leise); }
.wk-t-luecke circle { fill: var(--flaeche); stroke: var(--warn-rand); stroke-width: 2; stroke-dasharray: 4 3; }
.wk-t-luecke text { fill: var(--warn-text); }
.wk-farbe.wk-t-luecke { background: var(--flaeche); border: 2px dashed var(--warn-rand); box-sizing: border-box; }
.wk-seite { display: flex; flex-direction: column; gap: var(--abstand); }
.wk-karte { border: 1px solid var(--rand); border-radius: var(--radius); padding: 0.8rem 1rem; background: var(--flaeche); }
.wk-karte h2 { font-size: 1.05rem; margin: 0 0 0.4rem; overflow-wrap: anywhere; }
.wk-legende ul { list-style: none; margin: 0; padding: 0; }
.wk-legende li { display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0; font-size: 0.9rem; }
.wk-liste { margin: var(--abstand) 0; }
.wk-liste summary { min-height: 2.75rem; display: flex; align-items: center; cursor: pointer; }
.wk-liste li { padding: 0.3rem 0; overflow-wrap: anywhere; }
.wk-mini { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--flaeche-leise); margin: 0 0 0.5rem; }
@media (max-width: 60rem) { .wk-rahmen { grid-template-columns: 1fr; } }
/* PB-9269b: Lücke in der Karte ihres Themas (gestrichelt) und Verweise [[…]] in der Notiz hinterlegt wie in der Skizze; Links nach außen
   tragen rel und bleiben schlicht */
.ws-thema-luecke a { color: var(--warn-text); border: 1px dashed var(--warn-rand); margin-top: 0.2rem; }
.ws-notiz a[href^="/wissen/"]:not([rel]) { background: var(--wer-hand-flaeche); color: var(--wer-hand); border-radius: 0.25rem; padding: 0 0.2rem; text-decoration: none; }
.ws-notiz a[href^="/wissen/"]:not([rel]):hover, .ws-notiz a[href^="/wissen/"]:not([rel]):focus-visible { text-decoration: underline; }
/* PB-9320: Kopf mit Füllstand und Zahlen (Skizze wissen.html) */
.ws-kopf { border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); padding: 0.8rem 1rem; margin: 0 0 var(--abstand); }
.ws-fuell { display: flex; align-items: center; gap: 0.6rem; }
.ws-fuell meter { width: 12rem; max-width: 60%; height: 0.9rem; }
.ws-fuell b { font-size: 1.4rem; }
.ws-kopf p { margin: 0.4rem 0; }
.ws-kopf-zahlen { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0 0; padding: 0; }
.ws-kopf-zahlen li { border: 1px solid var(--rand); border-radius: 999px; padding: 0.1rem 0.7rem; font-size: 0.85rem; color: var(--text-leise); }
/* PB-9321: Neu gelernt */
.ws-neu { border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); padding: 0.8rem 1rem; margin: 0 0 var(--abstand); }
.ws-neu h2 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.ws-neu ul { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.ws-neu li { padding: 0.35rem 0; border-top: 1px solid var(--rand); overflow-wrap: anywhere; }
.ws-neu li:first-child { border-top: 0; }
.ws-neu .leise { font-size: 0.85rem; }
.ws-neu-marke { font-size: 0.75rem; font-weight: 700; color: var(--ok); border: 1px solid var(--ok); border-radius: 999px; padding: 0 0.45rem; margin-left: 0.3rem; }
/* PB-9320b (Bild B5 17:33): offene Fragen in Warnfarbe wie in der Skizze */
.ws-kopf-zahlen li.ws-kopf-offen { color: var(--warn-text); border-color: var(--warn-rand); background: var(--warn-bg); }
/* PB-9323: Rückmeldung zur Notiz */
.ws-rueck { margin: 0.4rem 0; }
.ws-rueck summary { min-height: 2.75rem; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.ws-rueck textarea { width: 100%; box-sizing: border-box; font-family: inherit; }
/* PB-9324: Ihr Architekt fragt; Verweise auf fehlende Notizen gestrichelt (nach der Regel für Verweise, darum gewinnt sie) */
.ws-fragt { border: 1px solid var(--warn-rand); border-radius: var(--radius); background: var(--flaeche); padding: 0.8rem 1rem; margin: 0 0 var(--abstand); }
.ws-fragt h2 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.ws-fragt label { display: block; font-weight: 600; margin: 0.4rem 0 0.3rem; }
.ws-fragt textarea { width: 100%; box-sizing: border-box; font-family: inherit; }
.ws-notiz a.ws-verweis-fehlt[href^="/wissen/"] { background: none; color: var(--warn-text); text-decoration: none; border-bottom: 1px dashed var(--warn-rand); }
/* PB-9323b: Rückmeldung als Knöpfe in einer Zeile unter „Bearbeiten“; das Formular klappt darunter auf */
.ws-rueck-leiste { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start; margin: 0 0 var(--abstand); }
.ws-rueck-leiste .ws-rueck { margin: 0; flex: 0 1 auto; }
.ws-rueck-leiste .ws-rueck[open] { flex: 1 1 100%; max-width: 46rem; }
.ws-rueck summary.knopf { display: inline-flex; list-style: none; }
.ws-rueck summary.knopf::-webkit-details-marker { display: none; }
/* PB-9322: Verlauf der Notiz rechts */
.ws-verlauf { list-style: none; margin: 0; padding: 0; }
.ws-verlauf li { padding: 0.3rem 0; border-top: 1px solid var(--rand); font-size: 0.9rem; }
.ws-verlauf li:first-child { border-top: 0; }

/* Helfer (PB-GUI): Leiste auf der Übersicht und Seite /helfer; Eingabe groß, Antwort ruhig, Vorschläge mit klaren Knöpfen */
.helfer-leiste { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 0.6rem; align-items: end; }
.helfer-leiste label, .helfer-leiste p { grid-column: 1 / -1; margin: 0; }
.helfer-leiste label { font-weight: 600; }
.helfer-leiste input[type="text"] { min-width: 0; min-height: 2.75rem; }
.helfer-leiste button { min-height: 2.75rem; }
.helfer-frage { display: grid; gap: 0.5rem; margin: 1rem 0; }
.helfer-frage label { font-weight: 600; }
.helfer-frage textarea { width: 100%; min-height: 5rem; resize: vertical; }
.helfer-frage .primaer { justify-self: start; min-height: 2.75rem; }
.helfer-verlauf ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.helfer-verlauf li { padding: 0.5rem 0.75rem; border-radius: var(--radius); background: var(--flaeche-leise); }
.helfer-vorschlag { border-color: var(--akzent); border-width: 2px; }
.helfer-vorschlag ul { margin: 0 0 0.75rem; padding-left: 1.2rem; }
.helfer-vorschlag .dialog-knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 30rem) {
  .helfer-leiste { grid-template-columns: 1fr; }
  .helfer-leiste button, .helfer-vorschlag .dialog-knoepfe button { width: 100%; }
  .helfer-vorschlag .dialog-knoepfe, .helfer-vorschlag .dialog-knoepfe form { width: 100%; }
}

/* Kundenakte im Betrieb (PB-3946a, auf dem Fundament seit PB-4331): das Gerüst der Reiter und das Lagebild der Übersicht. Nur Variablen
   aus basis.css (Farben hell und dunkel, Schriftstufen, Abstände), keine festen Farben. Der Aktenkopf, Tabelle, Seiten, Stufe, Datenblatt
   und Kacheln kommen aus betrieb.css und bausteine.css; hier steht nur, was die Akte daraus zusammensetzt. Klassen beginnen mit "ka". */

/* Kopf der Akte: die Reiter sitzen als Leiste auf der Linie des Kopfs; der gezeigte Reiter trägt einen kräftigen Strich in der
   Akzentfarbe UND fette Schrift (nie die Farbe allein). Sieben Gruppen statt elf Reiter (Betrieb\Kundenakte\Kopf::GRUPPEN). */
main:has(> .ka) .aktenkopf { padding-bottom: 0; }
main:has(> .ka) .ak-handlungen { align-items: flex-start; }
main:has(> .ka) .reiter-leiste { margin-top: var(--raum-4); }
.aktenkopf .reiter { gap: 0 var(--raum-1); }
.aktenkopf .reiter a, .aktenkopf .reiter-aktiv { margin-bottom: -1px; padding: var(--raum-2) var(--raum-3); border-bottom: 3px solid transparent; border-radius: var(--radius) var(--radius) 0 0; font-size: var(--schrift-m); }
.aktenkopf .reiter a:hover { border-bottom-color: var(--feldrand); }
.aktenkopf .reiter-aktiv { background: none; border-bottom-color: var(--akzent); color: var(--text); font-weight: 700; }
/* Unterreiter einer Gruppe (z. B. Technik, KI und Budget, Läufe): kleine Marken direkt unter der Leiste */
.ka-unterreiter { margin: 0 0 var(--raum-4); }
.ka-unterreiter .reiter { gap: var(--raum-2); }
.ka-unterreiter .reiter a, .ka-unterreiter .reiter-aktiv { padding: var(--raum-1) var(--raum-3); border: 1px solid var(--rand); border-radius: 999px; font-size: var(--schrift-s); color: var(--text); }
.ka-unterreiter .reiter a:hover { border-color: var(--akzent); background: none; }
.ka-unterreiter .reiter-aktiv { border-color: var(--text); background: var(--akzent-leise); font-weight: 600; }
/* Handlung im Kopf mit ihrem Satz direkt darunter (z. B. "Öffnet das Portal dieses Kunden nur zum Lesen") */
.ka-handlung { display: flex; flex-direction: column; align-items: flex-end; gap: var(--raum-1); max-width: 17rem; }
.ka-handlung-hilfe { font-size: var(--schrift-xs); line-height: var(--zeile-dicht); color: var(--text-leise); text-align: right; }

/* Rahmen: die Abschnitte eines Reiters in ruhigem, gleichem Abstand */
.ka { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--raum-4); }
.ka > .karte { margin-bottom: 0; }
.ka-abschnitt { min-width: 0; }
.ka > .karte.ka-abschnitt { padding: var(--raum-4) var(--raum-5); }

/* Kopf eines Abschnitts: Überschrift (bei Listen mit Gesamtzahl), darunter ein Satz */
.ka-kopf { margin-bottom: var(--raum-3); }
.ka-kopf h2 { margin: 0; font-size: var(--schrift-l); line-height: var(--zeile-dicht); letter-spacing: -0.01em; }
.ka-erklaerung { max-width: 46rem; margin: var(--raum-1) 0 0; color: var(--text-leise); font-size: var(--schrift-s); line-height: var(--zeile); }
.ka-abschnitt h3 { margin: var(--raum-5) 0 var(--raum-2); font-size: var(--schrift-m); line-height: var(--zeile-dicht); }
.ka-abschnitt > h3 { padding-top: var(--raum-4); border-top: 1px solid var(--rand); }
.ka-abschnitt > p { max-width: 46rem; }
.ka-stand { margin: 0 0 var(--raum-4); font-weight: 600; }
.ka-abschnitt .datenblatt { margin-bottom: 0; }
/* die letzte Zeile eines Datenblatts in der Karte trägt keine Linie: darunter folgt der Rand der Karte oder die Linie der Handlungen */
.ka-abschnitt .datenblatt > :is(dt, dd):nth-last-child(-n+2), .ka-abschnitt .datenblatt > div:last-child > :is(dt, dd) { border-bottom: 0; }
.ka-abschnitt .datenblatt ul { margin: var(--raum-1) 0 0; padding-left: var(--raum-4); }
.ka-abschnitt pre { max-width: 60rem; margin: 0 0 var(--raum-3); padding: var(--raum-3); overflow-x: auto; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche-leise); font-size: var(--schrift-s); }

/* Handlungen: unten, abgesetzt, als benannte Knöpfe */
.ka-handlungen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) var(--raum-3); max-width: none; margin: var(--raum-4) 0 0; padding-top: var(--raum-4); border-top: 1px solid var(--rand); }
.ka-abschnitt > .ka-handlungen { max-width: none; }
body.betrieb main .ka-abschnitt form > p.ka-handlungen { max-width: none; }
.ka-formulare { flex-direction: column; align-items: flex-start; gap: var(--raum-4); }
.ka-formulare form { width: 100%; max-width: var(--formbreite); }
.ka-abschnitt form { max-width: var(--formbreite); }
.ka-abschnitt form.ba-zeile, .ka-abschnitt form:has(> .ka-handlungen) { max-width: none; }

/* Listen in der Akte */
.ka .reiter { margin-bottom: var(--raum-3); }
.ka .daten-rahmen { margin-bottom: var(--raum-1); }
.ka .seiten, .ka .seiten-allein { margin-top: var(--raum-2); }
.ka .bk-kontakt, .ka .bk-notiz { margin: 0; padding: var(--raum-4) 0; border-top: 1px solid var(--rand); }
.ka .bk-kontakt > h3, .ka .bk-notiz > h3 { margin-top: 0; }
.ka .bk-notiz > p { margin: 0 0 var(--raum-2); }
.bk-sperren-projekte { margin: 0; padding: 0; list-style: none; }
.bk-sperren-projekte > li { padding: var(--raum-3) 0; border-top: 1px solid var(--rand); }

/* Leerzustand in einer Karte: derselbe gestrichelte Kasten wie überall im Betrieb (bausteine.css), nur ohne Außenabstand */
.ka .leerzustand { margin: 0; }

/* Lagebild: was jetzt zu tun ist */
.ka-lage-liste { margin: 0; padding: 0; list-style: none; }
.ka-lage-liste li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--raum-1) var(--raum-3); padding: var(--raum-2) 0; border-top: 1px solid var(--rand); }
.ka-lage-liste li:first-child { padding-top: 0; border-top: 0; }
.ka-lage-liste li:last-child { padding-bottom: 0; }
.ka-lage-liste .stufe { flex: none; min-width: 5.25rem; }
.ka-lage-liste a { flex: 1 1 12rem; min-width: 0; color: var(--text); font-weight: 600; text-decoration-color: var(--feldrand); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.ka-lage-liste a:hover { color: var(--akzent); text-decoration-color: currentColor; }
.ka-ruhig { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--raum-1) var(--raum-3); margin: 0; }

/* Kennzahlen: jede Kachel ist ein Link auf die Liste mit genau dieser Zahl */
.ka-kacheln { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); margin-bottom: var(--raum-3); }
.ka-kacheln > li { display: flex; min-width: 0; }
.ka-kacheln a { flex: 1 1 auto; min-width: 0; padding: var(--raum-3) var(--raum-4); border-radius: var(--radius); }
.ka-kacheln .zahl { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ka-kacheln .name { display: block; margin-top: var(--raum-1); font-size: var(--schrift-s); font-weight: 600; overflow-wrap: anywhere; }
.ka-kacheln .unter { display: block; margin-top: var(--raum-1); font-size: var(--schrift-s); line-height: var(--zeile-dicht); color: var(--text-leise); }
.ka-kacheln .stufe { margin-top: var(--raum-2); }
.ka-zustaende { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) var(--raum-3); }
.ka-zustaende-name { margin: 0; font-size: var(--schrift-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-leise); }
.ka-zustaende ul { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin: 0; padding: 0; list-style: none; }
.ka-zustaende a { display: inline-flex; align-items: center; gap: var(--raum-2); min-height: 2rem; padding: var(--raum-1) var(--raum-3); border: 1px solid var(--rand); border-radius: 999px; background: var(--flaeche); color: var(--text); font-size: var(--schrift-s); text-decoration: none; }
.ka-zustaende a:hover { border-color: var(--akzent); }
.ka-zahl { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Angeheftete Notizen auf der Übersicht */
.ka-notizen { margin: 0; padding: 0; list-style: none; }
.ka-notizen li { margin-bottom: var(--raum-2); padding: var(--raum-2) var(--raum-3); border-left: 3px solid var(--warn-rand); border-radius: var(--radius); background: var(--flaeche-leise); }
.ka-notizen li:last-child { margin-bottom: 0; }
.ka-notizen p { margin: 0; overflow-wrap: anywhere; }
.ka-notizen .leise { margin-top: var(--raum-1); font-size: var(--schrift-s); }

/* Sichtbarer Fokus auf allem, was in der Akte bedienbar ist (die Vorgabe aus basis.css, hier mit Abstand zum Rahmen der Kachel) */
.ka a:focus-visible, .ka button:focus-visible, .ka .knopf:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }

/* Handy (375 Pixel): nichts rollt seitlich. Tabellen werden zu Karten (betrieb.css), Kacheln stehen zu zweit, Knöpfe sind breit genug zum Tippen. */
@media (max-width: 47.99rem) {
  .ka { gap: var(--raum-4); }
  .ka > .karte.ka-abschnitt { padding: var(--raum-4); }
  .ka-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--raum-2); }
  .ka-lage-liste .stufe { min-width: 0; }
  .ka-lage-liste a { flex-basis: 100%; }
  .ka-handlungen .knopf, .ka-handlungen button { min-height: 2.75rem; }
  .ka-abschnitt form { max-width: none; }
  .ka-zustaende a { min-height: 2.75rem; }
  .ka-handlung { align-items: flex-start; max-width: none; }
  .ka-handlung-hilfe { text-align: left; }
  .ka-unterreiter .reiter { flex-wrap: nowrap; overflow-x: auto; padding: var(--raum-1); scrollbar-width: thin; }
  .ka-unterreiter .reiter a, .ka-unterreiter .reiter-aktiv { flex: none; white-space: nowrap; min-height: 2.25rem; align-items: center; }
}
@media (max-width: 22.5rem) {
  .ka-kacheln { grid-template-columns: minmax(0, 1fr); }
}

/* Betriebslisten des Master-Backends (PB-3946b): Anliegen, Adressen, Warteliste, Schließungen, Protokoll, Team, Vorlagen, ungeklärte
   Vorgänge, Anträge der Zweitbestätigung. Ein Muster: Überschrift, ein Satz, Gesamtzahl, "Was jetzt zu tun ist", Filterleiste, Tabelle,
   Seiten. Tabelle, Filterleiste und Seiten kommen aus betrieb.css (Bausteine PB-3945b); hier steht nur, was die Listen dazu brauchen.
   Farben nur als Variablen aus basis.css (hell und dunkel), kein Skript, am Handy (unter 48 rem) rollt nichts seitlich. */

/* "Was jetzt zu tun ist": Zahl und Satz sind zusammen ein Link auf die gefilterte Liste; die Dringlichkeit steht als Rand UND als Wort da */
.zutun { margin-bottom: var(--abstand); padding: 0.7rem 0.9rem; background: var(--flaeche); border: 1px solid var(--rand); border-left: 4px solid var(--akzent); border-radius: var(--radius); }
.zutun h2 { margin: 0 0 0.45rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-leise); }
.zutun-ruhig { margin: 0; color: var(--text-leise); }
.zutun-liste { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.zutun-punkt { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; min-width: 0; padding-left: 0.6rem; border-left: 3px solid var(--rand); }
.zutun-achtung { border-left-color: var(--warn-rand); }
.zutun-dringend { border-left-color: var(--fehler); }
.zutun-punkt a { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.45rem; min-width: 0; min-height: 2rem; color: var(--text); text-decoration: none; }
.zutun-zahl { font-size: 1.25rem; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.zutun-text { min-width: 0; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 0.18em; }
.zutun-punkt a:hover .zutun-text { text-decoration-thickness: 2px; }

/* Handlungen in einer Zeile: Formulare untereinander, Felder nie breiter als die Zelle */
.bl-handlungen { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; min-width: 0; }
.bl-handlungen p, .bl-handlungen form, form.bl-handlung, form.bl-zeilenform { margin: 0; }
.bl-handlungen form, form.bl-zeilenform { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.4rem; max-width: 100%; }
.bl-handlungen label, form.bl-zeilenform label { flex: 1 0 100%; margin: 0; font-size: 0.8rem; font-weight: 400; color: var(--text-leise); }
.bl-handlungen input[type="text"], .bl-handlungen textarea, form.bl-zeilenform input[type="text"] { flex: 1 1 12rem; width: auto; min-width: 0; max-width: 100%; padding: 0.35rem 0.5rem; }
.bl-handlungen form > p { flex: 1 0 100%; }
.bl-handlungen button, form.bl-handlung button, form.bl-zeilenform button { padding: 0.35rem 0.8rem; }
/* Aufklappen ohne Skript: Formulare mit Grund oder Code stehen hinter ihrem Wort, damit die Liste ruhig bleibt */
.bl-klapp { max-width: 100%; }
.bl-klapp > summary { padding: 0.25rem 0; color: var(--akzent); font-weight: 600; cursor: pointer; }
.bl-klapp[open] { padding: 0.4rem 0.6rem 0.6rem; background: var(--flaeche-leise); border: 1px solid var(--rand); border-radius: var(--radius); }
.bl-klapp[open] > summary { margin-bottom: 0.3rem; }

/* Kleine Liste von Angaben in einer Zelle (Fristen, Sicherung) */
.bl-angaben { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 0.1rem 0.6rem; margin: 0; }
.bl-angaben dt { font-size: 0.8rem; color: var(--text-leise); }
.bl-angaben dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
table.daten td > .stufe { margin-right: 0.25rem; }
/* Listen-Baustein (PB-8592, Teil betrieb_liste): Zahl über der Liste, mehrere Angaben untereinander in einer Zelle, und breit eine
   Kopfzeile, die beim Blättern stehen bleibt. overflow-x: clip statt auto, sonst klebt der Kopf am Rahmen statt am Fenster; darum
   dürfen lange Wörter (Adressen) in diesen Tabellen überall umbrechen. top = Höhe der stehenden Kopfleiste .bk (geruest.css).
   Am Handy sind die Zeilen Karten ohne Kopf (betrieb.css), und .bk steht dort nicht. */
.bl-zahl { margin: 0 0 var(--raum-2); }
table.daten .daten-zeile { display: block; }
@media (min-width: 48rem) {
  .daten-stehend { overflow-x: clip; }
  .daten-stehend table.daten thead th { position: sticky; top: 3.25rem; z-index: 1; box-shadow: inset 0 -1px 0 var(--rand); }
  .daten-stehend table.daten :is(th, td) { overflow-wrap: anywhere; }
  .daten-stehend table.daten :is(th, td).daten-wort { overflow-wrap: normal; } /* PB-10638: Spalten der Art „wort“ (Abo) trennen nie mitten im Wort */
}

@media (max-width: 47.99rem) {
  .zutun-liste { flex-direction: column; gap: 0.4rem; }
  .zutun-punkt a { min-height: 2.75rem; align-items: center; }
  .bl-angaben { grid-template-columns: minmax(0, 1fr); }
  .bl-angaben dd { margin-bottom: 0.2rem; }
  .bl-handlungen, .bl-handlungen form, form.bl-zeilenform, .bl-klapp { width: 100%; }
  .bl-handlungen button, form.bl-handlung button, form.bl-zeilenform button, .bl-klapp > summary { min-height: 2.75rem; }
}

/* Fachseiten des Betriebs (PB-4331): Technik, System, Leitung, Loops, Abrechnung, Protokoll, Kunde anlegen. Was die Seiten über die
   Bausteine des Fundaments hinaus brauchen (Datenblatt, Stufe, Kennzahl, Tabelle, Leerzustand kommen von dort). Klassen beginnen mit "fs".
   Größen nur aus den Variablen in basis.css, Farben nur in den Paaren aus docs/KONTRAST.md, keine Bewegung. */
.fs-einleitung { max-width: 75ch; margin: 0 0 var(--raum-4); }
/* Kopf eines Abschnitts: Überschrift und daneben der Zustand als Marke (oder, mit fs-kopf-frei, rechts die Handlung) */
.fs-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) var(--raum-3); margin: 0 0 var(--raum-3); }
.fs-kopf h1, .fs-kopf h2, .fs-kopf h3 { margin: 0; min-width: 0; overflow-wrap: anywhere; scroll-margin-top: 5rem; }
.fs-kopf > a:not(.knopf) { font-size: var(--schrift-s); }
.fs-kopf-frei { justify-content: space-between; }
.fs-kopf:has(> h1) { margin-bottom: var(--raum-2); }
.fs-abschnitt { margin: 0 0 var(--raum-5); }
.karte.fs-abschnitt { margin: 0 0 var(--raum-4); padding: var(--raum-4) var(--raum-5); }
.fs-abschnitt > p { max-width: 75ch; margin: 0 0 var(--raum-3); }
.fs-abschnitt > p.leise { font-size: var(--schrift-s); }
.fs-abschnitt > :last-child { margin-bottom: 0; }
/* Tabelle in einer Karte: kein zweiter Rahmen in der Karte, nur die Linien der Zeilen */
.karte.fs-abschnitt .daten-rahmen { margin-bottom: var(--raum-3); border: 0; border-radius: 0; background: none; }
.karte.fs-abschnitt .daten-rahmen:last-child { margin-bottom: 0; }
.karte.fs-abschnitt table.daten thead th { background: none; border-bottom-color: var(--feldrand); }
.karte.fs-abschnitt table.daten :is(th, td):first-child { padding-left: 0; }
.karte.fs-abschnitt table.daten :is(th, td):last-child { padding-right: 0; }
.karte.fs-abschnitt .datenblatt { margin-bottom: var(--raum-3); }
/* Mehrere Tabellen untereinander in einem Abschnitt (Anbindungen): gleich breite Spalten, damit sie von Tabelle zu Tabelle fluchten */
@media (min-width: 48rem) {
  .fs-unter + .daten-rahmen table.daten { table-layout: fixed; }
}
/* Gesamtzustand: die Karte trägt links einen Strich in der Farbe der Stufe; das Wort steht in der Marke daneben */
.fs-lage { border-left-width: 4px; }
.fs-lage-ok { border-left-color: var(--ok); }
.fs-lage-hinweis { border-left-color: var(--akzent); }
.fs-lage-warnung { border-left-color: var(--warn-rand); }
.fs-lage-dringend { border-left-color: var(--fehler); }
.fs-lage-neutral { border-left-style: dashed; border-left-color: var(--feldrand); }
/* Sprungmarken oben auf einer langen Seite: Anker zu den Abschnitten */
.fs-sprung { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin: 0 0 var(--raum-4); }
.fs-sprung a { padding: var(--raum-1) var(--raum-3); border: 1px solid var(--rand); border-radius: 999px; background: var(--flaeche); color: var(--text); font-size: var(--schrift-s); text-decoration: none; }
.fs-sprung a:hover { border-color: var(--akzent); }
/* Kleine Überschrift über einer Gruppe (Kennzahlen, Karten) und innerhalb eines Abschnitts */
.fs-ueber, .fs-unter { margin: 0 0 var(--raum-2); font-size: var(--schrift-xs); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-leise); }
.fs-unter { margin-top: var(--raum-5); }
.fs-weiter { font-size: var(--schrift-s); }
.fs-bereiche h3 { margin-top: 0; font-size: var(--schrift-l); }
.fs-bereiche .karte { display: flex; flex-direction: column; }
.fs-bereiche .karte p { margin: 0 0 var(--raum-3); }
.fs-bereiche .karte p:last-child { margin: auto 0 0; }
table.daten tr.fs-summe > * { border-top: 2px solid var(--feldrand); font-weight: 700; }
/* Kennzahlen als eine Reihe über die Breite des Inhalts: gleich breite Karten, die Zahl bricht nicht um */
.kennzahlen.fs-reihe { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); max-width: 72rem; }
.fs-reihe .kennzahl-wert { overflow-wrap: normal; }
.karte.fs-abschnitt table.daten .bl-handlung button { white-space: nowrap; }
.karte.fs-abschnitt > .ba-zeile { margin: 0 0 var(--raum-4); padding: var(--raum-3); border-radius: var(--radius); background: var(--flaeche-leise); }
.karte.fs-abschnitt > .ba-zeile p { flex: 1 1 20rem; margin: 0; font-size: var(--schrift-s); }
.knopfzeile.fs-monat { margin: 0 0 var(--raum-4); }
.fs-monat .leise { font-size: var(--schrift-s); }
.fs-schluessel { padding: 0 var(--raum-1); border-radius: 0.25rem; background: var(--flaeche-leise); color: var(--text-leise); font-size: var(--schrift-xs); }
.fs-name { margin-right: var(--raum-2); font-weight: 600; }
.fs-haken .feld-hilfe { margin: var(--raum-1) 0 0 var(--raum-5); }
.fs-nachsatz { margin: var(--raum-3) 0 0; font-size: var(--schrift-s); }
.
/* Notaus der internen Loops: ein abgesetzter Kasten unter der Überschrift; an ist rot UND sagt es im Wort */
.il-notaus { margin: 0 0 var(--raum-5); padding: var(--raum-3) var(--raum-4); border-left: 4px solid var(--ok); background: var(--flaeche); }
.il-notaus-an { border-color: var(--fehler); background: var(--fehler-bg); }
.il-notaus .fs-kopf { margin-bottom: var(--raum-1); }
.il-notaus h2 { font-size: var(--schrift-m); }
.il-notaus p { max-width: 75ch; margin: 0 0 var(--raum-2); font-size: var(--schrift-s); }
.il-notaus .ba-zeile { margin-top: 0; }
.il-notaus .ba-zeile input[type="text"] { flex: 0 1 26rem; }
@media (max-width: 47.99rem) {
  .karte.fs-abschnitt { padding: var(--raum-4); }
  .fs-sprung { flex-wrap: nowrap; overflow-x: auto; padding: var(--raum-1); scrollbar-width: thin; }
  .fs-sprung a { flex: none; white-space: nowrap; }
  .il-notaus .ba-zeile input[type="text"] { flex: 1 1 100%; }
}

/* PB-10441 (Soll-Ist Betrieb E2, E4, Bild 11): Pfad grau ohne Unterstrich; Reiter im Seitenkopf blau mit Strich unten und Linie
   unter der ganzen Leiste, Zahl des aktiven Reiters als blaue Pille */
.bko-pfad a { color: var(--text-leise); text-decoration: none; }
.bko-pfad a:hover { color: var(--text); text-decoration: underline; }
.bko .reiter { gap: var(--raum-3); margin-top: var(--raum-2); border-bottom: 1px solid var(--rand); }
.bko .reiter a, .bko .reiter-aktiv { margin-bottom: -1px; padding: var(--raum-2) var(--raum-1); border-radius: 0; border-bottom: 2px solid transparent; background: none; }
.bko .reiter a:hover { background: none; color: var(--text); border-bottom-color: var(--rand); }
.bko .reiter-aktiv { color: var(--akzent); border-bottom-color: var(--akzent); }
.bko .reiter-zahl { min-width: 1.3rem; padding: 0 0.4rem; border-radius: 999px; background: var(--akzent-leise); color: var(--text); text-align: center; font-size: var(--schrift-xs); }
.bko .reiter-aktiv .reiter-zahl { background: var(--akzent); color: var(--akzent-text); }
/* PB-10441 (Soll-Ist E5 bis E15): Meldungen. Kasten in einer Zeile mit Knopf rechts; Suche und Auswahl im Kopf der Tabellenkarte,
   Beschriftungen nur für Vorlese-Programme; Zahl und Seitenstand nur für Vorlese-Programme; Wer mit Kreis; Knöpfe nebeneinander. */
.md-zutun { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) var(--raum-3); margin: 0 0 var(--abstand); padding: var(--raum-2) var(--raum-3); border-radius: var(--radius); background: color-mix(in srgb, var(--akzent) 14%, var(--flaeche)); }
.md-zutun-sym { flex: none; width: 1.1rem; height: 1.1rem; color: var(--akzent); }
.md-zutun-satz { flex: 1 1 18rem; margin: 0; }
.md-zutun-form { margin: 0 0 0 auto; }
.md-liste .bl-zahl, .md-liste .seiten-stand, .md-liste .fl-feld label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.md-liste .filterleiste { margin-bottom: 0; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.md-liste .filterleiste + .daten-rahmen, .md-liste .filterleiste + .daten-leer { border-top-left-radius: 0; border-top-right-radius: 0; }
.md-liste .fl-felder { align-items: center; }
.md-titel { display: block; }
.md-dringend { font-weight: 700; }
.md-niemand { white-space: nowrap; color: var(--text-leise); }
.md-wer { display: inline-flex; align-items: center; gap: var(--raum-2); white-space: nowrap; }
.md-wer .avatar { display: inline-grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fbe3e6; color: #9f1d3a; font-size: var(--schrift-xs); font-weight: 700; }
.md-handlung { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--raum-2); }
.md-handlung form { margin: 0; }
.md-handlung button { padding: var(--raum-1) var(--raum-3); font-size: var(--schrift-s); }
.md-liste table.daten thead th:last-child { font-size: 0; }

/* Projekt-Dashboard (PB-4206, Tab 2): Knöpfe im Kopf, Wartet auf Sie, Kachel-Raster, Fuß. Kacheln sind Karten aus bausteine.css. */
.db-knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 var(--abstand); }
.db-knoepfe .knopf { min-height: 2.75rem; }
.db-bereich { margin: 0 0 var(--abstand); }
.db-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.75rem; }
.db-raster .plugin-kachel { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.db-raster .plugin-kachel p { margin: 0; }
.plugin-loesen label { display: flex; gap: 0.4rem; align-items: flex-start; }
.db-fuss { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: var(--abstand) 0; padding-top: 0.75rem; border-top: 1px solid var(--rand); }
@media (max-width: 30rem) { .db-raster { grid-template-columns: 1fr; } .db-knoepfe .knopf { flex: 1 1 100%; text-align: center; } }
/* PB-4206c: daumengroß wie die Knöpfe im Kopf (Entwurf 7.5): Knöpfe der Kacheln, Punkte unter "Wartet auf Sie", Links im Fuß */
.db-raster .knopf { min-height: 2.75rem; }
.db-wartet li a, .db-fuss a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.plugin-loesen input[type="checkbox"] { width: 1.25rem; height: 1.25rem; flex: none; }
/* PB-4209: Hinweis "Das können Sie noch verbinden" über dem Gespräch im Builder */
.plugin-hinweis { position: relative; margin: 0 0 var(--abstand); padding: 0.75rem 3.25rem 0.75rem 1rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche-leise); }
.plugin-hinweis p { margin: 0 0 0.5rem; }
.plugin-hinweis-wahl { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.5rem; }
.plugin-hinweis .knopf { min-height: 2.75rem; }
.plugin-hinweis-zu { position: absolute; top: 0.4rem; right: 0.4rem; margin: 0; }
.plugin-hinweis-zu .knopf { min-width: 2.75rem; }
/* PB-4207, PB-9294 (ENT-97): Agent-Leiste immer links, am Handy über dem Inhalt (Reihenfolge des HTML; nie order oder grid-column) */
.db-spalten { display: grid; grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); gap: var(--abstand); align-items: start; }
/* PB-10280 (Soll-Ist AppBase 9631, Bild 5 und 3): Übersicht mit Chat-Spalte nutzt die volle Breite wie das Dashboard, nicht nur 80rem */
@media (min-width: 1100px) { main:has(> .db-spalten) { max-width: none; padding-left: var(--raum-5); padding-right: var(--raum-5); } } /* wie dashboard.css, darunter gilt der Rand von anpassung.css */
.db-agent { position: sticky; top: var(--abstand); margin: 0; max-height: calc(100vh - 2 * var(--abstand)); overflow-y: auto; }
.db-agent-verlauf { list-style: none; margin: 0 0 var(--abstand); padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.db-agent textarea { width: 100%; box-sizing: border-box; }
/* PB-8208: Agent-Chatfenster je System: Kopf mit Zeile "was er tut", Vorschläge zum Antippen, hervorgehobenes Eingabefeld */
.agent-chat-kopf h2, .agent-chat-kopf .agent-chat-titel { margin: 0; } /* PB-10242: in der Spalte ein Absatz */
.agent-chat-aufgabe { margin: 0 0 var(--abstand); }
.agent-chat-vorschlaege { list-style: none; margin: 0 0 var(--abstand); padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.agent-chat-vorschlaege form { margin: 0; }
.agent-chat-vorschlaege button { min-height: 2.75rem; border-radius: var(--radius); background: var(--akzent-leise); color: var(--text); border: 1px solid var(--rand); text-align: left; }
.agent-chat-eingabe textarea { border: 2px solid var(--akzent); }
@media (max-width: 48rem) {
  .db-spalten { grid-template-columns: 1fr; }
  .db-agent { position: static; max-height: none; }
}
/* PB-8502: Auswahl Host/Architekten am Namen im Kopf des Chats; Overlay über dem Verlauf, nie mehr als Auswahl::WAHL_MAX Einträge (blättert nie) */
.agent-chat-wahl { position: relative; }
.agent-chat-wahl > summary { cursor: pointer; list-style: none; }
.agent-chat-wahl > summary::-webkit-details-marker { display: none; }
.agent-chat-wahl > summary h2, .agent-chat-wahl > summary .agent-chat-titel { display: inline; }
.agent-chat-wahl-liste { position: absolute; z-index: 20; left: 0; top: 100%; min-width: 16rem; padding: var(--abstand); background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: 0 4px 16px rgb(0 0 0 / 12%); }
.agent-chat-wahl-liste ul { list-style: none; margin: 0 0 var(--abstand); padding: 0; }
.agent-chat-wahl-liste li { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; }
.agent-chat-wahl-liste form { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.agent-chat-wahl-gruppe { margin: 0 0 0.25rem; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-leise); }
/* PB-9761 (Bild 5): Kennzahlen des AppBase-Dashboards als vier Kacheln mit Rahmen in einer Reihe, am Handy zwei je Reihe */
.app-kennzahlen .kacheln, .hp-kennzahlen .kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--raum-3); }
.app-kennzahlen .kacheln > li, .hp-kennzahlen .kacheln > li { padding: var(--raum-3) var(--raum-4); border: 1px solid var(--rand); border-radius: 0.75rem; background: var(--flaeche); }
.app-kennzahlen .kacheln .zahl, .hp-kennzahlen .kacheln .zahl { font-size: 1.5rem; }
.app-kennzahlen .kacheln .name, .hp-kennzahlen .kacheln .name { display: block; color: var(--text-leise, inherit); }
@media (max-width: 40rem) { .app-kennzahlen .kacheln, .hp-kennzahlen .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* PB-9761 (Bild 5): Karten der AppBase-Übersicht im Raster der Skizze: „Ihre App“ links über zwei Reihen, Leitstrahl und Versionen
   rechts, Stores und Nutzer und Daten nebeneinander darunter; am Handy untereinander. „Weitere Angaben“ eingeklappt darunter. */
.app-uebersicht { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--raum-4); align-items: start; margin-bottom: var(--raum-4); }
.app-uebersicht > .app-karte { margin: 0; }
.app-uebersicht > .app-karte-app { grid-column: 1 / 3; grid-row: 1 / 3; }
.app-uebersicht > .app-karte-leitstrahl { grid-column: 3 / 7; }
.app-uebersicht > .app-karte-versionen { grid-column: 3 / 7; }
.app-uebersicht > .app-karte-stores { grid-column: 1 / 4; }
.app-uebersicht > .app-karte-nutzer { grid-column: 4 / 7; }
.app-uebersicht > .app-karte h2 { margin-top: 0; font-size: 1rem; font-weight: 700; }
.app-mehr { margin-top: var(--raum-5); }
.app-mehr > summary { cursor: pointer; }
.app-mehr > summary h2 { display: inline; font-size: 1rem; }
@media (max-width: 60rem) { .app-uebersicht > .app-karte { grid-column: 1 / -1; grid-row: auto; } }
/* PB-9761 Micro-Schritt 3b (Bild 5): Form der Karten. Leitstrahl mit Prozent rechts und Stufen in zwei Spalten mit Kreisen;
   Versionen und Stores als Zeilen mit Pille vorn; „Ihre App“ zeigt den Leerzustand in einem Handy-Umriss. */
.app-karte { position: relative; }
.app-karte-leitstrahl .zahlen { position: absolute; top: var(--raum-4); right: var(--raum-4); margin: 0; color: var(--akzent); font-weight: 700; }
.app-karte-leitstrahl .app-balken { display: block; width: 100%; height: 0.375rem; margin: var(--raum-2) 0 var(--raum-3); accent-color: var(--akzent); }
.app-schritte { columns: 2; column-gap: var(--raum-5); margin: 0; padding: 0; list-style: none; }
.app-schritt { margin: 0 0 var(--raum-2); break-inside: avoid; }
/* PB-9453 (L4 aus PB-9451, Bild 5): Kreise statt Zeichen; erledigt gefüllt mit Haken, läuft als Ring mit Punkt, offen leer */
.app-schritt::before { content: ""; display: inline-block; box-sizing: border-box; width: 0.9rem; height: 0.9rem; margin-right: var(--raum-2); vertical-align: -0.1rem; border: 1.5px solid var(--text-leise, currentColor); border-radius: 50%; }
.app-schritt-erledigt::before { content: "✓"; border-color: var(--akzent); background: var(--akzent); color: var(--seite); font-size: 0.6rem; line-height: 0.6rem; text-align: center; padding-top: 0.08rem; }
.app-schritt-laeuft { color: var(--akzent); font-weight: 600; }
.app-schritt-laeuft::before { border-color: var(--akzent); box-shadow: inset 0 0 0 0.15rem var(--seite), inset 0 0 0 0.5rem var(--akzent); }
.app-karte .app-zeilen { display: grid; grid-template-columns: max-content minmax(0, 1fr); grid-auto-flow: dense; gap: var(--raum-2) var(--raum-3); margin: 0 0 var(--raum-3); align-items: center; }
.app-karte .app-zeilen dt { grid-column: 2; margin: 0; }
.app-karte .app-zeilen dd { grid-column: 1; margin: 0; padding: 0.15rem var(--raum-2); border-radius: 999px; background: var(--flaeche-leise, var(--flaeche)); border: 1px solid var(--rand); text-align: center; font-size: var(--schrift-s); white-space: nowrap; }
/* PB-9453 (L5, L7 aus PB-9451, Bild 5): Plakette mit Farbe je Zustand, Unterzeile unter dem Namen, Schloss bei den Store-Konten */
.app-karte .app-zeilen dd.app-pille-ok { background: color-mix(in srgb, var(--ok) 18%, var(--seite)); border-color: transparent; color: var(--ok); }
.app-karte .app-zeilen dd.app-pille-info { background: var(--akzent-leise); border-color: transparent; color: var(--akzent); }
.app-karte .app-zeilen dd.app-pille-warte { background: var(--warn-bg); border-color: transparent; color: var(--warn-text); }
.app-karte .app-zeilen dt { font-weight: 600; }
.app-karte .app-zeile-unter { display: block; font-weight: 400; font-size: var(--schrift-s); }
.app-stores-konten .sym { width: 0.9rem; height: 0.9rem; vertical-align: -0.1rem; }
.app-karte-app .app-karte-leer, .app-karte-app .hr-klein .hr-leer { max-width: 11rem; min-height: 15rem; margin: var(--raum-2) auto 0; padding: var(--raum-5) var(--raum-3); border: 0.4rem solid var(--text); border-radius: 1.6rem; display: flex; align-items: center; text-align: center; }
/* PB-9741c (Bild 3): Homepage-Übersicht, zwei Spalten unter den Kennzahlen (links Vorschau und Besucher ab 9741d, rechts die Liste) */
.hp-kennzahlen { margin-bottom: var(--raum-4); }
.hp-kennzahlen .kacheln .unter { display: block; font-size: var(--schrift-xs); color: var(--text-leise); }
.hp-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--raum-4); align-items: start; margin-bottom: var(--raum-4); }
.hp-raster > .karte { margin: 0; }
.hp-liste { grid-column: 2; padding: 0; }
.hp-liste > p { padding: var(--raum-3) var(--raum-4); margin: 0; }
.hp-zeilen { list-style: none; margin: 0; padding: 0; }
.hp-zeilen > li { display: flex; align-items: center; gap: var(--raum-3); padding: var(--raum-3) var(--raum-4); border-top: 1px solid var(--rand); }
.hp-zeilen > li:first-child { border-top: 0; }
.hp-zeile-text { display: flex; flex-direction: column; min-width: 0; }
.hp-zeile-text > a { font-weight: 600; color: var(--text); text-decoration: none; }
.hp-zeile-text > a:hover, .hp-zeile-text > a:focus-visible { text-decoration: underline; }
.hp-zeile-text > .leise { font-size: var(--schrift-s); }
.hp-abzeichen { flex: 0 0 5.5rem; text-align: center; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: var(--schrift-xs); background: var(--akzent-leise); color: var(--akzent); }
.hp-abzeichen-wartet { background: transparent; border: 1px solid var(--warn-rand); color: var(--text); }
/* PB-9741d: linke Spalte der Homepage-Übersicht (Vorschau-Karte, Besucher-Säulen; Höhe in Stufen, kein Inline-Stil) */
.hp-links { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: var(--raum-4); min-width: 0; }
.hp-links > .karte { margin: 0; }
.hp-vorschau h2, .hp-besucher h2 { font-size: var(--schrift-m); margin: 0; }
.hp-vorschau-rahmen { margin-top: var(--raum-3); padding: var(--raum-4); border: 1px solid var(--rand); border-radius: 0.75rem; background: color-mix(in srgb, var(--akzent) 6%, transparent); }
.hp-vorschau-rahmen > p { margin: 0; }
.hp-vorschau-rahmen > .hp-vorschau-name { font-family: Georgia, serif; font-size: 1.4rem; margin-bottom: var(--raum-2); }
.hp-besucher-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: var(--raum-3); flex-wrap: wrap; }
.hp-besucher-kopf > .leise { font-size: var(--schrift-s); }
.hp-saeulen { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--raum-3); align-items: end; height: 8rem; margin: var(--raum-3) 0 var(--raum-3); padding: 0; }
.hp-saeulen > li { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; text-align: center; }
.hp-saeule { display: block; min-height: 2px; border-radius: 0.25rem 0.25rem 0 0; background: color-mix(in srgb, var(--akzent) 30%, transparent); }
.hp-heute > .hp-saeule { background: var(--akzent); }
.hp-saeule-zahl { font-size: var(--schrift-s); }
.hp-saeule-tag { font-size: var(--schrift-xs); color: var(--text-leise); margin-top: var(--raum-1, 0.25rem); }
.hp-h0 { height: 0; } .hp-h1 { height: 10%; } .hp-h2 { height: 18%; } .hp-h3 { height: 26%; } .hp-h4 { height: 34%; } .hp-h5 { height: 42%; }
.hp-h6 { height: 50%; } .hp-h7 { height: 58%; } .hp-h8 { height: 66%; } .hp-h9 { height: 74%; } .hp-h10 { height: 82%; }
@media (max-width: 60rem) { .hp-raster { grid-template-columns: minmax(0, 1fr); } .hp-liste, .hp-links { grid-column: 1; grid-row: auto; } }
/* PB-9741c: Kennzahl mit Ziel (Aufgaben, Freigaben): der Link ist die Kachel, kein Rahmen im Rahmen */
.hp-kennzahlen .kacheln > li:has(> a) { padding: 0; border: 0; background: none; }
.hp-kennzahlen .kacheln > li > a { height: 100%; padding: var(--raum-3) var(--raum-4); border-radius: 0.75rem; }
@media (max-width: 40rem) { .app-karte-leitstrahl .zahlen { position: static; margin: 0 0 var(--raum-1); } } /* PB-9761: am Handy unter dem Titel, nicht darüber */
/* PB-9953 K16 (Soll Bild 7): Architekt-Leiste kompakt wie der Builder-Chat (K5). Blasen ohne Kopfzeile (Name und Zeit für Vorleser),
   Ihre in Akzent; Vorschläge als kleine runde Knöpfe; Eingabe eine Zeile mit Pfeil, der Anhang klappt darunter auf. */
.agent-chat-kompakt .gs-blase { padding: var(--raum-2) var(--raum-3); border: 0; font-size: var(--schrift-s); line-height: 1.45; }
.agent-chat-kompakt .gs-eigene { background: var(--akzent); color: var(--akzent-text); }
.agent-chat-kompakt .gs-team { background: var(--flaeche-leise); }
.agent-chat-kompakt .db-agent-verlauf { max-height: 60vh; overflow-y: auto; } /* PB-9240 c4: der Verlauf rollt, oben lädt Älteres nach (chat.js) */
.agent-chat-aeltere { display: block; margin: 0 auto var(--raum-2); min-height: 2rem; padding: 0 var(--raum-3); border-radius: 999px; font-size: var(--schrift-s); }
.agent-chat-kompakt .agent-chat-leer { padding: var(--raum-2) var(--raum-3); border-radius: var(--radius); background: var(--flaeche-leise); color: var(--text); font-size: var(--schrift-s); } /* Ricco 01.12.: Begrüßung als Blase */
.agent-chat-kompakt .gs-kopf { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.agent-chat-kompakt .gs-eigene .leise, .agent-chat-kompakt .gs-eigene a { color: inherit; }
.agent-chat-kompakt .agent-chat-vorschlaege button { width: auto; min-height: 2rem; padding: 0 var(--raum-3); border-radius: 999px; background: var(--flaeche); font-size: var(--schrift-s); }
.agent-chat-kompakt .agent-chat-eingabe { display: flex; flex-direction: column; width: 100%; margin: 0; padding: var(--raum-2) var(--raum-2) var(--raum-2) var(--raum-3); border: 2px solid var(--akzent); border-radius: var(--radius); background: var(--flaeche); }
.agent-chat-kompakt .agent-chat-text { margin: 0; }
.agent-chat-kompakt .agent-chat-text label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Ricco 01.12.: mindestens 3 Zeilen, wächst mit bis etwa 10 (field-sizing, sonst chat.js), 15 px, volle Breite */
.agent-chat-kompakt .agent-chat-eingabe textarea { display: block; width: 100%; min-height: calc(3lh + 0.5rem); max-height: calc(10lh + 0.5rem); padding: var(--raum-1) 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 0.9375rem; line-height: 1.45; resize: none; overflow-y: auto; field-sizing: content; }
.agent-chat-kompakt .agent-chat-eingabe textarea:focus-visible { outline: none; } /* der Fokus zeigt sich am ganzen Feld, nicht als Rahmen im Rahmen */
.agent-chat-kompakt .agent-chat-eingabe:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 30%, transparent); }
.agent-chat-kompakt .agent-chat-fuss { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--raum-2); }
.agent-chat-kompakt .agent-chat-fuss > .agent-chat-senden { margin-left: auto; }
.agent-chat-kompakt .agent-chat-tasten { margin: var(--raum-1) 0 0; font-size: var(--schrift-xs); }
.agent-chat-kompakt .agent-chat-senden { margin: 0; }
.agent-chat-kompakt .agent-chat-senden button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; min-height: 2rem; padding: 0; border-radius: var(--radius); }
.agent-chat-kompakt .agent-chat-datei { flex: 1 1 auto; margin: 0; font-size: var(--schrift-s); }
.agent-chat-kompakt .agent-chat-datei > summary { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: var(--radius); cursor: pointer; color: var(--text-leise); list-style: none; }
.agent-chat-kompakt .agent-chat-datei > summary::-webkit-details-marker { display: none; }
.agent-chat-kompakt .agent-chat-datei > summary:hover { color: var(--text); background: var(--flaeche-leise); }
.agent-chat-kompakt .agent-chat-datei[open] > summary { color: var(--akzent); }
@media (max-width: 30rem) {
  .agent-chat-kompakt .agent-chat-senden button, .agent-chat-kompakt .agent-chat-vorschlaege button { min-height: 2.75rem; }
  .agent-chat-kompakt .agent-chat-senden button { width: 2.75rem; }
  .agent-chat-kompakt .agent-chat-datei > summary { width: 2.75rem; height: 2.75rem; }
}
/* K16: am Handy klebt die Eingabe der Leiste nicht (gespraech.css); die Karte rollt selbst, dort lag sie über dem letzten Vorschlag */
@media (max-width: 47.99rem) { .agent-chat-kompakt .gs-eingabe { position: static; } }
/* PB-9741e (Bild 3): Chat der Projekt-Übersicht als feste Spalte mit Rand links über die volle Höhe (statt Karte); Kopf mit Zeichen im
   Farbquadrat und Zustandszeile; Vorschläge und Eingabe unten. ANNAHME: 8rem = Kopf, Abstand oben und Fußzeile (gemessen bei 1240 px). */
.agent-chat-spalte { display: flex; flex-direction: column; height: calc(100vh - 8rem); padding: 0 var(--raum-4) 0 0; border: 0; border-right: 1px solid var(--rand); border-radius: 0; background: none; box-shadow: none; } /* PB-9750 (Bild 3): Linie rechts zur Seite hin */
.agent-chat-spalte .agent-chat-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--raum-3); align-items: center; margin: 0 0 var(--raum-3); padding: 0 0 var(--raum-3); border-bottom: 1px solid var(--rand); }
.agent-chat-spalte .agent-chat-kopf > * { grid-column: 2; }
.agent-chat-spalte .agent-chat-zeichen { grid-column: 1; grid-row: 1 / span 3; display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius); background: var(--akzent); color: var(--akzent-text); }
.agent-chat-spalte .agent-chat-kopf .agent-chat-titel { font-size: var(--schrift-m); font-weight: 700; }
.agent-chat-spalte .agent-chat-aufgabe { margin: 0; font-size: var(--schrift-s); }
.agent-chat-spalte .agent-chat-aufgabe .zp-wort { color: inherit; font-size: inherit; }
.agent-chat-spalte > :is(.agent-chat-vorschlaege, .agent-chat-eingabe):not(.agent-chat-vorschlaege ~ *) { margin-top: auto; }
.agent-chat-spalte .db-agent-verlauf { flex: 1 1 auto; min-height: 0; overflow-y: auto; } /* Hinweis B5: nur der Verlauf scrollt, die Eingabe bleibt unten */
@media (max-width: 48rem) { .agent-chat-spalte { height: auto; padding: var(--raum-3) 0 0; border-right: 0; border-top: 1px solid var(--rand); } }
/* PB-9358 (Sichtprüfung 02.12.): Überschrift oben in einer Karte der Projektseite ohne eigenen Rand, sonst 41 px oben neben 16 px seitlich. */
.db-haupt > .karte > h2:first-child, .db-raster > .karte > h3:first-child { margin-top: 0; }
/* PB-9554 (Bild 3): Karte „So richten wir Ihre Homepage ein“, Leitstrahl zum Ansehen; Kästchen wie Haken-Liste, erledigt grün durchgestrichen */
.hp-lst { max-width: 40rem; margin: 0 auto var(--raum-4); }
.hp-lst h2 { font-size: var(--schrift-m); margin: 0; }
/* PB-10500: ✕ oben rechts; geschlossen nur die Titelzeile, aufklappbar */
.hp-lst { position: relative; }
.hp-lst-x { position: absolute; top: var(--raum-2); right: var(--raum-2); margin: 0; }
.hp-lst:not(.hp-lst-zu) > h2 { padding-right: 2.5rem; }
.hp-lst-zu > summary { cursor: pointer; list-style-position: inside; }
.hp-lst-zu > summary > h2 { display: inline; }
.hp-lst-zu[open] > summary { margin-bottom: var(--raum-2); }
.hp-lst-zahl { margin-left: var(--raum-2); padding: 0.1rem 0.5rem; border-radius: 999px; font-size: var(--schrift-xs); font-weight: 400; background: var(--akzent-leise); color: var(--akzent); }
.hp-lst > .leise { margin: var(--raum-1, 0.25rem) 0 var(--raum-3); font-size: var(--schrift-s); }
.hp-lst-balken { display: block; width: 100%; height: 0.4rem; border: 0; border-radius: 999px; overflow: hidden; background: var(--rand); accent-color: var(--ok); }
.hp-lst-balken::-webkit-progress-bar { background: var(--rand); }
.hp-lst-balken::-webkit-progress-value { background: var(--ok); }
.hp-lst-balken::-moz-progress-bar { background: var(--ok); }
.hp-lst-schritte { list-style: none; margin: var(--raum-3) 0 0; padding: 0; display: grid; gap: var(--raum-2); }
.hp-lst-schritte > li { display: flex; align-items: center; gap: var(--raum-3); }
.hp-lst-haken { flex: 0 0 1.1rem; height: 1.1rem; border: 1px solid var(--rand); border-radius: 0.25rem; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.hp-lst-erledigt > .hp-lst-haken { background: var(--ok); border-color: var(--ok); color: var(--flaeche); }
.hp-lst-erledigt > .hp-lst-haken::after { content: "✓"; }
.hp-lst-erledigt > .hp-lst-name { color: var(--ok); text-decoration: line-through; }
.hp-lst-laufend > .hp-lst-haken { border-color: var(--akzent); }
.hp-lst-laufend > .hp-lst-name { font-weight: 600; }
/* PB-9555 (Bild 3): Seiten in der Liste, live grün, Entwurf in Warnfarbe */
.hp-abzeichen-live { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.hp-abzeichen-entwurf { background: color-mix(in srgb, var(--warn-rand) 18%, transparent); color: var(--text); }
.hp-zeile-text > strong { font-weight: 600; }
/* B3 Bild 1 (Architekt 02.12. 20:44): Marke „KI-Abo“ rechts im Kopf des Host-Chats und Fuß mit dem Wochenanteil, nur mit KI-Abo (agent_chat kiAbo). */
.agent-chat-marke { margin-left: auto; padding: 0.1rem 0.5rem; border: 1px solid var(--rand); border-radius: 999px; font-size: var(--schrift-s); color: var(--text-leise); white-space: nowrap; }
.agent-chat-ki { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; margin: var(--raum-2, 0.5rem) 0 0; font-size: var(--schrift-s); }
.agent-chat-ki progress { width: 4rem; height: 0.35rem; }
/* PB-9571 (Bild 14): Wartet auf Sie als Karten mit Knöpfen; am Handy untereinander */
.shop-wartet { margin-bottom: var(--raum-4); }
/* PB-10369 */
.shop-bestellungen { margin-bottom: var(--raum-4); }
.shop-bestellungen h2 { font-size: var(--schrift-m); margin: 0 0 var(--raum-2); }
.shop-bestellungen > .hp-zeilen { margin-bottom: var(--raum-2); }
.shop-betrag { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; } /* PB-10747 */
.shop-stand-versendet, .shop-stand-erledigt { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.shop-stand-abholung { background: color-mix(in srgb, var(--warn-rand) 18%, transparent); color: var(--text); }
.shop-stand-storniert { background: transparent; border: 1px solid var(--rand); color: var(--text-leise); }
.hp-liste .shop-liste-titel { font-size: var(--schrift-m); margin: 0; padding: var(--raum-3) var(--raum-4) 0; } /* PB-10497: Abstand wie die Zeilen der Karte */
.shop-wartet-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: var(--raum-3); }
.shop-wartet-kopf h2 { font-size: var(--schrift-m); margin: 0 0 var(--raum-2); }
.shop-wartet-karten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--raum-3); }
.shop-wartet-karte { margin: 0; border-left: 4px solid var(--warn-rand); }
.shop-wartet-text { margin: 0 0 var(--raum-3); font-weight: 600; }
.shop-wartet-knoepfe { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin: 0; }
@media (max-width: 40rem) { .shop-wartet-karten { grid-template-columns: minmax(0, 1fr); } }

/* PB-10366 T3 (Bild 3): Bild der Startseite, die Seite in vierfacher Breite gezeichnet und verkleinert (wie ein Bildschirmfoto), nur ansehen */
.hp-vorschau-bild { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--rand); border-radius: 0.75rem; background: var(--flaeche); }
.hp-vorschau-seite { position: absolute; top: 0; left: 0; width: 400%; height: 400%; border: 0; transform: scale(0.25); transform-origin: 0 0; pointer-events: none; }
.hp-vorschau-zeile { margin: var(--raum-2) 0 0; }

/* PB-10366 Teil 4 (Bild 3, Zeile 14): die Homepage-Übersicht hat breit genau die Höhe des Fensters, der Fuß (Impressum, Datenschutz,
   Nutzungsbedingungen) steht im Fenster; wird es eng, rollt nur die Hauptspalte, nie die Seite (Muster PB-10233, Dashboard). */
@media (min-width: 1100px) and (min-height: 600px) {
  body:has(.hp-raster) { height: 100vh; height: 100dvh; }
  body:has(.hp-raster) :is(.rahmen, .rl-rumpf) { min-height: 0; }
  body:has(.hp-raster) .rl-rumpf { align-items: stretch; }
  main:has(.hp-raster) { display: flex; flex-direction: column; min-height: 0; }
  main:has(.hp-raster) > .db-spalten { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .db-spalten:has(.hp-raster) > .db-haupt { min-height: 0; overflow-y: auto; }
  .db-spalten:has(.hp-raster) > .agent-chat-spalte { height: auto; min-height: 0; }
}

/* PB-10368 (HB-8, Bild 3): Teams des Projekts auf dem Reiter AgentBase (templates/projekt_agentbase.php) */
.pab-teams { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--raum-4); }
.pab-team-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) var(--raum-3); }
.pab-team-kopf h2 { margin: 0; }
.pab-agenten { list-style: none; margin: 0 0 var(--raum-3); padding: 0; display: grid; gap: var(--raum-1); }

/* PB-10371 (Soll Bild 3 und 5): Chat-Spalte der Projekt-Übersicht bündig an der Leiste, 300 px, volle Höhe unter dem festen Kopf,
   Zeichen als Quadrat mit Verlauf. Nur breit (ab 1100 px wie der Rand oben); schmal bleibt die Spalte über dem Inhalt. */
@media (min-width: 1100px) {
    main > .db-spalten { margin-left: calc(-1 * var(--raum-5)); } /* bündig an der Leiste; main behält seinen Rand für alles davor (Adresse, Hinweise) */
    main:not(:has(> :not([hidden], script, .db-spalten, .db-spalten ~ *))) > .db-spalten { margin-top: -1.5rem; } /* nur wenn nichts Sichtbares davor steht (verborgener Fassungshinweis und Skript zählen nicht): direkt unter dem Kopf */
    .db-spalten { grid-template-columns: 300px minmax(0, 1fr); gap: var(--raum-5); }
    .db-spalten > .agent-chat-spalte { position: sticky; top: calc(2.6rem + 1px); height: calc(100vh - 2.6rem - 1px); padding: var(--raum-3); }
    .db-spalten > .db-haupt { padding-top: var(--raum-4); }
}
.agent-chat-spalte .agent-chat-zeichen { background: linear-gradient(135deg, #6d4ce0, #2a5bd7); color: #fff; }

/* Projekt-Cockpit (E22, PB-3220): Teile als Kacheln, am Handy eine Spalte; Verweise als Liste mit großen Zielen. */
.ck-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--abstand); margin: 0 0 var(--abstand); }
.ck-teil { padding: 0.8rem 1rem; border: 1px solid var(--rand); border-radius: var(--radius); overflow-wrap: anywhere; }
.ck-teil h2 { margin-top: 0; font-size: 1.1rem; }
.ck-teil .ws-notiz > :last-child { margin-bottom: 0; }
.ck-fragen { margin: 0 0 0.5rem; padding-left: 1.2rem; }
.ck-fragen li { padding: 0.2rem 0; }
.ck-verweise ul { list-style: none; margin: 0 0 var(--abstand); padding: 0; border-top: 1px solid var(--rand); max-width: 46rem; }
.ck-verweise li { border-bottom: 1px solid var(--rand); }
.ck-verweise li > a { display: block; padding: 0.7rem 0.4rem; min-height: 2.75rem; box-sizing: border-box; }
.ws-bearbeiten textarea.ce-kurz { min-height: 6rem; } /* PB-3218: Wortlaut der Entscheidung */

/* Kundenkonto (PB-4343): Konto, Mitarbeiter, Abo, Rechnungen, Einstellungen im selben Aufbau. Farben nur über die Variablen aus
   basis.css, damit Hell und Dunkel ohne eigene Regeln stimmen. Zuerst das Handy, breitere Fenster am Ende. */

/* Seitenkopf: Überschrift, ein Satz, darunter die Reiter */

/* Karten nebeneinander, sobald Platz ist */
.kt-raster { display: grid; grid-template-columns: 1fr; gap: var(--abstand); align-items: start; margin-bottom: var(--abstand); }
.kt-raster > .karte { margin-bottom: 0; }
.kt-karte h2 { margin-top: 0; font-size: 1.1rem; }
.kt-karte h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-leise); margin: 1.1rem 0 0.3rem; }
.kt-karte > p:last-child, .kt-karte form:last-child { margin-bottom: 0; }

/* Wer angemeldet ist */
.kt-profil { display: flex; gap: 0.9rem; align-items: center; margin: 0; }
.kt-initialen { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--akzent-leise); color: var(--text); font-weight: 700; border: 1px solid var(--rand); }
.kt-profil-text { min-width: 0; display: flex; flex-direction: column; }
.kt-profil-text strong, .kt-profil-text span { overflow-wrap: anywhere; }

/* Wege zu Unterseiten: ganze Zeile klickbar, Titel und ein Satz */
.kt-wege { list-style: none; padding: 0; margin: 0; }
.kt-wege li { border-top: 1px solid var(--rand); }
.kt-wege a { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.2rem; color: var(--text); text-decoration: none; min-height: 2.75rem; }
.kt-wege a::after { content: "\203A"; margin-left: auto; color: var(--text-leise); font-size: 1.3rem; line-height: 1; }
.kt-wege a:hover { background: var(--flaeche-leise); }
.kt-wege a:hover .kt-weg-titel { text-decoration: underline; }
.kt-weg { display: flex; flex-direction: column; min-width: 0; }
.kt-weg-titel { font-weight: 600; }
.kt-weg-text { color: var(--text-leise); font-size: 0.9rem; }

/* Auswahl als große Felder (Darstellung) */
.kt-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 0.5rem; margin: 0 0 1rem; padding: 0; border: 0; }
.kt-wahl label { display: flex; gap: 0.5rem; align-items: center; margin: 0; padding: 0.65rem 0.8rem; border: 1px solid var(--rand); border-radius: var(--radius); font-weight: 400; cursor: pointer; min-height: 2.75rem; }
.kt-wahl label:hover { background: var(--flaeche-leise); }
.kt-wahl label:has(input:checked) { border-color: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); font-weight: 600; }

/* Folgenreiche Schritte am Ende, deutlich abgesetzt */
.kt-gefahr { border-color: var(--fehler); border-left-width: 4px; }
.kt-gefahr h2 { color: var(--fehler); }

/* Mitarbeiter: eine Karte je Zugang */
.kt-zahl { color: var(--text-leise); font-weight: 400; font-size: 0.9rem; margin-left: 0.4rem; }
.kt-personen { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.kt-person { border: 1px solid var(--rand); border-radius: 0.75rem; padding: 0.85rem 1rem; background: var(--flaeche); }
.kt-person.gesperrt { background: var(--flaeche-leise); }
.kt-person-kopf { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.kt-person-name { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column; }
.kt-person-name strong, .kt-person-name span { overflow-wrap: anywhere; }
.kt-person .status.gesperrt { color: var(--st-blockiert); border-color: var(--st-blockiert); }
.kt-person .status.neu { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-rand); }
.kt-person > p { margin: 0.6rem 0 0; }
.kt-person details { margin-top: 0.75rem; border-top: 1px solid var(--rand); padding-top: 0.6rem; }
.kt-person summary { cursor: pointer; font-weight: 600; min-height: 2.75rem; display: flex; align-items: center; }
.kt-person fieldset { border: 0; padding: 0; margin: 0.5rem 0 0; }
.kt-person legend { font-weight: 600; margin-bottom: 0.5rem; }
.kt-person .feld span.leise { display: block; margin-left: 1.6rem; font-size: 0.9rem; }
.kt-knoepfe { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.kt-knoepfe form { margin: 0; }
.kt-einmal code { font-size: 1.15rem; padding: 0.3rem 0.6rem; background: var(--flaeche-leise); border-radius: var(--radius); user-select: all; }

/* Geräte und Anmeldungen */
.kt-geraete li { align-items: center; }
.kt-geraete .status { margin-left: 0.4rem; }

/* Rechnungen und Abo: Abschnitte als Karten */
.kt-abschnitt { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: var(--abstand); margin-bottom: var(--abstand); }
.kt-abschnitt > h2 { margin-top: 0; font-size: 1.1rem; }
.kt-abschnitt table { margin: 0; }

@media (min-width: 52rem) {
  .kt-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kt-raster > .kt-breit { grid-column: 1 / -1; }
}

/* Wissensnetz (PB-4211): Filter, Fläche mit dem Netz (vom Skript gezeichnet) und die Liste, die ohne Skript die Ansicht ist. */
.wn-filter { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0 0 var(--abstand); }
.wn-wahl { display: inline-block; padding: 0.5rem 0.8rem; min-height: 2.75rem; box-sizing: border-box; border: 1px solid var(--rand); border-radius: 1.4rem; }
span.wn-wahl { font-weight: 700; border-color: currentColor; }
.wn-netz { margin: 0 0 var(--abstand); border: 1px solid var(--rand); border-radius: 0.4rem; }
.wn-bild { display: block; width: 100%; height: auto; }
.wn-linien line { stroke: var(--rand); stroke-width: 1.2; }
.wn-punkt circle { fill: var(--text-leise); stroke: var(--flaeche); stroke-width: 2; }
.wn-punkt.wn-mitte circle { fill: var(--akzent); }
.wn-punkt text { display: none; font-size: 15px; fill: currentColor; paint-order: stroke; stroke: var(--flaeche); stroke-width: 4px; }
.wn-alle-namen .wn-punkt text, .wn-punkt.wn-mitte text, .wn-punkt.wn-aktiv text, .wn-punkt.wn-nah text, .wn-punkt:focus text { display: inline; }
.wn-punkt:focus { outline: none; }
.wn-punkt:focus circle, .wn-punkt.wn-aktiv circle { stroke: var(--fokus); stroke-width: 4; }
.wn-auswahl .wn-punkt:not(.wn-aktiv):not(.wn-nah) { opacity: 0.35; }
.wn-auswahl .wn-linien line { opacity: 0.3; }
.wn-auswahl .wn-linien line.wn-an { opacity: 1; stroke: var(--akzent); stroke-width: 2; }
.wn-liste { list-style: none; margin: 0 0 var(--abstand); padding: 0; border-top: 1px solid var(--rand); max-width: 46rem; }
.wn-liste > li { border-bottom: 1px solid var(--rand); padding: 0.6rem 0.4rem; overflow-wrap: anywhere; }
.wn-name { font-weight: 600; margin-right: 0.4rem; }
.wn-marke { font-size: 0.85rem; margin-right: 0.4rem; }
.wn-liste .leise { font-size: 0.85rem; }
.wn-bezug { margin: 0.2rem 0 0; font-size: 0.9rem; }
@media (max-width: 30rem) {
  .wn-punkt text { font-size: 22px; }
}
/* PB-4605 (Betrieb): Farbe je oberstem Ordner (der Name steht in der Legende und an jeder Notiz), Treffer der Suche, Knöpfe zum Vergrößern. */
.wn-punkt.wn-g1 circle, .wn-farbe.wn-g1 { fill: var(--st-offen); background: var(--st-offen); }
.wn-punkt.wn-g2 circle, .wn-farbe.wn-g2 { fill: var(--ok); background: var(--ok); }
.wn-punkt.wn-g3 circle, .wn-farbe.wn-g3 { fill: var(--prio-hoch); background: var(--prio-hoch); }
.wn-punkt.wn-g4 circle, .wn-farbe.wn-g4 { fill: var(--st-arbeit); background: var(--st-arbeit); }
.wn-punkt.wn-g5 circle, .wn-farbe.wn-g5 { fill: var(--st-blockiert); background: var(--st-blockiert); }
.wn-punkt.wn-g6 circle, .wn-farbe.wn-g6 { fill: var(--feldrand); background: var(--feldrand); }
.wn-farbe.wn-g0 { background: var(--text-leise); }
.wn-punkt.wn-mitte circle { fill: var(--akzent); }
.wn-farbe { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 50%; margin-right: 0.4rem; border: 1px solid var(--rand); }
.wn-legende { list-style: none; margin: 0 0 var(--abstand); padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; font-size: 0.9rem; }
.wn-werkzeug { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.4rem; border-bottom: 1px solid var(--rand); }
.wn-gesucht .wn-punkt:not(.wn-treffer) { opacity: 0.25; }
.wn-gesucht .wn-linien line { opacity: 0.3; }
.wn-punkt.wn-treffer text { display: inline; }
.wn-punkt.wn-treffer circle { stroke: var(--fokus); stroke-width: 4; }
.wn-nah-dran .wn-punkt text { font-size: 9px; }

/* PB-4348 Stufe 3: Leitstrahl, das Projekt-Cockpit in kurz (Teil templates/teile/leitstrahl.php). Ein Baustein, heute in der Zentrale,
   später im Kundenbereich: darum eigene Datei mit Vorsilbe lst-, nur Farben und Schriftstufen aus basis.css, keine Bewegung. Die Anteile
   tragen ihre Aussage als Text; der Balken (progress, aria-hidden) ist Schmuck. Hell und dunkel über die Variablen allein. */
.lst { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.35rem var(--raum-3) 0.45rem; background: var(--flaeche-leise); border: 1px solid var(--rand); border-radius: 0.75rem; font-size: var(--schrift-s); line-height: var(--zeile-eng); }
.lst p, .lst ul, .lst ol, .lst dl, .lst dd { margin: 0; }
.lst-kopf { display: flex; align-items: center; gap: var(--raum-2); min-height: 1.5rem; }
.lst-titel { margin: 0; font-size: var(--schrift-s); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-leise); }
.lst-beispiel { padding: 0 0.4rem; border: 1px solid var(--rand); border-radius: 999px; font-size: var(--schrift-xs); color: var(--text-leise); }
.lst-projekt { font-size: var(--schrift-m); font-weight: 700; color: var(--text); }
/* Das Ziel höchstens drei Zeilen im Bild (der ganze Satz bleibt im Text und als Tooltip) */
.lst-ziel { display: -webkit-box; margin-top: 0.1rem; color: var(--text-leise); overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.lst-jetzt { padding: 0.3rem 0.55rem; background: var(--flaeche); border: 1px solid var(--rand); border-left: 3px solid var(--akzent); border-radius: 0.5rem; overflow-wrap: anywhere; }
.lst-jetzt-wort { margin-right: 0.25rem; font-size: var(--schrift-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--akzent); }
.lst-jetzt strong { font-weight: 600; color: var(--text); }
.lst-jetzt-unbekannt { border-left-color: var(--rand); }
.lst-jetzt-unbekannt .lst-jetzt-wort, .lst-jetzt-unbekannt strong { color: var(--text-leise); font-weight: 400; }
.lst-anteile { display: grid; gap: 0.15rem; }
.lst-anteil { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: var(--raum-2); padding-bottom: 0.45rem; }
.lst-anteil dt { color: var(--text-leise); font-size: var(--schrift-xs); }
.lst-zahl { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.lst-zahl-unbekannt { font-weight: 400; color: var(--text-leise); }
.lst-balken { position: absolute; left: 0; right: 0; bottom: 0; display: block; width: 100%; height: 0.3rem; border: 0; border-radius: 999px; background: var(--rand); color: var(--akzent); appearance: none; -webkit-appearance: none; overflow: hidden; }
.lst-balken::-webkit-progress-bar { background: var(--rand); border-radius: 999px; }
.lst-balken::-webkit-progress-value { background: var(--akzent); border-radius: 999px; }
.lst-balken::-moz-progress-bar { background: var(--akzent); border-radius: 999px; }
.lst-teil-t { display: inline; margin: 0; font-size: var(--schrift-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-leise); }
.lst-teil { display: flex; flex-direction: column; gap: 0.2rem; }
.lst-leise { color: var(--text-leise); }
.lst-kapitel > summary { display: flex; align-items: baseline; gap: var(--raum-2); min-height: 1.4rem; cursor: pointer; list-style: none; }
.lst-kapitel > summary::-webkit-details-marker, .lst-k-erledigte > summary::-webkit-details-marker { display: none; }
.lst-kapitel > summary::after { content: "▸"; margin-left: auto; color: var(--text-leise); }
.lst-kapitel[open] > summary::after { content: "▾"; }
.lst-kapitel[open] > summary { margin-bottom: 0.1rem; }
.lst-k-summe { font-size: var(--schrift-xs); color: var(--text-leise); }
.lst-k-liste, .lst-k-liste ul { display: flex; flex-direction: column; gap: 0.05rem; padding: 0; list-style: none; }
.lst-k { display: flex; align-items: baseline; gap: 0 0.4rem; padding: 0.12rem 0.35rem; border-radius: 0.35rem; }
.lst-k-marke { flex: none; display: inline-block; width: 0.5rem; height: 0.5rem; border: 2px solid var(--feldrand); border-radius: 999px; }
.lst-k-erledigt .lst-k-marke { border-color: var(--ok); background: var(--ok); }
.lst-k-laufend { background: var(--akzent-leise); }
.lst-k-laufend .lst-k-marke { border-color: var(--akzent); background: var(--flaeche); }
.lst-k-laufend .lst-k-titel { font-weight: 600; }
/* Kapitel und Schritte je eine Zeile (der ganze Titel bleibt im Text und als Tooltip) */
.lst-k-titel, .lst-s-titel { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); }
.lst-k-stand, .lst-k-zahl { flex: none; }
.lst-k-stand { font-size: var(--schrift-xs); color: var(--text-leise); }
.lst-k-zahl { font-size: var(--schrift-xs); font-variant-numeric: tabular-nums; color: var(--text-leise); }
.lst-k-erledigt { display: block; padding: 0; }
.lst-k-erledigte > summary { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.12rem 0.35rem; border-radius: 0.35rem; color: var(--text-leise); cursor: pointer; list-style: none; }
.lst-k-erledigte > summary::after { content: "▸"; margin-left: auto; }
.lst-k-erledigte[open] > summary::after { content: "▾"; }
.lst-k-erledigte ul { margin: 0.1rem 0 0.2rem 1.25rem; }
.lst-k-erledigte li { display: flex; align-items: baseline; gap: 0 0.4rem; }
.lst-k-erledigte .lst-k-titel { color: var(--text-leise); }
.lst-kapitel > summary:hover .lst-teil-t, .lst-k-erledigte > summary:hover { color: var(--text); }
.lst-schritte { display: flex; flex-direction: column; gap: 0.15rem; margin: 0; padding: 0 0 0 1.2rem; }
.lst-schritte li { padding-left: 0.1rem; color: var(--text); }
.lst-s-zeile { display: flex; align-items: baseline; gap: 0.35rem; min-width: 0; }
.lst-schritte li::marker { color: var(--text-leise); font-size: var(--schrift-xs); }
.lst-kennung { flex: none; padding: 0 0.3rem; border: 1px solid var(--rand); border-radius: 0.3rem; background: var(--flaeche); font-size: var(--schrift-xs); font-variant-numeric: tabular-nums; color: var(--text-leise); white-space: nowrap; }
.lst-kopf .lst-stand { margin: 0 0 0 auto; font-size: var(--schrift-xs); color: var(--text-leise); white-space: nowrap; }
.lst-leer { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.6rem 0.7rem; border: 1px dashed var(--feldrand); border-radius: 0.5rem; color: var(--text-leise); }
.lst-leer-titel { font-weight: 600; color: var(--text); }
@media (forced-colors: active) {
  .lst-balken { border: 1px solid CanvasText; }
  .lst-k-erledigt .lst-k-marke { background: CanvasText; }
}
@media (max-width: 43.75rem) {
  .lst-kapitel > summary, .lst-k-erledigte > summary { min-height: 2.5rem; align-items: center; }
}

/* PB-5103: Seitengerüst groß des neuen Dashboards (hinter Schalter PLATTBASE_DASHBOARD_NEU). Maße nach docs/produkt/dashboard/01:
   Wissen ~120 px links, Assistent ~170 px rechts, Kacheln ~110–120 px im Verhältnis 16:10, Werkzeugleiste unten mit feiner Linie.
   Mittlere und schmale Breite: unten (PB-5123); hell und dunkel aus den Farb-Bausteinen von basis.css. */
.db { display: flex; flex-direction: column; gap: var(--raum-4); min-width: 0; }
/* PB-8215g: Gruß und Datum im einen Seitenkopf (bausteine.css), darunter Kennzahl und Satz */
.db > .seitenkopf { margin: 0; }
.db > .seitenkopf h1 { font-size: 1.4rem; }
.db-lage { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--raum-3); }
.db-kennzahl { margin: 0; }
.db-mitte { display: grid; grid-template-columns: minmax(7rem, 7.5rem) minmax(0, 1fr) minmax(9rem, 10.5rem); gap: var(--raum-5); align-items: start; }
.db-wissen, .db-assistent { padding: var(--raum-3); }
.db-assistent { max-height: 12rem; overflow: auto; }
.db-mitte h2 { font-size: var(--schrift-m); margin: 0 0 var(--raum-2); }
.db-projekte { min-width: 0; text-align: center; }
.db-projekte > h2 { text-align: left; } /* PB-5197c: Überschrift links wie die anderen Karten */
.db-kacheln { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--raum-3); }
.db-kachel { width: 7.25rem; aspect-ratio: 16 / 10; }
.db-kachel a { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--rand); border-radius: 0.5rem; background: var(--flaeche-leise); color: var(--text); text-decoration: none; overflow: hidden; }
.db-kachel a:hover, .db-kachel a:focus-visible { border-color: var(--akzent); }
/* PB-5131: ruhiges Bild je Projektart mit großem Symbol (bis es ein Bild der Seite gibt), Name unten im dunklen Band */
.db-kachel-bild { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; color: var(--text-leise); }
.db-kachel-bild .sym { width: 1.75rem; height: 1.75rem; }
.db-kachel-bild img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; } /* PB-5132: abgelegtes Bild der Seite */
.db-kachel-name { padding: var(--raum-1) var(--raum-2); background: none; color: var(--text); /* PB-9128b S19: ohne umgekehrten Streifen, wie ab 1100 px (sonst im dunklen Modus grell) */ font-size: var(--schrift-s); font-weight: 600; line-height: var(--zeile-eng); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-kachel-marke { position: absolute; top: var(--raum-1); left: var(--raum-1); padding: 0 var(--raum-1); border: 1px solid var(--rand); border-radius: 0.25rem; background: var(--flaeche); color: var(--text); font-size: var(--schrift-xs); line-height: var(--zeile-dicht); }
.db-kachel-neu a { border-style: dashed; background: var(--flaeche); }
/* PB-8204 (ENDSTAND 4, E-25): Zustandspunkt oben links, das Kennzeichen rückt daneben; die Kachel, der der Leitstrahl folgt, ist markiert */
.db-kachel-zp { position: absolute; top: calc(var(--raum-1) + 0.35rem); left: var(--raum-2); display: flex; line-height: 0; }
.db-kachel-zp ~ .db-kachel-marke { left: calc(var(--raum-2) + 0.75rem); }
.db-kachel > a:focus-visible .db-kachel-zp .zp { position: relative; } /* PB-9297: Tooltip des Statuspunkts auch beim Tastatur-Fokus (title zeigt nur die Maus) */
.db-kachel > a:focus-visible .db-kachel-zp .zp::after { content: attr(title); position: absolute; top: calc(100% + 4px); left: 0; z-index: 2; padding: 2px 6px; border-radius: 4px; background: var(--text); color: var(--flaeche); font-size: 0.75rem; line-height: 1.3; white-space: nowrap; }
.db-kachel-gewaehlt > a { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
/* PB-5140: Rückseite (Einstellung, ab Werk aus). Beim Überfahren und mit der Tastatur (Fokus) dreht sich die Kachel in 0,5 s; in der Mitte
   der Drehung wird die gegengedrehte, also lesbare Rückseite sichtbar. Bei „weniger Bewegung“ erscheint sie ohne Drehung. Vorlese-Programme
   lesen sie immer mit (nur durchsichtig, nicht versteckt). Ohne Skript. */
.db-kachel-dreh a { transition: transform 0.5s; }
.db-kachel-dreh a:is(:hover, :focus-visible) { transform: rotateY(180deg); }
.db-kachel-hinten { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--raum-1); padding: var(--raum-2); background: var(--flaeche); color: var(--text); font-size: var(--schrift-s); line-height: var(--zeile-eng); opacity: 0; transform: rotateY(180deg); transition: opacity 0s 0.25s; }
.db-kachel-dreh a:is(:hover, :focus-visible) .db-kachel-hinten { opacity: 1; }
.db-kachel-anteil { font-size: var(--schrift-m); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .db-kachel-dreh a, .db-kachel-hinten { transition: none; }
  .db-kachel-dreh a:is(:hover, :focus-visible), .db-kachel-hinten { transform: none; }
}
.db-werkbank-titel { margin: 0; font-size: var(--schrift-m); text-align: center; }
.db-werkbank-unter { margin: 0 0 var(--raum-2); text-align: center; }
.db-werkzeug .sym { width: 1.5rem; height: 1.5rem; }
.db-marke { margin-left: var(--raum-1, 0.25rem); padding: 0 var(--raum-2); border-radius: 1rem; background: var(--akzent); color: var(--flaeche); font-size: 0.75rem; font-weight: 700; }
.db-werkzeug-unter { font-size: 0.75rem; }
.db-leiste { border-top: 1px solid var(--rand); padding-top: var(--raum-3); }
.db-leiste ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--raum-3); }
.db-werkzeug { display: flex; flex-direction: column; align-items: center; min-width: 4.5rem; color: var(--text-leise); }
.db-werkzeug-kraeftig { color: var(--text); font-weight: 600; }
.db-weitere { display: flex; flex-direction: column; align-items: center; min-width: 4.5rem; color: var(--text-leise); }
.db-weitere-handyfall { display: none; }
.db-werkzeug a, .db-weitere a { display: flex; flex-direction: column; align-items: center; color: inherit; text-decoration: none; }
.db-werkzeug a:hover, .db-weitere a:hover, .db-weitere a:focus-visible, .db-werkzeug a:focus-visible { color: var(--akzent); }
.db-weitere-handy { display: none; }
.db-bald { font-size: 0.75rem; font-weight: 400; color: var(--text-leise); }

/* PB-5123: Verhalten nach Bildschirmbreite (docs/produkt/dashboard/01). Seitenrand mindestens 16 px, auch an Handys mit Rand-Leisten. */
.db { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); padding-bottom: env(safe-area-inset-bottom); }
/* mittel (ab 760 px bis unter 1100 px): drei Spalten bleiben, die Projekte stehen als eine Reihe zum Wischen */
@media (max-width: 1099px) {
  .db-kacheln { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: var(--raum-2); }
  .db-kachel { flex: 0 0 7.25rem; }
  .db-projekte { text-align: left; }
}
/* PB-9577 (Befund Bau-MiniTools 03.12.): mittel (760 bis 1099 px) ist die rechte Spalte schmal; der Knopf einer Zeile „Wartet auf Sie“
   rückt unter den Text, statt die Spalte zu verbreitern oder den Text Buchstabe für Buchstabe umzubrechen. */
@media (min-width: 760px) and (max-width: 1099px) {
  .db-agent-eintrag { flex-wrap: wrap; }
  .db-agent-eintrag > .db-agent-text { flex: 1 1 6rem; min-width: 0; }
}
/* schmal (unter 760 px): alles untereinander, keine seitliche Rollleiste der Seite */
@media (max-width: 759px) {
  .db-mitte { grid-template-columns: minmax(0, 1fr); gap: var(--raum-3); }
  .db-assistent { max-height: none; }
  .db-lage { flex-direction: column; align-items: flex-start; }
  .db-leiste ul { justify-content: space-around; }
  .db-werkzeug { min-width: 3.5rem; }
  /* PB-5111: am Handy 5 Symbole, der Rest hinter "Weitere" */
  .db-leiste li.db-werkzeug:nth-child(n+6) { display: none; }
  .db-weitere-handyfall { display: flex; }
  .db-weitere-alle { display: none; }
  .db-weitere-handy { display: inline; }
}
/* PB-5128: Konto-Menü hinter dem Namen, ohne Skript (details/summary) */

/* PB-5108: Bogen (Notiz 02). Halbkreis über der Werkzeugleiste, Mittelpunkt unten in der Mitte, Mitte frei. Bis 7 Kacheln (6 Projekte und
   Neues Projekt) gleichmäßig je 145°/6 nebeneinander, bei 7 Kacheln genau 145°; die unterste Kachel ~20 px über der Leiste (Abstand der
   Spalten 16 px plus 4 px). Hat der Benutzer den Bogen selbst gewählt und es sind mehr Kacheln, stehen Nr. 8 bis 13 auf einem zweiten,
   äußeren Bogen. Ohne Skript: Platz je Kachel aus der Reihenfolge (nth-child) und der Zahl (Klasse db-bogen-<n>). Nur auf großen Fenstern
   und mit Winkelfunktionen im Browser; sonst bleibt die Reihe. */
.db-projekte { container-type: inline-size; }
@media (min-width: 1100px) {
@supports (bottom: calc(1px * cos(1deg))) {
@container (min-width: 45rem) {
  .db-kacheln.db-anordnung-bogen {
    --schritt: calc(145deg / 6); --r: 19.5rem; --r2: calc(var(--r) + 7rem); --schritt2: 18deg; --luft: 0.25rem; --kh: calc(7.25rem * 10 / 16);
    --halb: calc((var(--n) - 1) * var(--schritt) / 2); --halb2: calc((var(--n2) - 1) * var(--schritt2) / 2); --aussen: var(--r);
    display: block; position: relative; height: calc(var(--luft) + var(--aussen) - var(--r) * cos(var(--halb)) + var(--kh));
  }
  .db-kacheln.db-anordnung-bogen > .db-kachel {
    --rk: var(--r); --w: calc(var(--i) * var(--schritt) - var(--halb));
    position: absolute; left: calc(50% + var(--rk) * sin(var(--w)) - 3.625rem); bottom: calc(var(--luft) + var(--rk) * cos(var(--w)) - var(--r) * cos(var(--halb)));
  }
  .db-kacheln.db-anordnung-bogen > .db-kachel:nth-child(n+8) { --rk: var(--r2); --w: calc(var(--i) * var(--schritt2) - var(--halb2)); }
  .db-kacheln:is(.db-bogen-8, .db-bogen-9, .db-bogen-10, .db-bogen-11, .db-bogen-12, .db-bogen-13) { --aussen: var(--r2); }
  .db-bogen-1 { --n: 1; --n2: 0; } .db-bogen-2 { --n: 2; --n2: 0; } .db-bogen-3 { --n: 3; --n2: 0; } .db-bogen-4 { --n: 4; --n2: 0; } .db-bogen-5 { --n: 5; --n2: 0; } .db-bogen-6 { --n: 6; --n2: 0; } .db-bogen-7 { --n: 7; --n2: 0; } .db-bogen-8 { --n: 7; --n2: 1; } .db-bogen-9 { --n: 7; --n2: 2; } .db-bogen-10 { --n: 7; --n2: 3; } .db-bogen-11 { --n: 7; --n2: 4; } .db-bogen-12 { --n: 7; --n2: 5; } .db-bogen-13 { --n: 7; --n2: 6; }
  .db-kachel:nth-child(1) { --i: 0; } .db-kachel:nth-child(2) { --i: 1; } .db-kachel:nth-child(3) { --i: 2; } .db-kachel:nth-child(4) { --i: 3; } .db-kachel:nth-child(5) { --i: 4; } .db-kachel:nth-child(6) { --i: 5; } .db-kachel:nth-child(7) { --i: 6; }
  .db-kachel:nth-child(8) { --i: 0; } .db-kachel:nth-child(9) { --i: 1; } .db-kachel:nth-child(10) { --i: 2; } .db-kachel:nth-child(11) { --i: 3; } .db-kachel:nth-child(12) { --i: 4; } .db-kachel:nth-child(13) { --i: 5; }
}
}
}
/* PB-5112: kleiner Wissensgraph; Farben aus den Bausteinen, Bewegung nur ohne "weniger Bewegung" */
.db-wn { display: block; margin: 0 0 var(--raum-2); border-radius: 0.4rem; }
.db-wn:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.db-wn-bild { display: block; width: 100%; height: auto; }
.db-wn-linie { stroke: var(--rand); stroke-width: 0.6; }
.db-wn-punkt { fill: var(--text-leise); }
.db-wn-mitte { fill: var(--akzent); }
.db-wn-an { fill: var(--akzent); }
.db-wn-linie.db-wn-an { stroke: var(--akzent); stroke-width: 1.2; }
@media (prefers-reduced-motion: no-preference) {
  .db-wn-punkt, .db-wn-linie { transition: fill 0.12s, stroke 0.12s; }
}
/* PB-5113: Assistent, Platz und Bedienung. Rechts klein; "Breiter" schiebt das Dashboard zur Seite (die Spalte wächst, nichts liegt darüber).
   Schmal: ein Knopf unten rechts, der Assistent öffnet sich über die Adresse #db-assistent (ohne Skript). */
.db-assistent-form { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin: var(--raum-2) 0 0; }
.db-assistent-form input { flex: 1 1 6rem; min-width: 0; min-height: 2.75rem; box-sizing: border-box; }
.db-assistent-form button, .db-assistent-breit { min-height: 2.75rem; }
.db-assistent-zu, .db-assistent-knopf { display: none; }
.db-mitte-breit { grid-template-columns: minmax(7rem, 7.5rem) minmax(0, 1fr) minmax(16rem, 24rem); }
.db-mitte-breit .db-assistent { max-height: 24rem; }
@media (max-width: 1099px) { .db-mitte-breit { grid-template-columns: minmax(7rem, 7.5rem) minmax(0, 1fr) minmax(14rem, 18rem); } }
@media (max-width: 759px) {
  .db-assistent:not(:target) { display: none; }
  .db-assistent:target { display: block; position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); left: max(1rem, env(safe-area-inset-left, 0px)); z-index: 3; max-height: 70vh; box-shadow: 0 0 0.75rem var(--rand); }
  .db-assistent-zu { display: block; margin: var(--raum-2) 0 0; }
  .db-assistent-knopf { display: inline-flex; align-items: center; position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 2; min-height: 2.75rem; padding: 0 var(--raum-4); border-radius: 1.4rem; background: var(--akzent); color: var(--akzent-text); text-decoration: none; font-weight: 600; }
  .db-assistent-knopf:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
  .db-mitte-breit { grid-template-columns: minmax(0, 1fr); }
}
/* PB-5134: Werkzeuge ordnen (↑ ↓ als Formular, ohne Skript) */
.db-ordnen-liste { list-style: none; margin: var(--raum-3) 0; padding: 0; }
.db-ordnen-zeile { display: flex; align-items: center; gap: var(--raum-2); padding: var(--raum-2); border-bottom: 1px solid var(--rand); }
.db-ordnen-name { flex: 1; }
.db-ordnen-zeile[draggable="true"] { cursor: grab; }
.db-ordnen-form { margin: 0; }
.db-ordnen-form button { min-width: 2.75rem; min-height: 2.75rem; }
.db-ordnen-trenn { padding: var(--raum-2); border-top: 2px dashed var(--rand); }
.db-ordnen a { font-size: 0.875rem; }

/* PB-5136: großes Wissensnetz zum Aufklappen (ohne Skript über details). */
.db-wn-gross { margin: 0 0 var(--raum-2); }
.db-wn-gross summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; }
.db-wn-gross summary:focus-visible, .db-wn-notiz:focus-visible, .db-wn-ast-name:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.db-wn-gross text { font-size: 3px; fill: var(--text); }
.db-wn-ast-name text { font-weight: 700; fill: var(--akzent); }
.db-wn-linie.db-wn-ast { stroke-dasharray: 2 1.5; }
.db-wn-notiz:hover .db-wn-punkt { fill: var(--akzent); }

/* PB-5139m: linke Spalte (Wissen, darunter der Chat), Chat-Karte; „größer“ ohne Skript über ein verstecktes Kontrollkästchen. */
.db-mitte:not(.db-mitte-breit) { grid-template-columns: minmax(9rem, 11rem) minmax(0, 1fr) minmax(9rem, 10.5rem); }
.db-links { position: relative; display: flex; flex-direction: column; gap: var(--raum-3); min-width: 0; }
@media (max-width: 759px) { .db-mitte-breit { grid-template-columns: minmax(0, 1fr); } }
/* PB-5191: Dashboard auf voller Breite (Soll dashboard.png): Seite ohne 80-rem-Grenze, links ~19 rem, Mitte flexibel, rechts ~26 rem. Nur ab 1100 px; darunter gelten die Regeln oben. */
@media (min-width: 1100px) {
  main:has(> .db) { max-width: none; padding-left: var(--raum-5); padding-right: var(--raum-5); }
  .db .db-mitte:not(.db-mitte-breit), .db .db-mitte-breit { grid-template-columns: 19rem minmax(0, 1fr) 26rem; }
}

/* PB-5133: weitere Anordnungen (Notiz 02), nur groß; mittlere und schmale Fenster bleiben Reihe (PB-5123). Ohne Skript: Stapel fächert
   beim Überfahren und mit der Tastatur (Fokus in der Liste) auf. Fokus: das wichtigste Projekt (erste Kachel) groß, Neues Projekt nie. */
@media (min-width: 1100px) {
  .db-kacheln.db-anordnung-reihe { flex-wrap: nowrap; justify-content: center; justify-content: safe center; overflow-x: auto; padding-bottom: var(--raum-2); }
  .db-anordnung-reihe > .db-kachel, .db-anordnung-stapel > .db-kachel { flex: 0 0 7.25rem; }
  .db-kacheln.db-anordnung-raster { display: grid; grid-template-columns: repeat(2, 7.25rem); justify-content: center; }
  .db-kacheln.db-anordnung-fokus { align-items: center; }
  .db-anordnung-fokus > .db-kachel:first-child:not(.db-kachel-neu) { width: 15.5rem; }
  .db-kacheln.db-anordnung-stapel { flex-wrap: nowrap; justify-content: center; justify-content: safe center; padding: var(--raum-2) 0; }
  .db-anordnung-stapel > .db-kachel + .db-kachel { margin-left: -6rem; }
  .db-anordnung-stapel > .db-kachel:nth-child(odd) { transform: rotate(-3deg); }
  .db-anordnung-stapel > .db-kachel:nth-child(even) { transform: rotate(3deg); }
  .db-kacheln.db-anordnung-stapel:is(:hover, :focus-within) { flex-wrap: wrap; }
  .db-anordnung-stapel:is(:hover, :focus-within) > .db-kachel { margin-left: 0; transform: none; }
}
/* PB-5127: Glocke im Kopf, ohne Skript (details/summary); Punkt bei Offenem */
/* PB-5178: Leitstrahl-Karte unter "Ihr Agent" (templates/teile/dashboard_leitstrahl.php). Fünf Punkte auf einer Linie; Häkchen und Ring
   sind Schmuck, die Aussage steht als Text. Auf dem Handy steht die Karte unter dem Bogen (der Assistent ist dort ein Knopf). */
.db-rechts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--raum-3); min-width: 0; } /* PB-9577: Spalte nie breiter als ihr Platz (sonst blättert die Seite zwischen 760 und 1099 px waagrecht) */
.db-lst { padding: var(--raum-3); }
.db-lst-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--raum-2); }
.db-lst-kopf h2 { margin: 0; min-width: 0; }
.db-lst-sym { margin-right: 6px; vertical-align: -2px; color: var(--akzent); }
.db-lst-seit { margin: var(--raum-1) 0 0; }
.db-lst-punkte { list-style: none; display: flex; margin: var(--raum-3) 0; padding: 0; }
.db-lst-p { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: var(--raum-1); min-width: 0; font-size: var(--schrift-xs); color: var(--text-leise); text-align: center; }
.db-lst-p + .db-lst-p::before { content: ""; position: absolute; top: 0.5rem; right: 50%; width: 100%; border-top: 2px solid var(--rand); }
.db-lst-erledigt + .db-lst-p::before { border-top-color: var(--akzent); }
.db-lst-marke { position: relative; z-index: 1; width: 1rem; height: 1rem; box-sizing: border-box; border: 2px solid var(--rand); border-radius: 50%; background: var(--flaeche); }
.db-lst-erledigt .db-lst-marke { border-color: var(--akzent); background: var(--akzent); }
.db-lst-laufend .db-lst-marke { border-color: var(--akzent); box-shadow: inset 0 0 0 2px var(--flaeche), inset 0 0 0 6px var(--akzent); }
.db-lst-laufend { color: var(--text); font-weight: 600; }
.db-lst-fuss { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin: 0; padding-top: var(--raum-2); border-top: 1px solid var(--rand); }
.db-lst-prozent { flex: none; color: var(--akzent); font-weight: 600; }
/* PB-5179: Kennzahl-Reihe, vier Karten; schmal untereinander, Balken ohne Skript (progress). */
.db-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--raum-3); margin: 0; padding: 0; list-style: none; }
.db-karte { padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); min-width: 0; overflow-wrap: anywhere; }
.db-karte h2 { margin: 0 0 var(--raum-2); font-size: var(--schrift-m); }
.db-karte p { margin: 0 0 var(--raum-2); }
.db-karte-balken { display: block; width: 100%; }
.db-karte-hinweis { font-weight: 700; }
/* PB-5183: Agent-Karte "n Dinge warten auf Sie" (templates/teile/dashboard_agent.php). Symbol links, Titel und Untertitel, Knopf rechts. */
.db-agent { padding: var(--raum-3); }
/* PB-9344 (Befund B5 11:15): projekt_dashboard.css macht .db-agent (Agent-Leiste PB-4207) sticky. Die Karte „Wartet auf Sie“ heißt gleich und blieb beim Scrollen oben kleben, darunter rutschte der Leitstrahl über „Alle Freigaben“. Rechts im Dashboard fließt sie mit. */
.db-rechts > .db-agent:not(.agent-chat) { position: static; max-height: none; overflow: visible; }
.db-agent h2 { margin: 0 0 var(--raum-2); font-size: var(--schrift-m); }
.db-agent-liste { list-style: none; margin: 0; padding: 0; }
.db-agent-eintrag { display: flex; align-items: center; gap: var(--raum-2); padding: var(--raum-2) 0; border-bottom: 1px solid var(--rand); }
.db-agent-symbol { flex: none; display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 0.5rem; background: var(--flaeche-leise); }
.db-agent-text { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.db-agent-name { overflow-wrap: anywhere; }
.db-agent-unter { font-size: var(--schrift-xs); }
.db-agent-knopf { flex: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
/* PB-5181: Zustandswort unter dem Namen, Satz über den Kacheln */
.db-kachel-live { display: none; } /* PB-10317: „· Live“ im Namen nur ab 1100 px (dashboard_vorlage.css), darunter die Pille */
.db-kachel-zustand { padding: 0 var(--raum-2); font-size: var(--schrift-xs); color: var(--text-leise, var(--text)); }
.db-projekte-satz { margin: 0; }
.db-projekte-zahl, .db-projekte-warten { display: block; } /* PB-9702b: auch am Handy zwei Zeilen („3 Projekte“, „2 warten auf Sie“), nie zusammengeklebt */
/* PB-5194b (ENT-31): Firmen-Umschalter, Suche, Glocke, Hell/Dunkel und Konto stehen im Kopfbalken des Rahmens, nicht doppelt im Dashboard-Kopf */

.db-wisch { display: none; } /* PB-5192i: nur am Handy (dashboard_handy.css) */
.db-agent-mehr { margin: var(--raum-2) 0 0; }
/* PB-8201: "Kommt bald" als kleines Overlay ohne Skript (details), in der Werkbank und in der Liste /werkzeuge; per Tastatur über summary */
.bald-overlay { position: relative; }
.bald-overlay > summary { cursor: pointer; list-style: none; }
.bald-overlay > summary::-webkit-details-marker { display: none; }
.db-werkzeug .bald-overlay > summary { display: flex; flex-direction: column; align-items: center; color: inherit; }
.bald-overlay > summary:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.bald-overlay-text { position: absolute; z-index: 20; top: 100%; left: 50%; transform: translateX(-50%); width: max-content; max-width: 16rem; margin-top: 0.25rem; padding: 0.5rem 0.75rem; border: 1px solid var(--rand); border-radius: 8px; background: var(--flaeche); color: var(--text); font-size: 0.8125rem; font-weight: 400; text-align: left; }
.karte .bald-overlay-text { left: 0; transform: none; }
.bald-overlay-text p { margin: 0; }
/* PB-8230: Menü hinter drei Strichen oben rechts an jedem Mini Tool (details, ohne Skript; öffnet nach oben, die Leiste steht unten) */
.db-werkzeug { position: relative; }
.db-mt-menue { position: absolute; top: -0.35rem; right: -0.35rem; }
.db-mt-menue > summary { display: block; padding: 0.3rem 0.2rem; list-style: none; cursor: pointer; color: var(--text-leise); border-radius: 4px; }
.db-mt-menue > summary::-webkit-details-marker { display: none; }
.db-mt-menue > summary:hover, .db-mt-menue[open] > summary { color: var(--akzent); }
.db-mt-menue > summary:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.db-mt-striche, .db-mt-striche::before, .db-mt-striche::after { display: block; width: 0.75rem; height: 2px; background: currentColor; border-radius: 1px; }
.db-mt-striche { position: relative; margin: 4px 0; }
.db-mt-striche::before, .db-mt-striche::after { content: ""; position: absolute; left: 0; }
.db-mt-striche::before { top: -4px; }
.db-mt-striche::after { top: 4px; }
.db-mt-liste { position: absolute; z-index: 21; bottom: 100%; right: 0; width: max-content; max-width: 16rem; margin: 0 0 0.25rem; padding: 0.35rem 0; list-style: none; border: 1px solid var(--rand); border-radius: 8px; background: var(--flaeche); color: var(--text); font-size: 0.8125rem; font-weight: 400; text-align: left; }
.db-mt-liste a, .db-mt-aus { display: block; padding: 0.3rem 0.75rem; color: inherit; }
.db-mt-liste a:hover, .db-mt-liste a:focus-visible { color: var(--akzent); }
.db-mt-aus { color: var(--text-leise); cursor: default; }
.db-mt-unter { display: block; font-size: 0.75rem; }
.db-links .agent-chat-eingabe textarea { width: 100%; box-sizing: border-box; } /* PB-8501: Host-Chat links nutzt den Baustein agent_chat */
.db-links .db-agent { position: static; max-height: none; }

/* PB-5402: Homepage-Builder, Grundgerüst (templates/builder.php). Vorsilbe bd-. Chat links 270 px, Vorschau rechts; schmal untereinander.
   Nur Farben und Schriftstufen aus basis.css, hell und dunkel über die Variablen allein, keine Bewegung. */
.bd { display: flex; flex-direction: column; gap: var(--raum-3); }
.bd p, .bd ul, .bd h1, .bd h2 { margin: 0; }
/* PB-5197: eine Werkzeugzeile unter dem gemeinsamen Kopfbalken (PB-8215g: unter dem Seitenkopf) */
.bd-werkzeugzeile { display: flex; flex-direction: column; gap: var(--raum-2); padding: var(--raum-2) var(--raum-3); background: var(--flaeche-leise); border: 1px solid var(--rand); border-radius: var(--radius); }
.bd-zeile, .bd-unten { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) var(--raum-3); }
.bd .bd-hilfe { margin-left: auto; }
main:has(> .bd) { max-width: none; padding-left: var(--raum-5); padding-right: var(--raum-5); }
.bd .bd-werkzeuge { margin-left: auto; }
.bd-lst-jetzt { font-weight: 400; }
/* PB-5197b: Werkzeuge als Knöpfe; nicht verfügbare sind blass und ohne Hover, Aussage im title */
.bd-werkzeugzeile .knopf { display: inline-flex; align-items: center; min-height: 2rem; text-decoration: none; }
.bd-knopf-aus { opacity: .6; cursor: default; }
.bd-knopf-an { font-weight: 700; border-color: var(--akzent); background: var(--akzent-leise); }
.bd-skills > summary { cursor: pointer; list-style: none; }
.bd-skills .knopf { gap: var(--raum-1, .25rem); } /* PB-5197c: Abstand zwischen ☰ und Wort (inline-flex schluckt das Leerzeichen) */
.bd-inhalte { padding: var(--raum-2); border-left: 3px solid var(--rand); }
.bd-inhalte h3 { font-size: var(--schrift-s); margin: 0 0 var(--raum-1, .25rem); }
.bd:is(.bd-hp, .ab, .nl-bd) > .seitenkopf { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* PB-9742: h1 nur für Vorleser (Bild 4 ohne Seitentitel); PB-9757: nur in den Buildern selbst (Homepage, App, Newsletter), die Unterseiten zeigen Titel und Rückweg */
.bd > .seitenkopf:focus-within { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; } /* PB-10254 (WCAG 2.4.7): ein Link im verborgenen Kopf wird beim Fokus sichtbar */
.bd-werkzeuge { display: flex; flex-wrap: wrap; gap: var(--raum-2); padding: 0; list-style: none; }
.bd-punkt { display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.35rem; border-radius: 999px; background: var(--st-aus); }
.bd-strahl { display: inline-block; width: 4rem; height: 0.3rem; margin-right: 0.35rem; border-radius: 999px; background: var(--rand); vertical-align: middle; }
.bd-werkzeugzeile .leise { font-size: var(--schrift-s); }
.bd-flaeche { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: var(--raum-3); align-items: start; }
.bd-chat, .bd-vorschau { display: flex; flex-direction: column; gap: var(--raum-2); padding: var(--raum-3); background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
.bd-vorschau-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--raum-2); }
.bd-geraete { display: flex; flex-wrap: wrap; gap: var(--raum-2); }
.bd-bild { display: flex; flex-direction: column; justify-content: center; gap: var(--raum-2); min-height: 24rem; margin: 0 auto; padding: var(--raum-3); width: 100%; border: 1px dashed var(--rand); border-radius: var(--radius); text-align: center; }
.bd-bild-tablet { max-width: 48rem; }
.bd-bild-handy { max-width: 24rem; }
.bd-bild-titel { font-weight: 700; }
@media (max-width: 60rem) {
    .bd-flaeche { grid-template-columns: minmax(0, 1fr); }
    .bd .bd-werkzeuge { margin-left: 0; }
}

.bd-sperre { margin: 0 0 .75rem; padding: .5rem .75rem; border: 1px solid currentColor; border-radius: .25rem; font-weight: 600; }
.bd-schritt { margin: 0 0 .75rem; padding: .5rem .75rem; border: 1px solid var(--rand, currentColor); border-radius: .25rem; }

/* PB-5403: Chat = Projekt-Agent. Verlauf scrollt in der Spalte; "denkt nach …" mit pulsierendem Punkt (nur ohne Wunsch nach weniger Bewegung). */
.bd-chat-verlauf { display: flex; flex-direction: column; gap: var(--raum-2); margin: 0; padding: 0; list-style: none; max-height: 32rem; overflow-y: auto; }
.bd-denkt { padding: var(--raum-2); border: 1px solid var(--rand); border-radius: var(--radius); }
.bd-denkt p { margin: 0; font-weight: 600; }
.bd-denkt-punkt { display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.35rem; border-radius: 999px; background: var(--st-arbeit); }
.bd-schritte { margin: var(--raum-2) 0 0; padding-left: 1.25rem; font-size: var(--schrift-s); }
@media (prefers-reduced-motion: no-preference) {
    .bd-denkt-punkt { animation: bd-pulsieren 1.2s ease-in-out infinite; }
    @keyframes bd-pulsieren { 50% { opacity: 0.3; } }
}
/* PB-5407: Frame-Auswahl. Die Farben sind die der fünf Frames (frame.php, Felder bg, ink, accent); Platzhalter statt Logo und Bilder. */
.bd-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--raum-3); padding: 0; list-style: none; }
.bd-frame { display: flex; flex-direction: column; gap: var(--raum-2); padding: var(--raum-3); background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
.bd-frame-gewaehlt { border-width: 3px; }
.bd-fr { display: flex; flex-direction: column; gap: .4rem; padding: .75rem; min-height: 9rem; border: 1px solid #8884; }
.bd-fr-logo { font-size: .75rem; opacity: .7; }
.bd-fr-titel { font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }
.bd-fr-bild { display: block; height: 2.5rem; background: currentColor; opacity: .15; }
.bd-fr-zeile { display: block; height: .35rem; background: currentColor; opacity: .35; }
.bd-fr-kurz { width: 60%; }
.bd-fr-klassisch { background: #fcfcfa; color: #17212f; border-radius: .25rem; }
.bd-fr-klassisch .bd-fr-titel { color: #1f4b85; font-family: Georgia, serif; }
.bd-fr-modern { background: #0e1217; color: #e6ebf1; border-radius: .5rem; }
.bd-fr-modern .bd-fr-titel { color: #5cc8ff; }
.bd-fr-sachlich { background: #f6f7f8; color: #1b1f24; border-radius: 0; }
.bd-fr-sachlich .bd-fr-titel { color: #00646e; }
.bd-fr-verspielt { background: #fffaf3; color: #2a1f3d; border-radius: 1.25rem; }
.bd-fr-verspielt .bd-fr-titel { color: #6a35b0; }
.bd-fr-warm { background: #fbf7f4; color: #301d10; border-radius: .5rem; }
.bd-fr-warm .bd-fr-titel { color: #a34a21; font-family: Georgia, serif; }

/* PB-5408: Abschnitte in der Vorschau mit Zeigen und Selbst ändern; Bezug über der Eingabe. */
.bd-abschnitte { display: flex; flex-direction: column; gap: var(--raum-1, 0.25rem); margin: 0; padding: 0; list-style: none; text-align: left; }
.bd-abschnitte-seite { margin-top: var(--raum-2); font-weight: 700; }
.bd-abschnitt { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--raum-2); padding: var(--raum-2); border: 1px solid var(--rand); border-radius: var(--radius); }
.bd-abschnitt:target { outline: 2px solid currentColor; }
.bd-abschnitt-name { flex: 1 1 12rem; }
/* PB-8507: Schloss am gesperrten Abschnitt; Hinweis nur beim Darüberfahren oder mit Fokus, sonst nur für Vorleser (wie .nur-leser) */
.bd-schloss { position: relative; cursor: help; }
.bd-schloss-hinweis { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bd-schloss:hover .bd-schloss-hinweis, .bd-schloss:focus .bd-schloss-hinweis { left: 0; top: 100%; z-index: 1; width: auto; height: auto; overflow: visible; clip: auto; padding: var(--raum-1, 0.25rem) var(--raum-2); background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
.bd-bezug { margin: 0; padding: var(--raum-2); border-left: 3px solid var(--st-offen); }
/* PB-9742 (Bild 4, ENDSTAND 9): das Schloss steht klein oben rechts am Abschnitt, der Hinweis klappt nach links auf */
.bd-abschnitt { position: relative; }
.bd-abschnitt .bd-schloss { position: absolute; top: var(--raum-1, .25rem); right: var(--raum-1, .25rem); display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--rand); border-radius: 999px; background: var(--flaeche); color: var(--text-leise); }
.bd-abschnitt .bd-schloss .sym { width: 1rem; height: 1rem; }
.bd-abschnitt .bd-schloss:hover .bd-schloss-hinweis, .bd-abschnitt .bd-schloss:focus .bd-schloss-hinweis { left: auto; right: 0; white-space: nowrap; color: var(--text); }
.bd-abschnitt:has(.bd-schloss) { padding-right: 2.5rem; }

/* PB-5404: Leitstrahl über dem Chat, einklappbar; eingeklappt nur Titel, Prozent, Balken. Knopf "abschließen" klein und eckig. */
.bd-lst { padding: var(--raum-2); border: 1px solid var(--rand); border-radius: var(--radius); font-size: var(--schrift-s); }
.bd-lst > summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); cursor: pointer; font-weight: 600; }
.bd-lst-balken { flex: 1 1 4rem; height: 0.4rem; }
.bd-lst-schritte { margin: var(--raum-2) 0 0; padding-left: 1.25rem; }
.bd-lst-zeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--raum-1, 0.25rem) var(--raum-2); }
.bd-lst-stand { color: var(--text-leise, inherit); white-space: nowrap; }
.bd-lst-name { flex: 1 1 auto; min-width: 0; }
.bd-lst-laufend > .bd-lst-zeile .bd-lst-name { font-weight: 700; }
.bd-lst-erledigt > .bd-lst-zeile .bd-lst-name::before { content: "✓ "; color: var(--st-gut); font-weight: 700; } /* PB-8232: Haken statt Durchstreichen */
.bd-lst-form { display: inline; margin: 0 0 0 auto; }
.bd-lst-knopf { padding: 0.1rem 0.5rem; border: 1px solid currentColor; border-radius: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.bd-lst-unter { margin: var(--raum-1, 0.25rem) 0 0; padding-left: 1.25rem; list-style: disc; }
.bd-lst-meldung { margin: var(--raum-2) 0 0; }
/* PB-5426: Handy (375 px). Die Sprungleiste gibt es nur schmal; Vorschau zuerst (ansehen), darunter der Chat (kleine Änderungen).
   Bedienflächen mindestens 44 px hoch, Eingabefelder 16 px (kein Zoom), nichts läuft seitlich über. Ohne Skript. */
.bd-sprung { display: none; }
@media (max-width: 30rem) {
    .bd-werkzeugzeile { padding: var(--raum-2); }
    .bd-zeile { gap: var(--raum-2); }
    .bd-unten, .bd-werkzeuge { gap: var(--raum-2); }
    .bd-budget { display: none; }
    .bd-werkzeugzeile .knopf { padding: 0 var(--raum-2); font-size: var(--schrift-s); min-height: 2.25rem; }
    .bd-gestaltung { display: flex; flex-wrap: wrap; gap: var(--raum-2); }
    .bd .bd-hilfe { margin-left: 0; }
    .bd-sprung { display: flex; gap: var(--raum-2); }
    .bd-sprung a, .bd-geraete a, .bd-geraete .reiter-aktiv, .bd-zurueck { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 var(--raum-3); }
    .bd-sprung a { flex: 1; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); color: var(--text); text-decoration: none; font-weight: 600; }
    .bd-geraete { width: 100%; }
    .bd-geraete .bd-geraet { flex: 1 1 auto; justify-content: center; }
    .bd-flaeche { display: flex; flex-direction: column; }
    /* PB-9294 (ENT-97): kein order mehr, das Gespräch steht am Handy über der Vorschau (Reihenfolge des HTML) */
    .bd-chat, .bd-vorschau { padding: var(--raum-2); min-width: 0; overflow-wrap: anywhere; }
    .bd-bild { min-height: 12rem; max-width: 100%; }
    .bd-chat-verlauf { max-height: 24rem; }
    .bd-chat input, .bd-chat textarea, .bd-chat select { font-size: 1rem; max-width: 100%; box-sizing: border-box; }
    .bd-chat button, .bd-chat input[type="submit"], .bd-chat input[type="file"] { min-height: 2.75rem; }
}
.bd-schnell { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin: var(--raum-2) 0; padding: 0; list-style: none; }
.bd-schnell form { margin: 0; }

/* PB-4202: schattiertes Skelett neben der Karte der Datenerhebung; Unbeantwortetes grau und gestrichelt. Nur Variablen aus basis.css. */
.bd-erh-zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: var(--raum-3); align-items: start; }
.bd-skelett { display: flex; flex-direction: column; gap: var(--raum-2); padding: var(--raum-3); background: var(--flaeche-leise); border: 1px solid var(--rand); border-radius: var(--radius); }
.bd-skelett h2, .bd-skelett h3 { margin: 0; font-size: var(--schrift-s); }
.bd-skel-block { padding: var(--raum-2); background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
.bd-skel-block ul { margin: 0; padding-left: var(--raum-3); }
.bd-skel-offen { border-style: dashed; opacity: .7; }
.bd-bild > .bd-skelett { align-self: stretch; text-align: left; } /* PB-9758: in der leeren Vorschau links wie in der Datenerhebung, nicht mittig */
.bd-live-rahmen { display: block; width: 100%; height: 70vh; min-height: 24rem; border: 1px solid var(--rand); background: var(--bg); } /* PB-9760: die Seite in der Vorschau, Breite aus .bd-bild-<gerät> */
@media (max-width: 60rem) { .bd-erh-zeile { grid-template-columns: minmax(0, 1fr); } }
.erh-knoepfe { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin-top: var(--raum-2); } /* PB-4202c: Wahlknöpfe nebeneinander, schmal darunter */
.erh-knoepfe form { margin: 0; }
.bd-erh-antworten { margin-top: var(--raum-3); display: flex; flex-direction: column; gap: var(--raum-2); }
.bd-erh-antworten h2 { margin: 0; font-size: var(--schrift-s); }
.bd-erh-antwort { display: flex; flex-direction: column; gap: var(--raum-1, .25rem); padding: var(--raum-2); background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
/* PB-9743: Haken-Liste der bisherigen Seite: Kästchen links neben der Beschriftung, Text und Rechte-Haken eingerückt darunter */
.alt-gruppe { margin: 0 0 var(--raum-3); padding: var(--raum-2) var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); }
.alt-eintrag { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--raum-1, .25rem) var(--raum-2); align-items: start; margin: var(--raum-1, .25rem) 0; }
.alt-eintrag > input[type="checkbox"], .alt-eintrag .haken input[type="checkbox"] { width: auto; margin: .2rem 0 0; }
.alt-eintrag > details, .alt-eintrag > .haken { grid-column: 2; }
.alt-eintrag .haken { display: flex; gap: var(--raum-2); align-items: start; }
.alt-text { white-space: pre-line; }

/* PB-4202d: Schnellantworten im schmalen Chat gleich breit und gleich hoch, Budget als kleine Karte, Zurück als Knopf */
.bd-schnell { flex-direction: column; align-items: stretch; }
.bd-schnell .knopf { width: 100%; min-height: 2.75rem; text-align: left; }
.bd-budget { display: inline-flex; align-items: center; gap: var(--raum-2); margin: 0; padding: 0.25rem var(--raum-2); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.bd-erhebung a.knopf { text-decoration: none; }

/* PB-4202e: Erhebungsantworten auch schmal gleich breit; Budget-Beschriftung bricht nicht um */
.erh-knoepfe { flex-direction: column; align-items: stretch; }
.erh-knoepfe .knopf { width: 100%; }
.bd-budget-name { white-space: nowrap; }

/* PB-9742 (Bild 4): Werkzeugzeile im Kopf der Vorschau. Links die Geräte als Symbolgruppe (das gewählte mit Wort) und der Stand,
   rechts Rückgängig und Neu laden als Symbol, Zum Projekt und Veröffentlichen (blau). Die Vorschau liegt auf einem Punktraster.
   Was Bild 4 nicht zeigt (Fähigkeiten, Postfach, Sätze zu Budget, Hilfe, Verlauf), steht unter „Mehr“ am Ende der Chat-Spalte. */
.bd-vorschau-kopf { align-items: center; justify-content: flex-start; padding-bottom: var(--raum-2); border-bottom: 1px solid var(--rand); }
.bd-geraete { display: inline-flex; gap: 2px; padding: 2px; background: var(--flaeche-leise); border: 1px solid var(--rand); border-radius: var(--radius); }
.bd-geraet { display: inline-flex; align-items: center; gap: var(--raum-1, .25rem); white-space: nowrap; min-height: 2rem; padding: 0 var(--raum-2); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.bd-geraet.bd-knopf-an { background: var(--flaeche); border: 1px solid var(--rand); font-weight: 600; }
.bd-stand { font-size: var(--schrift-s); }
.bd-vorschau-kopf .bd-werkzeuge { margin-left: auto; align-items: center; }
.bd-vorschau-kopf .knopf { display: inline-flex; align-items: center; min-height: 2.25rem; text-decoration: none; }
.bd-symbolknopf { justify-content: center; min-width: 2.25rem; padding: 0; }
.bd-werkzeuge form { margin: 0; }
.bd-bild { border: 0; background-color: var(--flaeche-leise); background-image: radial-gradient(var(--rand) 1px, transparent 1px); background-size: 16px 16px; }
.bd-chat-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--raum-2); align-items: center; }
.bd-chat-kopf h2 { font-size: var(--schrift-m, 1rem); }
.bd-chat-kopf p { grid-column: 2; font-size: var(--schrift-s); }
.bd-chat-sym { color: var(--akzent); }
.bd-mehr { margin-top: var(--raum-2); padding-top: var(--raum-2); border-top: 1px solid var(--rand); font-size: var(--schrift-s); }
.bd-mehr > summary { cursor: pointer; font-weight: 600; }
.bd-mehr[open] > summary { margin-bottom: var(--raum-2); }
.bd-gestaltung { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin: var(--raum-2) 0; }
.bd-saetze { display: flex; flex-direction: column; gap: var(--raum-1, .25rem); margin: 0; padding: 0; list-style: none; }
@media (max-width: 30rem) {
    .bd-vorschau-kopf .bd-werkzeuge { margin-left: 0; }
    .bd-geraet { min-height: 2.75rem; }
    .bd-vorschau-kopf .knopf { min-height: 2.75rem; }
    .bd-symbolknopf { min-width: 2.75rem; }
}
/* PB-8213a: Baustein-Kasten (templates/builder_bausteine.php); blättert nie, die Gruppen stehen untereinander */
.bd-kasten-suche { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); margin-bottom: var(--raum-3); }
.bd-kasten-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--raum-2); padding: 0; list-style: none; }
.bd-baustein { display: flex; flex-direction: column; gap: var(--raum-2); padding: var(--raum-3); background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
.bd-baustein-name { font-weight: 600; }
.bd-baustein-grau { opacity: 0.6; }
.bd-kasten-auf > summary { cursor: pointer; list-style: none; }
.bd-kasten-auf > summary h3 { display: inline; margin: 0; font-size: var(--schrift-m, 1rem); }
.bd-kasten-auf[open] > summary { margin-bottom: var(--raum-2); }
/* PB-9742 Schritt 3 (ENDSTAND 9, G-6): der Kasten blättert am Rechner nie. Kacheln klein, Suche in einer Zeile, Gruppen eng. */
.bd-kasten { gap: var(--raum-2); }
.bd-kasten-suche { flex-wrap: nowrap; margin-bottom: 0; }
.bd-kasten-suche input { flex: 1 1 auto; min-width: 0; }
.bd-kasten-suche label { white-space: nowrap; }
.bd-kasten-gruppe h2 { margin: 0 0 var(--raum-1, .25rem); font-size: var(--schrift-s); text-transform: uppercase; letter-spacing: .04em; color: var(--text-leise); }
.bd-kasten-liste { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: var(--raum-1, .25rem) var(--raum-2); margin: 0; }
.bd-baustein { gap: var(--raum-1, .25rem); padding: var(--raum-2); font-size: var(--schrift-s); }
.bd-baustein .knopf { min-height: 1.75rem; padding: 0 var(--raum-2); font-size: var(--schrift-s); }
@media (max-width: 30rem) {
    .bd-kasten-suche { flex-wrap: wrap; }
    .bd-baustein .knopf { min-height: 2.75rem; }
}

/* PB-8232 (ENDSTAND 9, E-61): Leitstrahl-Karte mit zweispaltigen Schritten, Bezug-Chip, Erledigt mit Haken, Marke „gerade geändert“ */
.bd-lst-unter-titel { font-weight: 400; color: var(--text-leise, inherit); }
.bd-lst-schritte { columns: 2; column-gap: var(--raum-3, 1rem); }
.bd-lst-s { break-inside: avoid; }
@media (max-width: 40rem) { .bd-lst-schritte { columns: 1; } }
.bd-bezug-chip { display: inline-block; margin: 0 0 var(--raum-1, 0.25rem); padding: 0.1rem var(--raum-2); border: 1px solid var(--rand); border-radius: 999px; font-size: var(--schrift-s); }
.bd-erledigt { margin: var(--raum-2) 0 0; padding: 0; list-style: none; font-size: var(--schrift-s); }
.bd-erledigt li::before { content: "✓ "; color: var(--st-gut); font-weight: 700; }
.bd-abschnitt-neu { border-color: var(--st-gut); border-width: 2px; }
.bd-geaendert { padding: 0 var(--raum-1, 0.25rem); border: 1px solid var(--st-gut); border-radius: var(--radius); font-size: var(--schrift-s); }
/* PB-9762 Schritt 4a (Bild 6): Kopf des Chats „Ihr Architekt“, Unterzeile darunter, Zustand rechts mit Punkt (Farbe nie allein, das Wort steht da) */
.ab-chat-kopf { grid-template-columns: auto minmax(0, 1fr) auto; }
.ab-chat-kopf h2 { grid-column: 2; grid-row: 1; margin: 0; }
.ab-chat-kopf .ab-chat-unterzeile { grid-column: 2; grid-row: 2; margin: 0; }
.ab-chat-kopf .ab-chat-zustand { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; gap: var(--raum-1, 0.25rem); margin: 0; color: var(--text-leise, inherit); white-space: nowrap; }
.ab-cz-punkt { width: 6px; height: 6px; border-radius: 50%; background: var(--text-leise); }
.ab-cz-bereit .ab-cz-punkt, .ab-cz-schreibt .ab-cz-punkt { background: var(--ok); }
.ab-cz-gestoert .ab-cz-punkt { background: var(--fehler); }
@media (min-width: 60.0625rem) { .bd-hp .bd-flaeche { grid-template-columns: 360px minmax(0, 1fr); } } /* PB-9742 6a (Bild 4): Gespräch links 360 px */
.bd-hp .bd-schnell { flex-direction: row; flex-wrap: wrap; } /* PB-9742 6a (Bild 4): schnelle Antworten als Reihe kleiner Knöpfe wie im App-Builder */
.bd-hp .bd-schnell .knopf { width: auto; }
/* K6 (Soll-Ist Bild 4/6/10): Leitstrahl ab Werk offen und kompakt. Stand als Kreis vor dem Namen (offen leer, laufend mit Punkt, erledigt
   gefüllt mit Haken); das Wort des Stands bleibt für Vorleser im Text. */
.bd-lst-schritte { list-style: none; padding-left: 0; }
.bd-lst-s { margin: 0 0 var(--raum-1); }
.bd-lst-stand { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bd-lst-name { display: inline-flex; align-items: center; gap: var(--raum-2); }
.bd-lst-s > .bd-lst-zeile .bd-lst-name::before { content: ""; flex: none; box-sizing: border-box; width: 1rem; height: 1rem; border: 1px solid var(--rand); border-radius: 50%; background: var(--flaeche, transparent); color: var(--akzent-text); font-size: 0.75rem; line-height: 0.875rem; text-align: center; }
.bd-lst-laufend > .bd-lst-zeile .bd-lst-name::before { border-color: var(--akzent); background: radial-gradient(circle, var(--akzent) 0 30%, var(--flaeche) 34%); }
.bd-lst-erledigt > .bd-lst-zeile .bd-lst-name::before { content: "✓"; border-color: var(--akzent); background: var(--akzent); color: var(--akzent-text); font-weight: 700; }
.bd-lst-laufend > .bd-lst-zeile .bd-lst-name { color: var(--akzent); font-weight: 400; }
.bd-lst-unter { padding-left: var(--raum-6); list-style: none; color: var(--text-leise, inherit); }
.bd-lst-hinweis { margin: var(--raum-1) 0 0 var(--raum-5); font-size: var(--schrift-s); }
/* K5 (Soll-Ist Bild 4/6/10): Chat-Spalte kompakt. Blasen ohne Kopfzeile (Name und Zeit bleiben für Vorleser), Ihre rechts in Akzent,
   die des Architekten links auf leiser Fläche; die Eingabe ist eine Zeile mit Pfeil, der Anhang klappt darunter auf. */
.bd-chat .gs-blase { padding: var(--raum-2) var(--raum-3); border: 0; font-size: var(--schrift-s); line-height: 1.45; }
.bd-chat .gs-eigene { background: var(--akzent); color: var(--akzent-text); }
.bd-chat .gs-team { background: var(--flaeche-leise); }
.bd-chat .gs-kopf { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bd-chat .gs-eigene .leise { color: inherit; }
.bd-chat .bd-bezug-chip { align-self: flex-end; margin: 0; }
.bd-chat .gs-eingabe { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--raum-2); margin-top: auto; padding: var(--raum-1) var(--raum-1) var(--raum-1) var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.bd-chat .gs-eingabe > .bd-bezug, .bd-chat .gs-eingabe > .bd-datei[open] { grid-column: 1 / -1; }
.bd-chat .gs-eingabe > .bd-datei[open] { order: 9; } /* PB-10222: zu steht die Büroklammer vor dem Pfeil, offen klappt der Anhang unter der Zeile auf */
.bd-chat .gs-eingabe > .bd-datei:not([open]) { margin: 0; }
.bd-chat .bd-datei > summary { display: inline-flex; align-items: center; list-style: none; }
.bd-chat .bd-datei > summary::-webkit-details-marker { display: none; }
.bd-chat .bd-eingabe-text { margin: 0; }
.bd-chat .bd-eingabe-text label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bd-chat .bd-eingabe-text textarea { display: block; min-height: 2rem; padding: var(--raum-1) 0; border: 0; background: transparent; color: inherit; font: inherit; resize: none; } /* PB-10222: eine Zeile wie Bild 4 */
.bd-chat .bd-eingabe-senden { margin: 0; }
.bd-chat .bd-eingabe-senden button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; min-height: 2rem; padding: 0; border-radius: var(--radius); }
.bd-chat .bd-senden-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bd-chat .bd-datei { margin: 0 0 var(--raum-1); font-size: var(--schrift-s); }
.bd-chat .bd-datei > summary { cursor: pointer; color: var(--text-leise); }
.bd-chat .bd-datei .feld label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 30rem) {
    .bd-chat .bd-eingabe-senden button { width: 2.75rem; min-height: 2.75rem; }
}
.bd-chat .bd-schnell { flex-direction: row; flex-wrap: wrap; } /* K5: schnelle Antworten in jedem Builder als Reihe kleiner, runder Knöpfe */
.bd-chat .bd-schnell .knopf { width: auto; min-height: 2rem; padding: 0 var(--raum-3); border-radius: 999px; font-size: var(--schrift-s); }
@media (max-width: 30rem) { .bd-chat .bd-schnell .knopf { min-height: 2.75rem; } }
/* PB-9990: Knopf „abschließen“ unter dem Text des Schritts. Hinweis, Fragen-Link und Knopf stehen bündig unter dem Namen (Kreis 1rem + Abstand);
   .bd-lst-s > p schlägt .bd p { margin: 0 }, das den Einzug von .bd-lst-hinweis bisher aufhob. */
.bd-lst-s > p, .bd-lst-s > .bd-lst-form { display: block; margin: var(--raum-1) 0 0 var(--raum-5); }
/* PB-9242a (Ricco 09:33–09:35): linke Spalte = Leitstrahl als eine Zeile (zu, Pfeil ▾/▴, ganze Zeile klickbar) + Architekten-Chat über die
   volle Resthöhe; nur der Verlauf scrollt, die Eingabe steht unten. Umbenennen hinter dem Zahnrad im Kopf des Chats. */
.bd-lst > summary { list-style: none; border-radius: var(--radius); }
.bd-lst > summary::-webkit-details-marker { display: none; }
.bd-lst > summary:hover { background: var(--flaeche-leise); }
.bd-lst > summary:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.bd-lst-pfeil { margin-left: auto; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.bd-lst[open] .bd-lst-pfeil { transform: rotate(-135deg); }
.bd-lst:not([open]) > summary { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.bd-lst:not([open]) .bd-lst-unter-titel, .bd-lst:not([open]) .bd-lst-balken { display: none; }
.bd-chat-kopf { position: relative; }
.bd-chat-kopf:has(> .bd-zahnrad) { padding-right: 2.25rem; }
.bd-zahnrad { position: absolute; top: 0; right: 0; }
.bd-zahnrad > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: var(--radius); cursor: pointer; color: var(--text-leise); }
.bd-zahnrad > summary::-webkit-details-marker { display: none; }
.bd-zahnrad > summary:hover, .bd-zahnrad[open] > summary { background: var(--flaeche-leise); }
.bd-zahnrad[open] > form { position: absolute; right: 0; z-index: 5; width: 16rem; padding: var(--raum-2); background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: 0 4px 16px rgb(0 0 0 / 12%); }
@media (min-width: 60.0625rem) {
    .bd-hp .bd-chat { height: calc(100vh - 7rem); position: sticky; top: var(--raum-3); }
    .bd-hp .bd-chat > #gs-bereich { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
    .bd-hp .bd-chat-verlauf { max-height: none; overflow: visible; }
}
/* PB-9242b: Frage der Datenerhebung als Nachricht des Architekten über der Eingabe, ohne eigenen Kasten */
.bd-frage { align-self: stretch; max-width: none; }
.bd-frage .karte { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.bd-frage h2 { font-size: var(--schrift-m); margin: 0 0 var(--raum-2); }
.bd-frage .erh-knoepfe { display: flex; flex-wrap: wrap; gap: var(--raum-2); }
.bd-frage .erh-knoepfe .knopf { width: auto; border-radius: 999px; }
/* PB-10223 (Bild 4, Soll-Ist D): breit stehen Gespräch und Vorschau ohne Kartenrand über die ganze Höhe, durch eine Linie getrennt; der Punktraster
   der Vorschau reicht bis unten, das Skelett liegt darauf als Seiten-Karte. Nur im Page-Builder (.bd-hp), App- und Newsletter-Builder bleiben. */
@media (min-width: 60.0625rem) {
    main:has(> .bd.bd-hp) { padding: 0; }
    main:has(> .bd.bd-hp) > .rueckmeldung-link { margin: 0; padding: var(--raum-2) var(--raum-3); } /* VP: der Rückmelde-Link (Kern) behält seinen Abstand */
    .bd-hp .bd-flaeche { gap: 0; align-items: stretch; min-height: calc(100vh - 3.5rem); }
    .bd-hp .bd-chat { border: 0; border-right: 1px solid var(--rand); border-radius: 0; top: 0; height: calc(100vh - 3.5rem); }
    .bd-hp .bd-vorschau { border: 0; border-radius: 0; padding: 0; gap: 0; background: var(--flaeche-leise); }
    .bd-hp .bd-vorschau-kopf { padding: var(--raum-2) var(--raum-3); background: var(--flaeche); }
    .bd-hp .bd-bild { flex: 1 1 auto; justify-content: flex-start; border-radius: 0; padding: var(--raum-5) var(--raum-5); }
    .bd-hp .bd-bild > .bd-skelett { align-self: center; width: min(100%, 56rem); background: var(--flaeche); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
}
/* PB-10365 (Soll Bild 4): Der Page-Builder füllt das Fenster neben der Leiste. Gespräch links ohne Karte, nur mit Trennlinie,
   Vorschau rechts mit Werkzeugzeile oben und gepunkteter Fläche bis zum unteren Rand. Nur ab breitem Fenster; schmal bleibt alles wie bisher. */
@media (min-width: 60.0625rem) {
    main:has(> .bd.bd-hp) { max-width: none; padding: 0; }
    .bd-hp .bd-flaeche { gap: 0; align-items: stretch; min-height: calc(100vh - 2.6rem - 1px); }
    .bd-hp .bd-chat { height: calc(100vh - 2.6rem - 1px); top: calc(2.6rem + 1px); padding: var(--raum-3); border: 0; border-right: 1px solid var(--rand); border-radius: 0; }
    .bd-hp .bd-vorschau { padding: 0; gap: 0; border: 0; border-radius: 0; background: none; }
    .bd-hp .bd-vorschau-kopf { padding: var(--raum-2) var(--raum-3); background: var(--flaeche); border-bottom: 1px solid var(--rand); }
    .bd-hp .bd-bild { flex: 1 1 auto; min-height: 0; border-radius: 0; }
}

/* PB-9824: Teile des Builders für den Newsletter (aus builder.css gelöst, gleiche Regeln, gleiche Reihenfolge). Besitzer: Kern.
   Eingebunden direkt nach builder.css (src/Stile.php). Vorsilbe nl-. */
/* PB-6105: Vorschau des Newsletters. Der Rahmen zeigt das Mail-HTML von Fast Mail in drei Postfach-Breiten (Klassen nl-breite-*,
   umgeschaltet per Link ohne Skript); daneben die Textfassung. */
.nl-kopf { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; }
.nl-kopf dd { margin: 0; }
.nl-leiste { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.nl-neu-laden { margin: 0 0 var(--raum-4); } /* PB-6112b: Abstand zum Kasten "Bild oder Flyer hinzufügen" (F3/F5) */
.nl-buehne { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; margin: 1rem 0; }
.nl-postfach { flex: 1 1 24rem; min-width: 0; }
.nl-rahmen { display: block; height: 70vh; min-height: 30rem; border: 1px solid var(--rand); border-radius: .5rem; background: var(--flaeche, #fff); margin: 0 auto; }
.nl-breite-handy { width: 375px; max-width: 100%; }
.nl-breite-webmail { width: 640px; max-width: 100%; }
.nl-breite-rechner { width: 100%; }
.nl-text { flex: 0 1 22rem; min-width: 0; }
.nl-textfassung { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 70vh; overflow: auto; font: inherit; }
/* PB-8463: Inhalt selbst schreiben (templates/newsletter_bausteine.php) */
.nl-tp-liste > li { padding-block: .75rem; border-bottom: 1px solid var(--rand); }
.nl-tp-liste input[type="text"], .nl-tp-liste textarea, #nl-tp-kopf input[type="text"], #nl-tp-neu input[type="text"], #nl-tp-neu textarea, .nl-tp-liste select, #nl-tp-neu select { width: 100%; max-width: 40rem; }
.nl-tp-handlungen { display: flex; flex-wrap: wrap; gap: .5rem; }
/* PB-9723 S4 (bild=10): Abschnitte als Karten mit Bildchen je Typ (nur Flächen, kein Bild), feste Fußzeile mit Schloss, „+ Abschnitt“; ohne Skript */
.nl-ab-liste { display: flex; flex-direction: column; gap: var(--raum-2); margin: 0; padding: 0; list-style: none; }
.nl-ab { display: flex; align-items: flex-start; gap: var(--raum-2); padding: var(--raum-2); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--bg); }
.nl-ab-gewaehlt { border: 2px solid var(--akzent); }
.nl-ab-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; font-size: var(--schrift-s); }
.nl-bs-typ { font-weight: 600; font-size: var(--schrift-m, 1rem); }
.nl-ab-kurz { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.nl-ab-wege { display: flex; flex-wrap: wrap; gap: 0 var(--raum-2); }
.nl-ab-bild { flex: none; width: 3rem; height: 2.25rem; border: 1px solid var(--rand); border-radius: calc(var(--radius) / 2); background: var(--flaeche); position: relative; }
.nl-ab-bild::before, .nl-ab-bild::after { content: ""; position: absolute; left: 20%; right: 20%; border-radius: 2px; background: var(--rand); }
.nl-ab-bild-heading::before { top: 42%; height: 18%; }
.nl-ab-bild-text::before { top: 30%; height: 10%; } .nl-ab-bild-text::after { top: 55%; height: 10%; right: 35%; }
.nl-ab-bild-image::before, .nl-ab-bild-pdf::before { inset: 15%; background: var(--akzent-leise); }
.nl-ab-bild-imagetext::before { top: 20%; bottom: 20%; left: 12%; right: 55%; background: var(--akzent-leise); } .nl-ab-bild-imagetext::after { top: 40%; height: 12%; left: 52%; right: 12%; }
.nl-ab-bild-button::before { top: 35%; height: 30%; left: 25%; right: 25%; border-radius: 999px; background: var(--akzent); }
.nl-ab-bild-divider::before { top: 48%; height: 2px; left: 12%; right: 12%; }
.nl-ab-bild-fuss::before { top: auto; bottom: 0; left: 0; right: 0; height: 45%; border-radius: 0 0 calc(var(--radius) / 2) calc(var(--radius) / 2); } .nl-ab-bild-fuss::after { bottom: 18%; height: 10%; left: 30%; right: 30%; background: var(--text-leise); }
.nl-ab-fest { background: var(--flaeche-leise); }
.nl-ab-schloss { flex: none; width: 1rem; height: 1rem; color: var(--text-leise, inherit); }
.nl-ab-neu { margin: 0; padding: var(--raum-2); border: 1px dashed var(--rand); border-radius: var(--radius); text-align: center; }
.nl-ab-neu .sym { width: 1rem; height: 1rem; vertical-align: -.15rem; margin-right: .25rem; }
/* Rahmen um den gewählten Abschnitt über der Mail: die Knöpfe außerhalb des iframe (sandbox bleibt) */
.nl-block { display: flex; flex-direction: column; gap: var(--raum-1, .25rem); padding: var(--raum-2); border: 2px dashed var(--akzent); border-radius: var(--radius); }
.nl-block p { margin: 0; }
.nl-block-gebaut { padding: 0 .5rem; border-radius: 999px; background: var(--akzent); color: var(--akzent-text); font-size: var(--schrift-s); }
.nl-block-wege { display: flex; flex-wrap: wrap; gap: var(--raum-2); }
.nl-bd .bd-chat .bd-lst-schritte { columns: 1; } /* PB-8464: in der schmalen Chat-Spalte des Builders untereinander, sonst überdeckt „Abschließen“ den nächsten Schritt */
/* PB-8526: Erhebung zuklappbar (details/summary, ohne Skript); der Titel bleibt eine Überschrift, daneben der Stand */
.nl-eh > summary { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: var(--raum-2); cursor: pointer; }
.nl-eh > summary > .leise { grid-column: 2; }
.nl-eh > summary h2 { margin: 0; }
.nl-eh > summary::before { content: "▸"; color: var(--text-leise, inherit); } /* grid blendet das eigene Dreieck aus: sichtbar, dass es sich aufklappen lässt */
.nl-eh[open] > summary::before { content: "▾"; }
/* PB-9723 S3 (bild=10): Newsletter in drei Spalten (Leitstrahl und Chat | Mail | Abschnitte), Zeile „An:“ mit Testmodus, Mail-Kopf; schmaler: Abschnitte unter der Mail */
.nl-bd .bd-flaeche { grid-template-columns: 280px minmax(0, 1fr) 220px; }
.nl-abschnitte { display: flex; flex-direction: column; gap: var(--raum-2); padding: var(--raum-3); background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); min-width: 0; overflow-wrap: anywhere; }
.nl-abschnitte h2 { margin: 0; font-size: var(--schrift-s); text-transform: uppercase; letter-spacing: .05em; }
.nl-bd .nl-wz-rechts { margin-left: auto; }
.nl-verlauf { display: contents; } /* PB-9723 S5: Rückgängig/Wiederholen stehen wie die anderen Knöpfe in der Zeile */
.nl-verlauf .knopf[disabled] { opacity: .5; cursor: not-allowed; }
.nl-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--raum-2); }
.nl-zeile p { margin: 0; }
.nl-testmodus { padding: .2rem .75rem; border: 1px solid var(--rand); border-radius: 999px; background: var(--flaeche-leise, var(--flaeche)); font-size: var(--schrift-s); }
.nl-mailkopf { display: grid; grid-template-columns: fit-content(40%) minmax(0, 1fr); gap: var(--raum-1, .25rem) var(--raum-3); margin: 0; padding: var(--raum-2); border: 1px solid var(--rand); border-radius: var(--radius); }
.nl-mailkopf > div { display: contents; }
.nl-mailkopf dt { color: var(--text-leise, inherit); font-size: var(--schrift-s); }
.nl-mailkopf dd { margin: 0; font-weight: 600; }
.nl-mailkopf dd a { margin-left: var(--raum-2); font-weight: 400; font-size: var(--schrift-s); }
@media (max-width: 75rem) {
    .nl-bd .bd-flaeche { grid-template-columns: 270px minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .nl-bd .bd-chat { grid-row: 1 / span 2; } /* sonst stehen die Abschnitte erst unter der langen linken Spalte */
    .nl-abschnitte { grid-column: 2; }
}
@media (max-width: 60rem) {
    .nl-bd .bd-flaeche { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .nl-abschnitte { grid-column: auto; }
    .nl-bd .bd-chat { grid-row: auto; }
    .nl-bd .nl-wz-rechts { margin-left: 0; }
}
@media (max-width: 30rem) {
    .nl-abschnitte { order: -1; padding: var(--raum-2); }
}
/* PB-9724a (bild=10): Chat im Fastmail-Builder. Kopf mit Symbol, Titel, Unterzeile und Zustand rechts (Punkt nie ohne Wort); Blasen aus gespraech.css */
.nl-chat-kopf { grid-template-columns: auto minmax(0, 1fr) auto; margin-bottom: var(--raum-2); }
.nl-chat-kopf h2 { grid-column: 2; grid-row: 1; margin: 0; }
.nl-chat-kopf .nl-chat-unterzeile { grid-column: 2; grid-row: 2; margin: 0; }
.nl-chat-kopf .nl-chat-zustand { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; gap: var(--raum-1, 0.25rem); margin: 0; color: var(--text-leise, inherit); white-space: nowrap; }
.nl-cz-punkt { width: 6px; height: 6px; border-radius: 50%; background: var(--text-leise); }
.nl-cz-bereit .nl-cz-punkt, .nl-cz-schreibt .nl-cz-punkt { background: var(--ok); }
.nl-chat .bd-chat-verlauf { margin-bottom: var(--raum-2); }
#nl-chat { scroll-margin-top: 5rem; } /* PB-9932b: Sprung auf den Chat (#nl-chat) landet mit der Kopfzeile unter der festen Leiste, nicht dahinter */
.nl-chat .bd-bezug-chip { display: table; margin-left: auto; border-color: var(--akzent); background: var(--flaeche); color: var(--akzent); } /* bild=10: Chip in Akzent, rechts über dem Text */
.nl-chat .gs-kopf { font-size: var(--schrift-s); }
@media (min-width: 75.0625rem) { .nl-bd .bd-flaeche { grid-template-columns: 340px minmax(0, 1fr) 220px; } } /* bild=10: Chat-Spalte so breit wie im App-Builder */
.nl-chat .bd-schnell { flex-direction: row; } /* PB-9724 Schritt 2 (bild=10): schnelle Antworten als Reihe kleiner Knöpfe, Höhe zum Tippen bleibt */
.nl-chat .bd-schnell .knopf { width: auto; }
/* Soll-Ist bild=10 (29.11.): Symbole in der Werkzeugzeile wie Bild 4, die Mail auf gepunkteter Fläche, Abschnitte ohne Unterstrich */
.nl-bd .bd-werkzeuge .knopf .sym { width: 1rem; height: 1rem; vertical-align: -.15rem; }
.nl-bd .bd-werkzeuge .knopf:not(.bd-symbolknopf) .sym { margin-right: .4rem; }
.nl-sym-vor { transform: scaleX(-1); } /* Wiederholen = Rückgängig gespiegelt, kein eigenes Symbol im Kern */
.nl-bd .bd-vorschau { background-image: radial-gradient(var(--rand) 1px, transparent 1px); background-size: 16px 16px; }
.nl-bs-typ { text-decoration: none; }
.nl-bd .bd-werkzeugzeile .bd-werkzeuge { margin-left: 0; flex: 1; align-items: center; } /* Geräte und Verlauf links, Testmail und Versand rechts (nl-wz-rechts) */
.nl-bd .bd-vorschau-kopf { padding: 0; border: 0; }
.nl-mailkopf { background: var(--bg); }

/* PB-9824: Teile des Builders für den App-Builder (aus builder.css gelöst, gleiche Regeln). Besitzer: AppBase.
   Eingebunden direkt nach builder.css (src/Stile.php). Vorsilbe abs-. */
/* PB-8608: Spalte „Bildschirme der App“ im App-Builder */
.abs { margin: 0 0 var(--raum-3, 1rem); }
.abs-liste { display: flex; flex-direction: column; gap: var(--raum-1, 0.25rem); margin: 0; padding: 0; list-style: none; text-align: left; }
.abs-karte { padding: var(--raum-2); border: 1px solid var(--rand); border-radius: var(--radius); }
.abs-an { border-color: var(--st-gut); border-width: 2px; }
.abs-name { font-weight: 700; }
.abs-zeile { margin: var(--raum-1, 0.25rem) 0 0; font-size: var(--schrift-s); }
/* PB-9762 Micro-Schritt 2 (Bild 6): Werkzeugzeile des App-Builders: Gerät Android · iPhone „bald“ als Umschalter, Stand der App */
.ab-geraete { display: inline-flex; gap: 0; border: 1px solid var(--rand); border-radius: var(--radius); overflow: hidden; }
.ab-geraete .ab-geraet { border: 0; border-radius: 0; }
.ab-geraete .ab-geraet[aria-current="page"] { background: var(--flaeche-leise); font-weight: 600; }
.ab-bald { padding: 0 var(--raum-1); border-radius: 999px; background: var(--flaeche-leise); font-size: var(--schrift-s); }
.ab-stand { margin: 0; align-self: center; }
/* PB-9762 Micro-Schritt 3 (Bild 6): App-Builder mit dem Handy in der Mitte und „Bildschirme der App“ als Spalte rechts; am Handy untereinander */
.ab .bd-vorschau { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem); grid-template-areas: "kopf kopf" "bild liste"; gap: var(--raum-3) var(--raum-5); align-items: start; }
.ab .bd-vorschau > .bd-vorschau-kopf { grid-area: kopf; }
.ab .bd-vorschau > .abs { grid-area: liste; margin: 0; }
.ab .bd-vorschau > .bd-bild { grid-area: bild; }
.ab .bd-vorschau .abs h3 { margin-top: 0; font-size: var(--schrift-s); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-leise, inherit); }
@media (max-width: 60rem) { .ab .bd-vorschau { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kopf" "bild" "liste"; } }
.bd-werkzeuge .ab-leer { align-self: center; max-width: 18rem; font-size: var(--schrift-s); } /* PB-9762: Satz statt Knopf ohne Wirkung */
.ab .bd-schnell { flex-direction: row; } /* PB-9762 4a (Bild 6): schnelle Antworten als Reihe kleiner Knöpfe, Höhe zum Tippen bleibt */
.ab .bd-schnell .knopf { width: auto; }
@media (min-width: 60.0625rem) { .ab .bd-flaeche { grid-template-columns: 340px minmax(0, 1fr); } } /* PB-9762 4a (Bild 6): Chat-Spalte breiter als bei der Homepage */
/* Soll-Ist A2 (Bild 6): auch ohne Vorschau steht ein Handy in der Mitte, darin der Satz mit dem nächsten Schritt (ohne :has nur der Satz) */
.ab .bd-bild:has(> .hr-gross > .hr-leer) { border: 0; }
.ab .hr-gross:has(> .hr-leer) { position: relative; display: flex; flex-direction: column; justify-content: center; gap: var(--raum-2); width: 18.5rem; max-width: 100%; min-height: 34rem; margin: 0 auto; padding: var(--raum-5) var(--raum-4); border: 0.6rem solid var(--text); border-radius: 2.6rem; background: var(--bg); }
.ab .hr-gross:has(> .hr-leer)::before { content: ""; position: absolute; top: 0.75rem; left: 50%; width: 0.7rem; height: 0.7rem; margin-left: -0.35rem; border-radius: 50%; background: var(--text); }
/* Soll-Ist A3 (Bild 6): breit eine Fläche aus zwei Spalten statt zwei Karten; Punktraster über die ganze Vorschau, Werkzeugzeile darauf hell */
@media (min-width: 60.0625rem) {
    .ab .bd-flaeche { gap: 0; align-items: stretch; min-height: 75vh; border: 1px solid var(--rand); border-radius: var(--radius); overflow: hidden; }
    .ab .bd-chat, .ab .bd-vorschau { border: 0; border-radius: 0; }
    .ab .bd-chat { border-right: 1px solid var(--rand); }
    .ab .bd-vorschau { background-color: var(--flaeche-leise); background-image: radial-gradient(var(--rand) 1px, transparent 1px); background-size: 16px 16px; }
    .ab .bd-vorschau > .bd-vorschau-kopf { margin: calc(-1 * var(--raum-3)) calc(-1 * var(--raum-3)) 0; padding: var(--raum-2) var(--raum-3); background: var(--flaeche); }
    .ab .bd-vorschau > .bd-bild { background: none; }
}
.ab .abs-neu .knopf { display: block; border-style: dashed; text-align: center; } /* Soll-Ist A3 (Bild 6): „+ Bildschirm“ gestrichelt wie ein freier Platz */
/* Soll-Ist B4 (gesperrt statt tot): „bald“ auf dem gesperrten blauen Knopf lesbar, Rahmen statt heller Fläche. */
.knopf.primaer .ab-bald { margin-left: var(--raum-1); background: transparent; border: 1px solid currentColor; }

/* PB-8607: App im Handy-Rahmen (Teil handy_rahmen), groß im App-Builder, klein in der Karte „Ihre App“. PB-9922: aus ansicht.css (Kern) hierher */
.hr-handy { text-align: center; }
.hr-geraet { display: inline-block; padding: 0.75rem 0.5rem; border: 1px solid var(--rand); border-radius: 2rem; background: var(--bg); }
.hr-rahmen { display: block; border: 0; border-radius: 1.25rem; background: var(--bg); }
.hr-gross .hr-rahmen { width: 390px; max-width: 100%; height: 70vh; min-height: 32rem; }
.hr-klein .hr-rahmen { width: 195px; max-width: 100%; height: 22rem; }
.hr-zeile { font-weight: 600; }
/* PB-9762 S4b: Solange strom.js eine Antwort zeigt, steht der Schritt in ihrer Blase; das „denkt nach …“ der Seite tritt zurück */
.ab-strom.bz-strom-an .bd-denkt { display: none; }

/* PB-10370 (Soll Bild 15): Shop-Builder, Gerüst. Chat links, Seitenliste, Vorschau mit Werkzeugzeile und gepunkteter Fläche. */
.sb > .seitenkopf { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* wie der Page-Builder: h1 nur für Vorleser */
.sb > .seitenkopf:focus-within { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
.sb-flaeche { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--raum-3); }
.sb-klein { margin: 0 0 var(--raum-2); font-size: var(--schrift-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-leise); }
.sb-seiten { padding: var(--raum-3); background: var(--flaeche); }
.sb-seiten .leise { font-size: var(--schrift-s); }
.sb-werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); padding: var(--raum-2) var(--raum-3); background: var(--flaeche); border-bottom: 1px solid var(--rand); }
.sb-werkzeuge > p, .sb-geraete { margin: 0; display: flex; gap: var(--raum-1); align-items: center; }
.sb-aktionen { margin-left: auto !important; }
.sb-schalter, .sb-geraet { display: inline-flex; align-items: center; min-height: 2rem; padding: 0 var(--raum-2); border: 1px solid var(--rand); border-radius: var(--radius); font-size: var(--schrift-s); color: var(--text); text-decoration: none; }
.sb-geraet-an { background: var(--flaeche-leise); font-weight: 600; }
.sb-treu { font-size: var(--schrift-s); }
.sb-bild { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--raum-2); min-height: 24rem; padding: var(--raum-4); text-align: center;
    background-color: var(--flaeche-leise); background-image: radial-gradient(var(--rand) 1px, transparent 1px); background-size: 16px 16px; }
.sb-bild-titel { margin: 0; font-weight: 600; }
@media (min-width: 60.0625rem) {
    main:has(> .sb) { max-width: none; padding: 0; }
    .sb-flaeche { grid-template-columns: 340px 164px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 2.6rem - 1px); }
    .sb-flaeche > .agent-chat { position: sticky; top: calc(2.6rem + 1px); height: calc(100vh - 2.6rem - 1px); margin: 0; padding: var(--raum-3); border: 0; border-right: 1px solid var(--rand); border-radius: 0; }
    .sb-seiten { border-right: 1px solid var(--rand); }
    .sb-vorschau { display: flex; flex-direction: column; }
    .sb-bild { flex: 1 1 auto; }
}
/* PB-10373 (Soll Bild 15, Ergänzung 1, SH-7): Handy. Gerätewahl als ein Schalter, die Vorschau im Gerät-Rahmen oben mittig in der Fläche. */
.sb-geraete { gap: 0 !important; }
.sb-geraete .sb-geraet:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.sb-geraete .sb-geraet:last-child { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.sb-geraet:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; position: relative; }
.sb-bild-handy { justify-content: flex-start; }
.sb-handy { display: flex; flex-direction: column; width: min(100%, 20rem); min-height: 40rem; border: 0.4rem solid var(--text); border-radius: 2.25rem; background: var(--bg); overflow: hidden; text-align: left; box-shadow: 0 2px 8px rgb(0 0 0 / 0.15); }
:root[data-theme="dunkel"] .sb-handy { border-color: var(--flaeche); outline: 1px solid var(--rand); } /* dunkel: Gehäuse dunkel wie im Soll, nicht hell aus var(--text) */
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .sb-handy { border-color: var(--flaeche); outline: 1px solid var(--rand); } }
.sb-handy-kopf { margin: 0; padding: var(--raum-3) var(--raum-4) var(--raum-2); font-weight: 700; border-bottom: 1px solid var(--rand); overflow-wrap: anywhere; }
.sb-handy-schirm { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; gap: var(--raum-2); padding: var(--raum-4); text-align: center; }
@media (max-width: 60rem) {
    .sb-bild { min-height: 16rem; padding: var(--raum-3); }
    .sb-handy { min-height: 26rem; }
    .sb-aktionen { margin-left: 0 !important; }
}

/* PB-5109: Effekte des Dashboards nach der Tabelle in docs/produkt/dashboard/02. Alle kurz (höchstens 0,6 s, nur das ruhige Pulsieren
   länger), nichts blinkt hart. Einstellung Bewegung am äußeren .db: db-bewegung-system folgt dem Betriebssystem, db-bewegung-normal
   bewegt immer, db-bewegung-weniger nie. Ohne Skript; ohne diese Datei steht alles an seinem Platz.
   Aufsteigen aus der Leiste („Als Projekt erweitern“) steht unten (PB-5186d). ANNAHME: Wegschrumpfen beim Löschen und Gleiten beim Wechsel der Anordnung
   brauchen Abläufe ohne neues Laden der Seite, die es noch nicht gibt; sie kommen mit diesen Abläufen. Drehen der Rückseite: PB-5140. */

/* Seite lädt: Kacheln fächern aus der Mitte der Werkzeugleiste in ihre Bogenplätze, je 40 ms Versatz, zusammen 450 ms, weich auslaufend.
   Start = Mitte unten (Gegenteil des Platzes aus dashboard.css, PB-5108). Nur Bogen; die anderen Anordnungen stehen sofort. */
@keyframes db-auffaechern {
  from {
    opacity: 0;
    transform: translate(calc(-1 * var(--rk) * sin(var(--w))), calc(var(--luft) + var(--rk) * cos(var(--w)) - var(--r) * cos(var(--halb)))) scale(0.6);
  }
}
@media (min-width: 1100px) {
@supports (bottom: calc(1px * cos(1deg))) {
@container (min-width: 45rem) {
  .db:is(.db-bewegung-normal, .db-bewegung-system) .db-anordnung-bogen > .db-kachel {
    animation: db-auffaechern calc(450ms - (var(--n) - 1) * 40ms) cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 40ms) backwards;
  }
}
}
}

/* Überfahren: die Kachel hebt sich ~4 px nach außen (vom Mittelpunkt des Bogens weg, sonst nach oben), leichter Schatten, 150 ms.
   Die Kachel mit Rückseite (PB-5140) dreht sich stattdessen. */
.db:is(.db-bewegung-normal, .db-bewegung-system) .db-kachel:not(.db-kachel-dreh) a { transition: transform 150ms ease-out, box-shadow 150ms ease-out; }
.db-kachel:not(.db-kachel-dreh) a:is(:hover, :focus-visible) { --heben: 0.25rem; transform: translate(0, calc(-1 * var(--heben))); box-shadow: 0 0.25rem 0.75rem color-mix(in srgb, var(--text) 18%, transparent); }
@supports (bottom: calc(1px * cos(1deg))) {
  .db-kachel:not(.db-kachel-dreh) a:is(:hover, :focus-visible) { transform: translate(calc(var(--heben) * sin(var(--w, 0deg))), calc(-1 * var(--heben) * cos(var(--w, 0deg)))); }
}

/* Kachel wartet (Klasse db-kachel-wartet, PB-5110; nur mit Einstellung Leuchtrand an): Rand pulsiert sanft in Bernstein, Deckkraft 35 % bis 100 %, Takt 2,4 s. */
@keyframes db-pulsieren {
  0%, 100% { border-color: var(--warn-rand); }
  50% { border-color: color-mix(in srgb, var(--warn-rand) 35%, transparent); }
}
.db-kachel-wartet a { border-color: var(--warn-rand); }
.db:is(.db-bewegung-normal, .db-bewegung-system) .db-kachel-wartet a { animation: db-pulsieren 2.4s ease-in-out infinite; }
/* PB-5118 Teil 3 (Farbe nie allein): Der Zustand steht auch als Wort mit Punkt oben rechts, ohne Bewegung und ohne Farbe lesbar. */
.db-kachel-wartemarke { position: absolute; top: var(--raum-1); right: var(--raum-1); padding: 0 var(--raum-1); border: 1px solid var(--warn-text); border-radius: 0.25rem; background: var(--flaeche); color: var(--text); font-size: var(--schrift-xs); line-height: var(--zeile-eng); }

/* Weniger Bewegung: alles sofort an Ort und Stelle, der Rand steht still, beim Überfahren wird nur der Rahmen deutlicher (dashboard.css),
   die Rückseite erscheint ohne Drehung. Gewählt im Konto oder (bei „system“) im Betriebssystem. */
.db-bewegung-weniger .db-kachel, .db-bewegung-weniger .db-kachel a, .db-bewegung-weniger .db-kachel-hinten { animation: none; transition: none; }
.db-bewegung-weniger .db-kachel a:is(:hover, :focus-visible), .db-bewegung-weniger .db-kachel-hinten { transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .db-bewegung-system .db-kachel, .db-bewegung-system .db-kachel a, .db-bewegung-system .db-kachel-hinten { animation: none; transition: none; }
  .db-bewegung-system .db-kachel a:is(:hover, :focus-visible), .db-bewegung-system .db-kachel-hinten { transform: none; box-shadow: none; }
}

/* Verbindungen (PB-5115, Notiz 07): in Ruhe nur kleine Punkte oben rechts an der Kachel, je Verbindung einer. Beim Überfahren (Skript
   dashboard-verbindungen.js) setzt das Skript db-netz-an am .db: Verbundenes bleibt, der Rest wird blass (35 %), feine Bögen leuchten.
   Ohne Skript bleibt die Liste „Verbindungen Ihrer Projekte“ unter den Kacheln. Farbe nie allein: der Text steht für Vorleser an der Kachel. */
.db-kachel-punkte { position: absolute; top: var(--raum-1); right: var(--raum-1); display: flex; gap: 0.125rem; }
.db-punkt { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--akzent); }
.db-netz-an .db-kachel:not(.db-v-verbunden), .db-netz-an .db-werkzeug:not(.db-v-verbunden) { opacity: 0.35; }
.db-netz-bogen { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.db-netz-bogen path { fill: none; stroke: var(--akzent); stroke-width: 1.5; stroke-linecap: round; }
.db:is(.db-bewegung-normal, .db-bewegung-system) .db-kachel, .db:is(.db-bewegung-normal, .db-bewegung-system) .db-werkzeug { transition: opacity 150ms ease-out; }
@media (prefers-reduced-motion: reduce) { .db-bewegung-system .db-kachel, .db-bewegung-system .db-werkzeug { transition: none; } }

/* PB-5186d (Entwurf ALS-PROJEKT-ERWEITERN, Abschnitt 4): Eine neue Kachel aus „Als Projekt erweitern“ (Klasse db-kachel-steigt, vom Server
   nur bei Entwurf mit Werkzeug-Verbindung jünger als ein Tag) steigt in 600 ms von unten aus der Werkzeugleiste auf; danach zeichnet
   dashboard-verbindungen.js einmal die Linie zum Werkzeug nach. Bei weniger Bewegung (Einstellung oder System) steht beides sofort da. */
@keyframes db-aufsteigen {
  from { opacity: 0; transform: translate(0, 4rem) scale(0.4); }
}
@keyframes db-nachzeichnen {
  from { stroke-dashoffset: 1; }
}
.db:is(.db-bewegung-normal, .db-bewegung-system) .db-kachel-steigt > a { animation: db-aufsteigen 600ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.db:is(.db-bewegung-normal, .db-bewegung-system) .db-netz-steig path { stroke-dasharray: 1; animation: db-nachzeichnen 600ms ease-out backwards; }
@media (prefers-reduced-motion: reduce) { .db-bewegung-system .db-kachel-steigt > a, .db-bewegung-system .db-netz-steig path { animation: none; } }

/* PB-5185: Dashboard am Handy (unter 760 px, Vorlage dashboard-handy.png). Alles ohne Skript, nur Farben aus basis.css.
   Reihenfolge der Karten: Host-Chat, Projekte, Leitstrahl-Karte, Wissen; der Assistent steht hinter dem runden Knopf (Adresse #db-assistent). */
@media (max-width: 759px) {
  /* PB-5185b: eine Spalte; die Regel .db-mitte:not(.db-mitte-breit) (3 Spalten, dashboard.css) ist stärker als .db-mitte und überlagerte am Handy die Karten */
  .db .db-mitte:not(.db-mitte-breit), .db .db-mitte-breit { grid-template-columns: minmax(0, 1fr); }
  .db-mitte > .db-projekte { order: 1; }
  .db-mitte > .db-rechts { order: 2; }
  .db-links { display: contents; }
  .db-mitte .db-links > .db-agent { order: 0; } /* Host-Chat oben (Skizzen-Regel „am Handy Chat oben“, soll-aktuell 02.12.); vorher PB-8501 nach der Agent-Karte */
  .db-mitte .db-wissen { order: 4; }
  /* Wischreihe: jede Anordnung wird am Handy zur einen Reihe, die Kachel rastet am linken Rand ein */
  .db-kacheln, .db-kacheln:is(.db-anordnung-bogen, .db-anordnung-raster, .db-anordnung-stapel, .db-anordnung-fokus, .db-anordnung-reihe) {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity;
    scroll-padding-inline: var(--raum-3); padding: var(--raum-2) 0; -webkit-overflow-scrolling: touch;
  }
  .db .db-wisch { display: block; margin: 0 0 var(--raum-2); font-size: 0.8125rem; text-align: right; } /* PB-5192i */
  .db-kacheln > .db-kachel { flex: 0 0 min(66vw, 16rem); width: auto; scroll-snap-align: start; }
  /* Runder Agent-Knopf: nur das Zeichen, der Name bleibt für Vorleser und Sprachsteuerung im Text */
  .db-assistent-knopf {
    justify-content: center; width: 3.5rem; height: 3.5rem; padding: 0; border-radius: 50%; font-size: 0;
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 5.5rem); box-shadow: 0 0.25rem 0.75rem var(--rand);
  }
  .db-assistent-knopf::before { content: "\2726" / ""; font-size: 1.5rem; line-height: 1; }
  .db { padding-bottom: 5rem; } /* PB-9702b (Befund 6): Platz unter dem Inhalt, damit der runde Host-Knopf am Ende nichts verdeckt */
  /* PB-5192i: Werkzeugleiste am Handy nicht mehr festgehalten (sie lag über der KI-Karte und über dem Inhalt), sie steht am Ende */
  .db-leiste { position: static; z-index: 1; background: var(--flaeche); margin-top: var(--raum-3); padding-bottom: max(var(--raum-2), env(safe-area-inset-bottom)); }
  /* PB-5185b Nachtrag: Werkbank am Handy eine Zeile, seitlich wischbar; Namen brechen um statt abzuschneiden */
  .db-leiste { padding-top: var(--raum-2); }
  .db-leiste .db-werkbank-titel, .db-leiste .db-werkbank-unter { text-align: left; margin: 0; padding: 0 var(--raum-3); }
  .db-leiste .db-werkbank-unter { font-size: 0.8125rem; }
  .db-leiste > ul { flex-wrap: wrap; justify-content: flex-start; gap: var(--raum-2); padding: var(--raum-2) var(--raum-3); } /* PB-8219b: umbrechen statt blättern (G-6), höchstens 5 Werkzeuge und Alle */
  .db-leiste li.db-werkzeug, .db-leiste li.db-weitere { flex: 0 0 5.5rem; min-width: 0; font-size: 0.8125rem; text-align: center; }
  .db-leiste .db-werkzeug-name, .db-leiste .db-werkzeug-unter, .db-leiste .db-bald, .db-leiste .db-weitere a { max-width: 100%; overflow-wrap: break-word; hyphens: manual; }
}

/* PB-5192b: Dashboard nach dem Maßblatt (docs/produkt/dashboard/15-massblatt.md), Schritt 1: graue Seite, Karten mit Radius 12 und
   leichtem Schatten, Abstände 17 und 13, Karten-Innenabstand 17. Nur auf großen Fenstern; das Handy bleibt wie in dashboard_handy.css. */
@media (min-width: 1100px) {
  body:has(.db) { background: var(--seite); }
  .db .karte, .db .db-karte, .db .db-agent, .db .db-lst, .db .db-assistent, .db .db-wissen {
    background: var(--flaeche); border-radius: 12px; padding: 17px;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--text) 5%, transparent);
  }
  .db .db-mitte { column-gap: 17px; row-gap: 13px; }
  .db .db-rechts { gap: 13px; }
}

/* Schritt 2: drei Spalten 218 / Rest / 328, KI-Karte nur ein Viertel breit, Satz und Kennzahl unter dem Seitenkopf (PB-8215g), Zwischentitel nur für Vorleser. */
@media (min-width: 1100px) {
  .db .db-mitte:not(.db-mitte-breit), .db .db-mitte-breit { grid-template-columns: 218px minmax(0, 1fr) 328px; }
  .db .db-assistent { max-height: none; }
  .db .db-reihe { grid-template-columns: minmax(0, 333px); }
  .db .db-lage { align-items: baseline; justify-content: flex-start; gap: 0 var(--raum-4); }
  .db .db-satz { margin: 0; font-size: 1rem; }
  .db .db-kennzahl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Schritt 3: Projekt-Kacheln 182 × 112, Name und Zustandspille unter dem Bild, Wartend-Rahmen gelb, flacher Bogen (bis 4 Kacheln, mehr: Reihe).
   ANNAHME: echte Vorschaubilder erst mit PB-5402, bis dahin das Symbol der Projektart auf ruhiger Fläche; kein Untertitel (keine Daten dafür). */
@media (min-width: 1100px) {
  .db .db-kachel { width: 182px; aspect-ratio: auto; }
  .db .db-kachel a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; height: auto; border: 0; border-radius: 0; background: none; overflow: visible; text-align: left; }
  .db .db-kachel-bild { grid-column: 1 / -1; height: 112px; box-sizing: border-box; border: 1px solid var(--rand); border-radius: 9px; background: var(--flaeche-leise); overflow: hidden; box-shadow: 0 2px 6px color-mix(in srgb, var(--text) 6%, transparent); }
  .db .db-kachel a:is(:hover, :focus-visible) .db-kachel-bild { border-color: var(--akzent); }
  .db .db-kachel-name { padding: 0; background: none; color: var(--text); font-size: 15px; font-weight: 600; }
  .db .db-kachel-zustand { padding: 0 8px; border-radius: 11px; background: var(--flaeche-leise); font-size: 12px; line-height: 22px; white-space: nowrap; }
  .db .db-kachel-wartet .db-kachel-bild { border: 3px solid var(--warn-rand); }
  .db .db-kachel-wartemarke { top: 6px; right: 6px; background: var(--warn-bg); font-weight: 700; }
  .db .db-kachel-neu .db-kachel-bild { border: 1.5px dashed var(--rand); background: var(--flaeche); box-shadow: none; color: var(--akzent); }
  .db .db-kachel-neu .db-kachel-name { color: var(--akzent); font-weight: 500; }
@container (min-width: 45rem) {
  .db .db-kacheln.db-anordnung-bogen { --schritt: min(11deg, calc(34deg / max(var(--n) - 1, 1))); --r: 62rem; --kh: 156px; }
  .db .db-kacheln.db-anordnung-bogen > .db-kachel { left: calc(50% + var(--rk) * sin(var(--w)) - 91px); }
  .db .db-kacheln.db-anordnung-bogen:is(.db-bogen-6, .db-bogen-7, .db-bogen-8, .db-bogen-9, .db-bogen-10, .db-bogen-11, .db-bogen-12, .db-bogen-13) { display: flex; position: static; height: auto; gap: 17px; }
  .db .db-kacheln.db-anordnung-bogen:is(.db-bogen-6, .db-bogen-7, .db-bogen-8, .db-bogen-9, .db-bogen-10, .db-bogen-11, .db-bogen-12, .db-bogen-13) > .db-kachel { position: static; }
}
}

/* Schritt 4: Wissen-Karte. Graph 149 px hoch auf bläulicher Fläche, die vier jüngsten Notizen als Liste (die letzten zwei blass), Fuß als blauer Link. */
@media (min-width: 1100px) {
  .db .db-wissen h2 { font-size: 16px; font-weight: 600; }
  .db .db-wissen .db-wn-zahl { margin: 0 0 var(--raum-2); font-size: 14px; color: var(--text-leise); }
  .db .db-wissen > p.leise { display: none; }
  .db .db-wn { background: color-mix(in srgb, var(--akzent) 6%, var(--flaeche)); border-radius: 9px; }
  .db .db-wn-bild { height: 149px; }
  .db .db-wn-mitte { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--akzent) 40%, transparent)); }
  .db .db-wn-neu { list-style: none; margin: var(--raum-3) 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
  .db .db-wn-neu li { position: relative; padding-left: 15px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .db .db-wn-neu li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 7px; height: 7px; border-radius: 50%; background: var(--akzent); }
  /* PB-8205: "Was Ihr Agent weiß": Unterüberschriften, Bitte prüfen (Stimmt/Ändern), Merken-Feld */
  .db .db-wn-unter { margin: var(--raum-3) 0 6px; font-size: 13px; font-weight: 600; }
  .db .db-wn-pruefen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
  .db .db-wn-pruefen li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .db .db-wn-pruefen form { margin: 0; }
  .db .db-wn-pruefen-name { flex: 1 1 100%; overflow-wrap: anywhere; }
  .db .db-wn-merken { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--raum-3) 0 0; }
  .db .db-wn-merken label { flex: 1 1 100%; font-size: 13px; }
  .db .db-wn-merken input[type="text"] { flex: 1 1 8rem; min-width: 0; min-height: 2.75rem; }
  .db .db-wn-neu .db-wn-blass::before { opacity: 0.4; }
  .db .db-wn-neu a { color: var(--text); text-decoration: none; }
  .db .db-wn-fuss { margin: var(--raum-3) 0 0; font-size: 14px; font-weight: 700; }
}

/* Schritt 5: Werkbank-Leiste am Seitenende im Fluss (PB-5192j: nicht mehr fest, sie deckte den Kartenfuß ab), Titelblock links, Werkzeuge als Symbolkacheln 46 × 46, Abstand Mitte zu Mitte 94 px,
   noch nicht freigeschaltete Werkzeuge grau, Zahl als blauer Kreis oben rechts an der Kachel. */
@media (min-width: 1100px) {
  .db .db-leiste { position: relative; z-index: 1; display: flex; align-items: center; gap: 40px; min-height: 108px; box-sizing: border-box; margin-top: 0; padding: 0 17px; background: color-mix(in srgb, var(--flaeche) 99%, var(--text)); border-top: 1px solid var(--rand); }
  .db .db-leiste .db-werkbank-titel { font-size: 16px; font-weight: 700; text-align: left; }
  .db .db-leiste .db-werkbank-unter { margin: 0; font-size: 14px; text-align: left; }
  .db .db-leiste > ul { flex: 1 1 auto; min-width: 0; justify-content: flex-start; gap: 0; flex-wrap: wrap; } /* PB-8219b: höchstens LEISTE_MAX und Alle, umbrechen statt blättern */
  .db .db-werkzeug, .db .db-weitere { font-size: 14px; }
  .db .db-werkzeug a, .db .db-weitere a { position: relative; gap: 6px; }
  .db .db-werkzeug .sym { width: 46px; height: 46px; padding: 13px; box-sizing: border-box; border: 1px solid var(--rand); border-radius: 10px; background: var(--flaeche); color: var(--text); }
  .db .db-werkzeug-bald .sym { background: var(--flaeche-leise); color: var(--text-leise); }
  .db .db-werkzeug-name { color: var(--text); }
  .db .db-werkzeug-bald .db-werkzeug-name { color: var(--text-leise); }
  .db .db-werkzeug-unter { font-size: 12px; }
  .db .db-marke { position: absolute; top: -6px; right: 18px; display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; box-sizing: border-box; margin: 0; padding: 0 4px; font-size: 11px; line-height: 1; }
  .db .db-weitere a { border: 1.5px dashed var(--rand); border-radius: 10px; padding: 12px 8px; }
}
@media (min-width: 1100px) {
  /* PB-5192g Nachtrag: Titel und Zeile untereinander (spart Breite, "Weitere" bleibt sichtbar); Kachel mindestens 94 px, wächst bis zum längsten Wort. */
  .db .db-leiste { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 16px; align-content: center; align-items: center; row-gap: 2px; }
  .db .db-leiste .db-werkbank-titel { grid-column: 1; grid-row: 1; align-self: end; margin: 0; }
  .db .db-leiste .db-werkbank-unter { grid-column: 1; grid-row: 2; align-self: start; max-width: 120px; line-height: 1.3; }
  .db .db-leiste > ul { grid-column: 2; grid-row: 1 / span 2; gap: 0; }
  .db .db-leiste .db-ordnen { position: absolute; bottom: 6px; right: 17px; font-size: 12px; }
  .db .db-werkzeug, .db .db-weitere { flex: 1 0 94px; min-width: auto; box-sizing: border-box; }
  .db .db-werkzeug-name, .db .db-werkzeug-unter, .db .db-bald { overflow-wrap: normal; hyphens: manual; text-align: center; } /* Umbruch nur an Wortgrenzen, nie mit "…" */
  .db .db-werkzeug-name { font-size: 13px; }
  .db .db-leiste > ul { padding: 8px 0; }
}

/* Schritt 6: Agent-Karte oben in der rechten Spalte, Knöpfe der Zeilen als Pillen in leisem Akzent, Symbole als Kachel. */
@media (min-width: 1100px) {
  .db .db-rechts > .db-agent { order: -1; }
  .db .db-agent-knopf { min-height: 2.75rem; padding: 0 12px; border: 0; border-radius: 13px; background: color-mix(in srgb, var(--akzent) 12%, var(--flaeche)); color: var(--akzent); font-size: 13px; font-weight: 600; }
  .db .db-agent-symbol { width: 24px; height: 24px; border-radius: 6px; background: color-mix(in srgb, var(--akzent) 12%, var(--flaeche)); color: var(--akzent); }
  .db .db-agent-eintrag { padding: 8px 10px; border: 1px solid var(--rand); border-radius: 9px; margin-bottom: 6px; }
  .db .db-agent-name { font-size: 15px; font-weight: 600; }
  .db .db-agent-unter { font-size: 13px; }
}

/* PB-5192f (Architekt 22:08): die KI-Karte steht oben in der rechten Spalte, über "n Dinge warten", gleich breit; Wissen, Projekte und Agent beginnen direkt unter dem Gruß. */
@media (min-width: 1100px) {
  .db .db-rechts > .db-reihe { order: -2; grid-template-columns: minmax(0, 1fr); }
}

/* PB-5192k (3): die Überschrift "Ihre Projekte" steht links wie die der anderen Karten. */
@media (min-width: 1100px) {
  .db .db-projekte > h2 { text-align: left; }
}

/* PB-5192d: Zusammenfassung "n Projekte, eins wartet …" zentriert unter den Kacheln, größer als der Fließtext. */
@media (min-width: 1100px) {
  .db .db-projekte { display: flex; flex-direction: column; }
  .db .db-projekte-satz { order: 5; margin: var(--raum-3) 0 0; font-size: 16px; font-weight: 600; text-align: center; color: var(--text); }
}

/* PB-5192d: Agent-Karte und Assistent sehen aus wie eine Karte (Kopf, Zeilen, darunter Eingabe); zwei Bereiche bleiben es für Vorleser. */
@media (min-width: 1100px) {
  .db .db-rechts > .db-agent { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; box-shadow: none; }
  .db .db-rechts > .db-assistent { margin-top: -13px; border-top-left-radius: 0; border-top-right-radius: 0; border-top: 1px solid var(--rand); }
  .db .db-assistent h2 { font-size: 15px; }
}

/* PB-5192e (Nachträge des Architekten zu M142): KI-Karte kompakt, damit links keine Lücke bleibt; rechte Assistent-Karte entfällt, wenn der Chat links
   sitzt (sie trägt dann den Link auf ihn, der Schlüssel steht in der KI-Karte); Kacheln brechen um statt zu scrollen, die Pille rutscht unter lange Namen. */
@media (min-width: 1100px) {
  .db .db-reihe .db-karte { padding: 12px 17px; }
  .db .db-reihe .db-karte h2 { margin: 0 0 4px; font-size: 14px; }
  .db .db-reihe .db-karte p { margin: 0 0 6px; font-size: 13px; }
  .db .db-reihe .db-karte .knopf, .db .db-reihe .db-karte button { min-height: 2.25rem; }
  .db .db-rechts > .db-assistent:has(a[href="#db-chat"]) { display: none; }
  /* PB-5192k: ohne rechte Assistent-Karte endet die Agent-Karte allein: Rand unten, Rundung und Schatten zurück (sonst fehlte ihr der Boden, ein weißer Streifen blieb) */
  .db .db-rechts:has(> .db-assistent a[href="#db-chat"]) > .db-agent { border-bottom: 1px solid var(--rand); border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; box-shadow: 0 2px 8px color-mix(in srgb, var(--text) 5%, transparent); }
  .db .db-kacheln.db-anordnung-reihe { flex-wrap: wrap; overflow: visible; }
  .db .db-kachel a { display: flex; flex-direction: row; flex-wrap: wrap; }
  .db .db-kachel-bild { flex: 0 0 100%; }
  .db .db-kachel-name { flex: 0 1 auto; min-width: 0; max-width: 100%; }
  .db .db-kachel { flex: 0 0 182px; }
  .db .db-kachel-zustand { flex: 0 0 auto; }
}
/* Soll-Ist K9 (Bild 9&zu=1, Architekt 16:35), PB-9483 (Soll paket-klein, H6): Marke bei Werkzeugen, die noch nicht gehen; seit PB-10310 nur noch für Vorleser.
   Sichtbar steht „bald“ im Titel und im Blatt „Kommt bald“ beim Klick, die Kachel ist blass. */
.db .db-werkzeug-bald summary { position: relative; }
.db .db-bald-pille { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* PB-10310 (Soll Ricco 03.12.): keine Uhr mehr sichtbar, das Wort bleibt für Vorleser (L1). Ab 1100 px (L2) belegte Kacheln mit eigener Fläche, die sich vom
   Grund der Leiste abhebt (dunkel heller, hell etwas dunkler; vorher dunkel dunkler als der Grund); (L3) die Leiste läuft über die volle Breite: gemessen 1440 px,
   Leiste x 96–1400, main 56–1440 = Einzug aus main (--raum-5, dashboard.css) und .db (1rem), darum margin-inline minus beides, padding-inline beides + 17 px. */
@media (min-width: 1100px) {
  .db .db-leiste { margin-inline: calc(-1 * (var(--raum-5) + 1rem)); padding-inline: calc(var(--raum-5) + 1rem + 17px); }
  .db .db-leiste li.db-werkzeug-kraeftig { background: color-mix(in srgb, var(--flaeche) 94%, var(--text)); }
}
/* PB-9365 (Sichtprüfung B6, 390 px): unter 1100 px die Pille weg von ≡ (seit PB-9427 mittig auf der oberen Linie); ≡ mindestens 24 × 24 px (WCAG 2.5.8); „Kommt bald“ als Blatt von unten */
@media (max-width: 1099px) {
  .db .db-mt-menue > summary { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 24px; min-height: 24px; padding: 0; }
  /* „Kommt bald“ der Leiste als Blatt von unten (über der Tableiste); um das Mini Tool zentriert ragte es am Rand über den Bildschirm */
  .db .db-leiste .bald-overlay-text { position: fixed; top: auto; right: 1rem; bottom: calc(4.25rem + env(safe-area-inset-bottom)); left: 1rem; transform: none; width: auto; max-width: 32rem; margin: 0 auto; box-shadow: 0 4px 16px color-mix(in srgb, var(--text) 18%, transparent); }
  .db .db-leiste:has(.bald-overlay[open]) { z-index: 3; } /* offen über dem Assistent-Knopf (z-index 2) */
  /* Soll-Ist Bild 1 (soll-aktuell 02.12.) auch unter 1100 px: jedes Mini Tool als Kachel mit Rahmen um Symbol, Name und ≡ (≡ oben rechts
     im Rahmen), nach den ersten sechs gestrichelt, „bald“ blass mit Marke am Symbol (PB-9483); „Weitere“ ebenfalls gerahmt. */
  .db .db-leiste li.db-werkzeug { box-sizing: border-box; min-width: 5.5rem; padding: 0.5rem 0.25rem 0.375rem; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche); }
  .db .db-leiste li.db-werkzeug:not(.db-werkzeug-kraeftig) { border-style: dashed; border-color: color-mix(in srgb, var(--text-leise) 75%, var(--flaeche)); background: transparent; } /* PB-9483: gestrichelt nach Gruppe wie breit */
  .db .db-leiste .db-werkzeug .sym { color: var(--text); }
  .db .db-leiste .db-werkzeug-bald .sym, .db .db-leiste .db-werkzeug-bald .db-werkzeug-name { color: var(--text-leise); } /* „bald“ blass */
  .db .db-leiste .db-werkzeug-bald .bald-overlay, .db .db-leiste .db-werkzeug-bald summary { position: static; } /* das Blatt „Kommt bald“ steht hier fest (fixed) */
  .db .db-leiste .db-bald-pille { top: calc(0.5rem + 10px); right: auto; left: calc(50% + 4px); transform: none; } /* PB-9483: Marke unten rechts am Symbol, nicht über dem Rand (H6), weg vom ≡ */
  .db .db-leiste .db-werkzeug .db-mt-menue { top: 2px; right: 2px; }
  .db .db-leiste li.db-weitere a { box-sizing: border-box; height: 100%; justify-content: center; padding: 0.5rem 0.25rem; border: 1px solid var(--rand); border-radius: 12px; color: var(--text); }
  .db .db-leiste .db-weitere .sym { stroke-width: 3; } /* PB-9483 (H6): „Weitere“ in Textfarbe, ⋯ kräftig wie breit */
}
/* Soll-Ist K14 (Bild 1, Architekt 16:35): ohne Kachelbild eine gezeichnete Vorschau statt des Symbols. Homepage: Zeilen und Knopf links, Bildfläche rechts; Shop: drei Produktkarten. Nur Flächen, keine Inhalte. */
.db .db-mini { display: grid; width: 100%; height: 100%; box-sizing: border-box; padding: 10px; gap: 6px; }
.db .db-mini-webseite { grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(3, auto) 1fr; align-content: center; column-gap: 10px; }
.db .db-mini-webseite > span { grid-column: 1; height: 5px; border-radius: 3px; background: var(--text); }
.db .db-mini-webseite > span:nth-child(2) { width: 80%; background: var(--rand); }
.db .db-mini-webseite > span:nth-child(3) { width: 45%; height: 9px; margin-top: 4px; background: var(--ok); }
.db .db-mini-webseite::after { content: ""; grid-column: 2; grid-row: 1 / -1; border-radius: 6px; background: var(--akzent-leise); }
.db .db-mini-shop { grid-template-columns: repeat(3, 1fr); }
.db .db-mini-shop > span { border: 1px solid var(--rand); border-radius: 6px; background: var(--flaeche); background-image: radial-gradient(circle at 50% 38%, var(--warn-rand) 0 22%, transparent 23%), linear-gradient(var(--rand), var(--rand)); background-size: 100% 100%, 60% 3px; background-position: center, 50% 82%; background-repeat: no-repeat; }

/* PB-8306: Kennzahlen hinter dem "i" oben rechts auf der Übersicht des Agenten-Projekts (templates/teile/agenten_kennzahlen.php).
   Ohne Skript: die Tafel erscheint bei Darüberfahren und bei Fokus im Knopf; sie bleibt offen, solange der Zeiger auf ihr liegt. */
.agd-kz { position: relative; display: flex; justify-content: flex-end; margin-bottom: var(--raum-2); }
.agd-kz-i { width: 2.75rem; height: 2.75rem; border: 1px solid var(--rand); border-radius: 50%; background: var(--flaeche); color: var(--text); font: inherit; font-weight: 700; font-style: italic; cursor: help; }
.agd-kz-i:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.agd-kz-tafel { display: none; position: absolute; top: 100%; right: 0; z-index: 20; min-width: 16rem; max-width: min(22rem, 90vw); margin-top: var(--raum-1); padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); color: var(--text); box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.15); }
.agd-kz:is(:hover, :focus-within) .agd-kz-tafel { display: block; }
.agd-kz-tafel dl { display: grid; gap: var(--raum-2); margin: 0; }
.agd-kz-tafel dl > div { display: flex; justify-content: space-between; gap: var(--raum-3); }
.agd-kz-tafel dt { color: var(--text-leise); }
.agd-kz-tafel dd { margin: 0; font-weight: 700; text-align: right; }
.agd-kz-leer dd { font-weight: 400; color: var(--text-leise); }
@media print { .agd-kz-tafel { display: block; position: static; box-shadow: none; } }
/* PB-8305: Übersicht als Baum nach rechts (templates/agenten_uebersicht.php). Links der Architekt, rechts je Team eine Zeile; die Linien
   zeichnen ::before/::after jeder Zeile (waagrecht zur Zeile, senkrecht als Stamm vom ersten bis zum letzten Ast), damit sie bei 1 bis 10
   Teams sauber bleiben. Schmal (unter 48rem) steht der Architekt über den Teams, die Linie zur Wurzel entfällt. */
.agd-baum { display: grid; grid-template-columns: 22.5rem minmax(0, 1fr); align-items: start; gap: var(--raum-3); }
.agd-wurzel { margin: 0; }
.agd-wurzel h2 { margin-top: 0; }
/* PB-10216: linke Spalte der Seiten von n3 im Portal (templates/werkzeug_inhalt.php): Chat „Ihr Architekt“, darunter „Ihre letzten Entscheidungen“. */
.agd-links { display: grid; gap: var(--raum-3); align-content: start; min-width: 0; }
.agd-links > .karte { margin: 0; }
.agd-links > .karte h2 { margin-top: 0; }
.agd-aeste { position: relative; list-style: none; margin: 0; padding: 0 0 0 var(--raum-5); }
.agd-aeste::before { content: ""; position: absolute; left: 0; top: 50%; width: var(--raum-5); border-top: 2px solid var(--rand); }
.agd-ast { position: relative; padding: var(--raum-1) 0 var(--raum-1) var(--raum-4); }
.agd-ast::before { content: ""; position: absolute; left: 0; top: 50%; width: var(--raum-4); border-top: 2px solid var(--rand); }
.agd-ast::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 2px solid var(--rand); }
.agd-ast:first-child::after { top: 50%; }
.agd-ast:last-child::after { bottom: 50%; }
.agd-ast:only-child::after { display: none; }
.agd-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) var(--raum-3); padding: var(--raum-2) var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.agd-ast-neu .agd-zeile { border-style: dashed; background: transparent; color: var(--text-leise); text-decoration: none; font-weight: 400; } /* PB-10330 (A18): grau wie Bild 7 */
.agd-ast-neu .agd-zeile:hover { background: var(--akzent-leise); }
.agd-ast-neu .agd-zeile:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.agd-name { display: flex; flex: 1 1 12rem; align-items: center; gap: var(--raum-2); min-width: 0; margin: 0; font-weight: 600; }
.agd-name input { flex: 1 1 8rem; min-width: 0; font-weight: 600; }
.agd-name button { flex: none; }
.agd-koepfe { display: flex; align-items: center; }
.agd-koepfe .kt-initialen { width: 1.75rem; height: 1.75rem; font-size: var(--schrift-xs); }
.agd-koepfe .kt-initialen + .kt-initialen { margin-left: -0.4rem; }
.agd-mehr { margin-left: var(--raum-1); font-size: var(--schrift-xs); color: var(--text-leise); }
.agd-oeffnen { margin-left: auto; }
.agd-leer { margin: 0 0 var(--raum-2) var(--raum-5); }
/* PB-9781 Schritt 9: Leerzustand. Die Texte tragen die Nummern selbst, die Liste zählt nicht noch einmal; ohne Team kein Baum-Strich. */
.agd-einstieg-schritte { list-style: none; margin: 0 0 var(--raum-3); padding: 0; }
.agd-einstieg-schritte > li + li { margin-top: var(--raum-2); }
.agd-einstieg-schritte p { margin: var(--raum-1) 0; }
.agd-einstieg-schritte fieldset { min-width: 0; margin: 0; padding: var(--raum-1) var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); }
.agd-einstieg-schritte legend { padding: 0 var(--raum-1); font-weight: 600; }
.agd-einstieg-schritte label + .leise { display: block; padding-left: 1.75rem; font-size: var(--schrift-s); }
.agd-zweige:not(:has(> .agd-knoten)) .agd-aeste { padding-left: 0; }
.agd-zweige:not(:has(> .agd-knoten)) .agd-aeste::before, .agd-zweige:not(:has(> .agd-knoten)) .agd-ast:only-child::before { display: none; }
.agd-zweige:not(:has(> .agd-knoten)) .agd-ast:only-child { padding-left: 0; }
/* PB-8401: Plan je Team in der Zeile (E-63): links aktive Etappe mit Balken, rechts drei Spalten; schmal untereinander */
.agd-plan { display: grid; flex: 1 1 100%; grid-template-columns: minmax(9.5rem, 1fr) repeat(3, minmax(0, 1.4fr)); gap: var(--raum-2) var(--raum-3); padding-top: var(--raum-2); border-top: 1px solid var(--rand); font-size: var(--schrift-s); }
.agd-plan p, .agd-plan :is(h2, h3), .agd-plan ul { margin: 0; }
.agd-plan-ohne { grid-column: 1 / -1; color: var(--text-leise); }
.agd-plan-etappe { font-weight: 700; }
.agd-plan-balken { width: 100%; height: 0.4rem; accent-color: var(--akzent); }
.agd-plan-gesamt, .agd-plan-leer, .agd-plan-mehr { color: var(--text-leise); font-size: var(--schrift-xs); }
/* PB-10340 (Bild 7 Aufbau): Etappenzeile einzeilig, AgentBase in voller Breite (ohne die 80rem des Inhalts), „II“ vor „Alle pausieren“ */
.agd-plan-gesamt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (48rem < width < 87.5rem) { .agd-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* neben dem Chat zu schmal für vier Spalten (1024: Buchstabe je Zeile) */
#inhalt:has(> .agd-baum) { max-width: none; }
.agd-pause-an::before { content: ""; display: inline-block; width: 0.2rem; height: 0.65rem; margin-right: 0.4rem; border-inline: 0.12rem solid currentColor; vertical-align: -0.05rem; }
.agd-plan-spalte :is(h2, h3) { font-size: var(--schrift-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-leise); }
.agd-plan-spalte ul { display: flex; flex-direction: column; gap: 0.2rem; list-style: none; padding: 0; }
.agd-plan-spalte li { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
.agd-plan-spalte .kt-initialen { flex: none; width: 1.25rem; height: 1.25rem; font-size: 0.6rem; }
.agd-plan-titel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agd-plan-erledigt .agd-plan-titel { text-decoration: line-through; color: var(--text-leise); }
.agd-plan-wartet { flex: none; padding: 0 0.3rem; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-text); font-weight: 600; }
/* Schaltungs-Symbole (E50): nebeneinander = in Reihe, untereinander = parallel, Dreieck = Loop. Das Wort steht für Leser daneben. */
.agd-sch-bild { display: inline-grid; gap: 2px; width: 1.25rem; height: 1.25rem; place-items: center; }
.agd-sch-bild > span { width: 0.35rem; height: 0.35rem; border-radius: 50%; background: currentColor; }
.agd-sch-reihe .agd-sch-bild { grid-template-columns: repeat(3, 1fr); }
.agd-sch-parallel .agd-sch-bild { grid-template-rows: repeat(3, 1fr); }
.agd-sch-loop .agd-sch-bild { grid-template-columns: repeat(2, 1fr); }
.agd-sch-loop .agd-sch-bild > span:first-child { grid-column: 1 / 3; }
@media (max-width: 48rem) {
  .agd-baum { grid-template-columns: minmax(0, 1fr); gap: var(--raum-3); }
  .agd-aeste { padding-left: var(--raum-3); }
  .agd-aeste::before { display: none; }
  .agd-leer { margin-left: 0; }
  .agd-plan { grid-template-columns: minmax(0, 1fr); }
}
/* PB-8308: Team-Ansicht (templates/agenten_team.php). Der Architekt steht oben über allem; die Schaltung als Bild: Stufen mit Pfeilen
   (parallel: Agenten untereinander in "Gleichzeitig"; Reihe: Agenten nebeneinander; Loop: Kreis der Runde mit Takt). Schmal untereinander. */
.agt-architekt { text-align: center; }
.agt-bild { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) var(--raum-4); list-style: none; margin: var(--raum-3) 0; padding: 0; }
.agt-bild > .agt-stufe { position: relative; padding: var(--raum-2) var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.agt-bild > .agt-stufe + .agt-stufe::before { content: "→"; position: absolute; left: calc(-1 * var(--raum-4)); width: var(--raum-4); text-align: center; color: var(--text-leise); }
.agt-stufe ul { display: flex; flex-direction: column; gap: var(--raum-1); list-style: none; margin: var(--raum-1) 0 0; padding: 0; }
.agt-stufe-name { display: block; font-weight: 600; }
.agt-agent .kt-initialen { width: 1.75rem; height: 1.75rem; font-size: var(--schrift-xs); }
.agt-bild > .agt-kreis { border-radius: 50%; padding: var(--raum-4) var(--raum-5); text-align: center; border-style: dashed; }
.agt-kreis ul { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.agt-takt { display: block; margin-top: var(--raum-1); font-size: var(--schrift-xs); color: var(--text-leise); }
.agt-ende { font-weight: 600; }
.agt-umschalten fieldset, .agt-neu fieldset { border: 0; margin: 0; padding: 0; }
.agt-umschalten label { display: inline-flex; align-items: center; gap: var(--raum-1); margin-right: var(--raum-3); }
.agt-kaestchen { display: inline-flex; gap: 2px; margin-right: var(--raum-2); vertical-align: middle; }
.agt-kaestchen > span { width: 0.75rem; height: 0.75rem; border: 1px solid var(--rand); border-radius: 2px; }
.agt-kaestchen > .agt-belegt { background: var(--akzent); border-color: var(--akzent); }
.agt-liste { list-style: none; margin: 0 0 var(--raum-3); padding: 0; }
.agt-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); padding: var(--raum-1) 0; }
.agt-aufgabe { color: var(--text-leise); }
@media (max-width: 48rem) {
  .agt-bild { flex-direction: column; align-items: stretch; }
  .agt-bild > .agt-stufe + .agt-stufe::before { content: "↓"; left: 0; right: 0; top: calc(-1 * var(--raum-3)); width: auto; }
}
/* PB-8309: Fußleiste fest am unteren Rand, schmal, eine Zeile; Kästchen für die Plätze, Plakette für den Server */
.agd-fuss { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 0.35rem 0.75rem; margin-top: 1rem; background: var(--flaeche); border-top: 1px solid var(--rand); font-size: var(--schrift-xs); }
/* PB-10251 (WCAG 2.4.11): Fokus nie ganz unter dem festen Kopf (2.6875rem) oder der Fußleiste; am Handy (Kopf fließt mit) unter der Tab-Leiste */
html:has(.agd-fuss) { scroll-padding-block: 3.25rem 3rem; }
@media (max-width: 47.99rem) { html:has(.agd-fuss) { scroll-padding-block: 0 4.5rem; } }
/* PB-10251 (WCAG 2.5.8): Links außerhalb eines Satzes mindestens 24 px hoch (Kopf, Linkzeilen unter dem Team, Zurück, Hilfe in der Fußleiste); ohne Gewicht, Regeln fürs Handy gehen vor */
:where(#inhalt:has(.agd-fuss) :is(.agt-kopf-repo a, #inhalt > p > a, .karte > p > a:only-child, .agd-hilfe)) { display: inline-block; min-width: 1.5rem; min-height: 1.5rem; line-height: 1.5rem; }
.agd-plaetze { display: inline-flex; align-items: center; gap: 0.35rem; }
.agd-kaestchen { display: inline-flex; gap: 2px; }
.agd-k { width: 0.6rem; height: 0.6rem; border: 1px solid var(--rand); border-radius: 2px; }
.agd-k-voll { background: var(--akzent); border-color: var(--akzent); }
.agd-upgrade { padding: 0.15rem 0.5rem; border-radius: var(--radius); background: var(--akzent); color: var(--akzent-text); text-decoration: none; }
.agd-github { margin-left: auto; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border: 1px solid var(--rand); border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 600; }
/* PB-9781 Schritt 8 (Skizze 5): Wörter in Kapitälchen-Art, Größe als blaue Plakette, grüner Punkt, › rechts */
.agd-fuss-wort { color: var(--text-leise); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.agd-fuss .agd-groesse { display: inline-block; padding: 0.05rem 0.55rem; border: 0; border-radius: 99px; background: var(--akzent-leise); color: var(--akzent); font-weight: 600; text-decoration: none; }
.agd-github > span[aria-hidden="true"]:not(.agd-github-pfeil) { color: var(--ok); }
.agd-github .sym { width: 1rem; height: 1rem; }
.agd-github-pfeil { color: var(--text-leise); }
/* PB-8304: Architekt-Chat links, "Alle pausieren" im Chat-Kopf */
.agd-chat-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.agd-wurzel .db-agent { margin-top: 0.75rem; box-shadow: none; }
/* Chat-Feld (Ricco 01.12., Fugen): Architekt-Spalte mindestens 360 px, ab 1400 px 400 px (Übersicht und Team-Ansicht); der Chat ist keine
   Karte in der Karte mehr, das Feld reicht bis 12 px an den Rand der Spalte. Schmal steht die Spalte ohnehin über die volle Breite. */
.agd-wurzel { padding: var(--raum-3); }
.agd-wurzel .db-agent { padding: 0; border: 0; border-radius: 0; background: none; }
/* PB-9240 (Ricco 01.12.): „Alle pausieren“ klein in der Zeile des Namens, das „i“ direkt neben dem Namen */
.agd-chat-titel { display: inline-flex; align-items: center; gap: var(--raum-2); }
.agd-chat-titel h2 { margin: 0; }
.agd-chat-kopf .agd-pause { margin: 0; }
.agd-chat-kopf .agd-pause button { min-height: 1.75rem; padding: 0 0.625rem; font-size: 0.78125rem; }
@media (pointer: coarse) { .agd-chat-kopf .agd-pause button { min-height: 2.75rem; } }
@media (width >= 87.5rem) { .agd-baum { grid-template-columns: 25rem minmax(0, 1fr); } } /* .agt-seite: agenten_team.css */
.agd-wurzel .tabelle-rahmen, main .tabelle-rahmen { overflow-x: auto; } /* PB-8312a: Kosten-Tabelle rollt auf dem Handy */
/* PB-8315b: Hilfeseite des Agenten-Projekts */
.agh-begriffe li { margin-bottom: 0.4rem; }
.agh-hilfe nav ul { columns: 2 14rem; }
.agd-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.agv-key { white-space: pre-wrap; overflow-wrap: anywhere; } /* PB-8423 (ZM B15): öffentlicher Schlüssel bricht um, in jeder Breite */
.agd-ergebnis + .agd-ergebnis { margin-top: var(--raum-3); padding-top: var(--raum-3); border-top: 1px solid var(--rand); }
.agt-budget-balken { width: 6rem; height: 0.5rem; vertical-align: middle; accent-color: var(--akzent); } /* PB-8404b */
/* PB-8403/8406 (E56): Etappen-Liste und Aufgaben-Tafel in der Team-Ansicht */
.agt-etappen-liste { display: flex; flex-direction: column; gap: var(--raum-2); list-style: none; margin: 0 0 var(--raum-3); padding: 0; }
.agt-etappe { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--raum-1) var(--raum-3); padding: var(--raum-2) var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.agt-etappe-vorschlag { border-style: dashed; }
.agt-etappe-wahl { font-weight: 600; }
.agt-etappe-wahl[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 2px; }
.agt-etappe-wahl:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.agt-etappe-zustand { font-size: var(--schrift-xs); color: var(--text-leise); }
.agt-vorschlag { flex: 1 1 100%; }
.agt-vorschlag-form { display: inline-block; margin-right: var(--raum-2); }
.agt-spalten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--raum-3); }
.agt-spalte h3 { margin-top: 0; }
.agt-karten { display: flex; flex-direction: column; gap: var(--raum-2); list-style: none; margin: 0; padding: 0; }
.agt-karte { display: flex; flex-direction: column; gap: var(--raum-1); padding: var(--raum-2) var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); overflow-wrap: anywhere; }
.agt-karte-etappe { font-size: var(--schrift-xs); color: var(--text-leise); }
.agt-schloss::before { content: "🔒 "; }
@media (max-width: 48rem) { .agt-spalten { grid-template-columns: minmax(0, 1fr); } }

/* Chat-Partner (bild=7&team=1): Menü ohne Skript, am Handy ohne seitliches Blättern */
.agd-partner { margin: 0.5rem 0; max-width: 100%; }
.agd-partner-knopf { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.25rem 0.75rem; border: 1px solid var(--rand); border-radius: 999px; cursor: pointer; list-style: none; }
.agd-partner-knopf::-webkit-details-marker { display: none; }
.agd-partner-liste { margin-top: 0.5rem; padding: 0.5rem; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche); max-width: 100%; box-sizing: border-box; }
.agd-partner-liste ul { list-style: none; margin: 0; padding: 0; }
.agd-partner-liste a { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.25rem 0.5rem; border-radius: 8px; overflow-wrap: anywhere; }
.agd-partner-liste a[aria-current] { background: var(--flaeche-leise); font-weight: 600; }
.agd-partner-gruppe { margin: 0.5rem 0 0.25rem; font-size: 0.85rem; color: var(--text-leise); }
.agd-partner-liste li { list-style: none; }
/* Sätze im Chat der Team-Ansicht (Durchstich 6, Chat-Partner): ohne Aufzählungszeichen, Absender fett, Zeit leise */
.agd-chat-team { list-style: none; margin: 0.5rem 0; padding: 0; display: grid; gap: 0.35rem; }
.agd-chat-team li { list-style: none; padding: 0.4rem 0.6rem; border-radius: 10px; background: var(--flaeche-leise); overflow-wrap: anywhere; }
.agd-chat-team time { color: var(--text-leise); font-size: 0.85rem; }
/* PB-9816 (Bild 7, leerer Zustand): Weg Angefragt → Einrichten → Bereit; Architekt-Spalte ohne leeren Kasten */
.agd-weg { list-style: none; display: flex; flex-wrap: wrap; gap: var(--raum-2); margin: 0 0 var(--raum-3); padding: 0; }
.agd-weg > li { display: flex; align-items: center; gap: var(--raum-1); color: var(--text-leise); }
.agd-weg > li + li::before { content: "›"; margin-right: var(--raum-1); color: var(--text-leise); }
.agd-weg-zeichen { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 1px solid var(--rand); border-radius: 50%; font-size: var(--schrift-s); }
.agd-weg-fertig .agd-weg-zeichen { border-color: var(--ok); color: var(--ok); }
.agd-weg-jetzt { color: var(--text); font-weight: 600; }
.agd-weg-jetzt .agd-weg-zeichen { border-color: var(--akzent); background: var(--akzent); color: var(--akzent-text); }
.agd-architekt-wartet { margin: var(--raum-2) 0 0; color: var(--text-leise); }
/* PB-10329 (Bild 7, A4/A5/A7/A8/A9): Kopf der Spalte „Ihr Architekt“ mit Zeichen und Zustandszeile, Name nicht fett. Breit reicht die Spalte bis
   zur Fußleiste, Vorschläge und Eingabe stehen unten, die Eingabe ist eine Zeile mit rundem Pfeil. „Alle pausieren“ von n3 (.agd-pause-alle im
   Inhalt) steht breit oben rechts im Kopf der Spalte, die dafür Platz hält. Schmal bleibt alles untereinander im Fluss. */
.agd-chat-kopf { flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start; padding-bottom: var(--raum-3); border-bottom: 1px solid var(--rand); }
.agd-chat-zeichen { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius); background: var(--akzent); color: var(--akzent-text); }
.agd-chat-zeichen .sym { width: 1.25rem; height: 1.25rem; }
.agd-chat-kopf-text { flex: 1 1 auto; min-width: 0; }
.agd-chat-kopf .agd-chat-titel h2 { font-size: var(--schrift-m); font-weight: 500; }
.agd-chat-zustand { margin: 0.15rem 0 0; font-size: var(--schrift-s); }
.agd-chat-zustand .zp-wort { color: inherit; font-size: inherit; }
.agd-chat-kopf .agd-pause { flex: none; margin-left: auto; }
.agd-wurzel .agent-chat-eingabe { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--raum-1); padding: var(--raum-1) var(--raum-1) var(--raum-1) var(--raum-3); }
.agd-wurzel .agent-chat-eingabe .agent-chat-text { flex: 1 1 0; min-width: 0; }
.agd-wurzel .agent-chat-eingabe textarea { min-height: calc(1lh + 0.5rem); field-sizing: content; resize: none; }
@supports not (field-sizing: content) { .agd-wurzel .agent-chat-eingabe textarea { height: calc(1lh + 0.5rem); } }
.agd-wurzel .agent-chat-eingabe .agent-chat-fuss { flex: none; flex-wrap: nowrap; align-items: center; }
.agd-wurzel .agent-chat-eingabe:has(.agent-chat-datei[open]) .agent-chat-fuss { flex: 1 1 100%; flex-wrap: wrap; }
.agd-wurzel .agent-chat-eingabe .agent-chat-datei { flex: none; }
.agd-wurzel .agent-chat-eingabe:has(.agent-chat-datei[open]) .agent-chat-datei { flex: 1 1 100%; order: 2; }
.agd-wurzel .agent-chat-senden button { border-radius: 50%; }
@media (width > 48rem) {
  .agd-wurzel { display: flex; flex-direction: column; min-height: calc(100vh - 8rem); }
  .agd-wurzel > .db-agent { flex: 1 1 auto; display: flex; flex-direction: column; }
  .agd-wurzel > .db-agent > :is(.agent-chat-vorschlaege, .agent-chat-eingabe):not(.agent-chat-vorschlaege ~ *) { margin-top: auto; }
  .agd-baum { position: relative; }
  .agd-links ~ .agd-aeste-bereich .agd-pause-alle { position: absolute; top: var(--raum-3); left: calc(22.5rem - var(--raum-3)); transform: translateX(-100%); margin: 0; }
  .agd-links ~ .agd-aeste-bereich .agd-pause-alle button { min-height: 1.75rem; padding: 0 0.625rem; font-size: 0.78125rem; }
  .agd-baum:has(.agd-pause-alle) .agd-links .agd-chat-kopf { padding-right: 8.5rem; }
}
@media (width >= 87.5rem) { .agd-links ~ .agd-aeste-bereich .agd-pause-alle { left: calc(25rem - var(--raum-3)); } }
/* PB-10332 (Soll-Ist N1–N6, N9): „Neues Team“ als Assistent auf n3 (server/src/TeamNeuWeg.php, TeamNeuSkizze.php). Rückweg oben, Schritt-Band,
   drei nummerierte Karten, Arbeitsweise als Karten mit Bild (gewählt: blau umrandet, ohne Skript über :has), rechts „So sieht Ihr Team aus“. */
.agtn-zurueck { margin: 0 0 var(--raum-1); font-size: var(--schrift-s); }
.agtn-zurueck a { color: var(--text-leise); text-decoration: none; }
.agtn-seite > h1 { margin: 0; }
.agtn-unter { margin: var(--raum-1) 0 var(--raum-3); color: var(--text-leise); }
.agtn-schritte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--raum-2); margin: 0 0 var(--raum-3); padding: 0; list-style: none; }
.agtn-schritte a { display: flex; align-items: center; gap: var(--raum-2); padding-top: var(--raum-2); border-top: 3px solid var(--akzent); color: var(--text); text-decoration: none; }
.agtn-nr { display: inline-grid; flex: none; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--akzent-leise); color: var(--akzent); font-size: var(--schrift-xs); font-weight: 700; }
.agtn-schritte .agtn-nr { background: var(--akzent); color: var(--akzent-text); }
.agtn-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem); align-items: start; gap: var(--raum-3); }
.agtn-form { display: flex; flex-direction: column; gap: var(--raum-3); min-width: 0; }
.agtn-abschnitt { margin: 0; }
.agtn-abschnitt h2 { display: flex; align-items: center; gap: var(--raum-2); margin: 0; font-size: var(--schrift-l); font-weight: 500; }
.agtn-ab-unter { margin: var(--raum-1) 0 var(--raum-3); color: var(--text-leise); font-size: var(--schrift-s); }
.agtn-abschnitt label { display: block; margin-bottom: 0.3rem; }
.agtn-abschnitt :is(input[type="text"], textarea) { box-sizing: border-box; width: 100%; }
.agtn-abschnitt textarea { height: 4.5rem; min-height: 0; resize: vertical; }
.agtn-chips { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin: var(--raum-2) 0 0; }
.agtn-chip { padding: 0.2rem 0.7rem; border: 1px dashed var(--rand); border-radius: 99px; background: var(--flaeche-leise); color: var(--text-leise); font-size: var(--schrift-s); }
.agtn-weisen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--raum-3); margin: 0; padding: 0; border: 0; }
.agtn-abschnitt .agtn-weise { position: relative; display: flex; margin: 0; flex-direction: column; gap: 0.35rem; padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); cursor: pointer; }
.agtn-weise:has(input:checked) { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.agtn-weise:has(input:focus-visible) { outline: 2px solid var(--fokus); outline-offset: 2px; }
.agtn-weise input { position: absolute; opacity: 0; }
.agtn-weise .agd-sch { display: grid; place-items: center; height: 3.5rem; border-radius: var(--radius); background: var(--flaeche-leise); color: var(--akzent); }
.agtn-weise .agd-sch-bild { width: 2.5rem; height: 2.5rem; }
.agtn-weise .agd-sch-bild > span { width: 0.6rem; height: 0.6rem; }
.agtn-weise .leise { font-size: var(--schrift-s); }
.agtn-schloss { margin: var(--raum-2) 0 0; color: var(--text-leise); font-size: var(--schrift-s); }
.agtn-agent { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 2fr); align-items: center; gap: var(--raum-2); margin: 0 0 var(--raum-2); }
.agtn-agent label { margin: 0; }
.agtn-knoepfe { display: flex; align-items: center; gap: var(--raum-3); margin: 0; }
.agtn-skizze { position: sticky; top: var(--raum-3); padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.agtn-skizze h2 { margin: 0 0 var(--raum-3); font-size: var(--schrift-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-leise); }
.agtn-skizze-bild { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); }
.agtn-skizze-arch { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; margin: 0; padding: var(--raum-2) var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); font-size: var(--schrift-s); }
.agtn-skizze-linie { flex: 1 1 1.5rem; min-width: 1.5rem; border-top: 2px dashed var(--rand); }
.agtn-skizze-form { padding: var(--raum-2) var(--raum-3); border: 2px dashed var(--akzent); text-align: center; font-size: var(--schrift-s); }
.agtn-skizze-loop { border-radius: 50%; }
.agtn-skizze-reihe, .agtn-skizze-parallel { border-radius: var(--radius); }
.agtn-skizze-form p { margin: 0 0 0.3rem; display: flex; flex-direction: column; }
.agtn-skizze-form ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.agtn-skizze-parallel ul { flex-direction: column; align-items: center; }
.agtn-skizze .kt-initialen { width: 1.6rem; height: 1.6rem; font-size: var(--schrift-xs); }
.agtn-skizze-hinweis { margin: var(--raum-3) 0 0; color: var(--text-leise); font-size: var(--schrift-s); }
@media (max-width: 48rem) {
  .agtn-raster, .agtn-weisen { grid-template-columns: minmax(0, 1fr); }
  .agtn-schritte a { flex-direction: column; align-items: flex-start; gap: 0.2rem; font-size: var(--schrift-s); }
  .agtn-agent { grid-template-columns: minmax(0, 1fr); }
  .agtn-skizze { position: static; }
}
/* PB-10342 (Soll Handy 390, E69): auf den Seiten von AgentBase (mit Fußleiste .agd-fuss) keine untere Tab-Leiste des Portals; die Fußleiste
   mit Plätzen, Server und GitHub steht unten, der Weg zurück geht über den Kopf (Logo, Projektwahl). */
@media (max-width: 48rem) {
  body.mit-leiste:has(.agd-fuss) { padding-bottom: 0; }
  body:has(.agd-fuss) .tableiste { display: none; }
}

/* Skizze 5 und 5b (Übersicht und Team-Ansicht von AgentBase). Team-Ansicht, templates/agenten_team.php: links der Architekt wie auf der Übersicht, rechts der Kopf in einer Zeile
   (Name mit Schaltung, Ziel, Takt, Zustand, Budget, Knöpfe), die Etappen waagrecht, darunter die Schaltung schmal neben der
   Aufgaben-Tafel, dann „Gerade passiert“ und der Auftrag. Schmal (unter 64rem) untereinander, der Architekt vor dem Inhalt (PB-9294, ENT-97: der Chat steht immer links bzw. oben).
   Steht vor agenten_handy.css, damit die Regeln fürs Handy weiter vorgehen. */
.agt-seite { display: grid; grid-template-columns: 22.5rem minmax(0, 1fr); gap: var(--raum-3); align-items: start; }
@media (width >= 87.5rem) { .agt-seite { grid-template-columns: 25rem minmax(0, 1fr); } } /* Ricco 01.12.: ab 1400 px 400 px */
.agt-inhalt { display: flex; flex-direction: column; gap: var(--raum-3); min-width: 0; }
.agt-inhalt > *, .agt-seite > .agd-wurzel { margin: 0; }
.agt-inhalt h2 { margin: 0 0 var(--raum-2); font-size: var(--schrift-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-leise); }

/* Kopf */
.agt-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2) 0; padding: var(--raum-2) var(--raum-3); }
.agt-kopf-haupt { display: flex; flex: 1 1 12rem; flex-wrap: wrap; align-items: center; gap: var(--raum-1) var(--raum-2); min-width: 0; padding-right: var(--raum-3); }
.agt-kopf h1 { margin: 0; font-size: var(--schrift-m); font-weight: 650; }
.agt-kopf-name { margin: 0; }
.agt-kopf .agd-sch { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.05rem 0.5rem; border-radius: 99px; background: var(--flaeche-leise); color: var(--text-leise); font-size: var(--schrift-xs); font-weight: 600; }
.agt-kopf .agd-sch-bild { width: 0.9rem; height: 0.9rem; }
.agt-kopf .agd-sch-bild > span { width: 0.25rem; height: 0.25rem; }
.agt-ziel { flex: 0 1 auto; margin: 0; font-size: var(--schrift-s); }
.agt-kopf .agt-kopf-name { flex: 1 1 auto; }
.agt-kopf .agd-umbenennen { order: 0; }
.agt-marke { margin-right: var(--raum-1); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-leise); }
.agt-kopf-daten { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; font-size: var(--schrift-xs); }
.agt-kopf-daten > li { max-width: 12rem; padding: var(--raum-1) var(--raum-3); border-left: 1px solid var(--rand); }
.agt-kopf-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); padding-left: var(--raum-3); border-left: 1px solid var(--rand); }
.agt-pause { margin: 0; }
.agt-kopf-knoepfe .agt-pause button, .agt-zahnrad.knopf { min-height: 2rem; padding: 0.25rem 0.7rem; font-size: var(--schrift-s); line-height: 1.2; }
.agt-kopf-daten > li.agt-kopf-budget { max-width: 14rem; }
.agt-kopf-aendern { flex: 1 1 100%; font-size: var(--schrift-s); }
.agt-kopf-aendern:not([open]) { flex: 0 0 auto; }

/* Etappen waagrecht */
.agt-etappen { padding: var(--raum-2) var(--raum-3); }
.agt-etappen-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--raum-1) var(--raum-3); }
.agt-etappen-kopf h2 { margin: 0; }
.agt-etappen-kopf .agt-etappe-wahl { font-size: var(--schrift-s); font-weight: 400; }
.agt-plus { margin-left: auto; font-size: var(--schrift-s); font-weight: 600; text-decoration: none; }
.agt-plus:hover { text-decoration: underline; }
.agt-etappen .agt-etappen-liste { flex-direction: row; align-items: flex-start; gap: var(--raum-2); margin: var(--raum-2) 0 0; overflow-x: auto; }
.agt-etappen .agt-etappe { flex: 1 1 0; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 0.15rem; min-width: 9.5rem; padding: var(--raum-2); background: var(--flaeche-leise); font-size: var(--schrift-xs); }
.agt-etappen .agt-etappe-wahl { font-size: var(--schrift-s); }
.agt-etappen .agt-etappe:has(> .agt-etappe-wahl[aria-current="true"]) { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.agt-etappen .agt-etappe-laeuft { border-color: var(--akzent); }
.agt-etappen .agt-etappe-vorschlag { border-color: var(--warn-rand); background: var(--warn-bg); color: var(--warn-text); }
.agt-etappen .agt-vorschlag p, .agt-etappen .agt-vorschlag ul { margin: 0.15rem 0; padding-left: 0; list-style: none; }
.agt-etappen .agt-vorschlag-form button { padding: 0.1rem 0.5rem; font-size: var(--schrift-xs); }
.agt-etappe-neu-text { margin: var(--raum-2) 0 0; font-size: var(--schrift-xs); }

/* Rumpf: links die Schaltung, rechts die Aufgaben-Tafel */
.agt-rumpf { display: grid; grid-template-columns: minmax(14rem, 16rem) minmax(0, 1fr); gap: var(--raum-3); align-items: start; }
.agt-rumpf > .karte { margin: 0; }
.agt-rumpf .agt-schaltung { padding: var(--raum-3) var(--raum-2); background-color: var(--flaeche-leise); background-image: radial-gradient(var(--rand) 1px, transparent 1px); background-size: 16px 16px; }
.agt-rumpf .agt-schaltung h2 { text-align: center; }
.agt-architekt-klein { display: flex; align-items: center; gap: 0.4rem; width: fit-content; margin: 0 auto; padding: 0.2rem 0.6rem 0.2rem 0.25rem; border: 1px solid var(--akzent); border-radius: var(--radius); background: var(--flaeche); font-size: var(--schrift-s); }
.agt-rumpf .agt-bild { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: var(--raum-4); margin: var(--raum-4) 0 var(--raum-3); }
.agt-rumpf .agt-bild > .agt-stufe { padding: var(--raum-1) var(--raum-2); text-align: center; font-size: var(--schrift-s); }
.agt-rumpf .agt-bild > .agt-stufe + .agt-stufe::before { content: "↓"; left: 0; right: 0; top: calc(-1 * var(--raum-4)); width: auto; }
.agt-rumpf .agt-bild > .agt-kreis { padding: var(--raum-2); border-radius: var(--radius); }
.agt-rumpf .agt-stufe ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--raum-2); }
.agt-rumpf .agt-gleichzeitig ul { grid-template-columns: minmax(0, 1fr); }
.agt-rumpf .agt-bild > .agt-agent { padding: var(--raum-1) var(--raum-2); }
/* PB-9783p (Ricco 28.11.): parallel ohne Linien und Pfeile, die Agenten stehen nur unter dem Architekten */
.agt-bild.agt-bild-parallel > .agt-stufe + .agt-stufe::before, .agt-rumpf .agt-bild.agt-bild-parallel > .agt-stufe + .agt-stufe::before { content: none; }
.agt-rumpf .agt-bild-parallel { gap: var(--raum-2); }
/* PB-9842 (Skizze bild=7): Kopf Kürzel | Name mit Rolle daneben | Regler und Punkt rechts oben; Linie über der Aufgabe */
.agt-agent { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.25rem 0.4rem; padding: 0.35rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); text-align: left; font-size: var(--schrift-xs); }
.agt-rumpf .agt-bild .agt-agent { text-align: left; }
.agt-agent-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.4rem; min-width: 0; }
.agt-agent-text strong { font-size: var(--schrift-s); }
.agt-agent-text .agt-aufgabe { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agt-agent-ecke { display: flex; align-items: center; gap: 0.3rem; align-self: start; }
.agt-agent .agt-regler { display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 0.3rem; color: var(--text-leise); }
.agt-agent .agt-regler:hover, .agt-agent .agt-regler:focus-visible { background: var(--flaeche-leise); color: var(--text); }
.agt-agent .agt-regler .sym { width: 0.8rem; height: 0.8rem; }
.agt-agent .agt-jetzt { grid-column: 1 / -1; padding-top: 0.25rem; border-top: 1px solid var(--rand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* PB-9842: im Loop sind die Karten schmal, die Rolle steht wie in der Skizze unter dem Namen, Regler und Punkt rechts oben */
.agt-kreis .agt-agent-text { grid-column: 2 / -1; }
.agt-kreis .agt-agent-ecke { position: absolute; top: 0.35rem; right: 0.35rem; }
.agt-kreis .agt-agent-text strong { max-width: 100%; padding-right: 2.4rem; }
.agt-kreis .agt-agent .agt-jetzt { white-space: normal; overflow-wrap: anywhere; }
.agt-kreis > ul > .agt-stufe:not(.agt-agent) { grid-column: 1 / -1; justify-self: center; padding: 0 0.6rem; border: 1px solid var(--rand); border-radius: 99px; background: var(--flaeche); font-size: var(--schrift-xs); }
.agt-rumpf .agt-plaetze, .agt-rumpf .agt-neu { font-size: var(--schrift-s); }

/* Aufgaben-Tafel */
.agt-rumpf .agt-tafel { padding: var(--raum-3); }
.agt-tafel .agt-spalten { gap: var(--raum-2); }
.agt-tafel .agt-spalte { padding: var(--raum-2); border-radius: var(--radius); background: var(--flaeche-leise); }
.agt-tafel .agt-spalte h3 { margin: 0 0 var(--raum-2); font-size: var(--schrift-s); }
.agt-tafel .agt-karte { gap: 0.2rem; padding: var(--raum-2); font-size: var(--schrift-s); overflow-wrap: normal; hyphens: auto; }
.agt-tafel .agt-spalte > p { margin: 0; font-size: var(--schrift-s); }
.agt-tafel .agt-karte-wartet { border-color: var(--warn-rand); background: var(--warn-bg); color: var(--warn-text); }
.agt-tafel .agt-karte-erledigt strong { color: var(--text-leise); text-decoration: line-through; }
.agt-karte-zeile { display: flex; align-items: center; gap: 0.3rem; min-width: 0; font-size: var(--schrift-xs); }
.agt-karte-zeile .agt-karte-etappe { margin-left: auto; padding: 0 0.3rem; border-radius: 0.25rem; background: var(--warn-bg); color: var(--warn-text); font-weight: 700; }
.agt-karte-zeile .kt-initialen, .agt-agent .kt-initialen { width: 1.1rem; height: 1.1rem; font-size: 0.625rem; }
.agt-karte-zeit { font-size: var(--schrift-xs); }
.agt-tafel .agt-rueckfrage p { margin: 0; }
.agt-tafel .agt-rueckfrage .dialog-knoepfe { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.2rem; }
.agt-tafel .agt-rueckfrage .dialog-knoepfe button { padding: 0.2rem 0.6rem; font-size: var(--schrift-xs); }
.agt-tafel .agt-rueckfrage .dialog-knoepfe button:first-child { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.agt-agent .kt-initialen { width: 1.5rem; height: 1.5rem; font-size: var(--schrift-xs); }
.agt-architekt-klein .kt-initialen { width: 1.4rem; height: 1.4rem; font-size: var(--schrift-xs); }

/* Kürzel der Agenten: festes Kästchen je Name (teile/initialen, farbig). Weiße Schrift, Kontrast je Farbe über 5:1. */
.kt-initialen.kt-farbig { border: 0; border-radius: 0.3rem; color: #ffffff; }
.kt-f0 { --kt-f: #1f7a4d; background: var(--kt-f); }
.kt-f1 { --kt-f: #a8551a; background: var(--kt-f); }
.kt-f2 { --kt-f: #6247c9; background: var(--kt-f); }
.kt-f3 { --kt-f: #1d6a9e; background: var(--kt-f); }
.kt-f4 { --kt-f: #b0306a; background: var(--kt-f); }
.kt-f5 { --kt-f: #6e6200; background: var(--kt-f); }
.kt-arch { background: #3d55c8; }

@media (max-width: 64rem) {
  .agt-seite { grid-template-columns: minmax(0, 1fr); }
  .agt-rumpf { grid-template-columns: minmax(0, 1fr); }
  .agt-kopf-daten > li:first-child, .agt-kopf-knoepfe { padding-left: 0; border-left: 0; }
}

/* Skizze 5 (Übersicht, templates/agenten_uebersicht.php): Kopfzeile „Ihre Teams · ein Architekt für alle“ mit dem „i“ rechts, der Architekt als
   feste Wurzel links vom Baum, je Team Symbol, Name als Titel (Umbenennen klein hinter ✎), farbige Kürzel mit Zahl, Punkt und Knopf „Öffnen“. */
.agd-aeste-bereich { min-width: 0; }
.agd-kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: var(--raum-3); margin-bottom: var(--raum-3); }
.agd-kopfzeile :is(h1, h2) { margin: 0; font-size: var(--schrift-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-leise); }
.agd-kopfzeile .agd-kz { margin: 0; }
.agd-zweige { display: grid; grid-template-columns: minmax(9rem, 11rem) minmax(0, 1fr); align-items: center; }
.agd-zweige:not(:has(> .agd-knoten)) { grid-template-columns: minmax(0, 1fr); }
.agd-knoten { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; margin: 0; padding: var(--raum-4) var(--raum-3) var(--raum-3); border: 1px solid var(--akzent); border-radius: var(--radius); background: var(--flaeche); text-align: center; font-size: var(--schrift-s); }
.agd-knoten-fest { position: absolute; top: 0.3rem; left: 0.5rem; font-size: var(--schrift-xs); font-weight: 700; color: var(--akzent); }
.agd-knoten .kt-initialen { width: 2.25rem; height: 2.25rem; font-size: var(--schrift-m); }
.agd-zeile > .agd-sch { order: -2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; background: var(--kt-f, var(--akzent)); color: var(--akzent-text); }
/* PB-10330 (Bild 7 breit, A10–A18): Name oben, darunter Abzeichen und Zahl; (i) rechts in der Kopfzeile; Symbol in der Farbe des Teams (--kt-f) */
.agd-kopf-text { order: -1; display: flex; flex: 1 1 10rem; flex-direction: column; gap: 0.3rem; min-width: 0; }
.agd-titel { min-width: 0; font-weight: 650; }
.agd-ast:not(.agd-ast-neu) > .agd-zeile { align-items: flex-start; }
.agd-zeile > .agd-sch[class*=" kt-f"] { color: #ffffff; } /* weiße Punkte auf der Teamfarbe, auch dunkel */
.agd-ast:not(.agd-ast-neu) > .agd-zeile > :is(.zp, .plakette) { margin-top: 0.55rem; }
.agd-kopf-hinweis { margin: 0 auto 0 0; font-size: var(--schrift-xs); color: var(--text-leise); }
.agd-info { position: relative; }
.agd-info > summary { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 1px solid var(--rand); border-radius: 50%; list-style: none; cursor: pointer; font-size: var(--schrift-xs); font-style: italic; font-weight: 700; color: var(--text-leise); }
.agd-info > summary::-webkit-details-marker { display: none; }
.agd-info > summary:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.agd-info > p { position: absolute; top: calc(100% + 0.4rem); right: 0; z-index: 5; width: min(22rem, 80vw); margin: 0; padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); font-size: var(--schrift-s); }
.agd-plan-zeile-wartet, .agd-plan-zeile-wartet .agd-plan-titel { color: var(--warn-text); }
.agd-plan-zeile-wartet .agd-plan-titel { white-space: normal; } /* „wartet auf Sie“ nie abgeschnitten */
.agd-neu-plus { order: -2; display: grid; flex: none; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px dashed var(--rand); border-radius: 0.5rem; font-size: 1.1rem; }
.agd-ast-neu .agd-titel { font-weight: 500; }
.agd-umbenennen { order: -1; }
.agd-umbenennen > summary { list-style: none; cursor: pointer; padding: 0 0.35rem; border-radius: var(--radius); color: var(--text-leise); }
.agd-umbenennen > summary::-webkit-details-marker { display: none; }
.agd-umbenennen > summary:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.agd-umbenennen[open] { flex: 1 1 100%; }
.agd-koepfe .kt-initialen.kt-farbig { width: 1.35rem; height: 1.35rem; font-size: 0.6875rem; }
.agd-koepfe .kt-initialen.kt-farbig + .kt-initialen.kt-farbig { margin-left: 2px; }
.agd-zahl { margin-left: 0.4rem; font-size: var(--schrift-xs); color: var(--text-leise); }
.agd-plan-spalte .kt-initialen.kt-farbig { border-radius: 0.25rem; }
a.agd-oeffnen.knopf { padding: 0.25rem 0.75rem; font-size: var(--schrift-s); text-decoration: none; }
.agd-ast-neu .agd-zeile .leise { font-size: var(--schrift-xs); font-weight: 400; }
.agd-github { padding: 0.15rem 0.6rem; border: 1px solid var(--rand); border-radius: var(--radius); text-decoration: none; }
@media (max-width: 48rem) {
  .agd-info > summary { width: 2.75rem; height: 2.75rem; } /* PB-10330: (i) fingergroß; „Team links anklicken“ passt am Handy nicht (keine Leiste links) */
  .agd-kopf-hinweis { display: none; }
  .agd-zweige { grid-template-columns: minmax(0, 1fr); gap: var(--raum-2); }
}

/* Skizze 5c und 5d: Steckbrief (templates/agenten_steckbrief.php) und Team-Regeln (templates/agenten_team_regeln.php) als Fenster.
   Steckbrief in zwei Spalten (links Job, Nicht mein Job, Fertig heißt, Darf; rechts Spielregeln, Fähigkeiten, Merkt sich), Abschnitte
   flach mit Trennlinie; „Darf / Darf nie“ als Zeilen mit Marke. Regeln: je Zahl eine Zeile, Bezeichnung links, kleines Feld rechts. */
:is(.agsb-fenster, .agtr-fenster) { max-width: 64rem; padding: var(--raum-3) var(--raum-4); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.08); }
:is(.agsb-fenster, .agtr-fenster) .karte { margin: 0; padding: var(--raum-2) 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
:is(.agsb-fenster, .agtr-fenster) h2 { margin: 0 0 var(--raum-1); font-size: var(--schrift-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-leise); }
:is(.agsb-fenster, .agtr-fenster) :is(p, ul) { margin: 0.2rem 0; font-size: var(--schrift-s); }
.agsb-fenster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 0 var(--raum-5); }
.agsb-fenster > .karte { border-top: 1px solid var(--rand); }
.agsb-fenster > :is(.agsb-wer, .agsb-takt, .agsb-aendern, p) { grid-column: 1 / -1; }
.agsb-fenster > .agsb-wer { border-top: 0; }
.agsb-fenster > :is(.agsb-job, .agsb-darf) { grid-column: 1; }
.agsb-fenster > :is(.agsb-regeln, .agsf, .agsd) { grid-column: 2; }
.agsb-fenster .agsb-regeln li::marker { content: "🔒 "; font-size: 0.7em; }
.agsb-darf dl { margin: 0; }
.agsb-zeile { display: flex; align-items: center; justify-content: space-between; gap: var(--raum-2); padding: 0.3rem 0; border-bottom: 1px solid var(--rand); font-size: var(--schrift-s); }
.agsb-zeile dd { margin: 0; }
.agsb-wert { flex: none; padding: 0 0.5rem; border-radius: 99px; font-size: var(--schrift-xs); font-weight: 600; }
.agsb-wert-ja { background: var(--akzent-leise); color: var(--ok); }
.agsb-wert-frei { background: var(--warn-bg); color: var(--warn-text); }
.agsb-wert-nie, .agsb-wert-nein { background: var(--flaeche-leise); color: var(--text-leise); }
.agtr-fenster h1 { margin: 0; font-size: var(--schrift-l); }
.agtr-fenster > p { font-size: var(--schrift-s); }
.agtr-fenster .karte { border-top: 1px solid var(--rand); }
.agtr-fenster .karte > p:has(> input:is([type="number"], [type="text"])) { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; align-items: center; column-gap: var(--raum-3); padding: 0.3rem 0; border-bottom: 1px solid var(--rand); }
.agtr-fenster .karte > p > input:is([type="number"], [type="text"]) { grid-column: 2; grid-row: 1 / span 2; width: 100%; }
.agtr-fenster .karte > p > label { grid-column: 1; font-weight: 600; }
.agtr-fenster .karte > p > .leise { grid-column: 1; font-size: var(--schrift-xs); }
@media (max-width: 48rem) {
  .agsb-fenster { grid-template-columns: minmax(0, 1fr); }
  .agsb-fenster > :is(.agsb-job, .agsb-darf, .agsb-regeln, .agsf, .agsd) { grid-column: 1 / -1; }
}
.agsb-wer-kopf { display: flex; align-items: center; gap: var(--raum-2); font-size: var(--schrift-m); }
.agsb-wer-kopf .kt-initialen { width: 2.25rem; height: 2.25rem; }

/* PB-9782 Schritt 4: Routinen als Karten (templates/agenten_team_routinen.php): Team und Takt oben, Auftrag, Termin, Mindestpause und Monatsgrenze */
.agro-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: var(--raum-3); list-style: none; margin: 0; padding: 0; }
.agro-karte { display: flex; flex-direction: column; gap: var(--raum-2); padding: var(--raum-3); border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche); min-width: 0; }
.agro-karte > p, .agro-karte > form { margin: 0; }
.agro-karte-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-1) var(--raum-2); }
.agro-team { padding: 0.05rem 0.5rem; border-radius: 99px; background: var(--flaeche-leise); color: var(--text-leise); font-size: var(--schrift-xs); font-weight: 600; }
.agro-daten { display: flex; flex-wrap: wrap; gap: var(--raum-1) var(--raum-4); margin: 0; font-size: var(--schrift-xs); }
.agro-daten dt { color: var(--text-leise); }
.agro-daten dd { margin: 0; font-weight: 600; }
/* PB-9782 Schritt 5: Routinen in der Team-Ansicht, je Routine der Takt fett über dem Auftrag */
.agt-routinen-liste { display: flex; flex-direction: column; gap: var(--raum-2); list-style: none; margin: 0 0 var(--raum-2); padding: 0; }
.agt-routinen-liste strong { display: block; font-weight: 600; }
.agk-schluessel { width: 100%; font-family: var(--schrift-mono, monospace); font-size: var(--schrift-xs); overflow-wrap: anywhere; }
/* PB-9841: Overlay rechts (Teil overlay_rechts), Soll bild=7&team=3: schwebendes Fenster rechts oben, Höhe nach Inhalt */
.ovr { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: flex-end; align-items: flex-start; padding: 1.25rem; overflow-y: auto; }
.ovr-flaeche { position: fixed; inset: 0; background: rgb(0 0 0 / 0.18); }
.ovr-tafel { position: relative; width: min(27.5rem, 100%); max-height: calc(100vh - 2.5rem); overflow-y: auto; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 0.875rem; box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.18); }
.ovr-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--raum-2); padding: var(--raum-3) var(--raum-4) 0; }
.ovr-kopf h2 { margin: 0; font-size: var(--schrift-m, 1.1rem); }
.ovr-kopf p { margin: 0.2rem 0 0; }
.ovr-schliessen { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--rand); border-radius: var(--radius); color: var(--text); text-decoration: none; font-size: 1.25rem; line-height: 1; }
.ovr-inhalt { padding: var(--raum-3) var(--raum-4) var(--raum-4); }
.ovr-inhalt > :first-child { margin-top: 0; }
@media (max-width: 30rem) { .ovr { padding: 0; } .ovr-tafel { width: 100%; max-height: 100vh; border-radius: 0; } }
.agk-zeile { display: flex; align-items: flex-start; gap: var(--raum-2); }
.agk-zeile .agk-schluessel { flex: 1; min-width: 0; }
.agk-zeile .agk-kopieren { flex: none; }
.agk-privat { margin-bottom: 0; }

/* Loop L2, Skizze Bild 8 (Agent Builder · Routine): Kopf mit Zustand und Knöpfen, die Kette als Karten untereinander auf gepunkteter Fläche,
   verbunden mit einem Strich. Auslöser in der Akzentfarbe, Bedingung gestrichelt, Freigabe in Warnfarbe, Ergebnis grün; „kommt bald“ blass. */
.agrb-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--raum-2) var(--raum-3); padding: var(--raum-2) var(--raum-3); }
.agrb-kopf-haupt { min-width: 0; }
.agrb-kopf h1 { margin: 0; font-size: var(--schrift-m); font-weight: 650; }
.agrb-kopf .agt-marke, .agrb-zustand { margin: 0; }
.agrb-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); }
.agrb-knoepfe form { margin: 0; }
.agrb-flaeche { background-image: radial-gradient(var(--rand) 1px, transparent 1px); background-size: 16px 16px; }
.agrb-kette { display: flex; flex-direction: column; align-items: center; list-style: none; margin: 0; padding: var(--raum-2) 0; }
.agrb-kb { position: relative; display: flex; flex-direction: column; gap: 0.15rem; width: min(100%, 26rem); padding: var(--raum-2) var(--raum-3) var(--raum-2) 2.75rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.agrb-kb::after { content: ""; position: absolute; left: 0.75rem; top: 1.1rem; width: 1.25rem; height: 1.25rem; border-radius: 0.4rem; background: var(--flaeche-leise); box-shadow: inset 0 0 0 1.5px var(--rand); }
.agrb-kb + .agrb-kb { margin-top: var(--raum-3); }
.agrb-kb + .agrb-kb::before { content: ""; position: absolute; left: 50%; top: calc(-1 * var(--raum-3) - 1px); width: 2px; height: var(--raum-3); background: var(--rand); }
.agrb-art { font-size: var(--schrift-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-leise); }
.agrb-kb small { color: var(--text-leise); font-size: var(--schrift-xs); }
.agrb-kb details { margin-top: var(--raum-1); font-size: var(--schrift-s); }
.agrb-ausl { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 10%, var(--flaeche)); }
.agrb-ausl .agrb-art { color: var(--akzent); }
.agrb-ausl::after { background: var(--akzent); box-shadow: none; }
.agrb-frage { border-style: dashed; }
.agrb-frage::after { border-radius: 0.15rem; transform: rotate(45deg) scale(0.8); }
.agrb-frei { border-color: var(--warn-rand); background: var(--warn-bg); }
.agrb-frei .agrb-art { color: var(--warn-text); }
.agrb-frei::after { background: var(--warn-text); box-shadow: none; border-radius: 50%; }
.agrb-erg { border-color: var(--ok); }
.agrb-erg .agrb-art { color: var(--ok); }
.agrb-erg::after { background: var(--ok); box-shadow: none; border-radius: 50%; }
.agrb-bald { opacity: 0.75; }
.agrb-bald-marke { align-self: flex-start; padding: 0 0.5rem; border-radius: 99px; background: var(--flaeche-leise); color: var(--text-leise); font-size: var(--schrift-xs); font-weight: 600; }
.agrb-text { white-space: pre-line; overflow-wrap: anywhere; }
.agrb-verlauf { margin: 0; padding-left: var(--raum-3); }
.agrb-schritt-knoepfe { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin-top: var(--raum-1); }
.agrb-schritt-knoepfe form { margin: 0; }
.agrb-neu { display: flex; flex-direction: column; align-items: center; margin-top: var(--raum-3); }
.agrb-neu > summary { padding: 0.25rem 1rem; border: 1.5px dashed var(--akzent); border-radius: 99px; background: var(--flaeche); color: var(--akzent); font-size: var(--schrift-s); font-weight: 600; cursor: pointer; list-style: none; }
.agrb-neu > summary::-webkit-details-marker { display: none; }
.agrb-neu[open] > form { width: min(100%, 26rem); }
/* PB-9811b (Bild 7): ⋯ im Team-Kopf als Menü ohne Skript (details), Popup „Deploy-Key“ in der Mitte */
.agt-mehr { position: relative; }
.agt-mehr > summary.knopf { list-style: none; cursor: pointer; min-height: 2rem; padding: 0.25rem 0.7rem; font-size: var(--schrift-s); line-height: 1.2; }
.agt-mehr > summary::-webkit-details-marker { display: none; }
.agt-mehr > summary:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.agt-mehr-liste { position: absolute; right: 0; top: calc(100% + 0.25rem); z-index: 20; min-width: 12rem; margin: 0; padding: var(--raum-1); list-style: none; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: 0 0.5rem 1.25rem rgb(0 0 0 / 0.14); }
.agt-mehr-liste a { display: block; padding: 0.45rem 0.6rem; border-radius: var(--radius); color: var(--text); text-decoration: none; font-size: var(--schrift-s); }
.agt-mehr-liste a:hover, .agt-mehr-liste a:focus-visible { background: var(--flaeche-leise); }
.ovr-mitte { justify-content: center; align-items: center; }
.agk-wege { margin: 0 0 var(--raum-3); padding-left: 1.1rem; font-size: var(--schrift-s); }
.agk-wege li + li { margin-top: var(--raum-1); }
/* PB-9232: Ergebnis von „Verbindung prüfen“ immer als Zeile in Farbe; Stand des Repos am Team */
.agk-ergebnis { margin: var(--raum-2) 0; padding: 0.6rem 0.8rem; border-radius: var(--radius); border: 1px solid var(--rand); }
.agk-ergebnis.agk-gut { color: var(--ok); border-color: var(--ok); font-weight: 600; }
.agk-ergebnis.agk-warn { color: var(--warn-text); background: var(--warn-bg); border-color: var(--warn-rand); }
.agk-ergebnis.agk-fehler { color: var(--fehler); background: var(--fehler-bg); border-color: var(--fehler); }
.agk-ergebnis + .agk-speichern { margin-top: 0; }
.agt-kopf-repo.agt-repo-ja a { color: var(--ok); }
.agk-lang { overflow-wrap: anywhere; } /* PB-9232: Fingerabdruck und SSH-Adresse brechen im Fenster um */
.hinweis.agt-gut { color: var(--ok); border: 1px solid var(--ok); background: transparent; font-weight: 600; } /* PB-9232 */

/* PB-8423 (E56 Runde 3): AgentBase am Handy (360/375 px). Nur Stilregeln, kein Skript; gilt nur unter 48rem und nur auf den Seiten des
   Agenten-Projekts. Bereich ohne :has(): jedes Element mit eigener Klasse (agb-, agd-, agh-, agsb-, agsd-, agsf-, agt-, agtn-, agv-), die
   Marke .agb-seite eingeschlossen. :has() (Seite mit Fußleiste .agd-fuss oder Marke) ist nur Zusatz für fremde Bausteine; :where() lässt
   es in älteren Browsern fallen, der Rest gilt weiter (Nachtrag nach ZM B15). Ziele: kein seitliches Rollen der Seite (Tabellen rollen in
   ihrem Rahmen), Knöpfe und Labels von Auswahlkästchen mindestens 2.75rem (44 px), Felder mit 1rem Schrift (kein Zoomen unter iOS), Tafel
   als Liste, Knöpfe der Freigabe- und Rückfrage-Karten untereinander in voller Breite. Bestehende schmale Regeln stehen in agenten.css. */
@media (max-width: 48rem) {
  /* Fingergroße Ziele: Knöpfe, Felder, Auswahl und die Wege, die wie Knöpfe wirken */
  :where(#inhalt:has(.agd-fuss, .agb-seite), [class*="agb-"], [class*="agd-"], [class*="agh-"], [class*="agsb-"], [class*="agsd-"], [class*="agsf-"], [class*="agt-"], [class*="agtn-"], [class*="agv-"]) :is(button, .knopf, select, input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="file"])) { min-height: 2.75rem; }
  :is(.agt-etappe-wahl, .agd-oeffnen, .agd-upgrade, .agd-github, .agd-hilfe, .agd-ast-neu .agd-zeile) { display: inline-flex; align-items: center; min-height: 2.75rem; }
  /* PB-9782 Schritt 7: Wege der Routinen-Karte, dazu Pause und Zahnrad im Team-Kopf (dort sonst 2rem aus agenten_team.css) */
  .agt-routinen a, .agt-kopf-knoepfe .agt-pause button, .agt-kopf-knoepfe .agt-zahnrad.knopf, .agt-kopf-knoepfe .agt-mehr > summary.knopf { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .agd-ast-neu .agd-zeile { display: flex; }
  /* Felder mit 1rem Schrift, sonst vergrößert iOS die Seite beim Antippen; bei Radio und Checkbox ist das Label das Ziel */
  :where(#inhalt:has(.agd-fuss, .agb-seite), [class*="agb-"], [class*="agd-"], [class*="agh-"], [class*="agsb-"], [class*="agsd-"], [class*="agsf-"], [class*="agt-"], [class*="agtn-"], [class*="agv-"]) :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea) { font-size: 1rem; }
  :where(#inhalt:has(.agd-fuss, .agb-seite), [class*="agb-"], [class*="agd-"], [class*="agh-"], [class*="agsb-"], [class*="agsd-"], [class*="agsf-"], [class*="agt-"], [class*="agtn-"], [class*="agv-"]) :is(.agd-sch, label:has(> input[type="radio"], > input[type="checkbox"])) { display: flex; align-items: center; gap: var(--raum-2); min-height: 2.75rem; }
  /* Freigabe, Rückfrage und Bestätigung: Knöpfe untereinander, volle Breite; nichts ragt über den Rand */
  :where(#inhalt:has(.agd-fuss, .agb-seite), [class*="agb-"], [class*="agd-"], [class*="agh-"], [class*="agsb-"], [class*="agsd-"], [class*="agsf-"], [class*="agt-"], [class*="agtn-"], [class*="agv-"]) .dialog-knoepfe { display: flex; flex-direction: column; align-items: stretch; gap: var(--raum-2); }
  :where(#inhalt:has(.agd-fuss, .agb-seite), [class*="agb-"], [class*="agd-"], [class*="agh-"], [class*="agsb-"], [class*="agsd-"], [class*="agsf-"], [class*="agt-"], [class*="agtn-"], [class*="agv-"]) .dialog-knoepfe > :is(button, .knopf) { width: 100%; margin: 0; justify-content: center; text-align: center; }
  .agt-vorschlag-form { display: block; margin: 0 0 var(--raum-2); }
  .agt-vorschlag-form button { width: 100%; }
  /* Lange Wörter und Adressen brechen um; Kinder von Flex und Grid dürfen schmaler werden als ihr Inhalt */
  :where(#inhalt:has(.agd-fuss, .agb-seite), [class*="agb-"], [class*="agd-"], [class*="agh-"], [class*="agsb-"], [class*="agsd-"], [class*="agsf-"], [class*="agt-"], [class*="agtn-"], [class*="agv-"]) :is(.karte, .agd-zeile, .agt-etappe, .agt-karte, .agt-stufe) { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  :is(.agd-name, .agd-plan, .agt-bild, .agt-liste li) > * { min-width: 0; }
  .agt-bild > .agt-kreis { border-radius: var(--radius); padding: var(--raum-3); }
  /* Tafel als Liste: Spalten nacheinander, jede mit Trennlinie über der Überschrift */
  .agt-spalten { gap: 0; }
  .agt-spalte { padding: var(--raum-3) 0; border-top: 1px solid var(--rand); }
  .agt-spalte:first-child { border-top: 0; padding-top: 0; }
  .agt-spalte h3 { margin-bottom: var(--raum-2); }
  /* Kennzahlen-Tafel bleibt im Bild */
  .agd-kz-tafel { min-width: 0; width: min(22rem, calc(100vw - 2rem)); }
  /* Fußleiste: am Handy bricht sie auf mehrere Zeilen um und würde fest am Rand den Inhalt verdecken, darum fließt sie mit */
  .agd-fuss { position: static; gap: var(--raum-1) var(--raum-3); padding: var(--raum-2) var(--raum-3); }
  .agd-github { margin-left: 0; }
}

/* PB-8203: Smart-Kacheln oben auf dem Dashboard (E-24, E-27), Teil db_smart_kacheln. Vier Kacheln in einer Reihe (am Handy zwei),
   Mini-Zahnrad oben rechts (dezent, beim Darüberfahren und Fokus deutlich). Die Auswahl liegt als Overlay unter der Reihe über dem Inhalt, in Spalten,
   und blättert nie (G-6): kein overflow, was nicht passt, steht in zugeklappten Bereichen. Nur Farben aus basis.css. */
.sk { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--raum-3); margin: 0 0 var(--raum-4); padding: 0; list-style: none; }
.sk-kachel { padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); min-width: 0; overflow-wrap: anywhere; }
.sk-kachel h2 { margin: 0 0 var(--raum-2); font-size: var(--schrift-m); font-weight: 600; }
.sk-kachel p { margin: 0 0 var(--raum-1); }
.sk-wert { font-size: var(--schrift-zahl); line-height: 1.1; }
.sk-grau { color: var(--text-leise); background: var(--flaeche-leise); }
.sk-braucht { color: var(--text-leise); font-size: var(--schrift-s); }
.sk-vom-projekt { font-size: var(--schrift-xs); border: 1px solid var(--rand); border-radius: 999px; padding: 0 0.4em; }
.sk-grafik { display: block; width: 100%; height: 1.5rem; margin: var(--raum-1) 0; }
.sk-grafik polyline { fill: none; stroke: var(--akzent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sk-grafik rect { fill: var(--akzent); }
.sk-balken { display: block; width: 100%; }
.sk-liste { margin: 0; padding-left: 1.1em; font-size: var(--schrift-s); }

.sk-wahl { float: right; margin: -0.25rem -0.25rem 0 var(--raum-1); }
.sk-wahl > summary { list-style: none; cursor: pointer; padding: 0.2rem; border-radius: var(--radius); color: var(--text-leise); opacity: 0.55; }
.sk-wahl > summary::-webkit-details-marker { display: none; }
.sk-kachel:hover .sk-wahl > summary, .sk-wahl > summary:focus-visible, .sk-wahl[open] > summary { opacity: 1; color: var(--text); }
.sk-wahl > summary .sym { width: 1rem; height: 1rem; }
.sk-wahl-feld { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin-top: var(--raum-1); padding: var(--raum-3);
  background: var(--flaeche); color: var(--text); border: 1px solid var(--rand); border-radius: var(--radius);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--text) 14%, transparent); columns: 3 13rem; column-gap: var(--raum-4); }
.sk-wahl-feld > p { column-span: all; }
.sk-gruppe { break-inside: avoid; margin: 0 0 var(--raum-3); }
.sk-gruppe-titel, .sk-gruppe > summary { margin: 0 0 var(--raum-1); font-size: var(--schrift-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-leise); }
.sk-system { margin: var(--raum-2) 0 0; font-size: var(--schrift-s); font-weight: 600; }
.sk-eintraege { margin: 0; padding: 0; list-style: none; }
.sk-eintrag { display: block; width: 100%; text-align: left; padding: 0.2rem 0.3rem; border: 0; border-radius: var(--radius); background: none; color: inherit; font: inherit; font-size: var(--schrift-s); cursor: pointer; }
.sk-eintrag:hover, .sk-eintrag:focus-visible { background: var(--flaeche-leise); }
.sk-eintrag[aria-current="true"] { font-weight: 700; }
.sk-eintrag.sk-grau { background: none; }

@media (max-width: 759px) {
  .sk { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } /* PB-10590: breit teilen sich die Kacheln mit Zahl die ganze Reihe (ohne leeren Platz), am Handy zwei je Zeile */
  .sk > .sk-kachel:last-child:nth-child(odd) { grid-column: 1 / -1; } /* PB-10308: steht eine Kachel allein in der Zeile, nimmt sie die volle Breite */
  .sk-wahl-feld { columns: 2 9rem; }
}

/* PB-8203b: Smart-Kacheln in den Einstellungen (Seite einstellungen_smart_kacheln): je Kachel eine Zeile mit Wert und Knöpfen je Platz. */
.ske-plaetze { margin: 0 0 var(--raum-2); }
.ske-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--raum-3); margin: 0; padding: 0; list-style: none; }
.ske-kachel { padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); min-width: 0; overflow-wrap: anywhere; }
.ske-kachel p { margin: 0 0 var(--raum-1); }
.ske-setzen { display: flex; flex-wrap: wrap; gap: var(--raum-1); align-items: center; }
.ske-hier { font-size: var(--schrift-s); font-weight: 600; }
.ske-nur { font-size: var(--schrift-s); font-weight: 400; margin-left: var(--raum-1); }

/* PB-10731 (Ricco 04.12. 16:33): KI-Abo als oberste Kachel der rechten Spalte, eine Spalte, Abstand wie die Karten darunter. */
.sk.sk-rechts { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (min-width: 1100px) { .db .db-rechts > .sk-rechts { order: -2; } } /* über „Wartet auf Sie“ (order -1), wie die Reihe ohne Smart-Kacheln */

/* PB-8103 (E48, ENDSTAND 3): gemeinsame Leiste links neben dem Inhalt. Zugeklappt 3.5 rem breit mit Symbolen (Name als title); mit der Maus
   darüber oder dem Fokus darin legt sie sich schwebend über den Inhalt (er springt nicht). Angeheftet (rl-fest, Knopf mit den vier
   Quadraten, Cookie) steht sie offen und schiebt den Inhalt. Builder: immer zugeklappt. Blättert nie: keine Höhengrenze mit Rollbalken,
   die Zahl der Punkte begrenzt Rahmen\Leiste. Am Handy (unter 48 rem) bleibt die Tab-Leiste unten, die Leiste entfällt. */
.rl-rumpf { display: flex; align-items: flex-start; flex: 1; min-width: 0; }
.rl { position: sticky; top: 2.6rem; z-index: 15; flex: none; width: 3.5rem; align-self: stretch; background: var(--flaeche-leise); box-shadow: inset -1px 0 0 var(--rand); }
/* PB-9121b (9128, B15): .rl ist so hoch wie die Seite, .rl-innen nur eine Fensterhöhe; der Grund der Spalte selbst reicht bis unten. */
.rl-innen { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; width: 3.5rem; min-height: min(100%, calc(100vh - 2.6rem - 1px)); /* PB-10311: nie unter die Fußzeile (min mit der Höhe der Spalte); PB-9485: Kopf 2.6rem und 1 px Rand, sonst ist jede Seite 1 px zu hoch */ box-sizing: border-box; padding: var(--raum-2, 0.5rem); background: var(--flaeche-leise); border-right: 1px solid var(--rand); overflow: hidden; }
.rl-fest { width: 15rem; }
.rl-fest .rl-innen { width: 15rem; }
.rl:not(.rl-fest):not(.rahmen-zu):hover .rl-innen, .rl:not(.rl-fest):not(.rahmen-zu):focus-within .rl-innen { width: 15rem; }
.rl:not(.rl-fest):not(.rahmen-zu):hover .rl-innen, .rl:not(.rl-fest):not(.rahmen-zu):focus-within .rl-innen { box-shadow: 8px 0 28px rgba(0, 0, 0, 0.18); }
.rl ul { list-style: none; margin: 0; padding: 0; }
.rl a, .rl summary, .rl-quadrate button, p.rl-system { position: relative; display: flex; align-items: center; gap: 0.6rem; min-height: 2rem; padding: 0 0.55rem; border-radius: var(--radius); color: var(--text); text-decoration: none; white-space: nowrap; }
.rl summary { cursor: pointer; list-style: none; }
.rl summary::-webkit-details-marker { display: none; }
.rl-quadrate { margin: 0 0 0.25rem; }
.rl-quadrate button { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; }
.rl-quadrate button[aria-pressed="true"] { background: var(--akzent-leise); }
.rl-sym { flex: none; width: 1.25rem; height: 1.25rem; }
.rl-kopf .rl-text { font-size: var(--schrift-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-leise); }
.rl-kopf::after { content: "›"; margin-left: auto; color: var(--text-leise); }
.rl-gruppe[open] > .rl-kopf::after { transform: rotate(90deg); }
.rl-gruppe-verweis > .rl-kopf::after { content: none; } /* PB-9121b: Überschrift als Verweis, nichts zum Aufklappen */
p.rl-system { font-weight: 700; margin: 0; }
.rl a:hover, .rl summary:hover, .rl-quadrate button:hover { background: var(--akzent-leise); }
.rl a[aria-current="page"] { background: var(--akzent-leise); font-weight: 600; box-shadow: inset 3px 0 0 var(--akzent); }
.rl a:focus-visible, .rl summary:focus-visible, .rl-quadrate button:focus-visible { outline-offset: -3px; }
.rl-zahl { margin-left: auto; font-size: var(--schrift-xs); }
.rl-punkt { position: absolute; left: 0.35rem; top: 0.35rem; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--st-aus, #8a8f98); box-shadow: 0 0 0 2px var(--flaeche-leise); }
.rl-punkt-rot { background: var(--fehler); }
.rl-punkt-gelb { background: var(--warn-rand); }
.rl-punkt-gruen, .rl-punkt-gruen_aktiv { background: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .rl-innen { transition: width 0.15s ease; }
  .rl-punkt-gruen_aktiv { animation: rl-puls 1.6s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) { .rl-punkt-gruen_aktiv { outline: 1px dotted var(--ok); outline-offset: 2px; } }
@keyframes rl-puls { 50% { box-shadow: 0 0 0 4px var(--flaeche-leise); opacity: 0.55; } }
.rl-neu, .rl-alle { color: var(--text-leise); }
.rl-bald > summary { color: var(--text-leise); }
.rl-bald > summary .rl-sym { opacity: 0.55; }
.rl-bald-zeichen { margin-left: auto; font-size: var(--schrift-xs); border: 1px solid var(--rand); border-radius: 999px; padding: 0 0.4rem; }
/* PB-8626: Lange Namen vor "bald" brechen an Wortgrenzen um, die Pille bleibt ganz (vorher "bal" bei "Rechnungen & Angebote") */
.rl-bald > summary .rl-text { min-width: 0; white-space: normal; }
.rl-bald-zeichen { flex: none; }
.rl-bald-overlay { margin: 0.15rem 0.55rem 0.4rem; padding: 0.4rem 0.6rem; font-size: var(--schrift-s); white-space: normal; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
.rl-unten { margin-top: auto; padding-top: 0.5rem; border-top: 1px solid var(--rand); }
.rl-fuss { margin: 0.4rem 0.55rem 0; font-size: var(--schrift-xs); white-space: normal; color: var(--text-leise); }
.rl .rl-fuss a { display: inline; min-height: 0; padding: 0; color: var(--text-leise); }
/* Zugeklappt (nicht angeheftet, weder Maus noch Fokus, oder mit Esc geschlossen: rahmen-zu aus rahmen.js): nur Symbole; Texte bleiben für Vorlese-Programme. */
.rl:not(.rl-fest):not(:hover):not(:focus-within) :is(.rl-text, .rl-zahl, .rl-bald-zeichen, .rl-fuss, .rl-bald-overlay), .rl.rahmen-zu:not(.rl-fest) :is(.rl-text, .rl-zahl, .rl-bald-zeichen, .rl-fuss, .rl-bald-overlay) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rl:not(.rl-fest):not(:hover):not(:focus-within) .rl-kopf::after, .rl.rahmen-zu:not(.rl-fest) .rl-kopf::after { display: none; }
.rl-builder .rl-quadrate { padding: 0 0.55rem; min-height: 2rem; display: flex; align-items: center; }
/* PB-10311 (Soll Ricco 03.12.): Die Fußzeile der Seite liegt unter der Leiste und läuft über die volle Breite, die Linie oben auch (vorher um die Breite der Leiste eingerückt). */
@media (max-width: 47.99rem) {
  .rl { display: none; }
}
/* PB-8519 (alt PB-8507, Soll 2-fastmail): Leiste auf dem Grund der Fläche; im System-Modus stehen die Bereiche als hellgraue, abgerundete Insel.
   Der aktive Punkt ist überall ein weißes, abgerundetes Feld mit Rand in feldrand (erkennbar ohne Farbe; gegen die Insel hell 4,0:1, dunkel 3,3:1) und blauem Symbol statt des Balkens links. */
.rl, .rl-innen { background: var(--flaeche); }
.rl-punkt { box-shadow: 0 0 0 2px var(--flaeche); }
nav.rl-system .rl-liste { display: flex; flex-direction: column; gap: 0.15rem; margin: 0.35rem 0 0; padding: 0.25rem; border-radius: 0.75rem; background: var(--flaeche-leise); }
nav.rl-system .rl-liste .rl-punkt { box-shadow: 0 0 0 2px var(--flaeche-leise); }
/* PB-9856 (Bild 3, Soll-Ist C): ein abgesetzter Punkt steht unter seiner Gruppe auf dem Grund der Leiste, nicht in der Insel. */
nav.rl-system .rl-liste.rl-abgesetzt { margin-top: 0.6rem; background: transparent; }
nav.rl-system .rl-liste.rl-abgesetzt .rl-punkt { box-shadow: 0 0 0 2px var(--flaeche); }
.rl a[aria-current="page"] { background: var(--flaeche); box-shadow: 0 0 0 1px var(--feldrand), 0 1px 2px rgba(0, 0, 0, 0.06); }
.rl a[aria-current="page"] .rl-sym { color: var(--akzent); }
nav.rl-system .rl-liste a:hover { background: var(--flaeche); }
/* PB-9781 (Bild 5): Im System-Modus sind alle Gruppen offen; zugeklappt steht ihre Überschrift nur als feine Linie zwischen den Punkten. */
nav.rl-system:not(.rl-fest):not(:hover):not(:focus-within) .rl-gruppe > .rl-kopf, nav.rl-system.rahmen-zu:not(.rl-fest) .rl-gruppe > .rl-kopf { min-height: 0; height: 1px; padding: 0; margin: 0.4rem 0.55rem; border-radius: 0; background: var(--rand); overflow: hidden; }
/* Soll-Ist K4/K12 (Bild 1, 9&zu=1): Im Firmen-Modus steht zugeklappt zwischen Start und den Projekten nur eine feine Linie, nicht das Symbol der Überschrift „Projekte“ (sah aus wie ein zweites Start-Raster). Aufgeklappt bleibt die Überschrift als Verweis. */
.rl:not(.rl-fest):not(:hover):not(:focus-within) .rl-gruppe-verweis > .rl-kopf, .rl.rahmen-zu:not(.rl-fest) .rl-gruppe-verweis > .rl-kopf { min-height: 0; height: 1px; padding: 0; margin: 0.4rem 0.55rem; border-radius: 0; background: var(--rand); overflow: hidden; }
/* Soll-Ist BauBase (Fund 4): zugeklappt zeigt die Linie nichts von Symbol und Wort der Überschrift (sonst ragte ein Rest „··“ unter die Linie). */
nav.rl-system:not(.rl-fest):not(:hover):not(:focus-within) .rl-gruppe > .rl-kopf > *, nav.rl-system.rahmen-zu:not(.rl-fest) .rl-gruppe > .rl-kopf > *, .rl:not(.rl-fest):not(:hover):not(:focus-within) .rl-gruppe-verweis > .rl-kopf > *, .rl.rahmen-zu:not(.rl-fest) .rl-gruppe-verweis > .rl-kopf > * { display: none; }

/* PB-9126 (E62): Das Dashboard als ganze Ansicht nach der Vorlage templates/teile/kf_dashboard.php (kf_rahmen.css, Bild
   docs/produkt/kunden-frame/bilder/1-dashboard-hell.png). Gleiche Klassen wie bisher (db-*), kein zweiter Stil: kf_rahmen.css wird hier nicht
   eingebunden, die Maße sind übernommen. Nur große Fenster; das Handy bleibt wie in dashboard_handy.css. Farben nur über Tokens. */
@media (min-width: 1100px) {
  /* Kopf: der Satz steht direkt unter dem Gruß, das Datum rechts in derselben Zeile wie der Satz. */
  .db > .seitenkopf { position: relative; margin-bottom: 2px; }
  .db > .seitenkopf h1 { font-size: 22px; font-weight: 700; }
  .db > .seitenkopf .sk-zeile { position: absolute; right: 0; top: 100%; margin: 4px 0 0; font-size: 13px; color: var(--text-leise); }
  .db > .seitenkopf .sk-zeile > .sym { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; } /* PB-10312 (Bild 1): Kalender vor dem Datum */
  .db .db-lage { margin: 2px 0 16px; padding-right: 13rem; }
  .db .db-satz { font-size: 14px; color: var(--text-leise); }

  /* Drei Spalten 248 / Rest / 272, Karten mit Rand auf der grauen Seite. */
  .db .db-mitte:not(.db-mitte-breit), .db .db-mitte-breit { grid-template-columns: 248px minmax(0, 1fr) 272px; column-gap: 12px; }
  .db .karte, .db .db-karte, .db .db-agent, .db .db-lst, .db .db-wissen { border: 1px solid var(--rand); box-shadow: 0 1px 3px color-mix(in srgb, var(--text) 5%, transparent); }
  .db .db-links, .db .db-rechts { gap: 12px; }
  .db .db-links > .karte { margin-bottom: 0; } /* PB-9346: Abstand links nur über gap wie rechts (.karte aus bausteine.css bringt 16 px mit) */
  .db .db-mitte h2 { font-size: 14px; font-weight: 650; }

  /* Wissen: klein, Zahl und „privat“ unter dem Titel, Neu-Zeile, „bitte prüfen“ als Pille. */
  .db .db-wissen { padding: 10px 14px; }
  .db .db-wissen h2 { margin: 0; font-size: 14px; font-weight: 650; }
  .db .db-wissen > p.db-wissen-privat { display: block; margin: 2px 0 6px; font-size: 11.5px; }
  .db .db-wissen .db-wn-zahl { margin: 0 0 4px; font-size: 12px; }
  .db .db-wn-neu-zeile { margin: 0 0 6px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .db .db-wn-pruefen-knopf { margin: 0 0 6px; }
  .db .db-wn-pruefen-knopf .knopf { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 12px; border: 0; border-radius: 999px; background: var(--warn-bg); color: var(--text); font-size: 12px; font-weight: 650; }
  .db .db-wissen .db-wn-fuss { margin: 0; font-size: 12px; font-weight: 400; }

  /* Host-Chat links: Rand in leisem Akzent, Kopf mit Linie, eine Eingabe mit Senden daneben. */
  .db .db-links > .leise { margin: 0; font-size: 11.5px; line-height: 1.4; }
  .db .db-links > .db-agent { padding: 12px; border-color: color-mix(in srgb, var(--akzent) 35%, var(--rand)); font-size: 13px; }
  .db .db-links .agent-chat-kopf { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--rand); }
  .db .db-links .agent-chat-kopf h2, .db .db-links .agent-chat-kopf .agent-chat-titel { font-size: 13px; }
  .db .db-links .agent-chat-aufgabe { margin: 0; font-size: 11.5px; }
  .db .db-links .agent-chat-leer, .db .db-links .db-agent > p { margin: 0 0 8px; font-size: 12px; }
  /* Ricco 01.12.: der Host-Chat ist derselbe kompakte Baustein wie beim Architekten (projekt_dashboard.css): Feld mit 3 Zeilen, wächst mit,
     kein Griff, Senden-Pfeil unten rechts im Feld. Die Karte ist mindestens 420 px hoch, der Verlauf rollt, die Begrüßung steht als Blase. */
  .db .db-links .agent-chat-eingabe { margin: 0; }
  .db .db-links > .db-agent { min-height: 22rem; } /* PB-9485: 352 px wie Bild 1 vom 02.12. (vorher 420 px), damit es mit der Kennzahlen-Reihe ohne Blättern passt */
  .db:has(> .sk) .db-links > .db-agent { min-height: 0; } /* PB-10426: mit der Kennzahlen-Reihe nimmt der Chat den Rest der Spalte, nie mehr (Rand blieb unter den Mini Tools) */
  .db .db-links .db-agent-verlauf { flex: 0 1 auto; max-height: 28rem; overflow-y: auto; }
  .db .db-links .agent-chat-eingabe .feld { min-width: 0; margin: 0; }
  .db .db-links .agent-chat-eingabe label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .db .db-links .agent-chat-eingabe p { margin: 0; }
  .db .db-links .agent-chat-fuss > .agent-chat-senden { margin-left: auto; } /* Senden unten rechts im Feld */
  /* PB-10305 (Bild 1, freigegeben 02.12.): Eingabe einzeilig, Senden rechts daneben; das Feld wächst beim Schreiben bis 10 Zeilen.
     So bleibt die Fußzeile „Läuft über Ihr KI-Abo · … diese Woche“ auch bei 1280×720 sichtbar. */
  .db .db-links .agent-chat-eingabe { flex-direction: row; align-items: flex-end; gap: 8px; }
  .db .db-links .agent-chat-eingabe .feld { flex: 1 1 auto; }
  .db .db-links .agent-chat-eingabe textarea { min-height: calc(1lh + 0.5rem); }
  .db .db-links .agent-chat-fuss { flex: 0 0 auto; }
  /* PB-10316 (Bild 1): der Tasten-Hinweis bleibt für Vorleser (aria-describedby), steht aber nicht unter dem Feld (nicht im Bild). */
  .db .db-links .agent-chat-tasten { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  /* Projekte: flacher Bogen bis fünf Kacheln (feste Plätze wie die Vorlage), Zusammenfassung in der Mitte, Legende der Punkte darunter. */
  .db .db-projekte > h2 { text-align: center; font-weight: 600; color: var(--text-leise); }
  .db .db-kacheln.db-anordnung-bogen:is(.db-bogen-1, .db-bogen-2, .db-bogen-3, .db-bogen-4, .db-bogen-5) { position: relative; display: block; height: 226px; margin: 12px 0 0; }
  .db .db-kacheln.db-anordnung-bogen:is(.db-bogen-1, .db-bogen-2, .db-bogen-3, .db-bogen-4, .db-bogen-5) > .db-kachel { position: absolute; left: clamp(83px, var(--x), calc(100% - 83px)); top: var(--y); width: 166px; transform: translateX(-50%); }
  .db .db-kacheln.db-anordnung-bogen:is(.db-bogen-1, .db-bogen-2, .db-bogen-3, .db-bogen-4, .db-bogen-5)::before { content: ""; position: absolute; inset: 40px 14.5% 60px; border: 1.5px dashed var(--rand); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
  .db .db-bogen-1 > .db-kachel { --x: 50%; --y: 0; }
  .db .db-bogen-2 > .db-kachel:nth-child(1) { --x: 33%; --y: 0; } .db .db-bogen-2 > .db-kachel:nth-child(2) { --x: 67%; --y: 0; }
  .db .db-bogen-3 > .db-kachel:nth-child(1) { --x: 14.5%; --y: 112px; } .db .db-bogen-3 > .db-kachel:nth-child(2) { --x: 50%; --y: 0; } .db .db-bogen-3 > .db-kachel:nth-child(3) { --x: 85.5%; --y: 112px; }
  .db .db-bogen-4 > .db-kachel:nth-child(1) { --x: 33%; --y: 0; } .db .db-bogen-4 > .db-kachel:nth-child(2) { --x: 67%; --y: 0; }
  .db .db-bogen-4 > .db-kachel:nth-child(3) { --x: 14.5%; --y: 112px; } .db .db-bogen-4 > .db-kachel:nth-child(4) { --x: 85.5%; --y: 112px; }
  .db .db-bogen-5 > .db-kachel:nth-child(1) { --x: 33%; --y: 0; } .db .db-bogen-5 > .db-kachel:nth-child(2) { --x: 67%; --y: 0; }
  .db .db-bogen-5 > .db-kachel:nth-child(3) { --x: 12%; --y: 112px; } .db .db-bogen-5 > .db-kachel:nth-child(4) { --x: 88%; --y: 112px; } .db .db-bogen-5 > .db-kachel:nth-child(5) { --x: 50%; --y: 132px; }
  /* PB-9300 (Ricco 01.12., Bild 1): ab vier Kacheln (Termine ist eine davon) und in der Reihe steht das Netz in zwei Spalten, Neues Projekt
     mittig darunter, die Zahl der Projekte unter dem Netz. Feste Zeilenhöhe, damit die gestrichelten Linien die Mitten der Kacheln treffen. */
  .db .db-kacheln:is(.db-anordnung-bogen:is(.db-bogen-4, .db-bogen-5, .db-bogen-6), .db-anordnung-reihe) { --zs: 166px; --zh: 120px; --zl: clamp(24px, calc(100% - 2 * var(--zs) - 48px), 230px); --zr: 24px; position: relative; display: grid; grid-template-columns: repeat(2, var(--zs)); grid-auto-rows: var(--zh); justify-content: center; gap: var(--zr) var(--zl); height: auto; margin: 12px 0 0; overflow: visible; }
  .db .db-kacheln:is(.db-anordnung-bogen:is(.db-bogen-4, .db-bogen-5, .db-bogen-6), .db-anordnung-reihe) > .db-kachel { position: relative; left: auto; top: auto; bottom: auto; width: auto; transform: none; } /* bottom aus dem Bogen (dashboard.css) verschob die Kacheln */
  .db .db-kacheln:is(.db-anordnung-bogen:is(.db-bogen-4, .db-bogen-5, .db-bogen-6), .db-anordnung-reihe) > .db-kachel > a { box-sizing: border-box; height: 100%; }
  .db .db-kacheln:is(.db-anordnung-bogen:is(.db-bogen-4, .db-bogen-5, .db-bogen-6), .db-anordnung-reihe) > .db-kachel-neu:last-child { grid-column: 1 / -1; justify-self: center; width: var(--zs); }
  .db .db-kacheln:is(.db-anordnung-bogen:is(.db-bogen-4, .db-bogen-5, .db-bogen-6), .db-anordnung-reihe)::before { content: ""; position: absolute; z-index: -1; inset: calc(var(--zh) / 2) calc(50% - (var(--zs) + var(--zl)) / 2); border: 1.5px dashed var(--rand); border-radius: 0; }
  .db .db-kacheln:is(.db-anordnung-bogen:is(.db-bogen-4, .db-bogen-5, .db-bogen-6), .db-anordnung-reihe):has(> .db-kachel-neu:last-child)::before { bottom: calc(var(--zh) * 1.5 + var(--zr)); }
  .db .db-kacheln:is(.db-anordnung-bogen:is(.db-bogen-4, .db-bogen-5, .db-bogen-6), .db-anordnung-reihe):has(> .db-kachel-neu:last-child)::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: var(--zh); height: calc(var(--zh) / 2 + var(--zr)); border-left: 1.5px dashed var(--rand); }
  .db .db-projekte:has(.db-kacheln:is(.db-bogen-4, .db-bogen-5, .db-bogen-6)) .db-projekte-satz { order: 5; margin: 14px auto 0; max-width: none; }
  /* PB-9300: Termine-Kachel mit gezeichnetem Kalender (dashboard_soll.css), „Kommt bald“ blass wie die Mini Tools. */
  .db .db-kacheln .db-kachel.db-kachel-bald a { border-style: dashed; box-shadow: none; }
  .db .db-kacheln .db-kachel a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche); box-shadow: 0 1px 3px color-mix(in srgb, var(--text) 6%, transparent); text-align: center; }
  .db .db-kacheln .db-kachel-bild { flex: none; width: 100%; height: 62px; border: 0; border-radius: 8px; box-shadow: none; }
  .db .db-kacheln .db-kachel-name { max-width: 100%; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; white-space: normal; text-align: center; } /* PB-10306: umbrechen statt kürzen */
  .db .db-kacheln .db-kachel-zustand { line-height: 18px; font-size: 11px; }
  /* PB-10317 (Bild 1): der Zustand steht ab 1100 px im Namen („Homepage · Live“), die Pille nur noch für Vorleser */
  .db .db-kacheln .db-kachel .db-kachel-zustand { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .db .db-kacheln .db-kachel-live { display: inline; }
  .db .db-kacheln .db-kachel-wartet a { border: 2px solid var(--warn-rand); }
  .db .db-kacheln .db-kachel-wartet .db-kachel-bild { border: 0; }
  .db .db-kacheln .db-kachel-neu a { border: 1.5px dashed var(--rand); background: none; box-shadow: none; }
  .db .db-kacheln .db-kachel-neu .db-kachel-bild { background: none; }
  .db .db-projekte:has(.db-kacheln:is(.db-bogen-1, .db-bogen-2, .db-bogen-3)) .db-projekte-satz { position: relative; margin: -96px auto 84px; max-width: 40%; font-size: 15px; }
  .db .db-projekte > :is(.db-weiter, .db-wisch, .db-netz, p:has(#db-netz-alle)) { order: 6; }
  .db .db-projekte > .db-weiter { display: none; } /* B5 (Architekt 02.12. 20:44, Weg b, wie Bild 1): am Computer keine Wege-Zeilen unter dem Netz; Aufgaben und Wiederkehrende stehen auf /projekte, am Handy bleiben die Zeilen */
  .db .db-weiter-projekte { text-align: center; font-size: 12px; }

  /* Rechts: „Wartet auf Sie“ als dichte Liste mit Knopf rechts, ohne Kästen je Zeile. */
  .db .db-rechts > .db-agent { padding: 14px 16px; }
  .db .db-agent-eintrag { gap: 8px; margin: 0; padding: 9px 0; border: 0; border-top: 1px solid var(--rand); border-radius: 0; }
  .db .db-agent-symbol { display: none; }
  .db .db-agent-name { font-size: 13px; font-weight: 600; }
  .db .db-agent-unter { font-size: 12px; }
  .db .db-agent-knopf { min-height: 2.75rem; padding: 0 12px; border: 1px solid var(--akzent); border-radius: 8px; background: var(--flaeche); font-size: 12.5px; }
  .db .db-rechts .db-weiter, .db .db-agent-fuss { margin: 0; font-size: 12px; }
  .db .db-rechts > .db-agent > h2, .db .db-lst-kopf h2 { font-size: 14px; font-weight: 650; }
  .db .db-lst-seit, .db .db-lst-fuss { font-size: 12px; }
  .db .db-lst-p { font-size: 11px; }
  .db .db-reihe .db-karte, .db .db-lst { padding: 12px 16px; }

  /* PB-9702 Schritt 1 (Bild 1): die drei Spalten reichen bis zu den Mini Tools. Links wächst der Host-Chat, die Eingabe steht unten;
     in der Mitte stehen die Projekte mittig, die Legende unten; rechts stehen die Karten oben, die Verweise am Ende. */
  .db .db-mitte:not(.db-mitte-breit), .db .db-mitte-breit { align-items: stretch; }
  .db .db-links > .db-agent { display: flex; flex: 1 1 auto; flex-direction: column; }
  .db .db-links > .db-agent > .agent-chat-eingabe { margin-top: auto; }
  .db .db-projekte > .db-kacheln, .db .db-projekte > .db-kacheln.db-anordnung-bogen:is(.db-bogen-1, .db-bogen-2, .db-bogen-3, .db-bogen-4, .db-bogen-5) { margin-top: auto; }
  .db .db-projekte::after { content: ""; order: 7; margin-top: auto; } /* PB-10306: gleicher Leerraum unter dem Satz wie über der Insel, die Insel steht mittig (seit die Legende weg ist, saß sie unten) */
  .db .db-rechts { align-content: start; }

  /* PB-9702 Schritt 2 (Bild 1): „Wartet auf Sie“ mit der Zahl rechts, Knöpfe in einer Zeile; Leitstrahl: Wörter ohne Berührung, der
     laufende Schritt in Akzent; die Kachel, die wartet, trägt ihr Schild oben (siehe Kacheln::wartende). */
  .db .db-rechts > .db-agent > h2 { display: flex; justify-content: space-between; align-items: baseline; }
  .db .db-agent-zahl { color: var(--text-leise); font-size: 12px; font-weight: 400; }
  /* PB-10318 (Bild 1): Glocke vor dem Titel, Zahl rechts; darunter der Satz, woran gearbeitet wird; ohne Linkzeile im Fuß (wie B5: die Wege
     stehen in Glocke, Posteingang und Leiste, am Handy bleibt die Zeile) */
  .db .db-rechts > .db-agent > h2 { justify-content: flex-start; align-items: center; gap: 8px; }
  .db .db-rechts > .db-agent > h2 > .db-agent-zahl { margin-left: auto; }
  .db .db-agent-laeuft { margin: 0 0 8px; font-size: 12px; line-height: 1.45; }
  .db .db-rechts > .db-agent > .db-agent-fuss { display: none; }
  .db .db-agent-knopf { white-space: nowrap; }
  .db .db-projekte-zahl { display: block; color: var(--text); font-weight: 650; }
  .db .db-projekte-warten { display: block; font-size: 12px; }
  .db .db-lst-p { font-size: 10px; letter-spacing: -0.01em; }
  .db .db-lst-laufend { color: var(--akzent); }
  .db .db-kacheln .db-kachel-wartemarke { top: -9px; right: 8px; padding: 0 6px; border-color: var(--warn-rand); border-radius: 999px; background: var(--warn-bg); font-size: 11px; font-weight: 650; }

  /* PB-9702 Schritt 4 (Bild 1, B12/B13): das Datum steht auf der Höhe des Satzes (gemessen seit Schritt 5: Satz und Datum 99–120 px);
     der Knopf „KI-Schlüssel eintragen“ in der KI-Abo-Karte klein, Fingergröße bleibt. */
  .db > .seitenkopf .sk-zeile { margin-top: 6px; line-height: 21px; }
  /* PB-9485 (Bild 1 vom 02.12.): ohne die Zeile „Seit gestern“ steht das Datum auf der Höhe des Grußes, die leere Lage-Zeile nimmt keinen Platz. */
  .db:not(:has(.db-satz)) > .seitenkopf .sk-zeile { top: 50%; margin: 0; transform: translateY(-50%); }
  .db:not(:has(.db-satz)) .db-lage { margin: 0; } /* bleibt für Vorleser (Kennzahl, dashboard_soll.css) */
  /* PB-9702 Schritt 5 (Abnahme E40, PB-9122): bei 1240 × 900 ohne Blättern bis zu den Mini Tools; Satz dicht unter dem Gruß, Leiste flacher. */
  .db .db-lage { margin: -12px 0 0; }
  .db .db-leiste { min-height: 80px; } /* PB-9486: flacher wie Bild 1 vom 02.12. (vorher 92 px) */
  main:has(> .db) { padding-bottom: 8px; } /* PB-9486: mit der Kennzahlen-Reihe passt das Dashboard bei 1240 × 900 ohne Blättern */
  body:has(main > .db) .fuss { padding-top: 0.5rem; padding-bottom: 0.5rem; } /* PB-9486: Fußzeile dicht wie Bild 1 */
  .db > .sk { margin-bottom: 0; } /* PB-9702b: Abstand nur noch der eine Abstand des Gerüsts (16 px) */
  /* PB-9486 (Bild 1 vom 02.12.): Kennzahlen flach, Zahl 20 px, Innenabstand 8 px; Titel klein und leise, Grafik flach. */
  /* PB-9487 (Bild 1 vom 02.12.): AgentBase-Kachel rechts unten; c grau mit Schloss, b mit Nutzen und Knopf. */
  .db .db-ab { padding: 12px 16px; font-size: 13px; }
  .db .db-ab p { margin: 0 0 8px; }
  .db .db-ab-kopf { display: flex; align-items: center; gap: 8px; }
  .db .db-ab-kopf .sym { width: 18px; height: 18px; }
  .db .db-ab-marke { margin-left: auto; font-size: 12px; }
  .db .db-ab-punkte { margin: 0 0 10px; padding-left: 1.1em; }
  .db .db-ab-c { color: var(--text-leise); background: var(--flaeche-leise); }
  .db .db-ab-c a { color: var(--text-leise); font-weight: 600; }
  .db .db-ab-zahlen { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
  .db .db-ab-teams { margin: 0 0 8px; padding: 0; list-style: none; }
  .db .db-ab-teams li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
  .db .db-ab-team { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
  .db .db-ab-team .leise { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .db .db-ab-teams .knopf { padding: 4px 10px; font-size: 12px; }
  .db > .sk .sk-kachel { padding: 8px 12px; } /* ohne position: das Zahnrad-Overlay (.sk-wahl-feld) bleibt an der ganzen Reihe (VP) */
  .db > .sk .sk-kachel h2 { margin: 0 0 2px; font-size: 12px; font-weight: 500; color: var(--text-leise); }
  .db > .sk .sk-kachel p:not(.sk-wert) { margin: 0; font-size: 12px; }
  .db > .sk .sk-kachel p.sk-wert { margin: 0; }
  .db > .sk .sk-wert { font-size: 20px; line-height: 28px; }
  .db > .sk .sk-wert strong { font-weight: 700; }
  .db > .sk .sk-grafik { height: 18px; margin: 2px 0; }
  /* PB-10430 (Bild 1): Wert links groß, Verlauf klein rechts daneben (70×30), darunter die Veränderung; Plus grün; ohne Herkunftszeile
     (für Vorleser bleibt sie). Gilt für Linie und Säulen; das KI-Abo behält seinen Balken unten. */
  .db > .sk .sk-kachel:has(> .sk-grafik) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: end; }
  .db > .sk .sk-kachel:has(> .sk-grafik) > .sk-wahl { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; }
  .db > .sk .sk-kachel:has(> .sk-grafik) > h2 { grid-column: 1; grid-row: 1; }
  .db > .sk .sk-kachel:has(> .sk-grafik) > .sk-wert { grid-column: 1; grid-row: 2; }
  .db > .sk .sk-kachel:has(> .sk-grafik) > .sk-grafik { grid-column: 2; grid-row: 2; width: 70px; height: 30px; margin: 0; }
  .db > .sk .sk-kachel:has(> .sk-grafik) > .sk-unter { grid-column: 1 / -1; grid-row: 3; }
  .db > .sk .sk-quelle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .db > .sk .sk-plus { color: var(--ok); }
  /* PB-9702b (Bild 1): Leitstrahl-Karte dicht wie die Skizze: „seit …“ rechts neben dem Titel, Wege dicht unter dem nächsten Schritt. */
  .db .db-lst-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .db .db-lst-kopf h2 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .db .db-lst-kopf .db-lst-prozent { flex: none; }
  .db .db-lst-sym { margin-right: 6px; vertical-align: -2px; color: var(--akzent); }
  .db .db-lst-fuss + p { font-size: 13px; }
  /* PB-9702b (Bild 1): mit Maus die Knöpfe in „Wartet auf Sie“ 32 px hoch wie die Skizze (Ziel mindestens 24 px, WCAG 2.5.8); mit Finger bleiben 44 px. */
  @media (pointer: fine) { .db .db-agent-knopf { min-height: 32px; } }
  .db .db-lst > p { margin: 4px 0 0; }
  .db .db-lst-punkte { margin: 8px 0 4px; }
  .db .db-reihe .db-ki-schluessel summary.knopf { display: inline-flex; align-items: center; padding: 0 12px; font-size: 13px; }

  /* Mini Tools: eine Zeile, Titelblock links, Kacheln 40 px. */
  .db .db-leiste > ul { flex-wrap: nowrap; }
  .db .db-werkzeug, .db .db-weitere { flex: 1 1 0; min-width: 0; }
  .db .db-werkzeug .sym { width: 40px; height: 40px; padding: 11px; }
  .db .db-werkzeug-name { font-size: 12.5px; }
  .db .db-werkzeug-unter, .db .db-werkzeug .db-bald { font-size: 11px; }
  /* PB-9702 Schritt 3 (Bild 1): Trennstrich zwischen fertigen und „bald“, freigeschaltetes Werkzeug in Akzent statt Unterzeile,
     leise Griffe, „Weitere“ ohne gestrichelten Kasten. */
  /* PB-9299 (Ricco 01.12., Bild 1): der Rahmen umschließt Symbol, Name und ≡ (Knopf größer, ≡ oben rechts im Rahmen); das Symbol selbst ohne Kasten.
     Freigeschaltet: Rahmen in Akzent; „bald“: gestrichelt ohne Fläche. Der Trennstrich vor „bald“ entfällt, die Rahmen trennen. */
  .db .db-leiste > ul { gap: 6px; }
  .db .db-werkzeug { padding: 5px 8px 4px; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche); box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 8%, transparent); }
  .db .db-werkzeug .sym { width: 30px; height: 30px; padding: 6px; color: var(--text); border: 0; background: none; } /* PB-9483 (Soll paket-klein): Symbol in Textfarbe, Kachel 64 px */
  .db .db-werkzeug a, .db .db-werkzeug summary { gap: 4px; }
  /* PB-9483 (Soll paket-klein, H6 aus PB-9543): gestrichelt ist die Gruppe nach den ersten sechs (nicht kräftig); „bald“ ist blass (dashboard_soll.css). */
  .db .db-werkzeug:not(.db-werkzeug-kraeftig) { border-style: dashed; border-color: color-mix(in srgb, var(--text-leise) 75%, var(--flaeche)); background: transparent; box-shadow: none; }
  /* PB-9299b (VP B5): die gestrichelte Linie kräftiger (Rand eines Bedienelements, 3:1); die Marke „bald“ weg vom ≡ oben rechts. */
  .db .db-werkzeug .db-bald-pille { top: 18px; right: auto; left: calc(50% + 6px); transform: none; } /* PB-9483: runde Marke unten rechts am Symbol (wie das Schloss im Soll), nicht mehr über dem Rand und weg vom ≡ */
  .db .db-leiste > ul > .db-werkzeug { min-width: min-content; } /* das längste Wort („Unternehmensprofil“) behält Abstand zum Rahmen */
  .db .db-werkzeug-bald .sym { background: none; color: var(--text-leise); } /* PB-9483: „bald“ blass */
  .db .db-werkzeug .db-mt-menue { top: 3px; right: 3px; }
  .db .db-werkzeug .db-marke { top: 0; }
  .db .db-werkzeug:has(.db-werkzeug-unter.nur-leser) { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 12%, var(--flaeche)); }
  .db .db-werkzeug:has(.db-werkzeug-unter.nur-leser) .sym { color: var(--akzent); }
  .db .db-werkzeug:has(.db-werkzeug-unter.nur-leser) .db-werkzeug-name { color: var(--akzent); font-weight: 650; }
  .db .db-mt-menue > summary { opacity: 0.55; }
  .db .db-weitere a { border: 0; padding: 0; }
  /* Soll-Ist Bild 1 (soll-aktuell, 02.12.): Kacheln so breit wie ihr Inhalt (das längste Wort ohne Trennung, wenn Platz ist), der Rest
     der Zeile verteilt sich gleich; nach den ersten sechs (kräftig, Branchen::ERSTE) ein Abstand mit Trennstrich; „Weitere“ als
     eigene Kachel mit ⋯ über dem Wort. */
  .db .db-werkzeug, .db .db-weitere { flex: 1 1 auto; }
  .db .db-werkzeug-kraeftig + .db-werkzeug:not(.db-werkzeug-kraeftig) { margin-left: 13px; }
  .db .db-werkzeug-kraeftig + .db-werkzeug:not(.db-werkzeug-kraeftig)::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: -10px; border-left: 1px solid var(--rand); }
  .db .db-leiste .db-weitere a { box-sizing: border-box; height: 100%; justify-content: center; gap: 4px; padding: 6px 10px 5px; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche); color: var(--text); text-align: center; }
  .db .db-weitere .sym { width: 24px; height: 24px; stroke-width: 3; }
  /* PB-10391 (Fund Bau-Website 17:47): „Weitere (n)“ wird nie schmaler als sein Inhalt (bei 1100 px war es 16 px breit und lag über der
     letzten Kachel); unter 1240 px rücken die Kacheln dafür enger zusammen (gemessen kornblume 1100: 820 px Inhalt auf 794 px). */
  .db .db-leiste > ul > .db-weitere { min-width: min-content; }
  @media (max-width: 1239px) {
    .db .db-leiste > ul { gap: 4px; }
    .db .db-werkzeug { padding-left: 4px; padding-right: 4px; }
  }
}

/* PB-9486 (Architekt 02.12.: Fertig-Bedingung 1280 × 720 ohne Blättern): auf niedrigen Fenstern ist das Dashboard dichter. Kacheln flacher
   ohne Zustandswort (der Punkt mit Wort für Vorleser bleibt), Netz und Spalten oben ausgerichtet, Host-Chat ohne Mindesthöhe. */
@media (min-width: 1100px) and (max-height: 780px) {
  .db .db-kacheln:is(.db-anordnung-bogen:is(.db-bogen-4, .db-bogen-5, .db-bogen-6), .db-anordnung-reihe) { --zh: 76px; --zr: 12px; margin-top: 4px; }
  .db .db-kacheln .db-kachel-bild { height: 36px; }
  .db .db-kacheln .db-kachel-zustand { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* nur sichtbar verborgen: Vorleser hören den Zustand weiter, auch bei Termine (VP) */
  .db .db-links > .db-agent { min-height: 0; }
  .db .db-projekte-satz { margin-top: 8px; font-size: 14px; }
  .db > .seitenkopf h1 { font-size: 20px; }
  .db { row-gap: 8px; }
  .db .db-mitte { row-gap: 8px; }
  .db .db-links, .db .db-rechts { gap: 8px; }
  .db .db-leiste { min-height: 0; }
  .db .db-leiste > ul { padding: 2px 0; }
  .db .db-leiste li.db-werkzeug a, .db .db-leiste li.db-weitere a { padding-top: 0; padding-bottom: 0; }
  .db .db-werkzeug .sym { width: 28px; height: 28px; padding: 5px; }
  main:has(> .db) { padding-top: 8px; }
  .db .db-links > .db-agent { padding: 8px 12px; }
}
@media (min-width: 1100px) and (max-height: 780px) and (pointer: fine) {
  .db .db-wn-pruefen-knopf .knopf { min-height: 28px; } /* mit Maus reicht die kleinere Pille, die Fingergröße bleibt bei Touch */
}

/* PB-10233 (Nachmessung Bild 1, PB-9688): das Dashboard hat genau die Höhe des Fensters (wie die Zentrale, bauarbeiter.css). Die Mini Tools
   liegen unten am Fuß, auch bei 1440 × 1000; wird es eng (1280 × 720 mit AgentBase-Kachel), rollt nur die Spalte selbst, nie die Seite. */
@media (min-width: 1100px) and (min-height: 600px) {
  body:has(main > .db) { height: 100vh; height: 100dvh; }
  body:has(main > .db) :is(.rahmen, .rl-rumpf) { min-height: 0; }
  body:has(main > .db) .rl-rumpf { align-items: stretch; }
  main:has(> .db) { display: flex; flex-direction: column; min-height: 0; }
  .db { flex: 1 1 auto; min-height: 0; }
  .db .db-mitte { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .db .db-mitte > :is(.db-links, .db-projekte, .db-rechts) { min-height: 0; overflow-y: auto; }
}

/* PB-10316 (Bild 1), alle Breiten: Kopf „Ihr Host“ mit Zeichen, Punkt „bereit“ und gefüllter Marke „KI-Abo“ in einer Zeile; Fuß klein,
   ab 220 px Breite in einer Zeile, sonst bricht er zwischen Satz und Zahl um statt abzuschneiden. */
.db .db-links .agent-chat-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.db .db-links .agent-chat-kopf .agent-chat-aufgabe { margin: 0; }
.db .db-links .agent-chat-zeichen { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 8px; background: var(--wer-hand); color: var(--wer-hand-flaeche); }
.db .db-links .agent-chat-zeichen .sym { width: 1rem; height: 1rem; }
.db .db-links .agent-chat-marke { border-color: transparent; background: color-mix(in srgb, var(--akzent) 18%, transparent); color: var(--akzent); font-weight: 650; }
.db .db-links .db-agent > .agent-chat-ki { gap: 0.15rem 0.25rem; font-size: 10px; white-space: nowrap; }
.db .db-links .db-agent > .agent-chat-ki progress { flex: 0 0 1.5rem; width: 1.5rem; height: 0.25rem; }

/* PB-9127 (ENDSTAND 16): Start-Fenster über der Startseite und Karte „Ihr Start“. Ohne Skript vollständig; die Farben kommen aus basis.css (hell und dunkel). */
.sf-hinten { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: var(--raum-4, 1rem); background: rgba(10, 10, 14, 0.45); overflow-y: auto; }
/* PB-9547 (Bild 9, L1): die Startseite hinter dem Fenster ist unscharf; ohne Unterstützung im Browser bleibt die Abdunklung. */
.sf-hinten { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sf { position: relative; width: 100%; max-width: 54rem; max-height: 100%; overflow-y: auto; padding: 1.75rem; border: 1px solid var(--rand); border-radius: 1rem; background: var(--flaeche); color: var(--text); box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.25); }
.sf:focus { outline: none; } /* Fokus beim Öffnen: das Fenster selbst, kein Rahmen um alles */
.sf h2 { margin: 0.75rem 0 0.25rem; font-size: var(--schrift-l); font-weight: 500; } /* PB-10230: Bild 9, ruhiger Titel */
.sf h3 { margin: 0; font-size: var(--schrift-m); font-weight: 500; }
.sf p { margin: 0.2rem 0; font-size: var(--schrift-s); } /* PB-10230: Sätze 13 px wie Bild 9 */
.sf-zu { position: absolute; top: 1rem; right: 1rem; margin: 0; }
.sf-zu button { min-width: 2.75rem; min-height: 2.75rem; border: 0; border-radius: 50%; background: transparent; color: var(--text-leise); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.sf-zu button:hover { background: var(--flaeche-leise); }
.sf-host { padding-right: 3rem; }
/* PB-9127c (Bild 9): Funken in einer Farbmarke, „Ich bin Ihr Host.“ fett, Symbole vor Dauer und „gilt danach“, Pfeil im Hauptknopf */
.sf-host { display: flex; align-items: center; gap: 0.5rem; }
.sf-host-marke { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 0.45rem; background: var(--akzent); color: var(--akzent-text); }
.sf-host-marke .sym { width: 1rem; height: 1rem; }
.sf-host strong { font-weight: 500; }
/* PB-9547 (Bild 9, L2): nur „Ich bin Ihr Host.“ in Textfarbe, der Rest der Zeile leise. */
.sf-host-text { color: var(--text-leise); }
.sf-host-text strong { color: var(--text); }
.sf-fortschritt strong { font-weight: 500; }
.sf p.sf-mit-sym { display: flex; align-items: center; gap: 0.35rem; font-size: var(--schrift-xs); }
.sf-mit-sym .sym { width: 0.95em; height: 0.95em; }
.sf-schritt > .knopf { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--schrift-s); font-weight: 500; }
.sf-schritt > .knopf .sym { width: 1em; height: 1em; }
.sf-fortschritt { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; font-size: var(--schrift-s); }
.sf-striche { display: flex; flex: 1; gap: 0.25rem; }
.sf-strich { flex: 1; height: 0.25rem; border-radius: 0.25rem; background: var(--akzent-leise); }
.sf-strich-ok { background: var(--akzent); }
.sf-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.sf-schritt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--rand); border-radius: 0.75rem; background: var(--flaeche); }
.sf-haupt { border-color: var(--akzent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 18%, transparent); } /* PB-10230: leicht blauer Ring wie Bild 9 */
.sf-nr { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid var(--rand); border-radius: 50%; font-weight: 600; }
.sf-haupt .sf-nr { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.sf-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1.25rem; }
.sf-fuss form { margin: 0; }
.sf-fuss button { min-height: 2.75rem; border: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--schrift-s); font-weight: 400; cursor: pointer; padding: 0; }
.sf-fuss button:hover { text-decoration: underline; }
.sf-punkt { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ok); }
.db-start-karte .db-start-zeile { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.db-start-karte .sf-striche { max-width: 8rem; }
.db-leer-erstes { text-align: center; }
.db-start-satz { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin: -0.5rem 0 1rem; color: var(--text-leise); }
.db-start-satz strong { color: var(--text); }
.db .db-kachel-neu .db-erstes-bild { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
.db .db-kachel-neu .db-erstes-name { color: var(--text-leise); font-size: var(--schrift-s); font-weight: 500; }
/* PB-8579: Karte „Ihr Server“ mit vier Punkten, solange er eingerichtet wird */
.start-server .karte-zusatz { font-size: var(--schrift-s); font-weight: 400; margin-left: 0.5rem; }
/* PB-9345c: im Dashboard ohne doppelten Abstand oben (h2 aus basis.css) und unten (letzter Absatz), Innenabstand der Karte reicht */
.db .start-server > h2:first-child { margin-top: 0; }
.db .start-server > :last-child { margin-bottom: 0; }
.sp-stand { margin: 0 0 0.75rem; color: var(--text-leise); }
.sp-punkte { list-style: none; margin: 0; padding: 0; }
.sp-punkt { display: grid; grid-template-columns: 1.25rem 1fr auto; align-items: center; gap: 0.5rem; padding: 0.35rem 0; }
.sp-marke { width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 2px solid var(--rand); box-sizing: border-box; }
.sp-erledigt .sp-marke { background: var(--akzent); border-color: var(--akzent); }
.sp-laeuft .sp-marke { border-color: var(--akzent); box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 5px var(--akzent); }
.sp-laeuft .sp-name { font-weight: 600; }
.sp-erledigt .sp-zustand { color: var(--ok); font-weight: 600; }
.sp-laeuft .sp-zustand, .sp-offen .sp-zustand, .sp-offen .sp-name { color: var(--text-leise); }
@media (max-width: 40rem) {
  .sf-hinten { align-items: flex-start; padding: 0; }
  .sf { min-height: 100%; border-radius: 0; padding: 1.25rem 1rem; }
  .sf-schritt { grid-template-columns: auto 1fr; }
  .sf-schritt > .knopf, .sf-schritt > p.leise { grid-column: 1 / -1; justify-self: start; }
  .sf-fuss { flex-direction: column-reverse; align-items: flex-start; }
}
/* Soll-Ist K11 (Bild 9&zu=1): erledigte Punkte mit Häkchen, die Punkte durch eine senkrechte Linie verbunden (blau bis zum laufenden Punkt). */
.sp-marke { position: relative; display: grid; place-items: center; }
.sp-erledigt .sp-marke::after { content: "✓"; color: var(--bg); font-size: 0.6rem; font-weight: 700; line-height: 1; }
.sp-punkt:not(:last-child) .sp-marke::before { content: ""; position: absolute; left: 50%; top: calc(100% + 2px); width: 2px; height: 1.25rem; transform: translateX(-50%); background: var(--rand); }
.sp-erledigt:not(:last-child) .sp-marke::before { background: var(--akzent); }
/* PB-9977 (Ricco 30.11., „step by step“): erledigte Schritte ruhig mit Haken, spätere blass ohne Knopf; auf der Seite eines Schritts oben „Schritt n von m“ und der Weg zurück. */
.sf-erledigt .sf-nr { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.sf-erledigt .sf-nr .sym { width: 1rem; height: 1rem; }
.sf-erledigt h3, .sf-spaeter { color: var(--text-leise); }
.sf-spaeter .sf-nr { color: var(--text-leise); }
.start-schritt-kopf { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0 0 0.75rem; color: var(--text-leise); font-size: var(--schrift-s); }
/* PB-9359 (Sichtprüfung 02.12.): ohne Projekt stehen „Neues Projekt“ und „Ihr erstes Projekt“ zusammen in der Mitte der Fläche,
   nicht als Bogen-Kachel unten links (der Bogen braucht --n, das es ohne Projekt nicht gibt). */
.db .db-projekte > .db-kacheln.db-kacheln-leer { display: flex; justify-content: center; height: auto; margin: auto 0 var(--raum-3); }
.db .db-kacheln.db-kacheln-leer > .db-kachel { position: static; }
@media (min-width: 1100px) { .db .db-projekte > .db-kacheln-leer ~ .db-leer-erstes { margin-bottom: auto; } }

/* PB-9812 (Bild 13, ENT-74): Fenster „Neues Projekt“ über abgedunkeltem Grund, drei Schritte. Ohne Skript vollständig; was nur zur gewählten
   Kachel oder zum gewählten Weg gehört, blendet :has() ein. Ohne :has steht alles da. Farben aus basis.css (hell und dunkel). */
.np-hinten { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(10, 10, 14, 0.39); overflow-y: auto; } /* PB-10392 (Bild 13): Grund 0.39 wie das Soll */
/* PB-10240 (Bild 13): hinter dem Fenster der Kopf des Dashboards; PB-10392: ohne Unschärfe, im Soll ist der Gruß dahinter lesbar */
.np-kulisse { margin: 0 0 var(--abstand); opacity: 0.5; } /* PB-10534: Gruß dahinter nur blass (im Soll etwa 30 %: 0.5 mal Grund 0.39) */
.np-kulisse p { margin: 0; }
.np-kulisse-gruss { font-size: var(--schrift-xl); font-weight: 600; }
.np { position: relative; width: 100%; max-width: 45rem; max-height: 100%; overflow-y: auto; padding: 1.5rem; border: 1px solid var(--rand); border-radius: 1rem; background: var(--seite); color: var(--text); box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.25); }
.np .seitenkopf { margin: 0 0 1rem; padding-right: 2.5rem; } /* Platz für das × oben rechts */
.np-hinten .np h1 { margin: 0; font-size: 1.25rem; font-weight: 500; } /* PB-10229: Bild 13, Titel ruhig wie im Soll */
.np .sk-zeile { margin-top: 0.25rem; font-size: var(--schrift-s); }
.np-zu { position: absolute; top: 1rem; right: 1rem; display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; border-radius: 50%; color: var(--text-leise); font-size: 1.125rem; font-weight: 300; line-height: 1; text-decoration: none; }
.np-zu:hover, .np-zu:focus-visible { background: var(--flaeche-leise); }
.np-schritte { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.375rem; }
.np-schritt { display: flex; align-items: center; gap: 0.5rem; padding-top: 0.6rem; border-top: 3px solid var(--rand); color: var(--text-leise); font-size: var(--schrift-xs); }
.np-erledigt, .np-aktuell { border-top-color: var(--akzent); color: var(--text); }
.np-aktuell { color: var(--akzent); font-weight: 500; }
.np-nr { display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; border: 1px solid currentColor; border-radius: 50%; font-size: var(--schrift-s); }
.np-erledigt .np-nr { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.np-form { margin: 0; }
.np-standard { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; border: 0; }
.np fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.np-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 0.625rem; } /* PB-10392: alle Kacheln gleich hoch, 10 px Abstand */
.np-kachel, .np-weg { position: relative; display: flex; gap: 0.75rem; padding: 0.75rem; border: 1px solid var(--rand); border-radius: 0.75rem; background: var(--flaeche); cursor: pointer; }
.np-kachel input, .np-weg input { position: absolute; opacity: 0; }
.np-kachel:has(input:checked), .np-weg:has(input:checked) { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.np-kachel:has(input:focus-visible), .np-weg:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 2px; }
.np-kachel { align-items: center; }
.np-kachel-agentbase { color: var(--text); text-decoration: none; } /* PB-10392: Weg nach AgentBase in der Form einer Kachel */
.np-kachel-agentbase:hover, .np-kachel-agentbase:focus-visible { border-color: var(--akzent); } /* PB-10229: Symbol mittig zur Schrift, Kachel flach wie Bild 13 */
.np-kachel-text { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.875rem; }
.np-kachel-text strong { font-weight: 500; }
.np-kachel-text span { color: var(--text-leise); font-size: var(--schrift-xs); font-weight: 400; }
.np-sym { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; background: color-mix(in srgb, var(--akzent) 10%, var(--flaeche)); color: var(--akzent); } /* PB-10229: leicht blau wie Bild 13 */
.np-sym .sym { width: 1.1rem; height: 1.1rem; }
.np-infos { margin-top: 0.75rem; }
.np-info, .np-hinweis { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.5rem 0 0; padding: 0.75rem 1rem; border: 1px solid var(--rand); border-radius: 0.75rem; }
.np-info { margin-top: 0; color: var(--text-leise); font-size: var(--schrift-xs); line-height: 1.5; } /* PB-10392 (Bild 13): Info leise und klein */
.np-info .sym, .np-hinweis .sym { flex: none; width: 1rem; height: 1rem; margin-top: 0.15rem; color: var(--akzent); }
.np-hinweis { background: color-mix(in srgb, var(--ok) 12%, var(--seite)); border-color: transparent; }
.np-hinweis .sym { color: var(--ok); }
.np-hinweis-leise { background: transparent; border-color: var(--rand); }
.np-hinweis-leise .sym { color: var(--akzent); }
.np-wege { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 0.5rem; }
.np-weg { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0.75rem; }
.np-weg-text { color: var(--text-leise); font-size: var(--schrift-s); }
/* PB-9303: Wege, die noch nicht gehen, sichtbar gesperrt (nicht wählbar, „kommt bald“) */
.np-weg-bald { cursor: not-allowed; border-style: dashed; }
.np-bald { display: inline-block; padding: 0 0.45rem; border: 1px solid var(--rand); border-radius: 999px; color: var(--text-leise); font-size: var(--schrift-s); font-weight: 400; white-space: nowrap; }
/* PB-9306: Weiche bei „Website mitbringen“, zwei Wahlen nebeneinander, das Ziel als kleine Marke */
.np-weiche { grid-template-columns: 1fr 1fr; margin-top: 0.75rem; }
.np-weiche legend { margin-bottom: 0.5rem; font-weight: 600; }
.np-ziel { display: inline-block; margin-top: 0.25rem; padding: 0 0.45rem; border-radius: 999px; background: var(--akzent-leise); color: var(--akzent); font-size: var(--schrift-s); }
.np-repo-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.np-repo-zeile input { flex: 1; min-width: 14rem; }
.np-github { display: inline-flex; align-items: center; gap: 0.4rem; }
.np-github .sym { width: 1em; height: 1em; }
.np-beispiele { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.25rem 0 0; }
.np-chip { padding: 0.3rem 0.75rem; border: 1px dashed var(--rand); border-radius: 1rem; background: transparent; color: var(--text); font: inherit; font-size: var(--schrift-s); cursor: pointer; }
.np-chip:hover, .np-chip:focus-visible { border-color: var(--akzent); border-style: solid; }
.np-fuss { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem; margin-top: 0.875rem; padding-top: 0.6875rem; border-top: 1px solid var(--rand); font-size: var(--schrift-xs); }
.np-fuss .primaer { justify-self: end; display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--schrift-s); }
@media (pointer: fine) { .np-fuss .primaer { min-height: 2.25rem; } } /* PB-10392: mit Maus 36 px wie Bild 13, mit Finger bleibt die Fingergröße */
.np-fuss .primaer .sym { width: 1em; height: 1em; }
.np-zurueck { justify-self: start; min-height: 2.75rem; padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.np-zurueck:hover { text-decoration: underline; }
/* PB-11325: Schritt 4 (Prüfen und absenden) im Fenster: Zurück als Verweis, rechts Abo und Absenden */
a.np-zurueck { display: inline-flex; align-items: center; text-decoration: none; }
.np-fuss .rechts { justify-self: end; display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
@supports selector(:has(*)) {
  .np-info { display: none; }
  .np-form:has(input[name="kachel"][value="homepage"]:checked) .np-info-homepage,
  .np-form:has(input[name="kachel"][value="shop"]:checked) .np-info-shop,
  .np-form:has(input[name="kachel"][value="app"]:checked) .np-info-app,
  .np-form:has(input[name="kachel"][value="newsletter"]:checked) .np-info-newsletter,
  .np-form:has(input[name="kachel"][value="agenten"]:checked) .np-info-agenten,
  .np-form:has(input[name="kachel"][value="anderes"]:checked) .np-info-anderes,
  .np-form:has(input[name="kachel"][value="plattform"]:checked) .np-info-plattform,
  .np-form:not(:has(input[name="kachel"]:checked)) .np-info-agentbase { display: flex; } /* PB-10392: ohne Wahl erklärt die Info das Agenten-Team */
  .np-form:has(input[name="weg"]:not([value="neu"]):checked) .np-nur-neu,
  .np-form:has(input[name="weg"]:not([value="bestehend"]):checked) .np-nur-bestehend,
  .np-form:has(input[name="weg"]:not([value="website"]):checked) .np-nur-website { display: none; }
}
@media (max-width: 40rem) {
  .np-hinten { align-items: flex-start; padding: 0; }
  .np { min-height: 100%; border-radius: 0; padding: 1.25rem 1rem; }
  .np-kacheln { grid-template-columns: 1fr 1fr; }
  .np-wege { grid-template-columns: 1fr 1fr; }
}

/* PB-9210 (S1, ENT-79): Reiter "Skizzen" im Bauhost (Vorlage bauarbeiter_skizzen), Vorsilbe bsk-. Links die Liste je Repo, in der Mitte die
   Vorschau als Rahmen; Handy = schmaler Rahmen. Nur Farben und Abstände aus basis.css, hell und dunkel über die Variablen allein. */
.bsk-flaeche { display: grid; grid-template-columns: minmax(14rem, 18rem) 1fr; gap: var(--raum-4); align-items: start; }
.bsk-liste { display: flex; flex-direction: column; gap: var(--raum-3); }
.bsk-repo { padding: var(--raum-2) var(--raum-3); background: var(--flaeche-leise); border: 1px solid var(--rand); border-radius: 0.75rem; }
.bsk-repo h2 { margin: 0 0 var(--raum-1); font-size: var(--schrift-s); }
.bsk-repo ul { list-style: none; margin: 0; padding: 0; }
.bsk-repo li { display: flex; flex-direction: column; padding: var(--raum-1) 0; }
.bsk-repo a[aria-current="page"] { font-weight: 600; }
.bsk-zahl, .bsk-marke { color: var(--text-leise); font-size: var(--schrift-s); font-weight: 400; }
.bsk-mitte { display: flex; flex-direction: column; gap: var(--raum-2); min-width: 0; }
.bsk-mitte h2 { margin: 0; }
.bsk-schalter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); }
.bsk-schalter a { padding: var(--raum-1) var(--raum-2); border: 1px solid var(--rand); border-radius: 0.5rem; }
.bsk-schalter a[aria-current="true"] { background: var(--flaeche-leise); font-weight: 600; }
.bsk-rahmen { width: 100%; height: 78vh; border: 1px solid var(--rand); border-radius: 0.75rem; background: var(--flaeche); }
.bsk-rahmen.bsk-handy { width: 390px; max-width: 100%; height: 760px; align-self: center; }
@media (max-width: 52rem) { .bsk-flaeche { grid-template-columns: 1fr; } }
/* PB-9212a: rechts der Chat mit dem eigenen Architekten; ab mittlerer Breite unter der Vorschau. */
.bsk-flaeche:has(.bsk-chat) { grid-template-columns: minmax(14rem, 18rem) 1fr minmax(18rem, 24rem); }
.bsk-neu { font-size: var(--schrift-s); }
.bsk-chat { display: flex; flex-direction: column; gap: var(--raum-2); padding: var(--raum-2) var(--raum-3); background: var(--flaeche-leise); border: 1px solid var(--rand); border-radius: 0.75rem; }
.bsk-chat h2 { margin: 0; font-size: var(--schrift-s); }
.bsk-verlauf { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--raum-2); max-height: 50vh; overflow-y: auto; }
.bsk-verlauf li { padding: var(--raum-1) var(--raum-2); border: 1px solid var(--rand); border-radius: 0.5rem; background: var(--flaeche); }
.bsk-verlauf li.bsk-ich { margin-left: var(--raum-4); }
.bsk-verlauf li.bsk-arch { margin-right: var(--raum-4); }
.bsk-satz { margin: var(--raum-1) 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bsk-form { display: flex; flex-direction: column; gap: var(--raum-1); }
.bsk-form textarea { width: 100%; }
@media (max-width: 80rem) { .bsk-flaeche:has(.bsk-chat) { grid-template-columns: minmax(14rem, 18rem) 1fr; } .bsk-chat { grid-column: 1 / -1; } }
@media (max-width: 52rem) { .bsk-flaeche:has(.bsk-chat) { grid-template-columns: 1fr; } }
/* PB-9212d: Versionen unter der Vorschau */
.bsk-versionen h3 { margin: 0 0 var(--raum-1); font-size: var(--schrift-s); }
.bsk-versionen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--raum-1); overflow-wrap: anywhere; }

/* PB-9246 (Skizze marke-profil, Ricco 01.12.): Mini Tools Marke und Unternehmensprofil. Links die Karten, rechts was die Projekte zeigen;
   unter 1000 px untereinander. Nur Farben aus den Variablen des Portals. */
.mt-raster { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.1rem; align-items: start; }
.mt-haupt > .karte, .mt-haupt form > .karte { margin-bottom: 1rem; }
.mt-zeile { margin: 0 0 0.75rem; color: var(--text-leise); font-size: var(--schrift-s); }
.mt-seite { position: sticky; top: 1rem; }
.mt-seite .marke-vorschau { display: block; width: 100%; height: auto; }
.mt-farben { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; }
.mt-farbe { display: flex; align-items: center; gap: 0.6rem; margin: 0; }
.mt-farbe input[type="color"] { inline-size: 2.75rem; block-size: 2.75rem; padding: 0.15rem; border: 1px solid var(--rand); border-radius: 0.6rem; background: var(--flaeche); }
.mt-farbe label { display: grid; gap: 0.05rem; }
.mt-farbe-name { font-weight: 650; }
.mt-farbe code { color: var(--text-leise); font-size: var(--schrift-s); }
.mt-gut { margin: 0.9rem 0 0; color: var(--ok); font-weight: 600; font-size: var(--schrift-s); }
.mt-schriften, .mt-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem 1rem; }
.mt-schriften select, .mt-felder input { inline-size: 100%; }
@media (max-width: 1000px) {
  .mt-raster { grid-template-columns: minmax(0, 1fr); }
  .mt-seite { position: static; }
}
@media (max-width: 560px) {
  .mt-farben, .mt-schriften, .mt-felder { grid-template-columns: minmax(0, 1fr); }
}
/* PB-9246b: Unternehmensprofil, rechte Spalte „Das wissen Ihre Projekte“ */
/* PB-9627 (E67 H3): „Das wissen Ihre Projekte“ als kleine Seite: Fensterleiste mit drei Punkten, Kopf, Angaben in zwei Spalten. */
.mt-wissen-seite { margin: 0.6rem 0 0.9rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); overflow: hidden; }
.mt-wissen-leiste { block-size: 1.3rem; border-block-end: 1px solid var(--rand); background: radial-gradient(circle, var(--feldrand) 0.18rem, transparent 0.2rem) 0.4rem 50% / 0.6rem 0.6rem no-repeat, radial-gradient(circle, var(--feldrand) 0.18rem, transparent 0.2rem) 1.05rem 50% / 0.6rem 0.6rem no-repeat, radial-gradient(circle, var(--feldrand) 0.18rem, transparent 0.2rem) 1.7rem 50% / 0.6rem 0.6rem no-repeat, var(--flaeche-leise); }
.mt-wissen-name { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; margin: 0; padding: 0.6rem 0.75rem 0.4rem; }
.mt-wissen-tel { padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--akzent); color: var(--akzent-text); font-size: var(--schrift-s); }
.mt-wissen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 0.8rem; margin: 0; padding: 0.4rem 0.75rem 0.75rem; font-size: var(--schrift-s); }
.mt-wissen dt { color: var(--text-leise); }
.mt-wissen dd { margin: 0; overflow-wrap: anywhere; }
.mt-wissen-marke { display: block; inline-size: 100%; block-size: auto; margin: 0.6rem 0 0.9rem; } /* PB-9639: kleine Seite in den Farben der Marke */
.mt-nur-vorleser { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-fuellstand { display: grid; gap: 0.3rem; margin: 0 0 0.3rem; font-size: var(--schrift-s); font-weight: 600; }
.mt-fuellstand progress { inline-size: 100%; block-size: 0.5rem; accent-color: var(--ok); }
/* PB-9247 (ENT-89): Panel von unten über dem Dashboard (Teil db_mini_panel). Der Server zeichnet es nur mit ?tool=, CSS fährt es hoch;
   etwa drei Viertel der Höhe, oben rund, mit Griff; am Handy volle Höhe. Ohne Bewegung, wenn der Benutzer das so eingestellt hat. */
.mtp-hinten { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 10, 14, 0.5); }
.mtp-daneben { position: absolute; inset: 0; }
.mtp { position: relative; width: 100%; max-width: 60rem; max-height: 75vh; overflow-y: auto; padding: 0.75rem 1.5rem 1.5rem; border: 1px solid var(--rand); border-bottom: 0;
  border-radius: 1.25rem 1.25rem 0 0; background: var(--seite); color: var(--text); box-shadow: 0 -1rem 3rem rgba(0, 0, 0, 0.25); animation: mtp-hoch 0.28s ease-out; }
.mtp:focus { outline: none; }
.mtp-griff { display: block; inline-size: 3rem; block-size: 0.3rem; margin: 0 auto 0.75rem; border-radius: 1rem; background: var(--rand); }
.mtp-zu { position: absolute; top: 0.75rem; right: 0.75rem; display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem;
  border-radius: 50%; color: var(--text-leise); font-size: 1.5rem; line-height: 1; text-decoration: none; }
.mtp-zu:hover { background: var(--flaeche-leise); }
.mtp h2 { margin: 0 3rem 0.2rem 0; font-size: 1.4rem; }
.mtp-zeile { margin: 0 0 0.9rem; }
.mtp-gespeichert { margin: 0 0 0.9rem; color: var(--ok); font-weight: 600; }
.mtp-karte { margin: 0 0 0.9rem; padding: 0.9rem 1rem; border: 1px solid var(--rand); border-radius: 0.8rem; background: var(--flaeche); }
.mtp-karte legend, .mtp-karte h3 { padding: 0 0.25rem; font-weight: 650; }
.mtp-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0.5rem 0 0; }
@keyframes mtp-hoch { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .mtp { animation: none; } }
@media (max-width: 560px) {
  .mtp { max-height: 100vh; block-size: 100vh; border-radius: 0; padding: 0.75rem 1rem 1.25rem; }
}
/* PB-9673 (E65 T2/V5): „Neuer Kalender“ zugeklappt, sobald ein Kalender da ist; kurze Felder (Datum, Dauer) nicht über die ganze Karte. */
.termine-neu-zu > summary { cursor: pointer; }
.termine-neu-zu > summary h2 { display: inline; margin: 0; }
.termine-neu-zu[open] > summary { margin-bottom: var(--raum-3); }
.mt-kurz :is(input, select) { max-width: 16rem; }
/* PB-9672 (E65 U1): /werkzeuge als Raster wie die Kacheln, Gruppen „Für Sie bereit“ und „Kommt bald“. */
.wz-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--raum-3); margin-bottom: var(--abstand); }
.wz-kacheln > .karte { min-width: 0; margin: 0; }
.wz-kacheln > .karte:has(.bald-overlay[open]) { position: relative; z-index: 2; } /* offenes „Kommt bald“ liegt über der Nachbarkarte */
.wz-kacheln > .karte h3 { margin-top: 0; }
/* PB-9658 (E65 W3): Tabellen der Mini Tools (Statistik): Kopf bündig mit den Zellen, Linien zwischen den Zeilen, Zahlen rechts. */
.wz-tabelle { inline-size: 100%; border-collapse: collapse; }
.wz-tabelle :is(th, td) { padding: 0.5rem 0.75rem 0.5rem 0; border-block-end: 1px solid var(--rand); text-align: start; vertical-align: top; }
.wz-tabelle th { color: var(--text-leise); font-size: var(--schrift-s); font-weight: 600; }
.wz-tabelle :is(th, td):last-child { padding-inline-end: 0; text-align: end; font-variant-numeric: tabular-nums; }
/* PB-9641 (E65 Handy L1): Karten der Werkzeuge (seit PB-9672 h3 in .wz-kacheln). Überschrift oben ohne Rand; am Handy „Kommt bald“ knapp (Name, ein Satz, Stand). */
.wz-karte > :is(h2, h3):first-child { margin-top: 0; }
@media (max-width: 560px) {
  .wz-liste > .karte { margin-block: 0 0.6rem; }
  .wz-bald { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.75rem; align-items: baseline; padding: 0.65rem 0.9rem; }
  .wz-bald > * { grid-column: 1 / -1; }
  .wz-bald > :is(h2, h3) { grid-column: 1; grid-row: 1; margin: 0 0 0.2rem; font-size: var(--schrift-m); }
  .wz-bald > .bald-overlay { grid-column: 2; grid-row: 1; color: var(--text-leise); font-size: var(--schrift-s); }
  .wz-bald .bald-overlay-text { left: auto; right: 0; transform: none; }
  .wz-bald > p { margin-block: 0.15rem; font-size: var(--schrift-s); }
}
/* PB-9643 (E65 Handy L3): „anlegen“ (Kontakte, Termine, Dokumente, Mediathek) am Handy als Panel von unten, ohne Skript: zu, bis der
   Knopf auf die Überschrift springt (:target); „Schließen“ springt weg. Ohne :has bleibt das Formular offen wie breit. */
.wz-panel-zu { display: none; }
@media (max-width: 47.99rem) { /* PB-9665: gleiche Grenze wie die untere Leiste (anpassung.css) */
  .wz-panel:not(:has(> h2:target)) { display: none; }
  .wz-panel:has(> h2:target) { position: fixed; inset: auto 0 0; z-index: 20; max-block-size: 85vh; margin: 0; overflow-y: auto; border-radius: 1rem 1rem 0 0; padding-block-end: calc(1rem + env(safe-area-inset-bottom)); box-shadow: 0 -4px 24px color-mix(in srgb, var(--text) 22%, transparent); }
  .wz-panel:has(> h2:target) > h2:first-child { margin-top: 0; scroll-margin-top: 1rem; }
  .wz-panel:has(> h2:target) .wz-panel-zu { display: block; position: sticky; bottom: calc(-1rem - env(safe-area-inset-bottom)); margin: 0.75rem 0 0; background: var(--flaeche); text-align: center; }
  .wz-panel-zu a { display: inline-block; min-block-size: 2.75rem; padding: 0.7rem 1rem; }
}
/* L5: Knopf im Dateifeld der Panels im Stil unserer Knöpfe (wie PB-9626 beim Logo) */
.wz-panel input[type="file"]::file-selector-button { font: inherit; margin-inline-end: 0.6rem; padding: 0.3rem 0.8rem; border: 1px solid var(--feldrand); border-radius: var(--radius); background: var(--flaeche); color: var(--text); cursor: pointer; }
.wz-panel input[type="file"]::file-selector-button:hover { background: var(--flaeche-leise); }
/* PB-9657 (E65 W1, W4): breit Liste links, Anlegen rechts (380 px, bleibt beim Scrollen stehen); ohne :has eine Spalte wie bisher.
   Leere Zeilen des Rasters ohne Abstand (row-gap 0), die Karten bringen ihren Abstand selbst mit. */
@media (min-width: 1001px) {
  .wz-raster:has(> .wz-panel) { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 1.1rem; row-gap: 0; align-items: start; }
  .wz-raster:has(> .wz-panel) > * { grid-column: 1; }
  .wz-raster > .wz-panel { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 1rem; }
}
.dok-suche { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.dok-suche > label { flex-basis: 100%; }
.dok-suche > input { flex: 1 1 14rem; min-inline-size: 0; }
.wz-panel .feld:has(> input[type="checkbox"]) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.5rem; align-items: center; }
.wz-panel .feld > input[type="checkbox"] { margin: 0; }
.wz-panel .feld > .feld-hilfe { grid-column: 1 / -1; }
/* PB-9667 (E65 V1): Zeiten der Verfügbarkeit kompakt: je Zeitspanne „Tag von [..] bis [..]“ in einer Zeile, zwei Spannen je Tag nebeneinander. */
.vf-zeiten { display: grid; grid-template-columns: repeat(2, max-content); gap: 0.5rem 2rem; margin-block-end: 1rem; }
.vf-zeiten > .feld { display: grid; grid-template-columns: 7.5rem 5.5rem auto 5.5rem; align-items: center; gap: 0.5rem; margin: 0; }
.vf-zeiten > .feld > label { margin: 0; }
@media (max-width: 47.99rem) {
  .vf-zeiten { grid-template-columns: minmax(0, 1fr); }
  .vf-zeiten > .feld { grid-template-columns: minmax(0, 1fr) 5.5rem auto 5.5rem; }
}
/* PB-9668 (E65 V2): Haken links neben ihrer Beschriftung (Termine, Kontakt löschen), mehrere in einer Zeile; die Beschriftung ist die Trefferfläche. */
.wz-haken > label { display: inline-block; min-block-size: 2.75rem; margin: 0 0.9rem 0 0; padding: 0.6rem 0 0 0.35rem; font-weight: 400; }
.wz-haken-paar { display: inline-block; white-space: nowrap; }
.wz-haken-paar > label { display: inline-block; min-block-size: 2.75rem; margin: 0 0.9rem 0 0; padding: 0.6rem 0 0 0.35rem; font-weight: 400; }
:is(.wz-haken, .wz-haken-paar) > input[type="checkbox"] { inline-size: 1.1rem; block-size: 1.1rem; margin: 0; vertical-align: -0.2rem; accent-color: var(--akzent); }
/* PB-9669 (E65 V3): langes Formular rechts (Neuer Termin) läuft mit der Seite, damit sein Ende ohne eigenen Scroll-Balken erreichbar bleibt. */
@media (min-width: 1001px) { .wz-raster > .wz-panel.wz-panel-lang { position: static; } }
/* PB-9670 (E65 V4): Kontakt einzeln breit zweispaltig wie das Profil; schmaler eine Spalte in derselben Reihenfolge. */
@media (min-width: 1001px) {
  .wz-zwei { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 1.1rem; align-items: start; }
  .wz-zwei > div { min-inline-size: 0; }
}
/* PB-9579 (E67, Bild 3 M3/M5/M6): Seite der Marke wie im Soll. Grünes Band „Wird genutzt von“; Kartentitel innen (auch legend);
   Farben als vier große Flächen (die Fläche ist das Farbfeld), darunter Name und Wert; Schriften als Probe mit „Name · ändern“.
   Nur auf der Seite (.mt-haupt), das Panel des Dashboards bleibt kompakt. */
.mt-band { margin: 0 0 1rem; padding: 0.6rem 0.9rem; border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--flaeche)); border-radius: 0.6rem;
  background: color-mix(in srgb, var(--ok) 12%, var(--flaeche)); color: var(--text); font-size: var(--schrift-s); }
.mt-band > span[aria-hidden] { color: var(--ok); font-weight: 700; }
.mt-band-namen { color: var(--ok); }
.mt-band-leer { border-color: var(--rand); background: var(--flaeche); color: var(--text-leise); }
.mt-haupt fieldset.karte > legend { float: left; inline-size: 100%; margin: 0 0 0.35rem; padding: 0; font-size: var(--schrift-m); font-weight: 600; }
.mt-haupt fieldset.karte > legend + * { clear: both; }
.mt-haupt .mt-farben { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.mt-haupt .mt-farbe { flex-direction: column; align-items: stretch; gap: 0; overflow: hidden; border: 1px solid var(--rand); border-radius: 0.6rem; background: var(--flaeche); }
.mt-haupt .mt-farbe input[type="color"] { inline-size: 100%; block-size: 3.75rem; padding: 0; border: 0; border-bottom: 1px solid var(--rand); border-radius: 0; cursor: pointer; }
.mt-haupt .mt-farbe input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
/* PB-10493 (Soll-Ist 04.12., WCAG 1.4.11): Ring um die Fläche, damit ein Farbfeld nah an der Kartenfarbe (dunkel: Text #1F2430) sichtbar bleibt (≥ 3:1 zum Grund) */
.mt-haupt .mt-farbe input[type="color"]::-webkit-color-swatch { border: 1px solid color-mix(in srgb, var(--text) 55%, var(--flaeche)); border-radius: 0.6rem 0.6rem 0 0; }
.mt-haupt .mt-farbe input[type="color"]::-moz-color-swatch { border: 1px solid color-mix(in srgb, var(--text) 55%, var(--flaeche)); border-radius: 0.6rem 0.6rem 0 0; }
.mt-haupt .mt-farbe label { padding: 0.5rem 0.6rem 0.55rem; font-size: var(--schrift-s); }
.mt-haupt .mt-farbe-name { font-weight: 500; }
.mt-haupt .mt-schriften { gap: 0.75rem; }
.mt-schrift { padding: 0.75rem 0.9rem; border: 1px solid var(--rand); border-radius: 0.6rem; }
.mt-schrift p { margin: 0; }
.mt-schrift-art { font-size: var(--schrift-xs); }
.mt-probe { margin: 0.3rem 0 0.4rem; color: var(--text); }
.mt-probe-titel { font-size: 1.5rem; line-height: 1.25; }
.mt-probe-text { font-size: 1.0625rem; line-height: 1.35; }
/* Ähnliche Schrift des Geräts, bis die Schriften des Frames im Portal liegen (ANNAHME PB-9579) */
.mt-schrift-mulish { font-family: Mulish, "Segoe UI", system-ui, sans-serif; }
.mt-schrift-cormorant-garamond { font-family: "Cormorant Garamond", Garamond, Georgia, serif; }
.mt-schrift-ms-madi, .mt-schrift-mrs-saint-delafield { font-family: "Ms Madi", "Mrs Saint Delafield", "Segoe Script", "Brush Script MT", cursive; }
.mt-schrift-wahl > summary { display: inline-block; color: var(--text-leise); font-size: var(--schrift-xs); cursor: pointer; }
.mt-schrift-wahl > summary:hover { color: var(--akzent); }
.mt-schrift-wahl[open] > summary { margin-bottom: 0.4rem; }
.mt-haupt .mt-schriften + .mt-zeile { margin: 0.6rem 0 0; }
@media (max-width: 560px) {
  .mt-haupt .mt-farben { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* PB-9580 (Bild 3 M4): Logo groß links, rechts die Knöpfe und das Logo auf drei Flächen. */
.mt-haupt section.karte > h2, .mt-seite > h2 { margin: 0 0 0.35rem; font-size: var(--schrift-m); font-weight: 600; } /* wie die Titel der anderen Karten (Soll) */
.mt-logo-reihe { display: flex; align-items: flex-start; gap: 1rem; }
.mt-logo-gross { flex: none; inline-size: 4.5rem; block-size: 4.5rem; }
.mt-logo-rechts { display: grid; gap: 0.6rem; min-width: 0; }
.mt-logo-knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.mt-logo-knoepfe form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0; }
/* PB-10501: Dateifeld nur für Vorleser und Tastatur, sichtbar ist der Knopf „Bild auswählen“; der Fokus des Felds zeigt sich am Knopf; der Stand wechselt mit :valid */
.mt-logo-knoepfe .mt-datei { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-logo-knoepfe .mt-datei-knopf { cursor: pointer; }
.mt-logo-knoepfe .mt-datei:focus-visible + .mt-datei-knopf { outline: 3px solid var(--fokus); outline-offset: 2px; }
.mt-datei-stand { flex-basis: 100%; font-size: var(--schrift-s); }
.mt-datei-ja, .mt-datei:valid ~ .mt-datei-stand .mt-datei-nein { display: none; }
.mt-datei:valid ~ .mt-datei-stand .mt-datei-ja { display: inline; }
.mt-logo-varianten { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.mt-logo-varianten svg { display: block; inline-size: 2.125rem; block-size: 2.125rem; }
.mt-logo-hinweis, .mt-logo-regeln { margin: 0; font-size: var(--schrift-s); }
.mt-logo-regeln { margin-top: 0.75rem; }
.mt-logo-varianten rect { stroke: var(--rand); stroke-width: 1; } /* Rand auch für die dunkle Fläche auf dunkler Seite */
/* PB-9625 (E67 Handy H1): Reiter des Profils am Handy in einer Zeile, seitlich wischbar statt zwei Zeilen. */
@media (max-width: 560px) {
  .reiter:has(+ .mt-raster) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  /* PB-10528: Rand rechts blendet aus, damit man sieht, dass es weitergeht; der Abstand am Ende lässt den letzten Reiter klar stehen. */
  .reiter:has(+ .mt-raster) { padding-inline-end: 2rem; mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent); }
  .reiter:has(+ .mt-raster) a { flex: none; white-space: nowrap; }
}
/* PB-9626 (E67 Handy H2): am Handy volle Breite (seit PB-10501 der Knopf „Bild auswählen“ statt des Dateifelds). */
@media (max-width: 560px) {
  .mt-logo-knoepfe, .mt-logo-knoepfe form { inline-size: 100%; }
  .mt-logo-knoepfe .mt-datei-knopf, .mt-logo-knoepfe button { inline-size: 100%; max-inline-size: none; box-sizing: border-box; text-align: center; }
}
/* PB-10402 (Skizze marke-profil, Unternehmensprofil): Reiter mit Unterstrich, Felder als umrandete Werte in zwei Spalten,
   Öffnungszeiten als Raster, Leistungen als Chips, Ansprechpartner als Kärtchen, Band mit Pillen. */
.reiter:has(+ .mt-raster) { contain: inline-size; gap: 0.25rem; margin: 0 0 1.1rem; border-block-end: 1px solid var(--rand); }
.reiter:has(+ .mt-raster) a { margin-block-end: -1px; padding: 0.6rem 0.9rem; border-radius: 0; border-block-end: 2px solid transparent; font-weight: 600; }
.reiter:has(+ .mt-raster) a:hover { background: none; color: var(--akzent); border-block-end-color: var(--akzent); }
.mt-feldraster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0.5rem 0 0.9rem; }
.mt-feld { display: grid; gap: 0.3rem; align-content: start; }
.mt-feld-voll { grid-column: 1 / -1; }
.mt-feld dt { color: var(--text-leise); font-size: var(--schrift-s); font-weight: 650; }
.mt-feld dd, .mt-ein { margin: 0; min-block-size: 2.5rem; padding: 0.5rem 0.75rem; border: 1px solid var(--rand); border-radius: 0.55rem; background: var(--flaeche); overflow-wrap: anywhere; }
.mt-feld dd.mt-leer { color: var(--text-leise); }
.mt-ein { display: block; min-block-size: 2.1rem; padding-block: 0.3rem; }
.mt-knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.mt-zeiten { inline-size: 100%; border-collapse: separate; border-spacing: 0.6rem 0.35rem; margin: 0.25rem -0.6rem 0.6rem; }
.mt-zeiten th { inline-size: 6rem; text-align: start; font-weight: 600; }
.mt-zeiten .mt-zu { color: var(--text-leise); }
.mt-sonder { margin: 0 0 0.9rem; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.mt-chips li { padding: 0.3rem 0.8rem; border: 1px solid var(--rand); border-radius: 999px; background: var(--flaeche-leise); font-size: var(--schrift-s); }
.mt-chips .mt-chip-neu { border-style: dashed; background: none; }
.mt-chips .mt-chip-neu a { color: var(--akzent); text-decoration: none; }
.mt-personen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.mt-person { display: flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.6rem; border: 1px solid var(--rand); border-radius: 0.75rem; }
.mt-person > span:last-child { display: grid; }
.mt-person small { color: var(--text-leise); }
.mt-band-pille { display: inline-block; margin: 0 0.15rem; padding: 0.05rem 0.6rem; border: 1px solid var(--rand); border-radius: 999px; background: var(--flaeche); color: var(--text); font-weight: 600; }
@media (max-width: 560px) {
  .mt-feldraster, .mt-personen { grid-template-columns: minmax(0, 1fr); }
}
/* PB-10400: Bewertungen, Sterne als Reihe von Auswahlknöpfen */
.bew-sterne { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0 0 var(--abstand); border: 1px solid var(--feldrand); border-radius: var(--radius); }
.bew-sterne label { display: inline-flex; align-items: center; gap: 0.3rem; min-block-size: 2.75rem; }
/* PB-10622 (Soll-Ist 10612 Fund 1): Kennzahlen am Handy als Karte je Zeile; „Woher“ klein darüber, Kennzahl fett, Wert darunter, lange Wörter
   brechen um. So ragt keine Spalte aus der Karte (vorher war „Wert“ bei 390 px abgeschnitten). Ohne Skript. */
@media (max-width: 48rem) {
  .kz-tabelle thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .kz-tabelle, .kz-tabelle tbody, .kz-tabelle tr, .kz-tabelle td { display: block; }
  .kz-tabelle tr { padding-block: 0.6rem; border-block-end: 1px solid var(--rand); }
  .kz-tabelle td, .kz-tabelle td:last-child { padding: 0; border: 0; text-align: start; overflow-wrap: anywhere; }
  .kz-tabelle .kz-woher { color: var(--text-leise); font-size: var(--schrift-s); }
  .kz-tabelle .kz-name { font-weight: 600; }
}

/* PB-9313 (ENT-99, Bild 1 Schritt 4): Schnellmenü ≡ oben rechts an der Projektkachel, Panel-Inhalte (Hülle .mtp aus minitool.css, PB-9247),
   eigene Farbe der Kachel und der Statuspunkt „Architekten arbeiten“ mit Ring (Ricco 01.12., wie LIVE; „Entwurf“ ist hohl, bausteine.css). */
.db-kachel { position: relative; }
.db-kachel-menue { position: absolute; top: 0.15rem; right: 0.2rem; z-index: 3; }
.db-kachel-menue > summary { display: block; box-sizing: border-box; min-width: 24px; min-height: 24px; padding: 0.3rem 0.25rem; list-style: none; cursor: pointer; color: var(--text-leise); border-radius: 4px; }
.db-kachel-menue > summary::-webkit-details-marker { display: none; }
.db-kachel-menue > summary:hover, .db-kachel-menue[open] > summary { color: var(--akzent); }
.db-kachel-menue > summary:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.db-kachel-menue .db-mt-liste { top: 100%; bottom: auto; margin: 0.25rem 0 0; min-width: 14rem; }
.db .db-kacheln .db-kachel .db-kachel-menue .db-mt-liste a { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; width: auto; height: auto; padding: 0.3rem 0.75rem; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; color: var(--text); font-size: 0.8125rem; text-decoration: none; }
.db .db-kacheln .db-kachel .db-kachel-menue .db-mt-liste a:is(:hover, :focus-visible) { color: var(--akzent); background: var(--flaeche-leise); }
.db-kachel:has(.db-kachel-menue[open]) { z-index: 30; } /* das offene Menü liegt über den Nachbarkacheln */
.db-kachel-menue .db-mt-liste .sym { width: 1rem; height: 1rem; flex: none; }
.db-km-kopf { display: block; padding: 0.2rem 0.75rem 0.3rem; font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-leise); }
.db .db-kacheln .db-kachel .db-kachel-menue a.db-km-trenner { margin-top: 0.3rem; padding-top: 0.3rem; border-top: 1px solid var(--rand); }
.db-kacheln-aus { margin: var(--raum-2) 0 0; text-align: center; }
.dkm-reihe { margin: 0 0 var(--raum-3); padding: 0; list-style: none; display: grid; gap: 0.375rem; }
.dkm-reihe li { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.5rem; border: 1px solid var(--rand); border-radius: 8px; }
.dkm-reihe .dkm-diese { border-color: var(--akzent); }
.dkm-reihe-name { flex: 1 1 auto; }
.dkm-wahl { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0; }
.dkm-wahl label { display: inline-flex; align-items: center; gap: 0.35rem; }
.dkm-wahl .sym { width: 1.25rem; height: 1.25rem; }
.dkm-farbe::after { content: ""; width: 0.875rem; height: 0.875rem; border-radius: 50%; border: 1px solid var(--rand); background: var(--dkm-f, transparent); }
.dkm-farbe-blau, .db-kachel-farbe-blau { --dkm-f: var(--st-offen); }
.dkm-farbe-gruen, .db-kachel-farbe-gruen { --dkm-f: var(--st-fertig); }
.dkm-farbe-gelb, .db-kachel-farbe-gelb { --dkm-f: var(--st-arbeit); }
.dkm-farbe-rot, .db-kachel-farbe-rot { --dkm-f: var(--st-blockiert); }
.dkm-farbe-lila, .db-kachel-farbe-lila { --dkm-f: var(--wer-hand); }
.dkm-farbe-grau, .db-kachel-farbe-grau { --dkm-f: var(--st-aus); }
.db .db-kachel[class*="db-kachel-farbe-"] .db-kachel-bild { background: color-mix(in srgb, var(--dkm-f) 16%, var(--flaeche-leise)); color: var(--dkm-f); }
/* PB-9354 (Sichtprüfung 02.12.): die Marke „Wartet“ steht links neben ≡, sonst verdeckt das Menü ihr Wort (am Handy ganz, breit den Rand).
   ≡ hat mindestens 24 × 24 px (Fingergröße, WCAG 2.5.8). */
.db .db-kacheln .db-kachel-wartemarke { right: 2rem; }

/* PB-9436 (Soll Bild 1 „wissen-offen“, Teil 1): Panel „Was Ihr Host weiß“ über dem Dashboard. Hülle .mtp aus minitool.css (PB-9247);
   hier nur Breite, Kopf, Netz links und Seitenleiste rechts. Am Handy steht die Seitenleiste unter dem Netz, das Netz behält eine Mindestbreite und läuft seitlich. */
.mtp.wnp { max-width: 78rem; max-height: 88vh; }
.wnp-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; padding-right: 3.25rem; margin-bottom: 0.9rem; }
.wnp-kopf h2 { margin: 0; }
.wnp-zeile { margin: 0; flex: 1 1 16rem; }
.wnp-knoepfe { margin: 0; }
.wnp-flaeche { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1rem; align-items: start; }
.wnp-netz { margin: 0; padding: 0.5rem; overflow-x: auto; border: 1px solid var(--rand); border-radius: 0.8rem; background: var(--flaeche); }
.wnp-bild { display: block; inline-size: 100%; block-size: auto; }
.wnp-linie { stroke: var(--rand); stroke-width: 0.3; }
.wnp-ast { stroke: var(--akzent); stroke-opacity: 0.55; stroke-width: 0.5; }
.wnp-punkt { fill: var(--akzent); }
.wnp-mitte { fill: var(--akzent); stroke: var(--akzent-leise); stroke-width: 2; }
.wnp-an { stroke: var(--fokus); stroke-width: 1.2; }
.wnp-name, .wnp-astname { fill: var(--text); font-size: 3.4px; text-anchor: middle; paint-order: stroke; stroke: var(--flaeche); stroke-width: 1px; }
.wnp-astname { fill: var(--text-leise); font-weight: 600; }
.wnp-bild a:hover .wnp-punkt, .wnp-bild a:focus .wnp-punkt { stroke: var(--fokus); stroke-width: 1; }
.wnp-bild a:focus { outline: none; }
.wnp-bild a:focus-visible .wnp-name { text-decoration: underline; }
.wnp-seite { padding: 0.9rem 1rem; border: 1px solid var(--rand); border-radius: 0.8rem; background: var(--flaeche); }
.wnp-ort { margin: 0 0 0.3rem; color: var(--text-leise); font-size: var(--schrift-xs); font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.wnp-seite h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.wnp-auszug { margin: 0 0 0.6rem; }
.wnp-quelle { margin: 0 0 0.6rem; color: var(--ok); font-size: var(--schrift-s); }
.wnp-unter { margin: 1rem 0 0.4rem; color: var(--text-leise); font-size: var(--schrift-xs); letter-spacing: 0.04em; text-transform: uppercase; }
.wnp-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.wnp-chips a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.8rem; border: 1px solid var(--rand); border-radius: 0.5rem; color: var(--text); text-decoration: none; }
.wnp-chips a:hover, .wnp-chips a:focus-visible { border-color: var(--akzent); }
/* PB-9437: Gruppen-Knöpfe, Farbe je Gruppe (gleiche Farbe am Punkt im Knopf), Lücken gestrichelt, Fragen an den Host. Die Schrift
   bleibt in --text (Kontrast hängt nicht an der Farbe), Namen mit Rand in der Flächenfarbe, damit Linien sie nicht kreuzen. */
.wnp-gruppen { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.9rem; }
.wnp-gruppe { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0 0.9rem; border: 1px solid var(--rand); border-radius: 999px; color: var(--text); text-decoration: none; }
.wnp-gruppe::before { content: ""; inline-size: 0.6rem; block-size: 0.6rem; border-radius: 50%; background: var(--wnp-farbe, var(--akzent)); }
.wnp-gruppe.wnp-g-alles::before { display: none; }
.wnp-gruppe.wnp-g-luecken::before { background: transparent; border: 1.5px dashed var(--warn-text); }
.wnp-gruppe[aria-current] { border-color: var(--akzent); background: var(--akzent-leise); font-weight: 600; }
a.wnp-gruppe:hover, a.wnp-gruppe:focus-visible { border-color: var(--akzent); }
.wnp-g-firma { --wnp-farbe: var(--akzent); } /* gleiche Farben wie die Wissenslandkarte (PB-9270, wissen.css .wk-t-*) */
.wnp-g-leistungen { --wnp-farbe: var(--ok); }
.wnp-g-kunden { --wnp-farbe: var(--wer-hand); }
.wnp-g-marke { --wnp-farbe: var(--prio-hoch); }
.wnp-g-entscheidungen { --wnp-farbe: var(--text-leise); }
.wnp-g-sortiment { --wnp-farbe: var(--ok); } /* PB-9521 (vorher 9507): Gruppen aus den Daten; „ohne“ bleibt neutral */
.wnp-g-ablaeufe { --wnp-farbe: var(--prio-hoch); }
.wnp-g-ohne, .wnp-g-projekte, .wnp-g-team, .wnp-g-aufgaben, .wnp-g-wiederkehrend, .wnp-g-allgemein, .wnp-g-archiv { --wnp-farbe: var(--st-aus); }
.wnp-punkt.wnp-g-firma, .wnp-punkt.wnp-g-leistungen, .wnp-punkt.wnp-g-kunden, .wnp-punkt.wnp-g-marke, .wnp-punkt.wnp-g-entscheidungen,
.wnp-punkt.wnp-g-projekte, .wnp-punkt.wnp-g-team, .wnp-punkt.wnp-g-aufgaben, .wnp-punkt.wnp-g-wiederkehrend, .wnp-punkt.wnp-g-allgemein,
.wnp-punkt.wnp-g-archiv, .wnp-punkt.wnp-g-sortiment, .wnp-punkt.wnp-g-ablaeufe, .wnp-punkt.wnp-g-ohne { fill: var(--wnp-farbe); }
.wnp-luecke { fill: none; stroke: var(--warn-text); stroke-width: 0.6; stroke-dasharray: 1.2 0.9; }
.wnp-luecke-linie { stroke-dasharray: 1.2 1; }
.wnp-luecke-name { fill: var(--warn-text); }
.wnp-bild a:hover .wnp-luecke, .wnp-bild a:focus .wnp-luecke { stroke-width: 1; }
.wnp-frag { margin-top: 1rem; padding-top: 0.2rem; }
.wnp-frag form { margin: 0 0 0.4rem; }
.wnp-frage { inline-size: 100%; min-height: 2.75rem; padding: 0.4rem 0.8rem; border: 1px solid var(--rand); border-radius: 0.5rem; background: var(--seite); color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.wnp-frage:hover, .wnp-frage:focus-visible { border-color: var(--akzent); }
/* PB-9438: Zeitleiste unter dem Netz, Stufen wie Reiter einer Leiste. */
.wnp-zeit { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.5rem 0 0; padding: 0.25rem; border: 1px solid var(--rand); border-radius: 999px; }
.wnp-zeit-stufe { flex: 1 1 8rem; display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 0.8rem; border-radius: 999px; color: var(--text); text-decoration: none; }
.wnp-zeit-stufe[aria-current] { background: var(--akzent); color: var(--akzent-text); font-weight: 600; }
a.wnp-zeit-stufe:hover, a.wnp-zeit-stufe:focus-visible { background: var(--flaeche-leise); }
.wnp-zeit-leer { margin: 0.5rem 0 0; }
/* PB-9439 (Bild 1): Karte „Was Ihr Host weiß“ auf dem Dashboard, Mini-Graph und eine Zeile mit „bitte prüfen“ und „Karte öffnen“.
   Nur Grundwerte; Maße nach Bild 1 setzt Bau-Dashboard (dashboard_soll.css / dashboard_vorlage.css, später geladen). */
.db-wn-mini-link { display: block; margin: 0.4rem 0; border-radius: 9px; background: color-mix(in srgb, var(--akzent) 6%, var(--flaeche)); }
.db-wn-mini { display: block; inline-size: 100%; block-size: 56px; }
.db-wn-mini-linie { stroke: var(--rand); stroke-width: 0.6; }
.db-wn-mini-punkt { fill: var(--akzent); opacity: 0.75; }
.db-wn-mini-mitte { opacity: 1; }
.db-wn-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.75rem; margin: 0.4rem 0 0; }
.db-wn-oeffnen { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 0.3em; min-height: 2.75rem; font-weight: 600; text-decoration: none; }
.db-wn-oeffnen:hover, .db-wn-oeffnen:focus-visible { text-decoration: underline; }
/* PB-9522: „Das stimmt nicht“ klappt unter den Knöpfen auf (details, ohne Skript). */
.wnp-stimmt { margin: 0.5rem 0 0; }
.wnp-stimmt > summary { list-style: none; cursor: pointer; }
.wnp-stimmt > summary::-webkit-details-marker { display: none; }
.wnp-stimmt form { display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.wnp-stimmt textarea { inline-size: 100%; min-height: 5rem; font: inherit; }
/* PB-9523: „Host lernt gerade“ oben im Kopf und als Liste in der Seitenleiste. */
.wnp-knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wnp-lernt-knopf[aria-current] { border-color: var(--akzent); background: var(--akzent-leise); }
.wnp-lernt { display: flex; flex-direction: column; gap: 0.6rem; margin: 0 0 0.8rem; padding: 0; list-style: none; }
.wnp-lernt li { overflow-wrap: anywhere; }
@media (max-width: 47.99rem) {
  .mtp.wnp { max-height: 100vh; }
  .wnp-flaeche { grid-template-columns: 1fr; }
  .wnp-bild { min-inline-size: 40rem; } /* lesbare Namen und treffbare Punkte; das Netz läuft seitlich, die Seitenleiste nicht */
}
/* PB-10315 (Bild 1): Kopf mit Buch-Symbol, Titel und Zahl rechts, Schloss vor „privat und geschützt“, Graph größer und farbig je Gruppe,
   Lücken gestrichelt, „Neu: …“ sichtbar, „bitte prüfen“ als kleine Pille und „Karte öffnen“ als eigene Zeile. Fingergröße bleibt
   bei Touch; die kleineren Maße gelten nur mit Maus. */
.db .db-wissen .db-wn-kopf { display: flex; align-items: center; gap: 8px; }
.db .db-wissen .db-wn-kopf h2 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 14px; }
.db .db-wissen .db-wn-symbol { flex: none; inline-size: 22px; block-size: 22px; padding: 4px; border-radius: 6px; background: color-mix(in srgb, var(--akzent) 16%, transparent); color: var(--akzent); }
.db .db-wissen .db-wn-kopf .db-wn-zahl { flex: none; margin: 0; font-size: 12px; color: var(--text-leise); }
.db .db-wissen .db-wn-kopf .db-wn-zahl strong { font-weight: 500; }
.db .db-wissen .db-wn-zahl-wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* Vorleser hören „48 Notizen im Wissen Ihrer Firma“ */
.db .db-wissen > p.db-wissen-privat { display: flex; align-items: center; gap: 4px; margin: 2px 0 6px 30px; font-size: 11.5px; }
.db .db-wissen .db-wn-schloss { inline-size: 11px; block-size: 11px; flex: none; }
.db .db-wissen .db-wn-mini { block-size: 90px; }
.db .db-wissen .db-wn-mini-linie { stroke: color-mix(in srgb, var(--text-leise) 45%, transparent); stroke-width: 0.35; }
.db .db-wissen .db-wn-mini-punkt { fill: var(--wnp-farbe, var(--akzent)); opacity: 1; }
.db .db-wissen .db-wn-mini-mitte { fill: var(--akzent); }
.db .db-wissen .db-wn-mini-luecke { fill: none; stroke: var(--warn-text); stroke-width: 0.5; stroke-dasharray: 1 0.8; }
.db .db-wissen .db-wn-mini-luecke-linie { stroke-dasharray: 1 0.9; }
.db .db-wissen > p.db-wn-neu-zeile { display: block; margin: 6px 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db .db-wissen > p.db-wn-pruefen-knopf { margin: 0 0 4px; }
.db .db-wissen .db-wn-pruefen-knopf .knopf { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--warn-bg); color: var(--warn-text); font-size: 11.5px; font-weight: 500; }
.db .db-wissen .db-wn-zeile { justify-content: flex-start; margin: 0; }
.db .db-wissen .db-wn-oeffnen { margin-inline-start: 0; font-size: 12px; font-weight: 400; }
@media (pointer: fine) {
  .db .db-wissen .db-wn-pruefen-knopf .knopf { min-height: 24px; }
  .db .db-wissen .db-wn-oeffnen { min-height: 24px; }
}

/* PB-9605 (E73, Soll 01-dashboard): Bühne von BauBase. Regel aus dem Grilling: Leiste → Chat → Inhalt. Die Chat-Spalte klappt ohne
   Skript ein (details/summary, Griff „‹“). Keine sichtbaren Scroll-Balken (Vision): Spalten scrollen nur bei Bedarf und ohne Balken (scrollbar-width: none; kein eigener Webkit-Balken, ScrollBalkenTest). */
.bbase-buehne { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; gap: var(--raum-4); min-height: calc(100vh - 15rem); }
/* PB-9607 (Bildvergleich 01-dashboard): die Chat-Spalte reicht bis zur Fußleiste, die Fußleiste steht am unteren Rand. */
.bbase-inhalt { min-width: 0; }
/* PB-9794 (Soll-Ist 10253, Soll 01/06/12/14): Die Bühne nutzt die volle Breite, wie main:has(> .bd) bei den Buildern. */
main:has(> .bbase-buehne) { max-width: none; }
/* PB-9793 (Soll-Ist 10253): Der Inhalt steht im DOM vor der Chat-Spalte (Lesereihenfolge, Handy zuerst Inhalt); am Rechner stellt das Raster den Chat links. */
.bbase-buehne > .bbase-chat { grid-column: 1; grid-row: 1; }
.bbase-buehne > .bbase-inhalt { grid-column: 2; grid-row: 1; }
.bbase-chat { position: relative; display: flex; }
.bbase-chat-griff { position: absolute; top: var(--raum-2); right: var(--raum-2); z-index: 2; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--rand); border-radius: 50%; background: var(--flaeche); color: var(--text-leise); cursor: pointer; list-style: none; }
.bbase-chat-griff::-webkit-details-marker { display: none; }
.bbase-chat-griff:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.bbase-chat:not([open]) .bbase-chat-griff { position: static; transform: rotate(180deg); }
.bbase-chat-spalte { display: flex; flex-direction: column; gap: var(--raum-3); width: 23rem; height: 100%; max-height: calc(100vh - 15rem); overflow-y: auto; scrollbar-width: none; padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.bbase-chat-kopf { display: grid; grid-template-columns: auto 1fr; column-gap: var(--raum-2); align-items: center; padding-right: var(--raum-5); }
.bbase-chat-kopf .bbase-chat-titel { grid-column: 2; margin: 0; font-size: 1rem; font-weight: 600; } /* PB-9792 (10250): Titel als Absatz, damit das h1 der Seite die erste Überschrift ist */
.bbase-chat-kopf p { grid-column: 2; margin: 0; font-size: var(--schrift-xs); }
.bbase-chat-leer { margin: 0; padding: var(--raum-3); border: 1px dashed var(--rand); border-radius: var(--radius); }
.bbase-chat-fuss { margin: auto 0 0; font-size: var(--schrift-xs); }
@media (max-width: 64rem) {
  .bbase-buehne { grid-template-columns: minmax(0, 1fr); }
  .bbase-buehne > .bbase-chat, .bbase-buehne > .bbase-inhalt { grid-column: 1; grid-row: auto; }
  .bbase-buehne { min-height: 0; }
  .bbase-chat-spalte { width: auto; height: auto; max-height: none; }
}
/* PB-9609 (Soll 06-mein-team): Mein Team, je Agent eine Karte mit Kürzel, Name und Aufgabe. */
.bbase-team { margin-top: var(--raum-4); }
.bbase-team h2 { font-size: 1rem; margin: 0 0 var(--raum-2); }
.bbase-team-marke { font-size: var(--schrift-xs); color: var(--text-leise); font-weight: normal; }
.bbase-team-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--raum-3); margin: 0; padding: 0; list-style: none; }
.bbase-team-karte { display: grid; grid-template-columns: auto 1fr; column-gap: var(--raum-2); align-items: center; padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.bbase-team-name { font-weight: 600; }
.bbase-team-punkt { font-size: var(--schrift-xs); font-weight: normal; } /* PB-9610: Zustand des Teams neben dem Namen */
.bbase-team-leer { padding: var(--raum-3); border: 1px dashed var(--rand); border-radius: var(--radius); }
/* PB-9612 (Soll 04/05): Repo verbinden. Zähler des Pakets leise, „Paket voll“ als Karte mit Schloss-Farbe, Formular schmal. */
.bbase-repo-paket { color: var(--text-leise); font-size: var(--schrift-xs); }
.bbase-repo-voll { padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche-leise); }
.bbase-repo-form { max-width: 36rem; }
.bbase-repo-zugang { font-size: var(--schrift-xs); color: var(--text-leise); }
/* PB-9767 (Soll 14): Einstellungen › Verbindungen. Karte mit Zeilen je Repo: Buchstabe, Name, Adresse, Zustand. */
.bbase-karte { margin-top: var(--raum-4); padding: var(--raum-4); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.bbase-karte h2 { margin: 0; font-size: 1rem; }
.bbase-leise { margin: var(--raum-1) 0 0; font-size: var(--schrift-xs); color: var(--text-leise); }
.bbase-unterkopf { margin: var(--raum-3) 0 var(--raum-2); font-size: var(--schrift-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-leise); }
.bbase-verbindungen { display: grid; gap: var(--raum-2); margin: 0; padding: 0; list-style: none; }
.bbase-verbindung { display: grid; grid-template-columns: auto minmax(8rem, 12rem) 1fr auto; gap: var(--raum-3); align-items: center; padding: var(--raum-2) var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); }
.bbase-verbindung code { overflow-wrap: anywhere; font-size: var(--schrift-xs); }
.bbase-markiert { border-color: var(--akzent); }
.bbase-buchstabe { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 1px solid var(--rand); border-radius: 0.375rem; font-size: var(--schrift-xs); font-weight: 600; }
.bbase-zustand-gut { color: var(--st-fertig); font-size: var(--schrift-xs); }
.bbase-zustand-offen { color: var(--prio-hoch); font-size: var(--schrift-xs); }
@media (max-width: 40rem) { .bbase-verbindung { grid-template-columns: auto 1fr; } .bbase-verbindung code, .bbase-verbindung > span:last-child { grid-column: 2; } }
/* PB-9769: Mitarbeiter-Zugänge, eine Zeile je Konto. */
.bbase-zugaenge { display: grid; gap: var(--raum-2); margin: var(--raum-3) 0; padding: 0; list-style: none; }
.bbase-zugaenge li { display: flex; align-items: center; gap: var(--raum-2); }
/* PB-9770 (Soll 01): Dashboard-Hülle. Chips für Team und Kennzahlen in einer Zeile, Karten für Ziel und Plan; kurz, das Dashboard scrollt nie. */
.bbase-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); margin: var(--raum-3) 0 0; padding: 0; list-style: none; }
.bbase-chip { display: inline-flex; align-items: center; gap: var(--raum-1); padding: var(--raum-1) var(--raum-2); border: 1px solid var(--rand); border-radius: 999px; font-size: var(--schrift-xs); }
.bbase-kennzahlen .bbase-chip { color: var(--text-leise); }
.bbase-plan-leer { border-style: dashed; }
/* PB-9771 (Bildvergleich 01/14): kein Leerraum unter dem letzten Absatz einer Karte. */
.bbase-karte > :last-child { margin-bottom: 0; }
/* PB-9774 (Soll 01/02): Dashboard mit Plan. Vorhaben-Auswahl als details (ohne Skript), Ziel mit Fortschritt, Etappen als Spalten; jede
   Karte zeigt höchstens vier Schritte, der Rest als Satz, damit das Dashboard nie scrollt. */
.bbase-vorhaben-wahl { position: relative; margin-bottom: var(--raum-2); }
.bbase-vorhaben-wahl > summary { display: flex; align-items: baseline; gap: var(--raum-2); cursor: pointer; list-style: none; }
.bbase-vorhaben-wahl > summary::-webkit-details-marker { display: none; }
.bbase-vorhaben-wahl > summary:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.bbase-vorhaben-name { margin: 0; font-size: 1.5rem; }
.bbase-vorhaben-liste { position: absolute; z-index: 2; min-width: 22rem; padding: var(--raum-2) var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.bbase-vorhaben-liste ul { margin: 0; padding: 0; list-style: none; }
.bbase-vorhaben-liste a { display: block; padding: var(--raum-1) var(--raum-2); border-radius: var(--radius); }
.bbase-vorhaben-liste a[aria-current="page"] { font-weight: 600; background: var(--flaeche-leise); }
.bbase-fortschritt { display: grid; gap: var(--raum-1); max-width: 20rem; }
.bbase-fortschritt progress { width: 100%; height: 0.5rem; accent-color: var(--st-fertig); }
.bbase-etappen { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--raum-3); margin: var(--raum-4) 0 0; padding: 0; list-style: none; }
.bbase-etappe { display: flex; flex-direction: column; gap: var(--raum-2); padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.bbase-etappe h3 { display: flex; align-items: center; gap: var(--raum-2); margin: 0; font-size: 1rem; }
.bbase-etappe-laeuft { border-color: var(--prio-hoch); }
.bbase-etappe-vorschlag { border-style: dashed; }
.bbase-etappe-zustand { margin: 0; font-size: var(--schrift-xs); color: var(--text-leise); }
.bbase-schritte { display: grid; gap: var(--raum-2); margin: 0; padding: 0; list-style: none; }
.bbase-schritt { display: grid; grid-template-columns: 1.75rem 1fr auto; gap: var(--raum-2); align-items: center; padding: var(--raum-2); border: 1px solid var(--rand); border-radius: var(--radius); font-size: var(--schrift-xs); }
.bbase-schritt small { color: var(--text-leise); }
.bbase-schritt-erledigt small { color: var(--st-fertig); }
.bbase-schritt-wartet { border-color: var(--akzent); }
.bbase-schritt-wartet small { color: var(--akzent); }
.bbase-schritt-in_arbeit small { color: var(--prio-hoch); }
/* PB-9775 (Soll 12): Auslieferungen, je Repo eine Karte mit Server, Version und Prüfung; Auswahl als Chips (aktuelle hervorgehoben). */
.bbase-chips a.bbase-chip[aria-current="page"] { border-color: var(--akzent); font-weight: 600; }
.bbase-ausl-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--raum-3); margin: 0; padding: 0; list-style: none; }
.bbase-ausl-karten h2 { display: flex; align-items: center; gap: var(--raum-2); }
.bbase-ausl-werte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--raum-2); margin: var(--raum-3) 0 0; }
.bbase-ausl-werte div { padding: var(--raum-2); border: 1px solid var(--rand); border-radius: var(--radius); }
.bbase-ausl-werte dt { font-size: var(--schrift-xs); text-transform: uppercase; color: var(--text-leise); }
.bbase-ausl-werte dd { margin: 0; }
/* PB-9777 (Soll 12): Verlauf der Lieferungen, eine Zeile je Lieferung; rot gestoppte hervorgehoben. */
.bbase-verlauf { display: grid; gap: var(--raum-2); margin: var(--raum-3) 0 0; padding: 0; list-style: none; }
.bbase-verlauf-tag h3 { margin: var(--raum-2) 0 0; }
.bbase-lieferung { display: grid; grid-template-columns: 3rem 1.75rem 1fr auto auto auto; gap: var(--raum-2); align-items: center; padding: var(--raum-2); border: 1px solid transparent; border-radius: var(--radius); font-size: var(--schrift-xs); }
.bbase-lieferung small { color: var(--text-leise); }
.bbase-lieferung-rot { border-color: var(--prio-hoch); }
@media (max-width: 40rem) { .bbase-lieferung { grid-template-columns: 3rem 1fr; } .bbase-lieferung > :nth-child(n+3) { grid-column: 2; } }
/* PB-9779 (Soll 14/15): Einstellungen mit Reiter-Leiste links (Anker ohne Skript), Karten rechts; schmal untereinander. */
.bbase-einst { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--raum-4); align-items: start; }
.bbase-einst-karten > .bbase-karte:first-child, .bbase-einst-karten > .meldung:first-child { margin-top: 0; }
.bbase-reiter { padding: var(--raum-2); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.bbase-reiter ul { display: grid; gap: var(--raum-1); margin: 0; padding: 0; list-style: none; }
@media (max-width: 48rem) { .bbase-einst { grid-template-columns: minmax(0, 1fr); } }
/* PB-9787 (Soll 13): „Zurück auf vorige Version“ an der Live-Lieferung, unter dem Titel in der Textspalte. */
.bbase-zurueck, .bbase-uebernehmen { margin-top: var(--raum-1); } /* PB-9788: „Übernehmen“ an einer vorgeschlagenen Etappe */
/* PB-9791: Arbeitsbereiche der Agentur, je Kundenfirma eine Karte mit Name und „Öffnen“. */
.bbase-arbeitsbereiche { display: grid; gap: var(--raum-2); margin: 0; padding: 0; list-style: none; }
.bbase-arbeitsbereiche > li { display: flex; justify-content: space-between; align-items: center; gap: var(--raum-2); margin: 0; }
/* PB-10225 (Soll 08 bis 11): Soll-Ist-Vergleich. Bühne links, Abweichungen rechts; nebeneinander zwei Bilder, im Umschalten ein Bild
   (gedrückt halten zeigt das Ist, nur CSS), Bilder skalieren in die Spalte. Schmal: alles untereinander. */
.bbase-vgl-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-3); }
.bbase-vgl-leiste .knopf { margin: var(--raum-3) 0 0 auto; }
.bbase-vgl-wert { display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-3); padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.bbase-vgl-wert strong { font-size: 1.5rem; }
.bbase-vgl-wert meter { flex: 0 1 16rem; }
.bbase-vgl-marke { font-size: var(--schrift-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.bbase-vgl { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: var(--raum-4); align-items: start; margin-top: var(--raum-4); }
.bbase-vgl-buehne { display: grid; gap: var(--raum-3); padding: var(--raum-3); border-radius: var(--radius); background: repeating-linear-gradient(135deg, var(--flaeche-leise) 0 10px, transparent 10px 20px); }
.bbase-vgl-nebeneinander { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bbase-vgl-bild { margin: 0; padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.bbase-vgl-soll { border-color: var(--ok); }
.bbase-vgl-bild figcaption { margin-bottom: var(--raum-2); font-size: var(--schrift-xs); }
.bbase-vgl-bild img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.bbase-vgl-handy .bbase-vgl-bild img { max-width: 24rem; margin: 0 auto; }
.bbase-vgl-zeigt-soll .bbase-vgl-als-ist, .bbase-vgl-zeigt-ist .bbase-vgl-als-soll { display: none; }
.bbase-vgl-zeigt-soll:active .bbase-vgl-als-soll { display: none; }
.bbase-vgl-zeigt-soll:active .bbase-vgl-als-ist { display: block; }
.bbase-vgl-abw { padding: var(--raum-3); border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); }
.bbase-vgl-abw h2 { margin: 0 0 var(--raum-2); font-size: 1rem; }
.bbase-vgl-liste { margin: 0; padding: 0; list-style: none; }
.bbase-vgl-liste li { display: grid; grid-template-columns: auto 1fr; column-gap: var(--raum-2); margin-top: var(--raum-3); padding: var(--raum-3); }
.bbase-vgl-liste li p { margin: 0; }
.bbase-vgl-wahl { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--raum-2); }
.bbase-vgl-liste li .bbase-vgl-wahl { margin-top: var(--raum-2); }
.bbase-vgl-nr { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--fehler); color: var(--flaeche); font-size: var(--schrift-xs); font-weight: 700; }
.bbase-vgl-abw button[disabled] { opacity: .6; cursor: not-allowed; } /* Hülle ohne Schreibweg: sichtbar aus */
.bbase-vgl-passt { border-color: var(--ok); }
.bbase-vgl-passt .bbase-vgl-nr { background: var(--ok); }
@media (max-width: 80rem) {
  .bbase-vgl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 48rem) {
  .bbase-vgl-nebeneinander { grid-template-columns: minmax(0, 1fr); }
}
/* PB-9795 (Soll-Ist 10253, Soll 08 bis 11): Art und Ansicht als Segment-Knöpfe statt Chips; die Bühne gestreift wie im Soll. */
.bbase-vgl-seg { gap: 0; }
.bbase-vgl-seg li + li .bbase-chip { border-left: 0; }
.bbase-vgl-seg .bbase-chip { border-radius: 0; padding: var(--raum-1) var(--raum-3); text-decoration: none; color: var(--text); }
.bbase-vgl-seg li:first-child .bbase-chip { border-radius: var(--radius) 0 0 var(--radius); }
.bbase-vgl-seg li:last-child .bbase-chip { border-radius: 0 var(--radius) var(--radius) 0; }
.bbase-chips.bbase-vgl-seg a.bbase-chip[aria-current="page"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
/* PB-9796 (Soll-Ist 10253, Soll 14): Reiter mit Symbol und Zahl, ohne Unterstreichung; Karten im Raster, Verbindungen über die ganze Breite. */
.bbase-reiter li > a { display: flex; align-items: center; gap: var(--raum-2); padding: var(--raum-2); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.bbase-reiter a:hover, .bbase-reiter a:focus-visible { background: var(--flaeche-leise); }
.bbase-reiter .bbase-reiter-zahl { margin-left: auto; }
.bbase-einst-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--raum-3); align-items: start; }
.bbase-einst-karten > .bbase-karte { margin-top: 0; }
.bbase-einst-karten > .bbase-karte:first-of-type, .bbase-einst-karten > .meldung { grid-column: 1 / -1; }
/* PB-9799 (Bild mit Daten aus 9798): Das Kürzel des Agenten passt in seine Spalte (1.75 rem) und verdeckt den Text daneben nicht. */
.bbase-schritt .kt-initialen, .bbase-lieferung .kt-initialen { width: 1.75rem; height: 1.75rem; min-width: 0; font-size: 0.625rem; }
/* PB-10262 (Soll 01): Repo-Chips des Dashboards rechtsbündig unter dem Kopf. */
/* PB-10343 (Soll-Ist 9800, Rahmen): Am Rechner ist jede BauBase-Seite genau so hoch wie das Fenster, die Seite scrollt nie. Die Fußleiste
   (Plätze, Server, Upgrade, GitHub) steht fest unten über die ganze Breite; Inhalt und Chat scrollen nur in sich, ohne sichtbaren Balken.
   Die Zeile mit Impressum, Datenschutz und Bedingungen bleibt, schmal darunter. Am Handy bleibt der Fluss wie bisher. */
@media (min-width: 64.01rem) {
  body.mit-leiste:has(main > .bbase-buehne) { height: 100vh; min-height: 0; overflow: hidden; }
  body:has(main > .bbase-buehne) > .rahmen { flex: 1 1 auto; min-height: 0; }
  body:has(main > .bbase-buehne) .rl-rumpf { align-items: stretch; min-height: 0; }
  main:has(> .bbase-buehne) { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding-bottom: 0; }
  main:has(> .bbase-buehne) > .bbase-buehne { flex: 1 1 auto; min-height: 0; }
  .bbase-buehne > .bbase-inhalt { min-height: 0; overflow-y: auto; scrollbar-width: none; }
  .bbase-chat-spalte { max-height: none; }
  main:has(> .bbase-buehne) > :is(.agd-fuss, .bbase-fuss-leer) { flex: none; position: static; margin: var(--raum-2) 0 0; }
  body:has(main > .bbase-buehne) > .fuss { flex: none; padding-block: 0.15rem; }
}
/* PB-10344 (Soll-Ist 9800, Soll 01): Dashboard-Feinschliff, nur Variablen (hell und dunkel). Lila wie die Marke „Von Hand“ (--wer-hand, hell und dunkel). */
.bbase-buehne { --bbase-lila: var(--wer-hand); }
.bbase-pfeil { color: var(--text-leise); } /* PB-10344 */
.bbase-zaehler { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem; border-radius: 999px; background: var(--bbase-lila); color: var(--wer-hand-flaeche); font-size: var(--schrift-xs); font-weight: 700; } /* PB-10344 */
.bbase-dash-repos { display: flex; width: fit-content; max-width: 100%; margin: 0 0 var(--raum-2) auto; padding: var(--raum-1) var(--raum-3); border: 1px solid var(--rand); border-radius: 999px; list-style: none; font-size: var(--schrift-xs); } /* PB-10344: alle Repos in einer Pille */
.bbase-dash-repos li + li::before { content: "·"; margin: 0 var(--raum-2); color: var(--text-leise); }
.bbase-dash-repos a { color: var(--text); text-decoration: none; }
.bbase-repo-buchstabe { font-weight: 700; color: var(--akzent); }
.bbase-kennzahlen .bbase-hervor { border-color: var(--akzent); color: var(--text); } /* PB-10344: „wartet“ mit Zahl */
.bbase-punkt { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--akzent); }
.bbase-punkt-arbeiten { background: var(--prio-hoch); }
.bbase-kennzahlen .bbase-stand { margin-left: auto; font-size: var(--schrift-xs); color: var(--text-leise); }
.bbase-ziel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 22rem); column-gap: var(--raum-4); align-items: center; } /* PB-10344: Ziel links, Fortschritt rechts */
.bbase-ziel > .bbase-unterkopf { grid-column: 1 / -1; margin-top: 0; }
.bbase-ziel-satz { margin: 0; font-weight: 700; }
.bbase-ziel > .bbase-fortschritt { max-width: none; }
.bbase-fortschritt-kopf { display: flex; justify-content: space-between; margin: 0; font-size: var(--schrift-xs); }
.bbase-teile { display: flex; height: 0.5rem; border-radius: 999px; overflow: hidden; background: var(--rand); } /* PB-10344: Segmente statt progress */
.bbase-teile > span { flex: 1; }
.bbase-teil-fertig { background: var(--st-fertig); }
.bbase-teil-arbeit { background: var(--prio-hoch); }
.bbase-teil-offen { background: var(--rand); }
@media (max-width: 40rem) { .bbase-ziel { grid-template-columns: minmax(0, 1fr); row-gap: var(--raum-2); } }
.bbase-etappe h3 { font-weight: 700; } /* PB-10344: Etappe mit Etikett je Zustand */
.bbase-etikett { align-self: flex-start; padding: 0 var(--raum-2); border-radius: 999px; font-weight: 600; }
.bbase-etikett-erledigt { background: color-mix(in srgb, var(--st-fertig) 15%, transparent); color: var(--st-fertig); }
.bbase-etikett-laeuft { background: color-mix(in srgb, var(--prio-hoch) 15%, transparent); color: var(--prio-hoch); }
.bbase-etikett-bestaetigt { background: color-mix(in srgb, var(--st-aus) 15%, transparent); color: var(--st-aus); }
.bbase-etikett-vorschlag { background: color-mix(in srgb, var(--bbase-lila) 15%, transparent); color: var(--bbase-lila); }
.bbase-etappe-vorschlag { border-color: var(--bbase-lila); } /* PB-10344: gestrichelt lila samt Schritten */
.bbase-etappe-vorschlag .bbase-schritt { border-style: dashed; }
.bbase-etappe > .bbase-uebernehmen { margin-top: auto; }
.bbase-uebernehmen .knopf { width: 100%; background: var(--bbase-lila); border-color: var(--bbase-lila); color: var(--wer-hand-flaeche); }
/* PB-10344: Schritt-Zustand farbig, offen grau (erledigt steht oben) */
.bbase-schritt-wartet small { color: var(--bbase-lila); }
.bbase-schritt-offen small { color: var(--st-aus); }
/* PB-10345 (Soll-Ist 9800, Soll 02): Auswahl-Menü, nur Variablen (hell und dunkel) */
.bbase-pfeil { display: inline-block; transition: transform 0.15s; } /* PB-10345 */
details.bbase-vorhaben-wahl[open] .bbase-pfeil { transform: rotate(180deg); } /* PB-10345 */
details.bbase-vorhaben-wahl[open]::before { content: ""; position: fixed; inset: 0; z-index: 1; background: color-mix(in srgb, var(--text) 15%, transparent); pointer-events: none; } /* PB-10345 */
.bbase-vorhaben-liste { top: 100%; width: 23rem; max-width: 90vw; margin-top: var(--raum-1); box-shadow: 0 0.5rem 1.5rem color-mix(in srgb, var(--text) 25%, transparent); } /* PB-10345 */
.bbase-vorhaben-liste .bbase-unterkopf { display: flex; justify-content: space-between; align-items: center; } /* PB-10345 */
.bbase-zaehler-leise { background: var(--flaeche-leise); color: var(--text-leise); } /* PB-10345 */
.bbase-vorhaben-liste a { display: grid; grid-template-columns: 1fr auto; gap: var(--raum-2); align-items: center; color: var(--text); text-decoration: none; } /* PB-10345 */
.bbase-vorhaben-liste a[aria-current="page"] { background: none; } /* PB-10345 */
.bbase-vorhaben-liste a[aria-current="page"] .bbase-v-name { font-weight: 700; } /* PB-10345 */
.bbase-v-angabe { display: inline-flex; align-items: center; gap: var(--raum-2); color: var(--text-leise); font-size: var(--schrift-xs); } /* PB-10345 */
.bbase-v-angabe progress { width: 3rem; height: 0.4rem; accent-color: var(--st-fertig); } /* PB-10345 */
.bbase-vorhaben-liste > p { margin: var(--raum-2) 0 0; padding-top: var(--raum-2); border-top: 1px solid var(--rand); } /* PB-10345 */

