@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-700.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-expanded-700.woff2") format("woff2"); font-weight: 700; font-stretch: 125%; font-style: normal; font-display: swap; }
[hidden]{display:none!important}
/* ============================================================
   energieberatungsbuero.de – Stylesheet v6.1
   Grundlage: redaktionelles System aus v4 (Instrument Serif für
   Autorität, Instrument Sans für alles Technische, Haarlinien statt
   Kästen, Tannengrün als Strukturfarbe) + Audit-Korrekturen vom
   28.09.2026 + neue Bausteine: Express-Termin, Ansprechpartnerin,
   Fahrplan-Grafik, Einsatzgebietskarte, Städteseiten.
   ============================================================ */

:root {
  --tanne:       #1C3A17;
  --tanne-tief:  #122510;
  --tanne-weich: #2C5622;
  --blatt:       #7DA433;
  --blatt-tief:  #56761F;
  --gelb:        #F2C200;
  --gelb-hell:   #FFD633;
  --gelb-tinte:  #241C00;

  --papier:   #FBFBF7;
  --rein:     #FFFFFF;
  --flaeche:  #F1F3EA;
  --flaeche2: #E6EBDA;
  --tinte:    #141A10;
  --text:     #2B3327;
  --grau:     #5A6455;
  --linie:    #DEE3D3;
  --linie2:   #BFC8B1;

  --auf-dunkel:       #F3F6EC;
  --auf-dunkel-leise: #B8C8AB;

  --link:        #2C5622;
  --knopf:       #1C3A17;
  --knopf-hover: #122510;
  --knopf-text:  #FFFFFF;
  --fokus:       #2C5622;

  /* Effizienzklassen (Farbskala des Energieausweises) */
  --k-aplus: #00843D; --k-a: #2FA84F; --k-b: #8CC63F; --k-c: #C9D52A; --k-d: #F2DE1B;
  --k-e: #FDB913; --k-f: #F37021; --k-g: #E2261C; --k-h: #A3151B;
  --vv-ist: #8E2318; --vv-var: #2F6E45;   /* Zahlen der Vergleichsgrafik: heute / nach den Maßnahmen */

  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Wortmarke: Archivo (breit, 700) – Richtung A aus den Logo-Vorschlägen; fällt ohne Schriftdatei auf Instrument Sans zurück */
  --marke: "Archivo", "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 78rem;
  --mass: 38em;
  --header-h: 76px;
  --abschnitt: clamp(4rem, 8vw, 7.5rem);
  --r: 4px;

  --schatten-1: 0 1px 2px rgba(20,35,14,.05);
  --schatten-2: 0 2px 6px rgba(20,35,14,.06), 0 16px 34px rgba(20,35,14,.08);
  --schatten-3: 0 10px 24px rgba(20,35,14,.10), 0 40px 80px rgba(20,35,14,.16);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --papier: #0F140D; --rein: #151C12; --flaeche: #161E13; --flaeche2: #1D2718;
    --tinte: #EEF3E8; --text: #D9E1D3; --grau: #A3B09C;
    --linie: #2A3523; --linie2: #3F4E36;
    --tanne: #1F3219; --tanne-tief: #0A0F08; --tanne-weich: #2C5622;
    --blatt: #9CC84E; --blatt-tief: #A9D361;
    --link: #A9D361; --knopf: #7DA433; --knopf-hover: #93BE3F; --knopf-text: #0E1A08; --fokus: #A9D361;
    --auf-dunkel-leise: #B8C8AB;
    --vv-ist: #F0958A; --vv-var: #86CFA1;
    --schatten-1: 0 1px 2px rgba(0,0,0,.45);
    --schatten-2: 0 2px 6px rgba(0,0,0,.5), 0 16px 34px rgba(0,0,0,.4);
    --schatten-3: 0 10px 24px rgba(0,0,0,.55), 0 40px 80px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --papier: #0F140D; --rein: #151C12; --flaeche: #161E13; --flaeche2: #1D2718;
  --tinte: #EEF3E8; --text: #D9E1D3; --grau: #A3B09C;
  --linie: #2A3523; --linie2: #3F4E36;
  --tanne: #1F3219; --tanne-tief: #0A0F08; --tanne-weich: #2C5622;
  --blatt: #9CC84E; --blatt-tief: #A9D361;
  --link: #A9D361; --knopf: #7DA433; --knopf-hover: #93BE3F; --knopf-text: #0E1A08; --fokus: #A9D361;
  --auf-dunkel-leise: #B8C8AB;
  --vv-ist: #F0958A; --vv-var: #86CFA1;
  --schatten-1: 0 1px 2px rgba(0,0,0,.45);
  --schatten-2: 0 2px 6px rgba(0,0,0,.5), 0 16px 34px rgba(0,0,0,.4);
  --schatten-3: 0 10px 24px rgba(0,0,0,.55), 0 40px 80px rgba(0,0,0,.5);
}

/* ---------- Grundlagen ---------- */
html {
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1.5rem);
  -webkit-text-size-adjust: 100%;
  hanging-punctuation: first last;
}
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0; background: var(--papier); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.68;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; }

h1, h2 {
  font-family: var(--display); font-weight: 400; color: var(--tinte);
  letter-spacing: -.02em; line-height: 1.02; margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -.026em; }
h2 { font-size: clamp(2rem, 3.9vw, 3.25rem); }
h3 {
  font-family: var(--display); font-weight: 400; color: var(--tinte);
  letter-spacing: -.012em; line-height: 1.18; margin: 0 0 .45em;
  font-size: 1.45rem;
}
h4 {
  font-family: var(--sans); font-weight: 600; color: var(--tinte);
  letter-spacing: -.011em; line-height: 1.28; margin: 0 0 .5em; font-size: 1rem;
}
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: break-word; }
p, ul, ol { margin: 0 0 1.1rem; }
p { text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--linie2); transition: color .15s ease, text-decoration-color .15s ease; }
a:hover { color: var(--blatt-tief); text-decoration-color: var(--blatt); }
strong { font-weight: 600; color: var(--tinte); }
address { font-style: normal; }
.muted { color: var(--grau); }
.small { font-size: .9375rem; }
.mt { margin-top: 2rem; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 3rem 0; }
::selection { background: var(--blatt); color: #10200A; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: lining-nums tabular-nums; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 1.25rem; }
@media (min-width: 52rem) { .container { padding-inline: 3rem; } }

.skip { position: absolute; left: -9999px; z-index: 200; background: var(--knopf); color: var(--knopf-text); padding: .9rem 1.3rem; border-radius: var(--r); font-weight: 600; }
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--fokus); outline-offset: 3px; border-radius: 2px; }
.cta :focus-visible, .band :focus-visible, .site-footer :focus-visible { outline-color: var(--gelb); }
article.page h1[tabindex="-1"]:focus, main h1[tabindex="-1"]:focus { outline: none; }
@media (forced-colors: active) { :focus-visible { outline: 3px solid Highlight; } .btn { border: 1px solid ButtonText; } }

/* ---------- Vorschau-Band und Kopfleiste ---------- */
.preview-banner {
  background: #141A10; color: #F3F6EC; font-size: .86rem; font-weight: 500;
  letter-spacing: .01em; padding: .6rem 1.25rem; text-align: center; position: relative; z-index: 120;
}
.preview-banner a { color: var(--gelb); text-decoration-color: rgba(242,194,0,.6); display: inline-flex; align-items: center; min-height: 32px; }
.preview-banner strong { color: inherit; }

.topbar { background: var(--flaeche); border-bottom: 1px solid var(--linie); font-size: .875rem; color: var(--text); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 40px; }
.topbar a { color: var(--tinte); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; }
.topbar a:hover { color: var(--link); }
.topbar .punkt { width: .55rem; height: .55rem; border-radius: 50%; background: var(--blatt); box-shadow: 0 0 0 3px rgba(125,164,51,.28); flex: none; }
.topbar-ort { color: var(--grau); }
.topbar-kontakt { display: flex; gap: 1.5rem; align-items: center; color: var(--grau); }
.topbar-kontakt span { white-space: nowrap; }
@media (max-width: 52rem) { .topbar-kontakt .zeiten { display: none; } }
@media (max-width: 40rem) { .topbar { display: none; } }

