/* ============================================================
   heliosgrid.net — In 4 Schritten zum energieeffizienten Betrieb
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* Nacht-Werte als Default; daylight.js blendet sie stufenlos
     Richtung Tag-Palette (Sonnenstand der lokalen Zeitzone) */
  --bg-0: #04060b;
  --bg-1: #070a12;
  --bg-2: #0c1220;
  --bg0-rgb: 4, 6, 11;
  --panel: rgba(13, 19, 33, 0.66);
  --panel-hi: rgba(16, 23, 40, 0.85);
  --panel-lo: rgba(8, 11, 19, 0.92);
  --panel-solid: rgba(7, 10, 18, 0.96);
  --line: rgba(160, 184, 220, 0.14);
  --line-soft: rgba(160, 184, 220, 0.08);
  --text: #eef2f8;
  --muted: #97a3b8;
  --glass: rgba(255, 255, 255, 0.04);
  --header-glass: rgba(5, 8, 14, 0.72);
  --menu-glass: rgba(4, 6, 11, 0.92);
  --accent: #ffb22e;
  --accent-soft: #ffd166;
  --accent-deep: #ff8a00;
  --accent-ink1: #ffb22e;
  --accent-ink2: #ffd166;
  --hue-contrast: #ffffff;
  --orb-core: #ffffff;
  --orb-ring: rgba(255, 255, 255, 0.8);
  --danger: #ff8a8a;
  --scene-glow-a: 13%;
  --shadow-soft: 0 16px 44px -20px rgba(31, 45, 80, 0);
  /* live scene hue – retinted by JS while the orb travels */
  --scene: #ffb22e;
  --scene-glow-x: 50%;
  --scene-glow-y: 18%;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 1.25rem;
  --header-h: 4.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--accent); color: #07101e; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink1);
}
.kicker::before {
  content: "";
  width: 2rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-ink1));
}
.kicker--light { color: var(--accent-soft); }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 1.1rem;
  text-wrap: balance;
}
.text-accent {
  background: linear-gradient(92deg, var(--accent-ink1) 10%, var(--accent-ink2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 38rem;
  margin-top: 1.35rem;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.35s, color 0.35s, border-color 0.35s;
}
.btn--solid {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent) 55%, var(--accent-deep));
  color: #1a1206;
  box-shadow: 0 0 0 1px rgba(255, 178, 46, 0.25), 0 10px 32px -10px rgba(255, 160, 20, 0.55);
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 178, 46, 0.4), 0 18px 44px -12px rgba(255, 160, 20, 0.75);
}
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: rgba(255, 178, 46, 0.5);
  background: rgba(255, 178, 46, 0.08);
  transform: translateY(-2px);
}
.btn--lg { padding: 0.95rem 1.9rem; font-size: 1rem; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  /* bewusst immer dunkel: Marken-Intro unabhängig von der Tageszeit */
  background: #04060b;
  color: #eef2f8;
}
.preloader__inner { display: grid; justify-items: center; gap: 1.1rem; }
.preloader__mark { width: 64px; color: #ffb22e; }
.preloader__core { transform-origin: 32px 32px; }
.preloader__rays line { transform-origin: 32px 32px; }
.preloader__word {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; letter-spacing: 0.04em;
  display: flex; overflow: hidden;
}
.preloader__word-accent { color: #ffb22e; }

/* ---------- Scene glow + progress ---------- */
.scene-glow {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42rem 42rem at var(--scene-glow-x) var(--scene-glow-y),
      color-mix(in srgb, var(--scene) var(--scene-glow-a), transparent), transparent 70%);
}

.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 80;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, #4da6ff, var(--accent), #3ddc97, #8c7bff);
  box-shadow: 0 0 12px rgba(255, 178, 46, 0.8);
}

