/* Sonnenkraft Hannover (gleiches Design wie Sonnenkraft Bamberg), Website 2026, Version 2 "Nachtstrom"
   Idee: Die Nacht gehört Ihrem eigenen Strom. Nachtblau ist die Bühne, die aufgehende Sonne aus dem Logo
   ist die einzige Lichtquelle. Ein Akzent (Himmelblau), Rot nur in der Wärme-Grafik.
   Schriften: Montserrat (Display, wie die Logo-Wortmarke, 300 bis 800) + Geist (Text).
   Formen: Pills für Bedienelemente, Karten als Doppelrahmen (Schale 28px, Kern 22px), Bilder 22px.
   Bewegung: nur transform, opacity, clip-path, filter; starke ease-out-Kurven; reduzierte Bewegung respektiert. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-vf-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-vf-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ------------------------------------------------------------------ Tokens */
:root {
  --bg: #061723;
  --bg-deep: #04101a;
  --bg-raise: #0a2535;
  --bg-card: #0b2433;
  --bg-card-2: #0f2f45;
  --shell: rgba(255, 255, 255, 0.035);
  --line: rgba(160, 205, 240, 0.11);
  --line-strong: rgba(160, 205, 240, 0.22);
  --text: #eef5fa;
  --text-2: #b6c8d6;
  --text-3: #88a1b3;
  --sky: #4ca3f4;
  --sky-hover: #67b2f7;
  --sky-soft: #8cc8fb;
  --on-sky: #04101a;
  --heat: #e4473b;
  --star: #f5b731;
  --success: #74d8ab;
  --error: #ff958b;

  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, sans-serif;

  --r-shell: 28px;
  --r-core: 22px;
  --r-md: 14px;
  --r-pill: 999px;

  --nav-h: 64px;
  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.25rem, 2rem + 3.3vw, 5.75rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  color-scheme: dark;
}

/* ------------------------------------------------------------------ Basis */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 40px); background: var(--bg); }
/* Sanftes Scrollen per CSS nur ohne motion.js: ScrollTrigger setzt beim Neuvermessen die Position selbst,
   ein CSS-Smooth-Scroll würde das zu einer Fahrt Richtung Seitenanfang machen */
@media (prefers-reduced-motion: no-preference) { html:not(.motion-ready) { scroll-behavior: smooth; } }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text-2);
  font: 400 1.0625rem/1.7 var(--font-body);
  letter-spacing: 0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
/* Filmkorn: fest, ohne Klicks, damit nichts beim Scrollen neu gezeichnet wird */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--sky); color: var(--on-sky); }
input, textarea { caret-color: var(--sky); }
html { scrollbar-color: #1d4561 var(--bg-deep); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #1d4561; border-radius: 10px; border: 2px solid var(--bg-deep); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
source { display: none; }
a { color: var(--sky-soft); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4, .h2, .h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.3rem, 1.2rem + 4vw, 5rem); line-height: 1.02; }
h2, .h2 { font-size: clamp(2rem, 1.1rem + 3.2vw, 4.25rem); line-height: 1.04; }
h3, .h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem); line-height: 1.25; letter-spacing: -0.015em; }
h4 { font-size: 1.02rem; line-height: 1.35; letter-spacing: -0.005em; }
.light { font-weight: 300; color: rgb(238 245 250 / 0.78); letter-spacing: -0.025em; }
.lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.32rem); line-height: 1.6; color: var(--text-2); max-width: 58ch; text-wrap: pretty; }
p, li, dd { overflow-wrap: break-word; }
.muted { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.sprite { display: none; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--sky); color: var(--on-sky); padding: 0.7rem 1rem; border-radius: var(--r-pill); font-weight: 600; }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
/* Tonwechsel innerhalb derselben Nachtblau-Familie, kein Bruch ins Helle */
.section-tint { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 18%, var(--bg-deep) 82%, var(--bg) 100%); }
.section-head { max-width: 50rem; margin-bottom: clamp(2rem, 1.5rem + 1.8vw, 3.25rem); }
.section-head p { color: var(--text-2); font-size: 1.12rem; max-width: 58ch; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ------------------------------------------------------------------ Doppelrahmen (Schale + Kern) */
.bezel, .split-media, .page-hero-media:not(.is-product), .feature-media, .services-preview, .dayflow-figure {
  position: relative; padding: 6px; border-radius: var(--r-shell);
  background: var(--shell); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgb(0 0 0 / 0.9);
}
.split-media img, .page-hero-media:not(.is-product) img, .feature-media img {
  width: 100%; border-radius: var(--r-core); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.core {
  border-radius: var(--r-core); background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07);
}

/* ------------------------------------------------------------------ Buttons */
.btn {
  --mx: 0px; --my: 0px; --s: 1;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 52px; padding: 0 1.5rem; border-radius: var(--r-pill);
  border: 1px solid transparent; background: transparent; color: var(--text);
  font: 600 0.98rem/1.1 var(--font-display); letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transform: translate(var(--mx), var(--my)) scale(var(--s));
  overflow: hidden; isolation: isolate;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 300ms ease, transform 300ms var(--ease-out);
}
.btn:active { --s: 0.97; transition-duration: 120ms; }
/* Beim Überfahren wächst eine Füllung aus dem Pfeilkreis (ohne Pfeil: aus der Mitte) über den ganzen Button */
.btn::before {
  content: ""; position: absolute; z-index: -1; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: var(--fill, rgb(255 255 255 / 0.12)); transform: scale(0); transition: transform 380ms var(--ease-out);
}
.btn:has(.btn-icon)::before { left: auto; right: 6px; margin-left: 0; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: scale(var(--fs, 16)); transition-duration: 620ms; }
}
.btn:has(.btn-icon) { padding-right: 7px; }
.btn > .i:first-child { width: 1.2em; height: 1.2em; }
.btn-icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgb(255 255 255 / 0.1); transition: transform 400ms var(--ease-out), background-color 200ms ease;
}
.btn-icon .i { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn-icon { transform: translate(2px, -1px) scale(1.06); }
}
.btn-primary {
  background: var(--sky); color: var(--on-sky);
  box-shadow: 0 14px 34px -14px rgb(76 163 244 / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.4);
}
.btn-primary { --fill: #fff; }
.btn-primary:hover { box-shadow: 0 18px 44px -14px rgb(76 163 244 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.4); }
.btn-primary .btn-icon { background: var(--on-sky); color: var(--sky); }
.btn-ghost, .btn-outline-light {
  background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.14); color: var(--text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.btn-ghost, .btn-outline-light { --fill: var(--sky); }
.btn-ghost:hover, .btn-outline-light:hover { border-color: var(--sky); color: var(--on-sky); transition: color 220ms ease 120ms, border-color 200ms ease, transform 300ms var(--ease-out); }
.btn-ghost:hover .i, .btn-outline-light:hover .i { color: var(--on-sky); }
.btn-light { background: var(--text); color: var(--on-sky); }
.btn-light { --fill: var(--sky); }
.btn-light .btn-icon { background: var(--on-sky); color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 1.15rem; font-size: 0.92rem; }
.btn-sm:has(.btn-icon) { padding-right: 5px; }
.btn-sm .btn-icon { width: 34px; height: 34px; }
.btn-lg { min-height: 60px; padding: 0 1.8rem; font-size: 1.02rem; }
.btn-lg:has(.btn-icon) { padding-right: 8px; }
.btn-lg .btn-icon { width: 44px; height: 44px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em; color: var(--sky-soft); text-decoration: none;
  font: 600 0.98rem/1.2 var(--font-display);
}
.link-arrow .i { transition: transform 300ms var(--ease-out); }
.link-arrow:hover { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .i { transform: translateX(4px); } }
.link-button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }

/* ------------------------------------------------------------------ Navigation: schwebende Glas-Pille */
.site-header { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; pointer-events: none; }
/* Das Glas sitzt auf ::before: ein backdrop-filter am Container würde das Vollbild-Menü (position: fixed) einsperren */
.header-inner {
  pointer-events: auto; position: relative; display: flex; align-items: center; gap: 1rem;
  width: calc(100% - 24px); max-width: 1400px; height: var(--nav-h); margin: 0 auto; padding: 0 8px 0 22px;
  transition: transform 450ms var(--ease-out);
}
.header-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-pill);
  background: rgb(6 23 35 / 0.55); border: 1px solid rgb(255 255 255 / 0.09);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 24px 60px -30px rgb(0 0 0 / 0.7);
  transition: background-color 300ms ease, opacity 200ms ease;
}
.site-header { isolation: isolate; }
.site-header.is-scrolled .header-inner::before { background: rgb(6 23 35 / 0.8); }
.site-header.is-hidden .header-inner { transform: translateY(calc(-100% - 24px)); }
.brand { position: relative; z-index: 3; display: block; flex: none; }
/* Offizielles Querlogo (704×150): 36 px hoch = 169 px breit */
.brand img { height: 36px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.menu { list-style: none; display: flex; align-items: center; gap: 0.1rem; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li > a {
  display: block; padding: 0.55rem 0.85rem; border-radius: var(--r-pill);
  color: rgb(238 245 250 / 0.78); text-decoration: none; font: 500 0.93rem/1.2 var(--font-display); white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}
.menu > li > a:hover { color: var(--text); background: rgb(255 255 255 / 0.06); }
.menu > li.is-active > a { color: var(--text); background: rgb(255 255 255 / 0.08); }
.sub-toggle {
  display: grid; place-items: center; width: 26px; height: 32px; margin-left: -0.6rem;
  background: none; border: 0; color: rgb(238 245 250 / 0.7); cursor: pointer;
}
.sub-toggle .i { width: 13px; height: 13px; transition: transform 200ms var(--ease-out); }
.has-sub.is-open .sub-toggle .i { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 18px); left: -1rem; z-index: 5; width: 36rem; padding: 10px;
  border-radius: 26px; background: rgb(6 23 35 / 0.94); border: 1px solid rgb(255 255 255 / 0.09);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.06);
  opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: 12% 0; visibility: hidden;
  transition: opacity 120ms ease-out, transform 150ms var(--ease-out), visibility 0s linear 150ms;
}
.sub::before { content: ""; position: absolute; inset: -20px 0 auto; height: 20px; }
.has-sub.is-open .sub { opacity: 1; transform: none; visibility: visible; transition: opacity 180ms ease-out, transform 240ms var(--ease-out), visibility 0s; }
@media (hover: hover) and (pointer: fine) and (min-width: 1240px) {
  .has-sub:hover .sub { opacity: 1; transform: none; visibility: visible; transition: opacity 180ms ease-out, transform 240ms var(--ease-out), visibility 0s; }
  .has-sub:hover .sub-toggle .i { transform: rotate(180deg); }
}
.sub ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.sub ul a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.8rem; border-radius: 16px;
  color: var(--text); text-decoration: none; font: 500 0.93rem/1.25 var(--font-display); transition: background-color 120ms ease;
}
.sub ul a .i { width: 20px; height: 20px; color: var(--sky); }
.sub ul a:hover, .sub ul a[aria-current] { background: rgb(255 255 255 / 0.06); }
.sub-all {
  display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 0.8rem;
  border-top: 1px solid var(--line); color: var(--sky-soft); font: 600 0.9rem/1.2 var(--font-display); text-decoration: none;
}
.nav-extra { display: flex; align-items: center; gap: 0.5rem; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.8rem; border-radius: var(--r-pill);
  color: var(--text); text-decoration: none; font: 500 0.93rem/1 var(--font-display);
}
.nav-phone .i { color: var(--sky); width: 18px; height: 18px; }
.nav-phone:hover { background: rgb(255 255 255 / 0.06); }
.nav-toggle { display: none; }
@media (max-width: 1439px) { .nav-phone span { display: none; } }
/* Sieben Menüpunkte plus das breite Querlogo: auf allen Desktop-Breiten etwas enger, damit der Anfrage-Knopf nicht rausrutscht.
   Gemessen 09.11.2026: bei 1240 px bleiben 24 px Luft; die Kopfzeile ist höchstens 1400 px breit, ab 1440 px passt die Telefonnummer. */
@media (min-width: 1240px) { .menu > li > a { padding: 0.55rem 0.6rem; font-size: 0.9rem; } .main-nav { gap: 0.4rem; } }

/* Menü unter 1240 px: Vollbild-Glas, Einträge steigen gestaffelt auf */
@media (max-width: 1239px) {
  .header-inner { padding-left: 18px; }
  .nav-toggle {
    position: relative; z-index: 3; display: grid; place-items: center; width: 48px; height: 48px; margin-left: auto;
    border-radius: 50%; background: rgb(255 255 255 / 0.08); border: 0; cursor: pointer; color: var(--text);
  }
  .nav-toggle-bars { position: relative; width: 18px; height: 10px; }
  .nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 300ms var(--ease-out), top 300ms var(--ease-out); }
  .nav-toggle-bars span:first-child { top: 0; }
  .nav-toggle-bars span:last-child { top: 8px; }
  .nav-open .nav-toggle-bars span:first-child { top: 4px; transform: rotate(45deg); }
  .nav-open .nav-toggle-bars span:last-child { top: 4px; transform: rotate(-45deg); }
  .main-nav {
    position: fixed; inset: 0; z-index: 2; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    margin: 0; padding: calc(var(--nav-h) + 40px) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: rgb(4 16 26 / 0.9); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transition: opacity 260ms ease-out, visibility 0s linear 260ms;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transition: opacity 260ms ease-out, visibility 0s; }
  .nav-open { overflow: hidden; }
  .nav-open .header-inner::before { opacity: 0; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(24px); transition: opacity 400ms ease, transform 600ms var(--ease-expo); }
  .nav-open .menu > li { opacity: 1; transform: none; }
  .nav-open .menu > li:nth-child(2) { transition-delay: 40ms; }
  .nav-open .menu > li:nth-child(3) { transition-delay: 80ms; }
  .nav-open .menu > li:nth-child(4) { transition-delay: 120ms; }
  .nav-open .menu > li:nth-child(5) { transition-delay: 160ms; }
  .nav-open .menu > li:nth-child(6) { transition-delay: 200ms; }
  .menu > li > a { flex: 1; padding: 1.05rem 0; border-radius: 0; font-size: clamp(1.5rem, 1.2rem + 2vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; color: var(--text); background: none !important; }
  .menu > li.is-active > a { color: var(--sky); }
  .sub-toggle { width: 48px; height: 48px; margin: 0; }
  .sub-toggle .i { width: 18px; height: 18px; }
  .sub {
    position: static; width: 100%; padding: 0 0 1rem; display: none; border: 0; border-radius: 0;
    background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    opacity: 1; transform: none; visibility: visible;
  }
  .sub::before { display: none; }
  .has-sub.is-open .sub { display: block; }
  .sub ul { grid-template-columns: 1fr; }
  .sub ul a { padding: 0.7rem 0.25rem; color: rgb(238 245 250 / 0.88); }
  .sub-all { padding-inline: 0.25rem; }
  .nav-extra { flex-direction: column; align-items: stretch; gap: 0.75rem; margin-top: 2rem; opacity: 0; transform: translateY(24px); transition: opacity 400ms ease 240ms, transform 600ms var(--ease-expo) 240ms; }
  .nav-open .nav-extra { opacity: 1; transform: none; }
  .nav-extra .btn { min-height: 56px; }
  .nav-phone { justify-content: center; padding: 1rem; border: 1px solid var(--line-strong); }
  .nav-phone span { display: inline; }
}
@media (max-width: 480px) { .brand img { height: 30px; } .header-inner { width: calc(100% - 16px); } .site-header { top: 8px; } }

