/* ORKA – Gestaltung
   Drei Ansichten über das Menü oben rechts (data-ansicht auf <html>): „Einsatz“ (Standard, hell/dunkel nach System,
   eigener Abschnitt am Ende), „Panel“ und „Klassisch“ (dieser Grundstil: ruhige nachtblaue Fläche, eine Akzentfarbe,
   Ampelfarben nur für Bewertungen; hell umschaltbar über data-theme). */
:root, [data-theme="dark"] {
  --bg: #0b1018; --s1: #141b26; --s2: #1c2533; --ln: #2a3546; --tx: #eef3f8; --mu: #9aa8bc;
  --ac: #8ab4ff; --ai: #0b1018;
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --shadow: 0 -10px 30px -12px rgba(0,0,0,.6);
  --pp: rgba(251,191,36,.20);
  --st1: #8ab4ff; --st2: #c4a7ff; --st1bg: rgba(138,180,255,.10); --st2bg: rgba(196,167,255,.10); --sti: #0b1018; --sc: #5eead4; --geas: #f9a8d4; --mj: #fdba74; --dipl: #e0c27a; --be: #60a5fa;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f3f5f8; --s1: #ffffff; --s2: #eaeef3; --ln: #d3dae4; --tx: #0e1621; --mu: #4f5d70;
  --ac: #2f5fd0; --ai: #ffffff;
  --ok: #0f8a5f; --warn: #a86b00; --bad: #c43c3c;
  --shadow: 0 -10px 30px -12px rgba(15,25,40,.25);
  --pp: rgba(250,204,21,.38);
  --st1: #2f5fd0; --st2: #7048c8; --st1bg: rgba(47,95,208,.08); --st2bg: rgba(112,72,200,.08); --sti: #ffffff; --sc: #0f766e; --geas: #be185d; --mj: #c2410c; --dipl: #8a6a12; --be: #1d4ed8;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* kein Zoom per Doppeltipp auf Bedienelementen (Kacheln werden oft schnell hintereinander getippt) */
button, summary, a, label, input { touch-action: manipulation; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--tx);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-size-adjust: 100%;
}
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 3px solid var(--ac); outline-offset: 2px; border-radius: 10px; }

.app { height: 100dvh; display: grid; grid-template-rows: auto auto 1fr auto; max-width: 560px; margin: 0 auto; position: relative; overflow: hidden; }

/* Kopfzeile */
.bar { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 6px;
  padding: calc(env(safe-area-inset-top, 0px) + 6px) max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left)); }
.bar-t { text-align: center; font-size: 13px; font-weight: 600; color: var(--mu); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-r { display: flex; gap: 2px; }
.ib { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--mu); }
.ib:active { background: var(--s2); }
.ib.sofort { color: var(--bad); }
.ib[hidden] { visibility: hidden; display: grid; }

.prog { padding: 0 20px; min-height: 4px; }
.prog .pg { display: flex; gap: 10px; }
.prog .g1 { flex: 3; display: flex; gap: 4px; } .prog .g2 { flex: 1; display: flex; gap: 4px; }
.prog b { flex: 1; height: 4px; border-radius: 2px; background: var(--ln); transition: background .3s; }
.prog .g1 b.on { background: var(--st1); }
.prog .g1 b.half { background: linear-gradient(90deg, var(--st1) 50%, var(--ln) 50%); }
.prog .g2 b { background: repeating-linear-gradient(90deg, var(--st2) 0 6px, transparent 6px 10px); opacity: .5; }
.prog .g2 b.on { background: var(--st2); opacity: 1; }
.prog .g2 b.half { background: linear-gradient(90deg, var(--st2) 50%, var(--ln) 50%); opacity: 1; }
.prog .pl { display: flex; gap: 10px; font-size: 11px; font-weight: 650; margin-top: 4px; }
.prog .pl span:first-child { flex: 3; color: var(--st1); } .prog .pl span:last-child { flex: 1; text-align: right; color: var(--st2); }
.prog .pg.s2 .g1 { flex: 1; gap: 2px; } .prog .pg.s2 .g2 { flex: 3; }
.prog .pl.s2 span:first-child { flex: 1; } .prog .pl.s2 span:last-child { flex: 3; }
/* Stufen: 1 = Kontrolle vor Ort (blau), 2 = Sachbearbeitung in der Dienststelle (violett) */
body.stufe2 { --ac: var(--st2); }
.chip-st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--tx); background: var(--st1bg); border: 1px solid var(--st1); }
.chip-st i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--st1); color: var(--sti); font-size: 12px; }
.chip-st.s2 { background: var(--st2bg); border-color: var(--st2); } .chip-st.s2 i { background: var(--st2); }
.chip-st .zus { color: var(--mu); font-weight: 600; }

/* Inhalt */
.view { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; outline: none;
  padding: 20px max(20px, env(safe-area-inset-right)) 24px max(20px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 14px; }
.view > * { flex-shrink: 0; }
.view.fwd { animation: inR .24s ease both; }
.view.bwd { animation: inL .24s ease both; }
@keyframes inR { from { opacity: 0; transform: translateX(22px); } }
@keyframes inL { from { opacity: 0; transform: translateX(-22px); } }
@media (prefers-reduced-motion: reduce) {
  .view.fwd, .view.bwd { animation: fade .2s ease both; }
  @keyframes fade { from { opacity: 0; } }
}

.step { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); margin: 0; }
.q { font-size: 26px; font-weight: 750; line-height: 1.18; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.sub { color: var(--mu); font-size: 15px; margin: -6px 0 0; }
.dots { display: flex; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--ln); }
.dots i.on { background: var(--ac); width: 18px; }

/* Kacheln */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tiles.one { grid-template-columns: 1fr; }
.tiles.three { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--s1); border: 1.5px solid var(--ln); border-radius: 18px; padding: 14px; min-height: 104px;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start; position: relative; transition: transform .12s ease, border-color .15s; }
.tile:active { transform: scale(.98); }
.tile.row { min-height: 68px; flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
.tile.mini { min-height: 72px; padding: 10px; gap: 6px; }
.tile .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--s2); display: grid; place-items: center; color: var(--tx); flex: none; }
.tile .code { font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.tile .lb { font-weight: 650; font-size: 16px; line-height: 1.2; }
.tile.mini .lb { font-size: 13.5px; }
.tile .ds { font-size: 13px; color: var(--mu); line-height: 1.3; }
.tile .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile[aria-pressed="true"] { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 13%, var(--s1)); }
.tile[aria-pressed="true"] .ic { background: var(--ac); color: var(--ai); }
.tile[aria-pressed="true"]::after { content: ""; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 10px;
  background: var(--ac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1018' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/14px no-repeat; }
[data-theme="light"] .tile[aria-pressed="true"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E"); }
.tile:disabled { opacity: .45; }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 16px; width: 100%;
  font-weight: 650; font-size: 17px; background: var(--ac); color: var(--ai); text-align: center; padding: 0 16px; }
.btn.sec { background: var(--s1); color: var(--tx); border: 1px solid var(--ln); }
.btn:disabled { opacity: .45; }
.btn:active:not(:disabled) { filter: brightness(.92); }
.actions { position: sticky; bottom: -24px; margin: auto -20px -24px; padding: 12px 20px 16px; display: grid; gap: 10px;
  background: linear-gradient(transparent, var(--bg) 26%); }
.or { font-size: 12px; color: var(--mu); text-align: center; letter-spacing: .08em; text-transform: uppercase; }

/* Fußzeile so flach wie möglich: eine Zeile, knappe Abstände. Auf Geräten mit Home-Balken (iPhone) rückt der
   Text in den freien Bereich, bleibt aber oberhalb des Balkens (Sicherheitsabstand minus 18 px, mindestens 3 px). */
.disc { font-size: 10.5px; line-height: 1.3; color: var(--mu); text-align: center; padding: 2px 8px max(3px, calc(env(safe-area-inset-bottom, 0px) - 18px)); border-top: 1px solid var(--ln); background: var(--bg); }
.disc b { font-weight: 650; }
/* Kennzeichen der Erprobungsphase in der Fußzeile (0.39.4, Vorgabe des Inhabers; bei Ende der Erprobung entfernen) */
.disc-phase { font-weight: 800; color: var(--tx); }
.disc-kurz { display: none; }
@media (max-width: 430px) { .disc-lang, .disc-vw { display: none; } .disc-kurz { display: inline; } }
@media (max-width: 380px) { .disc-kurz { display: none; } }
#fussVersion { white-space: nowrap; }

/* Hinweis auf eine neue Version (nach dem Entsperren; Neustart nur auf Tipp) */
.neu-version { position: fixed; z-index: 60; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 8px); max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--s1); color: var(--tx);
  border: 1px solid var(--ln); box-shadow: var(--shadow); font-size: 15px; font-weight: 600; }
.neu-version span { flex: 1; }
.neu-version .btn { width: auto; min-height: 40px; padding: 0 14px; font-size: 14.5px; }

/* Karten und Hinweise */
.card { background: var(--s1); border: 1px solid var(--ln); border-radius: 18px; padding: 14px 16px; display: grid; gap: 8px; }
.card .h { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); }
.card ol, .card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15.5px; }
.note { font-size: 14px; color: var(--mu); }
.info { border-radius: 14px; padding: 12px 14px; font-size: 14.5px; display: grid; grid-template-columns: auto 1fr; gap: 10px;
  background: color-mix(in srgb, var(--warn) 14%, var(--s1)); }
.info svg { color: var(--warn); width: 20px; height: 20px; margin-top: 1px; }

/* Ampel */
.amp { --c: var(--warn); border-radius: 22px; padding: 16px 18px; display: grid; gap: 6px;
  background: color-mix(in srgb, var(--c) 14%, var(--s1)); border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent); }
.amp.ok { --c: var(--ok); } .amp.bad { --c: var(--bad); }
.amp .lights { display: flex; gap: 7px; }
.amp .lights i { width: 13px; height: 13px; border-radius: 7px; background: var(--ln); }
.amp .lights i.on { background: var(--c); box-shadow: 0 0 12px var(--c); }
.amp .st { font-size: 24px; font-weight: 780; color: var(--c); letter-spacing: -.01em; }
.amp ul { margin: 0; padding-left: 18px; font-size: 15px; display: grid; gap: 3px; }

.weiche { border-radius: 18px; padding: 14px 16px; display: grid; gap: 8px; background: color-mix(in srgb, var(--bad) 15%, var(--s1));
  border: 1.5px solid color-mix(in srgb, var(--bad) 60%, transparent); }
.weiche .wt { display: flex; gap: 10px; align-items: center; font-weight: 750; font-size: 17px; color: var(--bad); }
.weiche ul { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: 15px; }

/* Aufklapper */
details.acc { background: var(--s1); border: 1px solid var(--ln); border-radius: 16px; }
details.acc > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; min-height: 52px; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary .r { color: var(--mu); font-weight: 500; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
details.acc > summary .chev { width: 18px; height: 18px; transition: transform .2s; color: var(--mu); }
details.acc[open] > summary .chev { transform: rotate(90deg); }
details.acc > div { padding: 0 16px 16px; display: grid; gap: 10px; font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 5px; background: var(--c, var(--mu)); flex: none; }
.dot.ok { --c: var(--ok); } .dot.warn { --c: var(--warn); } .dot.bad { --c: var(--bad); }
.row-link { display: flex; justify-content: space-between; align-items: center; background: var(--s1); border: 1px solid var(--ln); border-radius: 16px; padding: 14px 16px; font-weight: 600; font-size: 15.5px; min-height: 54px; width: 100%; }
.row-link .r { color: var(--mu); font-weight: 500; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.pill { background: var(--s2); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--tx); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; flex-direction: column; gap: 1px; background: var(--s2); border-radius: 12px; padding: 8px 12px; text-decoration: none; color: var(--tx); font-size: 14px; font-weight: 650; }
.chip small { font-weight: 450; color: var(--mu); font-size: 12px; }

/* Staatenliste */
.az { display: grid; gap: 2px; }
.az .letter { font-size: 13px; font-weight: 700; color: var(--mu); padding: 14px 4px 4px; position: sticky; top: -20px; background: var(--bg); }
.letter.kl { font-size: 13px; font-weight: 700; color: var(--mu); padding: 14px 4px 6px; }
.az button { display: flex; justify-content: space-between; align-items: center; min-height: 50px; padding: 0 14px; border-radius: 12px; background: var(--s1); font-size: 16px; }
.az button span { color: var(--mu); font-size: 12px; font-weight: 600; }
.azbar { display: flex; flex-wrap: wrap; gap: 4px; }
.azbar button { min-width: 34px; height: 34px; border-radius: 9px; background: var(--s1); font-size: 13px; font-weight: 650; text-align: center; }

/* Checkliste */
.chk { display: flex; gap: 14px; align-items: center; width: 100%; background: var(--s1); border: 1px solid var(--ln); border-radius: 16px; padding: 14px 16px; min-height: 60px; font-size: 16px; }
.chk .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--ln); display: grid; place-items: center; flex: none; color: transparent; }
.chk .box svg { width: 18px; height: 18px; stroke-width: 3; }
.chk[aria-checked="true"] .box { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.chk[aria-checked="true"] .t { color: var(--mu); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--mu) 60%, transparent); }
.count { display: flex; justify-content: space-between; font-size: 14px; color: var(--mu); }

/* Export */
.preview { background: var(--s1); border: 1px solid var(--ln); border-radius: 14px; padding: 12px 14px; font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; max-height: 42vh; overflow: auto; user-select: text; -webkit-user-select: text; }
.toast { text-align: center; font-size: 14px; color: var(--ok); min-height: 20px; }

