/* ELAN Energiewerke – Stylesheet
   Tokens zuerst. Keine Farben außerhalb von :root verwenden. */

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

:root {
  /* Flächen */
  --night: #06110f;
  --night-2: #0a1a17;
  --night-3: #10241f;
  --day: #eef2ef;
  --day-2: #e2e8e4;
  /* Schrift */
  --ink: #eaf1ec;
  --ink-dim: rgba(234, 241, 236, 0.68);
  --ink-faint: rgba(234, 241, 236, 0.42);
  --day-ink: #0b1714;
  --day-ink-dim: rgba(11, 23, 20, 0.66);
  --line: rgba(234, 241, 236, 0.14);
  --day-line: rgba(11, 23, 20, 0.14);
  /* Energie-Farbcode: Licht gold, Gleichstrom blau (Logo), Wechselstrom mint */
  --sun: #ffb247;
  --dc: #4b93ff;
  --ac: #74f0c4;
  --focus: #74f0c4;
  /* Typo */
  --font: "Mona Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --fs-display: clamp(3rem, 8.4vw, 9.6rem);
  --fs-h2: clamp(2.2rem, 5.2vw, 5.4rem);
  --fs-h3: clamp(1.35rem, 2.2vw, 2rem);
  --fs-lead: clamp(1.08rem, 1.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;
  /* Raster */
  --gutter: clamp(1rem, 3.2vw, 3rem);
  --max: 1680px;
  --radius: 999px;
  /* Bewegung (Kurven wie bei Jesko: out / in-out) */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-stretch: 100%;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ac); color: var(--night); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--gutter); top: 0.75rem; z-index: 200;
  padding: 0.7rem 1rem; background: var(--ink); color: var(--night);
  border-radius: 8px; transform: translateY(-160%); transition: transform 0.3s var(--ease-out);
  text-decoration: none; font-weight: 600;
}
.skip:focus { transform: none; }

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