/* ------------------------------------------------------------------ Startseite: Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center;
  min-height: 100svh; padding: calc(var(--nav-h) + 4rem) 0 clamp(8rem, 4rem + 14vh, 15rem); text-align: center;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero-video { opacity: 0; transition: opacity 1200ms ease; }
.hero-video.is-playing { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(110% 70% at 50% 108%, rgb(76 163 244 / 0.32) 0%, rgb(76 163 244 / 0.08) 38%, transparent 62%),
    linear-gradient(180deg, rgb(4 16 26 / 0.78) 0%, rgb(4 16 26 / 0.6) 38%, rgb(6 23 35 / 0.9) 80%, var(--bg) 100%);
}
.hero-sun { position: absolute; left: 50%; bottom: clamp(-10rem, -14vw, -3rem); z-index: -1; width: min(1240px, 150vw); transform: translateX(-50%); pointer-events: none; }
.hero-sun svg { width: 100%; height: auto; overflow: visible; }
.hero-sun .arc { fill: none; stroke: var(--sky); stroke-width: 1.6; opacity: 0.9; }
.hero-sun .arc-inner { fill: none; stroke: rgb(140 200 251 / 0.25); stroke-width: 1; }
.hero-sun .ray { stroke: var(--sky); stroke-width: 3; stroke-linecap: round; opacity: 0.85; }
.hero-sun .disc { fill: url(#sonnenschein); }
.hero-inner { position: relative; }
/* Zeile 1 in Versalien ist rund 15 Geviert breit: Schriftgröße folgt der Containerbreite, damit sie einzeilig bleibt */
.hero-title { margin: 0 auto; font-size: clamp(2.3rem, calc((min(100vw, var(--container)) - 2 * var(--gutter)) / 15.6), 5.25rem); line-height: 0.98; letter-spacing: -0.035em; }
.hero-title .line { display: block; overflow: hidden; padding: 0.04em 0.02em 0.08em; }
.hero-title .line > span { display: inline-block; }
.hero-title .wd { display: inline-block; white-space: nowrap; }
.hero-title .ch { display: inline-block; }
.hero-title .line:first-child { font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; }
.hero-title .line.light { font-weight: 300; text-transform: none; }
.hero-sub { max-width: 34rem; margin: 1.6rem auto 2.3rem; font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.28rem); line-height: 1.55; color: rgb(238 245 250 / 0.82); text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* Auftakt: Das Bild geht wie die Sonne von unten auf, danach steigen die Buchstaben einzeln aus ihrer Zeile */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-media { animation: sonnenaufgang 2100ms var(--ease-expo) both; }
  .js .hero-media img, .js .hero-media .hero-video { animation: bild-zoom 2600ms var(--ease-expo) both; }
  .js .hero-title .ch { animation: zeichen-hoch 1100ms var(--ease-expo) both; animation-delay: calc(380ms + var(--c) * 24ms); }
  .js .hero-title .line + .line .ch { animation-delay: calc(860ms + var(--c) * 30ms); }
  .js .hero-sub { animation: aufsteigen 1000ms var(--ease-expo) 1150ms both; }
  .js .hero-actions { animation: aufsteigen 1000ms var(--ease-expo) 1300ms both; }
  .js .hero-sun .arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bogen 1800ms var(--ease-expo) 150ms forwards; }
  .js .hero-sun .arc-inner { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bogen 2200ms var(--ease-expo) 350ms forwards; }
  .js .hero-sun .ray { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bogen 700ms var(--ease-expo) both; animation-delay: calc(900ms + var(--n) * 55ms); }
  .js .hero-sun .disc { opacity: 0; animation: gluehen 2400ms var(--ease-expo) 300ms forwards; }
}
/* Seitenkopf der Unterseiten: Text steigt gestaffelt auf, das Bild öffnet sich von unten */
@media (prefers-reduced-motion: no-preference) {
  .js .page-hero .breadcrumb, .js .page-hero h1, .js .page-hero .lead, .js .page-hero-actions { animation: aufsteigen 900ms var(--ease-expo) both; }
  .js .page-hero h1 { animation-delay: 60ms; }
  .js .page-hero .lead { animation-delay: 150ms; }
  .js .page-hero-actions { animation-delay: 230ms; }
  .js .page-hero-media:not(.is-product) img { animation: bild-auf 1500ms var(--ease-expo) 120ms both; }
  .js .page-hero-media.is-product img { animation: aufsteigen 1100ms var(--ease-expo) 200ms both; }
}
@keyframes bild-auf {
  from { clip-path: inset(100% 0 0 0 round var(--r-core)); }
  to { clip-path: inset(0 0 0 0 round var(--r-core)); }
}
@keyframes sonnenaufgang { from { clip-path: circle(0% at 50% 100%); } to { clip-path: circle(150% at 50% 100%); } }
@keyframes bild-zoom { from { transform: scale(1.22); } }
@keyframes zeichen-hoch { from { transform: translateY(110%) rotate(7deg); } }
@keyframes aufsteigen { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes bogen { to { stroke-dashoffset: 0; } }
@keyframes gluehen { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ Laufband Partnerlogos */
.marquee-band { position: relative; padding: 2.4rem 0; border-block: 1px solid var(--line); background: rgb(10 37 53 / 0.3); }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { list-style: none; display: flex; flex: none; align-items: center; gap: clamp(3rem, 6vw, 6rem); padding-right: clamp(3rem, 6vw, 6rem); animation: laufband 42s linear infinite; }
.marquee-track img { width: auto; max-width: 170px; filter: brightness(0) invert(1); opacity: 0.6; transition: opacity 200ms ease; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.is-gsap .marquee-track { animation: none; }
.marquee-track img:hover { opacity: 1; }
@keyframes laufband { to { transform: translateX(-100%); } }

/* Statische Logoreihe (Unterseiten) */
.partners { padding-block: 2.5rem; border-block: 1px solid var(--line); background: rgb(10 37 53 / 0.25); }
.partners-inner { display: grid; gap: 1.25rem; align-items: center; }
.partners-label { margin: 0; color: var(--text-3); font: 500 0.9rem/1.4 var(--font-display); }
.logo-wall { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem 3rem; }
.logo-wall img { width: auto; max-width: 160px; filter: brightness(0) invert(1); opacity: 0.6; transition: opacity 200ms ease; }
.logo-wall img:hover { opacity: 1; }
@media (min-width: 900px) { .partners-inner { grid-template-columns: 12rem 1fr; } .logo-wall { justify-content: space-between; } }

/* ------------------------------------------------------------------ Aussage mit eingebetteten Fotos */
.statement { position: relative; padding-block: var(--section); }
.statement::before { content: ""; position: absolute; inset: 10% auto auto -10%; width: 50vw; height: 50vw; border-radius: 50%; background: radial-gradient(closest-side, rgb(76 163 244 / 0.12), transparent); pointer-events: none; }
.statement-text {
  position: relative; max-width: 1180px; margin: 0;
  font: 500 clamp(1.65rem, 0.95rem + 2.7vw, 3.6rem)/1.2 var(--font-display); letter-spacing: -0.028em; color: var(--text); text-wrap: pretty;
}
.statement-text strong { font-weight: 700; color: var(--sky-soft); }

/* ------------------------------------------------------------------ Leistungen als Liste mit Vorschau */
.services-grid { display: grid; gap: 2.5rem 4rem; }
.services-head h2 { max-width: 18ch; margin: 0; }
.svc-list { list-style: none; border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.35rem 1.25rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: opacity 250ms ease;
}
.svc-name { font: 600 clamp(1.35rem, 1rem + 1.3vw, 2.25rem)/1.1 var(--font-display); letter-spacing: -0.025em; transition: transform 500ms var(--ease-out), color 200ms ease; }
.svc-text { grid-column: 1; color: var(--text-3); font-size: 0.98rem; line-height: 1.5; }
.svc-go {
  grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text);
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, transform 500ms var(--ease-out);
}
.svc-go .i { width: 20px; height: 20px; }
.svc-thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .svc-list:hover .svc-row:not(:hover) { opacity: 0.42; }
  .svc-row:hover .svc-name, .svc-row:focus-visible .svc-name { transform: translateX(12px); color: var(--sky-soft); }
  .svc-row:hover .svc-go, .svc-row:focus-visible .svc-go { background: var(--sky); border-color: var(--sky); color: var(--on-sky); transform: rotate(-45deg); }
}
.services-preview { position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; display: none; }
.services-preview .core { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.services-preview .pv {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0); transform: scale(1.14); transform-origin: 50% 100%;
}
.services-preview .pv.is-prev { z-index: 1; clip-path: inset(0); transform: none; }
.services-preview .pv.is-active { z-index: 2; clip-path: inset(0); transform: none; transition: clip-path 900ms var(--ease-expo), transform 1300ms var(--ease-expo); }
.services-preview .core::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, transparent 55%, rgb(4 16 26 / 0.55)); pointer-events: none; }
.services-preview .preview-label { position: absolute; left: 1.4rem; bottom: 1.2rem; z-index: 4; margin: 0; color: var(--text); font: 600 1.05rem/1.2 var(--font-display); }
.services-preview .pv-ef::after { display: none; }
@media (max-width: 1023px) {
  .svc-row { grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 1rem; }
  .svc-name { hyphens: auto; overflow-wrap: break-word; }
  .svc-thumb { display: block; grid-row: 1 / span 2; grid-column: 1; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
  .svc-name, .svc-text { grid-column: 2; }
  .svc-go { grid-column: 3; width: 44px; height: 44px; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: 1.25fr 0.75fr; grid-template-areas: "head head" "list preview" "foot foot"; }
  .services-foot { grid-area: foot; }
  .services-head { grid-area: head; display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 3rem; align-items: end; }
  .services-head p { margin: 0 0 0.6rem; }
  .svc-list { grid-area: list; }
  .services-preview { grid-area: preview; display: block; }
}

/* ------------------------------------------------------------------ Ein Tag mit Ihrer Anlage (fixierte Grafik) */
.dayflow { position: relative; }
.dayflow-pin { position: relative; display: flex; align-items: center; padding-block: var(--section); }
/* Fixiert: Inhalt oben ansetzen statt mittig, sonst entsteht beim Hineinscrollen eine große Lücke */
.dayflow.is-pinned .dayflow-pin { min-height: 100svh; align-items: flex-start; padding-block: calc(var(--nav-h) + 1rem) 1rem; }
.dayflow-grid { display: grid; gap: 2rem 4rem; align-items: center; }
.dayflow-text h2 { margin-bottom: 1.5rem; }
.dayflow-steps { list-style: none; display: grid; gap: 1.5rem; }
.dayflow-steps h3 { display: flex; align-items: center; gap: 0.6rem; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem); margin-bottom: 0.4rem; }
.dayflow-steps h3 .i { width: 1.1em; height: 1.1em; color: var(--sky); }
.dayflow-steps p { margin: 0; max-width: 40ch; font-size: 1.08rem; }
.dayflow-progress { display: none; gap: 6px; margin-top: 2rem; max-width: 22rem; }
.dayflow-progress span { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: var(--line-strong); }
.dayflow-progress span::after { content: ""; position: absolute; inset: 0; background: var(--sky); transform: scaleX(var(--p, 0)); transform-origin: left; }
.dayflow.is-pinned .dayflow-steps { grid-template-areas: "schritt"; gap: 0; }
.dayflow.is-pinned .dayflow-steps li { grid-area: schritt; opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity 450ms ease, transform 700ms var(--ease-expo), filter 450ms ease; }
.dayflow.is-pinned .dayflow-steps li.is-active { opacity: 1; transform: none; filter: none; }
.dayflow.is-pinned .dayflow-progress { display: flex; }
.dayflow-stage { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-core); background: #071b29; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07); }
.sky { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; }
.sky-0 { background: radial-gradient(90% 70% at 15% 85%, rgb(76 163 244 / 0.35), transparent 60%), linear-gradient(180deg, #0b2a44 0%, #12395a 70%, #16486e 100%); }
.sky-1 { background: radial-gradient(70% 60% at 50% 10%, rgb(140 200 251 / 0.55), transparent 65%), linear-gradient(180deg, #1c5a8a 0%, #1a5281 55%, #164466 100%); }
.sky-2 { background: radial-gradient(90% 70% at 88% 88%, rgb(76 163 244 / 0.3), transparent 60%), linear-gradient(180deg, #081d2e 0%, #0d2c45 70%, #12395a 100%); }
.sky-3 { background: radial-gradient(60% 50% at 80% 15%, rgb(200 225 250 / 0.12), transparent 60%), linear-gradient(180deg, #030c14 0%, #061826 100%); }
.dayflow-stage[data-state="0"] .sky-0, .dayflow-stage[data-state="1"] .sky-1, .dayflow-stage[data-state="2"] .sky-2, .dayflow-stage[data-state="3"] .sky-3 { opacity: 1; }
.dayflow-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.df-orbit { fill: none; stroke: rgb(255 255 255 / 0.14); stroke-width: 1.5; stroke-dasharray: 2 8; }
.df-ground { stroke: rgb(255 255 255 / 0.22); stroke-width: 2; }
.df-house { fill: #0a2535; stroke: rgb(238 245 250 / 0.85); stroke-width: 2.5; stroke-linejoin: round; }
.df-panel { fill: #12395a; stroke: rgb(140 200 251 / 0.55); stroke-width: 1.2; transition: fill 700ms ease; }
.dayflow-stage[data-state="0"] .df-panel { fill: #1d5a8c; }
.dayflow-stage[data-state="1"] .df-panel { fill: #3f93e0; }
.df-win { fill: rgb(255 255 255 / 0.07); transition: fill 600ms ease; }
.df-win.on { fill: rgb(170 215 252 / 0.85); }
.df-node { fill: rgb(6 23 35 / 0.85); stroke: rgb(238 245 250 / 0.5); stroke-width: 1.5; }
.df-icon { color: var(--text); }
.df-label { fill: rgb(238 245 250 / 0.82); font: 600 15px var(--font-display); letter-spacing: 0.01em; }
.df-batt { fill: rgb(6 23 35 / 0.9); stroke: rgb(238 245 250 / 0.85); stroke-width: 2; }
.df-level { fill: var(--sky); transform-box: fill-box; transform-origin: 50% 100%; }
.df-base { fill: none; stroke: rgb(255 255 255 / 0.1); stroke-width: 3; stroke-linecap: round; }
.df-flow { fill: none; stroke: var(--sky); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 14; opacity: 0; transition: opacity 500ms ease; }
.df-flow.on { opacity: 1; animation: stromfluss 900ms linear infinite; }
@keyframes stromfluss { to { stroke-dashoffset: -18; } }
.df-grid.off { opacity: 0.3; }
.df-sun-core { fill: #f4fbff; }
.df-sun-glow { fill: url(#dfSonne); }
.df-moon { fill: rgb(220 235 250 / 0.85); opacity: 0; transition: opacity 700ms ease; }
.dayflow-stage[data-state="3"] .df-moon { opacity: 1; }
@media (min-width: 1024px) { .dayflow-grid { grid-template-columns: 0.85fr 1.15fr; } }
@media (max-width: 1023px) {
  .dayflow.is-pinned .dayflow-grid { gap: 1.25rem; }
  .dayflow.is-pinned .dayflow-text h2 { font-size: clamp(1.7rem, 1.2rem + 3vw, 2.4rem); margin-bottom: 0.75rem; }
  .dayflow.is-pinned .dayflow-figure { order: -1; }
  .dayflow.is-pinned .dayflow-steps p { font-size: 1rem; }
}

/* ------------------------------------------------------------------ Referenzen horizontal */
.hgallery { position: relative; }
.hgallery-pin { position: relative; padding-block: var(--section); overflow: hidden; }
.hgallery-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.hgallery-head h2 { margin: 0; max-width: 14ch; }
.hgallery-track { display: flex; gap: clamp(1rem, 0.6rem + 1.2vw, 1.75rem); padding-inline: var(--gutter); }
.hcard { flex: none; width: clamp(280px, 34vw, 540px); margin: 0; }
.hcard-img { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-core); border: 1px solid var(--line); }
.hcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-expo); }
@media (hover: hover) and (pointer: fine) { .hcard:hover .hcard-img img { transform: scale(1.05); } }
.hcard figcaption { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 1rem; }
.hcard figcaption strong { color: var(--text); font: 600 1.12rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.hcard figcaption span { color: var(--text-3); font-size: 0.95rem; }
.hgallery:not(.is-pinned) .hgallery-track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 1rem; scrollbar-width: thin; }
.hgallery:not(.is-pinned) .hcard { scroll-snap-align: start; width: min(78vw, 460px); }
.hgallery.is-pinned .hgallery-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-start; padding-block: calc(var(--nav-h) + 1rem) 1rem; }
.hgallery.is-pinned .hgallery-track { width: max-content; }

/* ------------------------------------------------------------------ Bewertungswand */
.voices-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: 2.25rem; }
.voices-head h2 { margin: 0; }
.rating { display: flex; align-items: center; gap: 1rem; }
.rating-score { color: var(--text); font: 700 clamp(2.4rem, 2rem + 1.5vw, 3.4rem)/1 var(--font-display); letter-spacing: -0.04em; }
.rating-meta { display: flex; flex-direction: column; gap: 0.3rem; color: var(--text-3); font-size: 0.95rem; }
.stars { display: inline-flex; gap: 3px; color: var(--star); }
.stars .i { width: 17px; height: 17px; }
.quote-wall { display: grid; gap: 1.25rem; align-items: start; }
.qcol { display: grid; gap: 1.25rem; }
@media (max-width: 639px) { .qcol { display: contents; } }
@media (min-width: 640px) and (max-width: 1023px) {
  .quote-wall { display: block; columns: 2; column-gap: 1.25rem; }
  .qcol { display: contents; }
  .quote { break-inside: avoid; margin-bottom: 1.25rem !important; }
}
@media (min-width: 1024px) { .quote-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } .qcol:nth-child(2) { margin-top: 4rem; } }
.quote {
  margin: 0; padding: 1.75rem; border-radius: var(--r-shell);
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card)); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.quote blockquote { margin: 1rem 0 1.25rem; }
.quote blockquote p { margin: 0; color: var(--text); font: 500 1.12rem/1.5 var(--font-display); letter-spacing: -0.01em; }
.quote-gross blockquote p { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.35; }
.quote figcaption { color: var(--text-3); font-size: 0.9rem; }
.quote figcaption span { color: var(--text-2); }
.voices-foot { margin-top: 2rem; }

/* ------------------------------------------------------------------ Ablauf mit Sonnenstrahlen */
.process-grid { display: grid; gap: 3rem 5rem; }
.process-aside p { color: var(--text-2); font-size: 1.1rem; max-width: 34rem; }
/* Überschriften in schmalen Spalten: das längste Wort („Photovoltaikanlage“, rund 9 Geviert) muss in die Spalte passen */
.process-aside h2, .faq-intro h2 { font-size: clamp(1.9rem, 1rem + 2.6vw, 3.2rem); }
.personal-note h2 { font-size: clamp(1.8rem, 1.1rem + 1.6vw, 2.6rem); }
.ray-dial { position: relative; display: none; width: min(360px, 100%); margin: 2.5rem 0 2rem; }
.ray-dial svg { width: 100%; height: auto; overflow: visible; }
.ray-dial .ray-arc { fill: none; stroke: rgb(255 255 255 / 0.18); stroke-width: 2; }
.ray-dial .ray { stroke: rgb(255 255 255 / 0.13); stroke-width: 7; stroke-linecap: round; transition: stroke 500ms ease, filter 500ms ease; }
.ray-dial .ray.lit { stroke: var(--sky); filter: drop-shadow(0 0 8px rgb(76 163 244 / 0.85)); }
.ray-count { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); text-align: center; color: var(--text-3); font: 500 0.9rem/1.2 var(--font-display); white-space: nowrap; }
.ray-count b { display: block; color: var(--text); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.steps { list-style: none; counter-reset: schritt; position: relative; display: grid; }
.steps::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.steps::after {
  content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--sky);
  transform: scaleY(var(--fill, 0)); transform-origin: 50% 0; box-shadow: 0 0 14px rgb(76 163 244 / 0.7);
}
.steps li { position: relative; counter-increment: schritt; padding: 0 0 2.25rem 4rem; transition: opacity 400ms ease; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(schritt); position: absolute; left: 0; top: -6px; z-index: 1; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line-strong);
  color: var(--text-2); font: 600 0.95rem/1 var(--font-display); font-variant-numeric: tabular-nums;
  transition: background-color 400ms ease, border-color 400ms ease, color 400ms ease, box-shadow 400ms ease;
}
.steps li.is-done::before { background: var(--sky); border-color: var(--sky); color: var(--on-sky); box-shadow: 0 0 22px rgb(76 163 244 / 0.55); }
.steps h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--text-3); max-width: 46ch; }
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: 0.9fr 1.1fr; }
  .process-aside { position: sticky; top: calc(var(--nav-h) + 56px); align-self: start; }
  .ray-dial { display: block; }
}
/* Bildband: zwei Reihen Anlagenfotos über die volle Breite, die beim Scrollen gegeneinander laufen */
.bildband-sektion { overflow: hidden; padding-bottom: var(--section); }
.process + .bildband-sektion { margin-top: calc(var(--section) * -0.4); }
.bildband { display: grid; gap: clamp(0.75rem, 0.5rem + 0.6vw, 1.1rem); }
.bb-reihe { display: flex; gap: clamp(0.75rem, 0.5rem + 0.6vw, 1.1rem); width: max-content; }
.bb-reihe:nth-child(2) { margin-left: -16vw; }
.bb-bild { position: relative; flex: none; width: clamp(240px, 30vw, 520px); margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-core); border: 1px solid var(--line); background: var(--bg-card); }
.bb-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-expo); }
.bb-bild figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 0.35rem 0.75rem; border-radius: var(--r-pill); background: rgb(4 16 26 / 0.7);
  color: var(--text); font: 600 0.82rem/1.2 var(--font-display); opacity: 0; transform: translateY(8px); transition: opacity 250ms ease, transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bb-bild:hover img { transform: scale(1.05); }
  .bb-bild:hover figcaption { opacity: 1; transform: none; }
}
@media (hover: none) { .bb-bild figcaption { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ Startseite: Ergänzungen */
.marquee-note { margin: 0 auto 1.6rem; padding-inline: var(--gutter); text-align: center; color: var(--text-3); font: 500 0.92rem/1.45 var(--font-display); text-wrap: balance; }
.statement-title { position: relative; margin: 0 0 0.1em; font: 700 clamp(1.65rem, 0.95rem + 2.7vw, 3.6rem)/1.2 var(--font-display); letter-spacing: -0.03em; }
.statement-foot { display: grid; gap: 2rem 5rem; margin-top: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); padding-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); border-top: 1px solid var(--line); }
.statement-copy p { max-width: 46ch; color: var(--text-2); font-size: 1.08rem; }
.statement-foot .points { margin: 0; }
@media (min-width: 900px) {
  .statement-foot { grid-template-columns: 0.9fr 1.1fr; }
  .statement-foot .points { grid-template-columns: 1fr 1fr; gap: 1.5rem 2.25rem; }
}
.counters { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; margin-top: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); }
.counters li { display: flex; flex-direction: column; gap: 0.55rem; }
.counters strong {
  display: flex; align-items: baseline; color: var(--text);
  font: 700 clamp(2.6rem, 1.8rem + 3vw, 4.8rem)/1 var(--font-display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums;
}
.counters small { margin-left: 0.2em; color: var(--sky-soft); font-size: 0.4em; font-weight: 600; letter-spacing: -0.01em; }
.counters li > span { max-width: 22ch; color: var(--text-3); font-size: 0.95rem; line-height: 1.45; }
@media (min-width: 900px) { .counters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.services-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.services-foot p { margin: 0; color: var(--text-3); }
.svc-thumb.is-product { object-fit: contain; padding: 6px; background: radial-gradient(closest-side, rgb(76 163 244 / 0.35), rgb(255 255 255 / 0.04)); }
.services-preview .pv.is-product { object-fit: contain; padding: 14% 18%; background: radial-gradient(closest-side, rgb(76 163 244 / 0.3), transparent 72%), var(--bg-card); }

.df-door { fill: rgb(255 255 255 / 0.05); stroke: rgb(238 245 250 / 0.55); stroke-width: 1.5; }
.df-batt-cap { fill: rgb(238 245 250 / 0.85); }
.df-pylon { fill: none; stroke: rgb(238 245 250 / 0.72); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.df-wire { fill: none; stroke: rgb(238 245 250 / 0.35); stroke-width: 1.5; }
.df-car { fill: #0f2f45; stroke: rgb(238 245 250 / 0.85); stroke-width: 2.5; stroke-linejoin: round; }
.df-car-win { fill: rgb(140 200 251 / 0.2); }
.df-wheel { fill: #061723; stroke: rgb(238 245 250 / 0.85); stroke-width: 2.5; }
.df-post { stroke: rgb(238 245 250 / 0.6); stroke-width: 3; stroke-linecap: round; }
.df-wallbox { fill: #0a2535; stroke: rgb(238 245 250 / 0.85); stroke-width: 2; }
.df-cable { fill: none; stroke: rgb(238 245 250 / 0.55); stroke-width: 2; stroke-linecap: round; }
.df-stars { opacity: 0; transition: opacity 900ms ease; }
.df-stars circle { fill: #fff; }
.dayflow-stage[data-state="2"] .df-stars { opacity: 0.3; }
.dayflow-stage[data-state="3"] .df-stars { opacity: 0.9; }
.df-tag {
  position: absolute; top: 88.5%; transform: translate(-50%, -50%); padding: 0.22rem 0.6rem; border-radius: var(--r-pill);
  background: rgb(4 16 26 / 0.6); border: 1px solid rgb(255 255 255 / 0.1); color: var(--text-2);
  font: 600 clamp(0.62rem, 0.5rem + 0.4vw, 0.8rem)/1.2 var(--font-display); white-space: nowrap; pointer-events: none;
}
@media (max-width: 479px) { .df-tag { padding: 0.15rem 0.4rem; } }
.df-tag-auto { left: 18.75%; }
.df-tag-haus { left: 50%; }
.df-tag-speicher { left: 76.6%; }
.df-tag-netz { left: 92.7%; }
.df-clock {
  position: absolute; left: 14px; top: 14px; margin: 0; padding: 0.4rem 0.85rem; border-radius: var(--r-pill);
  background: rgb(4 16 26 / 0.62); border: 1px solid rgb(255 255 255 / 0.12); color: var(--text); font: 600 0.88rem/1.2 var(--font-display);
}

.split-head { display: grid; gap: 1.25rem 4rem; max-width: none; align-items: end; }
.split-head h2 { margin: 0; max-width: 17ch; }
.split-head p { margin: 0 0 1.5rem; }
@media (min-width: 1024px) { .split-head { grid-template-columns: 1.35fr 0.65fr; } }

.reasons-bento { display: grid; gap: 1rem; grid-auto-flow: dense; }
.rb {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6rem;
  min-height: 260px; padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); border-radius: var(--r-shell);
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.rb h3 { margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); }
.rb p { margin: 0; max-width: 44ch; color: var(--text-3); }
.rb-body { display: grid; gap: 0.6rem; }
.rb-photo { min-height: 440px; }
.rb-photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1400ms var(--ease-expo); }
.rb-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(4 16 26 / 0) 25%, rgb(4 16 26 / 0.92) 100%); }
.rb-photo h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); }
.rb-photo p { color: rgb(238 245 250 / 0.84); }
@media (hover: hover) and (pointer: fine) { .rb-photo:hover img { transform: scale(1.04); } }
.rb-plan { justify-content: space-between; gap: 1.5rem; }
.rb-sketch { align-self: flex-end; width: min(100%, 300px); height: auto; }
.sk-roof { fill: none; stroke: rgb(140 200 251 / 0.45); stroke-width: 1.5; stroke-linejoin: round; }
.sk-mod { fill: rgb(76 163 244 / 0.16); stroke: rgb(140 200 251 / 0.65); stroke-width: 1.2; stroke-linejoin: round; }
.sk-dim { fill: none; stroke: rgb(140 200 251 / 0.3); stroke-width: 1; }
.avatars { display: flex; margin-bottom: auto; padding-bottom: 1.25rem; }
.avatars img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--bg-card-2); }
.avatars img + img, .avatars picture + picture img { margin-left: -14px; }
.rb-icon { width: 46px; height: 46px; margin-bottom: auto; padding-bottom: 1rem; color: var(--sky); }
.rb-media { padding: 0; justify-content: flex-start; gap: 0; }
.rb-media .rb-body { padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); }
.rb-media img { width: 100%; height: 220px; object-fit: cover; }
.rb-chain .chain { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.chain li { padding: 0.45rem 0.95rem; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.05); border: 1px solid var(--line-strong); color: var(--text); font: 500 0.92rem/1.2 var(--font-display); }
@media (min-width: 640px) {
  .reasons-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-photo, .rb-plan, .rb-media, .rb-chain { grid-column: span 2; }
  .rb-media { flex-direction: row; align-items: stretch; }
  .rb-media .rb-body { flex: 1 1 55%; align-content: end; }
  .rb-media img { flex: 0 0 45%; width: 45%; height: auto; min-height: 100%; }
}
@media (min-width: 1024px) {
  .reasons-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); }
  .rb-photo { grid-row: span 2; min-height: 0; }
}