/* Start */
.hero { display: grid; gap: 8px; padding-top: 4px; }
.hero-kopf { display: flex; align-items: center; gap: 12px; }
.mark { width: 44px; height: 44px; border-radius: 13px; background: var(--s2); display: grid; place-items: center; color: var(--ac); flex: none; }
.mark svg { width: 24px; height: 24px; }
.hero h1 { font-size: 22px; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.hero p { margin: 0; color: var(--mu); font-size: 15px; }
/* Startseite: Nebeninformationen zurückhaltend */
.sek { display: grid; gap: 5px; margin-top: 14px; }
.sek .facts { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--mu); padding: 0 4px 4px; }
.sek .facts svg { width: 15px; height: 15px; color: var(--mu); flex: none; }
.sek details.acc { background: transparent; border-color: color-mix(in srgb, var(--ln) 70%, transparent); border-radius: 12px; }
.sek details.acc > summary { font-size: 13px; font-weight: 550; min-height: 36px; padding: 6px 12px; color: var(--mu); white-space: nowrap; }
.sek details.acc > summary .r { font-size: 12px; }
.sek details.acc > summary .chev { width: 15px; height: 15px; }
.sek details.acc > div { font-size: 13.5px; padding: 0 12px 12px; }
.sek .note { font-size: 12.5px; margin: 4px 4px 0; }
dl.kv { margin: 0; display: grid; gap: 8px; }
dl.kv dt { font-size: 12px; color: var(--mu); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
dl.kv dd { margin: 0; }

/* Blätter (Sofort-Weichen, Bestätigung) */
.scrim { position: absolute; inset: 0; background: rgba(5,8,14,.55); z-index: 20; animation: fade .2s ease both; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 88%; overflow-y: auto; background: var(--s1); border-radius: 26px 26px 0 0;
  padding: 10px max(20px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom, 0px) + 18px) max(20px, env(safe-area-inset-left));
  display: grid; gap: 14px; box-shadow: var(--shadow); animation: up .26s cubic-bezier(.2,.8,.2,1) both; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--ln); margin: 0 auto; }
.sheet h2 { margin: 0; font-size: 21px; }
.sheet .tile { background: var(--bg); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: fade .2s ease both; } }

@media (max-width: 360px) {
  .tiles.three { grid-template-columns: 1fr 1fr; }
  .q { font-size: 23px; }
}
.q:focus, h1:focus, h2:focus { outline: none; }
.actions.static { position: static; margin: 4px 0 0; padding: 0; background: none; }

/* ===== Ebene 2 ===== */
.sec-h { margin: 10px 0 -2px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); }
.sec-h svg { width: 18px; height: 18px; }
.tile.static { cursor: default; }
.tile.static:active { transform: none; }
.uebernahme { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.mtitel { font-size: 19px; font-weight: 720; letter-spacing: -.01em; }
.amp .nr { color: var(--mu); font-size: 13.5px; }
.tag { display: inline-flex; align-items: center; border: 1px solid var(--ln); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; color: var(--mu); }
.haft { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--ln); }
.haft:last-child { border-bottom: 0; padding-bottom: 0; }
.liste { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

a.link { color: var(--ac); font-weight: 650; text-decoration: none; }
a.link:active { opacity: .7; }
.normtext { white-space: pre-wrap; font-size: 14.5px; line-height: 1.5; max-height: 52vh; overflow: auto; background: var(--s2); border-radius: 12px; padding: 12px 14px; }
button.chip { border: 0; text-align: left; cursor: pointer; font-family: inherit; }

/* Hinweise für Betroffene */
.hw-text { font-size: 27px; line-height: 1.45; font-weight: 600; margin: 4px 0 6px; overflow-wrap: anywhere; }
.hw-text[dir="rtl"] { font-size: 30px; line-height: 1.7; text-align: right; }
.hw-text.lang { font-size: 22px; }
.hw-text.lang[dir="rtl"] { font-size: 25px; }

/* Übungsmodus */
.ueb-h { font-size: 16px; margin: 6px 0 -4px; }
.ueb-z { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 15px; }
.ueb-z .dot { margin-top: 5px; }

/* Zugangssperre (Passwort, nur im Arbeitsspeicher entsperrt) */
.app[hidden] { display: none; }
.sperre { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: var(--bg); z-index: 50; overflow-y: auto; }
.sperre[hidden] { display: none; }
.sperre-f { width: 100%; max-width: 380px; display: grid; gap: 12px; text-align: center; }
.sperre-f h1 { font-size: 22px; margin: 4px 0 0; }
.sperre-f p { margin: 0; color: var(--mu); }
.sperre-i { width: 44px; height: 44px; margin: 0 auto; color: var(--ac); }
.sperre-f input { font: inherit; font-size: 18px; min-height: 54px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--ln); background: var(--s1); color: var(--tx); width: 100%; }
.sperre-f input:focus { outline: 3px solid var(--ac); outline-offset: 1px; }
.sperre-f .sperre-rechte { font-size: 12.5px; margin-top: 6px; }
.sperre-f .sperre-ki { margin-top: 0; }
.sperre-beh { display: grid; gap: 8px; text-align: left; }
.sperre-beh .sb { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 16px; border: 1.5px solid var(--ln); background: var(--s1); cursor: pointer; font-weight: 650; }
.sperre-beh .sb input { position: absolute; opacity: 0; pointer-events: none; }
.sperre-beh .sb svg { width: 24px; height: 24px; flex: none; color: var(--mu); }
.sperre-beh .sb small { display: block; font-weight: 400; font-size: 13px; color: var(--mu); }
.sperre-beh .sb:has(input:checked) { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 12%, var(--s1)); }
.sperre-beh .sb:has(input:checked) svg { color: var(--ac); }
.sperre-beh .sb:has(input:focus-visible) { outline: 3px solid var(--ac); outline-offset: 1px; }
.sperre-beh .sb:has(input:disabled) { opacity: .45; cursor: not-allowed; }
/* Hinweis auf die Entwicklungs- und Erprobungsphase (0.39.3, Vorgabe des Inhabers) */
.sperre-phase { text-align: left; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--warn); border: 1.5px solid color-mix(in srgb, var(--warn) 70%, transparent); background: color-mix(in srgb, var(--warn) 10%, var(--s1)); }
.sperre-f .sperre-phase p { font-size: 13px; line-height: 1.45; color: var(--tx); }
.sperre-phase-pill { display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--bg); background: var(--warn); }
.sperre-fehler { min-height: 1.45em; color: var(--bad) !important; font-size: 15px; }

/* Angaben ändern (Verlauf) */
.sheet .h { font-size: 13px; font-weight: 700; color: var(--mu); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.vliste { display: grid; gap: 6px; }
.vl { display: grid; gap: 2px; width: 100%; padding: 10px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--ln); }
.vl.akt { border-color: var(--ac); }
.vl .vf { font-size: 13.5px; color: var(--mu); }
.vl .va { font-size: 15.5px; font-weight: 600; }
.vl .va.offen { color: var(--warn); font-weight: 500; }
.korr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 14px; background: var(--s1); border: 1px solid var(--ac); font-size: 14.5px; }
.korr svg { color: var(--ac); }
.korr span { flex: 1 1 200px; }
.korr button { color: var(--ac); font-weight: 650; }

/* Prüfpunkte in Erläuterungstexten */
mark.pp { background: var(--pp); color: inherit; font-weight: 600; border-radius: 4px; padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pp-tag { display: inline-block; margin-left: 4px; font-size: 11.5px; font-weight: 600; color: var(--warn); border: 1px solid currentColor; border-radius: 6px; padding: 0 5px; vertical-align: 1px; }

/* Verzweigungslogik (Mindmap) */
.mm-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mm-knoepfe .btn { min-height: 46px; font-size: 15px; }
.mm-knoepfe #btn-mm-bild { grid-column: 1 / -1; }
.mm, .mm ul { list-style: none; margin: 0; padding: 0; }
.mm ul { margin-left: 9px; padding-left: 12px; border-left: 2px solid var(--ln); }
.mm li { position: relative; margin: 4px 0; }
.mm ul > li::before { content: ""; position: absolute; left: -12px; top: 15px; width: 10px; border-top: 2px solid var(--ln); }
.mm summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--s1); border: 1px solid var(--ln); }
.mm summary::-webkit-details-marker { display: none; }
.mm details[open] > summary { border-color: var(--ac); }
.mm .mm-blatt { display: grid; padding: 4px 10px; }
.mm-t { font-size: 14.5px; font-weight: 600; }
.mm-blatt .mm-t { font-weight: 500; }
.mm-d { grid-column: 1; font-size: 12.5px; color: var(--mu); }
.mm-n { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 12px; color: var(--mu); background: var(--s2); border-radius: 10px; padding: 1px 7px; }
button.link { color: var(--ac); font-weight: 600; text-decoration: underline; text-align: left; }

/* Installationsanleitung */
ol.anl { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Kopfzeile auf schmalen Geräten: vier Symbole */
@media (max-width: 400px) { .bar-r { gap: 0; } .bar .ib { width: 38px; } .bar { grid-template-columns: 38px 1fr auto; gap: 4px; } }
@media (max-width: 340px) { .bar .ib { width: 34px; } .bar { grid-template-columns: 34px 1fr auto; } .bar-t { font-size: 12px; } }

/* ===== Desktop-Ansicht (Sachbearbeitung auf der Dienststelle) =====
   Nur ab 1100 px Fensterbreite. Smartphone und Tablet im Hochformat behalten die gewohnte einspaltige Ansicht. */
.brand, .ib-t, .side, .aside, .nur-desk, .tile .kb { display: none; }
kbd { font: 650 11px/1.3 ui-monospace, "SF Mono", Menlo, monospace; background: var(--s2); border: 1px solid var(--ln); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--mu); }

@media (min-width: 1100px) {
  .nur-desk { display: block; }
  .nur-mobil { display: none; }
  .app { max-width: none; grid-template-columns: 288px minmax(0, 1fr) 380px; grid-template-rows: auto auto 1fr auto; }
  .app.ohne-aside { grid-template-columns: 288px minmax(0, 1fr); }
  .app.ohne-aside .aside { display: none; }
  .bar { grid-column: 1 / -1; grid-template-columns: 272px 44px 1fr auto; padding: 8px 20px; background: var(--s1); border-bottom: 1px solid var(--ln); }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; white-space: nowrap; background: none; border: 0; padding: 0; color: inherit; font-family: inherit; cursor: pointer; border-radius: 9px; }
  .brand:hover .brand-m, .brand:focus-visible .brand-m { outline: 2px solid var(--ac); outline-offset: 1px; }
  .brand-m { width: 32px; height: 32px; border-radius: 9px; background: var(--s2); display: grid; place-items: center; color: var(--ac); }
  .brand-m svg { width: 18px; height: 18px; }
  .bar-t { text-align: left; font-size: 14px; color: var(--tx); }
  .bar-r { gap: 6px; }
  .ib { width: auto; min-width: 40px; height: 38px; padding: 0 12px; gap: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ln); border-radius: 10px; font-size: 13px; font-weight: 600; }
  .ib[hidden] { display: none; }
  #btn-back { border: 0; padding: 0; }
  #btn-back[hidden] { visibility: hidden; display: flex; }
  .ib svg { width: 19px; height: 19px; }
  .ib-t { display: inline; white-space: nowrap; }
  .ib.sofort { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 9%, transparent); }
  .ib:hover { color: var(--tx); background: var(--s2); }
  .ib.sofort:hover { color: var(--bad); }
  .prog { grid-column: 2; grid-row: 2; padding: 22px 48px 0; max-width: 1000px; }
  .view { grid-column: 2; grid-row: 3; padding: 22px 48px 24px; }
  .view > * { width: 100%; max-width: 920px; }
  .actions { margin: auto -48px -24px; padding: 14px 48px 18px; }
  .actions:not(.static) > .btn { max-width: 920px; }
  .actions.static { margin: 4px 0 0; padding: 0; }
  .az .letter { top: -22px; }
  .disc { grid-column: 1 / -1; }
  .q { font-size: 30px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles.one { grid-template-columns: repeat(2, 1fr); }
  .tiles.three { grid-template-columns: repeat(4, 1fr); }
  .tile .kb { display: block; position: absolute; top: 10px; right: 10px; }
  .tile[aria-pressed="true"] .kb { display: none; }
  .tile.row .kb { position: static; margin-left: auto; }
  @media (hover: hover) {
    .tile:hover:not(:disabled):not(.static) { border-color: color-mix(in srgb, var(--ac) 60%, var(--ln)); }
    .row-link:hover, .chk:hover, details.acc > summary:hover { border-color: color-mix(in srgb, var(--ac) 45%, var(--ln)); }
  }

  /* Linke Spalte: Ablauf mit Antworten (anklickbar) */
  .side { display: flex; flex-direction: column; gap: 2px; grid-column: 1; grid-row: 2 / 4; border-right: 1px solid var(--ln); padding: 18px 14px 14px; overflow-y: auto; }
  .side .h { font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); padding: 10px 10px 6px; }
  .side .h:first-child { padding-top: 0; }
  .stf { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 8px 10px; border-radius: 12px; align-items: start; }
  .stf .n { width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--s2); color: var(--mu); }
  .stf .n svg { width: 14px; height: 14px; stroke-width: 3; }
  .stf.done .n { background: color-mix(in srgb, var(--ac) 22%, var(--s1)); color: var(--ac); }
  .stf.cur { background: color-mix(in srgb, var(--ac) 12%, var(--s1)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ac) 55%, transparent); }
  .stf.cur .n { background: var(--ac); color: var(--ai); }
  .stf .t { font-weight: 620; font-size: 14px; display: block; }
  .stf.todo .t { color: var(--mu); font-weight: 550; }
  .stf .v { font-size: 12.5px; color: var(--mu); line-height: 1.4; margin-top: 1px; }
  .stf .v button, .stf .lk { color: var(--mu); font-size: 12.5px; text-align: left; border-radius: 4px; }
  .stf .v button:hover, .stf .lk:hover:not(:disabled) { color: var(--ac); text-decoration: underline; }
  .stf .v button.offen { color: var(--warn); }
  .stf .links { display: grid; gap: 3px; margin-top: 4px; }
  .stf .lk { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--tx); font-weight: 550; }
  .stf .lk.akt { color: var(--ac); }
  .stf .lk:disabled { color: var(--mu); opacity: .6; cursor: default; }
  .side .btn { min-height: 44px; font-size: 14.5px; border-radius: 12px; margin: 6px 0 2px; }
  .side .nav { display: grid; gap: 4px; }
  .side .nav button { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; font-size: 14px; font-weight: 600; }
  .side .nav button:hover, .side .nav button.akt { background: var(--s1); }
  .side .nav svg { width: 18px; height: 18px; color: var(--mu); }
  .side .sp { flex: 1; min-height: 12px; }
  .side .foot { font-size: 12px; color: var(--mu); display: grid; gap: 6px; padding: 12px 10px 0; border-top: 1px solid var(--ln); }
  .side .foot div { display: flex; gap: 8px; align-items: center; }
  .side .foot svg { width: 15px; height: 15px; }

  /* Rechte Spalte: Arbeitsstand */
  .aside { display: flex; flex-direction: column; gap: 12px; grid-column: 3; grid-row: 2 / 4; border-left: 1px solid var(--ln); padding: 18px; overflow-y: auto;
    background: color-mix(in srgb, var(--s1) 50%, var(--bg)); }
  .aside > * { flex-shrink: 0; }
  .aside .ah { font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); display: flex; justify-content: space-between; gap: 8px; }
  .aside .ah span { letter-spacing: 0; text-transform: none; font-weight: 500; }
  .aside .card { padding: 12px 14px; border-radius: 14px; font-size: 13.5px; }
  .aside .card ul, .aside .card ol { font-size: 13.5px; }
  .aside .amp { padding: 12px 14px; border-radius: 16px; }
  .aside .amp .st2 { font-size: 18px; font-weight: 780; color: var(--c); }
  .aside .amp ul { font-size: 13.5px; }
  .aside .weiche { padding: 11px 13px; border-radius: 14px; }
  .aside .weiche ul { font-size: 13.5px; }
  .aside .ruhig { border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--mu);
    border: 1px dashed color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 7%, var(--s1)); width: 100%; }
  .aside .ruhig svg { color: var(--bad); width: 18px; height: 18px; }
  .aside .chk { min-height: 0; padding: 9px 12px; font-size: 13.5px; border-radius: 12px; gap: 11px; }
  .aside .chk .box { width: 20px; height: 20px; border-radius: 6px; }
  .aside .chk .box svg { width: 13px; height: 13px; }
  .aside .chks { display: grid; gap: 6px; }
  .aside .preview { max-height: 34vh; font-size: 11.5px; }
  .aside .knoepfe { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .aside .knoepfe .btn { min-height: 42px; font-size: 13.5px; border-radius: 12px; padding: 0 8px; gap: 6px; }
  .aside .knoepfe .btn svg { width: 17px; height: 17px; }
  .aside .chip { font-size: 12.5px; padding: 6px 10px; }

  /* Blätter als Dialog in der Bildschirmmitte */
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(620px, calc(100% - 48px)); max-height: 82%; transform: translate(-50%, -50%);
    border-radius: 22px; padding: 22px 24px; animation: fade .2s ease both; }
  .sheet .grab { display: none; }
  .tiles .tile.row { min-height: 64px; }
}
@media (min-width: 1100px) { .view > .actions:not(.static) { width: auto; max-width: none; } }
.hw-rubrik summary .r { white-space: nowrap; }
.hw-rubrik > div { padding-top: 4px; }