/* ---------- Header ---------- */
.header {
  /* über dem Mobile-Menü (z 65), damit Logo + Burger bedienbar bleiben */
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  transition: transform 0.45s var(--ease-out), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: var(--header-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.header.is-hidden { transform: translateY(-110%); }
.header__inner {
  height: var(--header-h);
  max-width: calc(var(--container) + 4rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand__mark { width: 2.1rem; height: 2.1rem; color: var(--text); flex: none; }
/* Logo-Animation: Sonne dreht sich langsam */
@keyframes sunRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.brand__mark [data-brand-sun] {
  transform-origin: 40px 26px;
  animation: sunRotate 60s linear infinite;
}
/* Helle Variante (Tag-Modus) */
[data-daylight="day"] .brand__mark {
  color: #16202e;
}
.brand__word {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.18rem; letter-spacing: 0.01em;
}
.brand__word em { font-style: normal; color: var(--accent); }
.brand__word i { font-style: normal; font-weight: 400; font-size: 0.8em; color: var(--muted); }

.nav { display: flex; gap: 1.9rem; margin-left: auto; }
.nav a {
  position: relative;
  font-size: 0.92rem; font-weight: 500; color: var(--muted);
  transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__cta { flex: none; }

.burger {
  display: none;
  position: relative; z-index: 70;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass);
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger span {
  width: 1.1rem; height: 1.6px; background: var(--text);
  transition: transform 0.35s var(--ease-out);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 65;
  display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem;
  background: var(--menu-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__nav { display: grid; gap: 0.4rem; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 700;
  padding-block: 0.45rem;
  border-bottom: 1px solid var(--line-soft);
  transform: translateY(20px); opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s;
}
.menu.is-open .menu__nav a { transform: none; opacity: 1; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 0.05s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: 0.1s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: 0.15s; }
.menu__nav small {
  font-size: 0.85rem; color: var(--accent-ink1); font-weight: 500;
}
.menu__cta { align-self: flex-start; }
.menu__meta { color: var(--muted); font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: clip;
  isolation: isolate;
}
.hero__canvas {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
}
.hero__vignette {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--bg0-rgb), 0.55) 0%, transparent 30%, transparent 62%, var(--bg-0) 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(var(--bg0-rgb), 0.7) 100%);
}
.hero__content {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 6rem;
  max-width: 60rem;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
}
.hero__kicker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px var(--accent);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.6; }
}
.hero__title {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 17ch;
  text-wrap: balance;
  /* Puffer in Hintergrundfarbe: hält den Titel auch im Sonnen-Glow
     und während der Dämmerung lesbar (drop-shadow statt text-shadow,
     damit der Gradient-Text nicht übermalt wird) */
  filter: drop-shadow(0 2px 18px rgba(var(--bg0-rgb), 0.55));
}
.hero__title .word { display: inline-block; }
.hero__title-accent {
  font-weight: 700;
  background: linear-gradient(92deg, var(--accent-ink2), var(--accent-ink1) 60%, var(--accent-ink1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 178, 46, 0.35));
}
.hero__sub {
  margin-top: 1.6rem;
  max-width: 36rem;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--muted);
  text-shadow: 0 1px 14px rgba(var(--bg0-rgb), 0.6), 0 0 32px rgba(var(--bg0-rgb), 0.4);
}
.hero__trust li, .hero__scrollcue {
  text-shadow: 0 1px 10px rgba(var(--bg0-rgb), 0.55);
}
.hero__actions {
  margin-top: 2.3rem;
  display: flex; flex-wrap: wrap; gap: 0.9rem;
}
.hero__trust {
  margin-top: 2.2rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem;
}
.hero__trust li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--muted);
}
.hero__trust li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
}
.hero__scrollcue {
  position: absolute; left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.hero__scrollcue:hover { color: var(--text); }
.hero__scrollcue-line {
  width: 1px; height: 3.2rem;
  background: var(--line);
  position: relative;
}
/* Kleine Sonne geht im Loop auf: erscheint unten, steigt, verschwindet oben */
.hero__scrollcue-sun {
  position: absolute; left: 50%; top: 0;
  width: 1rem; height: 1rem;
  margin-left: -0.5rem;
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(255, 178, 46, 0.55));
  animation: cue-sunrise 3s ease-in-out infinite;
}
@keyframes cue-sunrise {
  0%   { transform: translateY(2.7rem) scale(0.6); opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(-1rem) scale(1); opacity: 0; }
}