.hcard-more {
  display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 3; padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--r-core); border: 1px solid var(--line-strong); color: var(--text); text-decoration: none;
  background: radial-gradient(120% 90% at 100% 100%, rgb(76 163 244 / 0.35), transparent 60%), var(--bg-card);
}
.hcard-more-text { max-width: 10ch; font: 600 clamp(1.5rem, 1.1rem + 1.5vw, 2.4rem)/1.1 var(--font-display); letter-spacing: -0.025em; }
.hcard-more .svc-go { align-self: flex-end; }
@media (hover: hover) and (pointer: fine) { .hcard-more:hover .svc-go { background: var(--sky); border-color: var(--sky); color: var(--on-sky); transform: rotate(-45deg); } }

/* ------------------------------------------------------------------ Seitenkopf (Unterseiten) */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + clamp(2.5rem, 2rem + 2.5vw, 4rem)) 0 clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; right: -20%; top: -35%; width: 80vw; height: 80vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(76 163 244 / 0.22), rgb(76 163 244 / 0.05) 55%, transparent 72%);
  pointer-events: none;
}
.page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.page-hero-grid { display: grid; gap: 3rem; align-items: center; }
/* Das längste Wort einer Seitenüberschrift („Photovoltaikanlage“) misst rund 9 Geviert und muss in die Textspalte passen.
   Getrennt wird nur an den weichen Trennstellen aus build.py (TRENNUNGEN), nie automatisch: Chrome machte sonst „Son-nenkraft“. */
.page-hero h1 { max-width: 16ch; font-size: clamp(2.2rem, 1rem + 3.3vw, 4.25rem); hyphens: manual; }
.page-hero .lead { margin-bottom: 2rem; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.page-hero-media img { aspect-ratio: 4 / 3.4; object-fit: cover; }
.page-hero-media.is-product { position: relative; display: grid; place-items: center; min-height: 380px; }
.page-hero-media.is-product::before { content: ""; position: absolute; inset: 8% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgb(76 163 244 / 0.4), rgb(76 163 244 / 0.08) 60%, transparent 75%); filter: blur(10px); }
.page-hero-media.is-product img { position: relative; width: auto; max-height: 440px; object-fit: contain; filter: drop-shadow(0 40px 50px rgb(0 0 0 / 0.55)); }
.page-hero-grid.no-media h1 { max-width: 22ch; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 5rem; } .page-hero-grid.no-media { grid-template-columns: 1fr; } }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; color: var(--text-3); font: 500 0.88rem/1.4 var(--font-display); }
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text-2); }
.breadcrumb .sep { color: rgb(255 255 255 / 0.2); }

