/* Energie-Check – Gestaltung wie philmatheussek.com (Papier, Newsreader, Instrument Sans, Akzent #A0512E). Nur lokale Schriften. */

@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
    --paper: #F6F3ED;
    --paper-2: #EFEBE2;
    --card: #FBF9F5;
    --ink: #211D18;
    --ink-soft: #5D564B;
    --ink-faint: #6F675A;
    --line: rgba(33, 29, 24, 0.16);
    --accent: #A0512E;
    --accent-deep: #7E3D20;
    --gut: #3F6B4A;
    --knapp: #8A6416;
    --schlecht: #9A3B2B;
    --fehler: #A12B1F;
    --w: #3F6B4A;
    --k: #4B5A6B;
    --a: #A0512E;
    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans: 'Instrument Sans', -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
::selection { background: var(--accent); color: var(--paper); }
img, canvas { max-width: 100%; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.nur-lesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { max-width: 52rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) 0; }
.back { font-size: 0.85rem; color: var(--ink-faint); text-decoration-color: var(--line); }

/* Kopf */
.masthead { margin-top: 2rem; }
.masthead h1 { font-family: var(--serif); font-size: clamp(2.3rem, 7vw, 3.3rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; }
.masthead .lede { font-family: var(--serif); font-size: clamp(1.1rem, 3vw, 1.3rem); color: var(--ink-soft); line-height: 1.5; max-width: 38rem; margin-top: 1rem; text-wrap: pretty; }
.einstieg { margin-top: 2rem; display: grid; gap: 1rem; }
.einstieg p { color: var(--ink-soft); max-width: 40rem; }
.privat { border-left: 3px solid var(--accent); background: var(--card); padding: 0.8rem 1rem; border-radius: 0 6px 6px 0; color: var(--ink) !important; }
.so-geht { list-style: none; counter-reset: s; display: grid; gap: 0.5rem; color: var(--ink-soft); }
.so-geht li { counter-increment: s; padding-left: 2.2rem; position: relative; }
.so-geht li::before { content: counter(s); position: absolute; left: 0; top: 0.1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--accent); color: var(--paper); font-size: 0.8rem; font-weight: 600; display: grid; place-items: center; }

.meldung-box { margin-top: 1.5rem; padding: 0.8rem 1rem; border-radius: 6px; border: 1px solid var(--line); background: var(--card); }
.meldung-box.fehler, #fehlerbox { border-color: var(--fehler); color: var(--fehler); background: #FBEDEA; }

/* Werkzeugleiste (zugeklappt, kompakt) */
.werkzeuge { margin-top: 1.75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.werkzeuge > summary { cursor: pointer; padding: 0.7rem 1rem; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); min-height: 2.75rem; }
.werkzeuge .werkzeuge-inhalt { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; padding: 0 1rem 0.75rem; }
.werkzeuge .merken-wahl { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; min-height: 2.25rem; cursor: pointer; }
.werkzeuge .merken-wahl input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.werkzeuge .meldung { font-size: 0.85rem; color: var(--ink-soft); min-height: 1.2em; margin: 0; padding: 0 1rem 0.75rem; }
.mehr-info { color: var(--ink-soft); }
.mehr-info > summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; min-height: 2.5rem; display: flex; align-items: center; }
.mehr-info > :not(summary) { margin-top: 0.8rem; max-width: 40rem; }

/* Knöpfe */
.knopf { font: inherit; font-weight: 600; font-size: 0.95rem; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 6px; padding: 0.65rem 1.1rem; cursor: pointer; min-height: 2.75rem; line-height: 1.2; }
.knopf:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.knopf.sekundaer { background: transparent; color: var(--ink); border-color: var(--line); }
.knopf.sekundaer:hover { border-color: var(--accent); color: var(--accent-deep); background: transparent; }
.knopf.klein { min-height: 2.25rem; padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.knopf.gross { font-size: 1.1rem; padding: 0.9rem 1.8rem; font-family: var(--serif); font-weight: 600; }
.knopf:disabled { opacity: 0.5; cursor: not-allowed; }

/* Schritte */
.schritt-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 0.4rem; margin-top: 1.25rem; counter-reset: n; }
.schritt-nav li { counter-increment: n; }
.schritt-nav a { display: inline-block; font-size: 0.82rem; padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--card); }
.schritt-nav a::before { content: counter(n) ' · '; color: var(--accent); font-weight: 600; }
.schritt-nav a:hover { border-color: var(--accent); }

