/* Seite /preise: Preistabellen und Einsatz-Kostenrechner. Alle Klassen mit Präfix preis- */
.preis-seite { padding-bottom: 72px; }
.preis-krumen { margin: 0 0 12px; }
.preis-krumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; font-size: 15px; }
.preis-krumen li { display: inline-flex; align-items: center; }
.preis-krumen li + li::before { content: "/"; margin-right: 8px; color: var(--text-leise); }
.preis-krumen a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--blau); text-decoration: underline; text-underline-offset: 3px; }
.preis-krumen [aria-current] { color: var(--text-leise); font-weight: 600; }
.preis-druckkopf { display: none; }

.preis-kurz { background: #fff; border: 1px solid var(--rand); border-left: 6px solid var(--blau); border-radius: 16px; padding: 18px 20px; margin: 8px 0 18px; max-width: 78ch; }
.preis-kurz h2 { font-size: 20px; margin: 0 0 8px; }
.preis-kurz p { margin: 0 0 10px; }
.preis-kurz p:last-child { margin-bottom: 0; }

.preis-anker ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; }
.preis-anker a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--rand); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; }
.preis-anker a:hover { border-color: var(--blau); color: var(--blau-dunkel); }

.preis-sektion { margin: 0 0 40px; }
.preis-sektion h2 { margin-bottom: 6px; }
.preis-sektion h3 { margin-top: 24px; }
.preis-einleitung { color: var(--text-leise); margin: 0 0 14px; max-width: 70ch; }
.preis-sektion p { max-width: 78ch; }