/* ------------------------------------------------------------------ Text und Bild */
.split { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
/* Überschriften in Text-Spalten neben Bildern: kleiner als die großen Abschnittsköpfe */
.split-text h2, .feature h2, .duo h2, .mission h2, .system h2, .sister h2, .contact-grid h2 { font-size: clamp(1.9rem, 1.1rem + 2.2vw, 3.2rem); }
.split-media img { aspect-ratio: 4 / 3; object-fit: cover; }
.split-media.tall img { aspect-ratio: 4 / 5; }
.split-text > :last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.media-left .split-media { order: -1; }
  .split.wide-text { grid-template-columns: 1.2fr 0.8fr; }
}
.points { list-style: none; display: grid; gap: 1rem; margin: 1.75rem 0 2rem; }
.points li { display: flex; gap: 0.9rem; align-items: flex-start; }
.points .i { width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; color: var(--sky); }
.points strong { color: var(--text); font-weight: 600; }
.checks { list-style: none; display: grid; gap: 0.75rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 1.2rem; height: 1.2rem; background: var(--sky);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checks strong { color: var(--text); font-weight: 600; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose ul:not(.checks), .prose ol { padding-left: 1.25rem; margin-bottom: 1em; }
.prose li { margin-bottom: 0.35em; }
.prose .checks { margin: 1rem 0 1.5rem; }
.prose strong { color: var(--text); }

/* Hinweis-Karte (Doppelrahmen statt Farbbalken) */
.note {
  position: relative; overflow: hidden; padding: 1.75rem; border-radius: var(--r-shell);
  background: linear-gradient(160deg, rgb(76 163 244 / 0.12), var(--bg-card) 55%); border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07);
}
.note strong { color: var(--text); }
.note p:last-child { margin: 0; }
.note .stat-value { display: block; color: var(--text); font: 700 clamp(2.4rem, 2rem + 2vw, 3.6rem)/1 var(--font-display); letter-spacing: -0.04em; }
.fineprint { margin: 1.25rem 0 0; color: var(--text-3); font-size: 0.86rem; }

/* ------------------------------------------------------------------ Spalten, Fakten, Vergleich, Produkte */
.feature-cols { display: grid; gap: 2.5rem 3rem; }
.feature-cols > div { padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.feature-cols .i { width: 44px; height: 44px; padding: 10px; margin-bottom: 1.1rem; border-radius: 14px; background: rgb(76 163 244 / 0.12); color: var(--sky); }
.feature-cols h3 { margin-bottom: 0.5rem; }
.feature-cols p { margin: 0; color: var(--text-3); }
@media (min-width: 768px) { .feature-cols { grid-template-columns: repeat(3, 1fr); } .feature-cols.two { grid-template-columns: repeat(2, 1fr); } }

.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border-radius: var(--r-shell);
  background: var(--line); border: 1px solid var(--line);
}
.facts div { padding: 1.6rem 1.5rem; background: var(--bg-card); }
.facts strong { display: block; color: var(--text); font: 700 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1.1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 0.4rem; color: var(--text-3); font-size: 0.93rem; hyphens: auto; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }

.compare { display: grid; gap: 1.25rem; }
.compare-card {
  display: grid; gap: 1.2rem; align-content: start; padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); border-radius: var(--r-shell);
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card)); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07);
}
.compare-card .compare-img { display: grid; place-items: center; height: 230px; overflow: hidden; border-radius: var(--r-core); background: linear-gradient(180deg, #ffffff 0%, #dfe8ef 100%); }
.compare-card .compare-img img { max-height: 200px; width: auto; filter: drop-shadow(0 18px 22px rgb(10 37 53 / 0.25)); }
.compare-img img.is-photo { max-height: none; width: 100%; height: 100%; object-fit: cover; filter: none; }
.compare-card .tag { margin: 0; color: var(--sky-soft); font: 600 0.88rem/1.35 var(--font-display); }
.compare-card h3 { margin: 0; font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem); }
.compare-card > p { margin: 0; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 1.2rem 0; border-block: 1px solid var(--line); }
.specs strong { display: block; color: var(--text); font: 700 1.4rem/1.1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.specs span { display: block; margin-top: 0.35rem; color: var(--text-3); font-size: 0.85rem; hyphens: auto; overflow-wrap: break-word; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; } }

.products { display: grid; gap: 1.25rem; }
.product {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.25rem; align-items: center; padding: 1.4rem; border-radius: var(--r-shell);
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card)); border: 1px solid var(--line);
}
.product img { width: 96px; height: 120px; object-fit: contain; }
.product img.is-photo { object-fit: cover; border-radius: var(--r-md); }
.product h3 { margin-bottom: 0.3rem; }
.product p { margin: 0; color: var(--text-3); font-size: 0.97rem; }
.product .tag { display: inline-block; margin-bottom: 0.45rem; color: var(--sky-soft); font: 600 0.82rem/1.2 var(--font-display); }
@media (min-width: 900px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .product { grid-template-columns: 1fr; align-items: start; }
  .product img { width: 100%; height: 200px; padding: 1rem; border-radius: var(--r-core); background: radial-gradient(closest-side, rgb(76 163 244 / 0.28), transparent 75%); }
}

/* Weitere Leistungen */
.related { display: grid; gap: 0.75rem; }
.related > * { min-width: 0; }
.related a {
  display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.3rem; border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.04); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  font: 600 1rem/1.3 var(--font-display); transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.related a .i { width: 24px; height: 24px; color: var(--sky); }
.related a .i:last-child { margin-left: auto; width: 18px; height: 18px; color: var(--text-3); transition: transform 300ms var(--ease-out), color 200ms ease; }
.related a:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .related a:hover { background: rgb(255 255 255 / 0.07); border-color: var(--line-strong); } .related a:hover .i:last-child { transform: translateX(4px); color: var(--text); } }
@media (min-width: 1024px) { .related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Großes Bild + Text */
.feature { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
.feature-media img { aspect-ratio: 16 / 11; object-fit: cover; }
.feature-media.is-quadrat img { aspect-ratio: 1; }
.parts { display: grid; gap: 1.25rem 2rem; margin: 1.75rem 0; }
.parts > div { padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.parts h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.parts p { margin: 0; color: var(--text-3); font-size: 0.97rem; }
@media (min-width: 640px) { .parts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .feature { grid-template-columns: 1.05fr 1fr; } .feature.media-right .feature-media { order: 2; } }

.seasons { list-style: none; display: grid; gap: 1px; overflow: hidden; border-radius: var(--r-shell); background: var(--line); border: 1px solid var(--line); }
.seasons li { padding: 1.75rem; background: var(--bg-card); }
.seasons .i { width: 32px; height: 32px; margin-bottom: 1rem; color: var(--sky); }
.seasons h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.seasons p { margin: 0; color: var(--text-3); font-size: 0.97rem; }
@media (min-width: 640px) { .seasons { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .seasons { grid-template-columns: repeat(4, 1fr); } }

.duo { display: grid; gap: 2rem 3rem; }
.duo h3 { margin-bottom: 1rem; }
@media (min-width: 768px) { .duo { grid-template-columns: 1fr 1fr; } }

/* Leistungsübersicht */
.service-index { display: grid; gap: 3rem; }
.service-nav { display: none; }
.service-list { display: grid; }
.service-block { display: grid; gap: 1rem 2rem; padding-block: 3rem; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 40px); }
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block .i.big { width: 56px; height: 56px; padding: 13px; border-radius: 18px; background: rgb(76 163 244 / 0.12); color: var(--sky); }
.service-block h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.4rem); margin-bottom: 0.8rem; }
.service-block .checks { margin: 1.25rem 0 1.5rem; }
@media (min-width: 1024px) {
  .service-index { grid-template-columns: 17rem 1fr; gap: 5rem; }
  .service-nav { display: block; position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; }
  .service-nav ul { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line-strong); }
  .service-nav a { display: block; margin-left: -1px; padding: 0.5rem 0 0.5rem 1.1rem; border-left: 2px solid transparent; color: var(--text-3); text-decoration: none; font: 500 0.95rem/1.3 var(--font-display); transition: color 150ms ease, border-color 150ms ease; }
  .service-nav a:hover { color: var(--text); }
  .service-nav a.is-current { color: var(--text); border-left-color: var(--sky); }
  .service-block { grid-template-columns: 72px 1fr; }
}

/* ------------------------------------------------------------------ Persönlicher Block + Formular */
.personal { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
.personal-note { display: grid; gap: 1.75rem; }
.personal-note img { width: 100%; max-width: 400px; aspect-ratio: 6 / 7; object-fit: cover; padding: 6px; border-radius: var(--r-shell); background: var(--shell); border: 1px solid var(--line); }
.signature { display: flex; flex-direction: column; gap: 0.1rem; }
.signature strong { color: var(--text); font: 600 1.05rem/1.3 var(--font-display); }
.signature span { color: var(--text-3); font-size: 0.95rem; }
.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.6rem); border-radius: var(--r-shell);
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card)); border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 50px 100px -60px rgb(76 163 244 / 0.45);
}
.form-card h2, .form-card h3 { margin-bottom: 0.4rem; }
.form-card > p { color: var(--text-2); }
@media (min-width: 960px) { .personal { grid-template-columns: 0.85fr 1.15fr; } }
.lead-form { margin-top: 1.5rem; }
.form-fields { display: grid; gap: 1.1rem 1.25rem; }
@media (min-width: 640px) { .form-fields { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label:not(.check) { color: var(--text); font: 500 0.92rem/1.3 var(--font-display); }
.opt { color: var(--text-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem; border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.16); color: var(--text);
  font: 400 1rem/1.4 var(--font-body); -webkit-appearance: none; appearance: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.field ::placeholder { color: var(--text-3); }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%2388a1b3'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px; padding-right: 2.75rem;
}
.field select option { background: var(--bg-raise); color: var(--text); }
.field textarea { min-height: 100px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(255 255 255 / 0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); background: rgb(76 163 244 / 0.06); box-shadow: 0 0 0 4px rgb(76 163 244 / 0.2); }
.check { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--text-2); font-size: 0.92rem; line-height: 1.5; cursor: pointer; }
.check input {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; min-height: 0; margin: 0.05rem 0 0; padding: 0;
  border: 1.5px solid rgb(255 255 255 / 0.3); border-radius: 7px; background: rgb(255 255 255 / 0.04);
  -webkit-appearance: none; appearance: none; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease;
}
.check input::after { content: ""; width: 11px; height: 6px; border: solid var(--on-sky); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 180ms var(--ease-out); }
.check input:checked { background: var(--sky); border-color: var(--sky); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:disabled { opacity: 0.55; }
.error-msg { display: none; margin: 0; color: var(--error); font-size: 0.875rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field.has-error .check input { border-color: var(--error); }
.field.has-error .error-msg { display: block; }
/* Falle für Spam-Programme: unsichtbares Feld, das nur Bots ausfüllen */
.hp-feld { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.6rem; }
.form-note { margin: 0; color: var(--text-3); font-size: 0.92rem; }
.btn.is-loading { color: transparent; }
.btn.is-loading .btn-icon { opacity: 0; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--on-sky); border-right-color: transparent; animation: drehen 600ms linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
.send-error { margin: 1rem 0 0; padding: 1rem 1.2rem; border-radius: var(--r-md); background: rgb(255 149 139 / 0.1); border: 1px solid rgb(255 149 139 / 0.3); color: var(--text); font-size: 0.95rem; }
.form-success { display: none; padding-top: 1rem; }
.form-success .i { width: 48px; height: 48px; margin-bottom: 0.75rem; color: var(--success); }
.form-done .form-fields, .form-done .form-submit { display: none; }
.form-done .form-success { display: block; }
@media (prefers-reduced-motion: no-preference) { .form-done .form-success { animation: aufsteigen 600ms var(--ease-expo) both; } }

/* ------------------------------------------------------------------ FAQ */
.faq-grid { display: grid; gap: 2.5rem; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0; cursor: pointer; list-style: none;
  color: var(--text); font: 600 clamp(1.08rem, 1rem + 0.4vw, 1.3rem)/1.35 var(--font-display); letter-spacing: -0.015em;
  transition: color 160ms ease;
}
.faq-item summary span { min-width: 0; hyphens: auto; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .i {
  width: 40px; height: 40px; padding: 11px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text);
  transition: transform 300ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.faq-item[open] summary .i { transform: rotate(45deg); background: var(--sky); border-color: var(--sky); color: var(--on-sky); }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover { color: var(--sky-soft); } }
.faq-a { padding: 0 3.5rem 1.6rem 0; color: var(--text-2); }
.faq-a p { margin: 0; }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 6rem; }
  .faq-intro { position: sticky; top: calc(var(--nav-h) + 56px); align-self: start; }
}
.faq-intro p { color: var(--text-2); }

/* ------------------------------------------------------------------ Karriere-Banner */
.career-banner { position: relative; isolation: isolate; overflow: hidden; color: var(--text); }
.career-banner > picture img, .career-banner > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.career-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(4 16 26 / 0.94) 0%, rgb(4 16 26 / 0.72) 50%, rgb(4 16 26 / 0.35) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%); }
.career-banner-inner { padding-block: clamp(4.5rem, 3rem + 5vw, 8rem); }
.career-banner h2 { max-width: 13ch; }
.career-banner p { max-width: 30rem; margin-bottom: 2rem; color: var(--text-2); font-size: 1.12rem; }

/* ------------------------------------------------------------------ Abschluss: großer Aufruf mit Sonnenbogen */
.closing { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(4.5rem, 3rem + 5vw, 8rem); text-align: center; }
.closing::before {
  content: ""; position: absolute; left: 50%; bottom: -60%; z-index: -1; width: min(1400px, 160vw); aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(76 163 244 / 0.3), rgb(76 163 244 / 0.08) 55%, transparent 70%);
}
.closing::after {
  content: ""; position: absolute; left: 50%; bottom: -46%; z-index: -1; width: min(1000px, 120vw); aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%);
  border: 1.5px solid rgb(76 163 244 / 0.45); box-shadow: 0 0 60px rgb(76 163 244 / 0.25), inset 0 0 60px rgb(76 163 244 / 0.15);
}
.closing-inner { display: grid; gap: 2rem; justify-items: center; }
.closing h2 { max-width: 18ch; margin: 0 auto 1rem; font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4.5rem); }
.closing p { max-width: 42rem; margin: 0 auto; color: var(--text-2); font-size: 1.15rem; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.75rem; }
.closing-phone { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); font: 600 1.12rem/1 var(--font-display); text-decoration: none; }
.closing-phone .i { color: var(--sky); }
.closing-phone:hover { color: var(--sky-soft); }

