/* zahnkosten-rechner.de – Gestaltungssystem 2026 (Stufe 1)
   Petrol = Kasse/Marke, Ocker = Eigenanteil, Koralle = Handeln (nur Partnerknöpfe und aktive Auswahl).
   Schriften: Red Hat Display (Überschriften) und Red Hat Text (Text, Beträge), selbst gehostet, OFL. */

@font-face { font-family: "Red Hat Display"; src: url(/fonts/red-hat-display-latin.woff2) format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url(/fonts/red-hat-text-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --petrol: #0E6E74; --petrol-tief: #0A5459; --petrol-hell: #E3F1EF; --petrol-zart: #F1F8F7;
  --koralle: #C9472A; --koralle-tief: #AE3B22;
  --ocker: #A86B12; --ocker-text: #8A5A12; --ocker-hell: #F6ECDB;
  --tinte: #1D2B33; --text-2: #3F4E56; --linie: #DCE3E2; --grund: #FBF8F4; --weiss: #FFFFFF; --sand: #F4EDE4;
  --titel: "Red Hat Display", system-ui, sans-serif;
  --text: "Red Hat Text", system-ui, sans-serif;
  --r-gross: 18px; --r: 12px; --r-klein: 8px;
  --kopf-hoehe: 72px;
  --rand: 32px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--grund); color: var(--tinte); font-family: var(--text); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--titel); line-height: 1.15; letter-spacing: -.015em; margin: 0; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: 52px; font-weight: 760; letter-spacing: -.02em; }
h2 { font-size: 38px; font-weight: 760; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--petrol-tief); text-underline-offset: .18em; }
a:hover { color: var(--tinte); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; border-radius: 4px; }
.zahl, .betrag { font-variant-numeric: tabular-nums lining-nums; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--rand); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.kein-trennen { hyphens: manual; }

/* ---------- Kopf (navigation.js: .mobile-toggle, .nav-overlay) ---------- */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); position: relative; z-index: 100; }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--kopf-hoehe); }
.marke { font-family: var(--titel); font-weight: 750; font-size: 22px; color: var(--tinte); text-decoration: none; letter-spacing: -.02em; white-space: nowrap; padding: 10px 0; }
.marke b { color: var(--petrol); font-weight: inherit; }
.marke span { color: var(--text-2); font-weight: 600; }
.marke:hover { color: var(--tinte); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--tinte); text-decoration: none; font-size: 16px; font-weight: 500; border-radius: var(--r-klein); }
.nav a:hover { background: var(--petrol-zart); color: var(--petrol-tief); }
.nav a.aktiv, .nav a[aria-current="page"] { color: var(--petrol-tief); box-shadow: inset 0 -2px 0 var(--petrol); border-radius: 0; }
.menue-knopf { display: none; align-items: center; gap: 10px; min-height: 48px; min-width: 48px; padding: 0 10px; margin-right: -10px; background: none; border: 0; color: var(--tinte); font: 600 16px/1 var(--text); cursor: pointer; border-radius: var(--r-klein); }
.menue-knopf .striche span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .2s ease; }
.menue-knopf .striche { display: grid; gap: 5px; }
.menue-knopf[aria-expanded="true"] .striche span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] .striche span:nth-child(2) { visibility: hidden; }
.menue-knopf[aria-expanded="true"] .striche span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay { display: none; position: fixed; top: var(--kopf-hoehe); left: 0; right: 0; bottom: 0; z-index: 99; background: var(--weiss); overflow-y: auto; padding: 8px 18px 48px; border-top: 1px solid var(--linie); }
.nav-overlay.is-open { display: block; }
.nav-links-mobile { list-style: none; margin: 0; padding: 0; }
.nav-links-mobile a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--linie); color: var(--tinte); text-decoration: none; font-family: var(--titel); font-weight: 600; font-size: 20px; }
body.nav-open { overflow: hidden; }

/* ---------- Abschnitte ---------- */
.teil { padding: 72px 0; }
.teil--weiss { background: var(--weiss); }
.teil--band { background: var(--petrol-hell); }
.teil--sand { background: var(--sand); }
.unter { color: var(--text-2); font-size: 19px; margin: 12px 0 0; max-width: 40em; }
.kruemel { font-size: 15px; color: var(--text-2); margin: 0 0 18px; }
.kruemel a { color: var(--text-2); }
.kruemel ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.kruemel li + li::before { content: "/"; margin-right: 8px; color: var(--linie); }
.seitenkopf { padding: 44px 0 40px; }
.seitenkopf h1 { font-size: 46px; max-width: 18em; }
.stand-zeile { font-size: 15px; color: var(--text-2); margin: 14px 0 0; }