/* ---------- Manifest ---------- */
.manifest { padding: clamp(7rem, 16vh, 11rem) 0 clamp(4rem, 9vh, 7rem); position: relative; z-index: 1; }
.manifest__text {
  max-width: 56rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.manifest__text .word { opacity: 0.12; display: inline-block; will-change: opacity; }
.manifest__text em { font-style: normal; color: var(--accent); }

/* ---------- Journey ---------- */
.journey { position: relative; z-index: 1; padding-bottom: clamp(4rem, 10vh, 8rem); }
.journey__head { padding-block: clamp(2rem, 6vh, 4rem); }

.journey__track {
  position: relative;
  margin-top: clamp(2rem, 8vh, 5rem);
}
.journey__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.journey__path { fill: none; stroke-linecap: round; }
.journey__path--base {
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-dasharray: 3 9;
}
.journey__path--halo {
  stroke: url(#path-grad);
  stroke-width: 9;
  opacity: 0.16;
  filter: blur(7px);
}
.journey__path--draw {
  stroke: url(#path-grad);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--scene) 80%, transparent));
}

.journey__orb {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: 0; height: 0;
  pointer-events: none;
}
.journey__orb-core {
  position: absolute; left: 50%; top: 50%;
  width: 13px; height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: var(--orb-core);
  box-shadow:
    0 0 8px 2px var(--orb-ring),
    0 0 22px 6px var(--scene),
    0 0 60px 18px color-mix(in srgb, var(--scene) 55%, transparent);
}
.journey__orb-halo {
  position: absolute; left: 50%; top: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--scene) 38%, transparent), transparent 70%);
  animation: orb-breathe 2.6s ease-in-out infinite;
}
@keyframes orb-breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.journey__start, .journey__end {
  position: relative; z-index: 2;
  width: fit-content;
  margin-inline: auto;
  font-size: 0.84rem; letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.5rem 1.1rem;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: var(--bg-0);
}
.journey__end { margin-top: clamp(1rem, 4vh, 2rem); }
.journey__end a { color: var(--accent-ink1); border-bottom: 1px solid currentColor; }
.journey__end-flag { color: var(--accent-ink1); margin-right: 0.4rem; }

.journey__steps { position: relative; z-index: 1; }

.step {
  --hue: var(--accent);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(3rem, 9vw, 9rem);
  padding: clamp(4.5rem, 14vh, 9rem) var(--gutter);
  max-width: calc(var(--container) + 2rem);
  margin-inline: auto;
}
.step--alt .step__card { order: 2; }
.step--alt .step__visual { order: 1; }

.step__node {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 3.4rem; height: 3.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-0);
  border: 1.5px solid var(--line);
  transition: border-color 0.5s, box-shadow 0.5s, color 0.5s;
  color: var(--muted);
}
.step__node i {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem;
}
.step__node::after {
  content: ""; position: absolute; inset: -1px;
  border-radius: 50%;
  border: 1.5px solid var(--hue);
  opacity: 0;
  transition: opacity 0.4s;
}
.step.is-active .step__node {
  color: var(--hue);
  border-color: transparent;
  box-shadow: 0 0 0 1px var(--hue), 0 0 24px -2px var(--hue);
}
.step.is-active .step__node::after { opacity: 1; animation: node-ping 1.8s var(--ease-out) infinite; }
@keyframes node-ping {
  0% { transform: scale(1); opacity: 0.85; }
  80%, 100% { transform: scale(1.9); opacity: 0; }
}