/* ---------- Typo ---------- */
.display, h1, h2, h3 { margin: 0; font-weight: 560; font-stretch: 112%; letter-spacing: -0.035em; line-height: 0.95; }
h1, .display { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); line-height: 0.98; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.08; font-stretch: 106%; }
p { margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-dim); max-width: 34em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  font-stretch: 118%; color: var(--ink-dim);
}
.eyebrow::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--ac); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--night);
  position: relative; display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1.05rem 1.5rem 1.05rem 1.65rem; border-radius: var(--radius);
  background: var(--b-bg); color: var(--b-fg); text-decoration: none; border: 0; cursor: pointer;
  font-weight: 600; font-stretch: 108%; letter-spacing: -0.005em; line-height: 1;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
  will-change: transform;
}
.btn .btn-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ac); transition: transform 0.4s var(--ease-out); }
.btn:hover .btn-dot { transform: scale(1.6); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-faint); }
.btn--day { --b-bg: var(--day-ink); --b-fg: var(--day); }
.link-arrow { display: inline-flex; gap: 0.5em; align-items: center; text-decoration: none; font-weight: 600; }
.link-arrow span { transition: transform 0.4s var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Kopfleiste (kein klassisches Menü) ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(0.9rem, 1.6vw, 1.4rem) var(--gutter);
  flex-wrap: wrap; row-gap: 0.65rem;
  padding-bottom: 0.75rem;
  pointer-events: none;
  background: rgba(6, 17, 15, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: color 0.5s var(--ease-out), background 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.bar[data-theme="day"] { background: rgba(238, 242, 239, 0.9); border-bottom-color: var(--day-line); }
.bar > * { pointer-events: auto; }
.bar-logo { display: block; width: clamp(140px, 12.5vw, 210px); position: relative; }
.bar-logo img { width: 100%; height: auto; transition: opacity 0.5s var(--ease-out); }
.bar-logo .logo-day { position: absolute; inset: 0; opacity: 0; }
.bar-actions { display: flex; align-items: center; gap: 0.5rem; }
.bar-tel {
  display: none; text-decoration: none; font-weight: 600; font-size: var(--fs-small);
  padding: 0.8rem 1rem; border-radius: var(--radius);
}
.bar .btn { padding: 0.8rem 1.1rem 0.8rem 1.25rem; font-size: 0.95rem; }
.bar[data-theme="day"] { color: var(--day-ink); }
.bar[data-theme="day"] .logo-night { opacity: 0; }
.bar[data-theme="day"] .logo-day { opacity: 1; }
.bar[data-theme="day"] .btn { --b-bg: var(--day-ink); --b-fg: var(--day); }
@media (min-width: 1200px) { .bar-tel { display: inline-block; } }

/* ---------- Menü + Leistungs-Leiste ---------- */
.bar-nav { display: none; gap: 0.25rem; }
.bar-nav a {
  color: inherit; text-decoration: none; font-weight: 600; font-size: 0.95rem; font-stretch: 108%;
  padding: 0.7rem 1rem; border-radius: var(--radius); transition: background 0.3s var(--ease-out);
}
.bar-nav a:hover { background: rgba(234, 241, 236, 0.12); }
.bar[data-theme="day"] .bar-nav a:hover { background: rgba(11, 23, 20, 0.08); }
@media (min-width: 1000px) { .bar-nav { display: flex; } }

.svc-strip {
  order: 3; flex: 1 0 100%;
  display: flex; align-items: center; gap: 0.2rem;
  padding: 0.3rem; border-radius: var(--radius);
  background: rgba(234, 241, 236, 0.05); box-shadow: inset 0 0 0 1px var(--line);
  overflow-x: auto; scrollbar-width: none; white-space: nowrap;
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.svc-strip::-webkit-scrollbar { display: none; }
.svc-label {
  display: inline-flex; align-items: center; gap: 0.55em; flex: none;
  padding: 0 0.9rem 0 0.8rem; font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; font-stretch: 118%; opacity: 0.7;
}
.svc-label::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--ac); }
.svc-strip a {
  flex: 1 0 auto; text-align: center; color: inherit; text-decoration: none;
  font-size: 0.92rem; font-weight: 600; font-stretch: 106%;
  padding: 0.62rem 1rem; border-radius: var(--radius); transition: background 0.3s var(--ease-out);
}
.svc-strip a:hover, .svc-strip a:focus-visible { background: rgba(234, 241, 236, 0.14); }
.bar[data-theme="day"] .svc-strip { background: rgba(11, 23, 20, 0.03); box-shadow: inset 0 0 0 1px var(--day-line); }
.bar[data-theme="day"] .svc-strip a:hover, .bar[data-theme="day"] .svc-strip a:focus-visible { background: rgba(11, 23, 20, 0.08); }
@media (max-width: 899px) {
  .svc-label { display: none; }
  .svc-strip a { flex: none; font-size: 0.85rem; padding: 0.55rem 0.85rem; }
}
.acc-item { scroll-margin-top: 9.5rem; }

.svc-logo { margin: 0 auto clamp(2.5rem, 6vh, 4rem); background: #fff; border-radius: 18px; overflow: hidden; max-width: 760px; }
.svc-logo img { display: block; width: 100%; height: auto; }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; background: var(--night);
  display: grid; place-items: center; pointer-events: none;
  clip-path: inset(0 0 0 0);
}
.loader-inner { display: grid; justify-items: center; gap: 1.2rem; }
.loader-mark { width: 84px; height: auto; opacity: 0.95; }
.loader-count { font-size: var(--fs-micro); letter-spacing: 0.2em; color: var(--ink-faint); font-stretch: 120%; }
.no-js .loader, .reduced .loader { display: none; }

/* ---------- Story ---------- */
.story { position: relative; background: var(--night); }
.stage {
  position: relative; height: 100vh; height: 100svh; width: 100%; overflow: hidden;
  background: var(--night); contain: layout paint;
}
.layer { position: absolute; inset: 0; will-change: transform, opacity; }
.layer img, .layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.layer svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.layer--still { opacity: 0; }
.stage-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 17, 15, 0.78) 0%, rgba(6, 17, 15, 0.42) 34%, rgba(6, 17, 15, 0) 58%),
    linear-gradient(0deg, rgba(6, 17, 15, 0.55) 0%, rgba(6, 17, 15, 0) 30%);
}
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Energielinien */
.flow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.flow--dc { stroke: var(--dc); }
.flow--ac { stroke: var(--ac); }
.flow--sun { stroke: var(--sun); }
.pulse { stroke-dasharray: 4 24; animation: flowrun 1.25s linear infinite; }
@keyframes flowrun { to { stroke-dashoffset: -28; } }
.node { fill: var(--night); stroke-width: 3; }
.node--ac { stroke: var(--ac); }
.node--dc { stroke: var(--dc); }
.tag-bg { fill: rgba(6, 17, 15, 0.72); stroke: rgba(234, 241, 236, 0.22); stroke-width: 1.2; }
.tag-txt { fill: var(--ink); font-family: var(--font); font-weight: 600; font-stretch: 108%; }
.tag-sub { fill: var(--ink-dim); font-family: var(--font); font-weight: 500; }