.schritt { margin-top: clamp(2.5rem, 6vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.schritt h2 { font-family: var(--serif); font-size: clamp(1.45rem, 4vw, 1.8rem); font-weight: 500; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.7rem; line-height: 1.2; }
.schritt h2 .nr { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--paper); font-family: var(--sans); font-size: 0.95rem; font-weight: 600; display: grid; place-items: center; }
.schritt-einleitung { color: var(--ink-soft); margin-top: 0.5rem; max-width: 38rem; }
.felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); gap: 1.1rem 1.5rem; margin-top: 1.25rem; align-items: start; }
.felder > .breit, .felder > .master { grid-column: 1 / -1; }
fieldset.untergruppe { grid-column: 1 / -1; border: 0; border-top: 1px dashed var(--line); padding-top: 0.75rem; margin-top: 0.25rem; }
fieldset.untergruppe legend { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); padding-right: 0.6rem; }
fieldset.untergruppe > .felder { margin-top: 0.6rem; }

details.weitere { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
details.weitere > summary { cursor: pointer; padding: 0.7rem 1rem; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); list-style: none; }
details.weitere > summary::before { content: '+ '; color: var(--accent); }
details.weitere[open] > summary::before { content: '- '; }
details.weitere > .felder { padding: 0 1rem 1.2rem; margin-top: 0.25rem; }