/* ---------- Knöpfe ---------- */
/* .knopf = Partnerknopf (Koralle). .knopf--ruhig = Partnerknopf umrandet, gleich gewichtet in Übersichten.
   .knopf--petrol / .knopf--leise = interne Aktionen (Marke Petrol), damit Koralle nur „Partner“ bedeutet. */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; background: var(--koralle); color: #fff; font-family: var(--text); font-weight: 700; font-size: 19px; line-height: 1.2; text-decoration: none; text-align: center; padding: 14px 26px; border: 0; border-radius: var(--r); cursor: pointer; transition: background-color .15s ease; }
.knopf:hover { background: var(--koralle-tief); color: #fff; }
.knopf::after { content: ""; flex: none; width: 9px; height: 9px; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: rotate(45deg); }
.knopf--ruhig { background: var(--weiss); color: var(--koralle-tief); box-shadow: inset 0 0 0 2px var(--koralle); }
.knopf--ruhig:hover { background: #FBEDE9; color: var(--koralle-tief); }
.knopf--petrol { background: var(--petrol); color: #fff; }
.knopf--petrol:hover { background: var(--petrol-tief); color: #fff; }
.knopf--leise { background: var(--weiss); color: var(--petrol-tief); box-shadow: inset 0 0 0 2px var(--petrol); }
.knopf--leise:hover { background: var(--petrol-zart); color: var(--petrol-tief); }
.knopf--klein { min-height: 44px; font-size: 16px; padding: 10px 16px; }
.knopf--ohne-pfeil::after { content: none; }
.knopf-zeile { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-top: 16px; }
.knopf-unter { font-size: 15px; color: var(--text-2); }
.text-knopf { background: none; border: 0; padding: 10px 4px; min-height: 44px; font: 600 16px/1.2 var(--text); color: var(--petrol-tief); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.text-knopf:hover { color: var(--tinte); }

/* ---------- Balken-Sprache: Kasse Petrol, Eigenanteil Ocker, weiße Fuge, immer ab 0 ---------- */
.balken { display: flex; height: 16px; border-radius: 5px; overflow: hidden; gap: 2px; background: var(--weiss); }
.balken__kasse { background: var(--petrol); }
.balken__eigen { background: var(--ocker); }
.balken--gross { height: 36px; border-radius: 7px; }
.balken--gross > div { display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; color: #fff; }
/* Kasse: Weiß auf Petrol 6,0:1; Eigenanteil: Weiß auf Ocker 4,4:1, daher fett ab 18,66 px (große Schrift) */
.balken--gross .balken__kasse { padding: 0 6px; font-size: 15px; font-weight: 600; }
.balken--gross .balken__eigen { padding: 0 10px; font-size: 19px; font-weight: 700; }
.leg { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--text-2); margin-top: 8px; font-variant-numeric: tabular-nums; }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.punkt--kasse { background: var(--petrol); }
.punkt--eigen { background: var(--ocker); }
.achse { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---------- Einstieg (Startseite) ---------- */
.held { padding: 60px 0 64px; }
.held .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.lead { font-size: 20px; color: var(--text-2); margin: 18px 0 30px; max-width: 33em; }
.frage { font-family: var(--titel); font-size: 22px; font-weight: 700; line-height: 1.2; margin: 0 0 14px; color: var(--tinte); }
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kachel { display: grid; grid-template-columns: 44px 1fr 16px; gap: 14px; align-items: center; min-height: 76px; text-align: left; text-decoration: none; border: 1.5px solid var(--linie); border-radius: var(--r); padding: 16px 18px; background: var(--weiss); font: inherit; color: var(--tinte); cursor: pointer; box-shadow: 0 1px 0 rgba(29, 43, 51, .04); transition: border-color .15s ease, background-color .15s ease; }
.kachel svg { width: 44px; height: 44px; stroke: var(--petrol); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kachel strong { display: block; font-family: var(--titel); font-size: 19px; font-weight: 700; line-height: 1.2; }
.kachel small { display: block; font-size: 15px; color: var(--text-2); line-height: 1.35; margin-top: 3px; }
.kachel__pfeil { width: 10px; height: 10px; border-top: 2.5px solid var(--petrol); border-right: 2.5px solid var(--petrol); transform: rotate(45deg); }
.kachel:hover { border-color: var(--petrol); background: var(--petrol-zart); color: var(--tinte); }
.kachel[aria-pressed="true"] { border-color: var(--koralle); box-shadow: inset 0 0 0 1px var(--koralle); }
.quelle { margin: 18px 0 0; font-size: 15px; color: var(--text-2); }
.quelle b { color: var(--tinte); font-weight: 600; }

.beispiel { background: var(--weiss); border-radius: var(--r-gross); padding: 24px 26px; box-shadow: 0 0 0 1px var(--linie), 0 18px 36px -30px rgba(14, 110, 116, .55); margin: 0; }
.beispiel__kopf { font-size: 15px; font-weight: 600; color: var(--text-2); margin: 0 0 6px; }
.beispiel__betrag { font-family: var(--titel); font-weight: 800; font-size: 40px; letter-spacing: -.02em; line-height: 1.05; color: var(--tinte); font-variant-numeric: tabular-nums; }
.beispiel__betrag small { font-size: 18px; font-weight: 600; color: var(--text-2); letter-spacing: 0; margin-left: 6px; }
.beispiel .balken { margin-top: 16px; }
.merksatz { margin: 14px 0 0; padding: 12px 14px; background: var(--sand); border-radius: var(--r-klein); font-size: 15px; line-height: 1.5; }

/* ---------- Bonusheft-Grafik ---------- */
.zwei-spalten { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.erklaerung p { margin: 14px 0 0; font-size: 17px; }
.bonus h3 { font-size: 20px; margin-bottom: 4px; }
.bonus__quelle { font-size: 15px; color: var(--text-2); margin: 0 0 18px; }
.bonus-zeile { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--linie); }
.bonus-zeile__titel { font-weight: 600; font-size: 16px; line-height: 1.3; }
.bonus-zeile__titel span { display: block; font-weight: 400; color: var(--text-2); font-size: 15px; }
.bonus .achse { margin-left: 166px; }

/* ---------- Kurzfazit ---------- */
.fazit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.fazit__ja, .fazit__nein { border-radius: var(--r-gross); padding: 24px 26px; }
.fazit__ja { background: var(--petrol-zart); box-shadow: inset 0 0 0 1px #CFE5E2; }
.fazit__nein { background: var(--sand); box-shadow: inset 0 0 0 1px #E6DBCB; }
.fazit h3 { font-size: 21px; margin-bottom: 8px; }
.fazit ul { margin: 0; padding-left: 20px; font-size: 17px; }
.fazit li { margin: 6px 0; }

/* ---------- Hinweis und Partnerkasten ---------- */
.hinweis { font-size: 15px; color: var(--text-2); margin: 20px 0 12px; line-height: 1.5; padding: 2px 0 2px 14px; border-left: 3px solid #9AA7AB; }
.hinweis p { margin: 0; }
.hinweis strong { color: var(--tinte); }
.warnung { max-width: 46em; font-size: 16px; line-height: 1.5; padding: 12px 16px; border-left: 3px solid var(--tinte); background: var(--sand); border-radius: 0 var(--r-klein) var(--r-klein) 0; margin: 12px 0 0; }
.offenlegung { margin-top: 20px; display: flex; gap: 12px; align-items: flex-start; max-width: 46em; font-size: 16px; line-height: 1.5; color: var(--text-2); padding: 14px 16px; background: var(--weiss); border-radius: var(--r); box-shadow: 0 0 0 1px var(--linie); }
.offenlegung b { color: var(--tinte); }
.offenlegung__stern { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-weight: 800; color: var(--tinte); }
.partnerkasten { margin: 32px 0; padding: 24px 26px; background: var(--weiss); border-radius: var(--r-gross); box-shadow: 0 0 0 1px var(--linie); }
.partnerkasten__titel { font-family: var(--titel); font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.partnerkasten h3 { font-size: 21px; margin-bottom: 8px; }
.partnerkasten p { font-size: 17px; }
.partnerkasten .hinweis { margin-top: 12px; }

/* ---------- Karten nach Bedarf ---------- */
.bedarf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; align-items: stretch; }
.karte { background: var(--weiss); border-radius: var(--r-gross); box-shadow: 0 0 0 1px var(--linie), 0 18px 36px -28px rgba(14, 110, 116, .5); display: flex; flex-direction: column; overflow: hidden; }
.karte__fuer { padding: 16px 22px; background: var(--petrol-hell); font-family: var(--titel); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--petrol-tief); }
.karte--dringend .karte__fuer { background: var(--sand); color: var(--tinte); }
.karte__koerper { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.karte h3 { font-size: 23px; }
.karte__anbieter { font-size: 15px; color: var(--text-2); margin-top: -6px; }
.karte__unten { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.karte__unten .knopf { width: 100%; font-size: 18px; }
.karte__stand { font-size: 14px; color: var(--text-2); text-align: center; }
.plakette { display: inline-block; align-self: flex-start; line-height: 1.35; font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: var(--grund); box-shadow: inset 0 0 0 1px var(--linie); }
.plakette b { font-family: var(--titel); font-size: 15px; }
.fakten { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.45; }
.fakten li { padding: 8px 0 8px 26px; border-top: 1px solid var(--linie); position: relative; }
.fakten li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 11px; height: 6px; border-left: 2px solid var(--petrol); border-bottom: 2px solid var(--petrol); transform: rotate(-45deg); }
.fakten li.minus::before { border: 0; width: 11px; height: 2px; background: #6B7A80; transform: none; top: 19px; }

/* ---------- Tabellen (bis 799 px als Blöcke je Zeile, Beschriftung aus data-label) ---------- */
.tabelle-rahmen { margin: 24px 0; background: var(--weiss); border-radius: var(--r-gross); box-shadow: 0 0 0 1px var(--linie); overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.tabelle caption { text-align: left; font-weight: 600; padding: 14px 20px 0; color: var(--text-2); font-size: 15px; }
.tabelle th, .tabelle td { padding: 14px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--linie); }
.tabelle thead th { background: var(--grund); font-size: 14px; font-weight: 700; color: var(--text-2); border-top: 0; }
.tabelle tbody th { font-family: var(--titel); font-weight: 700; font-size: 17px; }
.tabelle .betrag { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
/* Textzellen in Betragsspalten und Spaltenköpfe über Beträgen dürfen umbrechen */
.tabelle .betrag.umbruch, .tabelle thead th.betrag { white-space: normal; }
.tabelle tr.summe th, .tabelle tr.summe td { font-weight: 700; background: var(--petrol-zart); }
.tabelle .knopf { width: 100%; white-space: nowrap; }
.tabelle td.aktion { width: 1%; }
@media (max-width: 799px) {
  .tabelle--stapel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .tabelle--stapel, .tabelle--stapel tbody, .tabelle--stapel tr, .tabelle--stapel th, .tabelle--stapel td { display: block; width: 100%; }
  .tabelle--stapel tr { border-top: 1px solid var(--linie); padding: 12px 16px 10px; }
  .tabelle--stapel tr:first-child { border-top: 0; }
  .tabelle--stapel th, .tabelle--stapel td { border: 0; padding: 1px 0; text-align: left; white-space: normal; }
  .tabelle--stapel td[data-label]::before { content: attr(data-label) ": "; color: var(--text-2); font-weight: 600; }
  .tabelle--stapel tr > :first-child { font-family: var(--titel); font-weight: 700; font-size: 18px; padding-bottom: 6px; }
  .tabelle--stapel tr > :first-child::before { content: none; }
  .tabelle--stapel .betrag { text-align: left; white-space: normal; }
  .tabelle--stapel .knopf { margin-top: 8px; }
  /* Knopf-Spalte gestapelt in voller Breite (sonst greift width: 1 % von oben und der Knopf schrumpft) */
  .tabelle--stapel td.aktion { width: 100%; }
}
/* Tabellen mit vielen Spalten und Knöpfen stapeln schon bis 1023 px */
@media (max-width: 1023px) {
  .tabelle--breit thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .tabelle--breit, .tabelle--breit tbody, .tabelle--breit tr, .tabelle--breit th, .tabelle--breit td { display: block; width: 100%; }
  .tabelle--breit tr { border-top: 1px solid var(--linie); padding: 14px 18px 12px; }
  .tabelle--breit tr:first-child { border-top: 0; }
  .tabelle--breit th, .tabelle--breit td { border: 0; padding: 3px 0; text-align: left; white-space: normal; }
  .tabelle--breit td[data-label]::before { content: attr(data-label) ": "; color: var(--text-2); font-weight: 600; }
  .tabelle--breit tr > :first-child { font-family: var(--titel); font-weight: 700; font-size: 18px; padding-bottom: 6px; }
  .tabelle--breit tr > :first-child::before { content: none; }
  .tabelle--breit .betrag { text-align: left; white-space: normal; }
  .tabelle--breit .knopf { margin-top: 8px; }
  .tabelle--breit td.aktion { width: 100%; }
}

/* ---------- Rechner (js/rechner.js) ---------- */
.rechner-rahmen { margin-top: 32px; background: var(--weiss); border-radius: 22px; box-shadow: 0 0 0 1px rgba(14, 110, 116, .15), 0 24px 48px -28px rgba(14, 110, 116, .45); overflow: hidden; }
#rechner-app { padding: 32px 36px; }
.rechner-laden { color: var(--text-2); margin: 0; }
.fortschritt { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0 0 28px; padding: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.fortschritt::before { content: ""; position: absolute; left: 11px; right: calc(33.33% - 11px); top: 10px; height: 2px; background: var(--linie); }
.fortschritt__punkt { position: relative; padding-top: 30px; }
.fortschritt__punkt::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--weiss); border: 2px solid var(--linie); box-shadow: 0 0 0 4px var(--weiss); }
.fortschritt__punkt--fertig::before { background: var(--petrol); border-color: var(--petrol); }
.fortschritt__punkt--fertig::after { content: ""; position: absolute; left: 7px; top: 6px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.fortschritt__punkt--jetzt { color: var(--petrol-tief); }
.fortschritt__punkt--jetzt::before { border-color: var(--petrol); box-shadow: 0 0 0 4px var(--weiss), inset 0 0 0 4px var(--weiss); background: var(--petrol); }
.rechner-step .step-title { font-size: 24px; margin: 0 0 18px; }
.rechner-step .step-title:focus { outline: none; }
.rechner-step .step-title:focus-visible { outline: 3px solid var(--petrol); }
.rechner-step .kacheln { margin-top: 4px; }
button.kachel { width: 100%; }
.auswahl-gruppe { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.auswahl-gruppe legend { font-family: var(--titel); font-weight: 700; font-size: 18px; margin-bottom: 10px; padding: 0; }
.auswahl { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-top: 8px; border: 1.5px solid var(--linie); border-radius: var(--r); background: var(--weiss); cursor: pointer; }
.auswahl:hover { border-color: var(--petrol); }
.auswahl:has(input:checked) { border-color: var(--koralle); box-shadow: inset 0 0 0 1px var(--koralle); background: #FFFBFA; }
.auswahl input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--koralle); }
.auswahl-text { display: block; font-weight: 600; line-height: 1.35; }
.nebenzeile { display: block; font-weight: 400; font-size: 15px; color: var(--text-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.auswahl-info { font-size: 15px; color: var(--text-2); background: var(--petrol-zart); border-radius: var(--r-klein); padding: 10px 14px; margin: -8px 0 22px; }
.rechner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.rechner-fuss { font-size: 15px; color: var(--text-2); line-height: 1.5; margin: 14px 0 0; }

.ergebnis { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: start; }
.ergebnis__auswahl { position: sticky; top: 24px; margin: 0; background: var(--petrol-zart); border-radius: var(--r); box-shadow: 0 0 0 1px var(--linie); }
.ergebnis__auswahl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--linie); }
.ergebnis__auswahl > div:first-child { border-top: 0; }
.ergebnis__auswahl dt { font-size: 15px; color: var(--text-2); }
.ergebnis__auswahl dd { margin: 0; font-weight: 600; line-height: 1.35; }
.ergebnis__auswahl .text-knopf { font-size: 15px; flex: none; }
.ergebnis__spanne { font-family: var(--titel); font-weight: 800; font-size: 50px; letter-spacing: -.025em; line-height: 1.05; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.ergebnis__unter { font-size: 16px; color: var(--text-2); margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.ergebnis .step-title { font-size: 17px; font-family: var(--text); font-weight: 700; color: var(--text-2); letter-spacing: 0; margin: 0; }
.vergleich { margin: 24px 0 0; display: grid; gap: 14px; }
.vergleich__kopf { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; margin-bottom: 6px; }
.vergleich__kopf b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.vergleich__spur { height: 14px; background: var(--grund); border-radius: 5px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--linie); }
.vergleich__spur i { display: block; height: 100%; border-radius: 5px; background: var(--ocker); }
.vergleich__fuss { font-size: 15px; color: var(--text-2); margin: 2px 0 0; line-height: 1.45; }

/* ---------- Vertrauen, Ratgeber-Liste ---------- */
.quellen { list-style: none; padding: 0; margin: 24px 0 0; }
.quellen li { padding: 14px 0; border-top: 1px solid var(--linie); font-size: 17px; line-height: 1.5; }
.quellen li:last-child { border-bottom: 1px solid var(--linie); }
.quellen b, .quellen strong { display: block; font-family: var(--titel); font-size: 18px; }
.geprueft { margin: 16px 0 0; font-size: 15px; color: var(--text-2); }
.ratgeber-raster { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
.ratgeber-gross { display: block; background: var(--weiss); border-radius: var(--r-gross); box-shadow: 0 0 0 1px var(--linie), 0 18px 36px -30px rgba(14, 110, 116, .5); text-decoration: none; color: inherit; padding: 26px 28px 28px; }
.ratgeber-gross h3 { font-size: 28px; margin: 6px 0 10px; }
.ratgeber-gross p { color: var(--text-2); font-size: 17px; margin: 0 0 14px; }
.ratgeber-gross:hover { box-shadow: 0 0 0 2px var(--petrol); color: inherit; }
.weiter { font-weight: 700; color: var(--petrol-tief); }
.kat { display: block; font-size: 14px; font-weight: 700; color: var(--petrol-tief); letter-spacing: .01em; }
.ratgeber-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.ratgeber-liste a { display: block; height: 100%; padding: 14px 0; border-bottom: 1px solid var(--linie); text-decoration: none; color: var(--tinte); }
.ratgeber-liste h3 { font-size: 19px; margin-top: 2px; }
.ratgeber-liste a:hover h3 { color: var(--petrol-tief); text-decoration: underline; text-underline-offset: .18em; }

/* ---------- Inhalte (Listen, FAQ, Aufklapper) ---------- */
.strich-liste, .verweis-liste { margin: 0 0 1em; padding-left: 20px; }
.strich-liste li, .verweis-liste li { margin: 6px 0; }
.faq-liste { max-width: 52em; margin-top: 24px; }
.faq-item, .aufklapp { border-top: 1px solid var(--linie); }
.faq-item:last-child, .aufklapp:last-child { border-bottom: 1px solid var(--linie); }
.faq-item summary, .aufklapp summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0; cursor: pointer; list-style: none; font-family: var(--titel); font-weight: 700; font-size: 19px; line-height: 1.3; }
.faq-item summary::-webkit-details-marker, .aufklapp summary::-webkit-details-marker { display: none; }
.faq-item summary::after, .aufklapp summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2.5px solid var(--petrol); border-bottom: 2.5px solid var(--petrol); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.faq-item[open] summary::after, .aufklapp[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-answer { padding: 0 0 16px; max-width: 46em; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Ratgeber-Vorlage ---------- */
.artikel { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.artikel__text { max-width: 46em; min-width: 0; }
.artikel__text h2 { font-size: 32px; margin: 48px 0 14px; }
.artikel__text h3 { font-size: 22px; margin: 28px 0 10px; }
.kurzantwort { margin: 24px 0 0; padding: 20px 24px; background: var(--sand); border-radius: var(--r-gross); font-size: 19px; }
.kurzantwort p:last-child { margin-bottom: 0; }
.geprueft-von { font-size: 15px; color: var(--text-2); margin: 12px 0 0; }
.geprueft-von:empty { display: none; }
.inhaltsverzeichnis { position: sticky; top: 24px; font-size: 16px; }
.inhaltsverzeichnis summary { font-family: var(--titel); font-weight: 700; font-size: 18px; cursor: pointer; padding: 10px 0; min-height: 44px; }
.inhaltsverzeichnis ol { margin: 6px 0 0; padding: 0; list-style: none; border-left: 2px solid var(--linie); }
.inhaltsverzeichnis a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; line-height: 1.35; }
.inhaltsverzeichnis a:hover { color: var(--petrol-tief); border-left-color: var(--petrol); }

/* ---------- Startseite: Seitenteile ---------- */
.schmal { max-width: 900px; }
.ratgeber-liste p { font-size: 15px; color: var(--text-2); margin: 4px 0 0; line-height: 1.45; }
.mehr-titel { font-family: var(--titel); font-weight: 700; font-size: 19px; margin: 28px 0 8px; }
.verweis-liste { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.verweis-liste li { margin: 0; }
.verweis-liste a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-klein); background: var(--petrol-zart); box-shadow: inset 0 0 0 1px #CFE5E2; text-decoration: none; font-weight: 600; font-size: 16px; }
.verweis-liste a:hover { background: var(--petrol-hell); }
.produkte { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.produkt { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 20px 22px; border-radius: var(--r-gross); background: var(--grund); box-shadow: inset 0 0 0 1px var(--linie); }
.produkt h3 { font-size: 19px; margin-bottom: 6px; }
.produkt p { font-size: 16px; color: var(--text-2); margin: 0; }
.fussnote { font-size: 15px; color: var(--text-2); margin: 14px 0 0; }
.staedte { margin-top: 24px; max-width: 60em; }
.stadt-behandlung { border-top: 1px solid var(--linie); }
.stadt-behandlung:last-child { border-bottom: 1px solid var(--linie); }
.stadt-behandlung summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0; cursor: pointer; list-style: none; font-family: var(--titel); font-weight: 700; font-size: 20px; }
.stadt-behandlung summary::-webkit-details-marker { display: none; }
.stadt-behandlung summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2.5px solid var(--petrol); border-bottom: 2.5px solid var(--petrol); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.stadt-behandlung[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.stadt-behandlung h3 { font-size: 18px; margin: 0 0 6px; color: var(--text-2); }
.stadt-behandlung > p { font-size: 16px; max-width: 46em; }
.stadt-liste { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 16px; }
.stadt-liste a { display: block; padding: 8px 0; border-bottom: 1px solid var(--linie); text-decoration: none; font-size: 16px; }
.stadt-liste a:hover { text-decoration: underline; }
.alle-staedte { font-weight: 600; margin: 0 0 18px; }

/* ---------- Top-Tarife und Textseiten ---------- */
.bedarf--zwei { grid-template-columns: repeat(2, 1fr); }
.karte__fuer { margin: 0; }
.karte__quelle { font-size: 14px; color: var(--text-2); margin: 0; }
.plakette { margin: 0; }
.tabelle td.leer { color: var(--text-2); }
.text-teil > h2 { margin: 0 0 16px; }
.text-teil > h2:not(:first-child) { margin-top: 48px; }
.text-teil > h3 { font-size: 22px; margin: 32px 0 10px; scroll-margin-top: 24px; }
.text-teil > ul, .text-teil > ol { padding-left: 22px; margin: 0 0 1em; }
.text-teil > ul li, .text-teil > ol li { margin: 8px 0; }
.partnerkasten--intern { background: var(--petrol-zart); box-shadow: inset 0 0 0 1px #CFE5E2; }
.quellenhinweis { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--linie); font-size: 15px; color: var(--text-2); }

/* ---------- Ratgeber-Bausteine ---------- */
.ratgeber-kopf { max-width: 46em; padding: 40px 0 8px; }
.ratgeber-kopf h1 { font-size: 44px; }
.ratgeber-kopf .partnerkasten { margin-bottom: 8px; }
.kurzantwort strong:first-child { display: block; font-family: var(--titel); font-size: 18px; margin-bottom: 4px; color: var(--petrol-tief); }
.infokasten { margin: 24px 0; padding: 18px 22px; background: var(--petrol-zart); border-radius: var(--r); box-shadow: inset 0 0 0 1px #CFE5E2; font-size: 17px; }
.infokasten p:last-child, .infokasten ul:last-child { margin-bottom: 0; }
.infokasten ul { padding-left: 20px; margin: 8px 0 0; }
.infokasten li { margin: 6px 0; }
.infokasten--tipp { background: var(--sand); box-shadow: inset 0 0 0 1px #E6DBCB; }
.rechenweg { margin: 24px 0; padding: 22px 24px; background: var(--weiss); border-radius: var(--r-gross); box-shadow: 0 0 0 1px var(--linie); font-variant-numeric: tabular-nums; }
.rechenweg p { margin: 0 0 8px; }
.rechenweg p:last-child { margin: 0; }
.rechenweg hr { border: 0; border-top: 1px solid var(--linie); margin: 14px 0; }
.rechner-einstieg { margin: 20px 0 8px; }
.partnerkasten__zusatz { font-size: 16px; }
.artikel { padding-bottom: 64px; }
.artikel__text > section, .artikel__text > div > section { scroll-margin-top: 24px; }
.artikel__text ul { padding-left: 22px; }
.artikel__text li { margin: 6px 0; }
.artikel__text .tabelle-rahmen { margin: 20px 0; }
/* Artikelspalte ist schmaler: Tabellen dichter setzen, damit sechs Spalten ohne Abschneiden passen */
.artikel__text .tabelle { font-size: 15px; }
.artikel__text .tabelle th, .artikel__text .tabelle td { padding: 12px 12px; }
@media (min-width: 800px) { .artikel__text .tabelle th:first-child, .artikel__text .tabelle td:first-child { padding-left: 18px; } }
.artikel__text .tabelle tbody th { font-size: 15px; }
.inhaltsverzeichnis { margin-top: 48px; }

/* ---------- Teilen (share.js) ---------- */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; }
.share-bar-label { font-size: 15px; color: var(--text-2); margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--linie); border-radius: var(--r-klein); background: var(--weiss); color: var(--tinte); cursor: pointer; }
.share-btn:hover { border-color: var(--petrol); }
.share-btn svg { width: 20px; height: 20px; }
.share-btn.copied { border-color: var(--petrol); background: var(--petrol-zart); }

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); color: #D3DCDF; padding: 56px 0 40px; font-size: 16px; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; color: #fff; }
.fuss__spalten { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.fuss h2, .fuss h3 { font-family: var(--titel); font-size: 17px; color: #fff; margin: 0 0 12px; letter-spacing: 0; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li a { display: inline-block; padding: 5px 0; }
.fuss__weitere { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.fuss__weitere p { margin: 0; color: #fff; font-weight: 600; }
.fuss__unten { margin-top: 24px; font-size: 15px; color: #B9C5C9; }
.fuss__unten p { margin: 6px 0 0; max-width: 60em; }

/* ---------- Fester Knopf am Handy (sticky-cta.js) ---------- */
.sticky-cta { display: none; }
@media (max-width: 639px) {
  .sticky-cta.visible { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--weiss); border-top: 1px solid var(--linie); box-shadow: 0 -8px 24px -16px rgba(29, 43, 51, .35); padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .sticky-cta .knopf { width: 100%; }
  body.has-sticky-cta { padding-bottom: 76px; }
}

/* ---------- Cookie-Hinweis (consent.js setzt Inline-Stile, daher !important; beide Knöpfe gleich gewichtet) ---------- */
#cookie-banner { background: var(--weiss) !important; color: var(--tinte) !important; border-top: 3px solid var(--petrol) !important; box-shadow: 0 -10px 30px -20px rgba(29, 43, 51, .5) !important; padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px)) !important; font-family: var(--text) !important; }
#cookie-banner p { font-size: 15px !important; line-height: 1.5; }
#cookie-banner > div > div { flex-wrap: wrap !important; flex-shrink: 1 !important; }
#cookie-banner a { color: var(--petrol-tief) !important; }
#cookie-banner button { min-height: 48px !important; padding: 10px 18px !important; border: 2px solid var(--petrol) !important; border-radius: var(--r) !important; background: var(--weiss) !important; color: var(--petrol-tief) !important; font: 600 15px/1.2 var(--text) !important; }
#cookie-banner button:hover { background: var(--petrol-zart) !important; }

/* ---------- Breiten ---------- */
@media (max-width: 1023px) {
  .nav { display: none; }
  .menue-knopf { display: inline-flex; }
  .artikel { grid-template-columns: 1fr; gap: 0; }
  .artikel .inhaltsverzeichnis { position: static; order: -1; margin: 0 0 8px; padding: 4px 16px 8px; background: var(--weiss); border-radius: var(--r); box-shadow: 0 0 0 1px var(--linie); }
}
@media (min-width: 1024px) {
  .nav-overlay { display: none !important; }
}
/* Zwischen Tablet und breitem Desktop: schmaleres Inhaltsverzeichnis, damit Tabellen in der Artikelspalte Platz haben */
@media (min-width: 1024px) and (max-width: 1279px) {
  .artikel { grid-template-columns: minmax(0, 1fr) 210px; gap: 28px; }
  .artikel__text .tabelle th, .artikel__text .tabelle td { padding: 12px 9px; }
}
@media (max-width: 900px) {
  :root { --rand: 18px; --kopf-hoehe: 64px; }
  body { font-size: 17px; }
  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  .marke { font-size: 20px; }
  .teil { padding: 48px 0; }
  .held { padding: 32px 0 44px; }
  .held .wrap, .zwei-spalten, .fazit, .ratgeber-raster, .ergebnis { grid-template-columns: 1fr; }
  .held .wrap { gap: 28px; }
  .zwei-spalten { gap: 28px; }
  .ergebnis { gap: 24px; }
  .ergebnis__auswahl { position: static; }
  .lead { font-size: 18px; margin: 14px 0 22px; }
  .kacheln { grid-template-columns: 1fr; }
  .kachel { padding: 14px 16px; }
  .bonus-zeile { grid-template-columns: 1fr; gap: 6px; }
  .bonus .achse { margin-left: 0; }
  .bedarf, .bedarf--zwei { grid-template-columns: 1fr; }
  .seitenkopf { padding: 28px 0; }
  .seitenkopf h1 { font-size: 32px; }
  #rechner-app { padding: 22px 18px; }
  .ergebnis__spanne { font-size: 38px; }
  .knopf { width: 100%; font-size: 18px; }
  .knopf-zeile .knopf-unter { width: 100%; text-align: center; }
  .fuss__spalten { grid-template-columns: 1fr; gap: 28px; }
  .produkte { grid-template-columns: 1fr; }
  .ratgeber-liste { grid-template-columns: 1fr; }
  .artikel__text h2 { font-size: 27px; }
  .ratgeber-kopf { padding-top: 24px; }
  .ratgeber-kopf h1 { font-size: 32px; }
  .infokasten, .rechenweg { padding: 16px 18px; }
}
@media (max-width: 399px) {
  h1 { font-size: 32px; }
  .marke { font-size: 18px; }
  .beispiel { padding: 20px 18px; }
  .beispiel__betrag { font-size: 34px; }
  .ergebnis__spanne { font-size: 33px; }
  .partnerkasten, .fazit__ja, .fazit__nein { padding: 20px 18px; }
}

/* ---------- Bewegung (js/bewegung.js setzt .wartet, dann .ist-sichtbar bzw. .ist-gewachsen) ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-einblenden].wartet { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
  [data-einblenden].wartet.ist-sichtbar { opacity: 1; transform: none; }
  [data-wachsen].wartet > * { transform-origin: left; transition: transform .7s ease; }
  [data-wachsen].wartet:not(.ist-gewachsen) > * { transform: scaleX(0); }
}

/* ---------- Bewegung: bei „weniger Bewegung“ alles aus ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Druck ---------- */
@media print {
  .kopf, .nav-overlay, .sticky-cta, .share-bar, #cookie-banner, .fuss { display: none !important; }
  [data-einblenden].wartet { opacity: 1 !important; transform: none !important; }
  [data-wachsen].wartet > * { transform: none !important; }
  body { background: #fff; }
}
