/* Stundenstrom: eigenes, ruhiges Aussehen. Nur Systemschriften, keine fremden Dateien. */
:root {
  --tinte: #14262b;
  --petrol: #12343b;
  --petrol-dunkel: #0b2429;
  --petrol-hell: #e3eeee;
  --bernstein: #f2b134;
  --bernstein-dunkel: #8a5a00;
  --papier: #f6f4ee;
  --weiss: #ffffff;
  --linie: #d6d9d3;
  --feldrand: #6f7a7c;
  --grau: #44525a;
  --gut: #17663f;
  --gut-hell: #e3f2e9;
  --schlecht: #a33a26;
  --schlecht-hell: #f9e8e3;
  --neutral: #35505c;
  --neutral-hell: #eaf0f2;
  --rund: 14px;
  --schatten: 0 1px 2px rgba(20, 38, 43, .06), 0 3px 10px rgba(20, 38, 43, .06);
  --schatten-gross: 0 2px 4px rgba(20, 38, 43, .06), 0 10px 28px rgba(20, 38, 43, .10);
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--schrift); color: var(--tinte); background: var(--papier); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bernstein-dunkel); }
h1, h2, h3 { line-height: 1.2; margin: 1.6em 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); margin-top: .5em; letter-spacing: -.015em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.breit { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 16px; top: 8px; background: var(--weiss); padding: 6px 10px; z-index: 30; }
.nur-lesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.klein, .hilfe { font-size: .9375rem; color: var(--grau); line-height: 1.5; }
.hilfe { margin: 6px 0 12px; }
.lead { font-size: 1.15rem; max-width: 40rem; }

/* Fokus gut sichtbar: dunkel auf hellem Grund, Bernstein im dunklen Kopf */
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }
.kopf :focus-visible, .ergebnis-leiste :focus-visible { outline-color: var(--bernstein); }

/* Kopf: nicht fest, damit Sprungziele bündig oben landen */
.kopf { background: var(--petrol); color: var(--weiss); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--weiss); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -.01em; }
.logo:hover { color: var(--bernstein); }
.logo svg { width: 32px; height: 32px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { color: #dbe8e8; text-decoration: none; padding: 9px 14px; border-radius: 8px; font-size: 1rem; font-weight: 550; white-space: nowrap; }
.nav a:hover { color: var(--weiss); background: rgba(255, 255, 255, .1); }
.nav a[aria-current] { color: var(--tinte); background: var(--bernstein); }
.vorschau { background: var(--bernstein); color: var(--tinte); text-align: center; font-size: .8rem; line-height: 1.3; padding: 3px 16px; }

main { padding-bottom: 48px; }
main:focus { outline: none; }
.einstieg { padding-top: 14px; }
.einstieg .lead { margin-bottom: 0; }
.text { max-width: 42rem; }
.text li { margin-bottom: .4em; }
.brotkrume { margin: 20px 0 0; font-size: .9375rem; }

/* ---------- Rechner ---------- */
.rechner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 22px 0 8px; }
.block { border: 1px solid var(--linie); background: var(--weiss); border-radius: var(--rund); padding: 18px 18px 8px; margin: 0; min-width: 0; box-shadow: var(--schatten); }
.block > legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-weight: 750; font-size: 1.2rem; line-height: 1.3; }
.block > legend + * { clear: both; }
.frage { font-weight: 650; margin: 16px 0 8px; }

/* Schnellwahl: Haushaltsgröße als Kacheln */
.haushalte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kachel { position: relative; display: grid; gap: 0; padding: 12px 14px; border: 2px solid var(--linie); border-radius: 12px; background: var(--weiss); cursor: pointer; min-height: 70px; align-content: center; }
.kachel input, .schalter input { position: absolute; inset: 0; z-index: 1; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.kachel::after { content: ""; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--feldrand); background: var(--weiss); }
.kachel:has(input:checked) { border-color: var(--petrol); background: var(--petrol-hell); }
.kachel:has(input:checked)::after { border-color: var(--petrol); background: var(--petrol); box-shadow: inset 0 0 0 4px var(--weiss); }
.kachel:has(input:focus-visible), .schalter:has(input:focus-visible) { outline: 3px solid var(--petrol); outline-offset: 2px; }
.kachel:hover, .schalter:hover { border-color: var(--feldrand); }
.k-titel { font-weight: 700; font-size: 1.08rem; padding-right: 26px; overflow-wrap: anywhere; }
.k-wert { color: var(--grau); font-size: .95rem; }

