/* ============================================================
   ENERZIM – Design-System
   Anmutung: technische Planzeichnung trifft redaktionelle Ruhe.
   Variante B2C (Wohngebäude): Serif-Akzente, warmes Papier.
   Variante B2B (Nichtwohngebäude): Grotesk + Mono, präzise Flächen.
   ============================================================ */

/* ---------- Fonts (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --ink: #2F3232;
  --ink-soft: #4A4E4C;
  --dark: #272A29;
  --dark-2: #2E3130;
  --green: #73C70A;
  --green-text: #45790A;
  --green-pale: #EFF6E2;
  --gray: #8C8C8F;       /* Logo-Grau: nur dekorativ (Linien, Rahmen, Trenner) – für Text zu hell (3,1–3,35:1) */
  --gray-text: #6E6E71;  /* Grau für kleinen Text auf hellem Grund: Weiß 5,08:1 · Papier 4,70:1 · Grün blass 4,59:1 */
  --muted: #6B706D;
  --line: #DFDED7;
  --line-dark: rgba(255, 255, 255, .16);
  --sc-r: #FF1E49;
  --sc-o: #FF9937;
  --sc-y: #FAC300;
  --sc-g: #4DBA4F;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --shell: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}
.variant-b2c {
  --font-head: var(--sans);
  --head-weight: 630;
  --head-track: -0.014em;
  --bg-page: var(--paper);
}
.variant-b2b {
  --font-head: var(--sans);
  --head-weight: 640;
  --head-track: -0.012em;
  --bg-page: var(--white);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Das hidden-Attribut schlägt jede display-Regel – sonst bleiben zugeklappte
   Elemente (Menüs, Filterlisten) als unsichtbare Klickfänger stehen. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-track);
  line-height: 1.12;
  overflow-wrap: break-word;
}
/* Lange deutsche Komposita (z. B. „Geschwindigkeitsbonus") auf schmalen Screens sauber trennen */
@media (max-width: 520px) {
  h1, h2, h3 { hyphens: auto; }
}
:focus-visible { outline: 2px solid var(--green-text); outline-offset: 3px; }
::selection { background: var(--green); color: var(--dark); }

.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 10px 16px; background: var(--dark); color: #fff; font-size: 14px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Wiederkehrende Elemente ---------- */

