/* Störungs-Wegweiser: Klassen mit Präfix stoer- */
.stoer-seite { padding-bottom: 64px; }
.stoer-seite section, .stoer-seite aside { margin: 0 0 24px; }
.stoer-seite p { max-width: 70ch; }
.stoer-seite h2:focus, .stoer-seite h3:focus { outline: none; }

.stoer-krumen { margin: 0 0 12px; font-size: 14px; }
.stoer-krumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.stoer-krumen li { display: inline-flex; align-items: center; color: var(--text-leise); }
.stoer-krumen li + li::before { content: "›"; margin: 0 8px; color: var(--text-leise); }
.stoer-krumen a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blau); text-decoration: underline; text-underline-offset: 3px; }

.stoer-zusagen { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; max-width: 62ch; }
.stoer-zusagen li { padding-left: 16px; border-left: 4px solid var(--hell1); font-size: 16px; }
.stoer-noscript { background: #FFF4E0; border: 1px solid #C98A1A; border-radius: 12px; padding: 12px 16px; color: #4A2F00; margin: 0 0 20px; }
.stoer-quelle { font-size: 14px; color: var(--text-leise); margin: 8px 0 0; }
.stoer-quelle a, .stoer-seite .stoer-tor p a { color: var(--blau-dunkel); text-decoration: underline; text-underline-offset: 3px; }
.stoer-tor { border-left: 6px solid var(--blau); }
.stoer-tor h2 { margin-bottom: 8px; }

/* Oberfläche */
.stoer-app { margin: 0 0 24px; }
.stoer-ansicht { background: #fff; border: 1px solid var(--rand); border-radius: 16px; padding: 20px 16px; }
@media (min-width: 640px) { .stoer-ansicht { padding: 28px; } }
.stoer-h { font-size: clamp(22px, 5vw, 28px); line-height: 1.2; font-weight: 700; margin: 0 0 14px; color: var(--navy); }
.stoer-h3 { font-size: 18px; margin: 20px 0 8px; color: var(--navy); }
.stoer-pfad { margin: 0 0 12px; }
.stoer-fall-name { margin: 0 0 6px; font-weight: 600; color: var(--blau-dunkel); font-size: 15px; }
.stoer-antworten { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stoer-antworten li { background: #EEF3FF; border: 1px solid var(--rand); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--navy); }
.stoer-wahl, .stoer-optionen { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .stoer-wahl { grid-template-columns: repeat(3, 1fr); } }
.stoer-karte { display: grid; gap: 6px; align-content: start; width: 100%; min-height: 96px; height: 100%; padding: 16px; text-align: left; font: inherit; background: #fff; border: 2px solid var(--rand); border-radius: 16px; color: var(--navy); cursor: pointer; }
.stoer-karte:hover { border-color: var(--hell1); }
.stoer-karte-titel { font-weight: 700; font-size: 18px; line-height: 1.3; }
.stoer-karte-text { font-size: 15px; color: var(--text-leise); line-height: 1.4; }
.stoer-opt { display: flex; align-items: center; width: 100%; min-height: 56px; padding: 12px 16px; text-align: left; font: inherit; font-weight: 600; font-size: 17px; line-height: 1.35; background: #fff; border: 2px solid var(--rand); border-radius: 14px; color: var(--navy); cursor: pointer; }
.stoer-opt:hover { border-color: var(--blau); background: #EEF3FF; }
.stoer-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.stoer-aktionen .ctw-btn { flex: 1 1 200px; }
.stoer-text { margin: 0 0 12px; }

/* Schritte */
.stoer-schritte { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: schritt; display: grid; gap: 10px; }
.stoer-schritt { counter-increment: schritt; background: #F8FAFF; border: 1px solid var(--rand); border-radius: 14px; padding: 2px 14px; }
.stoer-kopf { display: flex; gap: 12px; align-items: flex-start; min-height: 52px; padding: 12px 0; cursor: pointer; }
.stoer-titel { line-height: 1.4; font-size: 17px; color: var(--navy); }
.stoer-titel::before { content: counter(schritt) ". "; font-weight: 700; color: var(--blau-dunkel); }
.stoer-box { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; min-height: 26px; margin: 0; border: 2px solid var(--navy); border-radius: 7px; background: #fff; display: grid; place-content: center; padding: 0; }
.stoer-box:checked { background: var(--blau); border-color: var(--blau); }
.stoer-box:checked::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.stoer-kopf:has(.stoer-box:focus-visible) { outline: var(--ring); outline-offset: 2px; border-radius: 10px; }
.stoer-box:focus-visible { outline: none; }
.stoer-box:checked ~ .stoer-titel { color: var(--text-leise); }
.stoer-hinweis { margin: 14px 0 0; padding: 12px 14px; background: #FFF4E0; border: 1px solid #C98A1A; border-radius: 12px; color: #4A2F00; font-size: 15px; }
.stoer-verweis, .stoer-weiter { margin: 12px 0 0; }
.stoer-weg .stoer-weiter { margin-left: 14px; margin-bottom: 12px; }
.stoer-verweis .ctw-btn { width: 100%; justify-content: flex-start; text-align: left; }

/* Hilfe */
.stoer-hilfe-karte { margin: 24px 0 0; padding: 16px; border: 1px solid var(--rand); border-left: 6px solid var(--blau); border-radius: 14px; background: #F8FAFF; }
.stoer-hilfe-karte h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.stoer-tel { margin: 8px 0 12px; }
.stoer-tel .ctw-btn { min-height: 52px; font-size: 18px; }
.stoer-klein { font-size: 14px; color: var(--text-leise); margin: 4px 0; }
.stoer-links { list-style: disc; margin: 10px 0 0; padding-left: 1.25rem; display: grid; gap: 10px; }
.stoer-links a, .stoer-hilfe a:not(.ctw-btn), .stoer-quellenliste a { color: var(--blau); text-decoration: underline; text-underline-offset: 3px; }
.stoer-hilfe { border-left: 6px solid var(--blau); }
.stoer-hilfe .stoer-links a, .stoer-hilfe-karte .stoer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Kurzbeschreibung */
.stoer-kb { margin: 24px 0 0; }
.stoer-felder { display: grid; gap: 14px; margin: 12px 0; }
@media (min-width: 720px) { .stoer-felder { grid-template-columns: repeat(3, 1fr); } }
.stoer-feld label, .stoer-kb-label { display: block; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.stoer-feld input, .stoer-kb-text { width: 100%; min-height: 48px; border: 2px solid #5C6B8C; border-radius: 12px; padding: 10px 12px; background: #fff; color: var(--navy); font: inherit; }
.stoer-kb-text { font: 14px/1.5 ui-monospace, Consolas, Menlo, monospace; min-height: 180px; resize: vertical; background: #F4F7FF; }
.stoer-feld input:focus-visible, .stoer-kb-text:focus-visible { outline: var(--ring); outline-offset: 2px; }
.stoer-kopiert { font-weight: 600; color: var(--gut); min-height: 24px; margin: 8px 0 0; }

/* Fallback ohne JavaScript */
.stoer-bereit .stoer-fallback { display: none; }
.stoer-fb-titel { margin-top: 8px; }
.stoer-sprung ul { list-style: disc; margin: 0 0 20px; padding-left: 1.25rem; display: grid; gap: 4px; }
.stoer-sprung a { color: var(--blau); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.stoer-fall { padding: 20px 16px; }
.stoer-fall h3 { margin-bottom: 12px; }
.stoer-weg { background: #F8FAFF; border: 1px solid var(--rand); border-radius: 12px; margin: 0 0 10px; }
.stoer-weg summary { cursor: pointer; font-weight: 700; padding: 10px 14px; min-height: 48px; display: flex; align-items: center; color: var(--navy); }
.stoer-weg[open] summary { border-bottom: 1px solid var(--rand); }
.stoer-weg > *:not(summary) { margin-left: 14px; margin-right: 14px; }
.stoer-weg h4 { font-size: 17px; margin: 12px 14px 6px; }
.stoer-fb-liste { list-style: decimal; padding-left: 1.4rem; display: grid; gap: 6px; margin-bottom: 12px; }
.stoer-weg > p, .stoer-weg > .stoer-hinweis { margin-bottom: 12px; }
.stoer-fb-weg { margin: 0 0 10px; }
.stoer-fb-weg a, .stoer-weg p a:not(.ctw-btn) { color: var(--blau); text-decoration: underline; text-underline-offset: 3px; }
.stoer-fb-ende { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rand); }
.stoer-fb-ende h4 { font-size: 17px; margin: 0 0 6px; }
.stoer-vorlage { white-space: pre-wrap; font: 14px/1.5 ui-monospace, Consolas, Menlo, monospace; background: #F4F7FF; border: 1px solid var(--rand); border-radius: 12px; padding: 12px; overflow-wrap: anywhere; }

.stoer-quellenliste { list-style: decimal; margin: 12px 0; padding-left: 1.4rem; display: grid; gap: 10px; font-size: 15px; }
.stoer-quellenliste li { overflow-wrap: anywhere; }
.stoer-quellenliste a { display: inline-flex; align-items: center; min-height: 44px; }
.stoer-quellenliste li:target { outline: 3px solid var(--hell1); outline-offset: 4px; }
.stoer-druckfuss { display: none; }

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

/* Druck: Ergebnisansicht (Titel, Schritte, Kurzbeschreibung) auf einer Seite */
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff !important; }
  header, footer, .proto-skip, .stoer-krumen, .stoer-zusagen, .stoer-tor, .stoer-noscript, .stoer-quellen, .stoer-hilfe, .stoer-seite .ctw-eyebrow, .stoer-seite .ctw-lead, .stoer-aktionen, .stoer-pfad .stoer-antworten, .stoer-hilfe-karte p, .stoer-hilfe-karte .stoer-links, .stoer-kb .stoer-klein, .stoer-kb .stoer-felder, .stoer-verweis { display: none !important; }
  div.bg-primary.text-sm { display: none !important; }
  .stoer-seite { padding: 0; max-width: none; font-size: 10pt; line-height: 1.3; color: #000; }
  .stoer-seite h1 { font-size: 14pt; margin: 0 0 3mm; color: #000; }
  .stoer-ansicht { border: 0; padding: 0; }
  .stoer-h { font-size: 12pt; margin: 0 0 2mm; color: #000; }
  .stoer-h3 { font-size: 10.5pt; margin: 3mm 0 1mm; color: #000; }
  .stoer-fall-name { font-size: 9pt; color: #000; }
  .stoer-schritte { gap: 1mm; margin-top: 1mm; }
  .stoer-schritt { background: #fff; border: 0; border-bottom: 1px solid #bbb; border-radius: 0; padding: 0 0 1mm; break-inside: avoid; }
  .stoer-kopf { min-height: 0; padding: 0; gap: 3mm; }
  .stoer-titel { font-size: 10pt; color: #000; }
  .stoer-titel::before { color: #000; }
  .stoer-box { width: 4.5mm; height: 4.5mm; min-height: 4.5mm; border: 1.5px solid #000; border-radius: 0; background: #fff !important; }
  .stoer-box:checked::after { border-color: #000; }
  .stoer-box:checked { background: #fff !important; }
  .stoer-hinweis { background: #fff; border: 1px solid #555; color: #000; font-size: 8pt; padding: 1.5mm 2mm; margin: 2mm 0 0; }
  .stoer-hilfe-karte { border: 1px solid #555; border-radius: 0; background: #fff; margin: 3mm 0 0; padding: 2mm; }
  .stoer-hilfe-karte h3 { display: inline; font-size: 10pt; margin: 0 4mm 0 0; color: #000; }
  .stoer-tel { display: inline; margin: 0; }
  .stoer-tel .ctw-btn { min-height: 0; padding: 0; background: #fff; color: #000; border: 0; font-size: 11pt; }
  .stoer-kb { margin: 3mm 0 0; }
  .stoer-kb-text { border: 1px solid #000; border-radius: 0; background: #fff; color: #000; font-size: 9pt; min-height: 0; height: auto; padding: 2mm; resize: none; overflow: visible; }
  .stoer-kopiert { display: none; }
  .stoer-druckfuss { display: block; font-size: 8pt; margin-top: 2mm; color: #000; }
  a { color: inherit !important; text-decoration: none !important; }
  .stoer-fallback { font-size: 9pt; }
  .stoer-bereit .stoer-fallback { display: none !important; }
}
