/* Notfall-Wegweiser: Klassen mit Präfix notf- */
.notf-seite { padding-bottom: 64px; }
.notf-seite section, .notf-seite aside { margin: 0 0 24px; }
.notf-seite p { max-width: 70ch; }

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

.notf-zusagen { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; max-width: 62ch; }
.notf-zusagen li { padding-left: 16px; border-left: 4px solid var(--hell1); font-size: 16px; }
.notf-noscript { background: #FFF4E0; border: 1px solid #C98A1A; border-radius: 12px; padding: 12px 16px; color: #4A2F00; margin: 0 0 20px; }

.notf-seite h2 { margin-top: 0; }
.notf-seite h2:focus { outline: none; }
.notf-grundsaetze { border-left: 6px solid var(--blau); }
.notf-drei { margin: 8px 0 12px; padding-left: 1.4rem; list-style: decimal; display: grid; gap: 6px; }
.notf-quelle { font-size: 14px; color: var(--text-leise); margin: 8px 0 0; }
.notf-quelle a { color: var(--blau-dunkel); text-decoration: underline; text-underline-offset: 3px; }

/* Auswahl */
.notf-wahl-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .notf-wahl-liste { grid-template-columns: repeat(3, 1fr); } }
.notf-wahl-karte { display: grid; gap: 6px; align-content: start; min-height: 96px; height: 100%; padding: 16px; background: #fff; border: 2px solid var(--rand); border-radius: 16px; color: var(--navy); text-decoration: none !important; }
.notf-wahl-karte:hover { border-color: var(--hell1); }
.notf-wahl-karte[aria-current="true"] { border-color: var(--blau); background: #EEF3FF; box-shadow: inset 6px 0 0 var(--blau); }
.notf-wahl-titel { font-weight: 700; font-size: 18px; line-height: 1.3; }
.notf-wahl-text { font-size: 15px; color: var(--text-leise); line-height: 1.4; }
.notf-status { margin: 12px 0 0; min-height: 24px; font-weight: 600; color: var(--blau-dunkel); }

/* Schrittfolgen */
.notf-pfad { padding: 20px 16px; }
@media (min-width: 640px) { .notf-pfad { padding: 28px; } }
.notf-einleitung { margin: 0 0 14px; color: var(--text); }
.notf-schritte { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: schritt; display: grid; gap: 10px; }
.notf-schritt { counter-increment: schritt; background: #F8FAFF; border: 1px solid var(--rand); border-radius: 14px; padding: 4px 14px 12px; }
.notf-kopf { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 10px 0 4px; cursor: pointer; }
.notf-titel { font-weight: 700; color: var(--navy); line-height: 1.35; font-size: 17px; }
.notf-titel::before { content: counter(schritt) ". "; color: var(--blau-dunkel); }
.notf-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; }
.notf-box:checked { background: var(--blau); border-color: var(--blau); }
.notf-box:checked::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.notf-kopf:has(.notf-box:focus-visible) { outline: var(--ring); outline-offset: 2px; border-radius: 10px; }
.notf-box:focus-visible { outline: none; }
.notf-box:checked ~ .notf-titel { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--text-leise); }
.notf-detail { padding-left: 0; }
@media (min-width: 560px) { .notf-detail { padding-left: 38px; } }
.notf-detail p { margin: 0 0 8px; font-size: 16px; }
.notf-detail p:last-child { margin-bottom: 0; }
.notf-zweig { margin: 8px 0; padding: 10px 12px; background: #fff; border: 1px solid var(--rand); border-radius: 12px; }
.notf-zweig h3 { font-size: 16px; margin: 0 0 4px; }
.notf-zweig ul { list-style: disc; margin: 0; padding-left: 1.2rem; display: grid; gap: 4px; }
.notf-hinweis { margin: 16px 0 0; padding: 12px 14px; background: #FFF4E0; border: 1px solid #C98A1A; border-radius: 12px; color: #4A2F00; font-size: 15px; }
.notf-hinweis .notf-quelle, .notf-hinweis .notf-quelle a { color: #4A2F00; }

/* Notizen */
.notf-felder { display: grid; gap: 14px; margin: 12px 0; }
@media (min-width: 720px) { .notf-felder { grid-template-columns: 1fr 1fr; } .notf-feld-breit { grid-column: 1 / -1; } }
.notf-feld label { display: block; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.notf-feld input, .notf-feld textarea { width: 100%; min-height: 48px; border: 2px solid #5C6B8C; border-radius: 12px; padding: 10px 12px; background: #fff; color: var(--navy); font: inherit; }
.notf-feld input:focus-visible, .notf-feld textarea:focus-visible { outline: var(--ring); outline-offset: 2px; }
.notf-aktionen { margin: 8px 0 0; }
.notf-nur-js { display: none; }
.js .notf-nur-js { display: inline-flex; }

/* Hilfe */
.notf-hilfe { border-left: 6px solid var(--blau); }
.notf-tel { margin: 8px 0 12px; }
.notf-tel .ctw-btn { min-height: 52px; font-size: 18px; }
.notf-links { list-style: disc; margin: 12px 0 0; padding-left: 1.25rem; display: grid; gap: 10px; }
.notf-links a { text-decoration: underline; text-underline-offset: 3px; color: var(--blau); }

/* Melden */
.notf-dl { margin: 12px 0 0; display: grid; gap: 16px; }
.notf-dl dt { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.notf-dl dd { margin: 0; overflow-wrap: anywhere; }
.notf-dl a, .notf-quellenliste a { color: var(--blau); text-decoration: underline; text-underline-offset: 3px; }

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

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

/* Druckansicht: einseitige Checkliste mit Notizen */
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff !important; }
  header, footer, .proto-skip, .notf-krumen, .notf-wahl, .notf-grundsaetze, .notf-zusagen, .notf-noscript, .notf-nur-js, .notf-quellen, .notf-status, .notf-aktionen, .notf-melden, .notf-seite .ctw-eyebrow, .notf-seite .ctw-lead { display: none !important; }
  div.bg-primary.text-sm { display: none !important; }
  .notf-seite { padding: 0; max-width: none; font-size: 10pt; line-height: 1.3; color: #000; }
  .notf-seite h1 { font-size: 13pt; margin: 0 0 2mm; color: #000; }
  .notf-seite h2 { font-size: 12pt; margin: 0 0 2mm; color: #000; }
  .notf-seite section, .notf-seite aside { margin: 0 0 3mm; }
  .ctw-karte { border: 1px solid #555; border-radius: 0; padding: 2.5mm; box-shadow: none; background: #fff; break-inside: avoid; }
  .notf-pfad[hidden] { display: none !important; }
  .notf-leer .notf-pfad[hidden] { display: block !important; }
  .notf-schritte { display: block; columns: 2; column-gap: 6mm; margin-top: 1mm; }
  .notf-schritt { display: block; margin: 0 0 1.5mm; }
  .notf-schritt { background: #fff; border: 0; border-bottom: 1px solid #bbb; border-radius: 0; padding: 0 0 1mm; break-inside: avoid; }
  .notf-kopf { min-height: 0; padding: 0; gap: 3mm; }
  .notf-titel { font-size: 10pt; color: #000; }
  .notf-titel::before { color: #000; }
  .notf-box { width: 4.5mm; height: 4.5mm; min-height: 4.5mm; border: 1.5px solid #000; border-radius: 0; background: #fff !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .notf-box:checked::after { border-color: #000; }
  .notf-box:checked { background: #fff !important; }
  .notf-box:checked ~ .notf-titel { text-decoration: none; color: #000; }
  .notf-detail { padding-left: 7.5mm; }
  .notf-detail p { font-size: 8.5pt; line-height: 1.25; margin: 0 0 0.8mm; }
  .notf-pfad .notf-quelle { display: none; }
  .notf-einleitung { display: none; }
  .notf-zweig { border: 0; padding: 0; margin: 1mm 0; }
  .notf-zweig h3 { font-size: 9pt; }
  .notf-zweig ul { font-size: 9pt; }
  .notf-hinweis { background: #fff; border: 1px solid #555; color: #000; font-size: 8pt; padding: 1.5mm 2mm; margin: 2mm 0 0; }
  .notf-notizen .ctw-klein { display: none; }
  .notf-felder { gap: 2mm; margin: 2mm 0 0; grid-template-columns: 1fr 1fr; }
  .notf-feld-breit { grid-column: 1 / -1; }
  .notf-feld label { font-size: 9pt; margin: 0 0 1mm; color: #000; }
  .notf-feld input, .notf-feld textarea { border: 0; border-bottom: 1px solid #000; border-radius: 0; min-height: 7mm; padding: 0; background: #fff; font-size: 10pt; color: #000; }
  .notf-feld textarea { min-height: 13mm; border: 1px solid #000; padding: 1mm; resize: none; }
  .notf-hilfe { border-left: 1px solid #555; }
  .notf-hilfe p { display: none; }
  .notf-hilfe h2 { display: inline; margin-right: 4mm; }
  .notf-tel { display: inline; margin: 0; }
  .notf-tel .ctw-btn { min-height: 0; padding: 0; background: #fff; color: #000; border: 0; font-size: 12pt; text-decoration: none; }
  .notf-links { display: none; }
  .notf-druckfuss { display: block; font-size: 8pt; margin-top: 2mm; color: #000; }
  a { color: inherit !important; text-decoration: none !important; }
}