/* ---------- Kopf ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: rgba(251,251,247,.86);
  background: color-mix(in srgb, var(--papier) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, background .25s ease;
}
body.gescrollt .site-header { border-bottom-color: var(--linie); background: color-mix(in srgb, var(--papier) 94%, transparent); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; margin-right: auto; text-decoration: none; color: var(--tinte); min-height: 44px; }
.brand img { width: 2.3rem; height: auto; }
.brand-name { display: block; font-family: var(--marke); font-weight: 700; font-stretch: 125%; font-size: 1.06rem; letter-spacing: .04em; text-transform: uppercase; color: var(--tinte); line-height: 1.1; }
.brand-sub { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .03em; color: var(--grau); margin-top: .18rem; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: .1rem; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7rem;
  font-size: .92rem; font-weight: 500; color: var(--text); text-decoration: none;
  border-radius: var(--r); position: relative; white-space: nowrap;
}
.site-nav a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .55rem; height: 1.5px;
  background: var(--blatt); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.site-nav a:hover { color: var(--tinte); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a.nav-cta { background: var(--knopf); color: var(--knopf-text); padding: 0 1.2rem; margin-left: .6rem; font-weight: 600; }
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover { background: var(--knopf-hover); color: var(--knopf-text); }
.nav-toggle {
  display: none; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .95rem;
  font: inherit; font-family: var(--sans); font-weight: 600; font-size: .95rem;
  background: transparent; color: var(--tinte); border: 1px solid var(--linie2); border-radius: var(--r); cursor: pointer;
}
@media (max-width: 72rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 1px solid var(--linie); box-shadow: var(--schatten-2); padding: .5rem 1.25rem 1.4rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  /* Eingeklappt nur, wenn JavaScript läuft (html.js); ohne JavaScript bleibt die Navigation sichtbar */
  html.js .site-nav { display: none; }
  html.js body.nav-open .site-nav { display: block; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav { position: static; box-shadow: none; max-height: none; flex: 1 1 100%; width: 100%; padding-left: 0; padding-right: 0; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { min-height: 54px; padding: 0 .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--linie); border-radius: 0; }
  .site-nav a::after { display: none; }
  .site-nav a.nav-cta { justify-content: center; margin: 1rem 0 0; border-bottom: 0; border-radius: var(--r); }
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .85rem 1.75rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .005em; line-height: 1.25;
  background: var(--knopf); color: var(--knopf-text); border: 1px solid var(--knopf);
  border-radius: var(--r); text-decoration: none; cursor: pointer; text-align: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--knopf-hover); border-color: var(--knopf-hover); color: var(--knopf-text); }
.btn-secondary { background: transparent; color: var(--tinte); border-color: var(--linie2); }
.btn-secondary:hover { background: transparent; border-color: var(--tinte); color: var(--tinte); }
.btn-gelb, .cta .btn:not(.btn-secondary), .band .btn:not(.btn-secondary) { background: var(--gelb); border-color: var(--gelb); color: var(--gelb-tinte); }
.btn-gelb:hover, .cta .btn:not(.btn-secondary):hover, .band .btn:not(.btn-secondary):hover { background: var(--gelb-hell); border-color: var(--gelb-hell); color: var(--gelb-tinte); }
.cta .btn-secondary, .band .btn-secondary { background: transparent; color: var(--auf-dunkel); border-color: rgba(243,246,236,.4); }
.cta .btn-secondary:hover, .band .btn-secondary:hover { border-color: var(--auf-dunkel); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; align-items: center; }
.textlink { font-weight: 600; color: var(--tinte); text-decoration: underline; text-decoration-color: var(--blatt); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.textlink:hover { color: var(--link); }
@media (max-width: 30rem) { .actions .btn { flex: 1 1 100%; } }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--abschnitt); }
.section.alt, .section.faq-section { background: var(--flaeche); }
.section.eng { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { max-width: var(--mass); margin-bottom: clamp(2.25rem, 4vw, 3.5rem); position: relative; padding-top: 1.6rem; }
.section-head::before { content: ""; position: absolute; top: 0; left: 0; width: 2.75rem; height: 2px; background: var(--blatt); }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--grau); font-size: 1.1rem; margin: 0; }
.container > * + .section-head { margin-top: clamp(3.5rem, 6vw, 5.5rem); }
h2[id], h3[id], section[id], div[id] { scroll-margin-top: calc(var(--header-h) + 2rem); }
.eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); margin: 0 0 .9rem; }

/* ---------- Held ---------- */
.hero { position: relative; padding-block: clamp(2.25rem, 5vw, 4.25rem) clamp(2.5rem, 5vw, 4rem); background: var(--papier); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 62rem; height: 46rem;
  background: radial-gradient(closest-side, rgba(125,164,51,.15), transparent 72%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: clamp(2.25rem, 4vw, 4rem); position: relative; }
@media (min-width: 64rem) { .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.hero-kicker {
  display: flex; align-items: center; gap: .8rem; margin: 0 0 1.5rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grau);
}
.hero-kicker::before { content: ""; width: 2.25rem; height: 1.5px; background: var(--blatt); flex: none; }
.hero h1 { margin-bottom: .35em; font-size: clamp(2.8rem, 5.6vw, 5.1rem); }
.hero .lead { font-size: clamp(1.1rem, 1.35vw, 1.22rem); color: var(--text); max-width: 31em; }
.belege { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9375rem; color: var(--grau); }
.belege li { display: inline-flex; align-items: center; gap: .5rem; }
.belege .textlink { min-height: 0; }
.belege li::before { content: ""; width: .45rem; height: .45rem; background: var(--blatt); flex: none; }
.hero-figure { margin: 0; position: relative; }
@media (min-width: 64rem) { .hero-figure { margin-top: 3.5rem; } }
.hero-figure img { display: block; width: 100%; border-radius: var(--r); box-shadow: var(--schatten-3); }
.hero-figure figcaption { margin-top: .75rem; font-size: .875rem; color: var(--grau); }
/* Kilowattstunden-Zähler im Bild: kleine Marken aus dunkelgrünem Glas, bewusst zurückhaltend – Gewinne grün, Verluste gelb.
   Photovoltaik und Lüftung stehen im Himmel rechts oben, Dach, Außenwand, Fenster und Kellerdecke an ihren Bauteilen; der
   aufgeschnittene Giebel bleibt frei. Deckkraft des Glases nicht unter .76 senken: gemessen gegen die hellste Bildstelle bleibt
   das Grün sonst unter 4,5 zu 1 (work/kontrast.py). */
/* dunkler Grund in der mittleren Farbe des Bildes: solange das Bild lädt, bleiben die Marken lesbar */
.hero-bild { position: relative; container-type: inline-size; background: #4e5a4c; border-radius: var(--r); }
/* Schriftgröße richtet sich nach der Bildbreite (cqw); die Angabe davor ist der Rückfall für ältere Browser */
.hero-kwh { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; color: #fff; line-height: 1.25;
  font-size: clamp(.58rem, .28rem + .8vw, .64rem); font-size: clamp(.58rem, 2.3cqw, .64rem); }
.hero-kwh li { position: absolute; left: var(--lm); right: var(--rm); top: var(--ym); bottom: var(--bm); padding: .2em .56em .22em; border-radius: .5em; white-space: nowrap;
  background: rgba(18, 37, 16, .78);   /* Tanne-tief als Glas */
  -webkit-backdrop-filter: blur(6px) saturate(1.15); backdrop-filter: blur(6px) saturate(1.15); }
.hero-kwh li.mehr { padding: .28em .6em .3em; }
.hero-kwh .k-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: .75em; }
.hero-kwh .k-name { color: rgba(243, 246, 236, .86); }
.hero-kwh .k-zahl { white-space: nowrap; }
.hero-kwh .k-wert { display: inline-block; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; color: var(--gelb-hell); }
.hero-kwh .gewinn .k-wert { color: #A9D361; }   /* das Blattgrün der Website für dunklen Grund */
.hero-kwh .k-einheit { font-size: .86em; color: rgba(243, 246, 236, .86); }   /* „kWh“ hinter jeder Zahl, etwas kleiner */
/* Handys: kürzeres Wort, damit die Marken das Haus nicht zudecken („Rückgewinnung“) */
@media (max-width: 29.99rem) {
  .hero-kwh .k-lang { display: none; }
  .hero-kwh .k-name[data-kurz]::after { content: attr(data-kurz); }
}
@media (min-width: 78rem) {
  .hero-kwh li { left: var(--l); right: var(--r); top: var(--y); bottom: var(--b); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero-kwh li { animation: kwh-ein .6s ease-out both; }
  .js .hero-kwh li:nth-child(2) { animation-delay: .1s; } .js .hero-kwh li:nth-child(3) { animation-delay: .2s; }
  .js .hero-kwh li:nth-child(4) { animation-delay: .3s; } .js .hero-kwh li:nth-child(5) { animation-delay: .4s; }
  .js .hero-kwh li:nth-child(6) { animation-delay: .5s; }
  @keyframes kwh-ein { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
}

/* Ansprechpartnerin – kompakte Karte */
.ap-karte {
  display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--text);
  background: var(--rein); border: 1px solid var(--linie); border-radius: 6px;
  padding: .75rem 1.1rem .75rem .75rem; box-shadow: var(--schatten-2); max-width: 24rem;
}
.ap-karte img { width: 3.75rem; height: 3.75rem; border-radius: 50%; object-fit: cover; flex: none; filter: grayscale(1); }
.ap-karte .ap-label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blatt-tief); }
.ap-karte .ap-name { display: block; font-family: var(--display); font-size: 1.3rem; line-height: 1.15; color: var(--tinte); }
.ap-karte .ap-zeile { display: block; font-size: .9rem; color: var(--grau); line-height: 1.45; }
.hero-figure .ap-karte { margin: -2.25rem 0 0 1rem; position: relative; }
/* erst ab 78rem ist das Bild breit genug, dass die Karte links über dem Bild liegen kann, ohne die Anzeige zu verdecken */
@media (min-width: 78rem) { .hero-figure .ap-karte { position: absolute; left: -2rem; bottom: 2.5rem; margin: 0; } }

/* Befristeter Hinweis unter dem Einstieg (data-bis: blendet sich nach dem Stichtag selbst aus) */
.fristband { background: var(--flaeche2); border-block: 1px solid var(--linie); }
.fristband p { margin: 0; padding: .95rem 0 .95rem 1.1rem; border-left: 3px solid var(--gelb); font-size: .9375rem; line-height: 1.5; color: var(--text); }
.fristband strong { color: var(--tinte); }
.fristband[hidden] { display: none; }

/* Kennzahlen */
.trust {
  list-style: none; margin: clamp(2.5rem, 4vw, 3.5rem) 0 0; padding: 1.75rem 0 0;
  display: grid; gap: 1.5rem 2rem; border-top: 1px solid var(--linie); grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 64rem) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust li { margin: 0; font-size: 1rem; line-height: 1.45; color: var(--grau); }
.trust li strong {
  display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 3.2vw, 2.9rem);
  line-height: 1; letter-spacing: -.03em; color: var(--tinte); margin-bottom: .35rem; white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- Seitenkopf ---------- */
.page-head { padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(2.25rem, 4vw, 3.5rem); border-bottom: 1px solid var(--linie); background: var(--papier); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); }
.page-head .lead { font-size: clamp(1.08rem, 1.35vw, 1.2rem); color: var(--grau); max-width: var(--mass); margin-bottom: 0; }
.page-head-grid { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 60rem) { .page-head-grid { grid-template-columns: 1fr auto; } }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 0 .5rem; padding: 0; margin: 0 0 1.25rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grau); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--linie2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--grau); text-decoration: none; }
.crumbs a:hover { color: var(--tinte); }
.fakten { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; font-size: .95rem; color: var(--text); }
.fakten li { display: flex; gap: .55rem; align-items: baseline; }
.sprungmarken { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.4rem; margin: 1.25rem 0 0; font-size: .95rem; }
.sprungmarken span { flex-basis: 100%; color: var(--grau); }
.sprungmarken a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.fakten li span { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grau); }