/* Ergebnis der Kontrolle */
.amp .stufe-t { font-size: 12px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--mu); margin-bottom: -4px; }
.kv2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kv2 > div { background: var(--s1); border: 1px solid var(--ln); border-radius: 14px; padding: 9px 12px; min-width: 0; }
.kv2 small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mu); }
.kv2 b { font-size: 15px; display: block; overflow-wrap: anywhere; }
.kv2.eins { grid-template-columns: 1fr; }
.kv2 .wl { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 13px; font-weight: 700; color: var(--warn); }
.kv2 .wl svg { width: 15px; height: 15px; flex: none; }
.tatv { border: 1px solid var(--ln); border-left: 4px solid var(--bad); background: var(--s1); border-radius: 18px; padding: 14px 16px; display: grid; gap: 8px; }
.tatv.owi { border-left-color: var(--warn); }
.tatv .h { font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--bad); }
.tatv.owi .h { color: var(--warn); }
.tatv ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.tatv li { display: grid; grid-template-columns: 58px 1fr; gap: 8px; align-items: baseline; font-size: 15px; }
.tatv li em { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 0; text-align: center; border-radius: 6px; background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.tatv li em.owi { background: var(--s2); color: var(--mu); }
.tatv li em.offen { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.tatv li small { display: block; color: var(--mu); font-size: 12.5px; }
.tatv p { margin: 0; font-size: 13px; color: var(--mu); }
.card.jetzt { border-left: 4px solid var(--st1); } .card.jetzt .h { color: var(--st1); }
.spaeter { border: 1px dashed var(--st2); background: var(--st2bg); border-radius: 18px; padding: 14px 16px; display: grid; gap: 6px; }
.spaeter .h { font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--st2); }
.spaeter p { margin: 0; font-size: 14px; color: var(--mu); }
.spaeter .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.spaeter .chips span { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--s1); border: 1px solid var(--ln); }
.ohne2 { border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--ln)); background: color-mix(in srgb, var(--ok) 8%, var(--s1)); border-radius: 18px; padding: 14px 16px; display: grid; gap: 6px; }
.ohne2 .h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 750; color: var(--ok); }
.ohne2 .h svg { width: 20px; height: 20px; }
.ohne2 p { margin: 0; font-size: 14px; color: var(--mu); }
.weisung { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; font-weight: 750; font-size: 15px;
  background: color-mix(in srgb, var(--warn) 22%, var(--s1)); border: 2px solid var(--warn); color: var(--tx); }
.weisung svg { width: 22px; height: 22px; color: var(--warn); }
.textlink { display: block; width: 100%; text-align: center; color: var(--mu); font-weight: 600; font-size: 14px; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.leiste .btn { min-height: 54px; padding: 6px 8px; flex-direction: column; gap: 1px; font-size: 14px; line-height: 1.15; }
.leiste .btn small { font-size: 11.5px; font-weight: 600; opacity: .75; }
.leiste .btn.st2 { background: var(--st2); color: var(--sti); border: none; }
.actions.leiste { display: flex; gap: 8px; }
.actions.leiste .btn { flex: 1; width: auto; min-width: 0; }
.leiste .btn.st2 { flex: 1.5; }
/* Fall-Code */
.fallcode { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; font-weight: 800; letter-spacing: .05em; text-align: center; padding: 14px 8px; border-radius: 16px; background: var(--s2); border: 1px solid var(--ln); overflow-wrap: anywhere; }
.fallcode .plus { color: var(--st2); }
.codefeld { font: inherit; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center;
  min-height: 56px; width: 100%; padding: 0 12px; border-radius: 16px; border: 1px solid var(--ln); background: var(--s2); color: var(--tx); }
.codefeld:focus { outline: 3px solid var(--ac); outline-offset: 1px; }
.codefehler { color: var(--bad); font-size: 14.5px; min-height: 1.4em; margin: 0; }

/* ===== Startseite (Smartphone): Hauptknopf, Sprechblase, Übungs-Pille ===== */
.start-haupt { margin: 10px 0 12px; }
.btn.haupt { min-height: 92px; border-radius: 22px; font-size: 21px; gap: 14px; padding: 0 22px; justify-content: space-between;
  box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--ac) 70%, transparent); }
.btn.haupt > svg { width: 30px; height: 30px; flex: none; }
.btn.haupt > svg:last-child { width: 26px; height: 26px; }
.haupt-t { display: grid; gap: 2px; text-align: left; flex: 1; }
.haupt-t small { font-size: 13px; font-weight: 600; opacity: .75; }
.blase { position: relative; display: grid; gap: 10px; width: 100%; text-align: left; padding: 14px 16px 14px;
  background: color-mix(in srgb, var(--st1) 12%, var(--s1)); border: 1.5px solid color-mix(in srgb, var(--st1) 45%, var(--ln));
  border-radius: 22px 22px 22px 6px; margin-bottom: 14px; color: var(--tx); }
.blase::after { content: ""; position: absolute; left: 18px; bottom: -11px; width: 18px; height: 18px;
  background: color-mix(in srgb, var(--st1) 12%, var(--s1)); border-left: 1.5px solid color-mix(in srgb, var(--st1) 45%, var(--ln));
  border-bottom: 1.5px solid color-mix(in srgb, var(--st1) 45%, var(--ln)); transform: skewY(-38deg); border-bottom-left-radius: 4px; }
.blase-kopf { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.blase-kopf > svg:first-child { width: 28px; height: 28px; color: var(--st1); }
.blase-kopf > svg:last-child { width: 20px; height: 20px; color: var(--mu); }
.blase-kopf b { display: block; font-size: 16.5px; }
.blase-kopf small { display: block; font-size: 13px; color: var(--mu); margin-top: 1px; }
.blase-sp { display: flex; flex-wrap: wrap; gap: 5px; max-height: 58px; overflow: hidden; }
.blase-sp span { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--ln); color: var(--tx); white-space: nowrap; }
.ueb-zeile { display: flex; justify-content: center; }
.pille { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px dashed var(--ln); color: var(--mu);
  font-size: 13.5px; font-weight: 600; background: transparent; }
.pille svg { width: 16px; height: 16px; }
.pille span { font-weight: 500; opacity: .8; }
.pille span::before { content: "· "; }

/* ===== Ergebnisse als Dashboard (Desktop); am Smartphone untereinander wie bisher ===== */
.dash, .dcol { display: contents; }
@media (min-width: 1100px) {
  .app.dash-screen { grid-template-columns: 288px minmax(0, 1fr) 340px; }
  .app.dash-screen .view { padding-left: 32px; padding-right: 32px; }
  .app.dash-screen .prog { padding-left: 32px; padding-right: 32px; max-width: 1260px; }
  .app.dash-screen .view > * { max-width: 1260px; }
  .app.dash-screen .actions { margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px; }
  .app.dash-screen .actions:not(.static) > .btn { max-width: none; }
  .dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .dcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .dash.d2 .dcol.links { grid-column: 1; grid-row: 1; }
  .dash.d2 .dcol.rechts { grid-column: 2; grid-row: 1; }
  .dash.d2 .dcol.mitte { grid-column: 1 / -1; grid-row: 2; }
  .dash .sec-h { margin-top: 0; }
  .dash.d1 .amp { padding: 20px 22px; }
  .dash.d1 .amp .st { font-size: 30px; }
  .dash-kz.nur-desk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .kz { --c: var(--ln); display: grid; gap: 4px; align-content: start; text-align: left; padding: 12px 14px; border-radius: 16px; min-height: 96px;
    background: var(--s1); border: 1px solid var(--ln); border-top: 4px solid var(--c); color: var(--tx); }
  .kz.ok { --c: var(--ok); } .kz.warn { --c: var(--warn); } .kz.bad { --c: var(--bad); } .kz.be { --c: var(--be); }
  .kz small { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kz b { display: flex; align-items: center; gap: 7px; font-size: 14.5px; line-height: 1.25; overflow-wrap: break-word; min-width: 0; }
  .kz > span { font-size: 12.5px; color: var(--mu); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .kz:not(:disabled):hover { border-color: color-mix(in srgb, var(--ac) 50%, var(--ln)); border-top-color: var(--c); }
  .kz:disabled { cursor: default; }
  /* Startseite am Desktop: Hauptknopf nicht übergroß */
  .start-haupt { max-width: 560px; }
  .blase, .row-link#btn-code-oeffnen, .ueb-zeile { max-width: 560px; }
}

/* Angaben im Überblick (Ergebnisseiten, Smartphone) */
details.acc.angaben > summary { gap: 10px; justify-content: flex-start; }
details.acc.angaben > summary > svg:first-child { width: 18px; height: 18px; color: var(--mu); flex: none; }
details.acc.angaben > summary .r { margin-left: auto; }
.angaben-g { display: grid; gap: 4px; padding: 8px 0; border-top: 1px solid var(--ln); }
.angaben-g:first-child { border-top: 0; padding-top: 0; }
.angaben-t { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ac); }
.angaben-l { display: grid; gap: 1px; margin: 0; }
.angaben-l dt { color: var(--mu); font-size: 12.5px; margin-top: 4px; }
.angaben-l dd { margin: 0; font-size: 14.5px; font-weight: 620; }
.angaben-l .offen { color: var(--warn); font-style: normal; }
details.acc.angaben .link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--ac); font-weight: 650; font-size: 14px; }
details.acc.angaben .link svg { width: 16px; height: 16px; }
@media (min-width: 1100px) { details.acc.angaben.nur-mobil { display: none; } }