/* Kapiteltexte */
.chapters { list-style: none; margin: 0; padding: 0; }
.chapter { position: relative; }
.js-motion .chapters {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
}
.js-motion .chapter {
  position: absolute; left: var(--gutter); bottom: clamp(6.5rem, 16vh, 11rem);
  width: min(38rem, 84vw); opacity: 0;
}
.chapter .ch-time {
  display: inline-flex; gap: 0.75rem; align-items: baseline; margin-bottom: 1.1rem;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.12em; font-stretch: 118%; color: var(--ink-dim);
}
.chapter .ch-time b { color: var(--ink); font-weight: 600; letter-spacing: 0.04em; }
.chapter h2 { font-size: clamp(2.1rem, 4.6vw, 4.6rem); }
.chapter p { margin-top: 1.1rem; font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-dim); max-width: 31em; }
.chapter .legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 1.2rem; font-size: var(--fs-small); color: var(--ink-dim); }
.legend i { display: inline-block; width: 1.4rem; height: 3px; border-radius: 2px; margin-right: 0.5rem; vertical-align: middle; }
.legend .l-sun { background: var(--sun); }
.legend .l-dc { background: var(--dc); }
.legend .l-ac { background: var(--ac); }
.ch-still { display: none; }

/* Hero-Kapitel */
.js-motion .story { height: 100vh; height: 100svh; overflow: hidden; }
.js-motion .stage { position: absolute; inset: 0; height: auto; }
.hero-copy { position: relative; z-index: 6; max-width: var(--max); margin: 0 auto; padding: 8rem var(--gutter) 4rem; }
.js-motion .hero-copy { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-38%); padding: 0; margin: 0; max-width: none; }
.no-motion .story-nav { display: none; }
.hero-copy .eyebrow { margin-bottom: 1.4rem; }
.hero-copy h1 { max-width: 9.5em; }
.hero-copy .lead { margin-top: 1.6rem; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.2rem; }
.story-nav {
  position: absolute; z-index: 8; left: 50%; top: 10rem; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.3rem; padding: 0.3rem;
  border-radius: var(--radius); background: rgba(6, 17, 15, 0.62); box-shadow: inset 0 0 0 1px rgba(234, 241, 236, 0.22);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  white-space: nowrap; opacity: 0;
}
.story-hint { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.6rem 0.85rem 0.6rem 1rem; font-size: 1.06rem; font-weight: 720; font-stretch: 108%; letter-spacing: 0; color: var(--ink); }
.story-hint .arrow { display: inline-block; color: var(--sun); font-weight: 800; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.story-skip {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.6rem 1.05rem; border-radius: var(--radius);
  background: var(--ink); color: var(--night); font-size: 0.98rem; font-weight: 700; font-stretch: 106%; text-decoration: none;
  transition: background 0.3s var(--ease-out);
}
.story-skip:hover { background: var(--ac); }
.skip-curtain { position: fixed; inset: 0; z-index: 150; background: var(--night); opacity: 0; pointer-events: none; }

/* Tagesuhr (HUD) */
.hud {
  position: absolute; z-index: 7; right: var(--gutter); bottom: clamp(1.2rem, 3vh, 2rem);
  width: 15.5rem; padding: 1.1rem 1.2rem 1rem; border-radius: 18px;
  background: rgba(6, 17, 15, 0.56); box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; font-size: var(--fs-small);
}
.hud-time { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.hud-time b { font-size: 2rem; font-weight: 520; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1; }
.hud-time span { font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.hud dl { margin: 0.7rem 0 0; display: grid; gap: 0.45rem; }
.hud dl > div { display: grid; grid-template-columns: 0.55rem 1fr auto; align-items: center; gap: 0.6rem; }
.hud dt { color: var(--ink-dim); }
.hud dd { margin: 0; font-weight: 600; }
.hud .dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; }
.hud .d-sun { background: var(--sun); }
.hud .d-ac { background: var(--ac); }
.hud .d-bat { background: var(--ac); box-shadow: 0 0 0 2px rgba(116, 240, 196, 0.25); }
.hud .d-car { background: var(--dc); }
.hud-bar { height: 3px; margin-top: 0.9rem; border-radius: 2px; background: var(--line); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sun), var(--ac)); }
.hud-note { margin-top: 0.7rem; font-size: 0.6875rem; color: var(--ink-faint); line-height: 1.35; }