/* ---------- Raster, Haarlinien-Blöcke ---------- */
.grid { display: grid; gap: clamp(2rem, 3vw, 3rem) clamp(2rem, 3.5vw, 3.5rem); }
.grid.cols-1 { grid-template-columns: 1fr; }
@media (min-width: 42rem) { .grid.cols-2, .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.cell { position: relative; padding-top: 1.35rem; border-top: 1px solid var(--linie2); }
.cell::after { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--blatt); transition: width .35s cubic-bezier(.22,.61,.36,1); }
.cell:hover::after { width: 100%; }
.cell h3 { margin-bottom: .55rem; font-size: 1.5rem; }
.cell p { color: var(--grau); margin-bottom: .75rem; }
.cell p:last-child { margin-bottom: 0; }
.cell .more { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--tinte); }
.cell .more::after { content: "→"; color: var(--blatt-tief); transition: transform .2s ease; }
.cell:hover .more::after { transform: translateX(4px); }

/* Leistungsliste als Zeilen */
.zeilen { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie2); }
.zeilen > li { border-bottom: 1px solid var(--linie); }
.zeilen a.zeile { display: grid; gap: .3rem 2rem; padding: 1.35rem 0; color: inherit; text-decoration: none; }
@media (min-width: 48rem) { .zeilen a.zeile { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr) auto; align-items: baseline; } }
.zeile .z-titel { font-family: var(--display); font-weight: 400; color: var(--tinte); font-size: 1.42rem; letter-spacing: -.012em; line-height: 1.2; }
.zeile .z-text { color: var(--grau); }
.zeile .z-mehr { color: var(--blatt-tief); font-weight: 600; white-space: nowrap; }
.zeile .z-mehr::after { content: " →"; }
a.zeile:hover .z-titel { text-decoration: underline; text-decoration-color: var(--blatt); text-underline-offset: 4px; }

/* ---------- Listen ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.35rem; max-width: var(--mass); }
.checklist li { position: relative; padding-left: 1.7rem; margin-bottom: .65rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem; background: var(--blatt); }
.versprechen { list-style: none; padding: 1.75rem 0 0; margin: 2.5rem 0 0; display: grid; gap: 1.25rem 3rem; border-top: 1px solid var(--linie); }
@media (min-width: 52rem) { .versprechen { grid-template-columns: 1fr 1fr; } }
.versprechen li { position: relative; padding-left: 1.7rem; color: var(--text); }
.versprechen li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem; background: var(--gelb); }
.sr-none { margin-top: 3.5rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); font-weight: 600; }

/* Schritte */
.steps { list-style: none; counter-reset: schritt; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.steps > li { min-width: 0; }
@media (min-width: 60rem) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: 3.5rem; } }
.steps > li { counter-increment: schritt; display: flex; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--linie); }
.steps > li::before {
  content: counter(schritt, decimal-leading-zero);
  font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1; letter-spacing: -.03em;
  color: var(--blatt-tief); flex: none; width: 2.6rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.steps h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.steps p { color: var(--grau); }
.steps p:last-child { margin-bottom: 0; }

/* ---------- Zweispalter, Prosa ---------- */
.two-col { display: grid; gap: clamp(2.25rem, 4vw, 4.5rem); align-items: start; }
/* Rasterkinder dürfen schmaler werden als ihr längstes Wort (sonst Überlauf bei 320 px) */
.two-col > *, .grid > *, .steps li > div, .wege > *, .aside-stack > * { min-width: 0; }
p, li, dd, td, th, .lead, .note { overflow-wrap: break-word; }
p a, li a, .steps a { overflow-wrap: anywhere; }   /* E-Mail-Adressen und URLs dürfen umbrechen */
@media (min-width: 60rem) { .two-col { grid-template-columns: 1fr 1fr; } .two-col.breit-schmal { grid-template-columns: 1.35fr .9fr; } }
.prose { max-width: var(--mass); }
.prose h2 { margin-top: 3rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2.1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--blatt-tief); }
.lead { font-size: 1.13rem; color: var(--grau); }
.aside-stack { display: grid; gap: 2rem; align-content: start; }

/* ---------- Hinweisbox ---------- */
.callout, .note { background: var(--flaeche2); border-left: 2px solid var(--blatt); padding: 1.2rem 1.5rem; margin: 0 0 1.5rem; font-size: 1rem; }
.callout p:last-child, .note p:last-child { margin-bottom: 0; }
.note.stand { border-left-color: var(--gelb); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--tinte); }
.table-wrap:focus-visible { outline-offset: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: lining-nums tabular-nums; }
caption { text-align: left; color: var(--grau); font-size: .9375rem; padding: 0 0 .75rem; }
th, td { text-align: left; padding: 1.05rem 1.25rem 1.05rem 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; }
thead th { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grau); font-weight: 600; padding-top: 1rem; }
td.num, th.num { text-align: right; white-space: nowrap; }
.tabellen-hinweis { font-size: .9375rem; color: var(--grau); max-width: 46em; margin-top: 1.25rem; }
@media (max-width: 40rem) {
  table.stapeln { display: block; width: 100%; }
  table.stapeln tbody { display: block; }
  table.stapeln thead { display: block; position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  table.stapeln tr { display: block; padding: .9rem 0; border-bottom: 1px solid var(--linie); }
  table.stapeln td, table.stapeln th[scope="row"] { display: grid; grid-template-columns: 8rem 1fr; gap: .9rem; padding: .25rem 0; border: 0; text-align: left; white-space: normal; }
  table.stapeln th[scope="row"] { display: block; font-size: 1.05rem; padding-bottom: .4rem; }
  table.stapeln td::before { content: attr(data-label); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--grau); padding-top: .25em; }
  table.stapeln td.num { text-align: left; }
}
@media (max-width: 24rem) { table.stapeln td, table.stapeln th[scope="row"] { grid-template-columns: 6.25rem 1fr; gap: .6rem; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--linie); max-width: 52rem; }
.faq:last-of-type { border-bottom: 1px solid var(--linie); }
.faq summary {
  cursor: pointer; list-style: none; position: relative; display: flex; align-items: center;
  min-height: 62px; padding: 1.1rem 3rem 1.1rem 0;
  font-family: var(--display); font-weight: 400; font-size: 1.32rem; color: var(--tinte); letter-spacing: -.01em; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--blatt-tief); }
.faq[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--link); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq-a { padding: 0 3rem 1.6rem 0; max-width: var(--mass); color: var(--grau); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-group { margin-top: 3.5rem; }
.faq-group:first-child { margin-top: 0; }
.faq-group h2 { font-size: 2.1rem; }

/* ---------- Einstiege ---------- */
.wege { display: grid; gap: 0; margin: 2rem 0 0; border-top: 1px solid var(--linie); }
@media (min-width: 60rem) { .wege { grid-template-columns: repeat(3, 1fr); column-gap: 3rem; } }
.weg { display: flex; flex-direction: column; padding: 1.75rem 0 2rem; border-bottom: 1px solid var(--linie); }
@media (min-width: 60rem) { .weg { border-bottom: 0; } }
.weg .aufwand { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blatt-tief); margin: 0 0 .7rem; }
.weg h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.weg p { flex: 1; color: var(--grau); }
.weg .btn { margin-top: 1.4rem; align-self: flex-start; }

/* ---------- Kopierbox ---------- */
.kopierbox { background: var(--rein); border: 1px solid var(--linie); padding: 1.8rem 1.8rem 1.5rem; }
.kopierbox h3 { font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--grau); margin-bottom: 1.1rem; }
.kopierbox .vorlage { white-space: pre-wrap; font-size: .98rem; line-height: 1.75; margin: 0 0 1.2rem; color: var(--text); }
.kopierbox .vorlage:last-child { margin-bottom: 0; }
.widerruf-erklaerung { background: var(--flaeche2); border-left: 2px solid var(--blatt); padding: 1rem 1.25rem; margin: 0 0 1.25rem; }
.kopierbox .vorlage em { font-style: normal; background: rgba(242,194,0,.3); padding: .05em .3em; font-weight: 600; }
.kopier-hinweis { font-size: .9375rem; color: var(--grau); margin: 0; padding-top: 1rem; border-top: 1px solid var(--linie); }

