/*
 * Corporate Design des Landes Berlin (Markenhandbuch v1.5, Senatskanzlei), Rollen wie in DÜB und PutzMonitor
 * (DUEB-App/docs/corporate-design-berlin.md). Rechteckig mit 2 px Rundung, Berlin Type, Berlin Blau für
 * Hauptaktionen, Berlin Rot als Markenakzent und für Offline/Löschen.
 */
@font-face { font-family: "Berlin Type"; src: url("../fonts/BerlinTypeWeb-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Berlin Type"; src: url("../fonts/BerlinTypeWeb-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --rot: #e40422; --rot-dunkel: #b30319; --rot-hell: #fde8ea;
  --blau: #004f9f; --dunkelblau: #002856; --mittelblau: #4f90cd; --hellblau: #aac9e7; --blau-flaeche: #e6eef7;
  --gruen: #007256; --gruen-hell: #e3f2ec; --dunkelgruen: #004534;
  --gelb: #ffe70e; --warnung: #9a5c00; --warnung-hell: #fff4e0;
  --schwarz: #000; --g80: #333; --g70: #4d4d4d; --g60: #666; --g40: #999; --g20: #ccc; --g10: #e6e6e6; --g5: #f2f2f2; --weiss: #fff;
  --radius: 2px;
  --schrift: "Berlin Type", Aptos, Calibri, Arial, sans-serif;
  --schatten: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--schrift); font-size: 16px; line-height: 1.5; color: var(--schwarz); background: var(--g5); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
h1 { font-size: 30px; } h2 { font-size: 21px; } h3 { font-size: 17px; }
p { margin: 0; }
a { color: var(--blau); text-underline-offset: 3px; }
a:hover { color: var(--dunkelblau); }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprunglink { position: absolute; left: 8px; top: -60px; background: var(--blau); color: #fff; padding: 10px 14px; z-index: 50; }
.sprunglink:focus { top: 8px; }
.leise { color: var(--g70); }
.klein { font-size: 14px; }
.stapel { display: flex; flex-direction: column; gap: var(--abstand, 16px); }
.zeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--abstand, 12px); }
.rechts { margin-left: auto; }
.raster > * { min-width: 0; }
.raster { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 260px), 100%), 1fr)); }