/* ------------------------------------------------------------------ Über uns */
.team-group { display: grid; gap: 1.75rem; padding-block: 3rem; border-top: 1px solid var(--line); }
.team-group:first-child { border-top: 0; padding-top: 0; }
.team-head h3 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); margin-bottom: 0.4rem; }
.team-head p { margin: 0; max-width: 34rem; color: var(--text-3); }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.25rem; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 1rem; padding: 6px; border-radius: var(--r-shell); background: var(--shell); border: 1px solid var(--line); }
.person h4 { margin-bottom: 0.15rem; font-size: 1.1rem; }
.person .role { margin-bottom: 0.4rem; color: var(--text-3); font-size: 0.93rem; }
.person-mail { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; overflow-wrap: anywhere; }
.person-mail .i { width: 16px; height: 16px; }
@media (min-width: 768px) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .team-group { grid-template-columns: 18rem 1fr; gap: 3rem; } }
/* Karte ohne Foto: Initialen über der halben Logo-Sonne, gleicher Doppelrahmen wie die Fotos */
.person-mono {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; margin-bottom: 1rem; overflow: hidden;
  padding: 6px; border-radius: var(--r-shell); background: var(--shell); border: 1px solid var(--line);
}
.person-mono::before {
  content: ""; position: absolute; inset: 6px; border-radius: calc(var(--r-shell) - 6px);
  background: radial-gradient(110% 80% at 50% 100%, rgb(76 163 244 / 0.24), rgb(76 163 244 / 0) 62%), linear-gradient(165deg, #10304a, #071a28 70%);
}
.person-mono svg { position: absolute; left: 50%; bottom: 6px; width: 76%; transform: translateX(-50%); overflow: visible; }
.person-mono path, .person-mono line { fill: none; stroke: var(--sky); stroke-width: 2.4; stroke-linecap: round; opacity: 0.6; }
.person-mono span { position: relative; transform: translateY(-14%); color: #fff; font: 600 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--font-display); letter-spacing: 0.04em; }
/* Montageteams: kleinere, quadratische Karten, vier je Reihe */
@media (min-width: 768px) { .people.klein { grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1rem; } }
.people.klein .person img, .people.klein .person-mono { aspect-ratio: 1; }
.people.klein .person img { object-position: 50% 22%; }
.people.klein .person h4 { font-size: 1rem; }
.people.klein .person .role { font-size: 0.86rem; }
.people.klein .person-mono span { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.mission { display: grid; gap: 2rem; }
.mission blockquote { margin: 0; color: var(--text); font: 500 clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem)/1.25 var(--font-display); letter-spacing: -0.02em; max-width: 28ch; }
@media (min-width: 1024px) { .mission { grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: start; } }

.companies { display: grid; gap: 1.25rem; }
.company {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 1.9rem; border-radius: var(--r-shell);
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card)); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}
/* Alle drei Firmenlogos haben denselben Aufbau (tools/logos_familie.py) und damit dieselbe Höhe */
.company img { height: 112px; width: auto; max-width: 100%; align-self: flex-start; margin-bottom: 0.5rem; }
.company .tag { margin: 0; color: var(--sky-soft); font: 600 0.86rem/1.35 var(--font-display); }
.company h3 { margin: 0; }
.company p { margin: 0; color: var(--text-3); }
.company a { margin-top: auto; padding-top: 0.5rem; }
.logo-light { display: none !important; }
@media (min-width: 900px) { .companies { grid-template-columns: repeat(3, 1fr); } }
.locations { display: grid; gap: 1.25rem; }
.location {
  padding: 1.9rem; border-radius: var(--r-shell); background: linear-gradient(160deg, rgb(76 163 244 / 0.12), var(--bg-card) 55%);
  border: 1px solid var(--line-strong);
}
.location h3 { margin-bottom: 0.25rem; }
.location .muted { margin-bottom: 1.1rem; }
.location ul { list-style: none; display: grid; gap: 0.6rem; }
.location li { display: flex; align-items: flex-start; gap: 0.6rem; }
.location .i { margin-top: 0.3rem; color: var(--sky); }
@media (min-width: 900px) { .locations { grid-template-columns: 1fr 1fr; } }
.service-contact { display: grid; gap: 1rem; margin-top: 1.5rem; }
.service-contact div { padding: 1rem 1.25rem; border-radius: var(--r-md); background: rgb(255 255 255 / 0.04); border: 1px solid var(--line); }
.service-contact strong { display: block; margin-bottom: 0.25rem; color: var(--text); font: 600 1rem/1.3 var(--font-display); }
.service-contact a { overflow-wrap: anywhere; }
@media (min-width: 1280px) { .service-contact { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ Projekte */
.ref-grid { display: grid; gap: 1.25rem; }
.ref { overflow: hidden; border-radius: var(--r-shell); background: var(--bg-card); border: 1px solid var(--line); }
.ref img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.ref-body { padding: 1.2rem 1.4rem 1.4rem; }
.ref h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.ref h3 span { color: var(--text-3); font: 500 0.85rem/1 var(--font-body); }
.ref dl { margin: 0; display: grid; gap: 0.45rem; }
.ref dl div { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; }
.ref dt .i { width: 18px; height: 18px; color: var(--sky); }
.ref dd { margin: 0; color: var(--text-2); }
@media (min-width: 640px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .ref-grid { grid-template-columns: repeat(3, 1fr); }
  .ref:first-child, .ref:last-child { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
  .ref:first-child img, .ref:last-child img { height: 100%; }
  .ref:first-child .ref-body, .ref:last-child .ref-body { align-self: center; padding: 1.6rem 1.9rem; }
}
.biz { display: grid; gap: 1.25rem; }
.biz-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 360px; border-radius: var(--r-shell); border: 1px solid var(--line); color: var(--text); }
.biz-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-expo); }
.biz-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(4 16 26 / 0) 30%, rgb(4 16 26 / 0.92) 100%); }
@media (hover: hover) and (pointer: fine) { .biz-card:hover img { transform: scale(1.04); } }
.biz-body { padding: 1.6rem; }
.biz-body h3 { margin-bottom: 0.35rem; }
.biz-body p { margin: 0; color: rgb(238 245 250 / 0.82); font-size: 0.97rem; }
@media (min-width: 640px) { .biz { grid-template-columns: 1fr 1fr; } .biz-card:first-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .biz { grid-template-columns: repeat(6, 1fr); } .biz-card { grid-column: span 2; } .biz-card:first-child { grid-column: span 4; } }
.gallery { columns: 2 220px; column-gap: 0.85rem; }
.gallery figure { margin: 0 0 0.85rem; break-inside: avoid; }
.gallery img { width: 100%; border-radius: var(--r-core); border: 1px solid var(--line); }
.gallery figcaption { margin-top: 0.45rem; color: var(--text-3); font-size: 0.875rem; }
@media (min-width: 1024px) { .gallery { columns: 4; } }

/* ------------------------------------------------------------------ Karriere */
.jobs { display: grid; gap: 1rem; }
.jobs > * { min-width: 0; }
.job { border-radius: var(--r-shell); background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card)); border: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 40px); }
.job summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 1.6rem; cursor: pointer; list-style: none; }
.job summary::-webkit-details-marker { display: none; }
.job summary .job-head { flex: 1 1 auto; min-width: 0; }
.job-head { display: flex; flex-direction: column; gap: 0.35rem; }
.job-head .h3, .job-head h3 { margin: 0; }
.job-kurz, .job-head p { margin: 0; color: var(--text-3); font-size: 0.98rem; }
.job-toggle { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); }
.job-toggle .i { width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
.job[open] .job-toggle .i { transform: rotate(180deg); }
.job-body { display: grid; gap: 1.5rem 3rem; padding: 0 1.6rem 1.6rem; }
.job-body h4 { margin-bottom: 0.8rem; }
.job-cta { margin: 0; }
.job::details-content { block-size: 0; overflow: hidden; transition: block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete; }
.job[open]::details-content { block-size: auto; }
.job-sister { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem 1.6rem; background: rgb(255 255 255 / 0.03); }
@media (min-width: 900px) { .job-body { grid-template-columns: 1fr 1fr; } .job-cta { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ Kontakt */
.contact-grid { display: grid; gap: 3rem; }
.contact-list { list-style: none; display: grid; gap: 1.3rem; margin: 1.5rem 0 2rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-list .i { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: rgb(76 163 244 / 0.12); color: var(--sky); }
.contact-list strong { display: block; margin-bottom: 0.15rem; color: var(--text); font: 600 1rem/1.3 var(--font-display); }
.contact-list a { font-size: 1.05rem; }
.map-box { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r-shell); background: var(--bg-card); border: 1px solid var(--line); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(180deg) saturate(0.6); }
.map-consent { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; text-align: center; }
.map-consent > div { max-width: 26rem; }
.map-consent .i { width: 36px; height: 36px; margin: 0 auto 0.75rem; color: var(--sky); }
.map-consent p { color: var(--text-3); font-size: 0.92rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; } }

/* ------------------------------------------------------------------ Wärmepumpe */
.system { display: grid; gap: 2.5rem; align-items: center; }
.system-graphic { width: 100%; max-width: 680px; margin: 0 auto; color: var(--text); }
.system-graphic .flow { stroke-dasharray: 6 10; }
@media (prefers-reduced-motion: no-preference) {
  .system-graphic .flow { animation: fluss 1.6s linear infinite; }
  .system-graphic:not(.is-visible) .flow { animation-play-state: paused; }
}
@keyframes fluss { to { stroke-dashoffset: -32; } }
@media (min-width: 1024px) { .system { grid-template-columns: 1fr 1.1fr; gap: 5rem; } }
.sister {
  display: grid; gap: 2rem; align-items: center; padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); border-radius: var(--r-shell);
  background: linear-gradient(160deg, rgb(228 71 59 / 0.08), var(--bg-card) 45%); border: 1px solid var(--line);
}
.sister img.sister-logo { width: 230px; height: auto; }
.logo-dark { display: block; }
@media (min-width: 900px) { .sister { grid-template-columns: 260px 1fr; gap: 3.5rem; } }
.process-img { width: 100%; margin-top: 2rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-core); border: 1px solid var(--line); }

/* ------------------------------------------------------------------ Rechtstexte */
.legal { padding-block: clamp(3rem, 2rem + 3vw, 5.5rem); }
.legal .prose h2 { font-size: 1.45rem; }
.legal .prose h3 { font-size: 1.12rem; }
.legal .prose p, .legal .prose li { font-size: 1rem; }
.todo { padding: 0 0.3em; border-radius: 4px; background: #5c4a00; color: #fff3c4; }

/* ------------------------------------------------------------------ Footer */
.site-footer { position: relative; overflow: hidden; padding-top: clamp(4rem, 3rem + 4vw, 6.5rem); background: var(--bg-deep); color: var(--text-3); font-size: 0.97rem; border-top: 1px solid var(--line); }
.footer-grid { position: relative; display: grid; gap: 2.75rem; padding-bottom: 3rem; }
.footer-brand img { width: 180px; height: auto; margin-bottom: 1.3rem; }
.footer-brand p { max-width: 23rem; margin: 0; }
.site-footer h2 { margin-bottom: 1.1rem; color: var(--text); font: 600 0.95rem/1.2 var(--font-display); letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: 0.6rem; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-contact { margin-top: 1rem; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: flex-start; gap: 0.55rem; }
.footer-contact .i { margin-top: 0.25rem; color: var(--sky); }
.footer-wordmark {
  position: relative; margin: 0; padding: 0 var(--gutter); text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  color: transparent; -webkit-text-stroke: 1px rgb(140 200 251 / 0.18);
  /* „SONNENKRAFT“ ist in Montserrat ExtraBold etwa 7,4 Geviert breit: so füllt das Wort die Breite, ohne überzustehen */
  font: 800 min(11rem, calc((100vw - 2 * var(--gutter)) / 7.6))/0.82 var(--font-display); letter-spacing: -0.04em;
  overflow: hidden; padding-block: 0.04em 0.06em;
}
.footer-wordmark .wd { display: inline-block; white-space: nowrap; }
.footer-wordmark .ch { display: inline-block; }
.footer-legal { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.6rem calc(1.6rem + 84px); border-top: 1px solid var(--line); font-size: 0.9rem; }
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-legal .link-button { color: var(--text-2); text-decoration: none; font-size: 0.9rem; }
.footer-legal .link-button:hover { color: var(--text); text-decoration: underline; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr 1.1fr 1fr 0.9fr 1fr; } .footer-brand { grid-column: auto; } .footer-legal { padding-bottom: 1.6rem; } }

/* ------------------------------------------------------------------ Schnellleiste (Handy) */
.mobile-bar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 6px; padding: 6px; border-radius: var(--r-pill);
  background: rgb(6 23 35 / 0.72); border: 1px solid rgb(255 255 255 / 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.8);
  transform: translateY(160%); transition: transform 400ms var(--ease-drawer);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 48px; border-radius: var(--r-pill); font: 600 0.96rem/1 var(--font-display); text-decoration: none; transition: transform 160ms var(--ease-out); }
.mobile-bar a:active { transform: scale(0.97); }
.mobile-bar-call { color: var(--text); background: rgb(255 255 255 / 0.06); }
.mobile-bar-ask { background: var(--sky); color: var(--on-sky); }
@media (min-width: 1240px) { .mobile-bar { display: none; } }
.nav-open .mobile-bar { transform: translateY(160%); }

/* ------------------------------------------------------------------ Cookie */
.cookie { position: fixed; inset: auto 0 0; z-index: 70; padding: 12px; pointer-events: none; }
.cookie-box {
  pointer-events: auto; max-width: 44rem; margin-inline: auto; padding: 1.6rem; border-radius: 26px;
  background: rgb(6 23 35 / 0.9); border: 1px solid rgb(255 255 255 / 0.1);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.cookie-box h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.cookie-box p { font-size: 0.92rem; }
.cookie-options { display: grid; gap: 0.75rem; margin: 1rem 0; }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
@media (min-width: 900px) { .cookie { padding: 1.25rem; } .cookie-box { max-width: 31rem; margin-right: 0; } }
@media (prefers-reduced-motion: no-preference) { .cookie:not([hidden]) .cookie-box { animation: aufsteigen 600ms var(--ease-expo) both; } }

/* ------------------------------------------------------------------ Einblenden (nur wenn motion.js bereit ist) */
.motion-ready .reveal { opacity: 0; transform: translateY(32px); filter: blur(8px); }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; filter: none; transition: opacity 900ms ease, transform 1100ms var(--ease-expo), filter 900ms ease; transition-delay: var(--d, 0s); }
.motion-ready .clip-reveal { clip-path: inset(100% 0 0 0 round var(--r-core)); }
.motion-ready .clip-reveal.is-visible { clip-path: inset(0 0 0 0 round var(--r-core)); transition: clip-path 1400ms var(--ease-expo) var(--d, 0s); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; }
.motion-ready .split-ready .wi { transform: translateY(105%); }
.motion-ready .split-ready.is-visible .wi { transform: none; transition: transform 1000ms var(--ease-expo); transition-delay: calc(var(--k, 0) * 38ms); }