/* Kicker im Stil einer Plan-Annotation: Maßstrich + Text */
.kicker {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-size: 12.5px; font-weight: 640; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-text);
  font-family: var(--sans);
}
.variant-b2b .kicker { font-family: var(--mono); font-weight: 500; font-size: 12px; }
.kicker::before {
  content: ""; width: 34px; height: 9px; flex: none;
  background:
    linear-gradient(var(--green-text), var(--green-text)) 0 50% / 100% 1px no-repeat,
    linear-gradient(var(--green-text), var(--green-text)) 0 0 / 1px 100% no-repeat,
    linear-gradient(var(--green-text), var(--green-text)) 100% 0 / 1px 100% no-repeat;
}
.on-dark .kicker { color: #A9CE7B; }
.on-dark .kicker::before {
  background:
    linear-gradient(#A9CE7B, #A9CE7B) 0 50% / 100% 1px no-repeat,
    linear-gradient(#A9CE7B, #A9CE7B) 0 0 / 1px 100% no-repeat,
    linear-gradient(#A9CE7B, #A9CE7B) 100% 0 / 1px 100% no-repeat;
}

/* Energieskala-Punkte (aus dem Logo) */
.scale-dots { display: inline-flex; gap: 7px; align-items: center; }
.scale-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.scale-dots .d-red { background: var(--sc-r); }
.scale-dots .d-orange { background: var(--sc-o); }
.scale-dots .d-yellow { background: var(--sc-y); }
.scale-dots .d-green { background: var(--sc-g); }

/* Energieskala als segmentierte Linie (Footer, Akzente) */
.scale-bar { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; height: 3px; }
.scale-bar b:nth-child(1) { background: var(--sc-r); }
.scale-bar b:nth-child(2) { background: var(--sc-o); }
.scale-bar b:nth-child(3) { background: var(--sc-y); }
.scale-bar b:nth-child(4) { background: var(--sc-g); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px; border: 0; border-radius: 2px;
  font-family: var(--sans); font-size: 15px; font-weight: 620; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.btn .arr { font-weight: 400; transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1E2120; }
.btn-green { background: var(--green); color: #1E2410; }
.btn-green:hover { background: #82D91A; }
.btn-outline {
  background: transparent; color: inherit;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn-outline:hover { background: rgba(0,0,0,.05); }
.on-dark .btn-outline:hover { background: rgba(255,255,255,.08); }

.text-link {
  display: inline-flex; align-items: baseline; gap: 9px;
  font-size: 15px; font-weight: 620; text-decoration: none;
  color: var(--green-text);
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.text-link:hover { color: var(--ink); }
.on-dark .text-link { color: #B5DA84; }
.on-dark .text-link:hover { color: #fff; }

/* Maßketten-Divider (Architektur-Bemaßung) */
.dim-line { position: relative; height: 1px; background: var(--line); margin: 0; border: 0; }
.dim-line::before, .dim-line::after {
  content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--line);
}
.dim-line::before { left: 0; transform: rotate(20deg); }
.dim-line::after { right: 0; transform: rotate(20deg); }

/* Abschnittsköpfe */
.sec-head { max-width: 780px; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 44px); }
.sec-head .sec-intro { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 620px; }
.on-dark .sec-head .sec-intro { color: #B9C0BB; }

/* Scroll-Reveal (Klassen werden ausschließlich per JS vergeben) */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
@media print {
  .rv, .sb-anim b { opacity: 1 !important; transform: none !important; }
  .fab, .site-switch, .nav-toggle { display: none !important; }
}
.rv-in { opacity: 1; transform: none; }
.sb-anim b { transform: scaleX(0); transform-origin: left center; transition: transform .45s ease; }
.sb-anim b:nth-child(2) { transition-delay: .1s; }
.sb-anim b:nth-child(3) { transition-delay: .2s; }
.sb-anim b:nth-child(4) { transition-delay: .3s; }
.sb-anim.sb-in b { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .rv, .sb-anim b { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Bereichswahl über dem Header (verbindet beide Websites)
   ============================================================ */
.site-switch { background: var(--dark); }
.site-switch-inner { display: flex; align-items: stretch; gap: 26px; min-height: 36px; }
.ss-item {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  color: #9BA39E; text-decoration: none;
}
a.ss-item:hover { color: #fff; }
a.ss-item:hover .ss-arr { transform: translateX(3px); }
.ss-item.is-active { color: #fff; box-shadow: inset 0 -2px 0 var(--green); }
.ss-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.ss-arr { color: var(--green); transition: transform .15s ease; }
.ss-short { display: none; }
@media (max-width: 700px) {
  .ss-long { display: none; }
  .ss-short { display: inline; }
  .site-switch-inner { gap: 20px; }
}

/* ============================================================
   Mobile Kontakt-Bubble
   ============================================================ */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 85; display: none; }
@media (max-width: 760px) {
  .fab { display: block; }
  /* Platz unter der letzten Footer-Zeile, damit die fixe Bubble (16px + 56px) am Seitenende keinen Text verdeckt */
  .site-footer .footer-bottom { padding-bottom: 88px; }
}
.fab-toggle {
  display: grid; place-items: center; width: 56px; height: 56px; margin-left: auto;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--green); color: #1E2410;
  box-shadow: 0 10px 24px -8px rgba(30, 33, 31, .55);
  transition: background-color .18s ease, color .18s ease;
}
.fab-toggle svg { width: 26px; height: 26px; }
.fab-close-ico { display: none; }
.fab.is-open .fab-open-ico { display: none; }
.fab.is-open .fab-close-ico { display: block; }
.fab.is-open .fab-toggle { background: var(--ink); color: #fff; }
.fab-menu {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 9px;
}
.fab-menu li { opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease; }
.fab.is-open .fab-menu li { opacity: 1; transform: none; }
.fab.is-open .fab-menu li:nth-last-child(2) { transition-delay: .04s; }
.fab.is-open .fab-menu li:nth-last-child(3) { transition-delay: .08s; }
.fab.is-open .fab-menu li:nth-last-child(4) { transition-delay: .12s; }
.fab.is-open .fab-menu li:nth-last-child(5) { transition-delay: .16s; }
.fab-menu a {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 8px 8px 8px 17px; border-radius: 24px;
  background: var(--dark); color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 560;
  box-shadow: 0 8px 20px -10px rgba(30, 33, 31, .6);
}
.fab-ico { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--green); color: #1E2410; flex: none; }
.fab-ico svg { width: 17px; height: 17px; }
@media (prefers-reduced-motion: reduce) {
  .fab-menu li { transition: none; }
}
.fab.fab-dodge { opacity: 0; pointer-events: none; transition: opacity .2s ease; }

/* Ordnungszahlen und Positionsangaben: eine gemeinsame Definition.
   tabular-nums hält die Ziffern gleich breit (Spalten bleiben bündig),
   ohne den Schreibmaschinen-Look von Monospace. */
.entry-row .nr, .sf-body .nr, .lv-row .pos, .story-step .nr,
.process-grid .nr, .career-list .nr, .pcard-nr, .form-kicker,
.detail-steps li::before, .wiz-progress li i {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--bg-page);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(30, 33, 31, .5); }
.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; flex: none; }
.brand-logo { height: 54px; width: auto; }
.brand-icon { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-word { font-family: var(--sans); font-size: 21px; font-weight: 780; letter-spacing: -.02em; color: var(--ink); }
.brand-word small { font-weight: 430; color: var(--gray-text); letter-spacing: 0; font-size: 21px; }
.brand-sub { margin-top: 3px; font-size: 10.5px; font-weight: 570; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.variant-b2b .brand-sub { font-family: var(--mono); font-weight: 500; letter-spacing: .1em; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 15px; font-weight: 540; text-decoration: none; color: var(--ink-soft); }
.main-nav a:hover { color: var(--green-text); }
.main-nav .btn { padding: 11px 20px; font-size: 14px; }
.main-nav a.nav-rechner { color: var(--green-text); font-weight: 660; }
.main-nav a.nav-rechner:hover { color: var(--ink); }
.main-nav a.btn-ink { color: #fff; }
.main-nav a.btn-ink:hover { color: #fff; background: #1E2120; }

/* Leistungen-Submenü (Desktop) */
.nav-sub { position: relative; }
.nav-sub > a { display: inline-flex; align-items: center; gap: 6px; padding: 26px 0; }
.sub-caret { font-size: 10px; color: var(--gray-text); transition: transform .18s ease; }
.sub-menu {
  position: absolute; top: 100%; left: -22px; z-index: 95;
  min-width: 330px; margin: 0; padding: 8px 0; list-style: none;
  background: var(--bg-page);
  border: 1px solid var(--line); border-top: 2px solid var(--green);
  box-shadow: 0 18px 38px -22px rgba(30, 33, 31, .45);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-sub:hover .sub-menu, .nav-sub:focus-within .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-sub:hover .sub-caret, .nav-sub:focus-within .sub-caret { transform: rotate(180deg); }
.sub-menu a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 22px;
  font-size: 14.5px; font-weight: 540; text-decoration: none; color: var(--ink-soft);
}
.sub-menu a:hover { background: var(--green-pale); color: var(--ink); }

/* Leistungen-Unterpunkte (Mobile) */
.mobile-sub a {
  font-family: var(--sans) !important; font-size: 15px !important; font-weight: 500 !important;
  padding: 11px 0 11px 22px !important; color: var(--ink-soft);
  display: flex !important; align-items: baseline; gap: 10px;
}

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 2px;
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink);
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -7px; left: 0; right: 0; }
.nav-toggle span::after { top: 7px; left: 0; right: 0; }
.nav-open .nav-toggle span { transform: rotate(45deg); }
.nav-open .nav-toggle span::before { transform: rotate(-90deg) translateX(-7px); }
.nav-open .nav-toggle span::after { opacity: 0; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-page);
}
.nav-open .mobile-nav { display: block; }
.mobile-nav ul { margin: 0; padding: 10px 0 22px; list-style: none; }
.mobile-nav a {
  display: block; padding: 13px 0;
  font-family: var(--font-head); font-size: 21px; font-weight: 560;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-nav .mobile-cta { margin-top: 18px; }
.mobile-nav .mobile-cta a { font-family: var(--sans); font-size: 15px; border-bottom: 0; padding: 15px 26px; }

/* ============================================================
   Hero B2C – Video mit asymmetrischem Papier-Panel
   ============================================================ */
.hero-b2c { position: relative; background: var(--dark); }
.hero-b2c .hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-b2c video, .hero-b2c .hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-b2c .hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(78deg, rgba(24, 26, 24, .42) 0%, rgba(24, 26, 24, .05) 55%);
}
.hero-b2c .shell { position: relative; z-index: 2; }
.hero-b2c .shell { padding: clamp(56px, 9vh, 110px) 0; }
.hero-panel {
  width: min(600px, 100%);
  padding: clamp(30px, 4vw, 52px);
  background: var(--paper);
  border-top: 3px solid var(--green);
}
.hero-panel h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.14; max-width: 18em; }
.hero-panel .hero-copy { margin: 20px 0 0; font-size: 17px; color: var(--ink-soft); max-width: 34em; }
.hero-panel .scale-dots { margin-top: 22px; }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero-meta {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted); line-height: 1.65;
}
.hero-meta strong { color: var(--ink); font-weight: 620; }

/* ============================================================
   Hero B2B – Video, dunkle Fläche, Plankopf
   ============================================================ */
.hero-b2b { position: relative; background: var(--dark); color: #fff; }
.hero-b2b .hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-b2b video, .hero-b2b .hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-b2b .hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(12deg, rgba(22, 24, 23, .88) 12%, rgba(22, 24, 23, .38) 58%, rgba(22, 24, 23, .18) 100%);
}
.hero-b2b .shell { position: relative; z-index: 2; }
.hero-b2b-inner {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(30px, 5vw, 80px); align-items: end;
  padding: clamp(90px, 16vh, 170px) 0 clamp(44px, 7vh, 72px);
}
.hero-b2b h1 { font-size: clamp(30px, 3.9vw, 50px); line-height: 1.08; max-width: 15em; color: #fff; }
.hero-b2b .hero-copy { margin: 22px 0 0; font-size: 17px; color: #C9CFCA; max-width: 33em; }
.hero-b2b .hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px 22px; }

/* Plankopf (Titelblock einer technischen Zeichnung) */
.titleblock {
  border: 1px solid var(--line-dark);
  background: rgba(20, 22, 21, .55);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.5;
  color: #C9CFCA;
  backdrop-filter: none;
}
.titleblock header {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 16px; border-bottom: 1px solid var(--line-dark);
  color: #fff; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px;
}
.titleblock dl { margin: 0; }
.titleblock .tb-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px;
  padding: 9px 16px; border-bottom: 1px solid var(--line-dark);
}
.titleblock .tb-row:last-child { border-bottom: 0; }
.titleblock dt { color: #8E9590; margin: 0; }
.titleblock dd { margin: 0; color: #E8EBE8; }

/* ============================================================
   Einstiegs-/Orientierungsblock (B2C): nummerierte Zeilen
   ============================================================ */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(48px, 7vw, 84px) 0; }
.bg-paper { background: var(--paper); }
.bg-white { background: var(--white); }
.bg-dark { background: var(--dark); color: #fff; }
.bg-dark ::selection { background: var(--green); color: var(--dark); }

.entry-rows { margin-top: 44px; border-top: 1px solid var(--line); }
.entry-row {
  display: grid; grid-template-columns: minmax(46px, max-content) 104px minmax(0, 1.05fr) minmax(0, 1.35fr) auto;
  gap: clamp(14px, 2.5vw, 36px); align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.entry-row .nr { font-size: 13px; color: var(--muted); grid-row: 1; grid-column: 1;
  align-self: start; padding-top: 3px; }
.entry-row .go { grid-row: 1; grid-column: 5; align-self: center; }
.entry-thumb { width: 104px; grid-row: 1; grid-column: 2; align-self: center; }
.entry-thumb img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
/* Zeilen ohne Thumbnail (z. B. B2B-Grundlagen) behalten das schlanke Raster */
.entry-row.no-thumb { grid-template-columns: 82px minmax(0, 1.1fr) minmax(0, 1.4fr) auto; align-items: baseline; padding: 26px 0; }
.entry-row.no-thumb .go { grid-column: 4; }
.entry-row h3 { font-size: clamp(19px, 2vw, 23px); }
.entry-row p { font-size: 15px; color: var(--muted); margin: 0; }
.entry-row .go { font-size: 20px; color: var(--green-text); font-weight: 400; transition: transform .18s ease; }
.entry-row:hover h3 { color: var(--green-text); }
.entry-row:hover .go { transform: translateX(4px); }

/* ============================================================
   Leistungen B2C – redaktionelle Wechselzeilen
   ============================================================ */
.service-feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(40px, 6vw, 64px) 0;
}
.service-feature + .service-feature { border-top: 1px solid var(--line); }
.service-feature:nth-child(even) .sf-media { order: 2; }
.sf-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.sf-body .nr { font-size: 13px; color: var(--green-text); }
.sf-body h3 { margin-top: 12px; font-size: clamp(24px, 2.6vw, 31px); max-width: 15em; }
.sf-body p { margin-top: 16px; font-size: 16px; color: var(--muted); max-width: 30em; }
.sf-body .text-link { margin-top: 22px; }
.sf-points { margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; }
.sf-points li { padding: 7px 0 7px 22px; position: relative; }
.sf-points li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 10px; height: 1.5px; background: var(--green-text);
}

/* ============================================================
   Leistungen B2B – Leistungsverzeichnis
   ============================================================ */
.lv { margin-top: 46px; border-top: 1px solid var(--ink); }
.lv-row {
  display: grid; grid-template-columns: 70px minmax(0, 1.05fr) minmax(0, 1.35fr) 150px;
  gap: clamp(16px, 3vw, 40px); align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background-color .18s ease;
}
a.lv-row:hover { background: var(--green-pale); }
.lv-row .pos { font-size: 13px; color: var(--muted); align-self: start; padding-top: 7px; }
.lv-row h3 { font-size: clamp(19px, 2.1vw, 24px); }
.lv-row .lv-desc { font-size: 15px; color: var(--muted); margin: 0; }
.lv-row .lv-row .lv-thumb { align-self: center; }
.lv-thumb { width: 150px; }
.lv-row .lv-thumb img {
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
  filter: grayscale(1); transition: filter .25s ease;
}
a.lv-row:hover .lv-thumb img { filter: grayscale(0); }
.lv-status {
  display: inline-block; margin-top: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--green-text); letter-spacing: .04em;
}
.lv-note { margin-top: 22px; font-size: 13.5px; color: var(--gray-text); max-width: 62em; }

/* ============================================================
   Scroll-Story: Gebäude als Energiesystem
   ============================================================ */
.story-section .sec-head { margin-bottom: clamp(20px, 4vw, 48px); }
.story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.story-stage {
  position: sticky; top: 96px;
  border: 1px solid var(--line); background: var(--white);
}
.variant-b2b .story-stage { background: var(--paper); }

/* Beschriftungen in den Schnittzeichnungen freistellen: Der Text bekommt einen
   Rand in Hintergrundfarbe, der darunterliegende Konstruktionslinien unterbricht
   (Standardverfahren in technischen Zeichnungen). Ausnahme .no-halo für Text,
   der auf farbigen Flächen steht. */
.story-stage svg text.lbl,
.story-stage svg g.lbl text {
  paint-order: stroke fill;
  stroke: var(--white);
  stroke-width: 4px;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.variant-b2b .story-stage svg text.lbl,
.variant-b2b .story-stage svg g.lbl text { stroke: var(--paper); }
.story-stage svg .lbl text.no-halo,
.story-stage svg text.no-halo,
.variant-b2b .story-stage svg .lbl text.no-halo,
.variant-b2b .story-stage svg text.no-halo { stroke: none; }
.story-stage .stage-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.story-stage svg { display: block; width: 100%; height: auto; padding: clamp(10px, 2vw, 26px); }
.story-steps { display: flex; flex-direction: column; padding-bottom: 14vh; }
.story-step { min-height: 66vh; display: flex; flex-direction: column; justify-content: center; padding: 6vh 0; }
.story-step .nr { font-size: 13px; color: var(--green-text); }
.story-step h3 { margin-top: 10px; font-size: clamp(22px, 2.4vw, 28px); }
.story-step p { margin-top: 14px; font-size: 16px; color: var(--muted); max-width: 30em; }
.story-step.is-active .nr { color: var(--ink); }

/* SVG-Ebenenlogik: .lyr werden je Schritt eingeblendet */
.story-stage .lyr { opacity: 0; transition: opacity .5s ease; }
.story-stage .lyr-base { opacity: 1; }
.story-stage[data-step="1"] .lyr-1,
.story-stage[data-step="2"] .lyr-1, .story-stage[data-step="2"] .lyr-2,
.story-stage[data-step="3"] .lyr-1, .story-stage[data-step="3"] .lyr-2, .story-stage[data-step="3"] .lyr-3,
.story-stage[data-step="4"] .lyr-1, .story-stage[data-step="4"] .lyr-2, .story-stage[data-step="4"] .lyr-3, .story-stage[data-step="4"] .lyr-4 { opacity: 1; }
/* Beim letzten Schritt tritt die Zeichnung zurück, die Skala übernimmt */
.story-stage[data-step="4"] .lyr-dim { opacity: .22; }
.story-stage svg text { font-family: var(--sans); }
/* Skala-Pfeil im Schlussbild */
.story-stage .scale-arrow { transition: transform 1s cubic-bezier(.6, .05, .2, 1); }
.story-stage[data-step="4"] .scale-arrow { transform: translateX(var(--arrow-shift, 0px)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-stage .lyr { transition: none; opacity: 1 !important; }
  .story-stage .scale-arrow { transition: none; }
  .btn .arr, .entry-row .go { transition: none; }
}

/* ============================================================
   Foto-Band (redaktionelle Bildstrecke)
   ============================================================ */
.photo-band { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(14px, 2vw, 26px); align-items: start; }
.photo-band figure { margin: 0; }
.photo-band img { width: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
/* schmale Spalte: Hochformat-Anschnitt, Höhe ≈ Höhe der breiten Spalte */
.photo-band figure:last-child img { aspect-ratio: 9 / 10; }
.photo-band figcaption {
  padding: 10px 2px 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted);
}

/* Bild neben FAQ-Kopf */
.faq-side { margin-top: 30px; }
.faq-side img { width: 100%; max-width: 380px; aspect-ratio: 4 / 3; object-fit: cover; }
.faq-side figcaption { padding: 10px 2px 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ============================================================
   Prozess
   ============================================================ */
.process-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.process-grid .step {
  padding: 30px clamp(16px, 2vw, 30px) 6px 0;
  border-left: 1px solid var(--line-dark);
  padding-left: clamp(16px, 2vw, 30px);
}
.process-grid .step:first-child { border-left: 0; padding-left: 0; }
.process-grid .nr { font-size: 13px; color: #A9CE7B; }
.process-grid h3 { margin-top: 12px; font-size: 21px; color: #fff; }
.process-grid p { margin-top: 10px; font-size: 14.5px; color: #AEB6B0; }
.process-cta { margin-top: 46px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* Prozess auf hellem Grund (B2C) */
.process-light .process-grid { border-top-color: var(--line); }
.process-light .process-grid .step { border-left-color: var(--line); }
.process-light .process-grid .nr { color: var(--green-text); }
.process-light .process-grid h3 { color: var(--ink); }
.process-light .process-grid p { color: var(--muted); }

/* ============================================================
   Person / Über
   ============================================================ */
.person-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 80px); align-items: center;
}
.person-photo { position: relative; }
.person-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person-photo figcaption {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 12px 2px 0; font-size: 13px; color: var(--muted);
}
.person-photo figcaption b { color: var(--ink); font-weight: 620; }
.person-body h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 16em; }
.person-body .lead { margin-top: 18px; font-size: 18.5px; line-height: 1.6; color: var(--ink-soft); max-width: 30em; }
.person-body .more { margin-top: 16px; font-size: 15.5px; color: var(--muted); max-width: 36em; }
.qual-list {
  margin: 26px 0 0; padding: 20px 0 0; list-style: none;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px;
  font-size: 14.5px; font-weight: 570;
}
.qual-list li { display: flex; gap: 10px; align-items: baseline; }
.qual-list li::before { content: "—"; color: var(--green-text); flex: none; }
.person-body .text-link { margin-top: 26px; }

/* ============================================================
   Region / Karte
   ============================================================ */
.region-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.region-map { border: 1px solid var(--line); background: var(--white); }
.variant-b2b .region-map { background: var(--paper); }
.region-map .stage-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.region-map svg { width: 100%; height: auto; padding: clamp(8px, 1.5vw, 20px); }
/* Kartenbeschriftungen freistellen (wie in den Schnittzeichnungen): Die Umgebungsringe
   laufen sonst durch „Herborn“, „Wetzlar“ und „Braunfels“. Rand in Hintergrundfarbe. */
.region-map svg text, .pseo-region-map svg text {
  paint-order: stroke fill; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round;
}
.variant-b2b .region-map svg text, .pseo-region-map svg text { stroke: var(--paper); }
/* Mobil: Die Karte (viewBox 720 breit) schrumpft auf ~35–50 %. Beschriftungen in
   Nutzereinheiten vergrößern, damit sie gerendert bei ca. 10–11 px bleiben. */
@media (max-width: 560px) {
  svg .k-orte { font-size: 20px; } svg .k-leun { font-size: 22px; } svg .k-sub { font-size: 15px; }
  svg .k-fluss { font-size: 17px; } svg .k-klein { font-size: 15px; }
}
@media (max-width: 400px) {
  svg .k-orte { font-size: 23px; } svg .k-leun { font-size: 25px; } svg .k-sub { font-size: 16px; }
  svg .k-fluss { font-size: 19px; } svg .k-klein { font-size: 17px; }
}
@media (max-width: 350px) {
  svg .k-orte { font-size: 28px; } svg .k-leun { font-size: 29px; } svg .k-sub { font-size: 17px; }
  svg .k-fluss { font-size: 21px; } svg .k-klein { font-size: 19px; }
}
.region-body h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 15em; }
.region-body p { margin-top: 16px; font-size: 16px; color: var(--muted); max-width: 33em; }
.place-list { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 14.5px; }
.place-list li { display: flex; align-items: center; }
.place-list li + li::before { content: "·"; margin: 0 10px; color: var(--gray); }
.place-list b { font-weight: 640; color: var(--green-text); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 2px;
  font-family: var(--font-head); font-size: clamp(17.5px, 1.9vw, 21px); font-weight: 560;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-marker { position: relative; flex: none; width: 15px; height: 15px; }
.faq-marker::before, .faq-marker::after {
  content: ""; position: absolute; background: var(--green-text); transition: transform .2s ease;
}
.faq-marker::before { left: 0; right: 0; top: 7px; height: 1.5px; }
.faq-marker::after { top: 0; bottom: 0; left: 7px; width: 1.5px; }
details[open] .faq-marker::after { transform: scaleY(0); }
.faq-answer { padding: 0 2px 24px; max-width: 44em; }
.faq-answer p { font-size: 15.5px; color: var(--muted); }

/* ============================================================
   CTA-Band
   ============================================================ */
.cta-band { position: relative; }
.cta-inner {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(24px, 5vw, 70px); align-items: center;
  padding: clamp(56px, 8vw, 96px) 0;
}
.cta-inner h2 { font-size: clamp(27px, 3.6vw, 42px); color: #fff; max-width: 17em; }
.cta-inner .cta-sub { margin-top: 14px; color: #B4BBB6; font-size: 16px; max-width: 32em; }
.cta-side { justify-self: start; }
.cta-side .btn { margin-bottom: 18px; }
.cta-side .cta-contact { font-size: 14.5px; color: #AEB6B0; line-height: 1.8; }
.cta-side .cta-contact a { color: #DCE2DD; text-decoration-color: rgba(255, 255, 255, .35); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--dark); color: #AEB6B0; font-size: 14.5px; }
.footer-inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, .7fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(44px, 6vw, 68px) 0 40px;
}
.footer-brand img { width: 190px; height: auto; }
.footer-brand p { margin-top: 18px; max-width: 24em; }
.footer-head { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #8E9590; margin: 4px 0 14px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { padding: 4px 0; }
.footer-col a { color: #D5DAD5; text-decoration: none; }
.footer-col a:hover { color: var(--green); }
.footer-col address { font-style: normal; color: #D5DAD5; line-height: 1.8; }
.footer-cross {
  margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line-dark);
  font-size: 13.5px; line-height: 1.6;
}
.footer-cross a { color: #B5DA84; text-decoration: none; border-bottom: 1px solid rgba(181, 218, 132, .4); }
.footer-cross a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 20px 0;
}
.footer-bottom .shell { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8E9590; }

/* ============================================================
   Unterseiten
   ============================================================ */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero-inner { padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 60px); }
.breadcrumb { font-family: var(--mono); font-size: 12.5px; color: var(--gray-text); margin-bottom: 26px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-text); }
.breadcrumb .sep { margin: 0 8px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 48px); max-width: 18em; }
.page-hero .page-lead { margin-top: 20px; font-size: 18px; color: var(--ink-soft); max-width: 36em; line-height: 1.65; }
.page-hero .scale-dots { margin-top: 24px; }

/* Leistungs-Detailseiten */
.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(28px, 5vw, 80px); align-items: start;
}
.detail-main h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: clamp(36px, 5vw, 56px); }
.detail-main h2:first-child { margin-top: 0; }
.detail-main p { margin-top: 14px; font-size: 16px; color: var(--ink-soft); max-width: 38em; }
.detail-main ul { margin: 16px 0 0; padding: 0; list-style: none; font-size: 15.5px; }
.detail-main ul li { padding: 8px 0 8px 24px; position: relative; color: var(--ink-soft); }
.detail-main ul li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 11px; height: 1.5px; background: var(--green-text);
}
/* Häkchen-Liste für Leistungsmerkmale (Heizung, Energieausweis …) */
.detail-main ul.check-list li { padding-left: 30px; }
.detail-main ul.check-list li::before {
  content: ""; left: 3px; top: 14px;
  width: 12px; height: 7px; background: none;
  border-left: 2px solid var(--green-text); border-bottom: 2px solid var(--green-text);
  transform: rotate(-48deg);
}

/* Stufenleiste (z. B. Quote klimaneutraler Brennstoffe nach Jahren) */
.stufen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 22px 0 12px; }
.stufe {
  padding: 14px 8px; text-align: center;
  border: 1px solid var(--line); background: var(--paper); border-top: 2px solid var(--green);
}
.stufe b { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stufe span { display: block; margin-top: 5px; font-size: 18px; font-weight: 680; color: var(--ink); letter-spacing: -.01em; }
.stufen-note { font-size: 14px !important; color: var(--muted) !important; }
@media (max-width: 620px) {
  .stufen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Abschluss-Claim auf Leistungsseiten */
.claim-line {
  margin-top: 22px !important; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--font-head); font-size: clamp(17px, 2vw, 21px) !important;
  font-weight: 600; color: var(--ink) !important; letter-spacing: -.01em;
}
/* Rechtlicher Standhinweis am Seitenende */
.stand-note { margin-top: 26px !important; font-size: 12.5px !important; color: var(--gray-text) !important; line-height: 1.6; }

.detail-steps { counter-reset: dstep; margin-top: 8px; }
.detail-steps li { counter-increment: dstep; padding: 14px 0 14px 52px !important; border-bottom: 1px solid var(--line); }
.detail-steps li::before {
  content: counter(dstep, decimal-leading-zero) !important;
  width: auto !important; height: auto !important; top: 13px !important;
  background: none !important;
  font-size: 13px; color: var(--green-text);
}
.detail-aside { position: sticky; top: 100px; }
.detail-aside .aside-box { border: 1px solid var(--line); background: var(--white); }
.variant-b2b .detail-aside .aside-box { background: var(--paper); }
.detail-aside .aside-box > picture img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.detail-aside .aside-pad { padding: 22px; }
.detail-aside .aside-pad h3 { font-size: 18px; }
.detail-aside .aside-pad p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.detail-aside .aside-pad .btn { margin-top: 16px; width: 100%; justify-content: center; }
.aside-facts { margin: 0; font-size: 14px; }
.aside-facts .tb-row { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 10px; padding: 10px 22px; border-top: 1px solid var(--line); }
.aside-facts dt { color: var(--gray-text); font-family: var(--mono); font-size: 12px; padding-top: 2px; }
.aside-facts dd { margin: 0; color: var(--ink-soft); min-width: 0; overflow-wrap: break-word; }

.related { margin-top: clamp(48px, 7vw, 80px); padding-top: 34px; border-top: 1px solid var(--line); }
/* Abschnittsköpfe im Inhalt (Verwandte Fragen, pSEO „in der Nähe“): Footer-Grau #8E9590 ist nur für dunklen Grund gedacht */
#inhalt .footer-head { color: var(--gray-text); }
.related-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.related-links a { font-size: 15px; font-weight: 570; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.related-links a:hover { color: var(--green-text); border-color: currentColor; }

/* Profilseite */
.profile-quote {
  font-family: var(--sans); font-weight: 560;
  font-size: clamp(21px, 2.6vw, 28px); line-height: 1.45; color: var(--ink);
  max-width: 26em; margin: 0;
}
.career-list { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.career-list li {
  display: grid; grid-template-columns: 64px minmax(0, .9fr) minmax(0, 1.5fr);
  gap: clamp(14px, 3vw, 40px);
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.career-list .nr { font-size: 13px; color: var(--muted); padding-top: 5px; }
.career-list h3 { font-size: clamp(19px, 2.1vw, 24px); }
.career-list .era { display: block; margin-top: 6px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-text); font-weight: 640; }
.variant-b2b .career-list .era { font-family: var(--mono); font-weight: 500; }
.career-list p { font-size: 15px; color: var(--muted); margin: 2px 0 0; }
.cred-list { margin: 34px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.cred-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 3vw, 40px);
  padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.cred-list b { font-family: var(--font-head); font-size: 18px; font-weight: 590; }
.cred-list span { font-size: 14.5px; color: var(--muted); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
/* Die Kontaktbox rechts wandert beim Scrollen mit (nur solange zweispaltig) */
@media (min-width: 1001px) {
  .contact-aside { position: sticky; top: 100px; }
}
.contact-aside .aside-promise {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 16px; font-size: 13.5px; font-weight: 560; color: #C9CFCA;
}
.contact-aside .ap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.contact-aside .aside-actions { display: grid; gap: 10px; margin-top: 22px; }
.contact-aside .aside-actions .btn { justify-content: center; font-size: 14.5px; padding: 13px 18px; }
.contact-aside .aside-dark .btn-outline { color: #fff; }
.contact-card { background: var(--white); border: 1px solid var(--line); }
.contact-card-inner { padding: clamp(24px, 4vw, 44px); }
.form-kicker {
  margin: 4px 0 2px; font-size: 12.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--green-text);
}
.form-kicker ~ .form-kicker, p.form-kicker:not(:first-of-type) { margin-top: 18px; }
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.field label { display: block; font-size: 13.5px; font-weight: 620; margin-bottom: 7px; }
.field label .opt { color: var(--gray-text); font-weight: 430; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 15px 16px;
  border: 1px solid var(--line); border-bottom: 2px solid #C9C8C0; border-radius: 2px;
  background: var(--paper);
  font: inherit; font-size: 15.5px; color: var(--ink);
  transition: background-color .15s ease, border-color .15s ease;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2345790A' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}
.field textarea { min-height: 170px; resize: vertical; }
@media (max-width: 560px) { .field select { padding-left: 14px; padding-right: 36px; background-position: right 14px center; } }
@media (max-width: 380px) { .field select { font-size: 14.5px; padding-right: 32px; background-position: right 12px center; } }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--gray); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--white);
  border-color: var(--green-text); border-bottom-color: var(--green-text);
}
.field-consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.field-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--green-text); }
.field-consent a { color: var(--ink-soft); }
.form-note { font-size: 13px; color: var(--gray-text); }
.form-feedback { padding: 14px 16px; border: 1px solid; border-radius: 2px; font-size: 15px; }
.form-feedback.ok { border-color: var(--sc-g); background: var(--green-pale); color: #2E5307; }
.form-feedback.err { border-color: var(--sc-r); background: #FDEEF0; color: #8E1230; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside .aside-box { border: 1px solid var(--line); background: var(--white); padding: 26px; }
.variant-b2b .contact-aside .aside-box { background: var(--paper); }
.contact-aside .aside-box.aside-dark,
.variant-b2b .contact-aside .aside-box.aside-dark { background: var(--dark); border-color: var(--dark); color: #C9CFCA; padding: 30px; }
.contact-aside .aside-logo { width: 175px; height: auto; margin-bottom: 22px; }
.contact-aside .aside-dark .aside-h { color: #fff; font-size: 19px; }
.contact-aside .aside-dark address { color: #C9CFCA; }
.contact-aside .aside-dark .aside-meta { border-top-color: var(--line-dark); color: #AEB6B0; }
.contact-aside .aside-h { font-size: 18px; }
.contact-aside address { font-style: normal; margin-top: 12px; line-height: 1.8; color: var(--ink-soft); font-size: 15.5px; }
.contact-aside .contact-mail { display: inline-block; margin-top: 10px; }
.contact-aside .aside-meta { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ============================================================
   Fördermittel-Rechner
   ============================================================ */
.r-disclaimer {
  padding: 14px 18px; margin-bottom: 26px;
  background: #FFF7DB; border: 1px solid #E8D48A; border-left: 4px solid #D4AF37;
  font-size: 13.5px; line-height: 1.65; color: #5B4A12;
}
.r-disclaimer-bottom { margin: 34px 0 0; }
/* Mobil: rechts einen Streifen frei halten, damit die fixierte Kontakt-Bubble (.fab, 56px + 16px Rand)
   den Hinweistext bei keiner Scrollposition verdeckt. */
@media (max-width: 760px) { .r-disclaimer { padding-right: 64px; } }
.r-empty { color: var(--muted); font-size: 14.5px; }
.r-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.r-table { min-width: 500px; }
.r-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.r-table th {
  text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); padding: 0 8px 8px 0; border-bottom: 1.5px solid var(--ink); font-weight: 500;
}
.r-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.r-table .r-quelle { color: var(--gray-text); font-size: 11px; }
.r-table .r-z { font-weight: 700; color: var(--green-text); white-space: nowrap; }
.r-table tfoot td { border-bottom: 0; padding-top: 12px; font-weight: 700; font-size: 15px; }
.r-table .r-total { color: var(--green-text); font-size: 19px; white-space: nowrap; }
.r-alt {
  margin-top: 14px; padding: 12px 14px; font-size: 12.5px; line-height: 1.6;
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gray); color: var(--ink-soft);
}
.r-hinweise { margin: 14px 0 0; padding: 0 0 0 18px; font-size: 12.5px; color: var(--muted); }
.r-hinweise li { margin-bottom: 6px; }
.r-cta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.r-cta .btn { width: 100%; justify-content: center; }
.r-cta-note { margin-top: 10px; font-size: 11.5px; color: var(--gray-text); line-height: 1.5; }

/* ---------- Rechner-Assistent (Wizard) ---------- */
/* scroll-margin: beim Schrittwechsel darf der Sticky-Header den Fortschrittsbalken nicht verdecken */
.wiz { border: 1px solid var(--line); background: var(--paper); scroll-margin-top: 92px; }
.wiz-scale { height: 4px; }

.wiz-head { padding: 0 clamp(18px, 3.5vw, 34px); border-bottom: 1px solid var(--line); }
.wiz-progress { list-style: none; display: flex; margin: 0; padding: 0; }
.wiz-progress li {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 6px; color: var(--gray-text); position: relative;
}
.wiz-progress li i {
  flex: none; display: grid; place-items: center;
  width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%;
  font-style: normal; font-size: 12px; background: var(--white);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.wiz-progress li span { font-size: 13px; font-weight: 560; }
.wiz-progress li.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green-text); }
.wiz-progress li.is-active i { background: var(--green); border-color: var(--green); color: #1E2410; font-weight: 600; }
.wiz-progress li.is-done { color: var(--ink-soft); cursor: pointer; }
.wiz-progress li.is-done i { background: var(--ink); border-color: var(--ink); color: #fff; }
.wiz-progress li.is-done:hover { color: var(--green-text); }
.wiz-progress-mobile { display: none; margin: 0; padding: 9px 0 11px; font-size: 13px; color: var(--muted); text-align: center; }

.wiz-body { padding: clamp(24px, 4vw, 42px) clamp(18px, 3.5vw, 34px); }
@media (min-width: 761px) { .wiz-body { min-height: 380px; } }
.wiz-step.is-in { animation: wizIn .3s ease; }
@keyframes wizIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}
.wiz-h { font-size: clamp(22px, 2.6vw, 27px); margin: 0 0 8px; outline: none; }
.wiz-sub { color: var(--muted); font-size: 15px; max-width: 660px; margin: 0 0 24px; }
.wiz-fields { display: grid; gap: 20px; max-width: 580px; }
.wiz-fields .field label { display: block; font-size: 13.5px; font-weight: 620; margin-bottom: 7px; }
.wiz-fields .field .opt { color: var(--gray-text); font-weight: 430; }
.field-hint { display: block; margin-top: 8px; font-size: 12.5px; color: var(--gray-text); line-height: 1.5; }

/* Zahlen-Stepper */
.stepper { display: flex; align-items: stretch; width: 210px; max-width: 100%; border: 1px solid #C6C5BE; border-radius: 2px; background: var(--white); }
.stepper:focus-within { outline: 2px solid var(--green-text); outline-offset: 0; }
.stepper input {
  flex: 1; min-width: 0; border: 0; text-align: center; padding: 11px 0;
  font: inherit; font-size: 17px; font-weight: 620; color: var(--ink); background: transparent;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input:focus { outline: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-btn {
  flex: none; width: 46px; border: 0; background: var(--paper); cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--ink-soft);
  transition: background-color .15s ease, color .15s ease;
}
.stepper-btn:first-child { border-right: 1px solid var(--line); }
.stepper-btn:last-child { border-left: 1px solid var(--line); }
.stepper-btn:hover { background: var(--green-pale); color: var(--green-text); }
.stepper-wide { width: 260px; }

/* Schnellwahl-Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  background: var(--white); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-soft);
  transition: border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--green-text); color: var(--green-text); }

/* Auswahlkarten (Radio) */
.choice-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-field legend { font-size: 13.5px; font-weight: 620; margin-bottom: 9px; padding: 0; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-row-5 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.wiz .field label.choice, .choice { position: relative; display: block; margin-bottom: 0; font-weight: 430; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice-card {
  display: block; height: 100%; padding: 13px 15px;
  background: var(--white); border: 1px solid #C6C5BE; border-radius: 2px;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.choice-card strong { display: block; font-size: 14.5px; font-weight: 620; }
.choice-card small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.choice input:checked + .choice-card { border-color: var(--green-text); box-shadow: inset 0 0 0 1px var(--green-text); background: var(--green-pale); }
.choice input:focus-visible + .choice-card { outline: 2px solid var(--green-text); outline-offset: 2px; }
.choice input:hover:not(:checked) + .choice-card { border-color: var(--gray); }

/* Schalter – hohe Spezifität, weil ».field label« sonst display:block erzwingt */
.wiz .field label.switch, .switch {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  cursor: pointer; margin-bottom: 0;
}
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  display: block; flex: none; width: 40px; height: 22px; margin-top: 2px; border-radius: 11px;
  background: #C9C8C1; position: relative; transition: background-color .18s ease;
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform .18s ease;
}
.switch input:checked ~ .switch-track { background: var(--green-text); }
.switch input:checked ~ .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible ~ .switch-track { outline: 2px solid var(--green-text); outline-offset: 2px; }
.switch-text { font-size: 13.5px; font-weight: 560; line-height: 1.5; color: var(--ink); }
.switch-text small { display: block; margin-top: 2px; font-weight: 430; font-size: 12.5px; color: var(--muted); }

/* Maßnahmen-Kacheln */
.mtile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mtile { position: relative; display: block; }
.mtile-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mtile-card {
  position: relative; display: flex; gap: 14px; align-items: flex-start; height: 100%;
  padding: 16px 16px 15px; background: var(--white); border: 1px solid #C6C5BE; border-radius: 2px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.mtile-ico { flex: none; width: 38px; height: 38px; color: var(--ink-soft); transition: color .15s ease; }
.mtile-ico svg { width: 100%; height: 100%; }
.mtile-txt { min-width: 0; }
.mtile-txt strong { display: block; font-size: 14.5px; line-height: 1.3; padding-right: 22px; overflow-wrap: break-word; } /* Notbremse: kein Wort läuft unter das Kontrollkästchen */
.mtile-txt small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.mtile-check {
  position: absolute; top: 13px; right: 13px; width: 18px; height: 18px;
  border: 1px solid #C6C5BE; border-radius: 2px; background: var(--white);
  transition: background-color .15s ease, border-color .15s ease;
}
.mtile-check::after {
  content: ""; position: absolute; left: 5.5px; top: 2px; width: 4px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg); opacity: 0;
}
.mtile-in:checked + .mtile-card { border-color: var(--green-text); box-shadow: inset 0 0 0 1px var(--green-text); background: var(--green-pale); }
.mtile-in:checked + .mtile-card .mtile-ico { color: var(--green-text); }
.mtile-in:checked + .mtile-card .mtile-check { background: var(--green-text); border-color: var(--green-text); }
.mtile-in:checked + .mtile-card .mtile-check::after { opacity: 1; }
.mtile-in:focus-visible + .mtile-card { outline: 2px solid var(--green-text); outline-offset: 2px; }
.mtile-in:hover:not(:checked) + .mtile-card { border-color: var(--gray); }
.shake { animation: wizShake .3s ease; }
@keyframes wizShake {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.wiz-error { margin: 14px 0 0; font-size: 13.5px; font-weight: 620; color: #B4232F; }
.wiz-fussnote {
  margin: 20px 0 0; padding: 13px 16px; max-width: 620px;
  border-left: 3px solid var(--line); background: var(--white);
  font-size: 13px; line-height: 1.6; color: var(--muted);
}

/* Kostenblöcke in Schritt 3 */
.wiz-block { display: none; border: 1px solid var(--line); background: var(--white); padding: 18px clamp(14px, 2.5vw, 22px); margin-bottom: 14px; }
.wiz-block.is-on { display: block; }
.wiz-block-h { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0 0 15px; }
.wiz-block-h svg { flex: none; width: 22px; height: 22px; color: var(--green-text); }

/* Betragsfeld mit Euro-Suffix */
.money { position: relative; display: block; }
.money input {
  width: 100%; padding: 11px 36px 11px 12px; border: 1px solid #C6C5BE; border-radius: 2px;
  background: var(--white); font: inherit; font-size: 15px; color: var(--ink);
}
.money input:focus { outline: 2px solid var(--green-text); outline-offset: 0; border-color: transparent; }
.money input { -moz-appearance: textfield; appearance: textfield; }
.money input::-webkit-outer-spin-button, .money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.money i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--gray-text); pointer-events: none; }

/* Boni-Schritt: Auswahlkarten und Kind-Schalter brauchen Luft zueinander */
.wiz-bonus-selbst .choice-field { margin-bottom: 20px; }

/* Fußzeile mit Navigation + Zwischenstand */
.wiz-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px clamp(18px, 3.5vw, 34px); border-top: 1px solid var(--line); background: var(--white);
}
.wiz-nav .btn { padding: 13px 22px; font-size: 14.5px; }
.wiz-nav .wiz-next { margin-left: auto; }
.wiz-live { display: flex; align-items: baseline; gap: 9px; margin: 0; font-size: 13px; color: var(--muted); }
.wiz-live strong { font-size: 16.5px; color: var(--green-text); white-space: nowrap; }
.wiz-live-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; }

/* Ergebnis-Panel */
.r-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px clamp(18px, 3vw, 28px); margin-bottom: 22px;
  background: var(--dark); color: #fff;
}
.r-hero-kicker { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #A9CE7B; }
.r-hero-sum { display: block; margin-top: 4px; font-size: clamp(30px, 4.5vw, 42px); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; color: var(--green); }
.r-hero-note { display: block; margin-top: 5px; font-size: 12.5px; color: #B9C0BB; }
.r-hero .scale-dots { flex: none; }

@media (prefers-reduced-motion: reduce) {
  .wiz-step.is-in, .shake { animation: none; }
  .switch-track, .switch-track::after, .mtile-card, .choice-card { transition: none; }
}

@media (max-width: 900px) {
  .mtile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .wiz-progress li span { display: none; }
  .wiz-progress li { padding: 13px 4px; }
  .wiz-progress-mobile { display: block; }
}
@media (max-width: 620px) {
  .wiz-nav { flex-wrap: wrap; }
  .wiz-live { width: 100%; order: -1; justify-content: center; }
  .wiz-nav .btn { flex: 1; justify-content: center; }
  .r-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 560px) {
  .mtile-grid { grid-template-columns: minmax(0, 1fr); }
  .choice-row { grid-template-columns: minmax(0, 1fr); }
  .choice-row-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .choice-row-5 { grid-template-columns: minmax(0, 1fr); }
}

/* Rechner-CTA-Sektion auf Startseiten */
.rechner-cta { background: var(--green-pale); border-bottom: 1px solid var(--line); }
.rechner-cta-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 70px); align-items: center;
  padding: clamp(48px, 7vw, 84px) 0;
}
.rechner-cta h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 15em; }
.rechner-cta .rc-copy { margin-top: 14px; font-size: 16px; color: var(--muted); max-width: 34em; }
.rechner-cta .sf-points { max-width: 36em; }
.rechner-cta-box {
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--green);
  padding: clamp(24px, 3vw, 34px);
}
.rechner-cta-box .rc-box-head { font-size: 20px; font-weight: 660; }
.rechner-cta-box p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.rechner-cta-box .btn { margin-top: 18px; width: 100%; justify-content: center; font-size: 16px; padding: 17px 26px; }
.rechner-cta-box .rc-box-note { margin-top: 12px; font-size: 11.5px; color: var(--gray-text); line-height: 1.5; }
@media (max-width: 860px) {
  .rechner-cta-inner { grid-template-columns: 1fr; }
}

/* Wizard-Selects: kompaktere weiße Feld-Optik wie die Betragsfelder */
.wiz .field select {
  padding-top: 11px; padding-bottom: 11px; font-size: 15px;
  background-color: var(--white); border: 1px solid #C6C5BE;
}
.wiz .field select:hover { border-color: var(--gray); }
.wiz .field select:focus { outline: 2px solid var(--green-text); outline-offset: 0; border-color: transparent; background-color: var(--white); }

/* ============================================================
   pSEO: lokale Landingpages (Einzugsgebiet, Orts-Hubs, Leistung × Ort)
   ============================================================ */

/* Maßkette Leun ↔ Ort – im Stil einer Architektur-Bemaßung */
.pseo-dim {
  display: flex; align-items: center; gap: 14px;
  margin: 26px 0 0; max-width: 520px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.pd-place { flex: none; font-weight: 500; color: var(--ink-soft); }
.pd-km { flex: none; color: var(--green-text); font-weight: 500; }
.pd-line { flex: 1; position: relative; height: 1px; background: var(--line); min-width: 30px; }
.pd-line::before, .pd-line::after {
  content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--gray); transform: rotate(20deg);
}
.pd-line::before { left: 0; }
.pd-line::after { right: 0; }
@media (max-width: 480px) {
  .pseo-dim { gap: 8px; font-size: 10.5px; letter-spacing: .03em; flex-wrap: wrap; row-gap: 6px; }
  .pd-line { min-width: 12px; }
}

/* Einzugsgebiet: Karte + Ortsliste */
.pseo-region-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 70px); align-items: start;
}
.pseo-region-map { border: 1px solid var(--line); background: var(--paper); padding: 14px; }
.pseo-region-map svg { width: 100%; height: auto; }
.ort-list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ort-list a {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background-color .15s ease;
}
.ort-list a:hover { background: var(--green-pale); }
.ort-km {
  flex: none; width: 52px; text-align: right;
  font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 620; color: var(--green-text);
}
.ort-km small { font-size: 11px; margin-left: 2px; font-weight: 500; color: var(--muted); }
.ort-name { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ort-name strong { font-size: 16px; font-weight: 620; }
.ort-name small { font-size: 12px; color: var(--gray-text); }
.ort-list .go { flex: none; color: var(--green-text); transition: transform .15s ease; }
.ort-list a:hover .go { transform: translateX(3px); }
.pseo-region-note { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.region-link { margin-top: 20px; }

/* Orts-Hub: Leistungs-Karten */
.pcard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.pcard {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 20px 18px; border: 1px solid var(--line); background: var(--white);
  text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.pcard:hover { border-color: var(--green-text); background: var(--green-pale); }
.pcard-nr { flex: none; font-size: 13px; color: var(--green-text); padding-top: 3px; }
.pcard-body { flex: 1; min-width: 0; }
.pcard-body strong { display: block; font-size: 16.5px; font-weight: 620; line-height: 1.35; }
.pcard-body small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.pcard .go { flex: none; color: var(--green-text); padding-top: 3px; transition: transform .15s ease; }
.pcard:hover .go { transform: translateX(3px); }

/* Leistungs-Landing: Leistungspunkte als Plan-Checkliste */
.pseo-punkte { list-style: none; margin: 30px 0 0; padding: 0; max-width: 620px; }
.pseo-punkte li {
  position: relative; padding: 12px 2px 12px 34px; border-bottom: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.6;
}
.pseo-punkte li:first-child { border-top: 1px solid var(--line); }
.pseo-punkte li::before {
  content: ""; position: absolute; left: 4px; top: 19px; width: 14px; height: 8px;
  border-left: 2px solid var(--green-text); border-bottom: 2px solid var(--green-text);
  transform: rotate(-48deg);
}
.pseo-mainlink { margin-top: 22px; }
.pseo-sec { margin-top: clamp(38px, 6vw, 60px); }
.pseo-faq { margin-top: 28px; }
.pseo-faq summary { font-size: clamp(16px, 1.7vw, 18.5px); }
.pseo-facts .tb-row { grid-template-columns: 92px minmax(0, 1fr); padding: 10px 0; font-size: 13.5px; }
.aside-pad .pseo-cta { width: 100%; justify-content: center; margin-top: 16px; }
.aside-pad .pseo-aside-btn { width: 100%; justify-content: center; margin-top: 10px; }

@media (max-width: 900px) {
  .pseo-region-grid { grid-template-columns: minmax(0, 1fr); }
  .pcard-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Wissenshub
   ============================================================ */
.screen-reader-text { position: absolute; left: -9999px; }
.wissen-search { max-width: 640px; margin-bottom: 8px; }
.wissen-search input {
  width: 100%; padding: 15px 18px; border: 1.5px solid var(--ink); border-radius: 2px;
  background: var(--white); font: inherit; font-size: 16px;
}
.wissen-search input:focus { outline: 2px solid var(--green-text); outline-offset: 0; }
.wissen-count { margin: 8px 2px 0; font-size: 12.5px; color: var(--muted); }

/* Themen-Chips: Direktsprung zur Kategorie, ohne lange zu scrollen */
.wissen-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 4px; }

.wissen-chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--white); text-decoration: none; color: var(--ink-soft);
  font-size: 14px; font-weight: 560;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.wissen-chip span { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }
.wissen-chip:hover { border-color: var(--green-text); color: var(--green-text); background: var(--green-pale); }
.wissen-chip:hover span { color: var(--green-text); }

/* Damit die Sprungmarke nicht unter dem Sticky-Header landet */
.wissen-gruppe { scroll-margin-top: 96px; }

/* Trefferliste bei aktiver Suche */
.wissen-treffer .wissen-tag { color: var(--green-text); }
.wissen-tag {
  margin: 40px 0 0; font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--green-text);
}
.wissen-gruppe .entry-rows { margin-top: 12px; }
.wissen-item .nr { color: var(--green-text); font-weight: 700; }
.wissen-leer { margin-top: 30px; font-size: 15.5px; color: var(--muted); }
.hinweis-box {
  margin: 24px 0; padding: 18px 22px;
  background: var(--green-pale); border-left: 3px solid var(--green);
  font-size: 15.5px; line-height: 1.65; color: var(--ink);
}
.hinweis-box p { margin: 0 0 .7em; font-size: 15.5px !important; color: var(--ink) !important; max-width: none; }
.hinweis-box p:last-child { margin-bottom: 0; }
.hinweis-box .hb-label {
  display: block; margin-bottom: 6px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green-text);
}
.wissen-antwort {
  padding: 20px 22px; background: var(--green-pale); border-left: 3px solid var(--green);
}
.wissen-antwort-label {
  margin: 0 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-text);
}
.wissen-antwort-text { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink); font-weight: 500; }
.wissen-body { margin-top: 26px; }
.wissen-body p { margin-top: 14px; font-size: 16px; color: var(--ink-soft); max-width: 40em; }
.wissen-body strong { color: var(--ink); }
.wissen-stand {
  margin-top: 24px; padding: 10px 14px; font-size: 12px; line-height: 1.6; color: #5B4A12;
  background: #FFF7DB; border: 1px solid #E8D48A;
}

/* Rechtstexte */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); }
.legal h2 { font-size: 21px; margin-top: 40px; }
.legal h3 { font-size: 17px; margin-top: 26px; font-family: var(--sans); font-weight: 660; }
.legal p, .legal li { font-size: 15.5px; color: var(--ink-soft); }
.legal ul { padding-left: 20px; }
.legal .todo {
  background: #FFF7DB; border: 1px solid #E8D48A; padding: 3px 7px; border-radius: 2px;
  font-size: 90%;
}
.legal address { font-style: normal; }
/* Lange Link-Texte (URLs in Impressum/Datenschutz) dürfen auf schmalen Displays umbrechen */
.legal a { overflow-wrap: anywhere; }
/* Hervorgehobener Block, z. B. Widerspruchsrecht Art. 21 DSGVO (getrennt von anderen Informationen) */
.legal .legal-box {
  margin: 26px 0; padding: 2px 20px 6px;
  border: 1px solid var(--line); border-left: 3px solid var(--green); background: var(--paper);
}
.legal .legal-box h3 { margin-top: 16px; }
.legal .legal-box p { overflow-wrap: break-word; }

/* 404 */
.error-page { padding: clamp(80px, 12vw, 140px) 0; text-align: left; }
.error-page h1 { font-size: clamp(34px, 5vw, 54px); }
.error-page p { margin-top: 16px; color: var(--muted); }

/* ============================================================
   Responsive
   ============================================================ */
/* Navigation kollabiert früher als das übrige Layout, damit sie nie umbricht */
@media (max-width: 1120px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 1000px) {
  .hero-b2b-inner { grid-template-columns: 1fr; align-items: start; }
  .hero-b2b-inner .titleblock { max-width: 460px; }
  .story { grid-template-columns: 1fr; }
  .story-stage { position: sticky; top: 70px; z-index: 5; }
  .story-step { min-height: 52vh; }
  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { position: static; max-width: 460px; }
  .form-row { grid-template-columns: 1fr; }
  .lv-row { grid-template-columns: 48px minmax(0, 1fr) 120px; }
  .lv-row .lv-desc { grid-column: 2; }
  .lv-row .lv-thumb { grid-row: 1 / span 2; grid-column: 3; width: 120px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .header-inner { min-height: 64px; }
  .brand-logo { height: 42px; }
  .brand-icon { width: 38px; }
  .brand-sub { display: none; }
  .hero-b2c .shell { padding: 44px 0; }
  .hero-panel { width: 100%; }
  .hero-b2b .hero-media::after {
    background: linear-gradient(rgba(22, 24, 23, .72) 0%, rgba(22, 24, 23, .55) 45%, rgba(22, 24, 23, .82) 100%);
  }
  .hero-b2c .hero-media::after { background: linear-gradient(rgba(24, 26, 24, .5), rgba(24, 26, 24, .28)); }
  .entry-row { grid-template-columns: 30px 64px minmax(0, 1fr) auto; row-gap: 6px; gap: 12px; }
  .entry-thumb { width: 64px; }
  .entry-row h3 { grid-column: 3; }
  .entry-row p { grid-column: 2 / 5; }
  .entry-row .go { grid-column: 4; }
  .entry-row.no-thumb { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .entry-row.no-thumb h3 { grid-column: 2; }
  .entry-row.no-thumb p { grid-column: 2 / 4; }
  .entry-row.no-thumb .go { grid-column: 3; }
  .photo-band { grid-template-columns: 1fr; }
  .photo-band figure:last-child img { aspect-ratio: 3 / 2; }
  .service-feature { grid-template-columns: 1fr; gap: 22px; }
  .service-feature:nth-child(even) .sf-media { order: 0; }
  .person-grid, .region-grid, .contact-grid { grid-template-columns: 1fr; }
  .person-photo { max-width: 420px; }
  .qual-list { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; border-top: 0; }
  .process-grid .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); padding-top: 22px; padding-bottom: 12px; }
  .process-light .process-grid .step { border-top-color: var(--line); }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .lv-row { grid-template-columns: 40px minmax(0, 1fr); padding: 24px 0; }
  .lv-row .lv-thumb { display: none; }
  .career-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .career-list li p { grid-column: 2; }
  .cred-list li { grid-template-columns: 1fr; gap: 4px; }
  .titleblock .tb-row { grid-template-columns: 92px 1fr; }
  .story-stage { top: 64px; }
  .story-stage svg { padding: 8px; }
  .story-step { min-height: 46vh; }
}
@media (max-width: 380px) {
  .brand-logo { height: 36px; }
  .brand-word { font-size: 18px; }
  .brand-word small { font-size: 18px; }
  .hero-panel { padding: 24px 18px; }
  .btn { padding: 14px 18px; font-size: 14px; }
  .hero-actions { gap: 12px; }
}

/* Formular-Spamschutz */
/* Kontaktformular: Hinweise, Fehlermeldung, Sendezustand (Logik: functions.php, assets/js/kontakt.js) */
/* Honeypot komplett ausblenden: Browser-Autofill füllt so keine versteckten Felder (sonst Fehlalarm bei echten Nutzern) */
.contact-form .hp-field { display: none !important; }
.form-feedback p { margin: 0; }
.form-feedback p + p { margin-top: 12px; }
.form-feedback a { color: inherit; }
.form-feedback.info { border-color: var(--line); background: var(--paper); color: var(--ink-soft); font-size: 14.5px; }
.form-feedback .form-reload { padding: 10px 16px; font-size: 14px; }
.contact-form [data-form-error]:focus { outline: none; }
.contact-form .btn:disabled { opacity: .72; cursor: progress; }
.form-notes .form-note { margin: 0; }
.form-notes .form-note + .form-note { margin-top: 6px; }
.form-agb a, .form-note a { color: var(--ink-soft); }

/* ============================================================
   Verbandslogos: dena „Energieeffizienz-Experte“ + „Mitglied im GIH“
   Markup: inc/template-tags.php → enerzim_verband_badges() / enerzim_verband_logo()
   Nutzungsbedingungen: Logos nie verzerren, umfärben oder beschneiden (keine Filter, keine Opacity,
   kein object-fit). Das dena-Logo hat einen eingebrannten Weißgrund, das GIH-Logo dunkle Schrift –
   beide stehen deshalb immer auf einer weißen Kachel, nie auf Papier- oder dunklem Grund.
   Größe: --vb-h = Höhe des dena-Logos (mind. 160 px breit ⇒ --vb-h ≥ 39px). Das GIH-Logo ist 1,25-mal so hoch:
   so haben beide dieselbe Fläche und wirken gleich groß (dena 4,14:1, GIH 2,63:1 → √(4,14/2,63) ≈ 1,25).
   Schärfe: 2x-Dateien 480 / 400 px ⇒ höchstens 240 bzw. 200 CSS-px breit (dena --vb-h ≤ 58px).
   ============================================================ */
.vb-label {
  margin: 0 0 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.vb-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.vb-logo { display: block; flex: none; line-height: 0; }
/* ausdrücklich gegen fremde Bildregeln abgesichert (z. B. Seitenleiste: 4:3 + cover) – Logos nie verzerren */
.vb-logo img, .aside-box .vb-logo img { width: auto; height: var(--vb-h, 44px); max-width: none; aspect-ratio: auto; object-fit: contain; }
.vb-logo-gih img, .aside-box .vb-logo-gih img { height: calc(var(--vb-h, 44px) * 1.25); }
.vb-logo:focus-visible { outline-offset: 5px; }
.vb-tile { background: #fff; border: 1px solid var(--line); padding: 16px 20px; }
.vb-text { margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* Startseiten, Personen-Sektion (Papiergrund) */
.vb-strip { display: flex; margin-top: 26px; --vb-h: 44px; }
.vb-strip .vb-tile { max-width: 100%; }
.vb-strip .vb-text { padding-top: 11px; border-top: 1px solid var(--line); }

/* Kontaktseite: helle Box unter der dunklen Kontakt-Box (auch auf B2B weiß, nicht Papier) */
.contact-aside .vb-box,
.variant-b2b .contact-aside .vb-box { margin-top: 20px; background: #fff; --vb-h: 44px; }
.contact-aside .vb-box .vb-text { font-size: 14px; }

/* Seitenleiste der Leistungsseiten (B2B-Box hat Papiergrund → Kachel selbst weiß) */
.aside-verband { padding: 18px 22px 22px; border-top: 1px solid var(--line); --vb-h: 40px; }
.aside-verband .vb-tile { padding: 14px 16px; }
.aside-verband .vb-logos { gap: 12px 22px; }
.aside-verband .vb-text { margin-top: 10px; font-size: 13px; }

/* Über-uns, Abschnitt Qualifikationen: zwei Karten */
.vb-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start;
  gap: clamp(18px, 3vw, 32px); margin-top: clamp(36px, 5vw, 52px);
}
.vb-card { border: 1px solid var(--line); background: #fff; }
.vb-card .vb-tile { display: flex; align-items: center; min-height: 132px; padding: 28px 30px; border: 0; border-bottom: 1px solid var(--line); --vb-h: 58px; }
.vb-card-body { padding: 24px 30px 30px; }
.vb-card h3 { font-size: clamp(18px, 1.9vw, 21px); }
.vb-card-body > p:not(.vb-label) { margin: 12px 0 0; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.vb-card-body > p.vb-note { margin-top: 16px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.vb-card .text-link { margin-top: 20px; }
.vb-nr { font-family: var(--mono); font-size: .94em; white-space: nowrap; }
.vb-cats { margin: 14px 0 0; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.vb-cats li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.vb-cats li:last-child { border-bottom: 1px solid var(--line); }
.vb-cats li::before { content: "—"; color: var(--green-text); flex: none; }
@media (max-width: 760px) {
  .vb-cards { grid-template-columns: minmax(0, 1fr); }
  .vb-card .vb-tile { min-height: 0; padding: 22px; --vb-h: 50px; }
  .vb-card-body { padding: 20px 22px 24px; }
  .contact-aside .vb-box, .variant-b2b .contact-aside .vb-box { --vb-h: 40px; }
  .contact-aside .vb-box .vb-logos { gap: 14px 20px; }
}
@media print {
  .vb-logo { break-inside: avoid; }
}

/* ============================================================
   Rechtstexte: AGB (page-agb.php, Fragment build/legal/agb-inhalt.html)
   ============================================================ */
/* Sprungziele nicht unter dem Sticky-Header verstecken */
.legal [id] { scroll-margin-top: 100px; }
@media (max-width: 760px) { .legal [id] { scroll-margin-top: 84px; } }

.legal-download {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  margin: 0 0 24px; padding: 14px 18px;
  border: 1px solid var(--line); border-left: 3px solid var(--green); background: var(--paper);
}
.legal-download a { display: inline-flex; align-items: flex-start; gap: 10px; min-width: 0; font-size: 15px; font-weight: 620; line-height: 1.5; color: var(--ink); text-decoration: none; }
.legal-download a span { text-decoration: underline; text-decoration-color: rgba(47, 50, 50, .35); text-underline-offset: 3px; }
.legal-download a:hover { color: var(--green-text); }
.legal-download a:hover span { text-decoration-color: currentColor; }
.legal-download svg { flex: none; margin-top: 1px; color: var(--green-text); }
.legal-download-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

.legal-toc { margin: 0 0 34px; padding: 16px 20px 12px; border: 1px solid var(--line); background: var(--paper); }
.legal-toc::before {
  content: "Inhalt"; display: block; margin-bottom: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.legal .legal-toc ul { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 28px; }
.legal .legal-toc li { margin: 0 0 7px; break-inside: avoid; font-size: 14.5px; line-height: 1.45; }
.legal-toc a { color: var(--ink-soft); text-decoration: none; }
.legal-toc a:hover { color: var(--green-text); text-decoration: underline; }

.legal ol { padding-left: 1.6em; }
.legal ol > li { margin-bottom: 8px; overflow-wrap: break-word; }
.legal ol > li::marker { font-weight: 700; color: var(--ink); }
.legal h4 { font-size: 15.5px; margin-top: 18px; font-family: var(--sans); font-weight: 660; }
.legal dl { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 6px 18px; margin: 20px 0; font-size: 15px; }
.legal dt { font-weight: 650; color: var(--ink); }
.legal dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
/* Formularfelder der Anlagen 2/3: leere Zellen = Schreiblinien (ohne diese Regel unsichtbar) */
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 15px; }
.legal th { width: 42%; padding: 16px 14px 4px 0; text-align: left; vertical-align: bottom; font-weight: 650; color: var(--ink); }
.legal td { padding: 0; }
.legal td:empty { height: 2.4em; border-bottom: 1px solid currentColor; }
@media (max-width: 560px) {
  .legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal dd { margin-bottom: 10px; }
  .legal table, .legal tbody, .legal tr, .legal th, .legal td { display: block; width: 100%; }
  .legal th { padding: 14px 0 0; }
}

/* Druck (u. a. Grundlage des AGB-PDFs): nur der Rechtstext – ohne Navigation, Footer, Kontakt-Bubble */
@media print {
  .is-legal-page .site-switch, .is-legal-page .site-header, .is-legal-page .site-footer,
  .is-legal-page .fab, .is-legal-page .skip-link, .is-legal-page .breadcrumb,
  .legal-download, .legal-toc { display: none !important; }
  .is-legal-page { background: #fff; }
  .is-legal-page .page-hero { border-bottom: 0; }
  .is-legal-page .page-hero-inner { padding: 0 0 14pt; }
  .is-legal-page .page-hero h1 { font-size: 22pt; }
  .is-legal-page .section { padding: 0; }
  .is-legal-page .shell { width: auto; margin: 0; }
  .legal { max-width: none; font-size: 10pt; line-height: 1.45; }
  .legal p, .legal li, .legal dd, .legal dt, .legal th, .legal dl, .legal table { font-size: 10pt; color: #222; }
  .legal h2 { font-size: 13pt; margin-top: 16pt; }
  .legal h3 { font-size: 11.5pt; margin-top: 12pt; }
  .legal h4 { font-size: 10.5pt; margin-top: 9pt; }
  .legal ol { margin: 6pt 0 0; }
  .legal ol > li { margin-bottom: 4pt; }
  .legal p { margin-bottom: 6pt; }
  .legal dl { margin: 10pt 0; gap: 2pt 12pt; }
  .legal th { padding-top: 12pt; }
  .legal h2, .legal h3, .legal h4 { break-after: avoid; }
  #anlage-1, #anlage-2, #anlage-3 { break-before: page; }
  .legal ol > li, .legal tr, .legal dl { break-inside: avoid; }
  .legal a { color: inherit; text-decoration: none; }
}
