/* =========================================================
   Kyffhäuser Energie Konzepte – kyenko.de
   Gerüst und Formsprache wie khktech.de, Farben aus dem KyEnKo-CD
   (Figma „KYENKO – Komponenten & Styles“): Blau + Grün statt Blau + Rot,
   Evergreen statt Mahagoni.
   ========================================================= */

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

:root {
  /* KyEnKo CI-Farben */
  --blue: #016dff;          /* Blue Bell, primär */
  --blue-hover: #0057cc;
  --blue-light: #a5c9ff;    /* Text auf Dunkel */
  --blue-tint: #e8f1ff;     /* helle Fläche */
  --green: #83be32;         /* Yellow Green, sekundär – nie Text auf Weiß, auf Grün immer dunkle Schrift */
  --green-hover: #6ca126;
  --green-light: #c6e3a0;   /* Text auf Dunkel */
  --green-tint: #eef6e4;    /* helle Fläche */
  --red: #d41900;           /* Rot der Gruppe (wie KHKtech), nur Knopf „Zum Portal“ auf /portal/ */
  --red-hover: #b31500;
  --navy: #001938;          /* Prussian Blue */
  --navy-card: #092a50;
  --evergreen: #192108;     /* Fußzeile, Schrift auf Grün */
  --smoke: #f5f5f5;         /* White Smoke */

  --ink: #001938;
  --text: #3e4d60;
  --muted: #5a6676;
  --on-dark: #c5d0de;
  --on-dark-muted: #9aa9bd;
  --line: #dde2e8;
  --field: #b4bdc8;
  --error: #c4320a;

  --font: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --section-y: 112px;
  --block-gap: 56px;
  --frame: 1392px;          /* Breite der Flächen mit Rand: 1440 - 2 × 24 */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--smoke);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--blue); border-radius: 8px; }

.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--white { background: #fff; }
.section--smoke { background: var(--smoke); }
.section--navy { background: var(--navy); color: var(--on-dark); }
.stack { display: flex; flex-direction: column; gap: var(--block-gap); }

/* ---------- Text-Stile ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; line-height: 1.2; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow img { width: 26px; height: 7px; }
.eyebrow--light { color: var(--blue-light); }
.eyebrow--white { color: #fff; }
.eyebrow--dunkel { color: var(--evergreen); }

.h2 { font-size: 46px; line-height: 1.12; letter-spacing: -0.01em; font-weight: 700; color: var(--ink); }
.h2 .light, .h3 .light { font-weight: 300; }
.h3 { font-size: 28px; line-height: 1.22; letter-spacing: -0.005em; font-weight: 700; color: var(--ink); }
.h4 { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.lead { font-size: 20px; line-height: 1.55; font-weight: 300; }
.small { font-size: 15px; line-height: 1.6; }
.blue { color: var(--blue); }
.blue-light { color: var(--blue-light); }
/* Wortgruppe zusammenhalten; unter 360 px wäre sie breiter als die Spalte */
@media (min-width: 360px) { .nowrap { white-space: nowrap; } }

.head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

/* Trustpunkte: grüner Punkt (nur Schmuck, kein Text in Grün) */
.points { display: flex; flex-direction: column; gap: 10px; }
.points li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.55; font-weight: 700; color: var(--text); }
.points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.points--white li { color: #fff; }
.points--dunkel li { color: var(--evergreen); }
.points--dunkel li::before { background: var(--evergreen); }
.points--row { flex-direction: row; flex-wrap: wrap; gap: 8px 28px; }

.dashes li { font-size: 15px; line-height: 1.6; color: var(--text); }
.dashes li::before { content: "– "; }

/* ---------- Buttons ---------- */
/* Logo-Ecke: Blau unten rechts, Grün oben rechts (wie die linke Hälfte der Bildmarke) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 28px;
  font-size: 15px; line-height: 1.2; font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 0; border-radius: 10px 30px 10px 10px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn img { width: 16px; height: 16px; flex: none; transition: transform .2s; }
.btn:hover img { transform: translateX(3px); }
.btn__pfeil { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn[aria-expanded] img, .btn[aria-expanded] .btn__pfeil { transform: rotate(90deg); }
.btn[aria-expanded="true"] img, .btn[aria-expanded="true"] .btn__pfeil { transform: rotate(-90deg); }
.btn--blue { background: var(--blue); color: #fff; border-radius: 10px 10px 30px 10px; }
.btn--blue:hover { background: var(--blue-hover); }
.btn--rot { background: var(--red); color: #fff; border-radius: 10px 10px 30px 10px; }
.btn--rot:hover { background: var(--red-hover); }
.btn--green { background: var(--green); color: var(--evergreen); }
.btn--green:hover { background: var(--green-hover); }
.btn--evergreen { background: var(--evergreen); color: #fff; }
.btn--evergreen:hover { background: #2c3a10; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--blue-tint); }
.btn--outline { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--outline-white { border: 1.5px solid #fff; color: #fff; background: transparent; }
.btn--outline-white:hover { background: #fff; color: var(--ink); }
.btn--outline-dunkel { border: 1.5px solid var(--evergreen); color: var(--evergreen); background: transparent; }
.btn--outline-dunkel:hover { background: var(--evergreen); color: #fff; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.more-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px;
  font-size: 15px; line-height: 1.55; font-weight: 700; color: var(--blue); text-decoration: none;
}
.more-link img { width: 14px; height: 14px; transition: transform .2s; }
.more-link:hover { text-decoration: underline; }
.more-link:hover img { transform: translateX(3px); }

/* =========================================================
   Kopfleiste
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 50; padding: 10px 24px 0; pointer-events: none; }
.header-bar {
  pointer-events: auto; position: relative; max-width: var(--frame); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 24px; background: #fff; border-radius: 20px;
  filter: drop-shadow(0 6px 12px rgba(0, 26, 56, .08));
}
.brand { flex: none; display: block; }
.brand img { width: 244px; height: 67px; }
/* Eigenes Kopflogo einer Themenseite (META logo, z. B. /portal/): Höhe wie oben, Breite nach dem eigenen Seitenverhältnis */
.brand.brand--eigen img { width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  display: flex; flex-direction: column; gap: 4px; padding-top: 4px;
  font-size: 15px; line-height: 1.2; color: var(--ink); text-decoration: none;
}
.main-nav a::after { content: ""; height: 2px; border-radius: 1px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--blue); font-weight: 700; }
.nav-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.header-call { display: flex; flex-direction: column; font-size: 15px; text-decoration: none; }
.header-call span { color: var(--muted); line-height: 1.6; }
.header-call strong { color: var(--ink); line-height: 1.55; white-space: nowrap; }
.header-mail, .header-wa { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); transition: background-color .2s; }
.header-mail:hover { background: var(--blue); }
.header-mail img { width: 20px; height: 20px; }
.header-wa { background: #25d366; color: #fff; }
.header-wa:hover { background: #1ebe5b; }
.header-wa svg { width: 22px; height: 22px; fill: currentColor; }
/* Symbol „Kontaktformular“ im Kopf (META formular, z. B. /portal/) */
.header-form { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; transition: background-color .2s; }
.header-form:hover { background: var(--blue-hover); }
.header-form svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.header-phone, .nav-toggle { display: none; }

/* =========================================================
   Hero (Startseite)
   ========================================================= */
.hero-wrap { padding: 16px 24px 0; }
.hero {
  position: relative; overflow: hidden; isolation: isolate; max-width: var(--frame); margin-inline: auto;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 740px; padding: 72px 88px;
  border-radius: 30px 30px 130px 30px; background: #fff;
}
/* Hausschnitt auf weißem Grund: Haus rechts, Carport links verschwindet hinter dem Text */
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .92) 38%, rgba(255, 255, 255, 0) 60%);
}
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero h1 { max-width: 640px; font-size: 64px; line-height: 1.08; letter-spacing: -0.015em; }
.hero h1 .h1-rest { font-weight: 300; }
.br-handy { display: none; }
.hero__text { max-width: 560px; font-size: 20px; line-height: 1.55; color: var(--text); }
.hero .btn-row { padding-top: 8px; }
.hero .points { padding-top: 12px; max-width: 640px; }

