/* Creatorwert.de — „Preisblatt"
   Schrift: Inter, selbst gehostet (keine Anfrage an Google)
   Farben: Hintergrund #F7EFE2 · Text #2A2016 · Akzent #2E7D4F
   Stil: festes 12er-Raster, Linien statt Karten, keine Schatten, Zahlen in Tabellenziffern */

@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(/assets/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(/assets/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F7EFE2;
  --surface: #FFFFFF;
  --surface-muted: #FBF5E9;
  --text: #2A2016;
  --text-2: #5E5141;
  --muted: #8A7A61;
  --accent: #2E7D4F;
  --accent-dunkel: #256641;
  --accent-text: #FFFFFF;
  --linie: rgba(42, 32, 22, .14);
  --linie-stark: #2A2016;
  --fehler: #B3261E;
  --rand: 40px;
  --spalt: 32px;
  --f: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; color-scheme: light; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.55 var(--f); font-feature-settings: 'cv11'; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
a { color: inherit; }
.zahl, td, .posten dd, .richtpreis-zahl, .formel b { font-variant-numeric: tabular-nums; }

/* Raster */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--rand); }
.raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--spalt); }
main { flex: 1; }

/* Kopf */
.kopf { border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 700; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--text-2); }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .knopf { color: var(--accent-text); }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; padding: 14px 22px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); text-decoration: none; cursor: pointer; white-space: nowrap; }
.knopf:hover { background: var(--accent-dunkel); border-color: var(--accent-dunkel); }
.knopf.klein { font-size: 14px; padding: 9px 14px; border-radius: 6px; }
.knopf.hell { background: var(--surface); color: var(--text); border-color: var(--linie); }
.knopf.hell:hover { border-color: var(--text-2); }
.knopf:disabled { opacity: .5; cursor: default; }
.knopf:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 8px; }

/* Start: Kopfbereich */
.einstieg { padding: 80px 0 80px; }
.einstieg-text { grid-column: 1 / span 5; }
.einstieg-werkzeug { grid-column: 7 / span 6; }
h1 { font-size: clamp(42px, 5vw, 76px); line-height: .98; letter-spacing: -.04em; }
.lead { font-size: 19px; line-height: 1.5; color: var(--text-2); margin-top: 24px; max-width: 30em; }
.daten { margin: 48px 0 0; border-top: 1px solid var(--linie-stark); }
.daten div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--linie); }
.daten dt { font-size: 14px; font-weight: 600; }
.daten dd { margin: 0; font-size: 15px; color: var(--text-2); }

/* Fläche für Werkzeuge (Schnellrechner, Rechner, Ergebnis) */
.panel { background: var(--surface); border: 1px solid var(--linie); border-radius: 10px; overflow: hidden; }
.panel-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--linie); font-size: 14px; }
.panel-kopf strong { font-weight: 600; white-space: nowrap; }
.panel-kopf span { color: var(--muted); text-align: right; }
.panel-teil { padding: 22px 24px; }
.panel-teil + .panel-teil { border-top: 1px solid var(--linie); }
.panel-teil.gedaempft { background: var(--surface-muted); }
.panel-fuss { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 24px; border-top: 1px solid var(--linie); }
.panel-fuss .hinweis { margin: 0; }

.feldname { display: block; font-size: 14px; font-weight: 600; margin: 0 0 10px; }
/* Segment: Knöpfe nebeneinander, die Trennlinien entstehen aus dem 1-px-Abstand */
.segment { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; }
.segment:has(> label:nth-child(2):last-child) { --n: 2; }
.segment:has(> label:nth-child(3):last-child) { --n: 3; }
.segment:has(> label:nth-child(6):last-child) { --n: 6; }
.segment label { cursor: pointer; display: block; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span { display: flex; align-items: center; justify-content: center; height: 100%; padding: 11px 8px; text-align: center; font-size: 14.5px; font-weight: 500; line-height: 1.25; background: var(--surface); }
.segment label:hover span { background: var(--surface-muted); }
.segment input:checked + span { background: var(--accent); color: var(--accent-text); font-weight: 600; }
.segment input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -3px; }
.schnell-zeile + .schnell-zeile { margin-top: 20px; }
.gross-input { font-size: 28px !important; font-weight: 600; letter-spacing: -.02em; padding: 10px 14px !important; font-variant-numeric: tabular-nums; }