/* ===== Ergebnisseiten nach Entwurf (0.28.3): Zeilen, Karten, Jetzt tun, schmale Hinweise ===== */
.quelle { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; color: var(--mu); line-height: 1.4; }
.quelle svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.tun { background: var(--s1); border: 1px solid var(--ln); border-radius: 18px; padding: 14px 16px; display: grid; gap: 10px; }
.tun .h { font-size: 12px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--st1); }
.schritt { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 15.5px; line-height: 1.38; }
.schritt > span { width: 28px; height: 28px; border-radius: 14px; background: color-mix(in srgb, var(--st1) 20%, var(--s1)); color: var(--st1); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.zeilen { background: var(--s1); border: 1px solid var(--ln); border-radius: 18px; overflow: hidden; }
.zeilen > details { background: transparent; border: 0; border-radius: 0; border-top: 1px solid var(--ln); }
.zeilen > details:first-child { border-top: 0; }
details.zl > summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 56px; }
details.zl > summary::-webkit-details-marker { display: none; }
.zl-t { display: grid; gap: 1px; min-width: 0; }
.zl-t b { font-weight: 650; font-size: 15.5px; }
.zl-t small { color: var(--mu); font-size: 13px; line-height: 1.35; }
details.zl > summary .r { color: var(--mu); font-size: 13px; display: flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; }
details.zl > summary .chev { width: 18px; height: 18px; transition: transform .2s; }
details.zl[open] > summary .chev { transform: rotate(90deg); }
.zl-i { padding: 0 16px 16px; display: grid; gap: 10px; font-size: 15px; }
.zl-i details.acc { background: var(--bg); }
.tv-l { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tv-l li { display: flex; gap: 10px; align-items: flex-start; }
.tv-l em { font-style: normal; font-size: 11.5px; font-weight: 750; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); flex: none; margin-top: 2px; }
.tv-l em.owi, .tv-l em.offen { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.tv-l small { display: block; color: var(--mu); font-size: 12.5px; }
details.karte { background: var(--s1); border: 1px solid var(--ln); border-left: 4px solid var(--c); border-radius: 18px; }
details.karte > summary { list-style: none; cursor: pointer; padding: 13px 15px; display: grid; gap: 6px; }
details.karte > summary::-webkit-details-marker { display: none; }
.karte .kt { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.karte .kt .h { font-size: 12px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--mu); }
.karte .mehr { color: var(--ac); font-size: 13px; font-weight: 650; white-space: nowrap; }
.karte .mehr::after { content: "Mehr ›"; }
details.karte[open] .mehr::after { content: "Weniger ‹"; }
.karte .erg { font-size: 17.5px; font-weight: 750; line-height: 1.3; }
.karte .erg .dot { display: inline-block; margin-right: 6px; vertical-align: 2px; }
.karte .erg .plus { font-size: 13px; color: var(--mu); font-weight: 650; }
.karte .kern { font-size: 15px; line-height: 1.42; color: var(--tx); opacity: .88; }
.karte .normen { display: flex; gap: 6px; flex-wrap: wrap; }
.karte .normen span { font-size: 12px; padding: 3px 8px; border-radius: 8px; background: var(--s2); color: var(--mu); font-weight: 600; }
.karte-i { padding: 0 15px 15px; display: grid; gap: 10px; font-size: 15px; }
.karte-i details.acc { background: var(--bg); }
.offen-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px dashed var(--warn); border-radius: 16px; padding: 10px 14px; font-size: 14.5px; }
.offen-h small { display: block; color: var(--mu); font-size: 12.5px; margin-top: 2px; }
.offen-h button { color: var(--ac); font-weight: 700; display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 14.5px; }
.offen-h button svg { width: 16px; height: 16px; }
/* Kopfzeile am Smartphone mit Beschriftung; „Sofort“ nur bei aktiver Sofort-Weiche rot */
.view .dcol > *, .view .dash > * { flex-shrink: 0; }
.ib-k { display: block; font-size: 9px; font-weight: 650; line-height: 1; margin-top: 2px; white-space: nowrap; }
.bar .ib { height: 48px; width: auto; min-width: 40px; padding: 0 3px; align-content: center; justify-items: center; }
.ib.sofort { color: var(--mu); }
.ib.sofort.aktiv { color: var(--bad); }
@media (min-width: 1100px) {
  .ib-k { display: none; }
  .bar .ib { height: 38px; padding: 0 12px; }
  .app.dash-screen .view > .textlink { display: none; }
  .ib.sofort { border-color: var(--ln); background: transparent; }
  .ib.sofort.aktiv { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 9%, transparent); }
  #btn-theme .ib-k { display: none; }
}

/* Satz unter der Ampel (Kurztext, 0.29.0) */
.amp .was { margin: 0; font-size: 15.5px; line-height: 1.4; font-weight: 550; }

/* Screening-Karte: eigener Farbakzent (0.29.3) */
details.karte.modul .kt .h { color: var(--c); }


/* ===== Panel-Ansicht (umschaltbar; 0.32.1, Smartphone und eigenes Layout der Auswertung 0.32.2) =====
   Andere Gestaltung derselben Oberfläche: schwarze Fläche, farbige Bögen und Bänder, Großschrift in Überschriften.
   Die Auswertung der Sachbearbeitung hat ein eigenes Layout (.pnl, renderE2Panel). Immer dunkel. Nur Systemschriften.
   Umschalter: Ansichtsmenü oben rechts (data-stil="panel"). */