/* ---------- Kennzahlen-Band ---------- */
.stats-wrap { padding: 24px 24px 24px; }
.stats {
  display: flex; align-items: center; max-width: var(--frame); margin-inline: auto;
  padding: 56px 64px; background: var(--navy); color: #fff;
  border-radius: 30px 130px 30px 30px;
}
.stats__label { width: 250px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.stats__label p:not(.eyebrow) { font-size: 20px; line-height: 1.3; font-weight: 300; color: #fff; }
.stats__label strong { font-weight: 700; }
.stats__values { flex: 1; display: flex; align-items: flex-start; }
.stat { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-left: 28px; border-left: 1px solid #fff; }
.stat:last-child { flex: none; width: 250px; }
.stat__num { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.stat__num--text { font-size: 28px; line-height: 1.22; letter-spacing: -0.005em; }
.stat p { font-size: 15px; line-height: 1.6; color: var(--on-dark); }

/* =========================================================
   Zwei Wege: Wohngebäude (Blau) und Unternehmen (Grün)
   ========================================================= */
.wege { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.weg {
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-radius .3s;
}
/* Blau: große Ecke unten rechts, Grün: oben rechts – wie die Bildmarke */
.weg--blau { background: var(--blue); color: #fff; border-radius: 30px 30px 130px 30px; }
.weg--gruen { background: var(--green); color: var(--evergreen); border-radius: 30px 130px 30px 30px; }
.weg__img { height: 280px; overflow: hidden; }
.weg__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
/* Bildfläche aus dem CD-Verlauf mit weißer Bildmarke, bis es ein Foto für Unternehmen gibt */
.weg__img--verlauf {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--evergreen) 0%, var(--green) 55%, var(--smoke) 100%);
}
.weg__img--verlauf img { width: 168px; height: auto; object-fit: contain; opacity: .95; }
.weg__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 36px 40px 44px; }
.weg--blau .h3 { color: #fff; }
.weg--blau .weg__body > p { color: #fff; opacity: .92; }
.weg--gruen .h3, .weg--gruen .weg__body > p { color: var(--evergreen); }
.weg--blau .points li::before { background: #fff; }
.weg .btn-row { margin-top: auto; padding-top: 8px; }
@media (hover: hover) {
  .weg:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 25, 56, .18); }
  .weg--blau:hover { border-bottom-right-radius: 160px; }
  .weg--gruen:hover { border-top-right-radius: 160px; }
  .weg:hover .weg__img img { transform: scale(1.05); }
  .weg:hover .weg__img--verlauf img { transform: none; }
}

/* =========================================================
   Anspruch
   ========================================================= */
.about__intro { display: grid; grid-template-columns: 1fr 560px; gap: 72px; align-items: center; }
.about__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
/* fester Zeilenumbruch: zwei Standorte je Zeile */
.chips__umbruch { flex-basis: 100%; height: 0; }
.chips--zweizeilig { row-gap: 5px; } /* die leere Umbruchzeile bekommt zweimal 5 px = wieder 10 px */
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: 10px 20px 10px 10px; background: var(--blue-tint);
  font-size: 15px; line-height: 1.55; font-weight: 700; color: var(--blue);
}
.chip img { width: 18px; height: 18px; }
.about__img { height: 480px; border-radius: 30px 130px 30px 30px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-radius .3s; }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Schmaler Navy-Rahmen: helle Karten in Farbe und Form der dunklen in der Mitte */
.fcard {
  display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--navy); border-radius: 30px 130px 30px 30px; background: #fff;
  transition: transform .25s, box-shadow .25s, border-radius .3s;
}
.fcard__img { height: 230px; overflow: hidden; }
.fcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fcard__body { display: flex; flex-direction: column; gap: 10px; padding: 28px 30px 36px; }
/* Ohne Bild: kleinere Ecke, damit sie den Text nicht anschneidet */
.fcard--text { border-radius: 24px 80px 24px 24px; }
.fcard--text .fcard__body { padding: 36px 40px 40px; }
.fcard--navy { background: var(--navy); }
.fcard--navy .eyebrow { color: var(--blue-light); }
.fcard--navy .h3 { color: #fff; }
.fcard--navy p { color: #fff; opacity: .9; }
@media (hover: hover) {
  .fcard:hover, .about__img:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 25, 56, .16); border-top-right-radius: 160px; }
  .fcard--text:hover { border-top-right-radius: 110px; }
  .about__img:hover img, .fcard:hover .fcard__img img { transform: scale(1.05); }
}

/* =========================================================
   Leistungen
   ========================================================= */
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.row-head > .head { flex: 1; }
.row-head > p { width: 440px; flex: none; }
.row-head > .stand { width: 440px; flex: none; }

.scard {
  display: flex; flex-direction: column; gap: 20px; overflow: hidden;
  background: #fff; border: 2px solid var(--navy); border-radius: 20px 64px 20px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.scard:hover { border-color: var(--blue); box-shadow: 0 12px 28px rgba(0, 25, 56, .08); }
.scard__img { height: 230px; overflow: hidden; background: var(--navy-card); }
.scard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.scard:hover .scard__img img { transform: scale(1.05); }
.scard__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 24px 26px; }
.scard__title { display: flex; align-items: baseline; gap: 12px; }
.scard__title span { font-size: 15px; line-height: 1.55; font-weight: 700; color: var(--blue); }
/* Aufklappen wie bei khktech.de: Details auf der Startseite, Link zur Themenseite darin */
.scard.is-open { border-color: var(--blue); }
.toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 6px 0 0; border: 0; background: none; cursor: pointer;
  font-size: 15px; line-height: 1.55; font-weight: 700; color: var(--blue);
}
.toggle img { width: 14px; height: 14px; transition: transform .2s; }
.toggle[aria-expanded="true"] img { transform: rotate(180deg); }

/* =========================================================
   Schwerpunkt-Block (dunkle Karte mit Bild)
   ========================================================= */
.focus {
  position: relative; display: grid; grid-template-columns: 560px 1fr;
  overflow: hidden; background: var(--navy); border: 2px solid var(--navy); border-radius: 30px 30px 130px 30px;
  transition: transform .25s, box-shadow .25s, border-radius .3s;
}
.focus__img { position: relative; min-height: 562px; overflow: hidden; }
.focus__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 32% 50%; transition: transform .5s; }
@media (hover: hover) {
  .focus:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 25, 56, .16); border-bottom-right-radius: 160px; }
  .focus:hover .focus__img > img { transform: scale(1.05); }
}
.badge {
  position: absolute; bottom: 24px; left: 24px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--green); color: var(--evergreen); border-radius: 10px 22px 10px 10px;
  font-size: 15px; line-height: 1.55; font-weight: 700;
}
.badge img { width: 26px; height: 7px; }
.focus__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding: 60px; }
.focus__body .h2 { color: #fff; }
.focus__body > p { color: #fff; opacity: .88; }
.focus__body .points { padding-top: 4px; }
.focus__body .btn-row { padding-top: 8px; }

/* =========================================================
   Ablauf
   ========================================================= */
.row-head .h2--wide { max-width: 760px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.steps--5 { grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--smoke); border-radius: 24px; transition: transform .25s, box-shadow .25s, border-radius .3s, background-color .25s; }
.section--smoke .step { background: #fff; }
.steps--5 .step { padding: 24px 22px; }
.step__num { font-size: 48px; line-height: 1; font-weight: 300; letter-spacing: -0.01em; color: var(--blue); }
.step__line { height: 2px; background: var(--blue); }
.step p { font-size: 16px; line-height: 1.6; }
.step--navy { background: var(--navy) !important; border-top-right-radius: 90px; }
.step--navy .step__num { color: var(--blue-light); }
.step--navy .step__line { background: var(--blue-light); }
.step--navy h3, .step--navy h4 { color: #fff; }
.step--navy p { color: #fff; opacity: .85; }
@media (hover: hover) {
  .step:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 25, 56, .14); }
  .step:not(.step--navy):hover { background: var(--blue-tint); border-top-right-radius: 64px; }
  .step--navy:hover { background: var(--navy-card) !important; }
}
.steps-cta { display: none; }
/* Zwei Knöpfe statt einem (z. B. /portal/: „Interesse melden“ + „Zum Portal“): oben nebeneinander, mobil untereinander */
.row-head > .btn-row.steps-head-cta { flex: none; }
.btn-row.steps-cta { flex-direction: column; }
/* Schritt mit Bild oben (z. B. /portal/): Bild randlos, die Karte schneidet die Ecken. */
.step--bild { overflow: hidden; }
.step__img { margin: -28px -28px 6px; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.step__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.note { padding: 22px 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px 40px 16px 16px; color: var(--ink); }
.section--white .note { background: var(--smoke); }

/* =========================================================
   Bewertungen
   ========================================================= */
.vertrauen .h2 { color: #fff; }
.greviews { display: flex; flex-direction: column; gap: 24px; }
.greviews__summary {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px;
  padding: 28px 40px; background: #fff; border-radius: 24px 24px 90px 24px;
}
.greviews__score { display: flex; align-items: center; gap: 18px; }
.g-logo { width: 44px; height: 44px; flex: none; }
.greviews__title { font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--muted); }
.greviews__rating { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; color: var(--ink); }
.greviews__rating strong { font-size: 36px; line-height: 1.1; font-weight: 700; }
.greviews__count { font-size: 15px; color: var(--text); }
.greviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.greviews__source { font-size: 13px; line-height: 1.5; color: var(--on-dark-muted); }

.stars {
  --s: 18px;
  display: inline-block; flex: none; width: calc(5 * var(--s)); height: var(--s);
  background: linear-gradient(90deg, #fbbc04 calc(var(--r) / 5 * 100%), #dadce0 0);
  -webkit-mask: url("../img/icons/stern.svg") 0 0 / var(--s) var(--s) repeat-x;
  mask: url("../img/icons/stern.svg") 0 0 / var(--s) var(--s) repeat-x;
}
.stars--lg { --s: 26px; }

.gcard { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 24px; background: #fff; border-radius: 24px; color: var(--ink); }
.gcard__head { display: flex; align-items: center; gap: 12px; }
.gcard__avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--blue); color: #fff; font-size: 17px; font-weight: 700; }
.gcard__who { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 15px; line-height: 1.4; }
.gcard__who a, .gcard__who strong { font-weight: 700; color: var(--ink); text-decoration: none; }
.gcard__who a:hover { text-decoration: underline; }
.gcard__who span,
.gcard__who .gcard__zeit { font-size: 14px; font-weight: 400; color: var(--muted); }
.gcard__g { width: 20px; height: 20px; flex: none; }
.gcard__text {
  margin: 0; font-size: 16px; line-height: 1.6; color: var(--text);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden;
}
.gcard__text.is-open { display: block; -webkit-line-clamp: unset; }
.gcard__more { align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--blue); }
.gcard--cta {
  justify-content: center; gap: 16px; min-height: 220px; text-decoration: none;
  background: var(--navy-card); color: #fff; border-radius: 24px 90px 24px 24px; transition: background-color .2s;
}
.gcard--cta:hover { background: var(--blue); }
.gcard--cta strong { font-size: 20px; line-height: 1.3; }
.gcard--cta img { width: 40px; height: 40px; padding: 6px; background: #fff; border-radius: 50%; box-sizing: content-box; }
.gcard__arrow { font-size: 24px; line-height: 1; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: flex; align-items: flex-start; gap: 64px; }
.faq__intro { position: sticky; top: 130px; width: 400px; flex: none; }
.ask-box { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 20px; background: #fff; border-radius: 16px 30px 16px 16px; }
.section--white .ask-box { background: var(--smoke); }
.ask-box span { font-size: 15px; line-height: 1.6; color: var(--text); }
.ask-box a { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--blue); text-decoration: none; }
.faq__list { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s; }
.faq-item summary {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px; cursor: pointer; list-style: none;
  font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary > span { flex: 1; }
.faq-item summary i { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 16px; background: var(--navy); transition: background-color .2s, transform .2s; }
.faq-item summary i img { width: 16px; height: 16px; }
.faq-item:hover { border-color: var(--blue); }
.faq-item:hover summary i { background: var(--blue); }
.faq-item[open] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.faq-item[open] summary { padding-bottom: 12px; }
.faq-item[open] summary i { background: var(--blue); transform: rotate(45deg); }
.faq-item__body { padding: 0 24px 22px; color: var(--text); }
.faq-item__body a { color: var(--blue); font-weight: 700; }

/* =========================================================
   Kontakt
   ========================================================= */
.kontakt { padding-bottom: 48px; }
.kontakt__grid { display: grid; grid-template-columns: 1fr 560px; grid-template-areas: "text form" "messenger form"; gap: 48px 64px; }
.kontakt__text { grid-area: text; align-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.kontakt__grid > .form-card { grid-area: form; }
.kontakt__grid > .messenger { grid-area: messenger; align-self: start; }
.kontakt__text .h2 { color: #fff; }
.kontakt__text .lead { color: #fff; opacity: .9; }

.form-card { display: flex; flex-direction: column; gap: 16px; padding: 36px; background: #fff; border-radius: 24px; color: var(--text); }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { padding: 0; font-size: 14px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.field legend { margin-bottom: 8px; }
.field input:not([type="radio"]), .field textarea {
  width: 100%; padding: 15px 16px; border: 1px solid var(--field); border-radius: 12px; background: #fff;
  font-size: 17px; line-height: 1.65; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 109, 255, .18); }
.field input:user-invalid { border-color: var(--error); }
/* Auswahl Wohngebäude / Unternehmen als Schaltflächen (Figma: „Worum geht es?“) */
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; cursor: pointer; font-weight: 400; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--field); border-radius: 10px;
  font-size: 15px; line-height: 1.3; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s;
}
/* Grün wie im CD: helle Fläche mit grünem Rand, gewählt Grün mit dunkler Schrift (Weiß auf Grün wäre zu schwach) */
.choice span { background: var(--green-tint); border-color: var(--green); color: var(--evergreen); }
.choice label:hover span { border-color: var(--green-hover); background: #e2f0cf; }
.choice input:checked + span { background: var(--green); border-color: var(--green); color: var(--evergreen); font-weight: 700; }
.choice input:checked + span::before { content: "✓"; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(131, 190, 50, .45); }
.legend-hint { font-weight: 400; color: var(--muted); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--blue); }
.consent a { color: var(--blue); }
.form-note { font-size: 15px; line-height: 1.6; color: var(--muted); }
.form-msg { display: none; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.6; }
.form-msg.is-ok { display: block; background: #e7f6ec; color: #135c2c; }
.form-msg.is-error { display: block; background: #fdecea; color: #8a1a0b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.messenger { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px 28px; background: var(--navy-card); border-radius: 20px 20px 60px 20px; }
.messenger__title { font-size: 20px; line-height: 1.3; font-weight: 700; color: #fff; }
.messenger__text { font-size: 16px; line-height: 1.6; color: var(--on-dark); }
.messenger .btn-row { padding-top: 6px; }
/* Symbole von Simple Icons (CC0), Buttons in den Markenfarben – ohne Logo-Ecke */
.messenger svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.btn--whatsapp { background: #25d366; color: var(--navy); border-radius: 10px; }
.btn--whatsapp:hover { background: #1ebe5b; }
.btn--discord { background: #5865f2; color: #fff; border-radius: 10px; }
.btn--discord:hover { background: #4752c4; }

/* =========================================================
   Fußzeile
   ========================================================= */
.ci-band { height: 10px; background: linear-gradient(90deg, var(--evergreen) 0%, var(--green) 28%, var(--smoke) 50%, var(--blue) 72%, var(--navy) 100%); }
.site-footer { padding: 80px 0 40px; background: var(--evergreen); color: #fff; font-size: 15px; line-height: 1.6; }
.footer-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.footer-brand { width: 100%; display: flex; align-items: center; gap: 48px; }
.footer-brand img { width: 240px; height: auto; flex: none; }
.footer-brand p { max-width: 640px; opacity: .72; }
.footer-col { flex: 1; display: flex; flex-direction: column; gap: 12px; white-space: nowrap; }
/* Vier Standorte in einer Reihe, darunter Leistungen und Navigation als Zeile */
.footer-col--ort { flex: 1 1 calc(25% - 36px); }
.footer-col--inline { flex: 1 1 calc(50% - 24px); white-space: normal; }
.footer-col.footer-col--inline ul { flex-direction: row; flex-wrap: wrap; gap: 6px 0; }
.footer-col--inline li:not(:last-child)::after { content: "\00a0\00a0·\00a0\00a0"; opacity: .6; }
.footer-col h2 { font-size: 13px; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--green-light); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col li, .footer-col a { opacity: .85; text-decoration: none; color: #fff; }
.footer-col li a { opacity: 1; }
.footer-col a:hover { text-decoration: underline; }
.footer-col--ort ul { gap: 10px; }
.footer-col--ort li { opacity: 1; }
.footer-col--ort a { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; }
.footer-col--ort a.tel { font-size: 19px; font-weight: 700; }
.footer-col--ort img { width: 18px; height: 18px; flex: none; }
.footer-line { height: 1px; background: rgba(255, 255, 255, .5); margin: 56px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.footer-bottom p { opacity: .6; }
.footer-bottom a { color: #fff; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* =========================================================
   Einwilligung (Google Analytics)
   ========================================================= */
.consent-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 80; width: min(440px, calc(100% - 32px));
  display: flex; flex-direction: column; gap: 16px; padding: 24px;
  background: #fff; border-radius: 20px 40px 20px 20px; box-shadow: 0 18px 48px rgba(0, 25, 56, .22);
  color: var(--text); font-size: 15px; line-height: 1.6;
}
.consent-banner[hidden] { display: none; }
.consent-banner h2 { font-size: 17px; line-height: 1.3; }
.consent-banner a { color: var(--blue); }
.consent-banner .btn-row .btn { flex: 1; padding: 14px 20px; }

/* =========================================================
   Themenseiten
   ========================================================= */
/* Kopf einer Themenseite: Text links, Bild rechts in CI-Rundung */
.page-hero-wrap { padding: 16px 24px 0; }
.page-hero {
  max-width: var(--frame); margin-inline: auto; display: grid; grid-template-columns: 1fr 520px; align-items: center; gap: 56px;
  padding: 56px 72px; background: #fff; border-radius: 30px 30px 130px 30px;
}
.page-hero--gruen { border-radius: 30px 130px 30px 30px; }
.page-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.page-hero h1 { font-size: 52px; line-height: 1.1; letter-spacing: -0.012em; }
.page-hero h1 .light { font-weight: 300; }
.page-hero__lead { font-size: 19px; line-height: 1.6; color: var(--text); }
.page-hero__img { height: 420px; overflow: hidden; border-radius: 24px 24px 100px 24px; }
.page-hero--gruen .page-hero__img { border-radius: 24px 100px 24px 24px; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__img--verlauf { display: grid; place-items: center; background: linear-gradient(135deg, var(--evergreen) 0%, var(--green) 55%, var(--smoke) 100%); }
.page-hero__img--verlauf img { width: 200px; height: auto; object-fit: contain; }
/* Dokumentseite (z. B. iSFP) ganz zeigen, nicht beschneiden. */
.page-hero__img--dokument { padding: 22px; background: var(--smoke); }
.page-hero__img--dokument img { object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0, 25, 56, .16)); }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }

/* Sprungmarken unter dem Kopf */
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px 20px 10px 10px; background: #fff;
  font-size: 14px; line-height: 1.3; font-weight: 700; color: var(--ink); text-decoration: none; transition: border-color .2s, color .2s;
}
.jump a:hover { border-color: var(--blue); color: var(--blue); }

/* Thema: Text und Bild nebeneinander, jedes zweite gespiegelt */
.topic { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.topic--flip .topic__media { order: -1; }
.topic__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.topic__media { height: 440px; overflow: hidden; border-radius: 30px 130px 30px 30px; }
.topic--flip .topic__media { border-radius: 30px 30px 130px 30px; }
.topic__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
@media (hover: hover) { .topic__media:hover img { transform: scale(1.04); } }
.topic__text .points { padding-top: 4px; }

/* Kacheln „Das bekommen Sie“ */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facts--2 { grid-template-columns: repeat(2, 1fr); }
.facts--4 { grid-template-columns: repeat(4, 1fr); }
.fact {
  display: flex; flex-direction: column; gap: 8px; padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px 48px 20px 20px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.section--white .fact { background: var(--smoke); border-color: transparent; }
.fact h3, .fact h4 { font-size: 18px; line-height: 1.35; }
.fact p { font-size: 16px; line-height: 1.6; }
.fact__num { font-size: 15px; font-weight: 700; color: var(--blue); }
@media (hover: hover) { .fact:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 25, 56, .1); border-color: var(--blue); } }
/* Kachel als Link zu einer Leistungsseite */
.fact--link { text-decoration: none; color: var(--text); }
.fact--link .more-link { padding-top: 8px; }
.fact--link:hover .more-link { text-decoration: underline; }
.fact--link:hover .more-link img { transform: translateX(3px); }

/* Stand-Kasten: Zahlen zu Förderung und Gesetzen, zentral gepflegt */
.stand {
  display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 20px 24px;
  background: var(--green-tint); border-left: 4px solid var(--green); border-radius: 4px 24px 16px 4px; color: var(--evergreen);
}
.stand__label { font-size: 13px; line-height: 1.2; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.stand p, .stand li { font-size: 16px; line-height: 1.6; }
.stand ul { display: flex; flex-direction: column; gap: 4px; }
.stand li { position: relative; padding-left: 16px; }
.stand li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--evergreen); }
.stand small { font-size: 14px; opacity: .8; }

/* Programmkarten auf der Förderseite */
.programs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.program { display: flex; flex-direction: column; gap: 12px; padding: 30px 32px; background: #fff; border: 2px solid var(--navy); border-radius: 20px 64px 20px 20px; transition: border-color .2s, box-shadow .2s; }
.program:hover { border-color: var(--blue); box-shadow: 0 12px 28px rgba(0, 25, 56, .08); }
.program__tag { align-self: flex-start; padding: 4px 10px; border-radius: 8px; background: var(--blue-tint); font-size: 13px; font-weight: 700; color: var(--blue); }
.program__tag--gruen { background: var(--green-tint); color: var(--evergreen); }
.program dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 4px 0 0; font-size: 16px; line-height: 1.55; }
.program dt { font-weight: 700; color: var(--ink); }
.program dd { margin: 0; }
.program dd a { color: var(--blue); font-weight: 700; }

/* Kompakte Programmliste auf der Seite „Leistungen“ */
.prog-list { display: flex; flex-direction: column; margin-top: 4px; }
.prog-list li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--ink); }
.prog-list li:first-child { border-top: 0; padding-top: 2px; }
.prog-list .program__tag { flex: none; min-width: 64px; text-align: center; }
/* Downloads: Karten mit Dateiangaben und Knopf unten */
.download .btn { align-self: flex-start; margin-top: auto; }
.download .fact__num { font-size: 13px; letter-spacing: .04em; }
.download__stand { font-size: 14px; color: var(--muted); }
.download > p:not(.download__stand) { margin-bottom: 6px; }
.prog-note { margin-top: auto; padding-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Heizungsarten auf der Seite „Leistungen“: oben eine breite Karte, darunter zwei mal zwei */
.tech-block { display: flex; flex-direction: column; gap: 32px; }
.tech-block .head > p:not(.eyebrow) { max-width: 760px; }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tech {
  display: flex; flex-direction: column; overflow: hidden; background: var(--smoke); border-radius: 24px 90px 24px 24px;
  transition: transform .25s, box-shadow .25s;
}
.section--smoke .tech { background: #fff; }
.tech__img { aspect-ratio: 16 / 9; overflow: hidden; }
.tech__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tech__img--oben img { object-position: center 20%; }
.tech__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px 30px 32px; }
.tech__body p { font-size: 16px; line-height: 1.6; }
.tech__tag { padding: 4px 10px; border-radius: 8px; background: var(--green-tint); font-size: 13px; line-height: 1.4; font-weight: 700; color: var(--evergreen); }
.tech--breit { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.tech--breit .tech__img { aspect-ratio: auto; min-height: 360px; }
.tech--breit .tech__body { justify-content: center; padding: 40px 48px; }
@media (hover: hover) {
  .tech:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 25, 56, .1); }
  .tech:hover .tech__img img { transform: scale(1.04); }
}

/* Abschluss-Band mit Anfrage */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 44px 56px; background: var(--blue); color: #fff; border-radius: 30px 30px 130px 30px;
}
.cta-band .h3 { color: #fff; }
.cta-band p { color: #fff; opacity: .92; }
.cta-band__text { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }

/* =========================================================
   Erweiterungen: ein Klick auf eine Karte öffnet darunter die Details.
   Raster mit "dense": Die offene Erweiterung nimmt die ganze Breite ein und
   steht direkt unter der Reihe ihrer Karte – bei drei, zwei oder einer Spalte.
   ========================================================= */
.wege, .leistungs-grid { grid-auto-flow: row dense; }
.detail {
  grid-column: 1 / -1; position: relative; min-width: 0; padding: 56px 56px 44px; hyphens: auto; overflow-wrap: anywhere;
  background: var(--navy); border: 2px solid var(--navy); border-radius: 30px 30px 130px 30px; color: var(--on-dark);
  animation: detail-auf .35s ease-out;
}
.detail[hidden] { display: none; }
.detail--gruen { background: var(--evergreen); border-color: var(--evergreen); border-radius: 30px 130px 30px 30px; }
@keyframes detail-auf { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.detail__inner { display: flex; flex-direction: column; gap: 56px; }
.detail__title { font-size: 40px; line-height: 1.14; letter-spacing: -0.01em; }
.detail__title .light { font-weight: 300; }
.detail__intro > p:not(.eyebrow) { max-width: 820px; font-size: 18px; line-height: 1.6; }
.detail__block { display: flex; flex-direction: column; gap: 28px; }
.detail__block .head > p:not(.eyebrow) { max-width: 760px; }
.detail__split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.detail__faq { display: flex; flex-direction: column; gap: 18px; }
.detail__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.detail__close {
  display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--blue);
}
.detail__close:hover { text-decoration: underline; }
/* Kästchen mit Kreuz vor "… schließen" – wie der Schließen-Knopf oben in der Ecke */
.detail__close-x {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  border-radius: 12px; background: var(--smoke); color: var(--ink); transition: background-color .2s;
}
.detail__close svg, .detail__x svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.detail__x {
  position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 12px; background: var(--smoke); color: var(--ink); cursor: pointer; transition: background-color .2s;
}
.detail--gruen .detail__x { right: 64px; }
.detail__x:hover { background: var(--blue-tint); }
.detail .topic__media { height: 400px; }
/* Erweiterungen dunkel wie eine Schublade: Prussian Blue unter blauen Karten, Evergreen unter der
   grünen Karte (beides CD). Überschriften und Fließtext hell, Kacheln/Karten/FAQ weiß mit dunkler Schrift. */
.detail h3, .detail h4, .detail h5 { color: #fff; }
.detail .eyebrow { color: var(--blue-light); }
.detail--gruen .eyebrow { color: var(--green-light); }
.detail .points li { color: #fff; }
.detail .text-link { color: var(--blue-light); }
.detail--gruen .text-link { color: var(--green-light); }
.detail .fact, .detail .step, .detail .tech { background: #fff; border-color: transparent; color: var(--text); }
.detail .fact h4, .detail .tech h5, .detail .step h4 { color: var(--ink); }
.detail .faq-item { color: var(--text); border-color: transparent; }
.detail .faq-item summary { color: var(--ink); }
.detail .stand { color: var(--evergreen); }
.detail .stand li, .detail .stand p { color: var(--evergreen); }
.detail .step--navy { background: var(--blue) !important; }
.detail .step--navy h4 { color: #fff; }
.detail .step--navy .step__num { color: #fff; }
.detail .step--navy .step__line { background: #fff; }
/* Im Evergreen-Bereich ist der letzte Schritt grün – mit dunkler Schrift (Weiß auf Grün ist zu schwach) */
.detail--gruen .step--navy { background: var(--green) !important; }
.detail--gruen .step--navy h4, .detail--gruen .step--navy p, .detail--gruen .step--navy .step__num { color: var(--evergreen); }
.detail--gruen .step--navy p { opacity: 1; }
.detail--gruen .step--navy .step__line { background: var(--evergreen); }
.detail .btn--outline { border-color: #fff; color: #fff; }
.detail .btn--outline:hover { background: #fff; color: var(--ink); }
.detail .detail__x { background: rgba(255, 255, 255, .12); color: #fff; }
.detail .detail__x:hover { background: rgba(255, 255, 255, .22); }
.detail .detail__close-x { background: rgba(255, 255, 255, .12); color: #fff; }
.detail .detail__close:hover .detail__close-x { background: rgba(255, 255, 255, .22); }
.detail__foot { border-top-color: rgba(255, 255, 255, .16); }
.detail .detail__close { color: var(--blue-light); }
.detail--gruen .detail__close { color: var(--green-light); }
.topic__media--links img { object-position: left center; }
/* Nicht trennen (z. B. Programmname „Klimafreundlicher Neubau“); nur auf sehr schmalen Handys an den
   gesetzten Stellen (&shy;: „Klima-freundlicher“), damit das Wort nicht ohne Strich abbricht. */
.ohne-trennung { hyphens: none; }
@media (max-width: 359px) { .ohne-trennung { hyphens: manual; } }
.text-link { color: var(--blue); font-weight: 700; }
.weg.is-open { box-shadow: 0 0 0 4px var(--blue-tint); }
.weg--gruen.is-open { box-shadow: 0 0 0 4px var(--green-tint); }

/* =========================================================
   Impressum, Datenschutz
   ========================================================= */
.page-content { padding-block: 72px var(--section-y); }
.page-content .container { max-width: 840px; }
.page-content h1 { font-size: 46px; line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 32px; }
.prose h2 { font-size: 28px; line-height: 1.22; margin: 40px 0 12px; }
.prose h3 { font-size: 20px; line-height: 1.3; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose a { color: var(--blue); }

/* =========================================================
   Responsiv
   ========================================================= */
@media (max-width: 1439px) {
  .brand img { width: 220px; height: 60px; }
  .main-nav ul { gap: 20px; }
  .header-actions { gap: 14px; }
}

/* Telefonnummer im Kopf nur, wenn sie neben Menü und Symbolen Platz hat */
@media (max-width: 1420px) {
  .header-call { display: none; }
}

@media (max-width: 1320px) {
  .brand img { width: 210px; height: 57px; }
  .main-nav ul { gap: 16px; }
  .header-actions { gap: 12px; }
  .hero { padding: 64px; }
  .hero::before { background: linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .93) 46%, rgba(255, 255, 255, .3) 66%, rgba(255, 255, 255, 0) 80%); }
  .hero h1 { font-size: 56px; max-width: 560px; }
  .hero__text { max-width: 500px; }
  .stats { flex-direction: column; align-items: stretch; gap: 32px; padding: 48px; }
  .stats__label { width: auto; }
  .stat:first-child { border-left: 0; padding-left: 0; }
  .about__intro { grid-template-columns: 1fr 1fr; gap: 48px; }
  .focus { grid-template-columns: 2fr 3fr; }
  .faq__intro { width: 340px; }
  .kontakt__grid { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .steps--5 { grid-template-columns: repeat(3, 1fr); }
  .page-hero { grid-template-columns: 1fr 440px; padding: 48px; gap: 40px; }
  .page-hero h1 { font-size: 46px; }
  .facts--4 { grid-template-columns: repeat(2, 1fr); }
}

/* Klappmenü, sobald Menü (mit „Start“), Symbole und Anfrage-Button nicht mehr nebeneinander passen */
@media (max-width: 1210px) {
  .header-actions .btn, .header-form, .main-nav { display: none; }
  .header-phone, .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer;
  }
  /* Grün wie im Figma-Entwurf (Navigation/Mobile): Grün heißt „Anrufen“. Symbol dunkel, weil Weiß auf Grün zu schwach ist. */
  .header-phone { background: var(--blue); transition: background-color .2s; }
  .header-phone:hover { background: var(--blue-hover); }
  .header-phone img { width: 20px; height: 20px; }
  .nav-toggle { background: var(--smoke); }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .2s, background-color .2s; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .header-actions { gap: 8px; }
  .nav-open .main-nav {
    display: block; position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain;
    padding: 8px 24px 24px; background: #fff; border-radius: 20px; box-shadow: 0 18px 40px rgba(0, 25, 56, .18);
  }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { padding: 14px 0; font-size: 17px; }
  .main-nav a::after { display: none; }
  .main-nav .nav-extra { display: grid; gap: 12px; padding-top: 18px; border: 0; }
  .main-nav .nav-extra .btn { display: flex; padding: 18px 28px; font-size: 15px; font-weight: 700; }
  .main-nav .nav-extra .btn--blue, .main-nav .nav-extra .btn--rot { color: #fff; }
  /* Anrufen und E-Mail stehen schon als Symbol im Kopf; E-Mail nur auf schmalen Handys im Menü */
  .main-nav .nav-extra .nav-extra__mail { display: none; }
}

@media (max-width: 1100px) {
  :root { --section-y: 88px; }
  /* Tablet: Kennzahlen zu zweit, Text im Startbild auf breiterer weißer Fläche */
  .stats__values { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .stat, .stat:last-child { width: auto; padding-left: 0; border-left: 0; }
  .hero::before { background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .94) 58%, rgba(255, 255, 255, .45) 78%, rgba(255, 255, 255, 0) 96%); }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .cards-3 > :last-child:nth-child(odd) { grid-column: span 2; }
  .wege { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .greviews__grid { grid-template-columns: 1fr 1fr; }
  .row-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .row-head > p, .row-head > .stand { width: auto; }
  .focus { grid-template-columns: 1fr; }
  .focus__img { min-height: 0; aspect-ratio: 16 / 9; }
  .faq { flex-direction: column; gap: 40px; }
  .faq__intro { position: static; width: 100%; }
  .kontakt__grid { grid-template-columns: 1fr; grid-template-areas: "text" "form" "messenger"; row-gap: 40px; }
  .kontakt__text, .kontakt__grid > .messenger { align-self: auto; }
  .page-hero { grid-template-columns: 1fr; }
  .page-hero__img { height: 320px; }
  .topic { grid-template-columns: 1fr; gap: 36px; }
  .topic--flip .topic__media { order: 0; }
  .topic__media { height: 360px; }
  .facts, .facts--4 { grid-template-columns: 1fr 1fr; }
  .programs { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 20px; }
  .detail { padding: 44px 36px 36px; }
  .detail__split { grid-template-columns: 1fr; gap: 28px; }
  .detail .topic__media { height: 340px; }
}

/* Handy */
@media (max-width: 800px) {
  :root { --gutter: 16px; --section-y: 64px; --block-gap: 32px; }
  body { font-size: 16px; }
  .site-header { padding: 8px 16px 0; }
  .header-bar { gap: 8px; padding: 6px 8px 6px 10px; border-radius: 16px; }
  .header-actions { gap: 6px; }
  .brand img { width: 172px; height: 47px; }
  .h2 { font-size: 30px; line-height: 1.15; }
  .h3 { font-size: 22px; }
  .lead { font-size: 17px; }

  .hero-wrap { padding: 24px 16px 0; }
  .hero { min-height: 0; padding: 0; border-radius: 0; background: none; overflow: visible; }
  .hero::before { display: none; }
  .hero__img { position: static; z-index: 0; height: 250px; border-radius: 24px 24px 90px 24px; object-position: 78% 50%; background: #fff; }
  .hero__content { padding: 24px 4px 0; gap: 18px; }
  .hero h1 { font-size: min(36px, 9.2vw); line-height: 1.1; }
  .br-handy { display: inline; }
  .hero__text { font-size: 16px; }
  .hero .btn-row { flex-direction: column; align-self: stretch; padding-top: 4px; }
  .hero .points--row { flex-direction: column; gap: 6px; padding-top: 0; }

  .stats-wrap { padding: 16px; }
  .stats { padding: 28px 24px; border-radius: 24px 90px 24px 24px; gap: 24px; }
  .stats__label p:not(.eyebrow) { font-size: 17px; }
  .stats__values { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .stat, .stat:last-child { width: auto; padding-left: 0; border-left: 0; }
  .stat__num { font-size: 36px; }
  .stat__num--text { font-size: 22px; }

  .weg--blau { border-radius: 24px 24px 90px 24px; }
  .weg--gruen { border-radius: 24px 90px 24px 24px; }
  @media (hover: hover) { .weg--blau:hover { border-bottom-right-radius: 110px; } .weg--gruen:hover { border-top-right-radius: 110px; } }
  .weg__img { height: 200px; }
  .weg__body { padding: 24px 24px 32px; }
  .weg .btn-row { flex-direction: column; align-self: stretch; }

  .about__intro { grid-template-columns: 1fr; gap: 32px; }
  .about__img { height: 280px; border-radius: 24px 90px 24px 24px; }
  .cards-3, .steps, .steps--5, .greviews__grid, .facts, .facts--2, .facts--4 { grid-template-columns: 1fr; }
  .cards-3 > :last-child:nth-child(odd) { grid-column: auto; }
  .greviews__grid { gap: 16px; }
  .greviews__summary { padding: 24px; border-radius: 24px 24px 60px 24px; }
  .gcard--cta { min-height: 0; }
  .fcard { border-radius: 24px 90px 24px 24px; }
  .fcard__img { height: 190px; }
  .fcard--text { border-radius: 24px 64px 24px 24px; }
  .fcard--text .fcard__body { padding: 24px 24px 28px; }
  @media (hover: hover) { .fcard:hover, .about__img:hover { border-top-right-radius: 110px; } .fcard--text:hover { border-top-right-radius: 90px; } }

  .focus { border-radius: 24px 24px 90px 24px; }
  @media (hover: hover) { .focus:hover { border-bottom-right-radius: 110px; } }
  .focus__img { aspect-ratio: 358 / 260; }
  .focus__body { padding: 28px 24px 36px; }
  .focus__body .btn-row { align-self: stretch; flex-direction: column; }
  .scard__img { height: 220px; }

  .row-head .btn.steps-head-cta, .row-head .btn-row.steps-head-cta { display: none; }
  .steps-cta { display: flex; }
  .step, .steps--5 .step { padding: 22px 20px; }
  .step__img { margin: -22px -20px 4px; }

  .faq-item summary { padding: 18px 20px; font-size: 16px; }
  .faq-item__body { padding: 0 20px 20px; font-size: 16px; }

  .form-card { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .kontakt__grid { row-gap: 32px; }
  .messenger { padding: 20px 20px 24px; border-radius: 16px 16px 48px 16px; }

  .page-hero-wrap { padding: 24px 16px 0; }
  .page-hero { padding: 24px 20px 28px; gap: 24px; border-radius: 24px 24px 90px 24px; }
  .page-hero--gruen { border-radius: 24px 90px 24px 24px; }
  .page-hero h1 { font-size: min(34px, 8.6vw); }
  .page-hero__lead { font-size: 16px; }
  .page-hero__img { height: 220px; order: -1; border-radius: 18px 18px 64px 18px; }
  .page-hero--gruen .page-hero__img { border-radius: 18px 64px 18px 18px; }
  .page-hero .btn-row { flex-direction: column; align-self: stretch; }
  .topic__media { height: 240px; border-radius: 24px 90px 24px 24px; }
  .topic--flip .topic__media { border-radius: 24px 24px 90px 24px; }
  .fact { padding: 22px 22px; }
  .program { padding: 24px 22px; border-radius: 18px 48px 18px 18px; }
  .program dl { grid-template-columns: 1fr; gap: 2px; }
  .program dd { margin-bottom: 8px; }
  .tech-grid { grid-template-columns: 1fr; gap: 16px; }
  .detail { padding: 64px 18px 24px; border-radius: 24px 24px 90px 24px; hyphens: auto; }
  .detail--gruen { border-radius: 24px 90px 24px 24px; }
  .detail__inner { gap: 40px; }
  .detail__title { font-size: min(28px, 7.6vw); }
  .detail__intro > p:not(.eyebrow) { font-size: 16px; }
  .detail .topic__media { height: 220px; }
  .detail__x { top: 12px; right: 12px; }
  .detail--gruen .detail__x { right: 40px; }
  .detail__foot { flex-direction: column; align-items: stretch; }
  .detail__foot .btn { white-space: normal; text-align: center; }
  .detail__close { justify-content: center; }
  .tech { border-radius: 24px 64px 24px 24px; }
  .tech--breit { display: flex; }
  .tech--breit .tech__img { aspect-ratio: 16 / 9; min-height: 0; }
  .tech__body, .tech--breit .tech__body { padding: 22px 22px 26px; }
  .cta-band { padding: 28px 24px 36px; border-radius: 24px 24px 90px 24px; }
  .cta-band .btn { align-self: stretch; white-space: normal; text-align: center; }

  .site-footer { padding: 48px 0 32px; }
  .footer-cols { flex-direction: column; gap: 28px; }
  .footer-col:not(.footer-col--inline) { order: 1; }
  .footer-col--leistungen { order: 2; }
  .footer-col--nav, .footer-col--recht { order: 3; }
  .footer-col { white-space: normal; }
  .footer-col ul { gap: 8px; }
  .footer-col--inline li:not(:last-child)::after { content: "\00a0·\00a0"; }
  .footer-line { margin: 32px 0 24px; }
  .footer-bottom { flex-direction: column; }
  .consent-banner { left: 16px; bottom: 16px; padding: 20px; }
}

/* Unter 412 px passen nur drei Symbole neben das Logo in voller Größe: E-Mail steht dann im Menü */
@media (max-width: 411px) {
  .header-mail { display: none; }
  .main-nav .nav-extra .nav-extra__mail { display: flex; }
}

@media (max-width: 380px) {
  .brand img { width: 154px; height: 42px; }
}