/* Ergebnis (Schnellrechner, Rechner, Beispiel) */
.ergebnis-titel { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.richtpreis { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 18px 0 4px; }
.richtpreis-label { font-size: 14px; color: var(--text-2); }
.richtpreis-zahl { font-size: 56px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.posten { margin: 14px 0 0; }
.posten div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--linie); font-size: 15px; }
.posten dt { color: var(--text-2); }
.posten dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.zuklein { font-size: 17px; font-weight: 600; line-height: 1.4; }
.hinweis { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ugc-hinweis p { font-size: 15px; margin-bottom: 14px; }
.stufen { border: 0; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--linie); min-width: 0; }
.stufen legend { font-size: 14px; margin-bottom: 10px; }

/* Abschnitte */
.abschnitt { padding: 0 0 96px; }
.abschnitt > .raster { position: relative; padding-top: 28px; }
.abschnitt > .raster::before { content: ''; position: absolute; top: 0; left: var(--rand); right: var(--rand); border-top: 1px solid var(--linie-stark); }
.abschnitt-kopf { grid-column: 1 / span 4; }
.abschnitt-inhalt { grid-column: 5 / span 8; }
.abschnitt-inhalt.schmaler { grid-column: 7 / span 6; }
h2 { font-size: 32px; line-height: 1.1; letter-spacing: -.03em; }
.abschnitt-kopf p { margin-top: 16px; color: var(--text-2); max-width: 26em; }
.abschnitt-kopf .knopf { margin-top: 28px; }
.links-liste { font-size: 15px; color: var(--text-2); }
.links-liste a { color: var(--accent); }
.abschnitt-inhalt > .links-liste + .cta-zeile { margin-top: 24px; }
.prosa p { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 38em; }
.prosa p + p { margin-top: 14px; }
.faq { margin: 0; border-top: 1px solid var(--linie-stark); }
.faq div { padding: 18px 0; border-bottom: 1px solid var(--linie); }
.faq dt { font-weight: 600; font-size: 17px; }
.faq dd { margin: 6px 0 0; color: var(--text-2); max-width: 40em; }

