/* IT-Starter-Planer (Klassenpräfix itp-). Keine style-Attribute, keine externen Quellen. */
.itp-brot { margin: 0 0 12px; font-size: 14px; }
.itp-brot ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.itp-brot li { display: inline-flex; align-items: center; color: var(--text-leise); }
.itp-brot li + li::before { content: "/"; margin-right: 8px; color: var(--text-leise); }
.itp-brot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: var(--blau); text-decoration: underline; text-underline-offset: 3px; }

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

.itp-form { padding: 20px 16px; margin-bottom: 28px; }
@media (min-width: 640px) { .itp-form { padding: 28px; } }
.itp-fortschritt { margin: 0 0 8px; font-weight: 600; color: var(--blau); font-size: 15px; }
.itp-balken { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 20px; padding: 0; }
.itp-balken li { height: 6px; border-radius: 3px; background: #D5DEF3; }
.itp-balken li.ist { background: var(--blau); }
.itp-schritt h2 { margin-bottom: 8px; }
.itp-schritt h2:focus { outline: none; }

.itp-fs { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
.itp-legende { font-weight: 700; font-size: 18px; line-height: 1.3; padding: 0; margin-bottom: 4px; color: var(--navy); }
.itp-hilfe { margin: 0 0 10px; }
.itp-optionen { display: grid; gap: 8px; margin-top: 8px; }
@media (min-width: 720px) { .itp-optionen { grid-template-columns: repeat(2, 1fr); } }
.itp-opt { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 10px 14px; background: #fff; border: 2px solid var(--rand); border-radius: 14px; cursor: pointer; }
.itp-opt:hover { border-color: var(--hell1); }
.itp-opt:has(input:checked) { border-color: var(--blau); background: #EEF3FF; }
.itp-opt:has(input:focus-visible) { outline: var(--ring); outline-offset: 2px; }
.itp-opt input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; min-height: 24px; margin: 0; border: 2px solid var(--navy); border-radius: 50%; background: #fff; padding: 0; }
.itp-opt input:checked { background: var(--blau); border-color: var(--blau); box-shadow: inset 0 0 0 4px #fff; }
.itp-opt input:focus-visible { outline: none; box-shadow: inset 0 0 0 4px #fff; }
.itp-opt input:focus-visible:not(:checked) { box-shadow: none; }
.itp-opt-text { font-weight: 600; color: var(--navy); line-height: 1.3; }
.itp-offen .itp-legende { color: #A3201B; }
.itp-fehler { color: #A3201B; font-weight: 600; margin: 14px 0 0; }
.itp-fehler:empty { display: none; }
.itp-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.itp-aktionen .ctw-btn { flex: 1 1 200px; }

/* Ergebnis */
.itp-status { margin: 0; min-height: 0; }
.itp-status:empty { display: none; }
.itp-druckkopf { display: none; }
.itp-uebersicht { background: var(--navy); color: #fff; border-radius: 16px; padding: 20px; margin: 8px 0 20px; }
.itp-uebersicht h3 { color: #fff; margin: 0 0 8px; font-size: clamp(20px, 5vw, 24px); }
.itp-uebersicht p { margin: 0; max-width: none; }
.itp-uebersicht p + p { margin-top: 8px; }
.itp-angaben { background: #fff; border: 1px solid var(--rand); border-radius: 12px; margin: 0 0 20px; padding: 12px 14px; }
.itp-angaben h3 { margin-bottom: 8px; }
.itp-angaben dl { margin: 0; display: grid; gap: 6px; }
.itp-angaben dl div { display: grid; gap: 0 12px; }
@media (min-width: 640px) { .itp-angaben dl div { grid-template-columns: 220px 1fr; } }
.itp-angaben dt { font-weight: 600; color: var(--text-leise); }
.itp-angaben dd { margin: 0; }
.itp-gruppe { margin: 26px 0 0; }
.itp-gruppe > h3 { margin-bottom: 10px; }
.itp-baustein { background: #fff; border: 1px solid var(--rand); border-left-width: 6px; border-radius: 14px; padding: 14px 16px; margin: 0 0 12px; break-inside: avoid; }
.itp-prio-hoch .itp-baustein, .itp-baustein.itp-hoch { border-left-color: var(--navy); }
.itp-baustein.itp-mittel { border-left-color: var(--blau); }
.itp-baustein.itp-niedrig { border-left-color: var(--hell1); }
.itp-baustein h4 { font-size: 18px; line-height: 1.3; margin: 0 0 6px; color: var(--navy); font-weight: 700; }
.itp-chip { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.itp-chip-hoch { background: var(--navy); color: #fff; }
.itp-chip-mittel { background: #2147C9; color: #fff; }
.itp-chip-niedrig { background: #E6ECF8; color: var(--navy); border: 1px solid var(--rand); }
.itp-gruende { margin: 0 0 10px; padding-left: 1.2rem; list-style: disc; }
.itp-gruende li { margin: 6px 0; }
.itp-quellenzeile { font-size: 14px; color: var(--text-leise); margin: 0 0 10px; overflow-wrap: anywhere; }
.itp-quellenzeile a { display: inline-flex; align-items: center; min-height: 44px; }
.itp-frage { margin: 0 0 6px; padding: 10px 12px; background: var(--grund); border-radius: 10px; border: 1px solid var(--rand); }
.itp-frage strong { color: var(--navy); }
.itp-mehr { margin: 6px 0 0; font-size: 15px; }
.itp-mehr a { display: inline-flex; align-items: center; min-height: 44px; }
.itp-kopie { margin: 26px 0 0; }
.itp-kopie textarea { width: 100%; min-height: 260px; 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; }
.itp-kopie textarea:focus-visible { outline: var(--ring); outline-offset: 2px; }
.itp-kopie-status { font-weight: 600; color: var(--gut); min-height: 24px; flex: 1 1 100%; margin: 0; }
.itp-cta-tasten { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.itp-cta-tasten .ctw-btn { flex: 1 1 220px; }
.itp-hinweisbox { margin: 20px 0 0; padding: 12px 14px; border: 1px solid var(--rand); border-radius: 12px; background: #fff; }

/* Erklärung, Regeltabelle, Quellen */
.itp-erklaerung { margin: 0 0 28px; }
.itp-erklaerung p { max-width: 72ch; }
.itp-dl { margin: 12px 0; display: grid; gap: 12px; }
.itp-dl dt { font-weight: 700; color: var(--navy); }
.itp-dl dd { margin: 0; overflow-wrap: anywhere; }
.itp-dl a { display: inline-flex; align-items: center; min-height: 44px; }
.itp-regeln { border: 1px solid var(--rand); border-radius: 12px; background: #fff; }
.itp-regeln summary { cursor: pointer; font-weight: 700; padding: 0 14px; min-height: 48px; display: flex; align-items: center; color: var(--navy); }
.itp-tabellenrahmen { padding: 0 8px 12px; }
.itp-tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.itp-tabelle th { text-align: left; padding: 8px; background: #EAF0FF; color: var(--navy); border-bottom: 2px solid var(--rand); }
.itp-tabelle td { padding: 8px; border-bottom: 1px solid var(--rand); vertical-align: top; }
@media (max-width: 859px) {
  .itp-tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .itp-tabelle, .itp-tabelle tbody, .itp-tabelle tr, .itp-tabelle td { display: block; width: 100%; }
  .itp-tabelle tr { border: 1px solid var(--rand); border-radius: 10px; margin: 0 0 10px; padding: 6px 0; }
  .itp-tabelle td { border: 0; padding: 4px 10px; }
  .itp-tabelle td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--navy); }
}
.itp-cta { margin: 0 0 28px; }
.itp-quelle h2 { margin-bottom: 8px; }

/* Druckansicht: nur Kopfzeile des Ausdrucks und Ergebnis */
@media print {
  header, footer, .proto-skip, div.bg-primary, .itp-nicht-drucken, .itp-brot, .itp-zusagen, .ctw-eyebrow, .ctw-lead, .itp-balken, .itp-fortschritt,
  #schritt-1, #schritt-2, #schritt-3, .itp-kopie, .itp-cta-tasten { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .ctw-seite { max-width: none; padding: 0; }
  .ctw-seite h1 { font-size: 20pt; }
  .itp-form { border: 0; padding: 0; margin: 0; }
  #schritt-4 { display: block !important; }
  .itp-druckkopf { display: block; margin: 0 0 10pt; padding-bottom: 6pt; border-bottom: 1px solid #000; }
  .itp-uebersicht { background: #fff; color: #000; border: 1px solid #000; }
  .itp-uebersicht h3 { color: #000; }
  .itp-baustein { border: 1px solid #000; border-left-width: 4px; }
  .itp-chip { border: 1px solid #000; background: #fff !important; color: #000 !important; }
  .itp-angaben { border: 1px solid #000; }
  .itp-quellenzeile a { color: #000; text-decoration: none; }
  .itp-quellenzeile a[href]::after { content: " (" attr(href) ")"; }
}
.itp-uebersicht a.itp-hell, .ctw-seite .itp-uebersicht p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

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