@media (max-width: 899px) {
  .hud { top: auto; bottom: 1rem; right: 1rem; left: auto; transform: none; width: 10.6rem; padding: 0.75rem 0.85rem; border-radius: 14px; font-size: 0.75rem; }
  .hud-time b { font-size: 1.35rem; }
  .hud-note, .hud dl > div.hud-opt { display: none; }
  .js-motion .chapter { top: calc(10.6rem + 1vh); bottom: auto; width: auto; right: var(--gutter); }
  .stage .tag { display: none; }
  .hud-time span { display: none; }
  .stage-shade {
    background:
      linear-gradient(180deg, rgba(6, 17, 15, 0.85) 0%, rgba(6, 17, 15, 0.5) 38%, rgba(6, 17, 15, 0) 62%),
      linear-gradient(0deg, rgba(6, 17, 15, 0.5) 0%, rgba(6, 17, 15, 0) 26%);
  }
  .js-motion .hero-copy { top: calc(12.6rem + 1vh); transform: none; }
  .story-nav { top: 8.6rem; padding: 0.25rem; }
  .story-hint { font-size: 0.84rem; padding: 0.5rem 0.55rem 0.5rem 0.75rem; gap: 0.4rem; }
  .story-skip { font-size: 0.84rem; padding: 0.5rem 0.8rem; }
  .story-skip .sk-long { display: none; }
}

/* Ohne Bewegung / ohne JS: Geschichte als ruhige Bildfolge */
.no-motion .stage { display: none; }
.no-motion .story { padding: 0 0 2rem; }
.no-motion .chapter { max-width: var(--max); margin: 0 auto 5rem; padding: 0 var(--gutter); }
.no-motion .ch-still { display: block; width: 100%; height: auto; border-radius: 14px; margin-top: 1.8rem; }
.js-motion .hero-copy .lead { max-width: 30em; }

/* ---------- Überleitung ---------- */
.bridge { background: var(--night); padding: clamp(6rem, 16vh, 12rem) 0 clamp(4rem, 10vh, 8rem); }
.bridge h2 { max-width: 13em; }
.bridge .hl .ch { opacity: 0.15; }

