/* 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 { border-color: var(--warn-rand); background: var(--warn-bg); color: var(--warn-text); }
.bz-v-veraltet .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-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 in
   einer Zeile, die seitlich rollt; 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%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .bz-auf { position: static; }
  .bz-auf-inhalt { position: fixed; top: 5rem; left: 0.6rem; right: 0.6rem; width: auto; max-width: none; max-height: calc(100vh - 7rem); overflow-y: auto; }
  .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; } }
  @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; }