/* ---------- Ansprechpartnerin – großer Block ---------- */
.ansprech { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 1.5rem; align-items: center; padding-bottom: 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--linie); }
.ansprech img { width: clamp(6.5rem, 16vw, 8.5rem); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; filter: grayscale(1); box-shadow: 0 0 0 4px var(--papier), 0 0 0 5px var(--linie2); }
.ansprech .a-label { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--blatt-tief); margin-bottom: .3rem; }
.ansprech .a-name { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2rem); letter-spacing: -.02em; color: var(--tinte); line-height: 1.1; }
.ansprech .a-rolle { display: block; font-size: .98rem; color: var(--grau); margin-top: .3rem; }
.ansprech p { grid-column: 1 / -1; margin: 0; color: var(--text); }
@media (min-width: 40rem) { .ansprech p { grid-column: 2; } }

.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { margin-bottom: .2rem; display: flex; flex-wrap: wrap; gap: 0 .75rem; align-items: baseline; }
.contact-list .c-art { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grau); min-width: 5.5rem; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--tinte); text-decoration: none; border-bottom: 1px solid var(--linie2); }
.contact-list a:hover { border-bottom-color: var(--blatt); }

/* ---------- Formular ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.35rem 1.5rem; align-items: end; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
label, .label { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); }
input, select, textarea {
  font: inherit; font-family: var(--sans); padding: .75rem 0; border: 0; border-bottom: 1px solid var(--grau);
  border-radius: 0; background: transparent; color: var(--tinte); width: 100%; min-height: 48px;
  transition: border-color .18s ease;
}
select { padding-right: 1rem; }
select option { color: #141A10; background: #fff; }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--tinte); outline: none; box-shadow: 0 1px 0 0 var(--tinte); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--fokus); outline-offset: 4px; }
input::placeholder, textarea::placeholder { color: var(--grau); opacity: 1; }
input:user-invalid, textarea:user-invalid { border-bottom-color: #B3261E; }
textarea { min-height: 7rem; resize: vertical; }
.form-note { font-size: .9375rem; color: var(--grau); }
.feld-hinweis { display: block; margin-top: .35rem; font-size: .8125rem; color: var(--grau); line-height: 1.45; }
input[type="file"] { padding: .75rem 0; border-bottom: 1px dashed var(--grau); font-size: .9375rem; color: var(--tinte); cursor: pointer; }
input[type="file"]::file-selector-button { font: inherit; font-size: .9rem; font-weight: 600; padding: .45rem .9rem; margin-right: .75rem; border: 1px solid var(--tinte); border-radius: 999px; background: transparent; color: var(--tinte); cursor: pointer; }
input[type="file"]:focus { border-bottom-style: solid; }
.zaehler { display: block; min-height: 1.2em; margin-top: .3rem; font-size: .82rem; color: var(--grau); text-align: right; }
.zaehler.zu-lang { color: #B3261E; font-weight: 600; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--text); cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; min-height: 0; flex: none; margin-top: .2rem; accent-color: var(--tanne-weich); }
.consent { font-size: .9375rem; color: var(--grau); }
.falle { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
.formular-box { border-top: 1px solid var(--linie); padding-top: 1.75rem; }
.meldung { border-left: 3px solid var(--blatt); background: var(--flaeche); padding: 1rem 1.25rem; margin-top: 1rem; }

/* Bestellung Verbrauchsausweis: Blöcke mit Serifen-Titel, Verbrauchstabelle, Preiszeile */
.bestellung { max-width: 60rem; }
.bestellung .bestell-block { border: 0; padding: 1.5rem 0 0; margin: 0 0 2.5rem; border-top: 1px solid var(--linie2); min-width: 0; }
.bestellung legend { float: left; width: 100%; padding: 0; margin: 0 0 1.1rem; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; letter-spacing: -.01em; color: var(--tinte); }
.bestellung .block-intro { clear: both; margin: 0 0 1.1rem; max-width: 46em; font-size: .95rem; color: var(--grau); }
.bestellung .bestell-block > * { clear: both; }   /* alles unter der schwebenden Legende, auch einzelne Felder */
.bestellung .form-grid { align-items: start; }      /* Felder mit Hinweistext sollen die Nachbarn nicht nach unten schieben */
.vt-zeile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.25rem; padding: 1rem 0 1.15rem; border-top: 1px solid var(--linie); }
.vt-zeile .zeitraum-nr { grid-column: 1 / -1; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blatt-tief); }
@media (min-width: 46rem) { .vt-zeile { grid-template-columns: 1.1fr 1.1fr 1fr 1fr; } }
.vt-unten { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--linie); }
.bestell-summe { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.5rem; border-top: 2px solid var(--tinte); padding-top: 1rem; margin-top: .5rem; color: var(--text); }
.bestell-summe strong { font-family: var(--display); font-weight: 400; font-size: 2.3rem; letter-spacing: -.02em; color: var(--tinte); }
.bestellung .actions { margin-top: 1.25rem; }
.bestellung .check em { font-style: normal; color: var(--grau); }
button.textlink { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
.bestell-summe small { display: block; font-size: .85rem; font-weight: 400; letter-spacing: 0; text-transform: none; margin-top: .2rem; }
.check-liste { display: grid; gap: .6rem; margin-top: .4rem; }
.zahlung-zeile { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; max-width: 44em; margin: 1rem 0 1.25rem; }
/* Fördercheck: Rechner im Checker-Rahmen, Ergebnis als Zeilen */
.rechner .rechner-eingaben { margin-bottom: 1.25rem; align-items: start; }
.rechner .rechner-eingaben .field[hidden] { display: none; }
.rechner-zeilen { margin: .5rem 0 1rem; border-top: 1px solid var(--linie2); }
.rechner-zeilen div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--linie); font-size: .95rem; }
.rechner-zeilen dt { color: var(--grau); margin: 0; }
.rechner-zeilen dd { margin: 0; color: var(--tinte); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.rechner-hinweis { border-left: 3px solid var(--gelb); padding-left: .9rem; font-size: .92rem; color: var(--text); margin: 0 0 .8rem; }
.rechner-ergebnis h3 { font-size: 1.5rem; }
.bestellung .block-intro .muted { color: var(--grau); }
.page-head .actions { margin-top: 1.75rem; }
.meldung.fehler { border-left-color: #B3261E; }

/* ---------- Bildband ---------- */
.bildband { padding-block: 0 var(--abschnitt); background: var(--papier); }
.bildband figure { margin: 0; }
.bildband img { display: block; width: 100%; border-radius: var(--r); max-height: 72vh; object-fit: cover; }
.bildband figcaption { margin-top: 1rem; font-size: .9375rem; color: var(--grau); max-width: var(--mass); }
.bestand { margin: 0; }
.bestand-grid { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 60rem) { .bestand-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.bestand svg { width: 100%; height: auto; display: block; }
.bestand-text .eyebrow { margin-bottom: .75rem; }
.bestand-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 60rem) { .bestand-liste { grid-template-columns: 1fr; } }
.bestand-liste li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; line-height: 1.45; color: var(--grau); }
.bestand-liste strong { color: var(--tinte); }
.b-nr { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--tanne); color: #fff; font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; margin-top: .1rem; }
.bestand-fazit { margin: 1rem 0 0; font-size: .95rem; color: var(--grau); }
.bestand figcaption { margin-top: 1.25rem; font-size: .9375rem; color: var(--grau); }

/* Gebäudemodell und Wärmeverlust-Bilanz */
.vl-figur { margin: 0; }
.vl-grid { display: grid; gap: 2.25rem 3rem; align-items: start; }
@media (min-width: 60rem) { .vl-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.vl-modell svg { display: block; width: 100%; max-width: 34rem; height: auto; }
.vl-modell .eyebrow, .vl-text .eyebrow { margin-bottom: .8rem; }
.vl-st { fill: var(--tinte); font-family: var(--sans); font-size: 17px; font-weight: 600; }
.vl-st-leise { fill: var(--grau); font-family: var(--sans); font-size: 15px; }
/* Lichthof um die Beschriftung: bleibt lesbar, auch wo sie über Bodenplatte oder Keller läuft – im Hell- wie im Dunkelmodus */
.vl-st, .vl-st-leise { paint-order: stroke fill; stroke: var(--papier); stroke-width: 5px; stroke-linejoin: round; }
.vl-legende { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .84rem; color: var(--grau); }
.vl-legende li { display: inline-flex; align-items: center; gap: .4rem; }
.vl-legende i { width: .8rem; height: .8rem; border-radius: 50%; display: inline-block; flex: none; box-shadow: 0 0 0 1.5px var(--papier); }
.vl-legende .l1 { background: var(--k-g); } .vl-legende .l2 { background: var(--k-f); } .vl-legende .l3 { background: var(--k-e); } .vl-legende .l4 { background: var(--flaeche); border: 1px dashed var(--linie2); box-shadow: none; }
.vl-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.vl-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name wert" "balken balken" "paket paket"; gap: .25rem .8rem; align-items: center; }
@media (min-width: 46rem) { .vl-zeile { grid-template-columns: 14.5rem minmax(0, 1fr) 3.4rem 6.5rem; grid-template-areas: "name balken wert paket"; gap: .5rem 1rem; } }
.vl-name { grid-area: name; font-weight: 600; color: var(--tinte); line-height: 1.3; font-size: .97rem; }
.vl-name small { display: block; font-weight: 400; font-size: .8rem; color: var(--grau); line-height: 1.35; margin-top: .1rem; }
.vl-balken { grid-area: balken; display: block; height: .85rem; background: var(--flaeche2); position: relative; overflow: hidden; border-radius: 2px; }
.vl-balken span { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--tanne); }
.vl-zeile.p2 .vl-balken span { background: var(--blatt-tief); }
.vl-zeile.p3 .vl-balken span { background: var(--blatt); }
.vl-wert { grid-area: wert; font-family: var(--display); font-size: 1.35rem; color: var(--tinte); text-align: right; line-height: 1; white-space: nowrap; }
.vl-paket { grid-area: paket; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blatt-tief); white-space: nowrap; }
.vl-zeile.p3 .vl-paket { color: var(--grau); }
.vl-fazit { margin: 1.2rem 0 0; font-size: .95rem; color: var(--grau); }
.vl-figur figcaption { margin-top: 1.4rem; font-size: .9375rem; color: var(--grau); max-width: var(--mass); }
.section.alt .vl-balken { background: #D5DCC6; }

/* Auswertung wie im Sanierungsfahrplan: heute / nach den Paketen */
.vv-figur { margin: 0; }
.vv-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-bottom: 1rem; }
.vv-kopf .eyebrow { margin: 0; }
.vv-legende { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.1rem; font-size: .84rem; color: var(--grau); }
.vv-legende li { display: inline-flex; align-items: center; gap: .4rem; }
.vv-legende i, .vv-balken span { display: block; }
.vv-legende i { width: .9rem; height: .55rem; border-radius: 1px; }
.vv-legende .ist, .vv-balken .ist { background: #B23A32; }
.vv-legende .var, .vv-balken .var { background: #3E8E5A; }
.vv-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie2); }
.vv-zeile, .vv-summe { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name delta" "balken balken" "werte werte"; gap: .3rem .9rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--linie); margin: 0; }
@media (min-width: 46rem) { .vv-zeile, .vv-summe { grid-template-columns: 13rem minmax(0, 1fr) 7.5rem 6.5rem; grid-template-areas: "name balken werte delta"; gap: .5rem 1.25rem; } }
.vv-name { grid-area: name; font-weight: 600; color: var(--tinte); line-height: 1.3; font-size: .97rem; }
.vv-name small { display: block; font-weight: 400; font-size: .8rem; color: var(--grau); line-height: 1.35; margin-top: .1rem; }
.vv-balken { grid-area: balken; display: grid; gap: 3px; }
.vv-balken span { height: .6rem; width: var(--w); min-width: 2px; border-radius: 1px; }
/* negativer Bilanzwert (rechnerischer Gewinn durch angerechnete Umweltwärme): schraffiert statt als Nullbalken */
/* Listen mit einem negativen Wert bekommen eine Nulllinie; positive Balken beginnen dort, der negative läuft nach links */
.hat-negativ .vv-balken { position: relative; padding-left: 10%; }
.hat-negativ .vv-balken::before { content: ""; position: absolute; left: 10%; top: -.35rem; bottom: -.35rem; border-left: 1px solid var(--tinte); opacity: .55; }
.vv-balken .var.negativ { margin-left: calc(-1 * var(--w)); min-width: 3px; }
.vv-werte .var small { display: block; font-size: .72rem; font-weight: 400; color: var(--grau); line-height: 1.2; }
.vv-werte { grid-area: werte; display: grid; gap: 2px; font-size: .9rem; font-variant-numeric: lining-nums tabular-nums; text-align: right; line-height: 1.2; }
.vv-werte .ist { color: var(--vv-ist); }
.vv-werte .var { color: var(--vv-var); }
.vv-delta { grid-area: delta; font-family: var(--display); font-size: 1.3rem; line-height: 1; color: var(--tinte); text-align: right; white-space: nowrap; }
.vv-delta small { display: block; font-family: var(--sans); font-size: .78rem; color: var(--grau); margin-top: .25rem; }
.vv-zeile.unveraendert .vv-delta { color: var(--grau); }
.vv-summe { border-bottom: 0; border-top: 1px solid var(--tinte); padding-top: .9rem; }
.vv-summe .vv-name { font-size: 1.02rem; }
.vv-summe .vv-werte { font-weight: 600; }
@media (max-width: 45.99rem) { .vv-werte { display: flex; justify-content: flex-start; gap: 1rem; text-align: left; } .vv-werte .ist::before { content: "heute "; color: var(--grau); } .vv-werte .var::before { content: "danach "; color: var(--grau); } }
.vv-figur figcaption { margin-top: 1.2rem; font-size: .9375rem; color: var(--grau); max-width: var(--mass); }
/* Kleinformat der Auswertung neben dem Gebäudemodell (iSFP-Seite) */
.vv-klein .vv-zeile { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name delta" "balken balken"; padding: .6rem 0; gap: .25rem .8rem; }
.vv-klein.vv-summe { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name delta" "werte werte"; padding: .8rem 0 0; gap: .25rem .8rem; }
@media (min-width: 46rem) { .vv-klein .vv-zeile { grid-template-columns: 10rem minmax(0, 1fr) 8rem; grid-template-areas: "name balken delta"; gap: .4rem .9rem; } .vv-klein.vv-summe { grid-template-columns: 10rem minmax(0, 1fr) 8rem; grid-template-areas: "name werte delta"; gap: .4rem .9rem; } }
.vv-klein .vv-name { font-size: .9rem; }
.vv-klein .vv-name small { font-size: .74rem; }
.vv-klein .vv-balken span { height: .5rem; }
.vv-klein .vv-delta { font-size: 1.1rem; }
.vv-klein .vv-delta small { font-size: .72rem; margin-top: .15rem; white-space: nowrap; }
.vv-klein .vv-werte { font-size: .84rem; }
.vl-text .vv-kopf { margin-bottom: .6rem; }
.vl-text .vv-liste { border-top: 1px solid var(--linie2); }
.section .vl-text .vv-summe .vv-werte { font-weight: 600; }
.checker { display: grid; gap: 1.25rem; max-width: 60rem; }
.checker fieldset { border: 0; padding: 0; margin: 0; border-top: 1px solid var(--linie); padding-top: 1rem; }
.checker legend { font-family: var(--display); font-size: 1.3rem; line-height: 1.25; color: var(--tinte); padding: 0; margin-bottom: .75rem; float: left; width: 100%; }
.checker .opts { display: flex; flex-wrap: wrap; gap: .6rem; clear: both; }
.checker .opt { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .35rem 1rem; border: 1px solid var(--linie2); border-radius: 999px; background: var(--rein); cursor: pointer; font-size: .98rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--tinte); }
.checker .opt:hover { border-color: var(--tinte); }
.checker .opt:has(input:checked) { background: var(--tanne); color: #fff; border-color: var(--tanne); }
.checker .opt:has(input:focus-visible) { outline: 2px solid var(--fokus); outline-offset: 3px; }
.checker .opt input { width: 1rem; height: 1rem; margin: 0; border: 0; box-shadow: none; accent-color: var(--blatt); }
.checker-ergebnis { background: var(--rein); border-left: 3px solid var(--gelb); padding: 1.4rem 1.6rem; }
.checker-ergebnis h3 { font-family: var(--display); font-size: 1.6rem; margin: .2rem 0 .6rem; }
.checker-ergebnis p { margin: 0 0 1rem; }
.checker-ergebnis .btn { margin-top: .25rem; }
.checker .tabellen-hinweis { margin-top: 0; }

/* ---------- Bänder ---------- */
.cta, .band { background: var(--tanne); color: var(--auf-dunkel); padding-block: clamp(3.75rem, 7vw, 6.5rem); position: relative; overflow: clip; }
.cta::before, .band::before {
  content: ""; position: absolute; inset: auto auto -40% -12%; width: 46rem; height: 34rem;
  background: radial-gradient(closest-side, rgba(125,164,51,.28), transparent 72%); pointer-events: none;
}
.cta .container, .band .container { position: relative; }
.cta h2, .band h2, .cta h3, .band h3 { color: #fff; }
.cta h2, .band h2 { max-width: 16em; }
.cta p, .band p { color: var(--auf-dunkel-leise); max-width: 40em; font-size: 1.08rem; }
.cta strong, .band strong { color: inherit; }
.band .section-head::before { background: var(--gelb); }
.band .section-head p { color: var(--auf-dunkel-leise); }
.band .cell { border-top-color: rgba(243,246,236,.22); }
.band .cell p { color: var(--auf-dunkel-leise); }
.band .cell::after { background: var(--gelb); }
.cta-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .cta-grid { grid-template-columns: 1fr auto; } }
.cta .actions { margin-bottom: 0; }
.cta-person { display: flex; gap: 1rem; align-items: center; color: var(--auf-dunkel); max-width: 22rem; }
.cta-person img { width: 5.25rem; height: 5.25rem; border-radius: 50%; object-fit: cover; filter: grayscale(1); box-shadow: 0 0 0 3px rgba(242,194,0,.9); flex: none; }
.cta-person .p1 { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.15; color: #fff; }
.cta-person .p2 { display: block; font-size: .95rem; color: var(--auf-dunkel-leise); line-height: 1.45; margin-top: .2rem; }

/* Express-Band */
.express { background: var(--flaeche2); border-top: 3px solid var(--gelb); padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.express-inner { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 60rem) { .express-inner { grid-template-columns: auto minmax(0, 1fr) auto; } }
.express-marke { display: flex; align-items: baseline; gap: .6rem; color: var(--tinte); }
.express-zahl { font-family: var(--display); font-size: clamp(4.5rem, 9vw, 6.5rem); line-height: .85; letter-spacing: -.04em; }
.express-einheit { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1; }
.express-text h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: .3em; }
.express-text p { margin: 0; color: var(--text); max-width: 40em; }
.express-text .eyebrow { color: var(--tinte); display: inline-flex; align-items: center; gap: .5rem; }
.express-text .eyebrow::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--blatt); box-shadow: 0 0 0 3px rgba(125,164,51,.28); }
.express-aktion { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.express-bedingung { font-size: .9375rem; color: var(--grau); margin-top: .35rem; }

/* ---------- Fuß ---------- */
.site-footer { background: var(--tanne-tief); color: var(--auf-dunkel-leise); padding-block: clamp(3.75rem, 7vw, 5.5rem) 2.5rem; font-size: 1rem; }
.site-footer a { color: var(--auf-dunkel); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--gelb); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer .muted { color: var(--auf-dunkel-leise); }
/* Spaltentitel im Fuß: h2 in der Gliederung (kein Sprung von h1 auf h3 auf kurzen Seiten), optisch eine kleine Zeile */
.site-footer .fuss-titel { font-family: var(--sans); font-size: .74rem; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--auf-dunkel-leise); margin: 0 0 .75rem; font-weight: 600; hyphens: manual; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer address { margin-bottom: .5rem; line-height: 1.8; color: var(--auf-dunkel); }
.footer-marke { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.footer-marke img { width: 2.6rem; height: auto; }
.footer-marke .brand-name { color: #fff; }
.footer-marke .brand-sub { color: var(--auf-dunkel-leise); }
.footer-staedte { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(243,246,236,.14); }
.footer-staedte ul { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.footer-staedte a { font-size: .95rem; }
.footer-beleg { margin-top: 2rem; font-size: .95rem; color: var(--auf-dunkel-leise); max-width: 52em; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(243,246,236,.14); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: var(--auf-dunkel-leise); font-size: .9rem; }

/* ---------- Team und Funktionen ---------- */
.gf { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .gf { grid-template-columns: 1fr 1fr; } }
@media (min-width: 70rem) { .gf { grid-template-columns: repeat(3, 1fr); } }
.person-gross { border-top: 1px solid var(--tinte); padding-top: 1.5rem; }
.person-gross .p-label { font-size: .74rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--blatt-tief); margin: 0 0 .5rem; }
.person-gross .p-name { font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; color: var(--tinte); margin: 0 0 .5rem; }
.person-gross p { color: var(--grau); }
.person-gross .p-bildung { color: var(--tinte); font-weight: 600; font-size: .92rem; margin: -.1rem 0 .7rem; padding-left: .75rem; border-left: 3px solid var(--blatt); }
.person-gross .p-kopf { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1rem; }
.person-gross .p-kopf img { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; filter: grayscale(1); flex: none; }
.funktionen { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0 3rem; border-top: 1px solid var(--linie); }
@media (min-width: 46rem) { .funktionen { grid-template-columns: repeat(2, 1fr); } }
.funktionen li { padding: 1.5rem 0; border-bottom: 1px solid var(--linie); }
.funktionen .f-titel { display: block; font-family: var(--display); font-weight: 400; color: var(--tinte); font-size: 1.42rem; letter-spacing: -.012em; line-height: 1.2; margin-bottom: .35rem; }
.funktionen p { margin: 0; color: var(--grau); }

/* ---------- Stellen ---------- */
.stelle { border-top: 1px solid var(--tinte); padding-block: 2.5rem 3rem; }
.stelle > h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -.022em; margin-bottom: 1rem; }
.stelle .eckdaten { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.stelle .eckdaten li { font-size: .9rem; font-weight: 600; margin: 0; border-left: 2px solid var(--blatt); color: var(--tinte); padding: .1rem .7rem; }
.stelle h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grau); margin: 1.75rem 0 .65rem; }
.stelle p, .stelle li { color: var(--grau); max-width: var(--mass); }
.stelle .actions { margin-bottom: 0; }

/* ---------- Prüfbericht (nur Vorschau) ---------- */
.bericht .container { max-width: 58rem; }
.bericht h2 { margin-top: 3.5rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.bericht h3 { margin-top: 0; font-size: 1.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.befund { border-top: 1px solid var(--linie); padding: 1.4rem 0; }
.befund:last-child { border-bottom: 1px solid var(--linie); }
.befund p:last-child { margin-bottom: 0; color: var(--grau); }
.stufe { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .65rem; border-radius: var(--r); white-space: nowrap; }
.stufe.rot { background: #8E2318; color: #fff; }
.stufe.gelb { background: var(--gelb); color: var(--gelb-tinte); }
.stufe.gruen { background: #3D6B1A; color: #fff; }
.stufe.grau { background: var(--flaeche2); color: var(--grau); }
.bericht p, .bericht li, .bericht code { overflow-wrap: anywhere; }
.entscheidungen { counter-reset: e; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.entscheidungen > li { counter-increment: e; border-top: 1px solid var(--linie); padding: 1.25rem 0 1.25rem 3rem; position: relative; }
.entscheidungen > li::before { content: counter(e); position: absolute; left: 0; top: 1.05rem; font-family: var(--display); font-size: 1.7rem; color: var(--blatt-tief); }
.entscheidungen h3 { margin-bottom: .35rem; }
.entscheidungen p { margin: 0; color: var(--grau); }

/* ---------- Fahrplan-Grafik ---------- */
.fahrplan { margin: 0; }
.fahrplan svg { display: block; width: 100%; height: auto; }
.fahrplan figcaption { font-size: .9375rem; color: var(--grau); margin-top: .85rem; max-width: 44em; }
.fp-text { fill: var(--text); font-family: var(--sans); font-size: 13px; }
.fp-leise { fill: var(--grau); font-family: var(--sans); font-size: 12px; }
.fp-titel { fill: var(--tinte); font-family: var(--sans); font-size: 14px; font-weight: 600; }
.fp-wert { fill: var(--tinte); font-family: var(--display); font-size: 24px; }
.fp-klasse { font-family: var(--sans); font-size: 12px; font-weight: 700; }
.fp-linie { stroke: var(--linie2); stroke-width: 1; }
.fp-pfad { stroke: var(--tinte); stroke-width: 1.5; fill: none; stroke-dasharray: 3 4; }

/* ---------- Einsatzgebietskarte ---------- */
.karte { margin: 0; }
.karte svg { display: block; width: 100%; height: auto; }
.karte figcaption { font-size: .9375rem; color: var(--grau); margin-top: .75rem; }
.ka-ring { fill: none; stroke: var(--linie2); stroke-width: 1; }
.ka-ring-label { fill: var(--grau); font-family: var(--sans); font-size: 11px; letter-spacing: .06em; }
.ka-stadt { fill: var(--tanne-weich); }
.ka-stadt-text { fill: var(--text); font-family: var(--sans); font-size: 12.5px; }
.ka-aktiv { fill: var(--gelb); stroke: var(--tinte); stroke-width: 1.5; }
.ka-aktiv-text { fill: var(--tinte); font-family: var(--sans); font-size: 14px; font-weight: 700; }
.ka-buero { fill: var(--tinte); }
.ka-buero-text { fill: var(--tinte); font-family: var(--sans); font-size: 12.5px; font-weight: 700; }
.ka-fern { fill: var(--grau); font-family: var(--sans); font-size: 12px; }
.ka-link .ka-stadt, .ka-link .ka-stadt-text { transition: fill .15s ease, r .15s ease; }
.ka-link:hover .ka-stadt-text, .ka-link:focus .ka-stadt-text { fill: var(--tinte); font-weight: 700; }
.ka-link:hover .ka-stadt, .ka-link:focus .ka-stadt { fill: var(--gelb); stroke: var(--tinte); stroke-width: 1.5; r: 6px; }

/* Städteübersicht */
.regionen { display: grid; gap: 2.25rem 3rem; }
.regionen.kompakt { gap: 1.5rem 3rem; }
.regionen.kompakt .region ul { border: 0; }
.regionen.kompakt .region li { border: 0; }
.regionen.kompakt .nachbarn a { font-size: .98rem; min-height: 36px; font-weight: 500; }
.news-liste { display: grid; gap: 0; border-top: 1px solid var(--linie2); max-width: 52rem; }
.news { padding: 1.6rem 0 1.8rem; border-bottom: 1px solid var(--linie); }
.news .news-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; margin: 0 0 .45rem; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.news time { color: var(--blatt-tief); }
.news .news-meta a { color: var(--blatt-tief); text-decoration: none; display: inline-block; padding-block: .3rem; }
.news .more { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--tinte); }
.news .more::after { content: "→"; color: var(--blatt-tief); }
.news .news-meta a:hover { text-decoration: underline; text-underline-offset: .25em; }
.news .news-thema { color: var(--grau); }
.news:target h3 { text-decoration: underline; text-decoration-color: var(--blatt); text-underline-offset: .18em; }
.news h2, .news h3 { font-size: 1.45rem; margin-bottom: .5rem; line-height: 1.18; letter-spacing: -.012em; text-wrap: pretty; }
.news p { color: var(--text); max-width: 46em; margin-bottom: .6rem; }
.news-liste.kurz { max-width: none; }

/* Gewerbe zu Wohnen: zwei Beispielrechnungen mit Schema-Bild und Kostenbalken */
.bsp .bsp-bild { display: block; width: 100%; max-width: 21rem; height: auto; margin: .5rem 0 1.1rem; }
.bsp .bsp-bild text { font-family: var(--sans); font-size: 11.5px; font-weight: 600; fill: var(--grau); letter-spacing: .03em; }
.bsp .bsp-zahlen { margin: 1rem 0 0; border-top: 1px solid var(--linie2); }
.bsp .bsp-zahlen div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--linie); font-size: .95rem; }
.bsp .bsp-zahlen dt { color: var(--grau); margin: 0; }
.bsp .bsp-zahlen dd { margin: 0; color: var(--tinte); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bsp .bsp-zahlen .plus dd { color: var(--blatt-tief); }
.bsp .bsp-balken { display: flex; height: 16px; margin-top: 1rem; border-radius: 3px; overflow: hidden; background: var(--flaeche2); }
.bsp .zuschuss { background: var(--blatt); }
.bsp .eigen { background: var(--linie2); }
.bsp .bsp-legende { list-style: none; padding: 0; margin: .55rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .88rem; color: var(--grau); }
.bsp .bsp-legende i { display: inline-block; width: .75em; height: .75em; border-radius: 2px; margin-right: .45em; }
.bsp .bsp-erkl { margin-top: .8rem; font-size: .92rem; }
@media (min-width: 60rem) { .news-liste.kurz { grid-template-columns: repeat(3, 1fr); gap: 0 3rem; border-top: 0; } .news-liste.kurz .news { border-top: 1px solid var(--linie2); border-bottom: 0; } }
@media (min-width: 46rem) { .regionen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .regionen { grid-template-columns: repeat(3, 1fr); } }
.region h3 { font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--grau); margin-bottom: .5rem; }
.region ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--linie2); }
.region li { border-bottom: 1px solid var(--linie); }
.region a { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 48px; text-decoration: none; color: var(--tinte); font-weight: 500; }
.region a span { color: var(--grau); font-size: .9rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.region a:hover { color: var(--link); }

/* Städteseite */
.quelle { font-size: .875rem; color: var(--grau); margin-top: .75rem; }
.quelle a { color: var(--grau); display: inline-block; padding-block: .2rem; }
th > a:only-child { display: inline-block; padding-block: .15rem; }
.nachbarn { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 0; }
.nachbarn a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--tinte); text-decoration: underline; text-decoration-color: var(--blatt); text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Umkreis in Ringen (Einsatzgebiet) ---------- */
.ringe { display: grid; gap: 0; border-top: 1px solid var(--linie2); }
.ring { display: grid; gap: 1rem 3rem; padding: 1.75rem 0 2rem; border-bottom: 1px solid var(--linie); }
@media (min-width: 60rem) { .ring { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); } }
.ring-kopf h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: -.015em; margin-bottom: .35rem; }
.ring-kopf p { color: var(--grau); margin: 0; font-size: .98rem; }
.ring-inhalt .nachbarn { gap: .25rem 1.25rem; }
.ring-inhalt .nachbarn a { font-size: 1.05rem; }
.nachbarn a span { display: inline-block; margin-left: .45rem; font-size: .82rem; font-weight: 400; color: var(--grau); font-variant-numeric: tabular-nums; }
table.eigenanteil td strong { font-size: 1.08em; }
.ring-orte { margin: .9rem 0 0; color: var(--text); font-size: .98rem; line-height: 1.7; max-width: 60em; }
.ring-orte span { color: var(--grau); }
.ring-orte a { color: var(--text); text-decoration-color: var(--linie2); }
.ring-orte a:hover { color: var(--link); text-decoration-color: var(--blatt); }

/* ---------- Google-Rezensionen ---------- */
.bewertungen { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); background: var(--rein); }
.bew-kopf { display: grid; gap: 1.25rem 3.5rem; align-items: start; margin-bottom: 2.5rem; }
@media (min-width: 60rem) { .bew-kopf { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); } }
.bew-zitate { display: grid; gap: 2rem 2.5rem; align-items: start; }
@media (min-width: 46rem) { .bew-zitate { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .bew-zitate { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bew-summe .eyebrow { margin-bottom: .6rem; }
.bew-wert { display: flex; align-items: baseline; gap: .75rem; margin: 0 0 .5rem; }
.bew-zahl { font-family: var(--display); font-size: clamp(3.2rem, 6vw, 4.6rem); line-height: .9; letter-spacing: -.03em; color: var(--tinte); }
.bew-sterne { color: var(--gelb); font-size: 1.25rem; letter-spacing: .08em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bew-sterne { color: var(--gelb-hell); } }
:root[data-theme="dark"] .bew-sterne { color: var(--gelb-hell); }
.bew-text p { color: var(--text); font-size: 1.02rem; margin: 0 0 .5rem; max-width: 46em; }
.bew-zitat { margin: 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--gelb); }
.bew-zitat p { font-family: var(--display); font-size: 1.22rem; line-height: 1.38; letter-spacing: -.005em; color: var(--tinte); margin: 0 0 .7rem; }
.bew-zitat footer { font-size: .9rem; color: var(--tinte); font-weight: 600; }
.bew-zitat footer span { display: block; font-weight: 400; color: var(--grau); }
.bew-themen p { color: var(--text); margin: 0; }
.bew-hinweis { margin: 2rem 0 0; font-size: .82rem; color: var(--grau); max-width: 70em; }

@media print {
  .site-header, .site-footer, .cta, .nav-toggle, .skip, .preview-banner, .topbar, .express, .hero-figure, .bildband { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
  a { color: #000; text-decoration: none; }
}

/* Karte: Größen für die kleine Städtekarte, schmale Bildschirme */
.karte.mini .ka-stadt-text, .karte.mini .ka-buero-text, .karte.mini .ka-fern { font-size: 19px; }
.karte.mini .ka-aktiv-text { font-size: 22px; }
.karte.mini .ka-ring-label { font-size: 16px; }
.karte.gross .ka-stadt-text, .karte.gross .ka-fern, .karte.gross .ka-buero-text { font-size: 13px; }
/* Schmale Bildschirme: eigene Karte im Hochformat (Wurzelmaßstab, größere Schrift) statt der breiten Karte */
.karte-handy { display: none; }
@media (max-width: 40rem) {
  .karte-breit { display: none; }
  .karte-handy { display: block; }
  .karte.gross .ka-stadt-text, .karte.gross .ka-fern, .karte.gross .ka-buero-text { font-size: 15px; }
  .karte.gross .ka-buero-text { font-weight: 700; }
  .karte.gross .ka-ring-label { font-size: 12px; }
}
.fp-scroll { overflow-x: auto; }
.fp-scroll svg { min-width: 640px; }
/* Effizienzklassen als Füllfarben (SVG) */
.k-aplus { fill: var(--k-aplus); } .k-a { fill: var(--k-a); } .k-b { fill: var(--k-b); } .k-c { fill: var(--k-c); }
.k-d { fill: var(--k-d); } .k-e { fill: var(--k-e); } .k-f { fill: var(--k-f); } .k-g { fill: var(--k-g); } .k-h { fill: var(--k-h); }

/* Kleine Bildschirme: Markenzusatz ausblenden, kompakte Ansprechpartnerin nur mobil */
.brand-kurz { display: none; }
@media (max-width: 30rem) { .site-header .brand-lang { display: none; } .site-header .brand-kurz { display: inline; } }
.nur-mobil { display: none; }
@media (max-width: 60rem) { .nur-mobil { display: flex; margin-top: 1.5rem; } }
.grid.cols-1 .cell { max-width: 46rem; }
/* „Gebäude als Rechenmodell“ – Galerie der Gebäudemodelle: Spalten, in die sich die Bilder in ihrer eigenen Form einreihen (nichts wird beschnitten) */
.modellreihe .section-head { margin-bottom: 1.1rem; }
.modellreihe .section-head h3 { font-size: 1.55rem; }
.modelle { columns: 2; column-gap: .9rem; }
.modelle.n1 { columns: 1; max-width: 30rem; }
.modell { margin: 0 0 1.25rem; break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; }
.modell-bild { border-radius: var(--r); overflow: hidden; background: var(--flaeche2); }
.modell-bild img { display: block; width: 100%; height: auto; }
.modell figcaption { margin-top: .5rem; font-size: .82rem; line-height: 1.45; color: var(--grau); }
.modell figcaption strong { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; color: var(--tinte); margin-bottom: .1rem; }
@media (min-width: 40rem) {
  .modelle { column-gap: 1.6rem; } .modelle.n2 { max-width: 52rem; }
  .modell { margin-bottom: 1.7rem; }
  .modell figcaption { font-size: .9rem; } .modell figcaption strong { font-size: 1rem; }
}
@media (min-width: 60rem) { .modelle.n3 { columns: 3; } }
.modellreihe .small { margin-top: 1rem; font-size: .85rem; }
.bestell-summe > span { font-weight: 600; max-width: 36rem; }

/* Referenzen: je Gruppe eine Liste mit Namen und Logos. Grundzustand ist die Wand (gleich große Kacheln mit Haarlinien, dazu
   Gewerk und Ort) – so steht sie ohne Skript, bei abgeschalteter Bewegung und im Druck. Mit Skript wird daraus das Laufband:
   eine Zeile, die langsam durchzieht (weiter unten). */
.referenzen .section-head { max-width: 46rem; }
.ref-gruppen { display: grid; gap: clamp(1.9rem, 3.4vw, 2.75rem); }
.ref-gruppe { min-width: 0; }
.ref-gruppe h3, .ref-gruppe h4 { font-size: 1.3rem; margin-bottom: .3rem; }
.ref-gruppe > p { color: var(--grau); font-size: .95rem; margin: 0 0 1rem; max-width: 46rem; }
.ref-liste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); border-top: 1px solid var(--linie2); border-left: 1px solid var(--linie2); }
.ref { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; min-width: 0; min-height: 6.4rem; padding: 1rem .8rem; text-align: center; background: var(--papier); border-right: 1px solid var(--linie2); border-bottom: 1px solid var(--linie2); }
.ref-name { font-family: var(--display); font-size: 1.3rem; line-height: 1.14; color: var(--tinte); text-wrap: balance; overflow-wrap: anywhere; hyphens: manual; }
.ref-meta { font-size: .8rem; line-height: 1.35; color: var(--grau); overflow-wrap: anywhere; hyphens: manual; text-wrap: balance; }
/* Logo: Breite aus dem Seitenverhältnis (--lb in rem, build.py ref_logo), damit flache Schriftzüge und gedrungene Zeichen gleich schwer wirken */
.ref-logo { display: block; width: calc(var(--lb, 9) * .8rem); max-width: 100%; height: auto; max-height: 3.2rem; object-fit: contain;
  mix-blend-mode: multiply; }   /* ein weißer Bildgrund nimmt die Farbe der Kachel an, das Logo selbst bleibt, wie es geliefert wurde */
.ref-kopie { display: none; }
/* Kacheln mit Link (Feld „url“ in referenzen.json, erst nach Zusage der Firma): Die ganze Kachel führt auf die Website der Firma,
   in einem neuen Tab. Der Link bekommt bewusst keine eigene Ebene (kein transform, keine Deckkraft), sonst verlöre das Logo
   seine Mischung mit dem Kachelgrund. */
.ref.hat-link { position: relative; }
.ref-link { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; color: inherit; text-decoration: none; }
.ref-link::after { content: ""; position: absolute; inset: 0; }
.ref-link:focus-visible { outline: none; }
.ref-link:focus-visible::after { outline: 2px solid var(--fokus); outline-offset: -5px; border-radius: 2px; }
.ref.hat-link { transition: box-shadow .15s ease; }
@media (hover: hover) { .ref.hat-link:hover { box-shadow: inset 0 -3px 0 var(--blatt); } }
.ref.hat-link:focus-within { box-shadow: inset 0 -3px 0 var(--blatt); }
@media (max-width: 30rem) {
  .ref-liste { grid-template-columns: 1fr 1fr; }
  .ref { min-height: 5rem; padding: .8rem .55rem; gap: .3rem; }
  .ref-name { font-size: 1.14rem; }
  .ref-meta { font-size: .76rem; }
}
/* Logos sind in aller Regel für hellen Grund gezeichnet – im Dunkelmodus ist ihre Kachel deshalb hell */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ref.hat-logo { background: #F4F6EF; }
  :root:not([data-theme="light"]) .ref.hat-logo .ref-meta { color: #4A5346; }
}
:root[data-theme="dark"] .ref.hat-logo { background: #F4F6EF; }
:root[data-theme="dark"] .ref.hat-logo .ref-meta { color: #4A5346; }
.ref-hinweis { margin: 1.1rem 0 0; font-size: .85rem; }
/* Referenzen ohne Namen (v6.38, Zwischenlösung bis zur Zustimmung aller Firmen): Felder mit Haarlinie, großem Stichwort in der
   Schrift der Überschriften und einer Zeile in Grün darunter – vier nebeneinander auf breiten Bildschirmen, sonst zwei oder eins. */
.ref-felder { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.25rem clamp(2rem, 3.5vw, 3.25rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 42rem) { .ref-felder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .ref-felder.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ref-feld { position: relative; min-width: 0; padding-top: 1.4rem; border-top: 1px solid var(--linie2); }
.ref-feld::before { content: ""; position: absolute; top: -1px; left: 0; width: 2.75rem; height: 2px; background: var(--blatt); }
.ref-feld h3, .ref-feld h4 { margin: 0 0 .8rem; font-family: var(--display); font-weight: 400; color: var(--tinte); }
.ref-feld-kopf { display: block; font-size: clamp(2rem, 1.4rem + 1.3vw, 2.5rem); line-height: 1.02; letter-spacing: -.022em; hyphens: manual; }
.ref-feld-zeile { display: block; margin-top: .55rem; font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.45; color: var(--blatt-tief); }
.ref-feld p { margin: 0; color: var(--grau); font-size: .98rem; line-height: 1.6; }
.ohne-namen .ref-hinweis { margin-top: 1.75rem; }
/* Auf der Seite für Verwaltungen folgen die Felder direkt auf die Projektbeispiele: Abstand wie zwischen zwei Abschnittsteilen */
.container > .grid + .referenzen.ohne-namen { margin-top: clamp(2.75rem, 5vw, 3.75rem); }
/* Laufband: Die Liste steht in einer Zeile, das Skript hängt eine zweite, für Vorlesehilfen unsichtbare Abschrift an; beide
   wandern um genau eine Listenbreite und fangen dann nahtlos von vorn an. Tempo setzt das Skript (--dauer aus der Breite),
   die zweite Gruppe läuft entgegen. Knöpfe gibt es keine (Wunsch vom 12.11.2026): Das Band hält nur unter dem Mauszeiger und
   außerhalb des Bildschirms. Wer Bewegung abgeschaltet hat (prefers-reduced-motion), sieht statt des Bands die Wand. */
@media screen and (prefers-reduced-motion: no-preference) {
  .js .ref-band { --blende: clamp(1.5rem, 7vw, 5rem); display: flex; overflow: hidden; border-block: 1px solid var(--linie2);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--blende), #000 calc(100% - var(--blende)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--blende), #000 calc(100% - var(--blende)), transparent); }
  .js .ref-band .ref-liste { display: flex; flex: none; min-width: 100%; border: 0; }
  .js .ref-band .ref { flex: 1 0 auto; min-width: 9.5rem; min-height: 5.75rem; padding: .75rem 2rem; border-bottom: 0; }
  .js .ref-band .ref-name { white-space: nowrap; }
  .js .ref-band .ref-name > span { display: block; }
  .js .ref-band .ref-meta { display: none; }
  .js .ref-band .ref-logo { width: calc(var(--lb, 9) * 1rem); max-width: none; max-height: none; }
  /* --start (0 bis 1, vom Skript): Bruchteil des Umlaufs, bei dem das Band beginnt – so ist das erste Logo gleich im Bild */
  .ref-gruppe.laeuft .ref-liste { animation: ref-lauf var(--dauer, 60s) linear calc(var(--dauer, 60s) * var(--start, 0) * -1) infinite; }
  .ref-gruppe.laeuft .ref-band.gegen .ref-liste { animation-direction: reverse; animation-delay: calc(var(--dauer, 60s) * (var(--start, 0) - 1)); }
  /* Ruhe außerhalb des Bildschirms und unter dem Mauszeiger – jeweils stärker als die Zeilen mit „animation“ darüber */
  .ref-gruppe.laeuft .ref-band.fern .ref-liste { animation-play-state: paused; }
  @media (hover: hover) { .ref-gruppe.laeuft .ref-band:hover .ref-liste { animation-play-state: paused; } }
  /* Tastatur: Steht der Fokus auf einer Kachel mit Link, hält das Band, zeigt sich ohne die Blenden am Rand und rückt die Kachel
     in die Mitte (--pos in Pixeln, vom Skript). Verlässt der Fokus das Band, läuft es von dieser Stelle weiter. */
  .ref-gruppe.laeuft .ref-band.halt { -webkit-mask-image: none; mask-image: none; }
  .ref-gruppe.laeuft .ref-band.halt .ref-liste { animation: none; transform: translate3d(calc(var(--pos, 0) * -1px), 0, 0); }
  /* Abschrift: Die Namen stehen dort als erzeugter Inhalt – die Suche auf der Seite findet jeden Namen nur einmal, beim Markieren
     wird nichts doppelt kopiert; anklickbar bleibt sie trotzdem */
  .ref-kopie [data-t]::before { content: attr(data-t); }
  @media (max-width: 30rem) {
    .js .ref-band .ref { min-width: 8rem; min-height: 5rem; padding: .7rem 1.4rem; }
    .js .ref-band .ref-logo { width: calc(var(--lb, 9) * .86rem); }
  }
  /* schmale Bildschirme: Das Band reicht bis an beide Ränder (Seitenrand des Inhalts: 1,25 rem) */
  @media (max-width: 40rem) { .js .container > .referenzen .ref-band { margin-inline: -1.25rem; } }
}
@keyframes ref-lauf { to { transform: translate3d(-100%, 0, 0); } }