/* ---------- Leistungen (Tag) ---------- */
.day { background: var(--day); color: var(--day-ink); }
.day .lead { color: var(--day-ink-dim); }
.day .eyebrow { color: var(--day-ink-dim); }
.services { padding: clamp(6rem, 14vh, 10rem) 0; }
.sec-head { display: grid; gap: 1.6rem; margin-bottom: clamp(3rem, 8vh, 5.5rem); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.acc { border-top: 1px solid var(--day-line); }
.acc-item { border-bottom: 1px solid var(--day-line); }
.acc-btn {
  width: 100%; display: grid; grid-template-columns: 3.2rem 1fr 2.6rem; align-items: center; gap: 1rem;
  padding: clamp(1.1rem, 2.4vh, 1.6rem) 0; background: none; border: 0; text-align: left; cursor: pointer; color: inherit;
}
.acc-no { font-size: var(--fs-small); font-weight: 600; color: var(--day-ink-dim); font-stretch: 110%; }
.acc-title { font-size: clamp(1.5rem, 3.3vw, 3.2rem); font-weight: 540; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1; transition: transform 0.6s var(--ease-out); }
.acc-btn:hover .acc-title { transform: translateX(0.4rem); }
.acc-ico { width: 2.6rem; height: 2.6rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--day-line); position: relative; transition: background 0.4s var(--ease-out); }
.acc-ico::before, .acc-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.9rem; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.5s var(--ease-out); }
.acc-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.open .acc-ico { background: var(--day-ink); color: var(--day); }
.acc-item.open .acc-ico::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-panel { overflow: hidden; height: 0; }
.no-js .acc-panel, .reduced .acc-item.open .acc-panel { height: auto; }
.acc-body { display: grid; gap: 1.6rem; padding: 0.4rem 0 2.2rem 4.2rem; }
@media (min-width: 900px) { .acc-body { grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; } }
.acc-body p { color: var(--day-ink-dim); font-size: var(--fs-lead); line-height: 1.45; max-width: 30em; }
.acc-body ul { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; color: var(--day-ink); }
.acc-body li { display: flex; gap: 0.7rem; }
.acc-body li::before { content: ""; flex: none; width: 0.45rem; height: 0.45rem; margin-top: 0.55em; border-radius: 50%; background: var(--day-ink); }
.acc-media { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; background: var(--day-2); }
.acc-media img { width: 100%; height: 100%; object-fit: cover; }
.services-note { margin-top: 2.2rem; color: var(--day-ink-dim); max-width: 44em; }
@media (max-width: 640px) { .acc-btn { grid-template-columns: 2.2rem 1fr 2.4rem; } .acc-body { padding-left: 0; } }

/* ---------- Referenzen ---------- */
.refs { background: var(--night-2); padding: clamp(6rem, 14vh, 10rem) 0 clamp(5rem, 12vh, 8rem); overflow: hidden; }
.refs-track { display: flex; gap: clamp(0.8rem, 1.4vw, 1.4rem); padding: 0 var(--gutter); will-change: transform; }
.ref { flex: none; margin: 0; }
.ref img { height: clamp(300px, 58vh, 620px); width: auto; border-radius: 12px; object-fit: cover; background: var(--night-3); }
.ref figcaption { display: flex; gap: 0.8rem; margin-top: 0.8rem; font-size: var(--fs-small); color: var(--ink-dim); max-width: 26rem; }
.ref figcaption b { color: var(--ink); font-weight: 600; }
.refs-foot { margin-top: 2rem; color: var(--ink-faint); font-size: var(--fs-small); }
@media (max-width: 899px) {
  .refs-track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 1rem; scrollbar-width: none; }
  .refs-track::-webkit-scrollbar { display: none; }
  .ref { scroll-snap-align: start; }
  .ref img { height: 62vw; max-height: 440px; }
}

/* ---------- Ablauf ---------- */
.steps { padding: clamp(6rem, 14vh, 10rem) 0; }
.steps-grid { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .steps-grid { grid-template-columns: 1fr 1.2fr; gap: 5rem; } .steps-grid .sec-sticky { position: sticky; top: 11rem; align-self: start; } }
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--day-line); }
.step:last-child { border-bottom: 1px solid var(--day-line); }
.step-no { font-size: 2.2rem; font-weight: 520; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1; color: var(--day-ink); }
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--day-ink-dim); max-width: 32em; }
.stamp {
  display: inline-grid; place-items: center; width: 8.5rem; height: 8.5rem; margin-top: 2.6rem; border-radius: 50%;
  border: 1.5px solid var(--day-ink); font-weight: 650; font-stretch: 120%; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; text-align: center; line-height: 1.25; transform: rotate(-8deg);
}

/* ---------- Kontakt ---------- */
.contact { position: relative; background: var(--night); padding: clamp(6rem, 14vh, 10rem) 0 0; overflow: hidden; }
.contact-grid { display: grid; gap: 3.5rem; position: relative; z-index: 2; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.contact h2 { max-width: 9em; }
.contact .lead { margin-top: 1.4rem; }
.facts { margin: 2.4rem 0 0; display: grid; gap: 1.2rem; }
.facts div { display: grid; gap: 0.2rem; }
.facts dt { font-size: var(--fs-micro); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-stretch: 118%; }
.facts dd { margin: 0; font-size: var(--fs-h3); font-weight: 520; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.15; }
.facts a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease-out); }
.facts a:hover { background-size: 100% 1px; }
.form { display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 20px; background: rgba(234, 241, 236, 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.form .row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: var(--fs-small); color: var(--ink-dim); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.95rem 1rem; border-radius: 12px; border: 0; background: rgba(234, 241, 236, 0.06);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-size: 1rem;
  transition: box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%), linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%); background-position: calc(100% - 1.3rem) 55%, calc(100% - 0.95rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; }