/* Felder */
.feld { position: relative; min-width: 0; }
.feld-kopf { display: flex; align-items: flex-start; gap: 0.35rem; margin-bottom: 0.25rem; }
.feld-kopf label { font-size: 0.88rem; font-weight: 500; line-height: 1.35; padding-top: 0.2rem; flex: 0 1 auto; }
.geaendert-merker { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-deep); background: #F0DFD5; border-radius: 3px; padding: 0.1rem 0.35rem; margin-top: 0.3rem; white-space: nowrap; }
.info-btn { margin-left: auto; flex: none; font: inherit; font-size: 1.1rem; line-height: 1; color: var(--ink-faint); background: none; border: 0; cursor: pointer; width: 2.25rem; height: 2.25rem; margin-top: -0.4rem; margin-right: -0.5rem; border-radius: 50%; }
.info-btn:hover, .info-btn[aria-expanded="true"] { color: var(--accent-deep); background: var(--paper-2); }
.feld-eingabe { display: flex; align-items: center; gap: 0.5rem; }
.feld-eingabe .einheit { font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; flex: none; }
.einheit-lang { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.25rem; }
input[type=text], select { font: inherit; font-size: 1rem; width: 100%; min-width: 0; min-height: 2.75rem; padding: 0.5rem 0.7rem; border: 1px solid rgba(33, 29, 24, 0.35); border-radius: 6px; background: #fff; color: var(--ink); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235D564B' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; padding-right: 2.2rem; text-overflow: ellipsis; }
input[type=text]:focus, select:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.feld.geaendert input[type=text], .feld.geaendert select { border-color: var(--accent); background: #FFFCF8; }
.feld.ungueltig input { border-color: var(--fehler); background: #FBEDEA; }
.feld-fehler { font-size: 0.82rem; color: var(--fehler); margin-top: 0.3rem; }
.feld-fehler.warnung { color: var(--knapp); }
.feld.plz { }
.feld-eingabe.plz { margin-top: 0.6rem; flex-direction: column; align-items: stretch; gap: 0.25rem; }
.feld-eingabe.plz label { font-size: 0.82rem; color: var(--ink-soft); }

/* Schalter (Checkbox) */
.schalter { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; font-size: 0.95rem; font-weight: 500; padding-top: 0.15rem; min-height: 2.25rem; }
.schalter input { flex: none; width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; accent-color: var(--accent); }
.feld.master { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.8rem; }
.feld.master .schalter { font-weight: 600; }
.feld.master .feld-kopf { margin-bottom: 0; align-items: center; }
.feld.master .info-btn { margin-top: 0; }

/* Popover */
.popover { position: relative; z-index: 5; margin-top: 0.4rem; background: var(--card); border: 1px solid var(--accent); border-radius: 8px; padding: 0.85rem 2.4rem 0.85rem 1rem; font-size: 0.85rem; box-shadow: 0 8px 24px rgba(33, 29, 24, 0.14); line-height: 1.45; }
.popover .pop-titel { font-weight: 600; margin-bottom: 0.4rem; }
.popover dl { display: grid; gap: 0.25rem; margin-bottom: 0.6rem; }
.pop-zeile { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.5rem; }
.pop-zeile dt { color: var(--ink-faint); }
.pop-zeile dd { margin: 0; min-width: 0; }
.pop-hinweis { color: var(--ink-soft); margin-bottom: 0.6rem; font-size: 0.82rem; }
.pop-zu { position: absolute; top: 0.3rem; right: 0.4rem; width: 2rem; height: 2rem; font-size: 1.4rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ink-faint); border-radius: 50%; }
.pop-zu:hover { background: var(--paper-2); }

/* Typ-Abzeichen */
.typ { display: inline-block; min-width: 1.4rem; text-align: center; font-size: 0.72rem; font-weight: 700; color: #fff; border-radius: 4px; padding: 0.05rem 0.35rem; line-height: 1.4; cursor: help; }
.typ-W { background: var(--w); }
.typ-K { background: var(--k); }
.typ-A { background: var(--a); }

/* Widgets Strom / PV */
.widget { grid-column: 1 / -1; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
fieldset.modus { border: 0; }
fieldset.modus legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.radio { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.3rem 0; cursor: pointer; font-size: 0.93rem; min-height: 2.25rem; }
.radio input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--accent); }
.modus-panel { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px dashed var(--line); }
.modus-text { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.7rem; max-width: 38rem; }
.widget .feld { max-width: 22rem; }

/* Upload */
.upl-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upl-drop { display: block; border: 2px dashed rgba(33, 29, 24, 0.35); border-radius: 8px; padding: 1.1rem; text-align: center; cursor: pointer; background: #fff; }
.upl-drop strong { color: var(--accent-deep); }
.upl-drop small { display: block; margin-top: 0.3rem; color: var(--ink-soft); font-size: 0.8rem; }
.upl-drop:hover, .upl-drop.ziehen, .upl-file:focus-visible + .upl-drop { border-color: var(--accent); background: #FFFCF8; }
.upl-status { font-size: 0.85rem; margin-top: 0.6rem; color: var(--ink-soft); }
.upl-status.fehler { color: var(--fehler); font-weight: 500; }
.upl-status.ok { color: var(--gut); }
.upl-hinweis { font-size: 0.85rem; background: #FBF3DE; border-radius: 6px; padding: 0.55rem 0.8rem; margin-top: 0.8rem; }
.upl-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0.8rem 1.2rem; margin-top: 0.9rem; }
.upl-feld label, .upl-label { display: block; font-size: 0.82rem; font-weight: 500; margin-bottom: 0.2rem; }
.upl-feld small { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.2rem; }
.upl-feld.breit { grid-column: 1 / -1; }
.upl-feld label.upl-check { font-size: 0.9rem; display: flex; margin: 0; gap: 0.5rem; align-items: center; min-height: 2.75rem; padding-top: 1.1rem; }
.upl-feld label.upl-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.upl-summe { font-size: 0.85rem; margin-bottom: 0.4rem; }
.upl-roh { margin-top: 0.9rem; font-size: 0.82rem; }
.upl-roh summary { cursor: pointer; color: var(--ink-soft); }
.upl-tab, table.zahlen { border-collapse: collapse; font-size: 0.8rem; width: max-content; min-width: 100%; }
.upl-tab th, .upl-tab td, table.zahlen th, table.zahlen td { border-bottom: 1px solid var(--line); padding: 0.25rem 0.6rem; text-align: left; white-space: nowrap; }
table.zahlen td { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle-scroll { overflow-x: auto; max-width: 100%; }
.upl-ausgabe h4 { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; margin-top: 1.1rem; }
.upl-kennzahlen { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; font-size: 0.9rem; margin: 0.4rem 0; }
.upl-chart { height: 200px; position: relative; }
.upl-legende { font-size: 0.78rem; color: var(--ink-faint); }
.upl-meldungen { list-style: none; margin-top: 0.6rem; display: grid; gap: 0.3rem; font-size: 0.85rem; }
.upl-meldungen li { padding-left: 0.8rem; border-left: 3px solid var(--line); }
.upl-meldungen li.warnung { border-color: var(--knapp); }
.upl-meldungen li.fehler { border-color: var(--fehler); color: var(--fehler); font-weight: 500; }
.upl-meldungen li.ok { border-color: var(--gut); }
.upl-knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.upl-aktiv { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 0.7rem; font-size: 0.9rem; }
.upl-msg.fehler { color: var(--fehler); }

/* Geführter Ablauf */
.ansicht-wahl { border: 0; margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ansicht-opt { display: flex; align-items: center; gap: 0.6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 0.7rem 0.9rem; min-height: 3.25rem; cursor: pointer; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.ansicht-opt input { flex: none; width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }
.ansicht-opt:has(input:checked) { border-color: var(--accent); background: #FFFCF8; box-shadow: inset 0 0 0 1px var(--accent); }
.ansicht-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.schnell { margin-top: 1.25rem; }
.schritt-karte { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 8px; padding: 1.1rem 1.1rem 1.3rem; }
.schritt-kopf { display: flex; align-items: center; gap: 0.8rem; font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.schritt-kopf progress { flex: 1; height: 0.5rem; appearance: none; border: 0; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.schritt-kopf progress::-webkit-progress-bar { background: var(--paper-2); }
.schritt-kopf progress::-webkit-progress-value { background: var(--accent); }
.schritt-kopf progress::-moz-progress-bar { background: var(--accent); }
.schritt-karte h2 { font-family: var(--serif); font-size: clamp(1.45rem, 5vw, 1.9rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin-top: 0.9rem; }
.schritt-karte h2:focus { outline: none; }
.schritt-karte h2:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.weiss-nicht { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.4rem; }
.kern-item { min-width: 0; }
.kern-item.breit { grid-column: 1 / -1; }
.feld-hilfe { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.3rem; max-width: 38rem; }
fieldset.frage { border: 0; }
fieldset.frage legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
fieldset.geraete { border: 1px solid var(--line); border-radius: 8px; padding: 0.8rem 1rem 1rem; }
fieldset.geraete legend { font-weight: 600; font-size: 0.95rem; padding: 0 0.4rem; }
.felder.kompakt { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0.8rem 1.2rem; }
.schritt-karte details.weitere { margin-top: 1.5rem; background: var(--paper); }
.schritt-karte details.weitere > .felder { padding: 0 1rem 1.2rem; }
.schritt-karte details.weitere > .feld-hilfe { padding: 0 1rem; margin: 0 0 0.5rem; }
.schritt-knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.schritt-knoepfe .knopf { flex: 1 1 8rem; min-height: 3rem; }
.schritt-knoepfe .knopf.gross { font-size: 1.1rem; }
.widget-slot { grid-column: 1 / -1; }
.widget-slot:empty { display: none; }
.widget-slot:not(:has(> :not([hidden]))) { display: none; }
.felder > .kern-item > .feld { max-width: 28rem; }

/* Berechnen */
.berechnen-zeile { margin-top: clamp(2.5rem, 6vw, 3.5rem); padding-top: 1.75rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }
#rechenstatus { color: var(--ink-soft); font-size: 0.95rem; margin-top: 1rem; font-weight: 600; }
.berechnen-zeile .klein-text { flex-basis: 100%; font-size: 0.82rem; color: var(--ink-soft); }

/* Ergebnis */
#ergebnis { margin-top: clamp(3rem, 8vw, 5rem); padding-top: 2rem; border-top: 2px solid var(--ink); }
.erg-kopf h2 { font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 500; letter-spacing: -0.012em; }
.erg-kopf h2:focus { outline: none; }
.erg-stand { color: var(--ink-faint); font-size: 0.85rem; margin-top: 0.3rem; }
.erg-aktionen { margin-top: 0.9rem; }
.erg-basis { margin-top: 1.5rem; }
.erg-basis h3, .diagramme h3, .quellen h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; margin-bottom: 0.3rem; }
.erg-basis p { color: var(--ink-soft); max-width: 40rem; }
.erg-hinweise { margin-top: 1.5rem; }
.hinweis-liste { list-style: none; display: grid; gap: 0.5rem; }
.hinweis-liste li { padding: 0.65rem 0.9rem; border-radius: 6px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--k); font-size: 0.92rem; }
.hinweis-liste li.warnung { border-left-color: var(--knapp); background: #FBF6E8; }
.hw-marke { font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; margin-right: 0.3rem; }

/* Empfehlung */
.empfehlung { margin-top: 1.5rem; background: var(--card); border: 2px solid var(--accent); border-radius: 10px; padding: 1.3rem 1.3rem 1.4rem; }
.empfehlung.nichts { border-color: var(--ink-faint); }
.empfehlung > h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); font-family: var(--sans); }
.empf-liste { list-style: none; display: grid; gap: 0.45rem; margin-top: 0.7rem; }
.empf-liste li { font-family: var(--serif); font-size: clamp(1.4rem, 5vw, 1.9rem); line-height: 1.25; font-weight: 500; padding-left: 1.6rem; position: relative; }
.empf-liste li::before { content: ''; position: absolute; left: 0.2rem; top: 0.55em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent); }
.empf-gross { font-family: var(--serif); font-size: clamp(1.4rem, 5vw, 1.9rem); line-height: 1.25; font-weight: 500; margin-top: 0.7rem; }
.empf-text { margin-top: 0.8rem; color: var(--ink-soft); max-width: 40rem; font-size: 0.95rem; }
.nicht-empf { margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.nicht-empf h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.nicht-empf-liste { list-style: none; display: grid; gap: 0.35rem; margin-top: 0.4rem; font-size: 0.85rem; color: var(--ink-soft); }
.eauto-karte, .erg-komfort { margin-top: 1.25rem; }
.erg-komfort { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; }
.erg-komfort h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.erg-komfort ul { list-style: none; display: grid; gap: 0.35rem; margin-top: 0.4rem; color: var(--ink-soft); }
.weitere-hinweise { margin-top: 0.7rem; }
.weitere-hinweise > ul { padding: 0 0.8rem 0.9rem; }
table.varianten th[scope=row] { white-space: normal; min-width: 7rem; }
table.varianten tr.empfohlen { background: #F6EBE2; }
table.varianten tr.empfohlen th, table.varianten tr.empfohlen td { font-weight: 700; }
.empf-marke { display: block; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-deep); }
.unterblock { margin-top: 1.5rem; }
.unterblock h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
details.block > .karten, details.block > .meldung { margin-top: 0.8rem; }
details.block.diagramme > .wahl { margin-top: 0.8rem; }

.karten { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.karte { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--ink-faint); border-radius: 8px; padding: 1.1rem 1.2rem 1.2rem; break-inside: avoid; }
.karte.urteil-gut { border-top-color: var(--gut); }
.karte.urteil-knapp { border-top-color: var(--knapp); }
.karte.urteil-schlecht { border-top-color: var(--schlecht); }
.karte header { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; justify-content: space-between; align-items: baseline; }
.karte h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.urteil { font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; color: #fff; background: var(--ink-faint); }
.urteil-gut.urteil { background: var(--gut); }
.urteil-knapp.urteil { background: var(--knapp); }
.urteil-schlecht.urteil { background: var(--schlecht); }
.karte .grund { margin-top: 0.6rem; color: var(--ink); max-width: 42rem; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 0.9rem 1.2rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.kz dt { font-size: 0.74rem; color: var(--ink-faint); line-height: 1.3; }
.kz dd { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.2; margin: 0.15rem 0 0; font-variant-numeric: tabular-nums; }
.kz dd small { display: block; font-family: var(--sans); font-size: 0.72rem; color: var(--ink-faint); line-height: 1.3; margin-top: 0.15rem; }
.komfort-hinweis { margin-top: 0.8rem; font-size: 0.82rem; color: var(--ink-soft); }

.diagramme { margin-top: 2.75rem; }
.diagramme .wahl { margin: 0.6rem 0 1rem; max-width: 26rem; flex-wrap: wrap; }
.diagramme .wahl label { font-size: 0.88rem; font-weight: 500; }
.chart-box { margin: 0 0 1.75rem; min-width: 0; }
.chart-box figcaption { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.chart-flaeche { position: relative; height: 300px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0.5rem; }
.chart-paar { display: grid; gap: 1.75rem; }
.chart-tabelle { margin-top: 0.4rem; font-size: 0.85rem; }
.chart-tabelle summary { cursor: pointer; color: var(--ink-soft); }
.chart-hinweis { font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.3rem; }
.meldung { color: var(--ink-soft); margin-top: 1rem; }

details.block { margin-top: 1.75rem; border-top: 1px solid var(--line); padding-top: 1rem; }
details.block > summary { cursor: pointer; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; padding: 0.2rem 0; }
.herleitung, .vereinfachungen, .tabellen-liste, .hinweise-liste { margin: 0.8rem 0 0 1.2rem; display: grid; gap: 0.45rem; font-size: 0.92rem; color: var(--ink-soft); }
.tabellen-liste, .hinweise-liste { list-style: disc; }
.tab-hinweis, .tab-datum { display: block; font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.1rem; }
.tab-datum { display: inline; }
.tab-geaendert { color: var(--accent-deep); font-weight: 600; }
.quellen p { color: var(--ink-soft); margin-top: 0.5rem; font-size: 0.92rem; max-width: 42rem; }
.quellen h3 { margin-top: 1.5rem; }
.typ-legende { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin: 0.6rem 0 0.9rem; font-size: 0.85rem; color: var(--ink-soft); }
.quellen-tabelle { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
.quellen-tabelle th, .quellen-tabelle td { text-align: left; vertical-align: top; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); }
.quellen-tabelle thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-faint); }
.quellen-tabelle tr.gruppe th { background: var(--paper-2); font-family: var(--serif); font-size: 1rem; font-weight: 600; padding-top: 0.7rem; }
.quellen-tabelle tr.geaendert td.wert { font-weight: 600; }
.quellen-tabelle td.wert { font-variant-numeric: tabular-nums; }
.haftung { margin-top: 2.5rem; font-size: 0.85rem; color: var(--ink-faint); max-width: 40rem; }

/* Fußzeile */
footer { margin-top: clamp(4rem, 9vw, 6rem); padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; font-size: 0.8rem; color: var(--ink-faint); }
footer p { max-width: 36rem; }
footer nav { display: flex; gap: 1.25rem; }
footer a { color: var(--ink-faint); text-decoration-color: var(--line); }
footer a:hover { color: var(--ink); }

/* Breite Bildschirme */
@media (min-width: 760px) {
    .chart-paar { grid-template-columns: 1fr 1fr; }
    .karten { gap: 1.25rem; }
}

/* Schmale Bildschirme */
@media (max-width: 640px) {
    .pop-zeile { grid-template-columns: 1fr; gap: 0; }
    .pop-zeile dt { font-size: 0.75rem; }
    .chart-flaeche { height: 260px; }
    .quellen-tabelle thead { display: none; }
    .quellen-tabelle, .quellen-tabelle tbody, .quellen-tabelle tr, .quellen-tabelle td, .quellen-tabelle th { display: block; width: 100%; }
    .quellen-tabelle tr { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
    .quellen-tabelle tr.gruppe { padding: 0; border: 0; }
    .quellen-tabelle td { border: 0; padding: 0.1rem 0.2rem; }
    .quellen-tabelle td::before { content: attr(data-label) ': '; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
    .quellen-tabelle td:first-child { font-weight: 600; }
    .quellen-tabelle td:first-child::before { content: ''; }
}

/* Weniger Bewegung */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Druck */
@media print {
    body { background: #fff; color: #000; font-size: 10.5pt; }
    .page { max-width: none; padding: 0; }
    .back, .einstieg, #assistent, #lade-status, #fehlerbox, #app, .nicht-drucken, noscript, .masthead .lede { display: none !important; }
    .masthead { margin-top: 0; }
    #ergebnis { margin-top: 1rem; border-top: 1px solid #000; }
    #ergebnis[hidden] { display: none !important; }
    a { color: #000; text-decoration: none; }
    .karte, .chart-box, .hinweis-liste li { break-inside: avoid; }
    .chart-flaeche { height: 220px; border: 0; padding: 0; }
    .chart-paar { grid-template-columns: 1fr 1fr; gap: 1rem; }
    details.block > summary { list-style: none; }
    details.block:not([open]) > *:not(summary) { display: block; }
    .quellen-tabelle { font-size: 8pt; }
    .quellen-tabelle tr { break-inside: avoid; }
    .typ { color: #000 !important; background: #fff !important; border: 1px solid #000; }
    footer nav { display: none; }
    * { box-shadow: none !important; }
}

/* Lange Links und Wörter umbrechen */
.herleitung, .vereinfachungen, .tabellen-liste, .hinweise-liste { grid-template-columns: minmax(0, 1fr); }
.herleitung li, .vereinfachungen li, .tabellen-liste li, .hinweise-liste li, .quellen-tabelle td, .popover { overflow-wrap: anywhere; }

@media (max-width: 480px) {
    .ansicht-wahl { grid-template-columns: 1fr; }
    .empfehlung, .schritt-karte { padding-left: 0.95rem; padding-right: 0.95rem; }
}
.mehr-info > summary::before { content: '+ '; color: var(--accent); margin-right: 0.3rem; }
.mehr-info[open] > summary::before { content: '- '; }
