.nis-zusagen { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; max-width: 62ch; }
.nis-zusagen li { padding-left: 16px; border-left: 4px solid var(--hell1); font-size: 16px; }
.nis-noscript { background: #FFF4E0; border: 1px solid #C98A1A; border-radius: 12px; padding: 12px 16px; color: #4A2F00; }
.nis-form { padding: 20px 16px; margin-bottom: 28px; }
@media (min-width: 640px) { .nis-form { padding: 28px; } }
.nis-fortschritt { margin: 0 0 8px; font-weight: 600; color: var(--blau); font-size: 15px; }
.nis-balken { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 20px; padding: 0; }
.nis-balken li { height: 6px; border-radius: 3px; background: #D5DEF3; }
.nis-balken li.ist { background: var(--blau); }
.nis-schritt h2 { margin-bottom: 8px; }
.nis-schritt h2:focus { outline: none; }
.nis-fs { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.nis-legende { font-weight: 700; font-size: 18px; padding: 0; margin-bottom: 10px; color: var(--navy); }
.nis-gruppe { margin-top: 18px; }
.nis-seite h3.nis-gruppentitel, .nis-gruppentitel { font-size: 15px; color: var(--text-leise); margin: 0 0 8px; font-weight: 600; }
.nis-opt { display: flex; gap: 12px; align-items: flex-start; min-height: 56px; padding: 12px 14px; margin: 0 0 8px; background: #fff; border: 2px solid var(--rand); border-radius: 14px; cursor: pointer; }
.nis-opt:hover { border-color: var(--hell1); }
.nis-opt:has(input:checked) { border-color: var(--blau); background: #EEF3FF; }
.nis-opt:has(input:focus-visible) { outline: var(--ring); outline-offset: 2px; }
.nis-opt input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; min-height: 24px; margin: 2px 0 0; border: 2px solid var(--navy); background: #fff; display: grid; place-content: center; padding: 0; transition: none; }
.nis-opt input[type="radio"] { border-radius: 50%; }
.nis-opt input[type="checkbox"] { border-radius: 6px; }
.nis-opt input:checked { background: var(--blau); border-color: var(--blau); }
.nis-opt input[type="radio"]:checked { box-shadow: inset 0 0 0 4px #fff; }
.nis-opt input[type="checkbox"]:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.nis-opt input:focus-visible { outline: none; box-shadow: none; }
.nis-opt input:focus { box-shadow: none; }
.nis-opt-text { display: grid; gap: 2px; }
.nis-opt-text strong { font-weight: 700; color: var(--navy); line-height: 1.3; }
.nis-opt-text span { font-size: 15px; color: var(--text-leise); line-height: 1.4; }
.nis-art { margin-top: 18px; }
.nis-art select, .nis-feld input { width: 100%; min-height: 48px; border: 2px solid #5C6B8C; border-radius: 12px; padding: 0 12px; background: #fff; color: var(--navy); }
.nis-art select:focus-visible, .nis-feld input:focus-visible { outline: var(--ring); outline-offset: 2px; }
.nis-kritisch { margin-top: 20px; }
.nis-label { display: block; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.nis-felder { display: grid; gap: 16px; margin: 16px 0 8px; }
@media (min-width: 720px) { .nis-felder { grid-template-columns: repeat(3, 1fr); } }
.nis-feld p { margin: 4px 0 0; }
.nis-fehler { color: #A3201B; font-weight: 600; margin: 12px 0 0; }
.nis-fehler:empty { display: none; }
.nis-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.nis-aktionen .ctw-btn { flex: 1 1 200px; }

/* Ergebnis */
.nis-erg { border-radius: 16px; padding: 20px; margin: 12px 0 20px; border: 2px solid transparent; }
.nis-erg h3 { font-size: clamp(21px, 5vw, 26px); line-height: 1.2; margin: 6px 0 8px; color: inherit; }
.nis-erg p { margin: 0; max-width: none; }
.nis-erg-marke { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.18); }
.nis-erg-besonders { background: var(--navy); color: #fff; }
.nis-erg-wichtig { background: #2147C9; color: #fff; }
.nis-erg-nicht { background: #E8F6EE; color: #0B3B22; border-color: #1D7A48; }
.nis-erg-nicht .nis-erg-marke { background: rgba(11,59,34,.12); }
.nis-erg-unklar { background: #FFF4E0; color: #4A2F00; border-color: #C98A1A; }
.nis-erg-unklar .nis-erg-marke { background: rgba(74,47,0,.12); }
.nis-unsicher { margin-top: 10px !important; font-weight: 600; }
.nis-block { margin: 22px 0; }
.nis-block h3 { margin-bottom: 8px; }
.nis-grund { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.nis-grund li { background: #fff; border: 1px solid var(--rand); border-radius: 12px; padding: 12px 14px; }
.nis-stelle { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--blau-dunkel); }
.nis-hinweise { border: 1px solid var(--rand); border-radius: 12px; background: #fff; }
.nis-hinweise summary { cursor: pointer; font-weight: 700; padding: 0 14px; min-height: 48px; display: flex; align-items: center; color: var(--navy); }
.nis-hinweise ul { margin: 0; padding: 0 14px 12px 34px; }
.nis-hinweise li { margin: 8px 0; font-size: 15px; }
.nis-schritte-liste { padding-left: 1.4rem; margin: 0; display: grid; gap: 10px; }
.nis-schritte-liste li { padding-left: 4px; }
.nis-kopie textarea { width: 100%; min-height: 240px; font: 14px/1.5 ui-monospace, Consolas, Menlo, monospace; padding: 12px; border: 2px solid #5C6B8C; border-radius: 12px; background: #fff; color: var(--navy); resize: vertical; }
.nis-kopie textarea:focus-visible { outline: var(--ring); outline-offset: 2px; }
.nis-kopie .nis-aktionen { align-items: center; }
.nis-kopie-status { font-weight: 600; color: var(--gut); min-height: 24px; flex: 1 1 100%; margin: 0; }
.nis-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.nis-cta .ctw-btn { flex: 1 1 220px; }
.nis-quelle h2 { margin-bottom: 8px; }
.nis-dl { margin: 12px 0; display: grid; gap: 12px; }
.nis-dl dt { font-weight: 700; color: var(--navy); }
.nis-dl dd { margin: 0; overflow-wrap: anywhere; }
.nis-dl a { display: inline-flex; align-items: center; min-height: 44px; }
.nis-linkzeile { display: block; }
.nis-linkzeile a { display: inline-flex; align-items: center; min-height: 44px; }
.nis-vorbehalt { font-weight: 600; }

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

/* Regeln als Text (auch ohne JavaScript lesbar) */
.nis-regeln { margin: 0 0 28px; }
.nis-regeln > p { max-width: 70ch; }
.nis-tabelle { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--rand); border-radius: 12px; overflow: hidden; font-size: 15px; }
.nis-tabelle caption { text-align: left; font-weight: 700; padding: 0 0 8px; color: var(--navy); }
.nis-tabelle th, .nis-tabelle td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #E3E9F6; vertical-align: top; }
.nis-tabelle thead th { background: #E8EEFC; color: var(--navy); }
.nis-tabelle tr:last-child > * { border-bottom: 0; }
@media (max-width: 639px) {
  .nis-tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nis-tabelle tr, .nis-tabelle td { display: block; }
  .nis-tabelle td { border-bottom: 0; padding: 2px 12px; }
  .nis-tabelle td:first-child { padding-top: 12px; font-weight: 700; }
  .nis-tabelle td:last-child { padding-bottom: 12px; }
  .nis-tabelle tr { border-bottom: 1px solid #E3E9F6; }
  .nis-tabelle td[data-kopf]::before { content: attr(data-kopf) ": "; font-weight: 600; color: var(--text-leise); }
}
.nis-sektoren { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 760px) { .nis-sektoren { grid-template-columns: 1fr 1fr; } }
.nis-sektoren h3 { font-size: 17px; }
.nis-sektoren ol { margin: 0; padding-left: 1.4rem; list-style: decimal; }
.nis-sektoren li { margin: 4px 0; }
.nis-itdl { margin: 0 0 28px; }
.nis-itdl ul { list-style: disc; padding-left: 1.25rem; margin: 0; }
.nis-itdl li { margin: 8px 0; max-width: 70ch; }
.nis-zitat { font-style: italic; }
.nis-mit { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 28px; }
.nis-mit .ctw-btn { flex: 1 1 220px; }

@media print {
  header, footer, .proto-skip, #mobilmenue, div.bg-primary.text-sm, .nis-aktionen, .nis-cta, .nis-mit, .nis-balken, .nis-krumen, #schritt-1, #schritt-2 { display: none !important; }
  body { background: #fff; color: #000; }
  .ctw-seite { max-width: none; padding: 0; }
  .ctw-karte, .nis-grund li, .nis-hinweise { border-color: #999; box-shadow: none; }
  .nis-erg { border: 2px solid #000; background: #fff !important; color: #000 !important; }
  .nis-erg-marke { background: none !important; border: 1px solid #000; }
  .nis-hinweise > *:not(summary) { display: block !important; }
  .nis-kopie textarea { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 12px; word-break: break-all; }
  .nis-form[hidden] { display: none; }
}
@media (min-width: 640px) { .nis-tabelle td:nth-child(2), .nis-tabelle td:nth-child(3) { white-space: nowrap; } }

/* Platz für das per Skript eingeblendete Formular freihalten (vermeidet Layoutsprung); ohne Skript greift die Regel nicht */
@media screen and (scripting: enabled) {
  .nis-form[hidden] { display: block; visibility: hidden; min-height: 3300px; }
}
@media screen and (scripting: enabled) and (min-width: 640px) {
  .nis-form[hidden] { min-height: 2070px; }
}