.step__card {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.6s, box-shadow 0.6s;
}
.step.is-active .step__card {
  border-color: color-mix(in srgb, var(--hue) 38%, transparent);
  box-shadow: var(--shadow-soft), 0 24px 70px -30px color-mix(in srgb, var(--hue) 40%, transparent);
}
.step__tag {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: color-mix(in srgb, var(--hue) 78%, var(--hue-contrast));
}
.step__title {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.015em;
  line-height: 1.08;
}
.step__copy { margin-top: 0.9rem; color: var(--muted); font-size: 0.99rem; }
.step__listlabel {
  margin-top: 1.4rem;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text);
  opacity: 0.85;
}
.step__chips {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
}
.step__chips li {
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hue) 35%, transparent);
  background: color-mix(in srgb, var(--hue) 9%, transparent);
  font-size: 0.83rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--hue) 70%, var(--hue-contrast));
  position: relative;
  cursor: help;
  transition: all 0.3s ease-out;
}
.step__chips li:hover {
  border-color: color-mix(in srgb, var(--hue) 55%, transparent);
  background: color-mix(in srgb, var(--hue) 18%, transparent);
  box-shadow: 0 6px 16px -8px var(--hue);
}
/* Hover-Infobox mit data-info */
.step__chips li[data-info]::after {
  content: attr(data-info);
  position: absolute;
  bottom: calc(100% + 0.7rem);
  left: 50%;
  transform: translateX(-50%) translateY(0.4rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out 0.1s, transform 0.3s ease-out 0.1s;

  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  background: var(--panel-solid);
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
  white-space: normal;
  max-width: 240px;
  width: max-content;
  text-align: center;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}
.step__chips li[data-info]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.step__chips small { color: var(--muted); font-size: 0.92em; }
.step__result {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem; color: var(--muted);
}
.step__result strong { color: var(--text); font-weight: 600; }

.step__visual {
  position: relative;
  color: var(--hue);
}
.step__visual svg {
  width: 100%; height: auto;
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--hue) 18%, transparent));
}
.step__visual-cap {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Services ---------- */
.services { position: relative; z-index: 1; padding: clamp(5rem, 14vh, 9rem) 0; }
/* ---------- Ziel (nach dem Energiepfad) ---------- */
.goal { position: relative; z-index: 1; padding: clamp(4rem, 11vh, 7.5rem) 0 clamp(3rem, 8vh, 6rem); }
.goal__visual {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3.6rem);
}
.goal__steps { width: 100%; max-width: 22rem; color: var(--text); justify-self: center; }
.goal__emblem {
  width: clamp(12rem, 20vw, 15.5rem);
  color: var(--text);
  justify-self: center;
  filter: drop-shadow(0 0 28px rgba(255, 178, 46, 0.18));
}
.goal__gains { display: grid; gap: 0.9rem; }
.goal__gains li {
  display: flex; align-items: flex-start; gap: 0.95rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.85rem;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.goal__gains svg { width: 1.9rem; height: 1.9rem; flex: none; color: var(--accent); margin-top: 0.1rem; }
.goal__gains strong { display: block; font-size: 0.95rem; }
.goal__gains span { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

.services__grid {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
/* Kernbotschafts-Kachel: spannt zwei Felder, schließt den Block */
.card--wide { grid-column: span 2; }
.card {
  --mx: 50%; --my: 0%;
  position: relative;
  padding: 2rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(22rem 16rem at var(--mx) var(--my), rgba(255, 178, 46, 0.08), transparent 65%),
    var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 178, 46, 0.35);
  box-shadow: var(--shadow-soft), 0 30px 70px -34px rgba(255, 160, 20, 0.35);
}
.card__num {
  position: absolute; top: 1.3rem; right: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--accent-ink1);
  opacity: 0.7;
}
.card__icon {
  width: 3rem; height: 3rem;
  color: var(--accent);
  filter: drop-shadow(0 0 14px rgba(255, 178, 46, 0.4));
}
.card__title {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
}
.card__title small { font-size: 0.72em; font-weight: 500; color: var(--muted); }
.card__copy { margin-top: 0.7rem; font-size: 0.93rem; color: var(--muted); }
.card__list { margin-top: 1.2rem; display: grid; gap: 0.45rem; }
.card__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.88rem; color: var(--muted);
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 0.55rem; height: 0.55rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-deep));
  transform: rotate(45deg) scale(0.8);
}