/* Tabellen */
.preis-tabelle-huelle { overflow-x: auto; margin: 0 0 10px; }
.preis-tabelle { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--rand); font-size: 16px; }
.preis-tabelle th, .preis-tabelle td { padding: 12px 14px; border-bottom: 1px solid #E1E8F6; text-align: left; vertical-align: top; }
.preis-tabelle thead th { background: #E8EEFB; color: var(--navy); font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--rand); }
.preis-tabelle tbody th, .preis-tabelle tfoot th { font-weight: 600; color: var(--navy); }
.preis-tabelle tr:last-child > * { border-bottom: 0; }
.preis-tabelle .preis-zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.preis-notiz { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--text-leise); }
.preis-tabelle .preis-summe > * { background: #F4F7FF; font-weight: 700; color: var(--navy); border-top: 2px solid var(--rand); }

.preis-regeln { margin: 0 0 8px; padding-left: 1.4rem; display: grid; gap: 10px; list-style: decimal; max-width: 78ch; }
.preis-regeln li { padding-left: 4px; }

/* Formular */
.preis-noscript { background: #FFF4E0; border: 1px solid #C98A1A; border-radius: 12px; padding: 12px 16px; color: #4A2F00; }
.preis-form { padding: 20px 16px; margin-top: 8px; }
@media (min-width: 640px) { .preis-form { padding: 28px; } }
.preis-fs { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.preis-legende { font-weight: 700; font-size: 18px; padding: 0; margin-bottom: 10px; color: var(--navy); }
.preis-label { display: block; font-weight: 700; font-size: 18px; margin-bottom: 4px; color: var(--navy); }
.preis-feld { margin: 0 0 22px; }
.preis-feld input { width: 100%; max-width: 360px; min-height: 48px; border: 2px solid #5C6B8C; border-radius: 12px; padding: 0 12px; background: #fff; color: var(--navy); font-size: 18px; }
.preis-feld input:focus-visible { outline: var(--ring); outline-offset: 2px; }
.preis-feld input[aria-invalid="true"] { border-color: #A3201B; }
.preis-feld p { margin: 4px 0 0; }
.preis-tage { margin: 12px 0 0 0; }
.preis-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; }
.preis-opt:hover { border-color: var(--hell1); }
.preis-opt:has(input:checked) { border-color: var(--blau); background: #EEF3FF; }
.preis-opt:has(input:focus-visible) { outline: var(--ring); outline-offset: 2px; }
.preis-opt input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; min-height: 24px; max-width: 24px; margin: 2px 0 0; border: 2px solid var(--navy); background: #fff; display: grid; place-content: center; padding: 0; transition: none; }
.preis-opt input[type="radio"] { border-radius: 50%; }
.preis-opt input[type="checkbox"] { border-radius: 6px; }
.preis-opt input:checked { background: var(--blau); border-color: var(--blau); }
.preis-opt input[type="radio"]:checked { box-shadow: inset 0 0 0 4px #fff; }
.preis-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); }
.preis-opt input:focus-visible, .preis-opt input:focus { outline: none; box-shadow: none; }
.preis-opt input[type="radio"]:checked:focus { box-shadow: inset 0 0 0 4px #fff; }
.preis-opt-text { display: grid; gap: 2px; }
.preis-opt-text strong { font-weight: 700; color: var(--navy); line-height: 1.3; }
.preis-opt-text span { font-size: 15px; color: var(--text-leise); line-height: 1.4; }
.preis-opt-aus { cursor: not-allowed; background: #F0F3FA; }
.preis-opt-aus:hover { border-color: var(--rand); }
.preis-opt-aus .preis-opt-text strong { color: #4A5675; }
.preis-opt input:disabled { border-color: #6B7690; background: #E4E9F4; }
.preis-fehler { color: #A3201B; font-weight: 600; margin: 8px 0 0; }
.preis-fehler:empty { display: none; }
.preis-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: center; }
.preis-aktionen .ctw-btn { flex: 1 1 200px; }

/* Ergebnis */
.preis-ergebnis { margin-top: 20px; }
.preis-erg { padding: 20px 16px; }
@media (min-width: 640px) { .preis-erg { padding: 28px; } }
.preis-erg h3 { margin: 0 0 6px; font-size: 22px; }
.preis-erg h3:focus { outline: none; }
.preis-erg h4 { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: var(--navy); }
.preis-erg-summe { font-size: clamp(20px, 5.5vw, 26px); margin: 0 0 4px; color: var(--navy); line-height: 1.25; }
.preis-angaben { margin: 12px 0; }
.preis-vgl, .preis-kopie { margin-top: 26px; }
.preis-urteil { font-weight: 600; color: var(--navy); margin: 10px 0; }
.preis-kopie textarea { width: 100%; min-height: 220px; 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; }
.preis-kopie textarea:focus-visible { outline: var(--ring); outline-offset: 2px; }
.preis-kopie-status { font-weight: 600; color: var(--gut); min-height: 24px; flex: 1 1 100%; margin: 0; }
.preis-hinweis { margin: 18px 0 0; padding: 12px 14px; background: #F4F7FF; border-left: 4px solid var(--hell1); border-radius: 8px; font-weight: 600; color: var(--navy); }
.preis-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 10px; }
.preis-cta .ctw-btn { flex: 1 1 220px; max-width: 320px; }

/* Rechenbeispiele */
.preis-bsp-liste { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .preis-bsp-liste { grid-template-columns: repeat(2, 1fr); } }
.preis-bsp { background: #fff; border: 1px solid var(--rand); border-radius: 14px; padding: 16px; }
.preis-bsp h3 { font-size: 17px; margin: 0 0 6px; }
.preis-rechenweg { margin: 0 0 10px; font-size: 15px; color: var(--text-leise); }
.preis-summen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.preis-summen-zwei { grid-template-columns: repeat(2, 1fr); }
.preis-summen div { background: #F4F7FF; border-radius: 10px; padding: 8px 10px; min-width: 0; }
.preis-summen dt { font-size: 13px; font-weight: 600; color: var(--text-leise); }
.preis-summen dd { margin: 0; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Schmale Bildschirme: Ergebnistabelle je Position in einem Block */
@media (max-width: 599px) {
  .preis-erg-tab thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .preis-erg-tab, .preis-erg-tab tbody, .preis-erg-tab tfoot { display: block; }
  .preis-erg-tab tr { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #E1E8F6; padding: 10px 12px; gap: 4px 8px; }
  .preis-erg-tab tr:last-child { border-bottom: 0; }
  .preis-erg-tab th[scope="row"] { grid-column: 1 / -1; padding: 0 0 4px; border: 0; background: transparent; }
  .preis-erg-tab td { padding: 0; border: 0; background: transparent; text-align: left; font-weight: 600; }
  .preis-erg-tab td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--text-leise); }
  .preis-erg-tab .preis-summe > * { border-top: 0; }
  .preis-erg-tab .preis-summe { border-top: 2px solid var(--rand); background: #F4F7FF; }
  .preis-erg { padding: 16px 12px; }
  .preis-erg-tab td { font-size: 15px; }
  .preis-vgl-tab th, .preis-vgl-tab td { padding: 10px 6px; font-size: 14px; }
  .preis-vgl-tab thead th.preis-zahl { white-space: normal; }
  .preis-vgl-tab .preis-zahl { letter-spacing: -.01em; }
  .preis-tabelle { font-size: 15px; }
  .preis-tabelle th { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  .preis-tabelle thead th.preis-zahl { white-space: normal; }
  .preis-tabelle th, .preis-tabelle td { padding: 10px 10px; }
}

/* Druck: nur Inhalt, ohne Kopf, Fuß, Formularfelder */
@media print {
  body > div.bg-primary, body > header, header, footer, .proto-skip, .preis-krumen, .preis-anker, .preis-form, .preis-kopie, .preis-cta, .preis-aktionen, noscript, #rechner-status { display: none !important; }
  body { background: #fff; color: #000; }
  .preis-seite { max-width: none; padding: 0; }
  .preis-druckkopf { display: block; font-size: 12px; margin: 0 0 8px; }
  .preis-sektion, .preis-bsp, .preis-erg, tr { break-inside: avoid; }
  .preis-kurz, .preis-bsp, .preis-erg, .preis-tabelle, .preis-hinweis { border-color: #000; background: #fff; box-shadow: none; }
  .preis-tabelle thead th, .preis-summen div, .preis-tabelle .preis-summe > * { background: #fff; }
  .preis-tabelle-huelle { overflow: visible; }
  a { color: #000; text-decoration: none; }
  .preis-erg-tab thead { position: static; width: auto; height: auto; clip: auto; }
}
