/* Becker Energiekontor · Website-Stylesheet
   CI: Navy #010173, Glas #BADDF2 / #C8E6F5, Schiefergrau als Akzent.
   Schrift: Georgia für Überschriften (wie Logo), Systemschrift für Fließtext.
   Schriften liegen auf dem eigenen Server, keine Cookies. */
/* Schriften vom eigenen Server (keine Verbindung zu Google): Inter für Text wie auf der Visitenkarte,
   Gelasio als Ersatz für Georgia auf Geräten ohne Georgia (z. B. Android). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Gelasio"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/gelasio-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Gelasio"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/gelasio-latin-700-normal.woff2") format("woff2"); }


:root {
  --navy: #010173;
  --navy-deep: #00004a;
  --glas: #BADDF2;
  --glas-hell: #C8E6F5;
  --glas-zart: #EAF4FB;
  --schiefer: #4A5563;
  --schiefer-hell: #6B7280;
  --linie: #D7DCE4;
  --papier: #FFFFFF;
  --nebel: #F4F6F9;
  --tinte: #16182B;
  --serif: Georgia, "Gelasio", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --breite: 1120px;
  --text: 68ch;
  --sprosse: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--glas); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: var(--text); }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; max-width: var(--text); }
li { margin-bottom: .45em; }
strong { color: var(--navy); }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.sprungmarke { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 10; }
.sprungmarke:focus { left: 16px; top: 16px; }

/* ---------- Kopf ---------- */
.kopf { border-bottom: 1px solid var(--linie); background: var(--papier); position: sticky; top: 0; z-index: 5; }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.marke { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.marke svg { width: 33px; height: 44px; flex: 0 0 auto; }
.marke-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--serif); }
.marke-vor { font-size: 9.5px; letter-spacing: .18em; color: var(--schiefer-hell); text-transform: uppercase; margin-bottom: 3px; }
.marke-haupt { font-size: 23px; font-weight: bold; color: var(--navy); letter-spacing: .02em; }
.marke-unter { font-size: 7.6px; letter-spacing: .22em; color: var(--schiefer-hell); text-transform: uppercase; margin-top: 5px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; max-width: none; }
.nav li { margin: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--navy); }
.nav-schalter { display: none; }

@media (max-width: 960px) {
  .nav-schalter { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--navy); color: var(--navy); font: 600 .95rem var(--sans); padding: 8px 14px; border-radius: 3px; cursor: pointer; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 1px solid var(--linie); display: none; }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--linie); }
  .nav li:last-child a { border-bottom: none; }
}