/* Dezente Dauer-Animationen der Karten-Pictogramme */
@keyframes icon-spin { to { transform: rotate(360deg); } }
@keyframes icon-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes icon-draw { 0% { stroke-dashoffset: 40; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes icon-dash { to { stroke-dashoffset: -22; } }
.card__icon .icon-rays { transform-origin: 24px 13px; animation: icon-spin 26s linear infinite; }
.card__icon .icon-bolt { animation: icon-pulse 2.6s ease-in-out infinite; }
.card__icon .icon-chart { stroke-dasharray: 40; animation: icon-draw 4.5s ease-in-out infinite; }
.card__icon .icon-cable { stroke-dasharray: 4 5.5; animation: icon-dash 1.7s linear infinite; }
.card__icon .icon-speed { stroke-dasharray: 5 6; animation: icon-dash 1.1s linear infinite; }

/* ---------- Why / Stats ---------- */
.why { position: relative; z-index: 1; padding: clamp(4rem, 12vh, 8rem) 0; }
.why__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.why__points { margin-top: 2.2rem; display: grid; gap: 1.1rem; }
.why__points li {
  padding: 1.1rem 1.25rem;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(255, 178, 46, 0.06), transparent 60%);
  border-radius: 0 0.6rem 0.6rem 0;
  font-size: 0.92rem; color: var(--muted);
}
.why__points strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.why__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  position: sticky; top: calc(var(--header-h) + 2rem);
}
.stat {
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  display: grid; gap: 0.5rem; align-content: start;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--accent-ink2), var(--accent-ink1));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-size: 0.85rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative; z-index: 1;
  padding: clamp(5rem, 14vh, 9rem) 0 clamp(5rem, 12vh, 8rem);
  overflow: clip;
}
.cta__horizon {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 26rem at 50% 108%, rgba(255, 160, 20, 0.22), transparent 65%),
    radial-gradient(36rem 16rem at 50% 104%, rgba(255, 210, 120, 0.25), transparent 60%);
}
.cta__panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel-hi), var(--panel-lo));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft), 0 50px 120px -50px rgba(255, 160, 20, 0.25);
}
.cta__bullets { margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.cta__bullets li {
  position: relative; padding-left: 1.7rem;
  font-size: 0.94rem; color: var(--muted);
}
.cta__bullets li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}
.cta__direct {
  margin-top: 2.2rem; padding-top: 1.6rem;
  border-top: 1px dashed var(--line);
}
.cta__direct-label { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cta__direct-link {
  display: inline-block; margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  color: var(--accent-ink1);
  border-bottom: 1px solid color-mix(in srgb, var(--accent-ink1) 40%, transparent);
  transition: border-color 0.3s;
}
.cta__direct-link:hover { border-color: var(--accent-ink1); }
.cta__direct-note { margin-top: 0.5rem; font-size: 0.82rem; color: var(--muted); }

/* ---------- Form ---------- */
.form { position: relative; display: grid; gap: 1.1rem; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__field { display: grid; gap: 0.45rem; }
.form__field label {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  font: inherit; font-size: 0.95rem;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.form__field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.3rem) 50%, calc(100% - 0.95rem) 50%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; }
.form__field select option { background: var(--bg-2); color: var(--text); }
.form__field textarea { resize: vertical; min-height: 5.2rem; }
.form__field input::placeholder, .form__field textarea::placeholder { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 178, 46, 0.18);
  background: rgba(255, 178, 46, 0.05);
}
.form__field input.is-invalid, .form__consent.is-invalid span { border-color: #ff6464; }
.form__consent {
  display: flex; gap: 0.7rem; align-items: flex-start;
  font-size: 0.82rem; color: var(--muted);
  cursor: pointer;
}
.form__consent input {
  margin-top: 0.2rem;
  width: 1rem; height: 1rem;
  accent-color: var(--accent);
  flex: none;
}
.form__consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.form__submit { justify-self: start; margin-top: 0.3rem; }
.form__error { color: var(--danger); font-size: 0.86rem; }

.form__success {
  position: absolute; inset: -0.5rem;
  display: grid; place-content: center; justify-items: center;
  gap: 0.8rem; text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--panel-solid);
  color: var(--accent-ink1);
  z-index: 2;
}
.form__success[hidden] { display: none; }
.form__success h3 { font-family: var(--font-display); font-size: 1.7rem; color: var(--text); }
.form__success p { color: var(--muted); max-width: 26rem; font-size: 0.95rem; }
.form__success svg { width: 4.2rem; height: 4.2rem; }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line-soft);
  padding: 3.5rem 0 2rem;
  background: linear-gradient(180deg, transparent, rgba(255, 160, 20, 0.04));
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer__claim { margin-top: 1.1rem; max-width: 26rem; font-size: 0.9rem; color: var(--muted); }
.footer__head {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer__nav { display: grid; gap: 0.55rem; align-content: start; }
.footer__nav a, .footer__contact a {
  font-size: 0.92rem; color: var(--muted);
  transition: color 0.3s;
  width: fit-content;
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--accent); }
.footer__contact a { display: block; }
.footer__contact a + a { margin-top: 0.45rem; }
.footer__contact p { font-size: 0.88rem; color: var(--muted); margin-top: 0.4rem; }
.footer__legal {
  margin-top: 3rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.82rem; color: var(--muted);
}
.footer__legal-links { display: flex; gap: 1.4rem; }
.footer__legal-links a:hover { color: var(--text); }

