/* Bildwelt „Messkarte mit Wasserstand“ (BB16). Regeln aller Szenen aus platform/bildwelt.ts; die Szenen tragen keine eigenen <style>-Blöcke.
   Farben nur aus der Marke. Bewegung nur über transform und nur bei no-preference. Handy-Fassung (bw-m) bis 640 px, sonst die breite (bw-d). */
.bw { display: block; max-width: 100%; height: auto; overflow: visible; }
.bw text { font-family: Inter, system-ui, sans-serif; }
.bw-m { display: none; }
@media (max-width: 640px) { .bw-kopf.bw-d { display: none; } .bw-kopf.bw-m { display: block; width: 100%; } }
@media (max-width: 999px) { .bw-abschnitt.bw-d { display: none; } .bw-abschnitt.bw-m { display: block; width: 100%; max-width: 560px; } }

/* Schrift im Bild: Größen in Bildpunkten der viewBox, die Fassungen werden nahe 1:1 gezeigt */
.bw-t { fill: #101334; font-weight: 600; }
.bw-t-p { font-size: 16px; font-weight: 700; }
.bw-t-pm { font-size: 14px; font-weight: 700; }
.bw-t-g { font-size: 20px; font-weight: 700; }
.bw-t-k { font-size: 14px; font-weight: 600; letter-spacing: .08em; fill: #505575; }
.bw-t-leise { fill: #505575; }
.bw-t-hell { fill: #ffffff; }
.bw-t-hell2 { fill: #c5ceff; }
.bw-t-warn { fill: #ff8a80; }
.bw-t-nr { fill: #fff; font-weight: 800; }
.bw-t-zone { fill: #0e24ea; }
.bw-t-halo { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.bw-kopf-soc .bw-t-halo, .bw-beleg .bw-t-halo { stroke: #101334; }
.bw-kopf-arch .bw-t-halo { stroke: #eef1fd; }

/* Karte */
.bw-raster { fill: none; stroke: #e6e9f4; stroke-width: 1; }
.bw-raster-s { fill: none; stroke: #d3d8ec; stroke-width: 1; }
.bw-kopf-soc .bw-raster { stroke: #1b2150; }
.bw-kopf-soc .bw-raster-s { stroke: #262d63; }
.bw-kopf-arch .bw-raster { stroke: #dce1fb; }
.bw-kopf-arch .bw-raster-s { stroke: #c8cff8; }
.bw-hl path { fill: none; stroke: #0e24ea; stroke-opacity: .32; stroke-width: 1.2; }
.bw-tiefe-0 { fill: #e3e8fe; }
.bw-tiefe-1 { fill: #d0d7fd; }
.bw-tiefe-2 { fill: #bcc6fb; }
.bw-tiefe-3 { fill: #a6b3f8; }
.bw-tiefe-4 { fill: #8f9df4; }
.bw-route { fill: none; stroke: #101334; stroke-opacity: .3; stroke-width: 1.2; stroke-dasharray: 3 5; }
.bw-p { stroke: #fff; stroke-width: 3; }
.bw-p-erfuellt { fill: #1c7a54; }
.bw-p-abweichung { fill: #c98a1b; }
.bw-p-kritisch { fill: #b3261e; }
.bw-p-nicht-erhoben { fill: #fff; stroke: #505575; stroke-width: 1.6; stroke-dasharray: 3 2; }
.bw-p-knoten { fill: #0e24ea; }
.bw-p-pegel { fill: #0e24ea; }
.bw-p-leer { fill: #fff; stroke: #0e24ea; stroke-width: 2; }
.bw-latte { fill: #fff; stroke: #101334; stroke-width: 2; }
.bw-latte-t { fill: none; stroke: #101334; stroke-width: 2.2; }
.bw-kompass circle { fill: none; stroke: #101334; stroke-width: 1.4; }
.bw-kompass path { fill: none; stroke: #101334; stroke-width: 1.2; }
.bw-kompass .bw-kompass-n { fill: #101334; }
.bw-kopf-soc .bw-kompass circle, .bw-kopf-soc .bw-kompass path { stroke: #fff; }
.bw-kopf-soc .bw-kompass .bw-kompass-n { fill: #fff; }
.bw-kopf-soc .bw-t-k { fill: #c5ceff; }

/* Strömung (SOC) */
.bw-strom path { fill: none; stroke: #8f9cf5; stroke-opacity: .55; stroke-width: 1.3; }
.bw-strom-pfeil path { fill: none; stroke: #c5ceff; stroke-width: 1.5; }
.bw-hinweis circle { fill: none; stroke-width: 1.8; }
.bw-hinweis .bw-ring-a { stroke-dasharray: 5 6; stroke-opacity: .55; }
.bw-hinweis-hoch circle { stroke: #ff8a80; }
.bw-hinweis-hoch .bw-kern { fill: #ff8a80; }
.bw-hinweis-mittel circle { stroke: #f0b65a; }
.bw-hinweis-mittel .bw-kern { fill: #f0b65a; }
.bw-hinweis-niedrig circle { stroke: #5fd3a0; }
.bw-hinweis-niedrig .bw-kern { fill: #5fd3a0; }
.bw-hinweis-mittel .bw-ring-a, .bw-hinweis-niedrig .bw-ring-a { display: none; }

/* Bauplan (Architect) */
.bw-soll { fill: none; stroke: #0e24ea; stroke-width: 2; stroke-dasharray: 9 6; }
.bw-schraffur { stroke: #aab2d6; stroke-width: 2; }
.bw-mass { fill: none; stroke: #101334; stroke-width: 1.2; }
.bw-unterlage { fill: #eef1fd; }
.bw-schriftfeld { fill: #fff; stroke: #101334; stroke-width: 1.4; }
.bw-grund-1 { fill: #2f3780; }
.bw-grund-2 { fill: #1d2463; }

/* Wellenkante am Kopf (Tiefenzone je Portal) */
.bw-kante { display: block; width: 100%; height: 72px; }
.bw-k-linie { fill: none; stroke: #0e24ea; stroke-width: 2; vector-effect: non-scaling-stroke; }
.bw-kante-oberflaeche .bw-k1 { fill: #e3e8fe; } .bw-kante-oberflaeche .bw-k2 { fill: #c6cefb; } .bw-kante-oberflaeche .bw-k3 { fill: #9aa7f6; }
.bw-kante-stroemung .bw-k1 { fill: #3a4ad8; } .bw-kante-stroemung .bw-k2 { fill: #1b2491; } .bw-kante-stroemung .bw-k3 { fill: #121752; }
.bw-kante-stroemung .bw-k-linie { stroke: #9fb0ff; }
.bw-kante-grund .bw-k1 { fill: #c6cefb; } .bw-kante-grund .bw-k2 { fill: #2f3780; } .bw-kante-grund .bw-k3 { fill: #ffffff; }

/* Abschnitte */
.bw-wasserlinie { fill: none; stroke: #0e24ea; stroke-width: 2; }
.bw-grundlinie { fill: none; stroke: #101334; stroke-width: 2; }
.bw-grenzlinie { fill: none; stroke: #505575; stroke-width: 1.5; }
.bw-schaetz { fill: none; stroke: #0e24ea; stroke-width: 2; stroke-dasharray: 6 6; }
.bw-kammer { fill: none; stroke: #101334; stroke-width: 3; }
.bw-tor { fill: #101334; }
.bw-nr { fill: #0e24ea; }
.bw-soll-linie { fill: none; stroke: #0e24ea; stroke-width: 2.4; stroke-dasharray: 10 7; }
.bw-zweig { fill: none; stroke: #0e24ea; stroke-width: 2; }
.bw-quelle { fill: #fff; stroke: #0e24ea; stroke-width: 3; }
.bw-strom-hell { fill: none; stroke: #9aa7f6; stroke-width: 6; stroke-dasharray: 2 14; stroke-linecap: round; }
.bw-lotleine { fill: none; stroke: #101334; stroke-width: 1.6; }
.bw-lotmarke { stroke: #101334; stroke-width: 2; }
.bw-lotkoerper { fill: #101334; }
.bw-floss { fill: #fff; stroke: #101334; stroke-width: 2; }

/* Beleg (auf dunkler Fläche) */
.bw-schicht { stroke: #b4c0ff; stroke-opacity: .35; }
.bw-schicht-0 { fill: #2a3290; } .bw-schicht-1 { fill: #24308f; } .bw-schicht-2 { fill: #1f2a85; } .bw-schicht-3 { fill: #1a2478; }
.bw-rahmen-hell { fill: none; stroke: #b4c0ff; stroke-width: 2.5; }
.bw-rohr { fill: none; stroke: #b4c0ff; stroke-width: 2.5; }
.bw-fluss { fill: none; stroke: #fff; stroke-width: 5; stroke-dasharray: 3 18; stroke-linecap: round; }
.bw-ventil { fill: #101334; stroke: #fff; stroke-width: 2.6; }
.bw-ventil-auge { fill: none; stroke: #fff; stroke-width: 2.6; }
.bw-ventil-p { fill: #fff; }
.bw-pfeil-hell { fill: none; stroke: #fff; stroke-width: 2.6; }
.bw-rueck { fill: none; stroke: #ff8a80; stroke-width: 2.4; stroke-dasharray: 9 8; }
.bw-rueck-spitze { fill: none; stroke: #ff8a80; stroke-width: 2.4; }
.bw-sperre { stroke: #ff8a80; stroke-width: 4.5; stroke-linecap: round; }
.bw-kappe { fill: #c5ceff; stroke: #fff; stroke-width: 2; }
.bw-schicht-leer { stroke: #b4c0ff; stroke-width: 2; stroke-dasharray: 6 6; }
.bw-tiefe-hell-1 { fill: #3a4ad8; } .bw-tiefe-hell-2 { fill: #1b2491; }

/* Leerzustand */
.bw-leer { width: 100%; max-width: 480px; }
.bw-rohr-innen { fill: #eef1fd; }
.bw-rohr-dunkel { fill: none; stroke: #101334; stroke-width: 3; }
.bw-flansch { fill: #fff; stroke: #101334; stroke-width: 3; }
.bw-tropfen-leer { fill: none; stroke: #0e24ea; stroke-width: 2; stroke-dasharray: 4 3; }
.bw-pfuetze-leer { fill: none; stroke: #0e24ea; stroke-width: 1.5; stroke-dasharray: 6 6; }

/* Begleiter (Zeichnung Stil 2), nur innerhalb der Bildwelt; überschreibt die Zustandsregeln aus begleiter.css */
.bw .tr-k { fill: #d2d9ff; }
.bw .tr-schatten { fill: #0e24ea; opacity: .5; }
.bw .tr-u { fill: none; stroke: #101334; stroke-width: 3.5; stroke-linejoin: round; }
.bw .tr-l { fill: none; stroke: #101334; stroke-linecap: round; stroke-linejoin: round; }
.bw .tr-t { fill: #101334; }
.bw .tr-p { fill: #fff; }
.bw .tr-g, .bw .tr-halo { fill: none; stroke: #fff; stroke-linecap: round; }
.bw .tr-wange { fill: #f2a3c0; opacity: .5; }
.bw .tr-zunge { fill: #ee8fb0; }
.bw .tr-a { fill: none; stroke: none; stroke-linecap: round; stroke-linejoin: round; }
.bw .f-k { fill: #d2d9ff; } .bw .f-l { fill: #101334; } .bw .f-w { fill: #0e24ea; } .bw .f-p { fill: #fff; }
.bw .s-l { stroke: #101334; } .bw .s-w { stroke: #0e24ea; } .bw .s-p { stroke: #fff; }
.bw .tr-mund path, .bw .tr-aug-froh, .bw .tr-brauen, .bw .m-froh { opacity: 1; }
.bw .tr-mund .m-froh path { opacity: 1; }
.bw-kontur { fill: none; stroke: #fff; stroke-opacity: .9; stroke-width: 9; stroke-linejoin: round; }

/* Bewegung: nur bei no-preference, nur transform */
@media (prefers-reduced-motion: no-preference) {
  .bw-drift-l { animation: bw-drift 18s ease-in-out infinite alternate; }
  .bw-drift-r { animation: bw-drift 24s ease-in-out infinite alternate-reverse; }
  @keyframes bw-drift { to { transform: translateX(-24px); } }
}

/* ---------- Einbau in die Startseiten (Kopf mit Messkarte, Legende, Abschnittsbilder) ---------- */
.bw-held { padding-bottom: 104px; }
.bw-abschnitt { overflow: hidden; }
.bw-legende .sp-sheet-head { max-width: none; }
.bw-held > .bw-kante { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; }
.bw-held .sp-in { position: relative; z-index: 1; }
.bw-held-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: center; }
.bw-held h1 { font-size: clamp(2.9rem, 6vw, 5.25rem); }
.bw-karte { margin: 0 -24px 0 0; min-width: 0; }
.bw-karte .bw { width: 100%; max-width: 600px; }
.bw-legende-zeile { margin-top: 40px; }
.bw-legende { max-width: none; }
.bw-legende .sp-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.bw-legende .sp-row:nth-child(2) { border-top: 0; }
.bw-nr { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); margin-right: 4px; }
.bw-nr-marke { display: inline-block; width: 10px; height: 10px; margin: 0 10px 1px 2px; transform: rotate(45deg); vertical-align: middle; border: 1.5px solid transparent; }
.bw-nr-erfuellt { background: #1c7a54; } .bw-nr-abweichung { background: #c98a1b; } .bw-nr-kritisch { background: #b3261e; }
.bw-nr-nicht-erhoben { background: #fff; border: 1.5px dashed #505575; }
.bw-bild { margin: 40px 0 0; }
.bw-bild .bw { width: 100%; }
.bw-bild-beleg, .bw-bild-schleuse { margin-top: 48px; }
.bw-bild-schleuse + .bw-way { margin-top: 24px; }
.bw-zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
.bw-zweispaltig > .sp-nots, .bw-zweispaltig .sp-faq { max-width: none; }
.bw-bild-seite { margin-top: 48px; }
.bw-bild-seite .bw { max-width: 300px; }
.bw-legende-index li { align-items: center; }
@media (max-width: 999px) {
  .bw-held-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .bw-karte { margin: 0; }
  .bw-zweispaltig { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bw-bild-seite { margin-top: 8px; }
  .bw-bild-seite .bw { max-width: 280px; }
}
@media (max-width: 640px) {
  .bw-held { padding-bottom: 104px; }
  .bw-legende .sp-rows { grid-template-columns: minmax(0, 1fr); }
  .bw-legende .sp-row:nth-child(2) { border-top: 1px solid var(--hairline); }
  .bw-kante { height: 56px; }
}

/* Köpfe je Tiefenzone: Governance Oberfläche (weiß), SOC Strömung (Nacht), Architect Bauplan (Tönung) über dem Grund */
.bw-held-soc { background: #101334; color: #fff; }
.bw-held-soc .sp-sheet { color: var(--ink); }
.bw-held-soc .sp-eyebrow, .bw-held-soc .sp-lead { color: #d6daf6; }
.bw-held-soc .sp-q { color: #a9b8ff; }
.bw-held-soc .sp-link { color: #fff; }
.bw-held-soc .btn-primary { background: #fff; border-color: #fff; color: #101334; }
.bw-held-soc :focus-visible { outline-color: #fff; }
.bw-held-architect { background: #eef1fd; }
.bw-karte { margin-top: 0; margin-bottom: 0; }
.bw-karte-hinweis { margin: 8px 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.bw-held-soc .bw-karte-hinweis { color: #d6daf6; }
.bw-held .bw-legende { position: relative; }
/* SOC Abdeckung: ein Feld je Tabelle, schraffiert „nicht erhoben“ */
.bw-zellen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bw-zelle { display: inline-block; width: 26px; height: 26px; border: 2px solid #505575; border-radius: 3px; background: repeating-linear-gradient(-45deg, #8f97b8 0 2px, transparent 2px 7px); }
.bw-zellen-legende { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 0.9375rem; color: var(--muted); }
.bw-abdeckung .sp-ix-name small { display: block; }

/* Ergebnis: drei Spalten (Bericht, Baukasten, NIS2) statt drei gleich gebauter Abschnitte */
.bw-drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.bw-spalte { min-width: 0; padding-top: 24px; border-top: 2px solid var(--brand); position: relative; }
.bw-spalte::before { content: ""; position: absolute; top: -8px; left: 0; width: 10px; height: 10px; background: var(--brand); transform: rotate(45deg); box-shadow: 0 0 0 4px var(--surface); }
.bw-spalte h3 { margin: 0; font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.02em; }
.bw-spalte > p { margin: 12px 0 0; color: var(--muted); }
.bw-spalte .sp-paper { margin-top: 24px; max-width: 260px; }
.bw-spalte .sp-note { margin-top: 20px; font-size: 0.9375rem; }
.sp-steps6.bw-senkrecht, .sp-clock.bw-senkrecht { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 24px 0 0 6px; border-top: 0; border-left: 2px solid var(--rule); max-width: none; }
.bw-senkrecht li { padding: 0 0 14px 22px; }
.bw-senkrecht li::before { top: 6px; left: -9px; border-color: var(--surface); }
.sp-clock.bw-senkrecht b { font-size: 1.5rem; }
.sp-steps6.bw-senkrecht .sp-n { display: inline; margin: 0 8px 0 0; }
@media (max-width: 999px) { .bw-drei { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
/* Hover und Fokus sichtbar auch auf dunklem Grund */
.sp-link:hover, .sp-more a:hover, .sp-links a:hover { text-decoration-thickness: 3px; }
.bw-held-soc .sp-link:hover { color: #c5ceff; }
.sp-faq a:hover { background: var(--tide); }

/* Motive SOC und Architect */
.bw-zweig-hell { fill: none; stroke: #b4c0ff; stroke-width: 2.2; }
.bw-portal { fill: none; stroke: #fff; stroke-width: 2.6; }
.bw-route-fett { fill: none; stroke: #0e24ea; stroke-width: 3; stroke-dasharray: 10 8; }
.bw-wegpunkt { fill: #fff; stroke: #0e24ea; stroke-width: 3; }
.bw-wegring { fill: none; stroke: #0e24ea; stroke-opacity: .3; stroke-width: 1.5; }
.bw-grenzlinie-fett { stroke: #101334; stroke-width: 2.4; }
.bw-strom-hell-linien path { fill: none; stroke: #9aa7f6; stroke-width: 1.4; }
.bw-hinweis-hell.bw-hinweis-hoch circle { stroke: #b3261e; } .bw-hinweis-hell.bw-hinweis-hoch .bw-kern { fill: #b3261e; }
.bw-hinweis-hell.bw-hinweis-mittel circle { stroke: #8a5600; } .bw-hinweis-hell.bw-hinweis-mittel .bw-kern { fill: #c98a1b; }
.bw-hinweis-hell .bw-ring-a { display: inline; }
.bw-boje { fill: #fff; stroke: #101334; stroke-width: 2.4; }
.bw-boje-licht { fill: #b3261e; }
.bw-unterlage-weiss { fill: #fff; }
.bw-portal-geplant { stroke-dasharray: 9 6; }

/* Runde 3 */
.bw-rohr-hell { fill: #fff; }
.bw-rohr-rand { fill: none; stroke: #101334; stroke-width: 2.4; }
.sp-zero strong { white-space: nowrap; }
.seg-leer { background: var(--hairline); }
.bw-held-soc .btn-primary:hover { background: #d6daf6; border-color: #d6daf6; }
.bw-held-architect .bw-legende .sp-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bw-held-architect .bw-legende .sp-row:nth-child(3) { border-top: 0; }
.bw-held-architect .bw-legende .sp-row-sub { display: none; }
.sp-portal[data-portal="architect"] .bw-way strong::before { content: counter(stufe, upper-roman) ". "; }
.bw-legende .sp-rows { grid-auto-flow: column; grid-template-rows: repeat(5, auto); }
.bw-held-soc .bw-legende .sp-rows, .bw-held-architect .bw-legende .sp-rows { grid-auto-flow: row; grid-template-rows: none; }
.bw-legende .sp-row:nth-child(6) { border-top: 0; }
.bw-held-gov .bw-legende .sp-row:nth-child(2) { border-top: 1px solid var(--hairline); }
/* SOC: Ansichten als Baum (Wurzel Wochen-Durchsicht, Äste zu den Ansichten) statt Grafik plus Liste */
.bw-baum-wurzel { display: flex; align-items: center; gap: 12px; margin: 40px 0 0; font-weight: 700; }
.bw-baum-knoten { width: 22px; height: 22px; border: 3px solid var(--brand); border-radius: 50%; background: #fff; }
.sp-def.bw-baum { margin-top: 0; margin-left: 10px; padding-left: 0; border-left: 2px solid var(--brand); border-bottom: 0; }
.sp-def.bw-baum > div { position: relative; margin-left: 52px; }
.sp-def.bw-baum > div::before { content: ""; position: absolute; left: -52px; top: 28px; width: 34px; border-top: 2px solid var(--brand); }
.sp-def.bw-baum > div::after { content: ""; position: absolute; left: -22px; top: 23px; width: 10px; height: 10px; background: var(--brand); transform: rotate(45deg); }
/* Schluss mit Bild rechts */
.bw-schluss-raster { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: end; }
.bw-schluss { width: 100%; max-width: 360px; }
@media (max-width: 999px) { .bw-schluss-raster { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 999px) { .bw-bild-seite .bw { max-width: 420px; width: 100%; } .bw-held-architect .bw-legende .sp-rows { grid-template-columns: minmax(0, 1fr); } .bw-legende .sp-rows { grid-auto-flow: row; grid-template-rows: none; } }

/* Runde 4: Freiflächen, Piktogramme, Grenzen als Zeilen mit Zeichen, Produktbeleg, Schlussmotive, einheitliche Links und Zustände */
.bw-nachtfeld { fill: #101334; }
.bw-geschoss { fill: #c6cefb; stroke: #101334; stroke-width: 2; }
.bw-pikto { flex: none; width: 44px; height: 44px; }
.bw-pk-l { fill: none; stroke: #0e24ea; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bw-pk-f { fill: #0e24ea; }
.bw-pk-x { stroke: #b3261e; stroke-width: 2.4; stroke-linecap: round; }
.sp-nots.bw-nots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; max-width: none; }
.sp-nots.bw-nots li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; align-items: start; padding: 24px 0; border-top: 1px solid var(--rule); }
.sp-nots.bw-nots li:last-child { border-bottom: 0; }
.sp-nots.bw-nots b { display: block; margin-bottom: 4px; font-size: 1.25rem; }
.sp-def dt .bw-pikto { display: block; margin-bottom: 8px; }
.sp .sp-mark { position: relative; top: auto; }
.sp-formula summary { text-decoration: underline; text-underline-offset: 4px; }
.sp .btn-primary:hover { background: #0a1bb8; border-color: #0a1bb8; }
.bw-held-soc .btn-primary:hover { background: #e6e9fb; border-color: #e6e9fb; color: #101334; }
.seg-leer { background: transparent; border: 1.5px solid #8f97b8; }
.sp-video video { aspect-ratio: 16 / 11; object-fit: contain; }
.bw-held-architect .bw-legende .sp-row-val { display: none; }
.bw-held-architect .bw-legende .sp-row { grid-template-columns: minmax(0, 1fr); }
.bw-fenster { margin: 48px 0 0; max-width: 820px; border: 1px solid var(--rule); border-radius: 12px; background: #f7f8fc; overflow: hidden; }
.bw-fenster-kopf { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: #101334; color: #d6daf6; font-size: 0.875rem; font-weight: 600; }
.bw-fenster-kopf i { width: 9px; height: 9px; border-radius: 50%; background: #3a4290; }
.bw-fenster-kopf span { margin-left: 10px; }
.bw-fenster-inhalt { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 24px; background: #fff; }
.bw-fenster-zahlen { margin: 0; display: grid; gap: 14px; }
.bw-fenster-zahlen div { padding-top: 8px; border-top: 2px solid #101334; }
.bw-fenster-zahlen dt { font-size: 0.875rem; color: var(--muted); }
.bw-fenster-zahlen dd { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.bw-fenster figcaption { padding: 12px 16px; font-size: 0.875rem; color: var(--muted); border-top: 1px solid var(--hairline); }
@media (max-width: 999px) { .sp-nots.bw-nots { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .bw-fenster-inhalt { grid-template-columns: minmax(0, 1fr); padding: 16px; } .bw-fenster-zahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bw-fenster-zahlen dd { font-size: 1.25rem; } }

/* BB16.5: Leerzustand ohne Messdaten in der Anwendung (Bild links, Ursache und naechster Schritt rechts) */
.empty-state.bw-leerzustand { display: flex; align-items: center; gap: 28px; max-width: 920px; }
.bw-leer-bild { flex: 0 0 260px; }
.bw-leer-bild .bw { width: 100%; }
.bw-naechster { padding: 10px 14px; border-radius: 8px; background: #eef1fd; }
@media (max-width: 719px) { .empty-state.bw-leerzustand { flex-direction: column; align-items: flex-start; } .bw-leer-bild { flex-basis: auto; width: 240px; } }

/* Runde 5 */
.bw-planrahmen { fill: none; stroke: #101334; stroke-width: 1.2; }
.sp-hatch { background: none; padding: 0; box-shadow: none; }
.sp-hatch::after { content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .25em; border: 2px solid currentColor; background: repeating-linear-gradient(-45deg, rgba(16, 19, 52, .45) 0 2px, transparent 2px 6px); vertical-align: baseline; }
.sp-way strong { line-height: 1.25; }
.sp-nots.bw-nots b { hyphens: manual; }
@media (max-width: 640px) { .bw-schluss { max-width: 240px; } .bw-legende .sp-sheet-head { flex-direction: column; gap: 4px; } .bw-bild-seite { margin-top: 0; } }
/* SOC Belege auf heller Fläche (das Dunkel steht nur im Kopf) */
.bw-beleg-hell .bw-t-hell { fill: #101334; }
.bw-beleg-hell .bw-t-warn { fill: #b3261e; }
.bw-beleg-hell .bw-zweig-hell, .bw-beleg-hell .bw-rohr { stroke: #0e24ea; }
.bw-beleg-hell .bw-portal { stroke: #101334; }
.bw-beleg-hell .bw-ventil { fill: #fff; stroke: #101334; }
.bw-beleg-hell .bw-ventil-auge, .bw-beleg-hell .bw-pfeil-hell { stroke: #101334; }
.bw-beleg-hell .bw-ventil-p { fill: #101334; }
.bw-beleg-hell .bw-fluss { stroke: #0e24ea; }
.bw-beleg-hell .bw-rueck, .bw-beleg-hell .bw-rueck-spitze, .bw-beleg-hell .bw-sperre { stroke: #b3261e; }
.bw-beleg-hell .bw-t-halo { stroke: #eef1fd; }
.bw-beleg-hell .sp-zero::first-letter { color: var(--brand); }
.bw-beleg-hell .sp-ledger > div { border-top-color: var(--rule); }
.bw-beleg-hell .sp-ledger > div:last-child { border-bottom-color: var(--rule); }
.bw-beleg-hell .sp-ledger dd { color: var(--muted); }
.bw-fenster-titel { margin: 0 0 6px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }

/* Runde 6 (Konzeptwechsel unterer Seitenteil): Grenzen im Beleg-Abschnitt, Fragen im Schluss, knappe Kennzeichnung */
.bw-grenzen { margin-top: 64px; padding-top: 40px; border-top: 1px solid rgba(164, 169, 209, .3); }
.bw-grenzen h3 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; }
.sp-dark .bw-pk-l { stroke: #a9b8ff; } .sp-dark .bw-pk-f { fill: #a9b8ff; } .sp-dark .bw-pk-x { stroke: #ff8a80; }
.sp-dark .bw-pikto .bw-schraffur { stroke: #6f80f1; }
.sp-dark .sp-nots.bw-nots li { border-top-color: rgba(164, 169, 209, .3); }
.sp-dark .sp-nots.bw-nots li div { color: #d6daf6; }
.sp-dark .sp-nots.bw-nots li b { color: #fff; }
.bw-schluss-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.bw-end-fragen h3 { margin: 0 0 8px; font-size: 1.375rem; letter-spacing: -0.02em; }
.bw-end-fragen .sp-faq { margin-top: 16px; }
.bw-end-fragen .sp-faq a:hover { background: #fff; }
.bw-legende-zeile-kurz { grid-template-columns: minmax(0, 1fr) !important; }
.bw-held-gov .bw-legende .sp-rows { column-gap: 48px; }
.bw-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border: 1px solid var(--violet, #6728c2); border-radius: 4px; color: var(--violet, #6728c2); font-size: 0.875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.6; }
.sp-portal[data-portal="architect"] .sp-mark b, .sp-portal[data-portal="architect"] .bw-way strong::before, .bw-kopf-arch text, .bw-abschnitt text { font-feature-settings: "cv08" 1; }
@media (max-width: 999px) { .bw-schluss-raster { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
.sp-mark b:empty { display: none; }
.sp-portal[data-portal="architect"] .bw-way strong::before { font-weight: 600; letter-spacing: .04em; }

/* Runde 7 */
.sp .sp-s h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 750; line-height: 1.12; letter-spacing: -0.03em; }
.bw-end-fragen h3, .bw-grenzen h3 { line-height: 1.25; }
.sp .btn-primary:hover { box-shadow: 0 0 0 4px #c6cefb; }
.bw-held-soc .btn-primary:hover { box-shadow: 0 0 0 4px #3a4aa8; }
.bw-etikett { fill: #ffffff; stroke: #505575; stroke-width: 1.2; }
.bw-wandplatte { fill: #c9cee3; stroke: #101334; stroke-width: 2; }
.bw-held-architect .bw-legende .sp-key { display: none; }
.bw-fenster-voll { padding: 20px 24px; background: #fff; }
.bw-fenster-gov { max-width: 868px; }
.bw-fenster-gov .dg { margin: 0; }

/* Runde 8 */
.bw-antwort { margin: 24px 0 0; max-width: 44ch; font-size: 1.125rem; line-height: 1.5; }
.bw-held-soc .bw-antwort { color: #fff; }
.bw-legende-klapp > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.bw-held-soc .bw-legende-klapp > summary { color: #fff; }
.bw-legende-klapp[open] > summary { margin-bottom: 12px; }
.bw-fenster-gov .dg-plot { max-width: 520px; }
.bw-held-architect .btn-primary:hover, .sp-portal[data-portal="architect"] .btn-primary:hover { box-shadow: 0 0 0 4px #6f80f1; }
.bw-held-soc .bw-legende { background: #161b46; border-color: #2a3070; border-top-color: #9fb0ff; color: #fff; }
.bw-held-soc .bw-legende .sp-sheet-head, .bw-held-soc .bw-legende figcaption, .bw-held-soc .bw-legende .sp-row-sub { color: #c5ceff; }
.bw-held-soc .bw-legende .sp-row { border-top-color: #2a3070; }
.bw-held-soc .bw-legende .sp-key { border-top-color: #2a3070; }
.bw-held-soc .bw-legende .st { color: #fff; }
.bw-held-soc .bw-legende .seg-leer { border-color: #6f80f1; }
/* Abnahme: Kontrast der Nummern in der dunklen Legende, Zielgröße der Tabellenumschaltung im Fenster */
.bw-held-soc .bw-legende .bw-nr { color: #c5ceff; }
.sp .dg-tab > summary { min-height: 44px; display: flex; align-items: center; font-size: 0.875rem; }
.bw-held-soc .bw-legende .st-kritisch { color: #ff8a80; } .bw-held-soc .bw-legende .st-abweichung { color: #f0b65a; } .bw-held-soc .bw-legende .st-erfuellt { color: #5fd3a0; }

/* Befund N1: Dreierraster mit ungleichen Breiten. Der Bericht trägt die Aussage und bekommt mehr Platz; Baukasten und NIS2 sind schmaler. */
@media (min-width: 1000px) { .bw-drei { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; } .bw-drei .sp-bericht { padding-right: 8px; } }