/* Zusätze als Schalter */
.schalter-reihe { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.schalter { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px 8px 12px; border: 2px solid var(--linie); border-radius: 999px; background: var(--weiss); cursor: pointer; font-weight: 650; }
.schalter span::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px; border: 2px solid var(--feldrand); border-radius: 6px; background: var(--weiss) center / 14px no-repeat; }
.schalter:has(input:checked) { border-color: var(--gut); background: var(--gut-hell); }
.schalter:has(input:checked) span::before { border-color: var(--gut); background-color: var(--gut); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E"); }
.schnell.aus .haushalte, .schnell.aus .schalter-reihe, .schnell.aus .frage { opacity: .45; }
.csv-hinweis { font-weight: 600; }
.knopf-text { font: inherit; color: var(--petrol); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* Eingabefelder mit Einheit im Feld */
.feld { margin: 0 0 14px; }
.feld > label { display: block; font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
.hilfe-inline { font-weight: 400; color: var(--grau); }
.eingabe { display: inline-flex; align-items: center; max-width: 100%; min-height: 48px; border: 1.5px solid var(--feldrand); border-radius: 10px; background: var(--weiss); }
.eingabe input { font: inherit; font-size: 1.06rem; border: 0; background: transparent; color: var(--tinte); width: 7.2em; min-width: 0; padding: 10px 4px 10px 12px; }
.eingabe input:focus { outline: none; }
.eingabe:focus-within { outline: 3px solid var(--petrol); outline-offset: 2px; }
.einheit { padding: 0 12px 0 4px; color: var(--grau); white-space: nowrap; }
.eingabe:has(input[aria-invalid="true"]) { border-color: var(--schlecht); background: var(--schlecht-hell); }
.eingabe:has(input:disabled) { opacity: .5; }
.feld-fehler { display: block; color: var(--schlecht); font-weight: 600; font-size: .9375rem; margin-top: 4px; }
.feld-fehler:empty { display: none; }
select { font: inherit; padding: 10px 12px; border: 1.5px solid var(--feldrand); border-radius: 10px; background: var(--weiss); color: var(--tinte); min-height: 48px; max-width: 100%; min-width: 14em; }
input[type=file] { font: inherit; max-width: 100%; }
.haken { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; }
.haken input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--petrol); }
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 20px; }
.unterblock { border-left: 3px solid var(--bernstein); padding: 2px 0 2px 16px; margin: 6px 0 14px; }
.unter-titel { font-weight: 700; margin: 0 0 10px; }
.annahme { display: inline-block; font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; background: #fff1d2; color: var(--bernstein-dunkel); border-radius: 4px; padding: 1px 6px; vertical-align: middle; }
.info { background: var(--petrol-hell); border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.info:empty { display: none; }
.warnung { background: var(--schlecht-hell); border-radius: 10px; padding: 10px 14px; }

/* Weitere Einstellungen: aufklappbare Zeilen */
.fach { padding: 6px 18px 4px; }
.fach-titel { font-weight: 750; font-size: 1.1rem; margin: 10px 0 2px; }
.fach details { border-top: 1px solid var(--linie); }
.fach details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; display: inline-block; width: 9px; height: 9px; margin: 0 12px 2px 2px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
details[open] > summary::before { transform: rotate(45deg); }
.fach summary { padding: 13px 0; min-height: 48px; }
.fach details[open] { padding-bottom: 10px; }

/* Ergebniskarte */
.ergebnis-karte { background: var(--weiss); border: 2px solid var(--neutral); border-radius: 18px; padding: 18px 20px 6px; box-shadow: var(--schatten-gross); }
.ergebnis-karte.gut { border-color: var(--gut); }
.ergebnis-karte.schlecht { border-color: var(--schlecht); }
.ek-titel { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--grau); margin: 0 0 8px; }
.ek-urteil { font-size: 1.2rem; font-weight: 700; margin: 0; }
.ek-betrag { font-size: clamp(1.9rem, 6.5vw, 2.45rem); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; margin: 4px 0 12px; color: var(--neutral); text-wrap: balance; }
.ek-betrag:empty { display: none; }
.gut .ek-betrag { color: var(--gut); }
.schlecht .ek-betrag { color: var(--schlecht); }
.ek-text { font-size: 1rem; }
.ek-zweit { font-weight: 600; background: var(--papier); border-radius: 10px; padding: 10px 12px; }
.ek-voraus { font-size: .9375rem; color: var(--grau); line-height: 1.5; }
.ek-neben { font-size: .9375rem; border-top: 1px solid var(--linie); padding-top: 10px; }
.zeile.beispiel { background: var(--petrol-hell); box-shadow: none; border-style: dashed; }
.stand-zeile { font-size: .9375rem; color: var(--grau); margin: -.2em 0 1.2em; }
/* Unternavigation der Preis- und Datenseiten */
.unternav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 14px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--linie); }
.unternav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 12px; border-radius: 999px; min-height: 36px; display: inline-flex; align-items: center; color: var(--petrol); }
.unternav a:hover { background: var(--petrol-hell); }
.unternav a[aria-current] { background: var(--petrol); color: var(--weiss); }
.ek-weiter { font-weight: 600; }
.ek-weiter { margin-bottom: 6px; }
.ek-ohne { font-size: .9375rem; color: var(--grau); border-top: 1px solid var(--linie); padding-top: 10px; }
.ergebnis-karte.veraltet .ek-urteil { color: var(--schlecht); }
.veraltet .liste, .veraltet .diagramm, .veraltet .tabelle, #ergebnis-inhalt.veraltet { opacity: .45; }
@media (prefers-reduced-motion: no-preference) {
  .ergebnis-karte.neu, .ergebnis-leiste.neu { animation: aufleuchten .7s ease-out; }
  @keyframes aufleuchten { from { box-shadow: 0 0 0 6px rgba(242, 177, 52, .55); } to { box-shadow: var(--schatten-gross); } }
}