/* ------------------------------------------------------------------ Schmale Bildschirme */
.page-hero-grid > *, .split > *, .feature > *, .compare > *, .faq-grid > *, .contact-grid > *, .process-grid > *, .sister > *, .products > *, .companies > *, .locations > *,
.personal > *, .reasons-wrap > *, .system > *, .mission > *, .service-index > *, .closing-inner > *, .services-grid > *, .dayflow-grid > * { min-width: 0; }
@media (max-width: 640px) { h1, h2, h3, .h2 { hyphens: manual; overflow-wrap: anywhere; } }
@media (max-width: 360px) { .hero-title { font-size: 1.9rem; } }
@media (max-width: 419px) { .facts { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .sister { padding: 1.4rem 1.25rem; } .job-sister { padding: 1.25rem 1rem; } }
@media (max-width: 380px) {
  h1, .page-hero h1 { font-size: 1.85rem; }
  .job summary { padding: 1.2rem 1rem; gap: 1rem; }
  .job-body { padding: 0 1rem 1.25rem; }
}

/* ------------------------------------------------------------------ Scroll-Geschichte (Startseite): „Der Weg des Sonnenstroms“
   Ruhige Fassung (ohne JavaScript, „Bewegung reduzieren“, Datensparmodus): Kapitel untereinander, je Standbild und Text.
   Film (geschichte.js setzt .ist-film): die Bühne bleibt per sticky stehen, die Kapitel liegen als Text übereinander.
   picture ist global display: contents, darum wird das img selbst gesetzt. */
.story { position: relative; padding-top: clamp(4rem, 3rem + 4vw, 7rem); }
.story-bild, .story-schleier, .story-weiter { display: none; }
.story-kapitel { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--container); display: grid; gap: clamp(1rem, 0.75rem + 1vw, 1.5rem); }
.sk {
  position: relative; isolation: isolate; display: grid; align-content: end; min-height: clamp(24rem, 64svh, 44rem); overflow: hidden;
  border-radius: var(--r-shell); background: var(--bg-card); border: 1px solid var(--line);
}
.sk-bild img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.sk::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(4 14 22 / 0) 30%, rgb(4 14 22 / 0.9) 100%); }
.sk-text { padding: clamp(1.4rem, 1rem + 2vw, 2.75rem); max-width: 48rem; }
.sk-text + .sk-text { padding-top: 0; }
.sk-satz { margin: 0; color: #fff; font: 600 clamp(1.7rem, 1.25rem + 1.9vw, 2.9rem)/1.08 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.sk-klein { margin: 0.75rem 0 0; color: rgb(255 255 255 / 0.82); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); line-height: 1.55; max-width: 38ch; text-wrap: pretty; }
.sk-aktionen { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Film: Bühne eine Bildschirmhöhe (lvh, damit die Handy-Adressleiste nichts neu vermessen lässt), Scrollweg aus den Kapitellängen */
.story.ist-film { height: calc((var(--story-laenge, 9) + 1) * 100svh); padding: 0; }
.story.ist-film .story-buehne { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; isolation: isolate; background: #03090e; }
.story.ist-film .story-bild { display: block; position: absolute; inset: 0; z-index: 0; }
.story-standbild img, .story-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.story-standbild img { object-fit: cover; transition: opacity 600ms ease; }
.story.film-bereit .story-standbild img { opacity: 0; }
/* Lesbarkeit: Ränder immer leicht abgedunkelt, die Mitte nur, solange ein Satz steht (--schleier setzt geschichte.js) */
.story.ist-film .story-schleier {
  display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgb(6 23 35 / 0.55) 0%, rgb(6 23 35 / 0) 17%, rgb(6 23 35 / 0) 76%, rgb(6 23 35 / 0.75) 100%);
}
.story-schleier::before {
  content: ""; position: absolute; inset: 0; opacity: var(--schleier, 0);
  background: radial-gradient(80% 62% at 50% 50%, rgb(2 8 13 / 0.7) 0%, rgb(2 8 13 / 0.3) 55%, rgb(2 8 13 / 0) 100%);
}
.story.ist-film .story-kapitel { position: absolute; inset: 0; z-index: 2; display: grid; max-width: none; margin: 0; padding: 0; gap: 0; pointer-events: none; }
.story.ist-film .sk { grid-area: 1 / 1; place-items: center; align-content: center; min-height: 0; overflow: visible; border: 0; border-radius: 0; background: none; }
.story.ist-film .sk::after, .story.ist-film .sk-bild { display: none; }
.story.ist-film .sk-text { grid-area: 1 / 1; width: 100%; max-width: 72rem; padding: calc(var(--nav-h) + 1rem) var(--gutter) 6rem; text-align: center; }
/* Text oben (Himmel) oder unten (Boden), damit Haus und Geräte frei bleiben; der Schleier wandert mit */
.story.ist-film .sk[data-lage="oben"] { align-content: start; }
.story.ist-film .sk[data-lage="oben"] .sk-text { padding-top: calc(var(--nav-h) + clamp(1rem, 5svh, 3rem)); }
.story.ist-film .sk[data-lage="unten"] { align-content: end; }
.story.ist-film .sk[data-lage="unten"] .sk-text { padding-bottom: clamp(4.5rem, 12svh, 7.5rem); }
.story[data-lage="oben"] .story-schleier::before { background: radial-gradient(90% 55% at 50% 18%, rgb(2 8 13 / 0.72) 0%, rgb(2 8 13 / 0.3) 55%, rgb(2 8 13 / 0) 100%); }
.story[data-lage="unten"] .story-schleier::before { background: radial-gradient(90% 55% at 50% 84%, rgb(2 8 13 / 0.72) 0%, rgb(2 8 13 / 0.3) 55%, rgb(2 8 13 / 0) 100%); }
.story.ist-film .sk-satz { font-size: clamp(2.1rem, 1rem + 3.4vw, 4.4rem); line-height: 1.03; letter-spacing: -0.03em; text-shadow: 0 2px 40px rgb(0 0 0 / 0.42); }
.story.ist-film .sk-klein { margin: 1.1rem auto 0; max-width: 34ch; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.4rem); text-shadow: 0 1px 24px rgb(0 0 0 / 0.55); }
.story.ist-film .sk-aktionen { justify-content: center; margin-top: 2rem; pointer-events: auto; }
/* Ein- und Ausblenden: --e (0 bis 1) steigt beim Einblenden, --x beim Ausblenden; große Sätze steigen Wort für Wort auf */
.story.ist-film [data-zeit] { opacity: calc(1 - var(--x, 0)); transform: translateY(calc(var(--x, 0) * -0.8rem)); filter: blur(calc(var(--x, 0) * 6px)); }
.story.ist-film .w {
  --w: clamp(0, (var(--e, 0) * (var(--n, 6) + 3) - var(--i, 0)) / 3, 1);
  display: inline-block; opacity: var(--w); transform: translateY(calc((1 - var(--w)) * 0.5em)); filter: blur(calc((1 - var(--w)) * 12px));
}
.story.ist-film .sk-klein {
  --k: clamp(0, (var(--e, 0) - 0.3) / 0.7, 1);
  opacity: calc(var(--k) * (1 - var(--x, 0))); transform: translateY(calc((1 - var(--k)) * 1rem - var(--x, 0) * 0.8rem));
  filter: blur(calc((1 - var(--k)) * 8px + var(--x, 0) * 6px));
}
.story.ist-film .sk-aktionen { --k: clamp(0, (var(--e, 0) - 0.55) / 0.45, 1); opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 1.2rem)); }
.story.ist-film .ist-weg { visibility: hidden; }
/* Logo-Moment: ein Lichtstrahl fährt schräg durchs Bild und durch das Sonnenkraft-Logo, das dabei aufleuchtet.
   --d (0 bis 1) ist der Verlauf über die ganze Standzeit, gesetzt von geschichte.js. Ohne Film kein Logo im Kapitel. */
.sk-marke { display: none; }
.story.ist-film .sk-marke { position: relative; display: grid; place-items: center; overflow: visible; }
.story.ist-film .sk-marke[data-zeit] { opacity: 1; transform: none; filter: none; }
.story.ist-film .sk-logo {
  --k: clamp(0, var(--e, 0) * 1.4, 1);
  width: clamp(190px, 24vw, 340px); height: auto;
  opacity: calc(var(--k) * (1 - var(--x, 0)));
  transform: scale(calc(0.9 + 0.1 * var(--k) + 0.4 * var(--x, 0)));
  filter: blur(calc((1 - var(--k)) * 12px + var(--x, 0) * 16px)) drop-shadow(0 0 26px rgb(255 205 120 / 0.5));
}
/* Lichtkante, die nur über die Flächen des Logos läuft: das Logo selbst ist die Maske */
.story.ist-film .sk-marke::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: clamp(190px, 24vw, 340px); aspect-ratio: 480 / 458; pointer-events: none;
  --licht: calc(var(--d, 0) * 200% - 50%);
  background: linear-gradient(100deg, transparent calc(var(--licht) - 16%), rgb(255 246 226) var(--licht), transparent calc(var(--licht) + 16%));
  -webkit-mask: url(/assets/img/logo-claim-weiss.png) center / contain no-repeat; mask: url(/assets/img/logo-claim-weiss.png) center / contain no-repeat;
  opacity: calc(min(1, var(--e, 0) * 1.4) * (1 - var(--x, 0)));
  transform: translate(-50%, -50%) scale(calc(0.9 + 0.1 * min(1, var(--e, 0) * 1.4) + 0.4 * var(--x, 0)));
  mix-blend-mode: screen;
}
/* der Sonnenstrahl: kommt von links oben, geht durchs Logo und weiter aufs Haus */
.story.ist-film .sk-marke::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 48vmax; height: 4px; margin: -2px 0 0 -24vmax; border-radius: 4px; pointer-events: none;
  background: linear-gradient(90deg, rgb(255 210 130 / 0), rgb(255 228 180 / 0.85) 70%, #fff 96%, rgb(255 255 255 / 0));
  filter: drop-shadow(0 0 10px rgb(255 196 100 / 0.95)) drop-shadow(0 0 28px rgb(255 170 60 / 0.6));
  opacity: calc(min(1, var(--e, 0) * 3) * (1 - var(--x, 0)));
  transform: rotate(32deg) translateX(calc((var(--d, 0) - 0.5) * 230vmax));
  mix-blend-mode: screen;
}
/* Anzeigen: Scroll-Hinweis, Kapitelmarken, Überspringen */
.story-hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.story-tipp {
  position: absolute; left: 50%; bottom: clamp(1.25rem, 4svh, 2.25rem); display: flex; flex-direction: column; align-items: center; gap: 0.65rem; margin: 0;
  color: rgb(255 255 255 / 0.72); font: 600 0.85rem/1 var(--font-display); transform: translateX(-50%); transition: opacity 500ms ease, transform 600ms var(--ease-out);
}
.story-tipp span { position: relative; order: 2; width: 1px; height: 2.6rem; overflow: hidden; background: rgb(255 255 255 / 0.2); }
.story-tipp span::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: #fff; animation: tipp-lauf 1.8s var(--ease-out) infinite; }
@keyframes tipp-lauf { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.story-tipp.ist-weg { opacity: 0; transform: translate(-50%, 10px); }
.story-marken { position: absolute; top: 50%; right: max(0.9rem, calc((100% - var(--container)) / 2)); display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; transform: translateY(-50%); }
.story-marken i { display: block; width: 2px; height: 1.5rem; border-radius: 2px; background: rgb(255 255 255 / 0.2); transition: background-color 400ms ease, height 500ms var(--ease-out); }
.story-marken i.ist-an { background: rgb(255 255 255 / 0.55); }
.story-marken i.ist-jetzt { height: 2.6rem; background: var(--sky); }
@media (max-width: 600px) { .story-marken { gap: 0.4rem; } .story-marken i { height: 1.05rem; } .story-marken i.ist-jetzt { height: 1.8rem; } }
.story.ist-film .story-weiter {
  position: absolute; z-index: 4; right: var(--gutter); bottom: clamp(1rem, 3svh, 1.75rem); display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem;
  border-radius: var(--r-pill); border: 1px solid rgb(255 255 255 / 0.14); background: rgb(6 23 35 / 0.55); color: rgb(255 255 255 / 0.86);
  font: 600 0.82rem/1 var(--font-display); text-decoration: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: opacity 400ms ease, background-color 200ms ease;
}
.story.ist-film .story-weiter.ist-weg:not(:focus-visible) { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .story.ist-film .story-weiter:hover { background: rgb(6 23 35 / 0.82); } }
.film-im-bild .mobile-bar { transform: translateY(160%); opacity: 0; visibility: hidden; }

/* Nach der Geschichte: alle Leistungen als Links */
.leistungen-kurz .services-head { margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); }
.leistungen-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.leistungen-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.leistungen-links li a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.95rem; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: rgb(255 255 255 / 0.03); color: var(--text-2); text-decoration: none; font: 500 0.88rem/1 var(--font-display);
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
}
.leistungen-links li a:hover { color: var(--text); border-color: var(--line-strong); background: rgb(255 255 255 / 0.07); }

/* ------------------------------------------------------------------ Modul-Partner: stilisiertes Glas-Glas-Modul mit Lichtwelle, darin das Logo */
.pm-modul {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-core); background: linear-gradient(160deg, #0d2333, #050f17); border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 30px 60px -40px rgb(0 0 0 / 0.9);
}
.pm-zellen { position: absolute; inset: 12px; display: grid; grid-template-columns: repeat(var(--sp, 10), 1fr); gap: 4px; }
.pm-zellen i { --l: 0; position: relative; border-radius: 3px; background: linear-gradient(160deg, #102b40, #0a1d2b); box-shadow: inset 0 0 0 1px rgb(140 200 251 / 0.08); }
.pm-zellen i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgb(140 200 251 / 0.95), rgb(76 163 244 / 0.4)); opacity: var(--l); }
.pm-modul::after { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, rgb(4 16 26 / 0.9) 30%, rgb(4 16 26 / 0) 100%); pointer-events: none; }
.pm-logo { position: relative; z-index: 1; width: auto; filter: brightness(0) invert(1) drop-shadow(0 0 22px rgb(76 163 244 / 0.55)); }
.pm-logo[src*="aiko"] { height: clamp(32px, 2.8vw, 46px); }
.pm-logo[src*="ibc"] { height: clamp(70px, 6.4vw, 104px); }