/* ---------- Tageszeit-Regler ---------- */
.timectl {
  position: fixed;
  right: 1.1rem;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.8rem 0.55rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--header-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft), 0 10px 34px -18px rgba(0, 0, 0, 0.5);
}
.timectl__live {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.timectl__live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.timectl.is-live .timectl__live {
  color: var(--accent-ink1);
  border-color: color-mix(in srgb, var(--accent-ink1) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.timectl.is-live .timectl__live-dot {
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.timectl:not(.is-live) .timectl__live:hover { color: var(--text); border-color: var(--text); }

.timectl__track { position: relative; width: clamp(7.5rem, 16vw, 11rem); height: 18px; }
.timectl__gradient {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 6px; transform: translateY(-50%);
  border-radius: 999px;
  opacity: 0.9;
  pointer-events: none;
}
.timectl__marker {
  position: absolute; top: 50%; z-index: 1;
  width: 2px; height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  background: var(--text);
  pointer-events: none;
}
.timectl__marker::after {
  content: ""; position: absolute; left: 50%; top: -5px;
  width: 6px; height: 6px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px 1px var(--accent);
}
.timectl__range {
  -webkit-appearance: none; appearance: none;
  position: relative; z-index: 2;
  width: 100%; height: 18px;
  margin: 0; background: transparent;
  cursor: ew-resize;
}
.timectl__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7df, var(--accent) 55%, var(--accent-deep));
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--accent) 70%, transparent);
}
.timectl__range::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7df, var(--accent) 55%, var(--accent-deep));
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--accent) 70%, transparent);
}
.timectl__time {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem; font-weight: 600;
  color: var(--text);
  min-width: 3.1ch;
}

/* Dunkle SVG-Flächen in den Illustrationen folgen dem Theme */
.svg-panel { fill: var(--bg-1); }

/* ---------- Reveal defaults (JS enhances) ---------- */
[data-reveal] { will-change: transform, opacity; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__stats { position: static; }
  .cta__panel { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .goal__visual {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2.4rem;
  }
  .goal__gains { width: 100%; max-width: 30rem; }
}

@media (max-width: 760px) {
  :root { --header-h: 4rem; }
  .nav, .header__cta { display: none; }
  .burger { display: flex; }

  /* Mobil: 2 Kacheln pro Zeile, die Kernbotschaft als breite dritte Zeile */
  .services__grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .card { padding: 1.4rem 1.2rem; }
  .card__title { font-size: 1.12rem; hyphens: auto; overflow-wrap: break-word; }
  .card__copy, .card__list li { hyphens: auto; }
  .form__row { grid-template-columns: 1fr; }
  .why__stats { grid-template-columns: 1fr 1fr; }

  /* Journey collapses: path on the left, content right of it */
  .step {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3.5rem var(--gutter) 3.5rem calc(var(--gutter) + 3.4rem);
  }
  .step--alt .step__card { order: 0; }
  .step--alt .step__visual { order: 0; }
  .step__node {
    left: calc(var(--gutter) + 1.7rem);
    top: 4.6rem;
    width: 2.7rem; height: 2.7rem;
  }
  .step__node i { font-size: 0.8rem; }
  .journey__start, .journey__end { margin-left: var(--gutter); }
  .hero__scrollcue { display: none; }
  .hero__content { padding-bottom: 4rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }

  .timectl {
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    gap: 0.5rem;
    padding: 0.45rem 0.65rem 0.45rem 0.45rem;
  }
  .timectl__live { padding: 0.28rem 0.55rem; font-size: 0.66rem; }
  .timectl__track { width: clamp(6rem, 30vw, 8rem); }
  .timectl__time { font-size: 0.8rem; }
}

@media (max-width: 420px) {
  .why__stats { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