/* ------------------------------------------------ Prototyp-Hinweis */
.prototyp { background: var(--schwarz); color: #fff; font-size: 13px; padding: 6px 24px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.prototyp strong { color: var(--gelb); }
.prototyp .leise { color: #c8c8c8; }
.prototyp button { background: none; border: 1px solid #fff; color: #fff; font: inherit; padding: 2px 10px; border-radius: var(--radius); cursor: pointer; }
.prototyp button:hover { background: #fff; color: #000; }

/* ------------------------------------------------ Kopf */
.kopf { background: #fff; border-bottom: 3px solid var(--rot); }
.kopf-innen { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.marke { display: inline-flex; align-items: center; gap: 14px; color: #000; text-decoration: none; }
.marke-wort { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.marke-wort i { display: inline-block; width: 6px; height: 6px; background: var(--rot); }
.marke-linie { width: 1px; align-self: stretch; background: currentColor; opacity: .3; }
.marke-unter { display: block; font-size: 12px; font-weight: 400; color: var(--g70); letter-spacing: 0; }
.hauptnav { display: flex; flex-wrap: wrap; gap: 2px; }
.hauptnav a { color: #000; text-decoration: none; padding: 10px 14px; border-radius: var(--radius); font-size: 15px; position: relative; }
.hauptnav a:hover { background: var(--g5); }
.hauptnav a[aria-current="page"] { font-weight: 700; }
.hauptnav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; background: var(--rot); }
.konto { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.konto-name { text-align: right; font-size: 14px; line-height: 1.3; }
.konto-name small { display: block; color: var(--g70); font-size: 12px; }

/* ------------------------------------------------ Seite */
main { max-width: 1280px; margin: 0 auto; padding: 32px 24px 56px; }
.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.seitenkopf .stapel { --abstand: 6px; }
.brotkrumen { font-size: 14px; }
.fuss { border-top: 1px solid var(--g20); background: #fff; }
.fuss-innen { max-width: 1280px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: 13px; color: var(--g70); }
.fuss a { color: var(--g70); }
.imtb { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.imtb img { height: 18px; }

/* ------------------------------------------------ Bedienelemente */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; border: 1px solid #000; background: #fff; color: #000; white-space: nowrap; }
.knopf:hover { background: #000; color: #fff; }
.knopf.primaer { background: var(--blau); border-color: var(--blau); color: #fff; }
.knopf.primaer:hover { background: var(--dunkelblau); border-color: var(--dunkelblau); }
.knopf.erfolg { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.knopf.erfolg:hover { background: var(--dunkelgruen); }
.knopf.gefahr { background: var(--rot); border-color: var(--rot); color: #fff; }
.knopf.leicht { border-color: transparent; background: transparent; color: var(--blau); }
.knopf.leicht:hover { background: var(--blau-flaeche); color: var(--dunkelblau); }
.knopf.klein { min-height: 36px; padding: 0 12px; font-size: 14px; }
.knopf[disabled] { opacity: .5; cursor: not-allowed; }
.knopf svg { width: 18px; height: 18px; flex: none; }

label.feld, .feld { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.feld > span { font-weight: 700; }
.feld small { color: var(--g70); font-size: 13px; }
input[type=text], input[type=search], input[type=email], input[type=date], input[type=number], input[type=time], select, textarea {
  font: inherit; font-size: 16px; color: #000; background: #fff; border: 1px solid var(--g60); border-radius: var(--radius); padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--blau); outline-offset: 0; border-color: var(--blau); }

.karte { background: #fff; border: 1px solid var(--g20); border-radius: var(--radius); }
.karte-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--g10); }
.karte-inhalt { padding: 20px; }

.marke-chip, .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 13px; font-weight: 700; border-radius: var(--radius); background: var(--g10); color: #000; white-space: nowrap; }
.chip.blau { background: var(--blau-flaeche); color: var(--dunkelblau); }
.chip.gruen { background: var(--gruen-hell); color: var(--dunkelgruen); }
.chip.rot { background: var(--rot-hell); color: var(--rot-dunkel); }
.chip.warn { background: var(--warnung-hell); color: #6b3f00; }
.chip.schwarz { background: #000; color: #fff; }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

table.tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabelle th { text-align: left; font-size: 13px; color: var(--g70); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--g20); }
.tabelle td { padding: 12px; border-bottom: 1px solid var(--g10); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle th:first-child, .tabelle td:first-child { padding-left: 20px; }
.tabelle th:last-child, .tabelle td:last-child { padding-right: 20px; }
.tabelle tbody tr.klickbar { cursor: pointer; }
.tabelle tbody tr.klickbar:hover { background: var(--g5); }
.tabelle-huelle { overflow-x: auto; }

.balken { height: 8px; background: var(--g10); border-radius: 1px; overflow: hidden; min-width: 80px; }
.balken > i { display: block; height: 100%; background: var(--blau); }
.balken.gruen > i { background: var(--gruen); }

.meldung { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-left: 4px solid var(--blau); background: var(--blau-flaeche); border-radius: var(--radius); font-size: 15px; }
.meldung.warn { border-color: var(--warnung); background: var(--warnung-hell); }
.meldung.rot { border-color: var(--rot); background: var(--rot-hell); color: var(--rot-dunkel); }
.meldung.gruen { border-color: var(--gruen); background: var(--gruen-hell); }

.reiter { display: flex; gap: 2px; border-bottom: 1px solid var(--g20); margin-bottom: 24px; overflow-x: auto; }
.reiter a, .reiter button { font: inherit; font-size: 15px; background: none; border: 0; padding: 12px 16px; color: #000; text-decoration: none; cursor: pointer; position: relative; white-space: nowrap; }
.reiter [aria-selected="true"], .reiter [aria-current="page"] { font-weight: 700; }
.reiter [aria-selected="true"]::after, .reiter [aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--blau); }

/* ------------------------------------------------ Kacheln */
.modul { padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; position: relative; border-top: 4px solid var(--blau); }
a.modul:hover { box-shadow: var(--schatten); border-color: var(--g40); border-top-color: var(--dunkelblau); }
.modul.geplant { border-style: dashed; border-top: 4px dashed var(--g40); background: transparent; }
.modul .symbol { width: 40px; height: 40px; display: grid; place-items: center; background: var(--blau-flaeche); color: var(--blau); border-radius: var(--radius); }
.modul.geplant .symbol { background: var(--g10); color: var(--g60); }
.zahl-kachel { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.zahl-kachel .wert { font-size: 28px; font-weight: 700; line-height: 1.15; }
.zahl-kachel .titel { font-size: 14px; color: var(--g70); }
.zahl-kachel.warn { border-left: 4px solid var(--rot); }

/* ------------------------------------------------ Ablauf */
.ablauf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; counter-reset: s; }
.ablauf li { padding: 16px 18px; background: #fff; border: 1px solid var(--g20); margin-left: -1px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.ablauf li.aktiv { border: 2px solid var(--blau); z-index: 1; }
.ablauf .nr { font-size: 13px; font-weight: 700; color: var(--g70); }
.ablauf li.erledigt .nr { color: var(--gruen); }
.ablauf li.aktiv .nr { color: var(--blau); }

/* ------------------------------------------------ Assistent */
.schritte { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: s; flex-wrap: wrap; }
.schritte li { flex: 1 1 140px; padding: 10px 12px; border-bottom: 3px solid var(--g20); font-size: 14px; color: var(--g70); counter-increment: s; }
.schritte li::before { content: counter(s) " "; font-weight: 700; }
.schritte li.aktiv { border-color: var(--blau); color: #000; font-weight: 700; }
.schritte li.fertig { border-color: var(--gruen); color: #000; }
.wahl { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--g60); border-radius: var(--radius); background: #fff; cursor: pointer; }
.wahl:hover { border-color: #000; }
.wahl:has(input:checked) { border: 2px solid var(--blau); background: var(--blau-flaeche); padding: 15px; }
.wahl input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blau); flex: none; }
.wahl.aus { opacity: .55; cursor: not-allowed; }

/* ------------------------------------------------ Bogen-Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } }
.frage-zeile { display: grid; grid-template-columns: 32px minmax(0, 1fr) 170px auto; gap: 10px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--g10); }
.frage-zeile .nr { font-weight: 700; color: var(--g70); padding-top: 10px; }
.frage-zeile .werkzeuge { display: flex; gap: 2px; }
.symbolknopf { width: 40px; height: 44px; display: grid; place-items: center; border: 1px solid transparent; background: none; border-radius: var(--radius); cursor: pointer; color: var(--g80); }
.symbolknopf:hover { background: var(--g10); color: #000; }
.symbolknopf svg { width: 18px; height: 18px; }
@media (max-width: 700px) { .frage-zeile { grid-template-columns: 1fr; } .frage-zeile .nr { display: none; } }

/* ------------------------------------------------ Smartphone-Rahmen (Vorschau und Erfassung am Desktop) */
.telefon { width: 390px; max-width: 100%; height: 760px; border: 10px solid #111; border-radius: 34px; overflow: hidden; background: var(--g5); display: flex; flex-direction: column; position: sticky; top: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.telefon-inhalt { flex: 1; overflow: auto; }

/* ------------------------------------------------ Erfassung (mobil zuerst) */
.erfassung { max-width: 560px; margin: 0 auto; }
.netz { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; font-weight: 700; border-radius: var(--radius); }
.netz.online { background: var(--gruen-hell); color: var(--dunkelgruen); }
.netz.offline { background: var(--rot-hell); color: var(--rot-dunkel); }
.auftrag { display: flex; align-items: center; gap: 14px; padding: 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--g10); min-height: 64px; }
.auftrag:hover { background: var(--g5); }
.auftrag .status { margin-left: auto; }
.bogen-kopf { background: var(--blau); color: #fff; padding: 16px; display: flex; flex-direction: column; gap: 6px; border-radius: var(--radius) var(--radius) 0 0; }
.bogen-kopf .leise { color: #d9e6f3; }
.bogen-kopf .balken { background: var(--mittelblau); }
.bogen-kopf .balken > i { background: #fff; }
.frage { padding: 18px; border-bottom: 1px solid var(--g10); display: flex; flex-direction: column; gap: 12px; }
.frage legend { font-weight: 700; font-size: 16px; padding: 0; margin-bottom: 4px; }
fieldset.frage { border: 0; margin: 0; min-width: 0; }
.skala { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.skala label, .optionen label { min-height: 52px; border: 1px solid var(--g60); border-radius: var(--radius); display: grid; place-items: center; font-weight: 700; font-size: 18px; cursor: pointer; background: #fff; position: relative; }
.skala input, .optionen input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.skala label:has(input:checked), .optionen label:has(input:checked) { background: var(--blau); border-color: var(--blau); color: #fff; }
.skala label:has(input:focus-visible), .optionen label:has(input:focus-visible) { outline: 3px solid var(--blau); outline-offset: 2px; }
.optionen { display: flex; flex-wrap: wrap; gap: 6px; }
.optionen label { font-size: 15px; padding: 0 14px; min-height: 44px; }
.skala-legende { display: flex; justify-content: space-between; font-size: 13px; color: var(--g70); }
.foto-feld { border: 1px dashed var(--g60); padding: 18px; text-align: center; color: var(--g70); border-radius: var(--radius); background: var(--g5); }
.leiste { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--g20); padding: 12px 16px; display: flex; gap: 10px; }
.leiste .knopf { flex: 1; min-height: 50px; }

/* ------------------------------------------------ Auswertung */
.auswertung { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .auswertung { grid-template-columns: 1fr; } }
.matrix { border-collapse: collapse; width: 100%; text-align: center; font-size: 15px; }
.matrix th, .matrix td { padding: 10px; border: 1px solid var(--g10); }
.matrix td.diag { background: var(--gruen-hell); font-weight: 700; }
.matrix td.unter { background: var(--rot-hell); color: var(--rot-dunkel); font-weight: 700; }
.sk { display: inline-block; min-width: 46px; padding: 2px 8px; font-weight: 700; font-size: 13px; border-radius: var(--radius); }
.sk1 { background: var(--rot); color: #fff; } .sk2 { background: var(--gelb); color: #000; } .sk3 { background: var(--gruen); color: #fff; }
.heat { display: inline-grid; place-items: center; width: 44px; height: 30px; font-weight: 700; font-size: 14px; border-radius: var(--radius); }
.abschnitt { border-top: 1px solid var(--g10); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.abschnitt:first-of-type { border-top: 0; }
.entwurf { font-size: 15px; line-height: 1.6; }
.entwurf p { margin: 0 0 6px; }
.entwurf ul { margin: 0 0 10px; padding-left: 20px; }
.entwurf li { margin-bottom: 4px; }
.entwurf .unterkopf { font-weight: 700; margin-top: 8px; }
.quelle { display: inline-block; font-size: 12px; font-weight: 700; padding: 0 5px; margin: 0 1px; border: 1px solid var(--blau); color: var(--blau); background: #fff; border-radius: var(--radius); cursor: pointer; line-height: 18px; vertical-align: 1px; font-family: inherit; }
.quelle:hover, .quelle[aria-expanded="true"] { background: var(--blau); color: #fff; }
.quelle.falsch { border-color: var(--rot); color: var(--rot-dunkel); }
.quellkarte { border: 1px solid var(--g20); border-left: 4px solid var(--blau); background: var(--g5); padding: 12px 14px; font-size: 14px; border-radius: var(--radius); }
.cursor::after { content: "▍"; color: var(--blau); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ki-band { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 12px 20px; background: var(--g5); border-bottom: 1px solid var(--g10); font-size: 13px; color: var(--g70); }
.vorschau-code { white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: #111; color: #eee; padding: 14px; border-radius: var(--radius); max-height: 380px; overflow: auto; }

/* ------------------------------------------------ Anmeldung (simuliert authentik der SenWGP) */
.anmelde-seite { min-height: 100vh; background: #f5f5f5; display: flex; flex-direction: column; align-items: center; padding: 48px 16px; gap: 20px; }
.anmelde-karte { width: 100%; max-width: 460px; background: #fff; border-top: 6px solid var(--rot); box-shadow: var(--schatten); }
.anmelde-kopf { padding: 24px 28px 8px; display: flex; flex-direction: column; gap: 14px; }
.anmelde-inhalt { padding: 12px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.kontowahl { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--g60); border-radius: var(--radius); background: #fff; width: 100%; text-align: left; font: inherit; cursor: pointer; }
.kontowahl:hover { border-color: #000; background: var(--g5); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--blau); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.code { font-size: 26px; letter-spacing: .4em; text-align: center; font-weight: 700; }

/* ------------------------------------------------ Dialog und Toast */
dialog { border: 0; padding: 0; border-radius: var(--radius); max-width: min(720px, calc(100vw - 32px)); width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(0, 20, 50, .45); }
.dialog-kopf { padding: 18px 22px; border-bottom: 1px solid var(--g10); display: flex; align-items: center; gap: 12px; }
.dialog-inhalt { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.dialog-fuss { padding: 14px 22px; border-top: 1px solid var(--g10); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: #000; color: #fff; padding: 12px 16px; border-radius: var(--radius); font-size: 15px; max-width: 360px; box-shadow: var(--schatten); border-left: 4px solid var(--gruen); }
.toast.fehler { border-left-color: var(--rot); }
.laden { color: var(--g70); padding: 40px; text-align: center; }

@media (max-width: 720px) {
  main { padding: 20px 16px 48px; }
  h1 { font-size: 25px; }
  .kopf-innen { padding: 10px 16px; }
  .konto-name { display: none; }
  .hauptnav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .cursor::after { animation: none; } }
main:focus, main:focus-visible { outline: none; }

/* ---------- Erfassung nach den Vorlagen der SenWGP ---------- */
.skala.sechs { grid-template-columns: repeat(6, 1fr); }
.skala.sechs label { font-size: 17px; }
.bedeutung { min-height: 1.2em; color: var(--dunkelblau); font-weight: 700; }
.notiz summary { cursor: pointer; font-size: 14px; color: var(--blau); display: inline-flex; gap: 6px; align-items: center; min-height: 32px; }
.notiz[open] summary svg { transform: rotate(45deg); }
.notiz textarea { width: 100%; margin-top: 6px; }
.themenblock h3 { margin: 0; padding: 14px 18px 10px; background: var(--blau-flaeche); color: var(--dunkelblau); font-size: 15px; border-bottom: 1px solid var(--hellblau); position: sticky; top: 0; z-index: 1; }
.themen-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--g10); background: #fff; }
.themen-nav a { white-space: nowrap; font-size: 13px; padding: 6px 10px; border: 1px solid var(--g20); border-radius: var(--radius); text-decoration: none; color: var(--g80); }
.skala-info { padding: 10px 16px; border-bottom: 1px solid var(--g10); font-size: 14px; }
.skala-info summary { cursor: pointer; color: var(--blau); }
.skala-info dl { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 8px 0 0; }
.skala-info dl div { display: flex; gap: 10px; } .skala-info dt { font-weight: 700; min-width: 32px; } .skala-info dd { margin: 0; }
.datenblatt { padding: 14px 16px; background: var(--warnung-hell); border-bottom: 1px solid var(--g10); display: flex; flex-direction: column; gap: 8px; }
.datenblatt p { margin: 0; }
.vital { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.vital div { background: #fff; padding: 6px 8px; border-radius: var(--radius); }
.vital dt { font-size: 12px; color: var(--g70); } .vital dd { margin: 0; font-weight: 700; }
.ort-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
.ort-knoepfe .knopf { min-height: 40px; }
.verlauf { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; border-left: 3px solid var(--blau); }
.verlauf li { display: grid; grid-template-columns: 96px 130px 1fr auto; gap: 8px; align-items: center; padding-left: 10px; }
.verlauf input[type=time] { width: 96px; }
@media (max-width: 480px) { .verlauf li { grid-template-columns: 90px 1fr auto; } .verlauf li [data-text] { grid-column: 1 / -1; } }
h3.gruppe { margin: 0; padding: 10px 16px; font-size: 14px; color: var(--g70); background: var(--g5); border-bottom: 1px solid var(--g10); }
.leiste { display: flex; align-items: center; gap: 12px; }

/* ---------- Auswertung ---------- */
.block-tabelle td:first-child { width: 100%; }
.verteilung { display: flex; height: 14px; width: 140px; border-radius: 1px; overflow: hidden; background: var(--g10); }
.verteilung i { display: block; height: 100%; }
.v1 { background: var(--rot); } .v2 { background: #f0a24a; } .v3 { background: var(--mittelblau); } .v4 { background: var(--gruen); }
.vja { background: var(--gruen); } .vteilweise { background: #f0a24a; } .vnein { background: var(--rot); }
.vschlecht { background: var(--rot); } .vmittel { background: #f0a24a; } .vgut { background: var(--gruen); } .vkeine { background: var(--g40); }
.legende { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--g70); }
.legende i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: middle; }
.kriterien { margin: 0; padding: 0; list-style: none; }
.kriterien li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 18px; border-top: 1px solid var(--g10); font-size: 14px; }
.kriterien .notiz-zitat { grid-column: 1 / -1; color: var(--g70); font-size: 13px; }
.balkenliste { display: grid; grid-template-columns: minmax(120px, max-content) 1fr 32px; gap: 6px 10px; align-items: center; font-size: 14px; }
.balkenliste .balken { min-width: 0; height: 10px; }
.weg { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 13px; }
.weg span { padding: 2px 6px; border-radius: var(--radius); background: var(--g5); border: 1px solid var(--g20); }
.weg span.fehlt { background: var(--rot-hell); border-color: var(--rot); color: var(--rot-dunkel); text-decoration: line-through; }
.weg span.extra { background: var(--warnung-hell); border-color: var(--warnung); }
.antworten { width: 100%; border-collapse: collapse; font-size: 14px; }
.antworten td, .antworten th { padding: 8px 10px; border-top: 1px solid var(--g10); vertical-align: top; text-align: left; }
.wert-nein { color: var(--rot-dunkel); font-weight: 700; } .wert-ja { color: var(--dunkelgruen); font-weight: 700; }
details > summary.karte-kopf { list-style: none; }
details > summary.karte-kopf::before { content: "▸"; color: var(--blau); font-size: 14px; }
details[open] > summary.karte-kopf::before { content: "▾"; }

/* Ablauf der Krankenhausübung wie in DÜB: acht Schritte, jeder anklickbar */
.ablauf.acht { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.ablauf.acht li { padding: 0; }
.ablauf .schritt { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; width: 100%; height: 100%; cursor: pointer; }
.ablauf .schritt:hover strong { text-decoration: underline; }
.ablauf .schritt:focus-visible { outline: 3px solid var(--blau); outline-offset: -3px; }
.ablauf li.hinweis .nr { color: #9a5b00; }
.ablauf li.laeuft .nr { color: var(--blau); }
.schritt-tafel { margin-top: 20px; }
.schritt-tafel h2 { font-size: 20px; margin: 0; }
.eckdaten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.eckdaten dt { font-weight: 700; }
.eckdaten dd { margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .feld { flex: 1; min-width: 160px; }
.dueb-hinweis { border-left: 4px solid var(--blau); padding: 8px 12px; background: var(--g5); font-size: 14px; }
.senden-schritt { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.senden-schritt .nummer { width: 34px; height: 34px; border-radius: 50%; background: var(--blau); color: #fff; display: grid; place-items: center; font-weight: 700; }
.senden-schritt .nummer.fertig { background: var(--gruen); }
.trefferliste { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.antworten-klapp { margin: 4px 0 12px; }
.antworten-klapp summary { cursor: pointer; color: var(--blau); font-weight: 700; padding: 6px 0; }
.antworten-klapp .tabelle-huelle { margin-top: 8px; }
.textknopf { background: none; border: 0; padding: 0; font: inherit; color: var(--blau); text-decoration: underline; cursor: pointer; }
.textknopf:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