/* ------------------------------------------------------------------ Energiefluss (Beispielgrafik wie in der App) */
.ef {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 1rem 1.1rem 0.85rem;
  border-radius: var(--r-core); overflow: hidden; color: var(--text);
  background: radial-gradient(90% 60% at 50% 0%, rgb(76 163 244 / 0.24), transparent 70%), linear-gradient(180deg, #0c2c44 0%, #071a28 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.ef-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font: 600 0.95rem/1 var(--font-display); }
.ef-live { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.32rem 0.7rem; border-radius: var(--r-pill); background: rgb(116 216 171 / 0.12); color: var(--success); font-size: 0.78rem; }
.ef-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: puls 1.8s var(--ease-out) infinite; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgb(116 216 171 / 0.6); } 100% { box-shadow: 0 0 0 9px rgb(116 216 171 / 0); } }
.ef-svg { flex: 1; width: 100%; min-height: 0; margin: 0.35rem 0; overflow: visible; }
.ef-bahn { fill: none; stroke: rgb(255 255 255 / 0.1); stroke-width: 4; stroke-linecap: round; }
.ef-strom { fill: none; stroke: var(--sky); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 4 14; animation: stromfluss 900ms linear infinite; filter: drop-shadow(0 0 5px rgb(76 163 244 / 0.85)); }
.ef-knoten { color: var(--text); }
.ef-knoten circle { fill: #0a2535; stroke: rgb(140 200 251 / 0.35); stroke-width: 1.5; }
.ef-sonne circle { fill: rgb(76 163 244 / 0.16); stroke: var(--sky); }
.ef-haus { color: var(--on-sky); }
.ef-haus circle { fill: var(--sky); stroke: none; filter: drop-shadow(0 0 14px rgb(76 163 244 / 0.6)); }
.ef-wert { fill: var(--text); font: 700 18px var(--font-display); font-variant-numeric: tabular-nums; }
.ef-name { fill: var(--text-3); font: 500 12.5px var(--font-body); }
.ef-fuss { margin: 0; color: var(--text-3); font-size: 0.72rem; text-align: right; }
.page-hero-media.is-widget { position: relative; padding: 6px; border-radius: var(--r-shell); background: var(--shell); border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgb(0 0 0 / 0.9); }
.page-hero-media.is-widget .ef { aspect-ratio: 1 / 0.96; }
.feature-media.is-widget .ef { aspect-ratio: 16 / 13; }
@media (prefers-reduced-motion: no-preference) { .js .page-hero-media.is-widget { animation: aufsteigen 1100ms var(--ease-expo) 150ms both; } }
.svc-thumb.is-svg { padding: 9px; background: radial-gradient(closest-side, rgb(76 163 244 / 0.28), rgb(255 255 255 / 0.04)); }
.svc-thumb.is-svg circle { fill: #0a2535; stroke: var(--sky-soft); stroke-width: 2; }
.svc-thumb.is-svg .mini-mitte { fill: var(--sky); stroke: none; }
.mini-bahn { fill: none; stroke: var(--sky); stroke-width: 2.5; stroke-linecap: round; }

/* ------------------------------------------------------------------ Lichtkegel auf Karten (folgt dem Mauszeiger) */
@property --spot { syntax: "<number>"; inherits: false; initial-value: 0; }
.spot {
  background-image:
    radial-gradient(520px circle at var(--sx, 50%) var(--sy, 50%), rgb(76 163 244 / calc(var(--spot) * 0.16)), transparent 60%),
    var(--karte, linear-gradient(180deg, var(--bg-card-2), var(--bg-card)));
  transition: --spot 500ms ease, border-color 300ms ease;
}
.note.spot, .location.spot { --karte: linear-gradient(160deg, rgb(76 163 244 / 0.12), var(--bg-card) 55%); }
.ref.spot { --karte: linear-gradient(var(--bg-card), var(--bg-card)); }
@media (hover: hover) and (pointer: fine) { .spot:hover { --spot: 1; border-color: var(--line-strong); } }

/* ------------------------------------------------------------------ Zählwerk der Kennzahlen (Ziffern rollen) */
.odo { display: inline-flex; }
/* inline-flex statt inline-block: so bleibt die Grundlinie die der ersten Ziffer, trotz overflow: hidden */
.odo-spalte { display: inline-flex; flex-direction: column; height: 1em; overflow: hidden; }
.odo-band { display: flex; flex-direction: column; }
.odo-band span { display: block; height: 1em; line-height: 1; }

/* ------------------------------------------------------------------ Projekte: Fortschritt der Querfahrt */
.hgallery-bar { display: none; }
.hgallery.is-pinned .hgallery-bar { display: block; width: min(360px, 40vw); height: 2px; margin: 2.25rem var(--gutter) 0 auto; overflow: hidden; border-radius: 2px; background: var(--line-strong); }
.hgallery-bar span { display: block; height: 100%; background: var(--sky); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

/* ------------------------------------------------------------------ Bilder bewegen sich in ihrem Rahmen (motion.js legt .pframe an) */
.pframe { display: block; overflow: hidden; border-radius: var(--r-core); }

/* ------------------------------------------------------------------ Footer wird wie unter einer Karte aufgedeckt (nur große Bildschirme) */
@media (min-width: 1100px) and (min-height: 760px) {
  main { position: relative; z-index: 1; overflow: clip; background: var(--bg); border-radius: 0 0 48px 48px; box-shadow: 0 60px 120px -40px rgb(0 0 0 / 0.9); }
  .site-footer { position: sticky; bottom: 0; z-index: 0; }
}

/* ------------------------------------------------------------------ Seitenwechsel: weiche Überblendung (Chrome, Edge, Safari) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .header-inner { view-transition-name: kopfzeile; }
  ::view-transition-old(root) { animation: 280ms var(--ease-in-out) both seite-raus; }
  ::view-transition-new(root) { animation: 620ms var(--ease-expo) both seite-rein; }
}
@keyframes seite-raus { to { opacity: 0; transform: scale(0.985); } }
@keyframes seite-rein { from { opacity: 0; transform: translateY(24px); } }

/* ------------------------------------------------------------------ Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 2rem; }
  .marquee-track + .marquee-track { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; justify-content: center; }
  .df-flow.on { animation: none; stroke-dasharray: none; }
  .ef-strom { animation: none; stroke-dasharray: none; }
  .ef-live::before { animation: none; }
  .services-preview .pv.is-active { transition: none; }
  .btn::before { display: none; }
  .steps::after { transform: none; }
  .faq-item::details-content, .job::details-content { transition: none; }
  .mobile-bar, .main-nav, .menu > li, .nav-extra { transition: opacity 200ms ease, visibility 0s !important; transform: none !important; }
}

/* ------------------------------------------------------------------ Ein Tag mit Ihrer Anlage, ohne Scrollen (motion.js setzt .laeuft)
   Die Grafik läuft von selbst durch den Tag, die aktive Tageszeit ist hervorgehoben, jede Tageszeit ist antippbar. */
.dayflow.laeuft .dayflow-steps li { position: relative; cursor: pointer; padding-left: 1rem; opacity: 0.42; transition: opacity 400ms ease; -webkit-tap-highlight-color: transparent; }
.dayflow.laeuft .dayflow-steps li::before { content: ""; position: absolute; left: 0; top: 0.2rem; bottom: 0.2rem; width: 3px; border-radius: 3px; background: var(--sky); transform: scaleY(0); transform-origin: top; transition: transform 500ms var(--ease-expo); }
.dayflow.laeuft .dayflow-steps li:hover { opacity: 0.75; }
.dayflow.laeuft .dayflow-steps li.is-active { opacity: 1; }
.dayflow.laeuft .dayflow-steps li.is-active::before { transform: scaleY(1); }
.dayflow.laeuft .dayflow-steps li:focus-visible { outline: 2px solid var(--sky); outline-offset: 6px; border-radius: 8px; }
.dayflow.laeuft .dayflow-progress { display: flex; }
@media (max-width: 1023px) {
  .dayflow.laeuft .dayflow-text { display: contents; }
  .dayflow.laeuft .dayflow-text h2 { order: -2; margin-bottom: 0; }
  .dayflow.laeuft .dayflow-figure { order: -1; }
  .dayflow.laeuft .dayflow-steps { gap: 1rem; }
  .dayflow.laeuft .dayflow-steps h3 { font-size: 1.2rem; }
  .dayflow.laeuft .dayflow-steps p { font-size: 0.98rem; }
}

/* ------------------------------------------------------------------ Landingpage für Google-Anzeigen (layout_landing, Klasse .lp)
   Ein Ziel: die Anfrage. Kein Hauptmenü, Formular im ersten Bildschirm, danach nur Belege (Paket, Ablauf, Anlagen, Stimmen). */
.lp-kopf { position: absolute; inset: 0 0 auto; z-index: 20; padding-block: 1rem; }
.lp-kopf-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lp-kopf .brand img { height: 36px; }
.lp-kopf-bewertung { display: none; align-items: center; gap: 0.45rem; margin: 0 auto 0 1.5rem; color: var(--text-2); font-size: 0.92rem; }
.lp-kopf-bewertung strong { color: var(--text); }
.lp-stern { color: var(--star); display: inline-flex; }
.lp-kopf-tel span { display: none; }
@media (min-width: 720px) { .lp-kopf-bewertung { display: inline-flex; } .lp-kopf-tel span { display: inline; } }

.lp-hero { padding-top: calc(var(--nav-h) + 2.5rem); }
.lp-hero::before { display: none; }
.lp-hero-bild { position: absolute; inset: 0; z-index: -2; }
.lp-hero-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; filter: saturate(0.85) brightness(0.8); }
.lp-hero-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(6 23 35 / 0.8) 0%, rgb(6 23 35 / 0.86) 45%, var(--bg) 100%); }
.lp-hero-grid { display: grid; gap: 2rem; align-items: start; }
.lp-hero h1 { max-width: 18ch; font-size: clamp(2rem, 1rem + 3vw, 3.6rem); }
.lp-hero .lead { margin: 1rem 0 1.5rem; }
.lp-vorteile { margin-bottom: 1.5rem; }
.lp-vorteile li { color: var(--text-2); }
.lp-hero-bewertung { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; color: var(--text-2); font-size: 0.95rem; }
.lp-hero-bewertung strong { color: var(--text); }
.lp-form { position: relative; }
.lp-form .form-fields { grid-template-columns: 1fr 1fr; }
.lp-form .field-wide { grid-column: 1 / -1; }
@media (max-width: 480px) { .lp-form .form-fields { grid-template-columns: 1fr; } }
@media (min-width: 1024px) {
  .lp-hero { padding-top: calc(var(--nav-h) + 4rem); }
  .lp-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
  .lp-hero-bild::after { background: linear-gradient(90deg, rgb(6 23 35 / 0.92) 0%, rgb(6 23 35 / 0.78) 50%, rgb(6 23 35 / 0.6) 100%), linear-gradient(180deg, transparent 70%, var(--bg) 100%); }
}

.lp-zahlen { border-block: 1px solid var(--line); }
.lp-zahlen-liste { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); margin-block: 0; }
.lp-zahlen-liste li { padding: 1.5rem 0.5rem; text-align: center; }
.lp-zahlen-liste strong { display: block; font: 700 clamp(1.4rem, 1rem + 1.6vw, 2.3rem)/1.1 var(--font-display); color: var(--text); }
.lp-zahlen-liste small { color: var(--star); font-size: 0.7em; }
.lp-zahlen-liste span { display: block; margin-top: 0.35rem; color: var(--text-3); font-size: 0.88rem; }
@media (min-width: 900px) { .lp-zahlen-liste { grid-template-columns: repeat(4, 1fr); } }

.lp-paket { display: grid; gap: 1rem; }
.lp-teil { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: center; padding: 0.75rem; border-radius: var(--r-core); background: var(--bg-card); border: 1px solid var(--line); }
.lp-teil img { width: 110px; height: 110px; object-fit: cover; border-radius: var(--r-md); background: #fff; }
.lp-teil img[src$=".png"] { object-fit: contain; padding: 0.5rem; }
.lp-teil h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.lp-teil p { color: var(--text-2); font-size: 0.95rem; margin: 0; }
@media (min-width: 900px) { .lp-paket { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

.lp-schritte { list-style: none; display: grid; gap: 1rem; margin: 0; padding: 0; counter-reset: lp; }
.lp-schritte li { position: relative; padding: 1.5rem 1.25rem 1.25rem 4rem; border-radius: var(--r-core); background: var(--bg-card); border: 1px solid var(--line); counter-increment: lp; }
.lp-schritte li::before { content: counter(lp); position: absolute; left: 1.25rem; top: 1.4rem; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--on-sky); font: 700 0.95rem var(--font-display); }
.lp-schritte h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.lp-schritte p { color: var(--text-2); margin: 0; }
@media (min-width: 900px) { .lp-schritte { grid-template-columns: repeat(4, 1fr); } .lp-schritte li { padding: 4.25rem 1.25rem 1.5rem; } .lp-schritte li::before { top: 1.25rem; } }

.lp-galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.lp-galerie figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md); }
.lp-galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lp-galerie figcaption { position: absolute; left: 0.6rem; bottom: 0.6rem; padding: 0.25rem 0.65rem; border-radius: var(--r-pill); background: rgb(4 16 26 / 0.75); color: var(--text); font-size: 0.82rem; }
@media (min-width: 900px) { .lp-galerie { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }

.lp-schluss-inner { text-align: center; display: grid; justify-items: center; gap: 1rem; }
.lp-schluss-inner p { color: var(--text-2); max-width: 46ch; }
.lp-schluss-aktionen { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; }

.lp-fuss { border-top: 1px solid var(--line); padding-block: 2rem calc(2rem + 64px); color: var(--text-3); font-size: 0.88rem; }
.lp-fuss-inner { display: grid; gap: 0.75rem; }
.lp-fuss ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; }
.lp-fuss a, .lp-fuss .link-button { color: var(--text-2); }
@media (min-width: 900px) { .lp-fuss { padding-bottom: 2rem; } .lp-fuss-inner { grid-template-columns: 1fr auto; align-items: center; } }
/* Am Handy steht das Formular direkt unter Überschrift und Bewertung, die Vorteile rutschen darunter */
@media (max-width: 1023px) {
  .lp-hero-grid { gap: 1.25rem; }
  .lp-hero-text { display: contents; }
  .lp-hero h1 { order: 1; }
  .lp-hero .lead { order: 2; margin: 0; }
  .lp-hero-bewertung { order: 3; }
  .lp-form { order: 4; }
  .lp-vorteile { order: 5; margin: 0.5rem 0 0; }
}

/* ------------------------------------------------------------------ Einsatzgebiet: Übersicht der Ortsseiten */
.orte-raster { display: grid; gap: 0.75rem; }
.ort-karte { position: relative; display: grid; gap: 0.3rem; padding: 1.15rem 3rem 1.15rem 1.25rem; border-radius: var(--r-core);
  background: var(--bg-card); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out); }
.ort-karte strong { font: 600 1.08rem/1.3 var(--font-display); }
.ort-karte span { color: var(--text-3); font-size: 0.92rem; }
.ort-karte .i { position: absolute; right: 1.15rem; top: 50%; transform: translateY(-50%); color: var(--sky); transition: transform 250ms var(--ease-out); }
.ort-karte:hover { border-color: var(--line-strong); background: var(--bg-card-2); }
.ort-karte:hover .i { transform: translate(4px, -50%); }
@media (min-width: 700px) { .orte-raster { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .orte-raster { grid-template-columns: repeat(3, 1fr); } }

/* Ratgeber (tools/ratgeber.py) */
.rg-autor-zeile { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; color: var(--text-3); font-size: 0.92rem; }
.rg-autor-zeile img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.rg-autor-zeile strong { color: var(--text-2); }
.rg-raster { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.rg-raster > * { min-width: 0; }
.rg-text { max-width: 72ch; }
.rg-text > h2 { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.rg-text p, .rg-text li { color: var(--text-2); line-height: 1.7; }
.rg-text a:not(.btn) { color: var(--sky-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rg-tabelle { margin: 1.5rem 0 0.75rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-card); }
.rg-tabelle:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.rg-tabelle table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.rg-tabelle th { text-align: left; padding: 0.8rem 1rem; color: var(--text); font: 600 0.9rem/1.3 var(--font-display); background: rgb(76 163 244 / 0.1); border-bottom: 1px solid var(--line-strong); }
.rg-tabelle td { padding: 0.75rem 1rem; color: var(--text-2); border-bottom: 1px solid var(--line); vertical-align: top; }
.rg-tabelle tr:last-child td { border-bottom: 0; }
.rg-fussnote { font-size: 0.86rem; color: var(--text-3) !important; }
.rg-kasten { margin: 1.5rem 0; }
.rg-kasten p { color: var(--text-2); }
.rg-autor { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 3rem; }
.rg-autor img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.rg-autor p { font-size: 0.95rem; margin: 0 0 0.5rem; }
.rg-seite { display: grid; gap: 1rem; align-content: start; }
.rg-toc { padding: 1.4rem 1.5rem; border-radius: var(--r-core); background: var(--bg-card); border: 1px solid var(--line); }
.rg-toc p { margin: 0 0 0.6rem; }
.rg-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.rg-toc a { color: var(--text-2); text-decoration: none; font-size: 0.93rem; line-height: 1.4; }
.rg-toc a:hover { color: var(--text); }
.rg-cta p { font-size: 0.95rem; color: var(--text-2); }
.rg-cta .btn { margin-top: 0.5rem; width: 100%; justify-content: center; }
.rg-tel { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.9rem; color: var(--text); text-decoration: none; font-weight: 600; }
.rg-tel .i { color: var(--sky); }
.rg-quellen { border-top: 1px solid var(--line); padding-top: 1rem; color: var(--text-3); }
.rg-quellen summary { cursor: pointer; color: var(--text-2); font-weight: 600; }
.rg-quellen ul { margin: 0.8rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; font-size: 0.92rem; }
.rg-quellen a { color: var(--sky-soft); overflow-wrap: anywhere; }
.rg-raster-karten { display: grid; gap: 1rem; }
.rg-karte { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r-core); background: var(--bg-card);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out); }
.rg-karte img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rg-karte-text { display: grid; gap: 0.5rem; align-content: start; padding: 1.25rem 1.35rem 1.4rem; }
.rg-karte h2, .rg-karte h3 { margin: 0; font: 600 1.15rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.rg-karte-text > span:not(.link-arrow) { color: var(--text-3); font-size: 0.93rem; line-height: 1.5; }
.rg-karte .link-arrow { margin-top: 0.35rem; color: var(--sky); font-weight: 600; font-size: 0.93rem; }
.rg-karte:hover { border-color: var(--line-strong); background: var(--bg-card-2); }
@media (min-width: 700px) { .rg-raster-karten { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .rg-raster-karten { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .rg-raster { grid-template-columns: minmax(0, 1fr) 320px; }
  .rg-seite { position: sticky; top: calc(var(--nav-h) + 2.5rem); align-self: start; }
}
@media (max-width: 1023px) { .rg-seite { order: -1; } .rg-cta { display: none; } }
.rg-tabelle--schmal table { min-width: 0; }

/* PV-News der Woche (tools/aktuelles.py) */
.ak-stand { margin-top: 1.25rem; color: var(--text-3); font-size: 0.92rem; }
.ak-raster { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 3.5rem); max-width: 860px; }
.ak-meldung { display: grid; gap: 0.25rem; padding-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); border-bottom: 1px solid var(--line); }
.ak-meldung h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0.35rem 0 0.5rem; }
.ak-meldung p { color: var(--text-2); line-height: 1.7; }
.ak-meldung a:not(.link-arrow) { color: var(--sky-soft); }
.ak-thema { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--sky-soft); font: 600 0.85rem/1 var(--font-display); }
.ak-thema .i { width: 18px; height: 18px; color: var(--sky); }
.ak-bedeutung { margin: 0.75rem 0; }
.ak-quelle { font-size: 0.88rem; color: var(--text-3) !important; overflow-wrap: anywhere; }
.ak-hinweis { color: var(--text-3); font-size: 0.9rem; }
.ak-liste { display: grid; gap: 0.75rem; }
.ak-ausgabe, .ak-teaser { position: relative; display: grid; gap: 0.35rem; padding: 1.25rem 3.25rem 1.25rem 1.35rem; border-radius: var(--r-core);
  background: var(--bg-card); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out); }