/* ---------- Bühne (Hero) ---------- */
.buehne { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.buehne::after { /* das große Fenster im Hintergrund, wie auf der Visitenkarte */
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 34%;
  background:
    linear-gradient(90deg, transparent calc(50% - 4px), var(--navy) calc(50% - 4px), var(--navy) calc(50% + 4px), transparent calc(50% + 4px)),
    linear-gradient(180deg, transparent calc(33.33% - 4px), var(--navy) calc(33.33% - 4px), var(--navy) calc(33.33% + 4px), transparent calc(33.33% + 4px), transparent calc(66.66% - 4px), var(--navy) calc(66.66% - 4px), var(--navy) calc(66.66% + 4px), transparent calc(66.66% + 4px)),
    rgba(186,221,242,.10);
  pointer-events: none;
}
.buehne .huelle { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.buehne h1 { color: #fff; }
.buehne p { color: rgba(255,255,255,.86); font-size: 1.15rem; }
.buehne .knoepfe { margin-top: 28px; max-width: none; }
.buehne-bild { justify-self: end; width: 100%; max-width: 560px; }

/* Foto im Fensterrahmen: weißer Rahmen und Sprossen wie das Logo auf Navy */
.fensterbild { position: relative; background: #fff; padding: 14px; }
.fensterbild img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.fensterbild.quer img { aspect-ratio: 3 / 2; }
.fensterbild::after {
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 3px), #fff calc(50% - 3px), #fff calc(50% + 3px), transparent calc(50% + 3px)),
    linear-gradient(180deg, transparent calc(33.33% - 3px), #fff calc(33.33% - 3px), #fff calc(33.33% + 3px), transparent calc(33.33% + 3px), transparent calc(66.66% - 3px), #fff calc(66.66% - 3px), #fff calc(66.66% + 3px), transparent calc(66.66% + 3px));
}
.fensterbild.ohne-sprossen::after { display: none; }

.buehne-klein .huelle { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 48px; }
.buehne-klein p { max-width: 60ch; }
.buehne-foto .huelle { grid-template-columns: 1fr 1fr; }

/* ---------- Knöpfe ---------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopf { display: inline-block; padding: 13px 22px; font-weight: 600; text-decoration: none; border-radius: 3px; border: 1.5px solid var(--navy); background: var(--navy); color: #fff; }
.knopf:hover { background: var(--navy-deep); }
.knopf.hell { background: #fff; color: var(--navy); border-color: #fff; }
.knopf.hell:hover { background: var(--glas-zart); }
.knopf.rahmen { background: transparent; color: var(--navy); }
.knopf.rahmen:hover { background: var(--glas-zart); }
.buehne .knopf.rahmen { color: #fff; border-color: rgba(255,255,255,.8); }
.buehne .knopf.rahmen:hover { background: rgba(255,255,255,.12); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 72px 0; }
.abschnitt.nebel { background: var(--nebel); }
.abschnitt + .abschnitt:not(.nebel) { border-top: 1px solid var(--linie); }
.vorspann { font-size: 1.15rem; color: var(--schiefer); }
.zweispaltig { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.zweispaltig.bild-links { grid-template-columns: .9fr 1.1fr; }
.bildrahmen { border: 1px solid var(--linie); background: #fff; }
.bildunterschrift { font-size: .85rem; color: var(--schiefer-hell); margin-top: 8px; }

/* Sprungleiste innerhalb einer Seite */
.sprungleiste { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.sprungleiste a { color: #fff; text-decoration: none; border: 1.5px solid rgba(255,255,255,.7); padding: 8px 14px; border-radius: 3px; font-size: .92rem; font-weight: 600; }
.sprungleiste a:hover { background: rgba(255,255,255,.12); }

/* ---------- Das Fenster: Leistungen als 2 × 3 Scheiben ---------- */
.fenster { background: var(--navy); padding: var(--sprosse); display: grid; grid-template-columns: 1fr 1fr; gap: var(--sprosse); border: 12px solid var(--navy); margin-top: 32px; }
.scheibe { background: var(--glas-zart); padding: 28px 28px 24px; display: flex; flex-direction: column; text-decoration: none; color: var(--tinte); position: relative; transition: background .15s; }
.scheibe:nth-child(odd) { background: linear-gradient(135deg, #fff 0%, var(--glas-zart) 55%); }
.scheibe:nth-child(even) { background: linear-gradient(135deg, #fff 0%, #E3F0FA 55%); }
.scheibe:hover { background: #fff; }
.scheibe h3 { margin-bottom: .35em; }
.scheibe p { color: var(--schiefer); margin: 0 0 14px; font-size: 1rem; }
.scheibe .weiter { margin-top: auto; font-weight: 600; color: var(--navy); font-size: .95rem; }
.scheibe .weiter::after { content: " ›"; }

/* ---------- Karten, Listen, Schritte ---------- */
.raster-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.raster-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0; }
.karte { border: 1px solid var(--linie); border-top: 3px solid var(--navy); background: #fff; padding: 22px 22px 18px; }
.karte h3 { font-size: 1.08rem; margin-bottom: .4em; }
.karte p { font-size: .98rem; color: var(--schiefer); margin-bottom: .6em; }
.karte p:last-child { margin-bottom: 0; }
.marke-klein { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--navy); background: var(--glas); padding: 2px 8px; border-radius: 2px; margin-bottom: 10px; }
.marke-klein.pflicht { background: var(--navy); color: #fff; }

.schritte { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: none; counter-reset: schritt; }
.schritte li { counter-increment: schritt; border-top: 3px solid var(--navy); padding-top: 14px; margin: 0; }
.schritte li::before { content: counter(schritt); font-family: var(--serif); font-size: 1.6rem; font-weight: bold; color: var(--navy); display: block; line-height: 1; margin-bottom: 8px; }
.schritte h3 { font-size: 1.02rem; margin-bottom: .3em; }
.schritte p { font-size: .95rem; color: var(--schiefer); margin: 0; }

.foerderzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sprosse); background: var(--navy); padding: var(--sprosse); margin: 24px 0; }
.foerderzahlen > div { background: #fff; padding: 22px; }
.foerderzahlen .zahl { font-family: var(--serif); font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: bold; color: var(--navy); line-height: 1.1; }
.foerderzahlen .was { font-weight: 400; color: var(--schiefer); margin: 6px 0 4px; }
.foerderzahlen .was.fett { font-weight: 600; color: var(--tinte); margin: 0 0 4px; }
.foerderzahlen .wie { font-size: .92rem; color: var(--schiefer); margin: 0; }

.hinweis { border-left: 4px solid var(--navy); background: var(--glas-zart); padding: 16px 20px; margin: 24px 0; max-width: var(--text); }
.hinweis p { margin: 0 0 .5em; font-size: .98rem; }
.hinweis p:last-child { margin: 0; }
.stand { font-size: .85rem; color: var(--schiefer-hell); }

.zitat { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--navy); border-left: 4px solid var(--glas); padding: 4px 0 4px 20px; margin: 0 0 24px; max-width: 46ch; }

.fakten { list-style: none; padding: 0; margin: 0 0 1.2em; }
.fakten li { padding: 10px 0; border-bottom: 1px solid var(--linie); margin: 0; }
.fakten li:first-child { border-top: 1px solid var(--linie); }

/* ---------- Ansprechpartner / Abschluss ---------- */
.abschluss { background: var(--navy); color: #fff; }
.abschluss h2 { color: #fff; }
.abschluss p { color: rgba(255,255,255,.86); }
.abschluss .huelle { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.abschluss .portrait { width: 250px; background: #fff; padding: 10px 10px 8px; margin: 0; }
.abschluss .portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.abschluss h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.abschluss p { font-size: 1.12rem; }
.abschluss .abschluss-name { font-size: .95rem; margin-top: 20px; color: rgba(255,255,255,.7); }
.kontaktzeile { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; font-size: 1.1rem; }
.kontaktzeile a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); }
.kontaktzeile a:hover { border-bottom-color: #fff; }

/* ---------- Gelistet-Band ---------- */
.gelistet { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.gelistet img { width: 230px; }
.gelistet p { margin: 0; color: var(--schiefer); max-width: 58ch; }

/* ---------- Formular ---------- */
.formular { max-width: 720px; }
.feld { margin-bottom: 18px; }
.feld label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.feld input, .feld select, .feld textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--linie); border-radius: 3px; background: #fff; color: var(--tinte); }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--glas); }
.feld textarea { min-height: 150px; resize: vertical; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.einwilligung { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 22px; font-size: .95rem; color: var(--schiefer); }
.einwilligung input { margin-top: 5px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--navy); }
.honig { position: absolute; left: -9999px; }
.formular button { font: 600 1rem var(--sans); }
.formmeldung { margin-top: 16px; padding: 14px 18px; display: none; }
.formmeldung.ok { display: block; background: var(--glas-zart); border-left: 4px solid var(--navy); }
.formmeldung.fehler { display: block; background: #FDECEC; border-left: 4px solid #9C1C1C; }

/* ---------- Rechtstexte ---------- */
.rechtstext h2 { font-size: 1.35rem; margin-top: 2em; }
.rechtstext h3 { font-size: 1.05rem; margin-top: 1.5em; }
.rechtstext p, .rechtstext li { font-size: 1rem; }
.rechtstext table { border-collapse: collapse; width: 100%; max-width: var(--text); margin: 12px 0 20px; font-size: .95rem; }
.rechtstext th, .rechtstext td { border: 1px solid var(--linie); padding: 8px 10px; text-align: left; vertical-align: top; }
.rechtstext th { background: var(--nebel); color: var(--navy); }

/* ---------- Fuß ---------- */
.fuss { background: var(--navy-deep); color: rgba(255,255,255,.78); font-size: .95rem; padding: 48px 0 32px; }
.fuss a { color: #fff; }
.fuss .huelle { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.fuss .marke-vor, .fuss .marke-unter { color: rgba(255,255,255,.6); }
.fuss .marke-haupt { color: #fff; }
.fuss h2 { font-family: var(--sans); font-size: .95rem; color: #fff; margin: 0 0 10px; letter-spacing: .01em; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 6px; }
.fuss .unterzeile { max-width: none; grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; margin-top: 8px; font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .buehne .huelle, .buehne-foto .huelle, .zweispaltig, .zweispaltig.bild-links { grid-template-columns: 1fr; gap: 32px; }
  .buehne::after { width: 52%; opacity: .7; }
  .buehne-bild { justify-self: start; max-width: 360px; }
  .raster-3 { grid-template-columns: 1fr 1fr; }
  .schritte { grid-template-columns: 1fr 1fr; }
  .foerderzahlen { grid-template-columns: 1fr; }
  .fuss .huelle { grid-template-columns: 1fr 1fr; }
  .abschluss .huelle { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .huelle { padding: 0 16px; }
  .abschnitt { padding: 52px 0; }
  .fenster { grid-template-columns: 1fr; border-width: 8px; }
  .raster-3, .raster-2, .schritte, .feld-paar { grid-template-columns: 1fr; }
  .fuss .huelle { grid-template-columns: 1fr; }
  .marke-haupt { font-size: 20px; }
  .marke svg { width: 28px; height: 38px; }
  .abschluss .portrait { width: 190px; }
}

@media print {
  .kopf, .fuss, .nav-schalter, .sprungleiste, .knoepfe { display: none; }
  .buehne, .abschluss { background: none; color: #000; }
  .buehne h1, .abschluss h2 { color: var(--navy); }
  .buehne::after { display: none; }
}

/* Kennzeichnung KI-erzeugter Porträts (Art. 50 KI-Verordnung) */
.ki-hinweis { display: block; margin-top: 8px; font-family: var(--sans); font-size: .72rem; line-height: 1.2; color: var(--schiefer-hell); letter-spacing: .01em; }
.fensterbild .ki-hinweis { margin: 8px 0 -4px; }

/* ---------- Mehr Nähe: Porträt-Bühne, Brief, Fragen, Rat ---------- */
.buehne-portrait .huelle { grid-template-columns: 1.08fr .92fr; align-items: end; padding-top: 0; padding-bottom: 0; gap: 56px; }
.buehne-portrait .buehne-text { align-self: center; padding: 72px 0; }
.buehne-portrait h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: .45em; }
.buehne-portrait .buehne-fuer { font-size: 1rem; color: rgba(255,255,255,.7); }
.buehne-portraitbild { justify-self: end; width: 100%; max-width: 450px; margin: 48px 0 0; background: #fff; padding: 12px 12px 6px; }
.buehne-portraitbild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.buehne-portraitbild.hochkant img { aspect-ratio: 3 / 4; }
.buehne-portraitbild .ki-hinweis { margin: 6px 0 0; }

.brief-raster { display: grid; grid-template-columns: 1.55fr 1fr; gap: 72px; align-items: start; }
.brief-text p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.72; max-width: 58ch; }
.brief-text h2 { margin-top: 1.5em; }
.brief-text h2:first-child { margin-top: 0; }
.brief-text .zitat { font-size: 1.45rem; margin: 32px 0; }
.brief-rand { border-left: 1px solid var(--linie); padding-left: 36px; }
.rand-titel { font-size: 1.25rem; }
.lebenslauf { list-style: none; padding: 0; margin: 0 0 24px; }
.lebenslauf li { padding: 12px 0; border-bottom: 1px solid var(--linie); margin: 0; }
.lebenslauf span { display: block; font-size: .82rem; color: var(--schiefer-hell); margin-bottom: 2px; }
.brief-logo { width: 210px; margin: 8px 0 10px; }
.versprechen { list-style: none; padding: 0; }
.versprechen li { font-family: var(--serif); font-size: 1.15rem; line-height: 1.6; padding-left: 30px; position: relative; margin-bottom: .8em; }
.versprechen li::before { content: ""; position: absolute; left: 0; top: .42em; width: 13px; height: 13px; background: var(--glas); border: 2px solid var(--navy); }

.fragen-raster { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen details:first-child { border-top: 1px solid var(--linie); }
.fragen summary { list-style: none; cursor: pointer; font-family: var(--serif); font-size: 1.18rem; color: var(--navy); padding: 18px 44px 18px 0; position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.7rem; line-height: 1.2; color: var(--navy); font-family: var(--sans); }
.fragen details[open] summary::after { content: "\2212"; }
.fragen summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fragen details p { margin: 0 0 20px; color: var(--schiefer); }

.stimmen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 32px 0 8px; }
.stimmen p { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.5; color: var(--navy); border-left: 3px solid var(--glas); padding-left: 18px; margin: 0; }

.rat { background: #fff; border: 1px solid var(--linie); border-left: 6px solid var(--navy); padding: 20px 24px; margin: 28px 0; max-width: var(--text); }
.rat-titel { font-family: var(--serif); font-weight: bold; color: var(--navy); font-size: 1.05rem; margin: 0 0 .3em; }
.rat p:last-child { font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; margin: 0; }

.rechner-zeile { margin-top: 8px; color: var(--schiefer); }
.kontaktbild { margin: 0; max-width: 380px; }
.kontaktbild img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.mitbringen { margin-top: 36px; max-width: 380px; }
.mitbringen h2 { font-size: 1.3rem; }
.mitbringen p { color: var(--schiefer); font-size: .98rem; }

@media (max-width: 900px) {
  .buehne-portrait .huelle { grid-template-columns: 1fr; gap: 0; }
  .buehne-portrait .buehne-text { padding: 52px 0 36px; }
  .buehne-portraitbild { justify-self: start; max-width: 380px; margin-top: 0; }
  .brief-raster, .fragen-raster { grid-template-columns: 1fr; gap: 36px; }
  .brief-rand { border-left: none; padding-left: 0; border-top: 1px solid var(--linie); padding-top: 28px; }
  .stimmen { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 620px) {
  .brief-text p { font-size: 1.1rem; }
  .buehne-portraitbild { max-width: 300px; }
  .buehne .knoepfe .knopf { flex: 1 1 auto; text-align: center; }
}

/* ---------- Typografie vereinheitlicht ----------
   Regel: Georgia nur für Überschriften (h1 bis h3, Fragen) und Zitate.
   Fließtext immer Systemschrift in einer Größe. Dazu eine Größe für
   Einleitungen und eine für Kleingedrucktes. */
:root { --fs-text: 1.0625rem; --fs-lead: 1.2rem; --fs-klein: .875rem; --fs-h3: 1.2rem; }
p, li, .karte p, .scheibe p, .schritte p, .hinweis p, .rat p:last-child, .fragen details p,
.brief-text p, .versprechen li, .mitbringen p, .foerderzahlen .wie, .fakten li, .lebenslauf li,
.rechtstext p, .rechtstext li, .gelistet p, .abschluss p, .rechner-zeile {
  font-family: var(--sans); font-size: var(--fs-text); line-height: 1.65; }
.vorspann, .buehne p, .abschluss p:first-of-type { font-size: var(--fs-lead); }
.stand, .ki-hinweis, .lebenslauf span, .bildunterschrift, .abschluss .abschluss-name,
.buehne-portrait .buehne-fuer, .einwilligung, .marke-klein { font-size: var(--fs-klein); }
h3, .karte h3, .schritte h3, .scheibe h3, .fragen summary, .rat-titel { font-size: var(--fs-h3); }
.rat-titel { font-family: var(--serif); }
.zitat, .brief-text .zitat, .stimmen p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; }
.brief-text p { max-width: 62ch; }
.versprechen li::before { top: .5em; }
@media (max-width: 620px) { :root { --fs-text: 1rem; --fs-lead: 1.1rem; } }

/* Echtes Foto im Abschnitt über Sport */
.sportbild { margin: 8px 0 0; max-width: 380px; background: #fff; border: 1px solid var(--linie); padding: 10px 10px 6px; }
.sportbild img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.sportbild figcaption { font-size: var(--fs-klein, .875rem); color: var(--schiefer-hell); margin-top: 6px; }

/* Hinweis auf die dena-Listung als Sticker (ersetzt das dena-Logo) */
.dena-sticker { display: inline-block; max-width: 300px; background: var(--navy); color: #fff; padding: 20px 22px; border-radius: 14px; transform: rotate(-2.5deg); box-shadow: 0 6px 18px rgba(1,1,115,.18); margin: 12px 0 8px; }
.dena-sticker strong { display: block; color: #fff; font-family: var(--serif); font-size: 1.2rem; margin-bottom: 4px; }
.dena-sticker p { margin: 0; color: rgba(255,255,255,.88); font-size: .95rem; line-height: 1.5; }
.dena-sticker .haken { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--glas); color: var(--navy); align-items: center; justify-content: center; font: 700 15px var(--sans); margin-bottom: 8px; }
.gelistet .dena-sticker { flex: 0 0 auto; margin-right: 12px; }
@media (prefers-reduced-motion: reduce) { .dena-sticker { transform: none; } }

/* Gruppen in den häufigen Fragen */
.fragen-gruppe { font-size: var(--fs-h3, 1.2rem); margin: 36px 0 10px; }
.fragen-gruppe:first-child { margin-top: 0; }
.fragen .fragen-gruppe + details { border-top: 1px solid var(--linie); }

/* Rechner-Block unter den Schritten */
.rechner-block { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--linie); }
.rechner-block h3 { margin-bottom: 14px; }
.rechner-block .stand { margin: 14px 0 0; }

/* Ergebnis per E-Mail unter den Rechnern */
.ergebnis-angebot .zweispaltig { align-items: start; }
.ergebnis-angebot .formular { background: #fff; padding: 24px; border: 1px solid var(--linie); }

/* Kasten "Was mir beim ersten Gespräch hilft" */
.mitbringen { max-width: none; background: var(--glas-zart); border-top: 3px solid var(--navy); border-radius: 0 0 3px 3px; padding: 26px 28px 22px; margin-top: 28px; }
.mitbringen h2 { font-size: var(--fs-h3, 1.2rem); margin-bottom: .8em; }
.mitbringen ul { list-style: none; padding: 0; margin: 0 0 1em; }
.mitbringen li { position: relative; padding-left: 22px; margin: 0 0 .55em; }
.mitbringen li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--navy); }
.mitbringen p { margin: 0; padding-top: .9em; border-top: 1px solid var(--glas); }
@media (max-width: 600px) { .mitbringen { padding: 22px 20px 18px; } }

/* Zwischenüberschriften Förderprogramme */
.programm-gruppe { font-size: var(--fs-h3, 1.2rem); margin: 1.8em 0 0; padding-bottom: .4em; border-bottom: 1px solid var(--linie); }
.programm-gruppe + .raster-3 { margin-top: 20px; }

/* Förderprogramme im Fensterraster */
.programm-gruppe + .fenster { margin-top: 18px; }
.fenster.programme { margin-bottom: 8px; }
.programme .scheibe { transition: none; }
.programme .scheibe:nth-child(odd), .programme .scheibe:nth-child(odd):hover { background: linear-gradient(135deg, #fff 0%, var(--glas-zart) 55%); }
.programme .scheibe:nth-child(even), .programme .scheibe:nth-child(even):hover { background: linear-gradient(135deg, #fff 0%, #E3F0FA 55%); }
.programme .scheibe .marke-klein { align-self: flex-start; margin-bottom: 10px; }
.programme .scheibe p { margin-bottom: 0; }
/* Gruppenüberschriften Förderung größer */
h3.programm-gruppe { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: 2.2em 0 0; padding-bottom: .45em; border-bottom: 2px solid var(--navy); }
h2 + h3.programm-gruppe { margin-top: 1.1em; }

/* Aufzählung mit Fensterquadraten */
.punkte { list-style: none; padding: 0; margin: 24px 0 0; }
.punkte li { position: relative; padding-left: 28px; margin: 0 0 .7em; }
.punkte li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; background: var(--glas); border: 2px solid var(--navy); }

.foerderzahlen .vorsatz { font-size: var(--fs-klein, .875rem); color: var(--schiefer); margin: 0 0 4px; }

/* Blog */
.beitrag-huelle { max-width: 780px; }
.zurueck { margin: 0 0 18px; font-weight: 600; }
.zurueck a { text-decoration: none; }
.zurueck a::before { content: "‹ "; }
.beitrag-meta { display: block; color: var(--schiefer); font-size: var(--fs-klein, .875rem); margin: 0 0 8px; }
.beitrag-text h2 { font-size: clamp(1.3rem, 2vw, 1.55rem); margin-top: 1.6em; }
.beitrag-text .hinweis { margin: 1.4em 0; }
.beitrag-seite > .huelle > h2 { margin-top: 1.8em; }
.beitrag-weiter { margin: 28px 0; }
.autor-box { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; border-top: 3px solid var(--navy); background: var(--glas-zart); padding: 22px 24px; margin: 32px 0 16px; }
.autor-box img { width: 96px; height: 120px; object-fit: cover; }
.autor-box p { margin: 0 0 .5em; }
.autor-box .autor-name { font-family: var(--serif); font-weight: bold; color: var(--navy); font-size: var(--fs-h3, 1.2rem); }
.fenster .scheibe .beitrag-meta { margin-bottom: 6px; }
@media (max-width: 600px) { .autor-box { grid-template-columns: 72px 1fr; padding: 18px; } .autor-box img { width: 72px; height: 90px; } }

/* Blog-Archiv */
.archiv-titel { margin-top: 2em; }
.archiv-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.archiv-spalten h3.programm-gruppe { margin-top: .6em; }
.archiv { list-style: none; padding: 0; margin: 0; }
.archiv li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linie); margin: 0; }
.archiv li a { font-weight: 600; text-decoration: none; }
.archiv li a:hover { text-decoration: underline; }
.archiv li span { color: var(--schiefer); font-size: var(--fs-klein, .875rem); white-space: nowrap; padding-top: .2em; }
@media (max-width: 760px) { .archiv-spalten { grid-template-columns: 1fr; } }

/* Ergebnis per E-Mail: prominenter */
#ergebnis-titel { scroll-margin-top: 110px; }
.ergebnis-angebot { border-top: 4px solid var(--navy); }
.ergebnis-angebot .formular { border-top: 3px solid var(--navy); }
#rechner-hinweise .wrap { padding-top: 32px; }

/* Sprechblasen-Bilder: anklickbare Fragen. Desktop: ein Antwortfeld, Handy: aufklappbare Liste */
.fragenbild-flaeche { position: relative; }
.fragenbild-flaeche img { display: block; width: 100%; height: auto; }
.fragenbild .blase { position: absolute; border-radius: 12px; cursor: pointer; }
.fragenbild .blase:hover { background: rgba(1,1,115,.06); box-shadow: 0 0 0 2px var(--navy); }
.fragenbild .blase:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.fragenbild figcaption { margin: 10px 0 0; font-size: .92rem; color: var(--schiefer-hell); }
.fragen-bild { margin: 14px 0 28px; max-width: 860px; }
.fragen-bild details { scroll-margin-top: 110px; }
.fragen-bild details p { max-width: var(--text); }
@media (min-width: 900px) {
  .blasen-js .fragenbild .blase.aktiv { background: rgba(1,1,115,.07); box-shadow: 0 0 0 3px var(--navy); }
  .blasen-js .fragen-bild { background: #fff; border: 1px solid var(--linie); border-left: 4px solid var(--navy); padding: 20px 26px 6px; min-height: 9.5em; scroll-margin-top: 110px; scroll-margin-bottom: 24px; }
  .blasen-js .fragen-bild details { display: none; border: 0; }
  .blasen-js .fragen-bild details.gewaehlt { display: block; }
  .blasen-js .fragen-bild summary { pointer-events: none; padding: 0 0 8px; font-size: 1.22rem; }
  .blasen-js .fragen-bild summary::after { display: none; }
}
@media (max-width: 899px) {
  .fragenbild figcaption { display: none; }
}

/* Gegenüberstellung Sanierungskonzept und Energieaudit */
.fenster.wahl .scheibe p { margin: 0 0 10px; }
.fenster.wahl .scheibe h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: .5em; }
.fenster.wahl .scheibe p:last-child { margin: auto 0 0; padding-top: 14px; }
.wahl-anruf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.wahl-anruf p { margin: 0; }
@media (max-width: 720px) { .fenster.wahl { grid-template-columns: 1fr; } }

/* Orientierung auf langen Seiten: Übersicht, Anlass-Zeile, mitlaufende Leiste */
.uebersicht { padding-bottom: 56px; }
.fenster.sechs { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.fenster.sechs .scheibe { padding: 22px 22px 20px; }
.fenster.sechs .scheibe .marke-klein { align-self: flex-start; background: none; padding: 0; border-radius: 0; color: var(--navy); font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
.fenster.sechs .scheibe h3 { font-size: 1.12rem; }
.fenster.sechs .scheibe p { font-size: .96rem; margin-bottom: 0; }
.anlass { display: inline-block; margin: 0 0 12px; padding: 4px 11px; background: var(--glas); color: var(--navy); font-weight: 700; font-size: .9rem; border-left: 4px solid var(--navy); }
.mitlauf { position: sticky; top: var(--kopf-h, 85px); z-index: 4; background: var(--glas-zart); border-bottom: 1px solid var(--linie); }
.mitlauf .huelle { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.mitlauf .huelle::-webkit-scrollbar { display: none; }
.mitlauf a { flex: 0 0 auto; color: var(--navy); text-decoration: none; font-size: .9rem; font-weight: 600; padding: 10px 14px 7px; border-bottom: 3px solid transparent; white-space: nowrap; opacity: .78; }
.mitlauf a:first-child { margin-left: -14px; }
.mitlauf a:hover { opacity: 1; }
.mitlauf a.aktiv { opacity: 1; border-bottom-color: var(--navy); }
.mitlauf a:focus-visible { outline: 2px solid var(--navy); outline-offset: -3px; }
.mitlauf ~ .abschnitt { scroll-margin-top: calc(var(--kopf-h, 85px) + 40px); }
@media (max-width: 900px) { .fenster.sechs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fenster.sechs { grid-template-columns: 1fr; } }
@media print { .mitlauf { display: none; } }

/* Blickfang je Abschnitt: Stufen, Zahlenfenster, Energieklassen */
.foerderzahlen.vier { grid-template-columns: repeat(4, 1fr); }
.foerderzahlen.vier .zahl { font-size: 2.3rem; margin-bottom: 4px; }
.foerderzahlen.vier .vorsatz { font-weight: 700; color: var(--tinte); font-size: 1rem; }
.foerderzahlen.vier .st1 { background: #fff; }
.foerderzahlen.vier .st2 { background: var(--glas-zart); }
.foerderzahlen.vier .st3 { background: var(--glas-hell); }
.foerderzahlen.vier .st4 { background: var(--glas); }
.foerderzahlen.vier .st1 .zahl, .foerderzahlen.vier .st2 .zahl { color: var(--schiefer-hell); }
.klassen { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; margin: 26px 0 6px; max-width: 760px; }
.klassen span { text-align: center; font-weight: 700; padding: 12px 0; color: #16182B; }
.klassen span:nth-child(1) { background: #3a9a4a; color: #fff; }
.klassen span:nth-child(2) { background: #6db544; }
.klassen span:nth-child(3) { background: #a5c93d; }
.klassen span:nth-child(4) { background: #d9d93a; }
.klassen span:nth-child(5) { background: #f2d632; }
.klassen span:nth-child(6) { background: #f4b22e; }
.klassen span:nth-child(7) { background: #ee8a2b; }
.klassen span:nth-child(8) { background: #e5602c; color: #fff; }
.klassen span:nth-child(9) { background: #c9302c; color: #fff; }
.klassen-enden { display: flex; justify-content: space-between; max-width: 760px; margin: 0 0 28px; font-size: .9rem; color: var(--schiefer); }
@media (max-width: 760px) { .foerderzahlen.vier { grid-template-columns: 1fr 1fr; } }
@media print { .klassen span { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.fenster.sechs.paar { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .fenster.sechs.paar { grid-template-columns: 1fr; } }

/* Kopfbild oben ausrichten: gleiche Position auf allen Seiten, unabhängig von der Textlänge */
.buehne-foto .huelle { align-items: start; }

/* Farbband wie im Energieausweis für Nichtwohngebäude (ohne Buchstabenklassen) */
.farbband { max-width: 760px; margin: 26px 0 6px; }
.farbband-balken { position: relative; height: 44px; background: linear-gradient(90deg, #3a9a4a 0%, #6db544 14%, #a5c93d 28%, #d9d93a 42%, #f2d632 54%, #f4b22e 66%, #ee8a2b 78%, #e5602c 90%, #c9302c 100%); }
.farbband-balken span { position: absolute; top: -6px; bottom: -6px; width: 3px; background: var(--navy); }
.farbband-marken { position: relative; height: 1.9em; font-size: .9rem; font-weight: 600; color: var(--navy); }
.farbband-marken span { position: absolute; top: 10px; padding-left: 0; white-space: nowrap; }
@media print { .farbband-balken { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Aufklappbare Details in den Leistungsabschnitten */
.mehr-gruppe { margin: 22px 0 26px; max-width: 860px; border-top: 1px solid var(--linie); }
.mehr { border-bottom: 1px solid var(--linie); }
.mehr summary { list-style: none; cursor: pointer; position: relative; padding: 13px 40px 13px 0; font-weight: 600; color: var(--navy); }
.mehr summary::-webkit-details-marker { display: none; }
.mehr summary::after { content: "+"; position: absolute; right: 6px; top: 7px; font-size: 1.5rem; line-height: 1.2; font-weight: 400; }
.mehr[open] summary::after { content: "\2212"; }
.mehr summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.mehr summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.mehr > *:not(summary) { margin-top: 4px; }
.mehr > p, .mehr > ul { max-width: var(--text); }
.mehr > .punkte { margin-top: 6px; }
.mehr > *:last-child { margin-bottom: 20px; }
.mehr .schritte { margin-top: 10px; }
.vorspann + .foerderzahlen, .vorspann + .klassen { margin-top: 26px; }
@media print { .mehr > *:not(summary) { display: block !important; } }

/* Titelbalken je Abschnitt (Wohngebäude, Gewerbe, Kommunen) */
.abschnitt.mit-kapitel { padding-top: 0; border-top: 0 !important; }
.kapitel { background: var(--glas); border-top: 4px solid var(--navy); padding: 26px 0 26px; margin-bottom: 44px; }
.kapitel h2 { color: var(--navy); margin: 0; }
.kapitel .anlass { background: none; color: var(--navy); padding: 0; border-left: 0; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
@media (max-width: 700px) { .kapitel { padding: 22px 0 20px; margin-bottom: 30px; } }
@media print { .kapitel { background: none; border-top: 0; padding: 0; margin-bottom: 12px; } }

/* Aufräumen: dunkelblau gefüllt ist nur, was man anklicken kann */
.karte .marke-klein, .karte .marke-klein.pflicht { background: none; padding: 0 0 2px; border-radius: 0; border-bottom: 2px solid var(--schiefer-hell); color: var(--schiefer); }
.karte .marke-klein.pflicht { border-bottom-color: var(--navy); color: var(--navy); }

/* Ohne JavaScript bleibt das Menü am Handy sichtbar */
@media (max-width: 960px) {
  html:not(.js) .nav-schalter { display: none; }
  html:not(.js) .kopf { position: static; }
  html:not(.js) .kopf .huelle { flex-wrap: wrap; }
  html:not(.js) .nav { position: static; display: block; flex-basis: 100%; border-bottom: 0; }
}

/* Schrittlisten: Beschreibungen beginnen auf gleicher Höhe, auch bei zweizeiligen Überschriften */
@supports (grid-template-rows: subgrid) {
  .schritte li { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-content: start; }
  .schritte li::before { margin-bottom: 0; }
  .schritte h3 { align-self: start; margin-top: 8px; }
}