/* Schmale Ergebnisleiste unten am Handy */
.ergebnis-leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--petrol); box-shadow: 0 -2px 12px rgba(0, 0, 0, .18); padding: 6px 16px calc(6px + env(safe-area-inset-bottom)); }
.ergebnis-leiste a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; color: var(--weiss); text-decoration: none; font-weight: 700; }
.el-pfeil { color: var(--bernstein); font-weight: 600; font-size: .95rem; white-space: nowrap; }

@media (min-width: 900px) {
  .rechner { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); column-gap: 28px; align-items: start; }
  .rechner > .block { grid-column: 1; }
  .ergebnis-karte { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 16px; }
  .haushalte { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ergebnis-leiste { display: none; }
}

/* Ausführliches Ergebnis */
.ergebnis { margin-top: 30px; }
.ergebnis > h2 { margin-top: 0; }
.ergebnis h3 { margin-top: 1.5em; }
.laden { color: var(--grau); }
.pflicht { font-size: .9375rem; background: #efede5; border-left: 3px solid var(--grau); padding: 10px 14px; border-radius: 0 8px 8px 0; max-width: 60rem; }
.liste { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.zeile { display: grid; grid-template-columns: 2em minmax(0, 2.1fr) minmax(0, 1.3fr) minmax(0, 1.2fr) 13.5em; gap: 6px 16px; align-items: center; background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 16px; box-shadow: var(--schatten); }
.zeile.fest { background: #efede5; box-shadow: none; }
.zeile .klein { display: block; }
.rang { font-weight: 700; color: var(--grau); }
.betrag strong { font-size: 1.18rem; }
.diff { font-weight: 700; }
.diff.gut, td.gut { color: var(--gut); }
.diff.schlecht, td.schlecht { color: var(--schlecht); }
.diff.neutral { color: var(--neutral); }
.los { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border-radius: 10px; background: var(--petrol); color: var(--weiss); font-weight: 700; text-decoration: none; }
.knopf:hover { background: var(--petrol-dunkel); color: var(--weiss); }
.anzeige { display: inline-block; background: var(--bernstein); color: var(--tinte); font-weight: 800; font-size: 1em; padding: 2px 8px; border-radius: 4px; letter-spacing: .02em; }
.extern::after { content: "\00a0↗"; }
.nicht { margin: 10px 0 16px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 16px; }
.nicht summary { font-weight: 600; }

/* Diagramme */
.diagramm { margin: 8px 0 12px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 11px; }
.diagramm svg { display: block; width: 100%; height: auto; }
.gitter { stroke: #e4e6e0; stroke-width: 1; }
.achse { font-size: 11px; fill: var(--grau); font-family: var(--schrift); }
.dg-achse { font-size: 12.5px; fill: var(--grau); font-family: var(--schrift); }
.balken { fill: #3f8f73; }
.balken.teurer { fill: url(#schraffur); }
.schraffur-grund { fill: #c4664d; }
.schraffur-linie { stroke: #fff; stroke-width: 2.6; stroke-opacity: .55; }
.balken.negativ { fill: #3f8f73; }
.balken.heute { fill: var(--petrol); }
.fest { stroke: var(--tinte); stroke-width: 3; }
.nulllinie { stroke: var(--tinte); stroke-width: 1; }
.markierung { fill: var(--bernstein); }
.legende { font-size: .9rem; color: var(--grau); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-top: 8px; }
.legende span { display: inline-block; width: 16px; height: 12px; vertical-align: middle; margin-right: -8px; border-radius: 2px; }
.l-balken { background: #3f8f73; }
.l-balken.teurer { background: repeating-linear-gradient(45deg, #c4664d 0 4px, #e2a594 4px 6px); }
.l-fest { background: var(--tinte); height: 3px !important; }
.l-guenstig { background: var(--bernstein); }
.l-heute { background: var(--petrol); }
.werte { margin-top: 8px; }
.werte summary { font-size: .95rem; padding: 4px 0; }
.zwei-kasten { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.kasten { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 16px; display: grid; gap: 2px; box-shadow: var(--schatten); }
.kasten strong { font-size: 1.2rem; }

/* Tabellen */
.tabelle-huelle { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--weiss); font-size: .95rem; margin: 6px 0 12px; }
.tabelle th, .tabelle td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle thead th { background: #efede5; font-weight: 650; }
.tabelle tbody th { font-weight: 400; }
.tabelle td:last-child, .tabelle th:last-child { text-align: right; }
.rechenweg td:last-child { white-space: nowrap; }
.tabelle.links td:last-child, .tabelle.links th:last-child { text-align: left; }
.rechenweg tr.summe th, .rechenweg tr.summe td { font-weight: 800; border-top: 2px solid var(--tinte); }
.zahl { text-align: right; white-space: nowrap; }

/* Kacheln mit Links */
.kacheln { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.kacheln a { display: grid; gap: 4px; align-content: start; height: 100%; padding: 16px; border: 1px solid var(--linie); border-radius: 12px; background: var(--weiss); text-decoration: none; color: var(--tinte); box-shadow: var(--schatten); }
.kacheln a:hover { border-color: var(--petrol); }
.kacheln span { font-size: .95rem; color: var(--grau); }

/* Tarifübersicht */
.quellen { font-size: .9375rem; }
.quellen li { margin-bottom: .3em; }
.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 2px solid var(--linie); border-radius: 999px; background: var(--weiss); cursor: pointer; font-weight: 600; }
.chip input { width: 18px; height: 18px; accent-color: var(--petrol); margin: 0; }
.chip:has(input:checked) { border-color: var(--petrol); background: var(--petrol-hell); }
.suche { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.suche input { font: inherit; padding: 9px 12px; min-height: 44px; border: 1.5px solid var(--feldrand); border-radius: 10px; width: 12em; max-width: 100%; }
.status { display: inline-block; font-size: .85rem; font-weight: 650; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.status.ja { background: var(--gut-hell); color: var(--gut); }
.status.nein { background: #efede5; color: var(--grau); }
.marke-nein { color: var(--grau); }
.stunden { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; list-style: none; padding: 0; }
.stunden li { background: var(--weiss); border: 1px solid var(--linie); border-left: 4px solid var(--bernstein); border-radius: 6px; padding: 8px 10px; }
.werbung { margin: 20px 0; }

/* Begriffe */
.begriffe dt { font-weight: 750; font-size: 1.1rem; margin-top: 1.3em; scroll-margin-top: 0; }
.begriffe dd { margin: 4px 0 0; }
.abc { display: flex; flex-wrap: wrap; gap: 6px 12px; }

/* Fuß */
.fuss { background: #eae7de; border-top: 1px solid var(--linie); margin-top: 30px; }
.fuss-innen { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: 24px 40px; padding-top: 28px; padding-bottom: 30px; font-size: .95rem; }
.fuss-marke p { max-width: 30rem; }
.fuss-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px 24px; }
.fuss-titel { font-weight: 750; margin: 0 0 6px; }
.fuss-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.fuss-nav a { display: inline-block; padding: 3px 0; }

@media (max-width: 720px) {
  .zeile { grid-template-columns: 1.6em minmax(0, 1fr) auto; padding: 12px 14px; }
  .zeile .name { grid-column: 2 / 4; }
  .zeile .betrag { grid-column: 2 / 3; }
  .zeile .diff { grid-column: 3 / 4; text-align: right; }
  .zeile .los { grid-column: 2 / 4; }
  .zeile .los:empty { display: none; }
  .fuss-innen { grid-template-columns: 1fr; }
  .achse { font-size: 19px; }
  .diagramm { padding: 8px; }
  /* Tarifliste am Handy als Karten */
  .steckbrief, .steckbrief tbody, .steckbrief tr, .steckbrief th, .steckbrief td { display: block; width: 100%; }
  .steckbrief th { border-bottom: 0; padding-bottom: 0; font-weight: 650 !important; }
  .steckbrief td { padding-top: 2px; }
  .tarif-tabelle thead { display: none; }
  .tarif-tabelle, .tarif-tabelle tbody, .tarif-tabelle tr, .tarif-tabelle td, .tarif-tabelle tbody th { display: block; width: 100%; }
  .tarif-tabelle { background: none; }
  .tarif-tabelle tr { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--schatten); }
  .tarif-tabelle tr[hidden] { display: none; }
  .tarif-tabelle td { border: 0; padding: 3px 0; text-align: left !important; white-space: normal; }
  .tarif-tabelle td[data-label]::before { content: attr(data-label) ": "; color: var(--grau); }
  .tarif-tabelle tbody th { font-size: 1.1rem; padding: 0 0 6px; border: 0; }
}
@media (max-width: 640px) {
  .kopf-innen { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .logo { font-size: 1.1rem; }
  .logo svg { width: 28px; height: 28px; }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav a { flex: 1 1 0; text-align: center; padding: 8px 2px; font-size: .97rem; }
  h1 { font-size: 1.7rem; }
  .lead { font-size: 1.08rem; }
  .block { padding: 16px 14px 6px; }
  .rechner { margin-top: 16px; }
  .kachel { min-height: 62px; padding: 9px 12px; }
  .kachel::after { top: 10px; right: 10px; }
  .frage { margin: 12px 0 6px; }
  /* Runde 2 (N1 Nr. 1): Kästchen innen links wie am PC, nichts ragt über den Rand */
  .schalter-reihe { display: flex; flex-wrap: nowrap; gap: 6px; }
  .schalter { flex: 1 1 auto; justify-content: center; padding: 8px 5px 8px 6px; font-size: .9rem; border-radius: 12px; gap: 0; min-width: 0; }
  .schalter span { display: inline-flex; align-items: center; white-space: nowrap; }
  .schalter span::before { flex: none; width: 17px; height: 17px; margin-right: 5px; border-radius: 5px; background-size: 11px; vertical-align: 0; }
  .fach { padding: 4px 14px 2px; }
  .ergebnis-karte { padding: 16px 16px 4px; }
}
@media print {
  .kopf, .fuss, .rechner .block, .vorschau, .ergebnis-leiste, .mitlauf, .ek-regler, .ek-teilen, .ek-weiter, .weiter, .unternav, .partner-fenster, noscript { display: none !important; }
  /* Runde 3 (O4 Nr. 9): Karte in voller Breite, mit Haushalt und Verbrauch (Zeile „ek-annahmen“) */
  .rechner { display: block; margin: 0; }
  .ergebnis-karte { position: static; box-shadow: none; break-inside: avoid; }
  .ek-annahmen .nowrap, .ek-wie { display: none; }
  .zeile, .kasten, .diagramm { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}
.bsp-tarif { display: block; font-weight: 400; white-space: normal; color: var(--grau); }
.hinweis-jahr { font-size: .9375rem; background: #fff1d2; border-left: 3px solid var(--bernstein-dunkel); padding: 8px 12px; border-radius: 0 8px 8px 0; max-width: 46rem; }

/* ---------- Runde 3 (R1): Ergebniskarte kurz, Regler, Teilen, Mitlauf, Knöpfe je Tarif, Hinweisfenster ---------- */
.ek-genau { font-size: .9375rem; color: var(--grau); margin: -8px 0 10px; }
.ek-annahmen { font-size: .9375rem; color: var(--grau); margin: 0 0 12px; line-height: 1.45; }
.ek-annahmen a { font-weight: 600; white-space: nowrap; }
.ek-regler { margin: 0 0 12px; padding: 10px 12px 6px; background: var(--papier); border-radius: 10px; }
.ek-regler label { display: block; font-weight: 650; font-size: .95rem; line-height: 1.35; }
.ek-regler label .klein { font-weight: 400; display: inline; }
.regler-zeile { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.regler-zeile input[type=range] { flex: 1; min-width: 0; height: 32px; margin: 0; accent-color: var(--petrol); cursor: pointer; }
.regler-zeile output { font-weight: 800; font-size: 1.05rem; min-width: 3.4em; text-align: right; }
.ek-zweit.gut { background: var(--gut-hell); color: var(--tinte); border-left: 4px solid var(--gut); }
.ek-zweit { font-size: .97rem; }
.ek-geraet { font-size: .9375rem; font-weight: 600; background: var(--papier); border-radius: 10px; padding: 8px 12px; }
.ek-warn { font-size: .9375rem; background: #fff1d2; border-left: 3px solid var(--bernstein-dunkel); padding: 8px 12px; border-radius: 0 8px 8px 0; }
.ek-wie { border-top: 1px solid var(--linie); margin: 0 0 8px; }
.ek-wie > summary { padding: 10px 0; min-height: 44px; font-size: .97rem; }
.ek-wie p { font-size: .9375rem; color: var(--grau); line-height: 1.5; }
.ek-teilen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.knopf-hell { background: var(--weiss); color: var(--petrol); border: 1.5px solid var(--petrol); font: inherit; font-weight: 650; font-size: .9rem; cursor: pointer; padding: 6px 9px; }
.knopf-hell:hover { background: var(--petrol-hell); color: var(--petrol-dunkel); }
.ek-teilen-status { font-size: .9375rem; font-weight: 650; color: var(--gut); }
.ek-teilen-status:empty { display: none; }
.mitlauf { font-size: .95rem; font-weight: 700; color: var(--petrol-dunkel); background: var(--petrol-hell); border-radius: 8px; padding: 6px 10px; margin: -6px 0 12px; }
.hilfe-mehr { margin: -4px 0 12px; }
.hilfe-mehr > summary { font-size: .9375rem; font-weight: 600; color: var(--petrol); padding: 6px 0; }
.zeile.gewaehlt { border: 2px solid var(--petrol); }
/* Knopf zum Anbieter: Pfeil bleibt beim Text, auch wenn er umbricht */
.knopf.extern { display: inline-block; padding: 11px 16px; text-align: center; line-height: 1.3; }
.nowrap { white-space: nowrap; }
.nicht-liste { list-style: none; padding: 0; margin: 8px 0; }
.nicht-liste li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--linie); }
.nicht-liste li > div:first-child { min-width: 0; flex: 1 1 14rem; }
.nicht-liste a:not(.knopf) { font-weight: 650; }
.nicht-liste .klein { display: block; }
.tarif-tabelle .los { justify-content: flex-start; }
.tarif-tabelle td.knopf-zelle { text-align: left; white-space: normal; min-width: 12.5em; }
.anbieter-oben { display: grid; gap: 10px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; box-shadow: var(--schatten); }
.anbieter-oben p { margin: 0; }
.anbieter-oben .los { gap: 10px; }
.knopf-zweit { background: var(--weiss); color: var(--petrol); border: 1.5px solid var(--petrol); }
.knopf-zweit:hover { background: var(--petrol-hell); color: var(--petrol-dunkel); }
.einnahme { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 14px 16px 6px; margin: 18px 0; max-width: 42rem; }
.einnahme-satz { margin-bottom: 10px; }
.partner-fenster { max-width: min(30rem, calc(100vw - 32px)); border: 0; border-radius: 16px; padding: 20px 20px 10px; box-shadow: var(--schatten-gross); color: var(--tinte); }
.partner-fenster::backdrop { background: rgba(11, 36, 41, .55); }
.pf-titel { font-weight: 750; font-size: 1.2rem; margin-bottom: 8px; }
.pf-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-knoepfe .knopf { width: 100%; text-align: center; background: var(--weiss); color: var(--petrol); border: 1.5px solid var(--petrol); }
.pf-knoepfe .knopf:hover { background: var(--petrol-hell); color: var(--petrol-dunkel); }
.pf-fuss { font-size: .9375rem; color: var(--grau); }
@media (max-width: 420px) { .pf-knoepfe { grid-template-columns: 1fr; } }
/* Am PC wandert die Karte mit; ist sie höher als das Fenster, lässt sie sich in sich scrollen */
@media (min-width: 900px) { .ergebnis-karte { max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; } }