.field select option { color: #0b1714; }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ac); background: rgba(234, 241, 236, 0.08); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--fs-small); color: var(--ink-dim); }
.check input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--ac); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 0.4rem; }
.form-note { font-size: var(--fs-small); color: var(--ink-faint); }
.form-msg { font-size: var(--fs-small); color: var(--ac); min-height: 1.2em; }
.contact-night { position: relative; margin-top: clamp(4rem, 10vh, 7rem); height: clamp(260px, 42vw, 620px); }
.contact-night img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; }
.contact-night::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--night) 0%, rgba(6, 17, 15, 0) 45%); }
.contact-claim { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(1.2rem, 4vw, 3rem); font-size: clamp(2.4rem, 7vw, 7.2rem); font-weight: 560; font-stretch: 112%; letter-spacing: -0.04em; line-height: 0.92; }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: var(--ink-dim); padding: 3rem 0 2.4rem; font-size: var(--fs-small); border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr auto; align-items: start; } }
.foot img { width: 180px; height: auto; margin-bottom: 0.9rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Unterseiten (Impressum, Datenschutz, 404) ---------- */
.page { background: var(--day); color: var(--day-ink); min-height: 100vh; }
.page .bar { color: var(--day-ink); }
.page-main { padding: clamp(8rem, 18vh, 11rem) 0 6rem; }
.page-main h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); margin-bottom: 2.6rem; }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 3rem 0 1rem; letter-spacing: -0.02em; line-height: 1.1; }
.prose h3 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; font-stretch: 104%; }
.prose p, .prose li { color: var(--day-ink-dim); }
.prose p + p { margin-top: 0.9rem; }
.prose ul { padding-left: 1.2rem; }
.prose strong { color: var(--day-ink); }
.prose a { color: var(--day-ink); }
.todo { background: rgba(255, 178, 71, 0.22); padding: 0 0.25em; border-radius: 3px; color: var(--day-ink); }
.page .foot { background: var(--day-2); color: var(--day-ink-dim); border-top: 1px solid var(--day-line); }
.page .foot a:hover { color: var(--day-ink); }

/* Text-Reveal-Hilfen */
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: inline-block; will-change: transform, filter, opacity; }
.hl .ch { display: inline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Mittlere Breiten: Scroll-Hinweis unter die Kopfleiste, damit er das größere Logo nicht überdeckt */
@media (min-width: 900px) and (max-width: 1279px) {
  .story-nav { top: 9.6rem; }
}

/* Hochformat: unscharfer Hintergrund nur im Fit-Modus */
.layer img.bg { display: none; }
.stage.is-fit .layer img.bg {
  display: block; object-fit: cover; filter: blur(18px) brightness(0.5) saturate(1.1); transform: scale(1.15);
}
.stage.is-fit .layer img:not(.bg) {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

/* Handy: Tagesuhr als schmale Leiste am unteren Rand, damit die Bilder frei bleiben */
@media (max-width: 899px) {
  .hud { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; padding: 0.55rem 0.75rem; border-radius: 14px; display: flex; align-items: center; gap: 0.8rem; }
  .hud-time { border: 0; padding: 0; flex: none; }
  .hud-time b { font-size: 1.15rem; }
  .hud dl { flex: 1; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
  .hud dl > div { display: grid; grid-template-columns: 0.45rem auto; grid-template-rows: auto auto; column-gap: 0.3rem; row-gap: 0.05rem; align-items: center; }
  .hud .dot { width: 0.42rem; height: 0.42rem; grid-row: 1; grid-column: 1; }
  .hud dt { grid-row: 1; grid-column: 2; font-size: 0.6rem; line-height: 1.1; }
  .hud dd { grid-row: 2; grid-column: 1 / 3; font-size: 0.72rem; white-space: nowrap; }
  .hud-bar { display: none; }
}

#leistungen, #referenzen, #ablauf, #kontakt { scroll-margin-top: 8rem; }