.ak-ausgabe strong, .ak-teaser strong { font: 600 1.1rem/1.3 var(--font-display); }
.ak-ausgabe ul { margin: 0.25rem 0 0; padding-left: 1.1rem; color: var(--text-3); font-size: 0.92rem; display: grid; gap: 0.2rem; }
.ak-datum { color: var(--sky-soft); font-size: 0.85rem; font-weight: 600; }
.ak-ausgabe > .i, .ak-teaser > .i { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--sky); transition: transform 250ms var(--ease-out); }
.ak-ausgabe:hover, .ak-teaser:hover { border-color: var(--line-strong); background: var(--bg-card-2); }
.ak-ausgabe:hover > .i, .ak-teaser:hover > .i { transform: translate(4px, -50%); }
.ak-teaser { margin-bottom: 1.5rem; background: linear-gradient(160deg, rgb(76 163 244 / 0.12), var(--bg-card) 60%); border-color: var(--line-strong); }

/* Hinweis unter den Partnerlogos: an keinen Hersteller gebunden */
.wunsch { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.5rem;
  margin-top: 1.5rem; padding: 1.1rem 1.35rem; border-radius: var(--r-core); background: rgb(255 255 255 / 0.035); border: 1px solid var(--line); }
.wunsch p { margin: 0; max-width: 70ch; color: var(--text-2); font-size: 0.95rem; line-height: 1.55; }
.wunsch strong { color: var(--text); }
.wunsch .btn { flex: none; }
.marquee-band .wunsch { margin-top: 2rem; }
.feld-wunsch[hidden] { display: none !important; }

/* Zweites Untermenü (Ratgeber) rechtsbündig, damit es bei schmaleren Desktops nicht aus dem Bild ragt */
@media (min-width: 1240px) { .menu > li.has-sub:not(:first-child) .sub { left: auto; right: -1rem; transform-origin: 88% 0; } }

/* ------------------------------------------------------------------ Angebots-Quiz (src/partials/quiz.html, assets/js/quiz.js)
   Eine Frage pro Bildschirm, Kacheln mit Icon, Einfachauswahl springt automatisch weiter. Raster richtet sich nach der Breite
   des Quiz selbst (Container-Abfrage), damit es auf /angebot/ und in der schmalen Spalte der Landingpage passt. */
.quiz {
  container: quiz / inline-size; position: relative;
  padding: clamp(1rem, 0.6rem + 1.8vw, 2.4rem); border-radius: var(--r-shell);
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card)); border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 50px 100px -60px rgb(76 163 244 / 0.45);
}
.quiz-zusagen { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem 1.4rem; margin: 0 0 1.35rem; padding: 0; color: var(--text-2); font-size: 0.9rem; line-height: 1.35; }
.quiz-zusagen li { display: inline-flex; align-items: center; gap: 0.5rem; }
.quiz-zusagen .i { width: 1.2em; height: 1.2em; color: var(--sky-soft); }
.quiz-gesichter { display: inline-flex; flex: none; }
.quiz-gesichter img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-card-2); background: var(--bg-raise); }
.quiz-gesichter img + img { margin-left: -9px; }
.quiz-fertig .quiz-zusagen { display: none; }

.quiz-leiste { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(1.4rem, 1rem + 1vw, 2rem); }
.quiz-fortschritt { flex: 1; height: 6px; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.08); overflow: hidden; }
.quiz-fortschritt span { display: block; width: 4%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sky), var(--sky-soft)); transition: width 560ms var(--ease-out); }
.quiz-zaehler { margin: 0; color: var(--text-3); font-size: 0.85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

.quiz-frage { margin: 0 0 1.3rem; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); line-height: 1.2; text-wrap: balance; outline: none; }
.quiz-frage:has(+ .quiz-hinweis) { margin-bottom: 0.45rem; }
.quiz-hinweis { margin: 0 0 1.3rem; color: var(--text-2); font-size: 0.95rem; }
.quiz-teilfrage { margin: 0 0 0.8rem; font: 600 1.02rem/1.3 var(--font-display); color: var(--text); }
.quiz-reihe + .quiz-reihe { margin-top: 1.5rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }

/* Kacheln: zwei Spalten am Handy, eine ungerade letzte Kachel wird breit und liegt quer */
.quiz-optionen--kachel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.quiz-optionen--text { display: grid; gap: 0.6rem; }
.quiz-optionen--chip { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.quiz-kachel {
  position: relative; display: grid; align-content: start; justify-items: start; gap: 0.6rem;
  min-height: 118px; padding: 0.9rem 0.8rem 1rem; border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.035); border: 1px solid var(--line-strong); color: var(--text);
  font: 600 0.94rem/1.25 var(--font-display); text-align: left; hyphens: manual; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 160ms var(--ease-out);
}
.quiz-kachel > .i { width: 34px; height: 34px; color: var(--sky-soft); transition: color 180ms var(--ease-out), transform 300ms var(--ease-out); }
/* Kacheln mit Unterzeile: Icon, Titel und Unterzeile liegen über die ganze Reihe auf gleicher Höhe (Subgrid) */
.quiz-optionen--kachel:has(.quiz-kachel-zusatz) > .quiz-kachel { grid-row: span 3; grid-template-rows: subgrid; min-height: 0; }
.quiz-kachel-zusatz { margin-top: -0.4rem; color: var(--text-3); font: 400 0.86rem/1.35 var(--font-body); text-wrap: balance; }
.quiz-haken {
  position: absolute; top: 0.75rem; right: 0.75rem; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; border: 1.5px solid rgb(255 255 255 / 0.22); transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.quiz-haken .i { width: 13px; height: 13px; color: var(--on-sky); transform: scale(0); transition: transform 220ms var(--ease-out); }
.quiz-kachel--text { min-height: 58px; align-content: center; padding: 0.85rem 3rem 0.85rem 1.1rem; font-weight: 500; }
.quiz-kachel--text .quiz-haken { top: 50%; margin-top: -11px; right: 1rem; }
.quiz-optionen--kachel.quiz-anzahl-3 > :last-child,
.quiz-optionen--kachel.quiz-anzahl-5 > :last-child {
  grid-column: 1 / -1; min-height: 76px; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.9rem; row-gap: 0.1rem;
  padding-right: 2.75rem;
}
.quiz-optionen--kachel.quiz-anzahl-3 > :last-child:has(.quiz-kachel-zusatz) > .i,
.quiz-optionen--kachel.quiz-anzahl-5 > :last-child:has(.quiz-kachel-zusatz) > .i { grid-row: 1 / span 2; }
.quiz-optionen--kachel.quiz-anzahl-3 > :last-child .quiz-kachel-zusatz,
.quiz-optionen--kachel.quiz-anzahl-5 > :last-child .quiz-kachel-zusatz { margin-top: 0; }
.quiz-optionen--kachel.quiz-anzahl-3 > :last-child,
.quiz-optionen--kachel.quiz-anzahl-5 > :last-child { grid-row: auto; grid-template-rows: none; min-height: 76px; }
.quiz-chip {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 46px; padding: 0 1.1rem;
  border-radius: var(--r-pill); background: rgb(255 255 255 / 0.035); border: 1px solid var(--line-strong); color: var(--text-2);
  font: 500 0.95rem/1.2 var(--font-display); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.quiz-chip .i { width: 1.15em; height: 1.15em; color: var(--sky-soft); }
.quiz-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .quiz-kachel:hover, .quiz-chip:hover { border-color: rgb(160 205 240 / 0.42); background: rgb(255 255 255 / 0.06); }
  .quiz-kachel:hover > .i { transform: translateY(-2px); }
  .quiz-chip:hover { color: var(--text); }
}
.quiz-kachel:active, .quiz-chip:active { transform: scale(0.98); transition-duration: 100ms; }
.quiz-kachel:focus-visible, .quiz-chip:focus-visible, .quiz-chip:has(input:focus-visible) { outline: 2px solid var(--sky); outline-offset: 3px; }
.quiz-kachel[aria-pressed="true"], .quiz-chip[aria-pressed="true"], .quiz-chip:has(input:checked) {
  border-color: var(--sky); background: rgb(76 163 244 / 0.14); box-shadow: inset 0 0 0 1px var(--sky); color: var(--text);
}
.quiz-kachel[aria-pressed="true"] > .i { color: var(--sky); }
.quiz-kachel[aria-pressed="true"] .quiz-haken { background: var(--sky); border-color: var(--sky); }
.quiz-kachel[aria-pressed="true"] .quiz-haken .i { transform: scale(1); }

@container quiz (min-width: 500px) {
  .quiz-optionen--text { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-optionen--text.quiz-anzahl-5 > :last-child { grid-column: 1 / -1; }
  .quiz-optionen--kachel.quiz-anzahl-3, .quiz-optionen--kachel.quiz-anzahl-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quiz-optionen--kachel.quiz-anzahl-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .quiz-optionen--kachel.quiz-anzahl-5 > * { grid-column: span 2; }
  .quiz-optionen--kachel.quiz-anzahl-5 > :nth-child(n+4) { grid-column: span 3; }
  .quiz-optionen--kachel.quiz-anzahl-3 > :last-child,
  .quiz-optionen--kachel.quiz-anzahl-5 > :last-child { min-height: 118px; grid-template-columns: none; align-items: start; row-gap: 0.6rem; padding-right: 0.8rem; }
  .quiz-optionen--kachel.quiz-anzahl-3 > :last-child { grid-column: auto; }
  .quiz-optionen--kachel.quiz-anzahl-5 > :last-child { grid-column: span 3; }
  .quiz-optionen--kachel.quiz-anzahl-3 > :last-child:has(.quiz-kachel-zusatz) > .i,
  .quiz-optionen--kachel.quiz-anzahl-5 > :last-child:has(.quiz-kachel-zusatz) > .i { grid-row: auto; }
  .quiz-optionen--kachel.quiz-anzahl-3 > :last-child .quiz-kachel-zusatz,
  .quiz-optionen--kachel.quiz-anzahl-5 > :last-child .quiz-kachel-zusatz { margin-top: -0.4rem; }
  .quiz-optionen--kachel:has(.quiz-kachel-zusatz).quiz-anzahl-3 > :last-child,
  .quiz-optionen--kachel:has(.quiz-kachel-zusatz).quiz-anzahl-5 > :last-child { grid-row: span 3; grid-template-rows: subgrid; min-height: 0; }
}
@container quiz (min-width: 680px) {
  .quiz-optionen--kachel.quiz-anzahl-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container quiz (min-width: 780px) {
  .quiz-optionen--kachel.quiz-anzahl-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .quiz-optionen--kachel.quiz-anzahl-5 > *, .quiz-optionen--kachel.quiz-anzahl-5 > :nth-child(n+4),
  .quiz-optionen--kachel.quiz-anzahl-5 > :last-child { grid-column: auto; }
}

.quiz-steuerung { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.quiz-steuerung:not(:has(> :not([hidden]))) { display: none; }
.quiz-zurueck {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 0.35rem; border: 0; background: none;
  color: var(--text-2); font: 500 0.95rem/1 var(--font-display); cursor: pointer; transition: color 160ms ease;
}
.quiz-zurueck:hover { color: var(--text); }
.quiz-zurueck:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
.quiz-weiter { margin-left: auto; }
.quiz-weiter[disabled] { opacity: 0.38; cursor: not-allowed; box-shadow: none; }
.quiz-kontakt .quiz-felder { margin-top: 0.4rem; }
.quiz-erreichbar { margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz-erreichbar legend { margin-bottom: 0.6rem; padding: 0; color: var(--text); font: 500 0.92rem/1.3 var(--font-display); }
.quiz-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.quiz-erreichbar.has-error .quiz-chip { border-color: var(--error); }
.quiz-erreichbar.has-error .error-msg { display: block; margin-top: 0.5rem; }

.quiz-danke-icon { width: 52px; height: 52px; margin-bottom: 0.75rem; color: var(--success); }
.quiz-danke .quiz-frage { margin-bottom: 1rem; }
.quiz-buero-gross { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.6rem; padding: 0.9rem 1.1rem; border-radius: var(--r-md); background: rgb(255 255 255 / 0.04); border: 1px solid var(--line); }
.quiz-buero-gross .quiz-gesichter img { width: 46px; height: 46px; }
.quiz-buero-gross .quiz-gesichter img + img { margin-left: -12px; }
.quiz-buero-gross p { margin: 0; color: var(--text-2); font-size: 0.95rem; line-height: 1.5; }
.quiz-buero-gross a, .quiz-ohne-js a { color: var(--sky-soft); white-space: nowrap; }
.quiz-naechste { list-style: none; display: grid; gap: 1rem; margin: 0 0 1.6rem; padding: 0; counter-reset: qn; }
.quiz-naechste li { position: relative; display: grid; gap: 0.15rem; padding-left: 2.9rem; counter-increment: qn; }
.quiz-naechste li::before {
  content: counter(qn); position: absolute; left: 0; top: -0.1rem; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: rgb(76 163 244 / 0.16); color: var(--sky-soft); font: 700 0.92rem/1 var(--font-display);
}
.quiz-naechste strong { color: var(--text); font: 600 1.02rem/1.3 var(--font-display); }
.quiz-naechste span { color: var(--text-2); font-size: 0.95rem; }
.quiz-zusammenfassung { border-top: 1px solid var(--line); padding-top: 1rem; }
.quiz-zusammenfassung summary { cursor: pointer; color: var(--sky-soft); font: 600 0.95rem/1.3 var(--font-display); }
.quiz-zusammenfassung dl { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1.25rem; margin: 1rem 0 0; font-size: 0.93rem; }
.quiz-zusammenfassung dt { color: var(--text-3); }
.quiz-zusammenfassung dd { margin: 0; color: var(--text); }
.quiz-ohne-js { margin: 0; color: var(--text-2); }
@media (prefers-reduced-motion: no-preference) {
  .quiz-rein { animation: quiz-rein 440ms var(--ease-expo) both; }
  .quiz-neu { animation: quiz-rein 380ms var(--ease-expo) both; }
  .quiz-fertig .quiz-danke { animation: aufsteigen 600ms var(--ease-expo) both; }
}
@media (prefers-reduced-motion: reduce) { .quiz-fortschritt span { transition: none; } }
@keyframes quiz-rein { from { opacity: 0; transform: translateY(14px); } }

/* Seite /angebot/: nur das Quiz, darunter Belege */
.angebot-hero { padding-top: calc(var(--nav-h) + clamp(2rem, 1rem + 3vw, 3.75rem)); padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.angebot-hero .container { max-width: 940px; }
.angebot-hero h1 { margin: 0 0 0.7rem; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); text-wrap: balance; }
.angebot-hero .lead { margin: 0 0 clamp(1.5rem, 1rem + 1.5vw, 2.25rem); color: var(--text-2); max-width: 60ch; }
.angebot-belege { list-style: none; display: grid; gap: 0.75rem; margin: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) 0 0; padding: 0; }
.angebot-belege li { display: flex; align-items: center; gap: 0.8rem; padding: 0.95rem 1.1rem; border-radius: var(--r-md); background: rgb(255 255 255 / 0.03); border: 1px solid var(--line); color: var(--text-2); font-size: 0.93rem; line-height: 1.4; }
.angebot-belege .i { width: 26px; height: 26px; color: var(--sky-soft); }
.angebot-belege strong { display: block; color: var(--text); font: 600 1rem/1.3 var(--font-display); }
.angebot-belege .lp-stern .i { width: 22px; height: 22px; color: var(--star); }
@media (min-width: 760px) { .angebot-belege { grid-template-columns: repeat(3, 1fr); } }
.ohne-schnellleiste .mobile-bar { display: none; }

/* Hannover: Hinweis „Referenz der Firmengruppe“ auf Gewerbe-Karten */
.biz-body .role { margin-bottom: 0.4rem; color: var(--text-3); font-size: 0.86rem; }
.personal-note .person-mono { max-width: 400px; aspect-ratio: 6 / 7; margin-bottom: 0; }