/* Tabellen */
.tabelle-rahmen { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 16px; }
.tabelle th { font-size: 13.5px; font-weight: 600; text-align: right; padding: 0 0 12px 16px; border-bottom: 1px solid var(--linie-stark); vertical-align: bottom; line-height: 1.35; }
.tabelle th small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.tabelle td { text-align: right; padding: 14px 0 14px 16px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.tabelle th:first-child, .tabelle td:first-child { text-align: left; padding-left: 0; }
.tabelle td:first-child { font-weight: 600; }
.tabelle tbody tr:hover td { background: var(--surface-muted); }
.tabelle td.klein { color: var(--muted); }
.tabelle td.stark { font-weight: 600; }
.fussnote { margin-top: 16px; font-size: 13.5px; color: var(--muted); max-width: 46em; }

/* Rate Card als Blatt (Beispiel, Vorschau im Rechner, echte Rate-Card-Seite) */
.blatt { background: var(--surface); border: 1px solid var(--linie); padding: 44px 48px 32px; display: flex; flex-direction: column; color: #111; }
.blatt-klein { font-size: 12px; color: #666; }
.blatt-name { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 26px; overflow-wrap: anywhere; }
.blatt-handle { margin-left: 10px; font-weight: 600; color: #666; }
.blatt-zeile { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #ddd; }
.blatt-zeilen .blatt-zeile:last-child { border-bottom: 1px solid #ddd; }
.blatt-zeile b { font-size: 15px; }
.blatt-zeile small { display: block; font-size: 12px; color: #666; margin-top: 2px; }
.blatt-zeile .preis { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.blatt-buyout { font-size: 13.5px; font-weight: 700; margin: 16px 0 18px; }
.blatt-angaben { font-size: 13px; }
.blatt-nuvos { display: grid; grid-template-columns: 88px 1fr; gap: 18px; margin-top: 28px; font-size: 12.5px; line-height: 1.45; }
.blatt-qr img, .blatt-qr svg { width: 88px; height: 88px; display: block; }
.blatt-nuvos b { display: block; margin-top: 6px; }
.blatt-fuss { font-size: 11px; color: #666; margin-top: 56px; }
.blatt-unterschrift { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.blatt.mini { padding: 26px 24px 20px; border-color: #e6e0d6; }
.blatt.mini .blatt-name { font-size: 20px; margin-bottom: 16px; }
.blatt.mini .blatt-zeile { padding: 9px 0; }
.blatt.mini .blatt-zeile b { font-size: 14px; }
.blatt.mini .blatt-zeile .preis { font-size: 15px; }
.blatt.mini .blatt-buyout { font-size: 12.5px; margin: 12px 0; }
.blatt.mini .blatt-nuvos { grid-template-columns: 64px 1fr; gap: 12px; margin-top: 18px; font-size: 11.5px; }
.blatt.mini .blatt-qr img, .blatt.mini .blatt-qr svg { width: 64px; height: 64px; }
.blatt.mini .blatt-fuss { margin-top: 18px; }

/* So rechnen wir */
.formel { display: grid; grid-template-columns: auto auto auto auto auto auto auto; justify-content: start; align-items: start; gap: 0 20px; padding-bottom: 36px; }
.formel b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.formel b.ziel { color: var(--accent); }
.formel small { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); max-width: 12em; line-height: 1.4; }
.formel .op { font-size: 30px; color: var(--muted); line-height: 1.15; }
.fakten { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--spalt); }
.fakt { border-top: 1px solid var(--linie); padding: 16px 0 26px; }
.fakt h3 { font-size: 16px; font-weight: 600; }
.fakt p { margin-top: 6px; font-size: 15px; color: var(--text-2); }

/* Rechner-Seite und Marken-Rechner: Formular links, Ergebnis rechts (bleibt beim Scrollen stehen), Rate Card darunter */
.seitenkopf { padding: 64px 0 48px; }
.seitenkopf h1 { font-size: clamp(40px, 4.4vw, 64px); grid-column: 1 / span 10; }
.seitenkopf .lead { grid-column: 1 / span 7; max-width: 36em; }
.rechner-raster { padding-bottom: 96px; }
.rechner-raster > .wrap > .raster { border-top: 1px solid var(--linie-stark); padding-top: 32px; align-items: start; row-gap: 24px; }
.rechner-spalte { grid-column: 1 / span 7; grid-row: 1; }
.ergebnis-spalte { grid-column: 8 / span 5; grid-row: 1 / span 3; position: sticky; top: 24px; align-self: start; display: grid; gap: 20px; }
.gate, .rechner-grid > .so-rechnen { grid-column: 1 / span 7; }

.feld { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, label.frage { display: block; font-weight: 600; font-size: 15.5px; margin: 0 0 14px; padding: 0; color: var(--text); }
/* Legende wie ein normales Element setzen, sonst sitzt sie auf der Fieldset-Kante */
fieldset > legend { float: left; width: 100%; }
fieldset > legend + * { clear: both; }
#rechner-form, #budget-form { counter-reset: schritt; }
#rechner-form > .feld, #budget-form > .feld { padding: 24px 24px 24px 64px; border-top: 1px solid var(--linie); counter-increment: schritt; position: relative; }
#rechner-form > .feld:first-child, #budget-form > .feld:first-child { border-top: 0; }
#rechner-form > .feld::before, #budget-form > .feld::before { content: counter(schritt); position: absolute; left: 24px; top: 24px; font-size: 15.5px; line-height: 1.55; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.hilfe { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; max-width: 34em; }
.fehler { color: var(--fehler); font-size: 13.5px; margin: 8px 0 0; }

.wahlgruppe { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl { cursor: pointer; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl span { display: block; padding: 11px 15px; border: 1px solid var(--linie); border-radius: 6px; background: var(--surface); font-weight: 500; font-size: 15px; line-height: 1.3; }
.wahl:hover span { border-color: var(--text-2); }
.wahl input:checked + span { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
.wahl input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

input[type=text], input[type=email], select { width: 100%; max-width: 380px; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--linie); border-radius: 6px; background-color: var(--surface); color: var(--text); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input[type=text]::placeholder, input[type=email]::placeholder { color: var(--muted); }
input[type=text]:focus, input[type=email]:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.panel-teil input[type=text], .panel-teil input[type=email], .gate select, .gate input[type=text], .gate input[type=email] { max-width: none; }
#budget-form input[name=anzahl] { max-width: 120px; font-size: 20px; font-weight: 600; }

.haken { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 13.5px; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.haken input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.haken a { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.so-rechnen { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); font-size: 15px; color: var(--text-2); }
.so-rechnen summary { cursor: pointer; font-weight: 600; color: var(--text); padding: 16px 0; list-style-position: inside; }
.so-rechnen p { margin: 0 0 18px; max-width: 40em; }
.so-rechnen a { color: var(--accent); }

#ergebnis > .ergebnis-block, #budget-ergebnis > .ergebnis-block { padding: 22px 24px; }
#ergebnis > .ergebnis-block + .ergebnis-block, #ergebnis > .hinweis + .ergebnis-block { border-top: 1px solid var(--linie); }
#ergebnis > .hinweis, #budget-ergebnis > .hinweis { padding: 0 24px 20px; margin-top: -8px; }
#ergebnis > .ugc-hinweis { background: var(--surface-muted); }
.ergebnis-spalte .panel-fuss { justify-content: flex-start; flex-wrap: wrap; gap: 10px; }

/* Rate-Card-Formular (Creator) und Preisliste (Marken) */
.gate-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gate-vorschau { padding: 24px; background: var(--surface-muted); border-right: 1px solid var(--linie); }
.gate-form { padding: 24px; }
.gate-intro { font-size: 15px; color: var(--text); margin-bottom: 10px; }
.gate-nuvos { font-size: 14px; color: var(--text-2); margin-bottom: 20px; padding-left: 12px; border-left: 2px solid var(--accent); }
.gate .feld { margin: 0 0 16px; }
.gate label:not(.wahl):not(.haken) { display: block; font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.gate legend { font-size: 14px; margin-bottom: 8px; }
.gate .wahl span { padding: 9px 14px; font-size: 14.5px; }
#ratecard-form .knopf, #marken-form .knopf { width: 100%; margin-top: 4px; }
.danach > p:first-child { font-size: 15.5px; font-weight: 600; margin-bottom: 18px; }
.danach .geraet { padding: 16px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); margin-bottom: 18px; }
.danach .danke { font-weight: 600; color: var(--accent); margin-top: 8px; }
.danach .hinweis { margin-top: 12px; }
#marken-form.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
#marken-form .ganz { grid-column: 1 / -1; }
#marken-box .panel-teil { padding: 24px; }

/* Mitlaufender Preis auf dem Handy */
.preis-leiste { display: none; }

/* Hinweis-Leiste nach Bestätigung */
.banner { margin: 32px 0 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--linie); border-left: 3px solid var(--accent); border-radius: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.banner p { font-weight: 600; }

/* Rate-Card-Seite */
.rc-seite { padding: 40px 0 96px; }
.rc-seite .raster { row-gap: 32px; align-items: start; }
.rc-seite .banner { grid-column: 1 / -1; margin: 0; }
.rc-blatt { grid-column: 1 / span 6; }
.rc-seite-rechts { grid-column: 8 / span 5; display: grid; gap: 28px; }
.rc-seite-rechts h2 { font-size: 22px; letter-spacing: -.02em; }
.rc-block .knopf-reihe { margin-top: 14px; }
.rc-block p { color: var(--text-2); margin-top: 8px; font-size: 15px; }
.rc-block + .rc-block { border-top: 1px solid var(--linie-stark); padding-top: 24px; }
.vorlage { margin-top: 12px; background: var(--surface); border: 1px solid var(--linie); border-radius: 8px; padding: 14px 16px; font: inherit; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Textseiten (Impressum, Datenschutz, 404) */
.text-seite { padding-top: 48px; padding-bottom: 96px; }
.text { max-width: 44em; }
.text h1 { font-size: 40px; margin-bottom: 20px; }
.text h2 { font-size: 22px; margin: 28px 0 8px; }
.text p, .text li { color: var(--text-2); }
.text p { margin: 0 0 12px; }
.text a { color: var(--accent); }
.gross { font-size: 24px; font-weight: 600; margin-bottom: 20px; }

/* Fuß */
.fuss { border-top: 1px solid var(--linie-stark); padding: 36px 0 48px; font-size: 14px; }
.fuss .raster { row-gap: 24px; }
.fuss-marke { grid-column: 1 / span 4; }
.fuss-marke p { margin-top: 8px; color: var(--text-2); max-width: 22em; }
.fuss-spalte { grid-column: span 2; }
.fuss-spalte.erste { grid-column: 7 / span 2; }
.fuss-spalte h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.fuss-spalte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fuss-spalte a { color: var(--text-2); text-decoration: none; }
.fuss-spalte a:hover { color: var(--text); text-decoration: underline; }
.fuss-stand { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--linie); color: var(--muted); font-size: 13px; }

/* Aufnahme-Modus für Videos (?demo=1): nur das Ergebnis */
body.demo .kopf, body.demo .fuss, body.demo .seitenkopf, body.demo .rechner-spalte, body.demo .gate, body.demo .so-rechnen, body.demo #ergebnis-fuss, body.demo .preis-leiste { display: none !important; }
body.demo .ergebnis-spalte { grid-column: 1 / -1; position: static; }
body.demo .rechner-raster > .wrap > .raster { border-top: 0; padding-top: 24px; }

/* Schmalere Bildschirme */
@media (max-width: 1100px) {
  .einstieg-text { grid-column: 1 / span 6; }
  .einstieg-werkzeug { grid-column: 7 / span 6; }
  .abschnitt-kopf { grid-column: 1 / span 12; margin-bottom: 32px; }
  .abschnitt-inhalt, .abschnitt-inhalt.schmaler { grid-column: 1 / span 12; }
  .abschnitt-inhalt.schmaler { max-width: 560px; }
  .gate-raster { grid-template-columns: 1fr; }
  .gate-vorschau { border-right: 0; border-bottom: 1px solid var(--linie); }
  .gate-vorschau .blatt { max-width: 420px; }
}
@media (max-width: 960px) {
  :root { --rand: 24px; --spalt: 20px; }
  .einstieg { padding: 48px 0 64px; }
  .einstieg-text, .einstieg-werkzeug { grid-column: 1 / -1; }
  .einstieg-werkzeug { margin-top: 40px; }
  .rechner-spalte, .ergebnis-spalte, .gate, .rechner-grid > .so-rechnen { grid-column: 1 / -1; grid-row: auto; }
  .ergebnis-spalte { position: static; }
  .ergebnis-spalte .leer { display: none; }
  .seitenkopf h1, .seitenkopf .lead { grid-column: 1 / -1; }
  .rc-blatt, .rc-seite-rechts { grid-column: 1 / -1; }
  .fuss-marke { grid-column: 1 / -1; }
  .fuss-spalte, .fuss-spalte.erste { grid-column: span 4; }
  .nav a:not(.knopf) { display: none; }
  .preis-leiste:not([hidden]) { display: flex; position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--rand) calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--linie-stark); }
  .preis-leiste p { display: flex; flex-direction: column; line-height: 1.25; }
  .preis-leiste small { font-size: 12.5px; color: var(--text-2); }
  .preis-leiste b { font-size: 19px; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
  body:has(.preis-leiste:not([hidden])) .fuss { padding-bottom: 110px; }
}
@media (max-width: 760px) {
  .formel { grid-template-columns: 28px 1fr; row-gap: 14px; gap: 14px 8px; }
  .formel > div:first-child { grid-column: 2; }
  .formel b { font-size: 28px; }
  .formel .op { font-size: 24px; }
  .formel small { max-width: none; margin-top: 4px; }
  #marken-form.zwei-spalten { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --rand: 16px; }
  h1 { font-size: 42px; }
  .seitenkopf { padding: 40px 0 32px; }
  .lead { font-size: 17px; }
  h2 { font-size: 27px; }
  .abschnitt { padding: 0 0 64px; }
  .daten div { grid-template-columns: 96px 1fr; }
  .segment { --n: 2; }
  .segment:has(> label:nth-child(3):last-child), .segment:has(> label:nth-child(6):last-child) { --n: 3; }
  .panel-kopf, .panel-teil, .panel-fuss, .gate-form, .gate-vorschau { padding-left: 18px; padding-right: 18px; }
  .panel-fuss { flex-direction: column; align-items: stretch; }
  .ergebnis-spalte .panel-fuss { flex-direction: row; }
  .richtpreis-zahl { font-size: 46px; }
  /* Tabellen als gestapelte Zeilen: Erste Spalte ist der Zeilenkopf, darunter Bezeichnung und Wert */
  .tabelle thead { display: none; }
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; }
  .tabelle tr { padding: 14px 0 10px; border-bottom: 1px solid var(--linie); }
  .tabelle tbody tr:first-child { border-top: 1px solid var(--linie-stark); }
  .tabelle td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; white-space: normal; text-align: right; }
  .tabelle td:first-child { font-size: 17px; padding-bottom: 6px; }
  .tabelle td[data-label]::before { content: attr(data-label); color: var(--text-2); font-weight: 400; text-align: left; font-variant-numeric: normal; }
  .tabelle td.klein::before { color: var(--muted); }
  .tabelle tbody tr:hover td { background: none; }
  .fakten { grid-template-columns: 1fr; }
  .blatt { padding: 28px 22px; }
  .blatt-name { font-size: 21px; }
  .blatt-handle { display: block; margin-left: 0; font-size: 16px; }
  #rechner-form > .feld, #budget-form > .feld { padding: 20px 18px 20px 46px; }
  #rechner-form > .feld::before, #budget-form > .feld::before { left: 18px; top: 20px; }
  .fuss-spalte, .fuss-spalte.erste { grid-column: span 6; }
  .knopf-reihe .knopf { flex: 1 1 auto; }
}