html[data-stil="panel"] {
  --p-teal: #7cc4c0; --p-lav: #a796d8; --p-sal: #ec9a6c; --p-rot: #d9705d; --p-blau: #7f9fe0; --p-gelb: #e8c46a; --p-gruen: #84cc8f;
  --bg: #000; --s1: #000; --s2: #0e1a1b; --ln: #1f4446; --tx: #dcefef; --mu: #86a3a4;
  --ac: var(--p-teal); --ai: #000;
  --ok: var(--p-gruen); --warn: var(--p-gelb); --bad: var(--p-rot);
  --pp: rgba(232,196,106,.22);
  --st1: var(--p-blau); --st2: var(--p-lav); --st1bg: rgba(127,159,224,.12); --st2bg: rgba(167,150,216,.12); --sti: #000;
  --sc: var(--p-teal); --geas: #e79bbd; --mj: var(--p-sal); --dipl: var(--p-gelb); --be: #6f9bf5;
  --p-schrift: "Bahnschrift SemiCondensed", "Bahnschrift", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", "DejaVu Sans Condensed", sans-serif;
  --p-mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  color-scheme: dark;
}
[data-stil="panel"] body { background: #000; }
[data-stil="panel"] :is(.side .h, .aside .ah, .kz small, .karte .kt .h, .card .h, .tun .h, .sec-h, .angaben-t, .brand, .btn, .chip-st, .prog .pl, .disc, .psek h3, .pblk h4, .pgraf-h, .pstack button, .pseg > button, .pz-c) {
  font-family: var(--p-schrift); font-stretch: condensed; text-transform: uppercase; letter-spacing: .06em; }
[data-stil="panel"] .bar-t { font-family: var(--p-schrift); text-transform: uppercase; letter-spacing: .08em; color: var(--p-teal); font-weight: 700; }
[data-stil="panel"] .chip-st { border-radius: 14px; background: transparent; }
[data-stil="panel"] .prog b { height: 7px; border-radius: 4px; }
[data-stil="panel"] .prog .g1 b:not(.on):not(.half), [data-stil="panel"] .prog .g2 b:not(.on):not(.half) { background: #13292a; opacity: 1; }
/* Karten, Zeilen, Hinweise */
[data-stil="panel"] details.karte { background: #000; border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent); border-left: 12px solid var(--c); border-radius: 0 22px 22px 0; }
[data-stil="panel"] .karte .kt .h { color: var(--c); font-weight: 800; }
[data-stil="panel"] .karte .mehr { font-family: var(--p-schrift); text-transform: uppercase; letter-spacing: .06em; color: #000; background: var(--c); border-radius: 10px; padding: 1px 10px; font-size: 12px; }
[data-stil="panel"] .karte .erg { color: var(--c); }
[data-stil="panel"] .karte .normen span, [data-stil="panel"] .chip { background: transparent; border: 1px solid var(--ln); color: var(--p-teal); font-family: var(--p-mono); font-size: 11.5px; border-radius: 8px; }
[data-stil="panel"] .zeilen { background: #000; border: 1.5px solid var(--ln); border-radius: 4px 20px 4px 20px; }
[data-stil="panel"] .zeilen > details { border-top-color: #12292a; }
[data-stil="panel"] .zl-t b { font-family: var(--p-schrift); font-stretch: condensed; text-transform: uppercase; letter-spacing: .05em; color: var(--p-teal); }
[data-stil="panel"] details.zl > summary .r { color: var(--p-sal); }
[data-stil="panel"] details.zl[open] > summary { box-shadow: inset 4px 0 0 var(--p-teal); }
[data-stil="panel"] :is(details.acc, .row-link, .card, .tun) { background: #000; border-radius: 4px 18px 4px 18px; }
[data-stil="panel"] :is(.zl-i, .karte-i, .pz-i) details.acc { background: #071112; }
[data-stil="panel"] .tun .h { color: var(--p-sal); }
[data-stil="panel"] .schritt > span { background: var(--p-sal); color: #000; border-radius: 4px 12px 4px 12px; }
[data-stil="panel"] .amp { background: #000; border-width: 2px; border-left-width: 12px; border-radius: 0 24px 24px 0; }
[data-stil="panel"] .weiche { background: #000; border-width: 2px; border-left-width: 12px; border-radius: 0 20px 20px 0; }
[data-stil="panel"] .weisung { background: #000; border: 1.5px dashed var(--p-gelb); color: var(--p-gelb); border-radius: 14px; }
[data-stil="panel"] .offen-h { border-color: var(--p-gelb); border-radius: 4px 18px 4px 18px; }
[data-stil="panel"] .info { background: #000; border: 1.5px solid color-mix(in srgb, var(--warn) 50%, transparent); border-radius: 4px 16px 4px 16px; }
[data-stil="panel"] .tile { background: #000; border-radius: 4px 20px 4px 20px; }
[data-stil="panel"] .tile .ic { background: #12292a; color: var(--p-teal); border-radius: 12px 4px 12px 4px; }
[data-stil="panel"] .tile[aria-pressed="true"] { background: color-mix(in srgb, var(--ac) 12%, #000); }
[data-stil="panel"] .tile[aria-pressed="true"] .ic { background: var(--ac); color: #000; }
[data-stil="panel"] .chk .box { border-color: var(--p-sal); border-radius: 4px; }
[data-stil="panel"] .chk[aria-checked="true"] .box { background: var(--p-sal); border-color: var(--p-sal); color: #000; }
[data-stil="panel"] .preview { font-family: var(--p-mono); color: var(--p-lav); border-color: #2d2850; background: #000; }
[data-stil="panel"] .btn { border-radius: 999px; font-weight: 800; }
[data-stil="panel"] .btn.sec { background: #000; color: var(--p-teal); border: 2px solid var(--p-teal); }
[data-stil="panel"] .actions { background: linear-gradient(transparent, #000 30%); }
[data-stil="panel"] .sheet { background: #000; border: 2px solid var(--p-teal); border-left-width: 14px; }

/* ----- Auswertung der Sachbearbeitung im Panel-Layout ----- */
.pnl { display: flex; flex-direction: column; gap: 16px; }
.pnl > * { flex-shrink: 0; }
.pnl-kz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pnl-kz .kz { --c: var(--p-sal); display: grid; gap: 3px; align-content: start; text-align: left; padding: 10px 12px; min-height: 84px;
  background: #000; border: 2px solid var(--c); border-left-width: 12px; border-radius: 0 20px 20px 0; color: var(--tx); }
.pnl-kz .kz.ok { --c: var(--ok); } .pnl-kz .kz.warn { --c: var(--warn); } .pnl-kz .kz.bad { --c: var(--bad); }
.pnl-kz .kz small { font-size: 11px; font-weight: 700; color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnl-kz .kz b { font-size: 15px; line-height: 1.22; color: var(--c); overflow-wrap: break-word; }
.pnl-kz .kz b .dot { display: none; }
.pnl-kz .kz > span { font-size: 12px; color: var(--tx); opacity: .8; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pnl-kz .kz:not(:disabled):hover { background: color-mix(in srgb, var(--c) 10%, #000); }
.pnl-cols, .pnl-l, .pnl-r { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.psek { scroll-margin-top: 12px; }
.psek h3 { margin: 0 0 4px; font-size: 14px; font-weight: 800; letter-spacing: .1em; color: var(--c); display: flex; align-items: center; gap: 10px; }
.psek h3::before { content: ""; width: 26px; height: 13px; border-radius: 7px; background: var(--c); flex: none; }
.pz { border-bottom: 1px solid #16302f; }
.pz > summary, div.pz { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 2px; list-style: none; }
details.pz > summary { cursor: pointer; }
details.pz > summary::-webkit-details-marker { display: none; }
details.pz > summary:hover .pz-t { color: var(--tx); }
details.pz[open] > summary { box-shadow: inset 3px 0 0 var(--c); padding-left: 8px; }
.pz-n { font-family: var(--p-mono); font-size: 11.5px; color: var(--mu); overflow-wrap: anywhere; }
.pz-t { color: var(--c); font-size: 15px; line-height: 1.35; font-weight: 600; }
.pz-t small { display: block; color: var(--tx); opacity: .78; font-size: 13px; font-weight: 450; }
.pz-c { --c: var(--ac); font-size: 11px; font-weight: 800; color: #000; background: var(--c); border-radius: 9px; padding: 1px 9px; white-space: nowrap; align-self: center; }
details.pz > summary .pz-c::after { content: " ›"; }
details.pz[open] > summary .pz-c::after { content: " ‹"; }
.pz-i { padding: 2px 4px 14px 104px; display: grid; gap: 10px; font-size: 14.5px; color: var(--tx); }
.pnl-weisung { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; border: 1.5px dashed var(--p-gelb); color: var(--p-gelb); border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 700; margin: 4px 0; }
.pnl-weisung svg { width: 18px; height: 18px; }
.pgraf { display: grid; gap: 4px; width: 100%; border: 1px solid #17393a; border-radius: 14px; padding: 10px 12px 6px; background: radial-gradient(ellipse at 60% 55%, #0d2526 0, #000 72%); }
.pgraf:hover { border-color: var(--p-teal); }
.pgraf-h { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--p-teal); }
.pgraf-h span { color: var(--mu); }
.pgraf svg { width: 100%; height: auto; max-height: 230px; }
.pgraf .pg-n { stroke: #2f7473; stroke-width: 1; fill: none; opacity: .7; }
.pgraf .pg-p { stroke: var(--p-rot); stroke-width: 2.4; fill: none; }
.pgraf .pg-r { fill: none; stroke: var(--p-rot); opacity: .5; }
.pgraf .pg-b { fill: #2f7473; }
.pgraf .pg-k { fill: var(--p-teal); }
.pgraf .pg-k.ok { fill: var(--ok); } .pgraf .pg-k.warn { fill: var(--warn); } .pgraf .pg-k.bad { fill: var(--bad); }
.pgraf .pg-t { font: 700 11px var(--p-schrift); fill: #9fd4d1; text-anchor: middle; letter-spacing: .04em; }
.pgraf .pg-t.e { fill: #ff9b88; }
.pgraf .pg-a { font: 10px var(--p-schrift); fill: #6f9a99; text-anchor: middle; }
.pnl-band { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--p-lav) 0 12%, #000 12% 12.6%, var(--p-sal) 12.6% 44%, #000 44% 44.6%, var(--p-teal) 44.6% 50%, #000 50% 50.6%, var(--p-rot) 50.6% 66%, #000 66% 66.6%, var(--p-teal) 66.6%); }
.pnl-unten { display: grid; gap: 14px; }
.pstack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pstack button { background: var(--c); color: #000; font-weight: 800; font-size: 13px; min-height: 46px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 6px 12px; }
.pstack button:first-child { border-radius: 26px 0 0 0; } .pstack button:last-child { border-radius: 0 0 26px 0; }
.pstack button:hover { filter: brightness(1.12); }
.pblk { border: 1.5px solid color-mix(in srgb, var(--c) 45%, #000); border-radius: 4px 18px 4px 18px; padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.pblk h4 { margin: 0 0 4px; font-size: 13px; font-weight: 800; color: var(--c); display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pblk h4 button { font: inherit; font-size: 11px; color: var(--mu); }
.pblk h4 button:hover { color: var(--c); }
.pchk { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.35; text-align: left; padding: 3px 0; }
.pchk .box { width: 16px; height: 16px; border: 2px solid var(--p-sal); border-radius: 3px; display: grid; place-items: center; margin-top: 1px; }
.pchk .box svg { width: 11px; height: 11px; stroke-width: 3.5; opacity: 0; color: #000; }
.pchk[aria-checked="true"] .box { background: var(--p-sal); } .pchk[aria-checked="true"] .box svg { opacity: 1; }
.pchk[aria-checked="true"] > span:last-child { color: var(--mu); text-decoration: line-through; }
.pblk-n { margin: 2px 0 0; font-size: 12px; color: var(--mu); }
.pcode { font-family: var(--p-mono); font-size: 28px; letter-spacing: .14em; color: var(--p-lav); overflow-wrap: anywhere; }
.pmono { margin: 0; font-family: var(--p-mono); font-size: 12px; color: var(--mu); line-height: 1.65; text-transform: uppercase; }
.pblk .btn { min-height: 42px; font-size: 13px; margin-top: 4px; }
.pblk .textlink { justify-self: start; color: var(--p-teal); font-size: 13px; margin: 4px 0 0; text-align: left; width: auto; }
.ppuls { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--p-rot); box-shadow: 0 0 9px var(--p-rot); margin-right: 6px; }

/* ----- Smartphone (unter 1100 px) ----- */
@media (max-width: 1099.98px) {
  [data-stil="panel"] .bar { position: relative; padding-bottom: 14px; }
  [data-stil="panel"] .bar::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 6px; border-radius: 3px; pointer-events: none;
    background: linear-gradient(90deg, var(--p-teal) 0 30%, #000 30% 31.5%, var(--p-lav) 31.5% 58%, #000 58% 59.5%, var(--p-sal) 59.5% 70%, #000 70% 71.5%, var(--p-blau) 71.5%); }
  [data-stil="panel"] .bar .ib { color: var(--p-teal); }
  [data-stil="panel"] #btn-verlauf { color: var(--p-sal); } [data-stil="panel"] #btn-hw-kopf { color: var(--p-lav); }
  [data-stil="panel"] .bar .ib.sofort { color: var(--mu); } [data-stil="panel"] .bar .ib.sofort.aktiv { color: var(--p-rot); }
  [data-stil="panel"] .view { border-left: 8px solid var(--p-teal); border-top-left-radius: 26px; margin-left: 8px; padding-left: 14px; }
  [data-stil="panel"] .disc { border-top: 0; position: relative; padding-top: 8px; }
  [data-stil="panel"] .disc::before { content: ""; position: absolute; left: 12px; right: 12px; top: 1px; height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, var(--p-lav) 0 18%, #000 18% 19.5%, var(--p-sal) 19.5% 60%, #000 60% 61.5%, var(--p-teal) 61.5%); }
  [data-stil="panel"] .actions { margin-left: -14px; padding-left: 14px; }
  .pz > summary, div.pz { grid-template-columns: 74px minmax(0, 1fr) auto; gap: 8px; }
  .pz-i { padding-left: 8px; }
  .pnl-unten .pblk:nth-child(2) { order: -1; }
  .pcode { font-size: 21px; letter-spacing: .08em; }
  .phero h1 { font-size: 19px; }
  .phero .q { font-size: 20px; }
  .phero-m { width: 44px; height: 44px; }
  .phaupt b { font-size: 21px; }
}

/* ----- Desktop (ab 1100 px) ----- */
@media (min-width: 1100px) {
  .disc { position: relative; }
  [data-stil="panel"] .ib { font-family: var(--p-schrift); font-stretch: condensed; text-transform: uppercase; letter-spacing: .06em; }
  /* Kopfzeile: Pillen und Farbband */
  [data-stil="panel"] .bar { background: #000; border-bottom: 0; padding: 12px 20px 22px; position: relative; }
  [data-stil="panel"] .bar::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 6px; height: 9px; border-radius: 5px; pointer-events: none;
    background: linear-gradient(90deg, var(--p-teal) 0 9%, #000 9% 9.5%, var(--p-teal) 9.5% 52%, #000 52% 52.5%,
      var(--p-lav) 52.5% 70%, #000 70% 70.5%, var(--p-sal) 70.5% 76%, #000 76% 76.5%, var(--p-blau) 76.5% 95%, #000 95% 95.5%, var(--p-teal) 95.5%); }
  [data-stil="panel"] .brand { background: var(--p-teal); color: #000; border-radius: 22px; padding: 0 18px 0 6px; height: 40px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; max-width: 100%; overflow: hidden; }
  [data-stil="panel"] .brand-m { background: #000; color: var(--p-teal); border-radius: 50%; width: 30px; height: 30px; }
  [data-stil="panel"] .bar .ib:not(#btn-back) { border: 0; border-radius: 20px; height: 40px; color: #000; font-weight: 800; background: var(--p-lav); }
  [data-stil="panel"] #btn-verlauf { background: var(--p-sal); }
  [data-stil="panel"] #btn-hw-kopf { background: var(--p-teal); }
  [data-stil="panel"] .bar .ib.sofort, [data-stil="panel"] .bar .ib.sofort:hover { background: #2a1512; color: var(--p-rot); box-shadow: inset 0 0 0 2px var(--p-rot); }
  [data-stil="panel"] .bar .ib.sofort.aktiv { background: var(--p-rot); color: #000; box-shadow: none; }
  [data-stil="panel"] .bar .ib:not(#btn-back):hover { filter: brightness(1.12); color: #000; }
  [data-stil="panel"] .bar .ib kbd { background: rgba(0,0,0,.25); border-color: rgba(0,0,0,.35); color: inherit; }
  [data-stil="panel"] #btn-back { color: var(--p-teal); }
  /* Linke Spalte: auf allen Seiten ein beschrifteter Bogen (.pseg), im Fall mit Schritten und Antworten (.psf) */
  [data-stil="panel"] .app.pnl-rahmen { grid-template-columns: 236px minmax(0, 1fr) 360px; }
  [data-stil="panel"] .app.pnl-rahmen.ohne-aside, [data-stil="panel"] .app.pnl-screen { grid-template-columns: 236px minmax(0, 1fr); }
  [data-stil="panel"] .app.pnl-rahmen .side { border-right: 0; padding: 4px 0 10px 18px; overflow-y: auto; overflow-x: hidden; }
  /* Rechte Spalte: Rahmen mit Bogen oben rechts */
  [data-stil="panel"] .aside { background: #000; border-left: 0; margin: 4px 18px 10px 0; padding: 30px 26px 18px 16px;
    border-top: 14px solid var(--p-lav); border-right: 28px solid var(--p-lav); border-top-right-radius: 52px; }
  [data-stil="panel"] .aside .ah { color: var(--p-sal); font-size: 12.5px; font-weight: 800; }
  [data-stil="panel"] .aside .ah span { color: var(--mu); }
  [data-stil="panel"] .aside .card, [data-stil="panel"] .aside .chk { border-radius: 4px 16px 4px 16px; }
  [data-stil="panel"] .aside .knoepfe { grid-template-columns: 1fr 1fr; }
  [data-stil="panel"] .aside .knoepfe .btn { font-size: 12px; letter-spacing: .03em; white-space: nowrap; }
  [data-stil="panel"] .kz { background: #000; border: 2px solid var(--c); border-left-width: 12px; border-radius: 0 20px 20px 0; }
  [data-stil="panel"] .kz:not(.ok):not(.warn):not(.bad) { --c: var(--p-sal); }
  [data-stil="panel"] .kz small, [data-stil="panel"] .kz b { color: var(--c); }
  [data-stil="panel"] .kz b .dot { display: none; }
  /* Fußzeile mit Farbband */
  [data-stil="panel"] .disc { border-top: 0; background: #000; padding-top: 14px; padding-bottom: 6px; }
  [data-stil="panel"] .disc::before { content: ""; position: absolute; left: 20px; right: 20px; top: 3px; height: 6px; border-radius: 3px;
    background: linear-gradient(90deg, var(--p-lav) 0 10%, #000 10% 10.4%, var(--p-sal) 10.4% 44%, #000 44% 44.4%, var(--p-teal) 44.4% 50%, #000 50% 50.4%, var(--p-rot) 50.4% 66%, #000 66% 66.4%, var(--p-teal) 66.4%); }

  /* Auswertung im Panel-Layout: volle Breite, links der beschriftete Bogen */
  [data-stil="panel"] .app.pnl-screen .aside { display: none; }
  [data-stil="panel"] .app.pnl-screen .view, [data-stil="panel"] .app.pnl-screen .prog { padding-left: 22px; padding-right: 28px; }
  [data-stil="panel"] .app.pnl-screen .view > *, [data-stil="panel"] .app.pnl-screen .prog { max-width: none; }
  .pseg { --segw: 186px; display: flex; flex-direction: column; gap: 7px; min-height: 100%; position: relative; }
  .pseg > button { --c: var(--p-teal); flex: 1 1 70px; min-height: 52px; width: var(--segw); background: var(--c); color: #000; font-weight: 800; font-size: 13px;
    display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 12px 8px 0; position: relative; }
  .pseg > button:hover:not(:disabled) { filter: brightness(1.12); }
  .pseg > button.akt { box-shadow: inset 0 0 0 3px #fff; }
  .pseg > .erst { flex-grow: 2.2; border-top-left-radius: 64px; }
  .pseg > .letzt { flex-grow: 2.2; border-bottom-left-radius: 64px; padding-bottom: 32px; }
  .pseg > .erst::before, .pseg > .letzt::before { content: ""; position: absolute; left: var(--segw); width: 30px; height: 22px; background: var(--c); border-radius: 0 11px 11px 0; }
  .pseg > .erst::before { top: 0; } .pseg > .letzt::before { bottom: 0; }
  .pseg > .erst::after, .pseg > .letzt::after { content: ""; position: absolute; left: var(--segw); width: 30px; height: 30px; }
  .pseg > .erst::after { top: 22px; background: radial-gradient(circle at 100% 100%, transparent 29.5px, var(--c) 30px); }
  .pseg > .letzt::after { bottom: 22px; background: radial-gradient(circle at 100% 0, transparent 29.5px, var(--c) 30px); }
  /* Fall: Segmente mit Schrittname und Antworten */
  .pseg-fall { gap: 6px; }
  .psf { --c: var(--p-teal); position: relative; width: var(--segw); background: var(--c); color: #000; padding: 8px 12px 9px 14px; display: grid; gap: 3px; flex: 0 0 auto; }
  .psf.erst { padding-top: 34px; min-height: 96px; align-content: end; }
  .psf.letzt { padding-bottom: 30px; min-height: 84px; flex: 1 0 84px; align-content: start; }
  .psf-t { font-family: var(--p-schrift); font-stretch: condensed; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; font-size: 13px; text-align: right; color: inherit; }
  button.psf-t:hover { text-decoration: underline; }
  .psf-v { font-size: 11.5px; line-height: 1.35; text-align: right; overflow-wrap: anywhere; }
  .psf-v button { color: inherit; font-size: inherit; text-align: right; }
  .psf-v button:hover:not(:disabled) { text-decoration: underline; }
  .psf.todo { background: #0f1f1f; color: color-mix(in srgb, var(--c) 75%, #000); }
  .psf.todo::before, .psf.todo::after { filter: brightness(.25); }
  .psf.cur { box-shadow: inset 0 0 0 3px #fff; }
  .psf.cur .psf-t::before { content: "▶ "; }
  .pnl-kz { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .pnl-kz .kz { min-height: 96px; padding: 10px 16px; }
  .pnl-kz .kz b { font-size: 18px; }
  .pnl-cols { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 26px; align-items: start; }
  .pnl-unten { grid-template-columns: 150px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr); gap: 16px; align-items: stretch; }
  .pstack { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); gap: 8px; }
  .pstack button { min-height: 64px; }
  .pstack button:first-child { border-radius: 30px 0 0 0; } .pstack button:last-child { border-radius: 0 0 0 30px; }
}

/* ----- Panel-Ansicht auf allen übrigen Seiten (Fragen, Begründung, Checklisten, Export, Module, Hinweise, Übung; 0.32.4) -----
   Dieselben Bausteine wie die Ergebnisseiten: Pillen-Überschriften, Tabellenzeilen, Blöcke. */
[data-stil="panel"] .step { display: flex; align-items: center; gap: 10px; color: var(--ac); font-family: var(--p-schrift); font-stretch: condensed; font-weight: 800; letter-spacing: .1em; }
[data-stil="panel"] .step::before { content: ""; width: 26px; height: 13px; border-radius: 7px; background: currentColor; flex: none; }
[data-stil="panel"] .q, [data-stil="panel"] .sheet h2, [data-stil="panel"] .mtitel, [data-stil="panel"] .ueb-h { font-family: var(--p-schrift); font-stretch: condensed; letter-spacing: .01em; }
[data-stil="panel"] .sec-h { color: var(--ac); font-family: var(--p-schrift); font-stretch: condensed; font-weight: 800; letter-spacing: .1em; }
[data-stil="panel"] .sec-h::before { content: ""; width: 26px; height: 13px; border-radius: 7px; background: currentColor; flex: none; }
[data-stil="panel"] .sec-h svg { display: none; }
[data-stil="panel"] :is(details.acc, .row-link, .chk) { background: transparent; border: 0; border-bottom: 1px solid #16302f; border-radius: 0; }
[data-stil="panel"] details.acc > summary, [data-stil="panel"] .row-link { font-family: var(--p-schrift); font-stretch: condensed; text-transform: uppercase; letter-spacing: .05em; color: var(--p-teal); font-weight: 700; }
[data-stil="panel"] details.acc > summary .r, [data-stil="panel"] .row-link .r { color: var(--p-sal); text-transform: none; letter-spacing: 0; font-family: inherit; }
[data-stil="panel"] details.acc[open] > summary { box-shadow: inset 3px 0 0 var(--p-teal); }
[data-stil="panel"] details.acc > div { text-transform: none; letter-spacing: 0; }
[data-stil="panel"] .row-link:hover, [data-stil="panel"] details.acc > summary:hover, [data-stil="panel"] .chk:hover { background: #071313; }
[data-stil="panel"] .chk .box { width: 20px; height: 20px; }
[data-stil="panel"] .card { border: 1.5px solid color-mix(in srgb, var(--ac) 45%, #000); }
[data-stil="panel"] .card .h { color: var(--ac); font-weight: 800; }
[data-stil="panel"] .kv2 > div { background: #000; border: 2px solid var(--p-sal); border-left-width: 10px; border-radius: 0 16px 16px 0; }
[data-stil="panel"] .kv2 small { color: var(--p-sal); font-family: var(--p-schrift); }
[data-stil="panel"] .ohne2 { background: #000; border: 2px solid var(--ok); border-left-width: 12px; border-radius: 0 20px 20px 0; }
[data-stil="panel"] .tile[aria-pressed="true"] { border-left-width: 8px; }
[data-stil="panel"] .tile .lb { font-family: var(--p-schrift); font-stretch: condensed; }
[data-stil="panel"] .count { font-family: var(--p-mono); font-size: 12px; text-transform: uppercase; }
[data-stil="panel"] .tag { border-color: var(--ln); color: var(--p-gelb); }
[data-stil="panel"] .haft { border-bottom-color: #16302f; }
[data-stil="panel"] .mm summary { border-radius: 4px 14px 4px 14px; background: #000; }
[data-stil="panel"] .mm ul, [data-stil="panel"] .mm ul > li::before { border-color: #1f4446; }
[data-stil="panel"] .textlink { color: var(--p-teal); }
/* Startseite */
.pzb { width: 100%; text-align: left; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 10px 2px; }
.pzb:hover .pz-t { color: var(--tx); }
.pzb .pz-c::after { content: " ›"; }
.phero { display: flex; gap: 14px; align-items: center; }
.phero-m { width: 54px; height: 54px; border-radius: 50%; background: var(--p-teal); color: #000; display: grid; place-items: center; flex: none; }
.phero-m svg { width: 28px; height: 28px; }
.phero h1 { margin: 0; font: 800 24px/1.1 var(--p-schrift); font-stretch: condensed; text-transform: uppercase; letter-spacing: .06em; color: var(--p-teal); }
.phero p { margin: 4px 0 0; color: var(--mu); font-size: 14px; }
.phaupt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; width: 100%; min-height: 86px; padding: 0 26px; border-radius: 0 44px 44px 0;
  border-left: 18px solid var(--p-sal); background: var(--p-teal); color: #000; text-align: left; }
.phaupt:hover { filter: brightness(1.1); }
.phaupt > svg { width: 30px; height: 30px; }
.phaupt b { display: block; font: 800 24px/1.1 var(--p-schrift); font-stretch: condensed; text-transform: uppercase; letter-spacing: .06em; }
.phaupt small { display: block; font: 700 12.5px var(--p-schrift); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.pnl-r details.acc { margin-top: 6px; }
@media (min-width: 1100px) {
  .pnl-unten.pnl-unten-start { grid-template-columns: 1fr 1fr; }
  .phaupt { max-width: 640px; }
}

/* ----- Panel-Ansicht: Arbeitsseiten der Sachbearbeitung (0.32.5) ----- */
.phero .step { margin: 0 0 2px; }
.phero .q { font-size: 26px; color: var(--st2); text-transform: uppercase; letter-spacing: .05em; }
.phaupt.pst2 { background: var(--p-lav); border-left-color: var(--p-teal); }
.pof { color: var(--warn); }
.pleiste { display: flex; flex-wrap: wrap; gap: 6px; }
.pleiste .pl { --c: var(--p-teal); display: flex; align-items: baseline; gap: 8px; padding: 5px 14px; background: var(--c); color: #000; font: 800 12px var(--p-schrift); font-stretch: condensed; text-transform: uppercase; letter-spacing: .05em; }
.pleiste .pl:first-child { border-radius: 16px 0 0 16px; } .pleiste .pl:last-child { border-radius: 0 16px 16px 0; }
.pleiste .pl small { font: 700 11px var(--p-mono); }
.pleiste .pl.todo, .pleiste .pl.leer { background: #0f1f1f; color: color-mix(in srgb, var(--c) 80%, #000); }
.pleiste .pl.cur { box-shadow: inset 0 0 0 3px #fff; }
.pleiste .pl.cur b::before { content: "▶ "; }

/* ===== Ansicht „Einsatz“ (Standard seit 0.33.0; hell oder dunkel nach Systemeinstellung, umschaltbar im Ansichtsmenü) =====
   Form follows Function: Einsatz draußen (Sonne, Regen, Handschuhe, Zeitdruck, eine Hand) und Sachbearbeitung in der
   Dienststelle. Keine Glas-, Leucht- oder Schmuckeffekte, keine verspielten Animationen. Signalfarben nur semantisch und
   immer mit Symbol oder Text. Kontraste mindestens WCAG AA. Nur Systemschriften. */
html[data-ansicht="einsatz"][data-theme="light"] {
  --bg: #F4F6F8; --s1: #FFFFFF; --s2: #E8EEF6; --ln: #CBD5E1; --ln2: #94A3B8; --tx: #0F172A; --mu: #475569;
  --pri: #0F2942; --on-pri: #FFFFFF; --sel: #E8EEF6; --fokus: #2563EB; --ac: var(--pri); --ai: var(--on-pri);
  --ok: #15803D; --warn: #B45309; --bad: #B91C1C; --ok-bg: #E3F7EA; --warn-bg: #FEF6DA; --bad-bg: #FEE2E2; --bad-on: #FFFFFF;
  --head: #0F2942; --head-tx: #FFFFFF; --head-mu: #C7D3E3; --head-ln: rgba(255,255,255,.32); --head-rot: #FCA5A5;
  --st1: var(--pri); --st2: #4C3A8C; --st1bg: #E8EEF6; --st2bg: #EEEAF7; --sti: #FFFFFF;
  --sc: #0F766E; --geas: #9D174D; --mj: #9A3412; --dipl: #7A5B0E; --be: #1D4ED8;
  --pp: rgba(250,204,21,.38); --shadow: 0 -6px 20px -12px rgba(15,23,42,.35);
  color-scheme: light;
}
html[data-ansicht="einsatz"][data-theme="dark"] {
  --bg: #0B1220; --s1: #111A2B; --s2: #16243B; --ln: #2B3A52; --ln2: #4A5F7E; --tx: #E6EDF7; --mu: #9AA9BF;
  --pri: #9CC3FF; --on-pri: #0B1220; --sel: #16243B; --fokus: #60A5FA; --ac: var(--pri); --ai: var(--on-pri);
  --ok: #4ADE80; --warn: #FBBF24; --bad: #F87171; --ok-bg: rgba(74,222,128,.12); --warn-bg: rgba(251,191,36,.12); --bad-bg: rgba(248,113,113,.13); --bad-on: #0B1220;
  --head: #0E1A2D; --head-tx: #E6EDF7; --head-mu: #9AA9BF; --head-ln: #2B3A52; --head-rot: #F87171;
  --st1: var(--pri); --st2: #C4B5FD; --st1bg: #16243B; --st2bg: rgba(196,181,253,.10); --sti: #0B1220;
  --sc: #5EEAD4; --geas: #F9A8D4; --mj: #FDBA74; --dipl: #E0C27A; --be: #3B82F6;
  --pp: rgba(251,191,36,.22); --shadow: 0 -6px 20px -12px rgba(0,0,0,.7);
  color-scheme: dark;
}
[data-ansicht="einsatz"] body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); }
[data-ansicht="einsatz"] body.stufe2 { --ac: var(--pri); }
[data-ansicht="einsatz"] :focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 8px; }
[data-ansicht="einsatz"] .view.fwd, [data-ansicht="einsatz"] .view.bwd { animation: none; }
[data-ansicht="einsatz"] .tile:active { transform: none; }
/* keine gesperrte Großschrift */
[data-ansicht="einsatz"] :is(.step, .card .h, .tun .h, .sec-h, .kz small, .karte .kt .h, .angaben-t, dl.kv dt, .side .h, .amp .stufe-t, .letter) { text-transform: none; letter-spacing: .01em; }
[data-ansicht="einsatz"] .step { font-size: 13.5px; font-weight: 650; color: var(--mu); }
[data-ansicht="einsatz"] .q { font-size: 25px; font-weight: 750; letter-spacing: -.01em; }
[data-ansicht="einsatz"] .sub { font-size: 15.5px; }

/* Kopfzeile in Behördenblau */
[data-ansicht="einsatz"] .bar { background: var(--head); color: var(--head-tx); }
[data-ansicht="einsatz"] .bar .ib { color: var(--head-tx); }
[data-ansicht="einsatz"] .bar .ib:active { background: rgba(255,255,255,.12); }
[data-ansicht="einsatz"] .bar .ib-k { color: var(--head-mu); }
[data-ansicht="einsatz"] .bar-t { color: var(--head-tx); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 700; min-width: 0; }
[data-ansicht="einsatz"] .bar-t > span { overflow: hidden; text-overflow: ellipsis; }
[data-ansicht="einsatz"] .bar-t svg { width: 20px; height: 20px; flex: none; }
[data-ansicht="einsatz"] .bar .ib.sofort { color: var(--head-rot); }
[data-ansicht="einsatz"] .bar .ib.sofort .ib-k { color: var(--head-rot); }
[data-ansicht="einsatz"] .bar .ib.sofort.aktiv { background: var(--bad); color: var(--bad-on); border-radius: 10px; }
[data-ansicht="einsatz"] .bar .ib.sofort.aktiv .ib-k { color: var(--bad-on); }
#btn-code-kopf[hidden], .bar-stand[hidden] { display: none !important; }
.bar-stand { display: none; }
#btn-theme .ib-t { display: none; }

/* Stufen-Umschalter und Fortschritt */
[data-ansicht="einsatz"] .prog { padding: 8px max(12px, env(safe-area-inset-right)) 2px max(12px, env(safe-area-inset-left)); }
[data-ansicht="einsatz"] .prog:empty { padding: 0; min-height: 0; }
[data-ansicht="einsatz"] .prog .pl { display: none; }
[data-ansicht="einsatz"] .prog b { height: 5px; border-radius: 3px; }
.ez-stufen { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ln2); border-radius: 12px; overflow: hidden; background: var(--s1); margin-bottom: 8px; }
.ez-stufen button { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px; font-weight: 700; font-size: 14px; color: var(--tx); text-align: center; }
.ez-stufen button + button { border-left: 1.5px solid var(--ln2); }
.ez-stufen button i { font-style: normal; width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; border: 1.5px solid currentColor; flex: none; }
.ez-stufen button[aria-pressed="true"] { background: var(--pri); color: var(--on-pri); }
.ez-stufen button[aria-pressed="true"] i { background: var(--on-pri); color: var(--pri); border-color: var(--on-pri); }
.ez-stufen button:disabled { color: var(--mu); cursor: not-allowed; }
.ez-stufen button:focus-visible { outline-offset: -4px; }

/* Hinweisbanner (Fußzeile): dezent amber */
[data-ansicht="einsatz"] .disc { background: var(--bg); color: var(--mu); border-top: 1px solid var(--ln); font-size: 11px; }   /* ohne gelben Hintergrund (0.39.5, Vorgabe des Inhabers) */

/* Kacheln: groß, aktiver Zustand mit 3 px Rahmen, getönter Fläche und Häkchen rechts */
[data-ansicht="einsatz"] .tiles { gap: 10px; }
[data-ansicht="einsatz"] .tile { background: var(--s1); border: 1.5px solid var(--ln); border-radius: 12px; min-height: 96px; min-width: 0; }
[data-ansicht="einsatz"] .tile .lb { overflow-wrap: anywhere; }
[data-ansicht="einsatz"] .tile.row { min-height: 60px; padding: 12px 48px 12px 14px; }
[data-ansicht="einsatz"] .tile.mini { min-height: 64px; }
[data-ansicht="einsatz"] .tile .ic { background: var(--sel); color: var(--pri); border-radius: 10px; }
[data-ansicht="einsatz"] .tile .lb { font-size: 17px; font-weight: 650; }
[data-ansicht="einsatz"] .tile.mini .lb { font-size: 14px; }
[data-ansicht="einsatz"] .tile .ds { font-size: 13.5px; }
[data-ansicht="einsatz"] .tile[aria-pressed="true"] { border-color: var(--pri); box-shadow: inset 0 0 0 1.5px var(--pri); background: var(--sel); }
[data-ansicht="einsatz"] .tile[aria-pressed="true"]::after { width: 24px; height: 24px; border-radius: 12px; background-size: 16px; }
[data-ansicht="einsatz"] .tile.row[aria-pressed="true"]::after { top: 50%; right: 14px; transform: translateY(-50%); }
[data-ansicht="einsatz"] .sheet .tile { background: var(--s1); }

/* Schaltflächen und Leisten */
[data-ansicht="einsatz"] .btn { border-radius: 12px; min-height: 56px; background: var(--pri); color: var(--on-pri); font-weight: 700; }
[data-ansicht="einsatz"] .btn.sec { background: var(--s1); color: var(--tx); border: 1.5px solid var(--ln2); }
[data-ansicht="einsatz"] .leiste .btn.st2 { background: var(--pri); color: var(--on-pri); }
[data-ansicht="einsatz"] .actions:not(.static) { background: var(--s1); border-top: 1px solid var(--ln); box-shadow: var(--shadow); padding-top: 10px; padding-bottom: 12px; }
.ez-leiste { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.ez-leiste .btn { width: auto; }
[data-ansicht="einsatz"] .textlink { color: var(--mu); }

/* Karten, Aufklapper, Zeilen, Checklisten */
[data-ansicht="einsatz"] :is(.card, details.acc, .row-link, .chk, .zeilen, .tun, details.karte, .preview) { border-radius: 12px; border-color: var(--ln); }
[data-ansicht="einsatz"] details.acc > summary, [data-ansicht="einsatz"] .row-link { min-height: 56px; }
[data-ansicht="einsatz"] .chk { min-height: 56px; }
[data-ansicht="einsatz"] .chk .box { border-color: var(--ln2); border-radius: 6px; }
[data-ansicht="einsatz"] .chk[aria-checked="true"] .box { color: #fff; }
[data-ansicht="einsatz"][data-theme="dark"] .chk[aria-checked="true"] .box { color: var(--bg); }
[data-ansicht="einsatz"] .info { background: var(--warn-bg); border: 1.5px solid color-mix(in srgb, var(--warn) 55%, transparent); }
[data-ansicht="einsatz"] .offen-h { background: var(--warn-bg); border: 2px solid var(--warn); border-radius: 12px; }
[data-ansicht="einsatz"] .offen-h button { color: var(--pri); text-decoration: underline; text-underline-offset: 3px; }
[data-ansicht="einsatz"] .weiche { background: var(--bad-bg); border: 2px solid var(--bad); border-radius: 12px; }
[data-ansicht="einsatz"] .ohne2 { background: var(--ok-bg); border: 2px solid var(--ok); border-radius: 12px; }
[data-ansicht="einsatz"] .ohne2 .h { color: var(--tx); }
[data-ansicht="einsatz"] .ohne2 .h svg { color: var(--ok); stroke-width: 3; }
[data-ansicht="einsatz"] .ohne2 p { color: var(--tx); }
/* Prüfung / Abgleich mit der Weisungslage, „Weisungslage beachten.“: amberfarbenes, gut sichtbares Feld */
[data-ansicht="einsatz"] :is(.weisung, .pnl-weisung) { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; background: var(--warn-bg); border: 2px solid var(--warn);
  color: var(--tx); border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 15px; margin: 0; }
[data-ansicht="einsatz"] :is(.weisung, .pnl-weisung) svg { width: 22px; height: 22px; color: var(--warn); }
[data-ansicht="einsatz"] .psek .pnl-weisung { margin: 10px 16px; }
[data-ansicht="einsatz"] .scrim { background: rgba(15,23,42,.55); }
[data-ansicht="einsatz"] .sheet { border-radius: 16px 16px 0 0; animation: fade .15s ease both; }
[data-ansicht="einsatz"] .fallcode, [data-ansicht="einsatz"] .codefeld { border-radius: 12px; background: var(--sel); border: 1.5px solid var(--ln2); }
[data-ansicht="einsatz"] .fallcode .plus { color: var(--mu); }

/* Ampel-Karte: 2 px Rahmen in Ampelfarbe, Symbol, Titel groß, Gründe als Liste */
.ez-amp { --c: var(--warn); --cb: var(--warn-bg); display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; border-radius: 14px; border: 2px solid var(--c); background: var(--cb); }
.ez-amp.ok { --c: var(--ok); --cb: var(--ok-bg); } .ez-amp.bad { --c: var(--bad); --cb: var(--bad-bg); }
.ez-amp-i { width: 48px; height: 48px; border-radius: 24px; background: var(--c); color: #fff; display: grid; place-items: center; }
[data-theme="dark"] .ez-amp-i { color: #0B1220; }
.ez-amp-i svg { width: 28px; height: 28px; stroke-width: 3; }
.ez-amp-k { font-size: 13px; font-weight: 700; color: var(--mu); }
.ez-amp-t { font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--tx); overflow-wrap: break-word; }
.ez-amp p { margin: 4px 0 0; font-size: 16px; font-weight: 550; line-height: 1.4; }
.ez-amp ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15.5px; }

/* Jetzt tun: nummerierte Schritte mit runden Ziffern in Primärfarbe */
[data-ansicht="einsatz"] .tun { background: var(--s1); border: 1px solid var(--ln); }
[data-ansicht="einsatz"] .tun .h { font-size: 16px; font-weight: 750; color: var(--tx); }
[data-ansicht="einsatz"] .schritt { grid-template-columns: 30px 1fr; font-size: 16px; }
[data-ansicht="einsatz"] .schritt > span { width: 30px; height: 30px; border-radius: 15px; background: var(--pri); color: var(--on-pri); }

/* Ergebnis-Abschnitte und -Zeilen: Norm (Monospace) · Aussage mit Kurztext · Status-Pille · Pfeil */
[data-ansicht="einsatz"] .psek { background: var(--s1); border: 1px solid var(--ln); border-radius: 14px; overflow: hidden; scroll-margin-top: 12px; }
[data-ansicht="einsatz"] .psek h3 { margin: 0; padding: 12px 16px 10px; font-size: 16px; font-weight: 750; letter-spacing: 0; color: var(--tx); border-bottom: 1px solid var(--ln); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
[data-ansicht="einsatz"] .psek h3::before { width: 4px; height: 18px; border-radius: 2px; background: var(--c); }
/* Blöcke der Auswertung in ihrer Farbe (0.38.4, Vorgabe des Inhabers: Rahmen, farbige Kopfzeile, breite Farbleiste links) */
[data-ansicht="einsatz"] .psek { border: 1.5px solid var(--c); border: 1.5px solid color-mix(in srgb, var(--c) 65%, transparent); border-left: 6px solid var(--c); }
[data-ansicht="einsatz"] .psek h3 { color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); border-bottom-color: color-mix(in srgb, var(--c) 45%, transparent); }
[data-ansicht="einsatz"] .psek h3::before { display: none; }
/* Zusatzfragen der Sachbearbeitung: Band und Kachelrand in der Farbe des Blocks */
.e2band { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 9px 14px; border-radius: 12px; font-weight: 800; font-size: 15px; color: var(--c); border: 1.5px solid var(--c); border: 1.5px solid color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 15%, transparent); }
.e2band::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--c); flex: none; }
.e2farbe .tile { border-color: color-mix(in srgb, var(--c) 45%, var(--ln)); }
.e2farbe .tile[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 20%, var(--s1)); }
[data-ansicht="einsatz"] .psek h3 span { margin-left: auto; font-size: 12.5px; color: var(--mu); font-weight: 500; }
[data-ansicht="einsatz"] .pz { border-bottom: 1px solid var(--ln); }
[data-ansicht="einsatz"] .psek .pz:last-child { border-bottom: 0; }
[data-ansicht="einsatz"] .pz > summary, [data-ansicht="einsatz"] div.pz { grid-template-columns: 96px minmax(0, 1fr) auto 16px; gap: 12px; align-items: center; padding: 12px 16px; min-height: 56px; }
[data-ansicht="einsatz"] .pz-n { font-family: ui-monospace, monospace; font-size: 12.5px; color: var(--mu); }
[data-ansicht="einsatz"] .pz-t { color: var(--tx); font-size: 15.5px; font-weight: 650; }
[data-ansicht="einsatz"] .pz-t small { color: var(--mu); opacity: 1; font-size: 13.5px; margin-top: 1px; }
[data-ansicht="einsatz"] .pz-c { color: var(--c); background: color-mix(in srgb, var(--c) 11%, var(--s1)); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; }
[data-ansicht="einsatz"] details.pz > summary .pz-c::after, [data-ansicht="einsatz"] details.pz[open] > summary .pz-c::after { content: none; }
[data-ansicht="einsatz"] details.pz > summary::after { content: ""; grid-column: 4; justify-self: center; width: 8px; height: 8px; border-right: 2px solid var(--mu); border-bottom: 2px solid var(--mu); transform: rotate(-45deg); }
[data-ansicht="einsatz"] details.pz[open] > summary::after { transform: rotate(45deg); }
[data-ansicht="einsatz"] details.pz > summary:hover { background: var(--sel); }
[data-ansicht="einsatz"] details.pz[open] > summary { box-shadow: inset 4px 0 0 var(--pri); background: var(--sel); padding-left: 16px; }
[data-ansicht="einsatz"] .pz-i { padding: 6px 16px 16px 124px; font-size: 15px; }
[data-ansicht="einsatz"] .pz-i details.acc { background: var(--bg); }
[data-ansicht="einsatz"] .ez-check .chk { border: 0; border-top: 1px solid var(--ln); border-radius: 0; background: transparent; min-height: 48px; font-size: 14.5px; }
[data-ansicht="einsatz"] .kz { border-radius: 12px; }
[data-ansicht="einsatz"] .kz:not(.ok):not(.warn):not(.bad):not(.be) { --c: var(--ln2); }
[data-ansicht="einsatz"] .kz small { font-size: 12px; }

/* Fall-Code-Block */
.ez-code { background: var(--s1); border: 1px solid var(--ln); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.ez-h { font-size: 16px; font-weight: 750; }
.ez-code-c { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 28px; font-weight: 800; letter-spacing: .08em; text-align: center; padding: 12px 8px; border-radius: 10px;
  background: var(--sel); border: 1.5px solid var(--ln2); overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.ez-code-c .plus { color: var(--mu); }
.ez-code .note { margin: 0; font-size: 13px; }
.ez-code-k { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ez-code-k .btn { min-height: 50px; font-size: 14.5px; padding: 0 8px; }
.ez-code-k .btn:nth-child(2) { grid-column: 1 / -1; order: -1; }
.ez-code .toast { min-height: 0; }

/* Startseite */
.ez-hero .hero-kopf { align-items: flex-start; }
[data-ansicht="einsatz"] .ez-hero .mark { background: var(--pri); color: var(--on-pri); border-radius: 12px; }
.ez-hero h1 { font-size: 22px; line-height: 1.15; margin: 0; }
.ez-badge { display: inline-block; margin-top: 5px; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--sel); border: 1px solid var(--ln2); color: var(--tx); }
[data-ansicht="einsatz"] .btn.haupt { box-shadow: none; border-radius: 14px; min-height: 88px; }
[data-ansicht="einsatz"] .blase { background: var(--s1); border: 1.5px solid var(--ln2); border-radius: 12px; margin-bottom: 0; }
[data-ansicht="einsatz"] .blase::after { display: none; }
[data-ansicht="einsatz"] .blase-kopf > svg:first-child { color: var(--pri); }
.ez-einstieg { display: grid; gap: 10px; }
.ez-sek { display: grid; gap: 10px; margin-top: 8px; }
.ez-sek .facts { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mu); padding: 2px 4px; }
.ez-sek .facts svg { width: 16px; height: 16px; flex: none; }
.ez-sek .link { color: var(--pri); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-align: left; }

/* Ansichtsmenü am Knopf oben rechts (alle Ansichten) */
.amenu-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(5,10,20,.28); }
.amenu { position: fixed; z-index: 41; left: 12px; right: 12px; max-height: calc(100dvh - 110px); overflow-y: auto; display: grid; padding: 6px;
  background: var(--s1); color: var(--tx); border: 1px solid var(--ln); border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(0,0,0,.5); }
.amenu-h { font-size: 13px; font-weight: 700; color: var(--mu); padding: 8px 12px 4px; }
.amenu-e { display: grid; grid-template-columns: 24px minmax(0, 1fr) 22px; gap: 12px; align-items: center; min-height: 56px; padding: 8px 12px; border-radius: 10px; text-align: left; color: var(--tx); }
.amenu-e:hover, .amenu-e:focus-visible, .amenu-e[aria-checked="true"] { background: var(--s2); }
.amenu-e:focus-visible { outline-offset: -3px; }
.amenu-t b { display: block; font-size: 15.5px; font-weight: 650; }
.amenu-t small { display: block; font-size: 12.5px; color: var(--mu); margin-top: 1px; }
.amenu-ok { visibility: hidden; color: var(--ac); }
.amenu-ok svg { stroke-width: 3; }
.amenu-e[aria-checked="true"] .amenu-ok { visibility: visible; }
.amenu-sep { height: 1px; background: var(--ln); margin: 4px 8px; }
.amenu-n { margin: 6px 12px 8px; font-size: 12.5px; color: var(--mu); }

/* ----- Einsatz am Smartphone (unter 1100 px): einspaltiger Assistent, feste untere Leiste im Daumenbereich ----- */
@media (max-width: 1099.98px) {
  [data-ansicht="einsatz"] .actions:not(.static) { margin-left: calc(-1 * max(20px, env(safe-area-inset-left))); margin-right: calc(-1 * max(20px, env(safe-area-inset-right)));
    padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  [data-ansicht="einsatz"] .pz > summary, [data-ansicht="einsatz"] div.pz { grid-template-columns: 62px minmax(0, 1fr) auto 12px; gap: 8px; padding: 12px; }
  [data-ansicht="einsatz"] .pz-n { font-size: 11px; }
  [data-ansicht="einsatz"] .pz-i { padding: 4px 12px 14px; }
  [data-ansicht="einsatz"] .psek h3 { padding: 12px; }
}
@media (max-width: 400px) {
  .ez-stufen button { font-size: 13px; gap: 6px; }
}

/* ----- Einsatz am Desktop (ab 1100 px): links Angaben (ca. 34 %), rechts Live-Auswertung (ca. 66 %) ----- */
@media (min-width: 1100px) {
  [data-ansicht="einsatz"] .app, [data-ansicht="einsatz"] .app.ohne-aside, [data-ansicht="einsatz"] .app.dash-screen { grid-template-columns: minmax(340px, 34%) minmax(0, 1fr); }
  [data-ansicht="einsatz"] .aside { display: none; }
  [data-ansicht="einsatz"] .bar { grid-template-columns: minmax(300px, calc(34% - 8px)) 44px minmax(0, 1fr) auto auto; background: var(--head); border-bottom: 0; }
  [data-ansicht="einsatz"] .brand { color: var(--head-tx); }
  [data-ansicht="einsatz"] .brand-m { background: rgba(255,255,255,.14); color: var(--head-tx); }
  [data-ansicht="einsatz"] .bar-t { visibility: hidden; }   /* Seite und Stufe stehen im Umschalter und über der Frage */
  [data-ansicht="einsatz"] .bar-stand:not([hidden]) { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; margin-right: 10px; border-radius: 999px;
    border: 1px solid var(--head-ln); color: var(--head-tx); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
  [data-ansicht="einsatz"] .bar .ib { border-color: var(--head-ln); color: var(--head-tx); }
  [data-ansicht="einsatz"] .bar .ib:hover { background: rgba(255,255,255,.1); color: var(--head-tx); }
  [data-ansicht="einsatz"] #btn-back { color: var(--head-tx); }
  [data-ansicht="einsatz"] #btn-theme .ib-t { display: inline; }
  [data-ansicht="einsatz"] .bar .ib.sofort { color: var(--head-rot); border-color: color-mix(in srgb, var(--head-rot) 70%, transparent); background: transparent; }
  [data-ansicht="einsatz"] .bar .ib.sofort.aktiv { background: var(--bad); border-color: var(--bad); color: var(--bad-on); }
  [data-ansicht="einsatz"] .bar .ib kbd { background: transparent; color: inherit; border-color: currentColor; }
  [data-ansicht="einsatz"] .prog { padding: 14px 32px 0; max-width: none; }
  [data-ansicht="einsatz"] .ez-stufen { max-width: 560px; }
  [data-ansicht="einsatz"] .view { padding: 18px 32px 24px; }
  [data-ansicht="einsatz"] .view > * { max-width: 980px; }
  [data-ansicht="einsatz"] .app.dash-screen .view > * { max-width: 1280px; }
  [data-ansicht="einsatz"] .actions:not(.static) { margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px; }
  [data-ansicht="einsatz"] .ez-leiste { grid-template-columns: minmax(0, 180px) minmax(0, 340px); justify-content: start; }
  [data-ansicht="einsatz"] .q { font-size: 30px; }
  [data-ansicht="einsatz"] .tile .kb { background: var(--s1); }
  @media (hover: hover) { [data-ansicht="einsatz"] .tile:hover:not(:disabled):not(.static) { border-color: var(--pri); } }
  .ez-dash.ez2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .ez-code-c { font-size: 24px; }
  .ez-sek { max-width: 720px; }
  .amenu { left: auto; width: 350px; }
  .amenu-e { min-height: 50px; }
  [data-ansicht="einsatz"] .sheet { border-radius: 16px; }

  /* Linke Spalte: Angaben-Liste bzw. Navigation */
  [data-ansicht="einsatz"] .side { padding: 14px; gap: 10px; background: var(--s1); border-right: 1px solid var(--ln); }
  [data-ansicht="einsatz"] .side .h { font-size: 13px; padding: 6px 4px 0; color: var(--mu); }
  [data-ansicht="einsatz"] .side .nav button { font-size: 14.5px; width: 100%; }
  [data-ansicht="einsatz"] .side .nav button:hover, [data-ansicht="einsatz"] .side .nav button.akt { background: var(--sel); }
  [data-ansicht="einsatz"] .side .nav button.akt { box-shadow: inset 4px 0 0 var(--pri); }
  .ea-leiste { display: flex; align-items: center; gap: 6px; position: sticky; top: -14px; z-index: 1; background: var(--s1); padding: 2px 0 8px; margin-top: -2px; }
  .ea-titel { font-size: 17px; font-weight: 800; margin-right: auto; }
  .ea-leiste button { font-size: 12.5px; font-weight: 650; padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--ln2); color: var(--tx); }
  .ea-leiste button[aria-pressed="true"] { background: var(--pri); border-color: var(--pri); color: var(--on-pri); }
  .ea-g { border: 1px solid var(--ln); border-radius: 12px; background: var(--bg); overflow: hidden; flex-shrink: 0; }
  .ea-gk { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 10px 12px; align-items: center; text-align: left; }
  button.ea-gk:hover { background: var(--sel); }
  .ea-gt { font-weight: 750; font-size: 14.5px; }
  button.ea-gk .ea-gt::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 9px 2px 2px; border-right: 2px solid var(--mu); border-bottom: 2px solid var(--mu); transform: rotate(45deg); }
  .ea-g.zu button.ea-gk .ea-gt::before { transform: rotate(-45deg); }
  .ea-gk small { grid-column: 1 / -1; color: var(--mu); font-size: 12.5px; }
  .ea-gz { grid-column: 1 / -1; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ea-st { font-size: 12px; font-weight: 750; padding: 2px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
  .ea-st.ok { color: var(--ok); background: var(--ok-bg); } .ea-st.warn { color: var(--warn); background: var(--warn-bg); }
  .ea-st svg { width: 13px; height: 13px; stroke-width: 3; }
  .ea-z { border-top: 1px solid var(--ln); }
  .ea-k { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; padding: 9px 12px; min-height: 44px; align-items: center; text-align: left; font-size: 13.5px; }
  .ea-k:hover { background: var(--sel); }
  .ea-f { color: var(--mu); }
  .ea-a { font-weight: 750; text-align: right; color: var(--tx); overflow-wrap: anywhere; display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
  .ea-z.offen .ea-a, .ea-z.unklar .ea-a { color: var(--warn); }
  .ea-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--warn); flex: none; }
  .ea-z.akt > .ea-k { box-shadow: inset 4px 0 0 var(--pri); background: var(--sel); }
  .ea-z.auf { background: var(--sel); }
  .ea-wahl { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
  .ea-frage { flex-basis: 100%; margin: 0 0 2px; font-size: 13px; color: var(--mu); }
  .ea-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 4px 11px; border-radius: 10px; border: 1.5px solid var(--ln2); background: var(--s1); font-size: 13.5px; font-weight: 600; text-align: left; }
  .ea-chip kbd { font-size: 10.5px; }
  .ea-chip:hover { border-color: var(--pri); }
  .ea-chip[aria-pressed="true"] { border-color: var(--pri); box-shadow: inset 0 0 0 1.5px var(--pri); }
  .ea-chip[aria-pressed="true"]::after { content: "✓"; font-weight: 800; color: var(--pri); }
  .ea-mehr, .ea-fertig { color: var(--pri); }
  .ea-chip svg { width: 15px; height: 15px; }
  .ea-z.blink > .ea-k { animation: eaBlink 1.4s ease-out both; }
  @keyframes eaBlink { 0%, 35% { background: var(--ok-bg); box-shadow: inset 4px 0 0 var(--ok); } 100% { background: transparent; box-shadow: none; } }
  .ea-leer { font-size: 13px; color: var(--mu); margin: 0; padding: 8px 12px; }
  .ea-sofort .ea-gk { display: flex; justify-content: space-between; }
  .ea-sw { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; min-height: 44px; border-top: 1px solid var(--ln); font-size: 13.5px; font-weight: 600; text-align: left; }
  .ea-sw:hover { background: var(--sel); }
  .ea-sw-k { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--mu); flex: none; }
  .ea-sw-k::before { content: "aus"; }
  .ea-sw-k::after { content: ""; width: 40px; height: 24px; border-radius: 12px; background: var(--ln2) radial-gradient(circle at 12px 12px, #fff 8px, transparent 8.5px) no-repeat; }
  .ea-sw[aria-checked="true"] { color: var(--bad); }
  .ea-sw[aria-checked="true"] .ea-sw-k { color: var(--bad); }
  .ea-sw[aria-checked="true"] .ea-sw-k::before { content: "an"; }
  .ea-sw[aria-checked="true"] .ea-sw-k::after { background: var(--bad) radial-gradient(circle at 28px 12px, #fff 8px, transparent 8.5px) no-repeat; }
  [data-ansicht="einsatz"] .side > .btn { flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) { .ea-z.blink > .ea-k { animation: none; background: var(--ok-bg); } }

/* ===== Desktop-Ergebnisseiten aufgeräumt (0.39.6, Vorgabe des Inhabers) ===== */
/* Checkliste zugeklappt mit Fortschritt */
details.ez-check > summary { list-style: none; cursor: pointer; }
details.ez-check > summary::-webkit-details-marker { display: none; }
details.ez-check > summary h3 { border-bottom: 0; }
details.ez-check[open] > summary h3 { border-bottom: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
details.ez-check .ez-check-n { display: inline-flex; align-items: center; gap: 6px; }
details.ez-check .ez-check-n svg { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .15s; }
details.ez-check[open] .ez-check-n svg { transform: rotate(-90deg); }
.ez-check-bar { height: 6px; margin: 0 16px 12px; border-radius: 3px; background: color-mix(in srgb, var(--c) 18%, transparent); overflow: hidden; }
.ez-check-bar i { display: block; height: 100%; background: var(--c); border-radius: 3px; }
details.ez-check[open] .ez-check-bar { margin-top: 10px; }
.ez-check-f { margin: 8px 16px 12px; font-size: 12px; color: var(--mu); }
details.ez-check > summary:focus-visible { outline: 3px solid var(--fokus, var(--ac)); outline-offset: -3px; border-radius: 12px; }
/* Untere Leiste am Desktop kompakt und rechtsbündig statt über die ganze Breite */
@media (min-width: 1100px) {
  [data-ansicht="einsatz"] .actions.leiste { justify-content: flex-end; }
  [data-ansicht="einsatz"] .actions.leiste .btn, [data-ansicht="einsatz"] .actions.leiste .btn.st2 { flex: 0 0 auto; min-width: 200px; min-height: 48px; padding: 6px 22px; }
}

/* ----- App-Name ORKA: Langform unter dem Namen (Sperrbildschirm, Startseiten) ----- */
.name-lang { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--mu); letter-spacing: .01em; text-transform: none; }
.sperre-f .name-lang { margin: 0 0 6px; }

/* ----- ORKA-Bildmarke (0.41.4): überall als dunkelblaue Kachel wie das App-Symbol, unabhängig von Ansicht und Farbschema.
   Das Symbol #i-orka zeichnet hell mit currentColor und den Rücken mit --orka-dunkel (ohne Angabe durchsichtig:
   auf Knöpfen und in der Kopfzeile nimmt der Rücken die Hintergrundfarbe an). ----- */
html[data-ansicht] .mark, html[data-ansicht] .ez-hero .mark, html[data-ansicht] .phero-m, html[data-ansicht] .brand-m, .sperre-i {
  background: linear-gradient(#16304f, #0b1626); color: #f4f6f9; --orka-dunkel: #0f2035;
  border-radius: 23%; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
html[data-ansicht] .mark { width: 48px; height: 48px; }
html[data-ansicht] .mark svg { width: 32px; height: 32px; }
html[data-ansicht] .phero-m { width: 54px; height: 54px; }
html[data-ansicht] .phero-m svg { width: 36px; height: 36px; }
html[data-ansicht] .brand-m { width: 32px; height: 32px; }
html[data-ansicht] .brand-m svg { width: 22px; height: 22px; }
.sperre-i { width: 72px; height: 72px; margin: 0 auto; }
.sperre-i svg { width: 48px; height: 48px; }

/* ----- Hinweis auf die neue Adresse (Startseiten, 0.41.5) ----- */
.info.adresse-hinweis { background: color-mix(in srgb, #2563eb 12%, var(--s1)); margin: 12px 0; }
.info.adresse-hinweis svg { color: #2563eb; }
[data-theme="dark"] .info.adresse-hinweis svg { color: #9cc3ff; }
.info.adresse-hinweis a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
html .info.adresse-hinweis { border-color: color-mix(in srgb, #2563eb 45%, transparent); }

/* ----- ORKA-Bildmarke in der Kopfzeile größer und präsenter (0.41.6): Kachel oben links auf allen Seiten,
   am Smartphone vor dem Zurück-Knopf (feste Spalten, damit nichts verrutscht, wenn „Zurück“ ausgeblendet ist). ----- */
html[data-ansicht] .brand-m { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 0 0 1.5px rgba(255,255,255,.28), 0 2px 6px rgba(0,0,0,.25); }
@media (max-width: 1099.98px) {
  .bar { grid-template-columns: auto 44px minmax(0, 1fr) auto; }
  .bar > .brand { display: flex; align-items: center; grid-column: 1; font-size: 0; background: none; border: 0; padding: 0; margin: 0 2px 0 0; cursor: pointer; }
  .bar > #btn-back { grid-column: 2; }
  .bar > .bar-t { grid-column: 3; }
  .bar > .bar-r { grid-column: 4; }
  html[data-ansicht] .brand-m { width: 42px; height: 42px; border-radius: 11px; }
  html[data-ansicht] .brand-m svg { width: 30px; height: 30px; }
  [data-stil="panel"] .bar > .brand { height: auto; padding: 0; border-radius: 11px; }
}
@media (max-width: 400px) { .bar { grid-template-columns: auto 38px minmax(0, 1fr) auto; } html[data-ansicht] .brand-m { width: 38px; height: 38px; } html[data-ansicht] .brand-m svg { width: 27px; height: 27px; } }
@media (max-width: 340px) { .bar { grid-template-columns: auto 34px minmax(0, 1fr) auto; } html[data-ansicht] .brand-m { width: 34px; height: 34px; } html[data-ansicht] .brand-m svg { width: 24px; height: 24px; } }
@media (min-width: 1100px) {
  .brand { gap: 14px; font-size: 21px; font-weight: 800; letter-spacing: .12em; }
  html[data-ansicht] .brand-m { width: 48px; height: 48px; border-radius: 12px; }
  html[data-ansicht] .brand-m svg { width: 34px; height: 34px; }
  [data-stil="panel"] .brand { height: 56px; padding: 0 22px 0 4px; border-radius: 28px; font-size: 17px; letter-spacing: .12em; }
}
/* Schmale Geräte: Stufenchip in der Kopfzeile nur mit Ziffer (Stufe steht unter der Fortschrittsleiste) */
@media (max-width: 400px) { .bar-t .chip-st { font-size: 0; gap: 0; padding: 3px; } .bar-t .chip-st i { font-size: 12px; } }
