/* Elektro LL — design system ------------------------------------------- */
:root {
  --bg: #09090b;
  --bg-2: #0f1013;
  --surface: #15161a;
  --surface-2: #1c1d22;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f3f3f1;
  --body: #b9bbc2;
  --muted: #8b8d96;
  --dim: #5f616a;
  --paper: #f4f4f2;
  --ink: #0b0b0d;
  --red: #e82626;
  --red-2: #ff3d3d;
  --red-glow: rgba(232, 38, 38, 0.42);

  --display: 'Archivo', 'Mulish', system-ui, sans-serif;
  --font: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --h-xl: clamp(3rem, 1.2rem + 6.6vw, 8.2rem);
  --h-l: clamp(2.4rem, 1.2rem + 4vw, 5.4rem);
  --h-m: clamp(1.9rem, 1.1rem + 2.6vw, 3.6rem);
  --h-s: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);

  --gutter: clamp(18px, 4.6vw, 88px);
  --maxw: 1440px;
  --nav-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 20px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.menu-open, html.menu-open body { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; z-index: 200; left: 16px; top: -80px; background: var(--red); color: #fff; padding: 12px 18px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* Type ------------------------------------------------------------------ */
.display { font-family: var(--display); font-stretch: 112%; letter-spacing: -0.035em; line-height: 0.96; font-weight: 300; }
.display strong, .display b { font-weight: 800; }
.h-xl { font-size: var(--h-xl); }
.h-l { font-size: var(--h-l); }
.h-m { font-size: var(--h-m); line-height: 1.02; }
.h-s { font-family: var(--display); font-stretch: 108%; font-size: var(--h-s); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.lead { font-size: clamp(1.08rem, 0.98rem + 0.45vw, 1.35rem); line-height: 1.55; color: #d9dade; max-width: 44ch; }
.mono { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); margin-bottom: 1.4rem; }
.eyebrow::before { content: ''; width: 9px; height: 9px; background: var(--red); box-shadow: 0 0 14px var(--red-glow); flex: none; }
.red { color: var(--red-2); }

/* Split-word reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.is-in .w > span, .w.is-in > span { transform: none; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Buttons --------------------------------------------------------------- */
.btn {
  --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 26px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--font); font-weight: 800; font-size: 0.95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-2); box-shadow: 0 0 0 6px rgba(232, 38, 38, 0.16), 0 10px 40px -10px var(--red-glow); }
.btn--line { border-color: var(--line-2); color: var(--text); background: rgba(9, 9, 11, 0.25); backdrop-filter: blur(8px); }
.btn--line:hover { border-color: var(--text); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.16); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 0.86rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2rem; }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; padding-bottom: 4px; background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat; transition: background-size .45s var(--ease); }
.link:hover { background-size: 100% 2px; }
.link svg { width: 16px; height: 16px; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; flex: none; }
.dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(2); opacity: 0; } }

/* Nav ------------------------------------------------------------------- */
.nav { position: fixed; z-index: 100; inset: 0 0 auto; height: var(--nav-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(9, 9, 11, 0.8); backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo img { width: clamp(132px, 11vw, 172px); height: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links > a, .nav__drop > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-weight: 700; font-size: 0.93rem; color: rgba(255,255,255,0.82); text-decoration: none; background: none; border: 0; cursor: pointer; transition: color .25s; }
.nav__links > a:hover, .nav__drop > button:hover, .nav__links > a[aria-current="page"] { color: #fff; }
.nav__links > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
.nav__drop { position: relative; }
.nav__drop > button svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.nav__drop[data-open] > button svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 12px); left: -12px; width: 360px; padding: 10px; background: rgba(21, 22, 26, 0.96); backdrop-filter: blur(20px);
  border: 1px solid var(--line-2); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.nav__drop[data-open] .nav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__menu a { display: grid; grid-template-columns: 38px 1fr; gap: 2px 14px; align-items: center; padding: 12px; text-decoration: none; transition: background-color .2s; }
.nav__menu a:hover, .nav__menu a:focus-visible { background: var(--surface-2); }
.nav__menu svg { grid-row: span 2; width: 34px; height: 34px; color: var(--red-2); }
.nav__menu strong { color: var(--text); font-size: 0.95rem; }
.nav__menu span { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.notruf { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; background: var(--red); color: #fff; font-weight: 800; font-size: 0.88rem; text-decoration: none; transition: background-color .3s, box-shadow .3s; }
.notruf:hover { background: var(--red-2); box-shadow: 0 0 0 6px rgba(232,38,38,0.16); }
.notruf svg { width: 16px; height: 16px; }
.nav__burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.nav__burger i { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger i:first-child { top: 17px; } .nav__burger i:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }
.drawer { position: fixed; z-index: 99; inset: 0; padding: calc(var(--nav-h) + 20px) var(--gutter) 32px; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s linear .35s; }
.drawer.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.drawer a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-stretch: 110%; font-size: 1.7rem; font-weight: 300; color: var(--text); }
.drawer a small { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.drawer .notruf { margin-top: 28px; justify-content: center; min-height: 56px; font-size: 1rem; }
@media (max-width: 1080px) { .nav__links { display: none; } .nav__burger { display: block; } .nav .notruf { margin-left: auto; } }
@media (max-width: 480px) { .nav .notruf .label { display: none; } .nav .notruf { padding: 0 14px; } }

/* Pinned media stage (hero tour, über uns) ------------------------------- */
.stage { position: relative; background: #000; }
.stage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage__media, .stage__media canvas, .stage__media img, .stage__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__media canvas { opacity: 0; transition: opacity .8s var(--ease); }
.stage.is-ready .stage__media canvas { opacity: 1; }
.stage__shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(9,9,11,0.6) 0%, rgba(9,9,11,0) 20%),
  linear-gradient(0deg, rgba(9,9,11,0.9) 0%, rgba(9,9,11,0.2) 45%, rgba(9,9,11,0) 70%),
  linear-gradient(90deg, rgba(9,9,11,0.55) 0%, rgba(9,9,11,0) 55%); }
.stage__ui { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) + 10px); display: flex; align-items: center; gap: 16px; color: rgba(255,255,255,0.7); pointer-events: none; }
.stage__bar { flex: 1; height: 1px; background: rgba(255,255,255,0.2); position: relative; max-width: 360px; }
.stage__bar i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--red-glow); }
.stage__pct { color: #fff; min-width: 3ch; }
.stage__card { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(64px, 11vh, 132px); width: min(820px, calc(100% - 2 * var(--gutter) - 90px)); opacity: 0; visibility: hidden; will-change: opacity, transform; }
.stage__card--right { left: auto; right: calc(var(--gutter) + 110px); width: min(600px, calc(100% - 2 * var(--gutter))); }
.stage__card--hero { opacity: 1; visibility: visible; }
.stage__card .lead { margin-top: 1.3rem; }
.stage__card p:not(.eyebrow) { text-shadow: 0 1px 18px rgba(0,0,0,0.55); }
.stage__card .display { text-shadow: 0 2px 40px rgba(0,0,0,0.35); }
.stage__hint { position: absolute; z-index: 3; right: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.65); }
.stage__hint i { width: 1px; height: 44px; background: rgba(255,255,255,0.2); position: relative; overflow: hidden; }
.stage__hint i::after { content: ''; position: absolute; left: 0; width: 1px; height: 16px; background: var(--red); animation: drip 1.9s var(--ease-io) infinite; }
@keyframes drip { from { top: -16px; } to { top: 44px; } }

/* Page header stage: clip scrubs with scroll, copy recedes in 3D.
   --p = overall progress (0–1), --q = exit phase (0–1), set in js/app.js. */
.stage--head .stage__sticky { perspective: 1100px; perspective-origin: 50% 70%; }
.stage--head .stage__media { transform: scale(calc(1.02 + var(--p, 0) * 0.14)); transform-origin: 50% 60%; will-change: transform; }
.stage--head .stage__shade { opacity: calc(1 - var(--q, 0) * 0.45); }
.stage__head { position: absolute; z-index: 2; inset: auto 0 clamp(56px, 11vh, 132px); transform-style: preserve-3d; pointer-events: none; }
.stage__depth { transform-style: preserve-3d; transform-origin: 30% 100%;
  transform: translate3d(0, calc(var(--q, 0) * -70px), calc(var(--q, 0) * -620px)) rotateX(calc(var(--q, 0) * 16deg)) rotateY(calc(var(--q, 0) * -6deg));
  opacity: calc(1 - var(--q, 0) * 1.25); will-change: transform, opacity; }
.stage__depth a, .stage__depth button { pointer-events: auto; }
.stage__depth [data-z] { transform-style: preserve-3d; }
.stage__depth [data-z="0"] { transform: translateZ(calc(var(--p, 0) * 60px)); }
.stage__depth [data-z="1"] { transform: translateZ(calc(var(--p, 0) * 140px)); }
.stage__depth [data-z="2"] { transform: translateZ(calc(var(--p, 0) * 40px)); margin-top: 1.6rem; }
.stage__depth [data-z="3"] { transform: translateZ(calc(var(--p, 0) * 90px)); }
.stage__depth .display { max-width: 15ch; text-shadow: 0 2px 40px rgba(0,0,0,0.4); }
.stage__depth .lead { text-shadow: 0 1px 18px rgba(0,0,0,0.55); }
.stage--tour .stage__sticky { perspective: 1100px; }
.stage--tour .stage__media { transform: scale(calc(1.01 + var(--p, 0) * 0.04)); }
@media (max-width: 767px) { .stage__head { bottom: 40px; } .stage__depth .display { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .stage__depth, .stage__depth [data-z], .stage--head .stage__media { transform: none !important; } .stage__depth { opacity: calc(1 - var(--q, 0)); } }

/* Circuit (tour stations) */
.circuit { position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; justify-items: end; gap: 28px; opacity: 0; transition: opacity .5s var(--ease); }
.circuit.is-on { opacity: 1; }
.circuit__track { position: absolute; right: 13px; top: 14px; bottom: 14px; width: 2px; background: rgba(255,255,255,0.16); }
.circuit__track i { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 12px var(--red-glow); }
.circuit button { display: flex; flex-direction: row-reverse; align-items: center; gap: 14px; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; height: 28px; }
.circuit__dot { width: 28px; height: 28px; display: grid; place-items: center; }
.circuit__dot::before { content: ''; width: 12px; height: 12px; transform: rotate(45deg); border: 2px solid rgba(255,255,255,0.4); background: var(--bg); transition: all .35s var(--ease); }
.circuit__label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); opacity: 0; transform: translateX(6px); transition: all .35s var(--ease); text-shadow: 0 1px 10px rgba(0,0,0,0.7); }
.circuit button:hover .circuit__label, .circuit button:focus-visible .circuit__label { opacity: 1; transform: none; }
.circuit li { list-style: none; }
.circuit ol { margin: 0; padding: 0; display: grid; gap: 28px; }
.circuit li.is-passed .circuit__dot::before { border-color: var(--red); background: var(--red); }
.circuit li.is-active .circuit__dot::before { width: 16px; height: 16px; border-color: var(--red); background: var(--red); box-shadow: 0 0 0 6px rgba(232,38,38,0.2), 0 0 22px var(--red-glow); }
.circuit li.is-active .circuit__label { opacity: 1; transform: none; color: #fff; }
@media (max-width: 767px) {
  .circuit { top: auto; bottom: 14px; left: 14px; right: 14px; transform: none; padding: 12px 16px 10px; background: rgba(9,9,11,0.72); backdrop-filter: blur(12px); border: 1px solid var(--line); justify-items: stretch; }
  .circuit ol { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .circuit li { display: flex; justify-content: center; }
  .circuit li:first-child { justify-content: flex-start; } .circuit li:last-child { justify-content: flex-end; }
  .circuit button { flex-direction: column; width: auto; height: auto; gap: 2px; }
  .circuit__label { opacity: 1; transform: none; font-size: 0.58rem; letter-spacing: 0.08em; }
  .circuit__track { top: 25px; bottom: auto; left: 30px; right: 30px; width: auto; height: 2px; }
  .circuit__track i { transform-origin: left; transform: scaleX(0); }
  .stage__card, .stage__card--right { left: var(--gutter); right: var(--gutter); width: auto; bottom: 112px; }
  .stage--tour .stage__card--hero { bottom: 48px; }
  .stage__hint { display: none; }
  .stage__card .lead { font-size: 1rem; }
}

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg); padding: 26px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--display); font-stretch: 115%; font-weight: 300; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); color: var(--text); white-space: nowrap; letter-spacing: -0.02em; }
.marquee__track span::after { content: ''; width: 14px; height: 20px; background: var(--red); clip-path: polygon(55% 0, 0 58%, 42% 58%, 30% 100%, 100% 38%, 57% 38%); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections -------------------------------------------------------------- */
.section { padding-block: clamp(96px, 12vw, 200px); position: relative; }
.section--alt { background: var(--bg-2); }
.section--tight { padding-block: clamp(72px, 8vw, 128px); }
.head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.head__title { grid-column: 1 / span 7; }
.head__aside { grid-column: 9 / span 4; }
.head__aside p { margin: 0 0 1.2rem; }
@media (max-width: 900px) { .head__title, .head__aside { grid-column: 1 / -1; } }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card { position: relative; display: flex; flex-direction: column; min-height: 380px; padding: clamp(26px, 2.6vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; overflow: hidden; isolation: isolate; transition: background-color .5s var(--ease); }
.card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 0% 100%, rgba(232,38,38,0.16), transparent 60%); opacity: 0; transition: opacity .6s var(--ease); }
.card:hover { background: var(--surface); }
.card:hover::before { opacity: 1; }
.card__idx { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.12em; }
.card__icon { width: 56px; height: 56px; margin: 44px 0 auto; color: var(--red-2); }
.card__icon svg { width: 100%; height: 100%; }
.card__icon svg * { stroke-dasharray: 160; stroke-dashoffset: 0; }
.card:hover .card__icon svg * { animation: draw 1.1s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }
.card h3 { margin: 40px 0 12px; }
.card p { color: var(--muted); margin: 0 0 22px; max-width: 34ch; }
.card__more { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); font-size: 0.92rem; margin-top: auto; }
.card__more svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.card:hover .card__more svg { transform: translateX(6px); }
.card--cta { grid-column: span 2; background: var(--red); justify-content: flex-end; }
.card--cta:hover { background: var(--red-2); }
.card--cta::before { display: none; }
.card--cta p { color: rgba(255,255,255,0.9); }
.card--cta .display { color: #fff; }
@media (max-width: 1200px) { .card { min-height: 340px; } }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card { min-height: 300px; } .card--cta { grid-column: auto; } }

/* Reference tiles */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { position: relative; aspect-ratio: 3 / 4.2; overflow: hidden; background: var(--surface); text-decoration: none; display: block; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s var(--ease); }
.tile video { opacity: 0; }
.tile.is-playing video { opacity: 1; }
.tile:hover img, .tile:hover video { transform: scale(1.05); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.78), transparent 55%); }
.tile__label { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.tile__label h3 { font-family: var(--display); font-stretch: 110%; font-size: 1.35rem; font-weight: 700; }
.tile__label span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
@media (max-width: 1000px) { .strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .strip { grid-template-columns: 1fr; } .tile { aspect-ratio: 4 / 3; } }

/* Promises */
.promises { border-top: 1px solid var(--line); }
.promise { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 24px; padding: 38px 0; border-bottom: 1px solid var(--line); position: relative; }
.promise::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .15s; }
.promise.is-in::before { transform: scaleX(1); }
.promise__n { font-family: var(--mono); font-size: 0.8rem; color: var(--red-2); padding-top: 8px; }
.promise h3 { font-family: var(--display); font-stretch: 110%; font-size: clamp(1.4rem, 1.05rem + 1.1vw, 2.2rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.promise p { margin: 0; color: var(--muted); max-width: 52ch; }
@media (max-width: 800px) { .promise { grid-template-columns: 60px 1fr; } .promise p { grid-column: 2; } }

/* Emergency band */
.band { position: relative; overflow: hidden; background: var(--red); color: #fff; padding-block: clamp(70px, 9vw, 140px); }
.band::before { content: ''; position: absolute; right: -6%; top: -30%; width: 38vw; height: 160%; background: rgba(0,0,0,0.13); clip-path: polygon(55% 0, 0 58%, 42% 58%, 30% 100%, 100% 38%, 57% 38%); }
.band__inner { position: relative; display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; align-items: end; }
.band .display { color: #fff; max-width: 15ch; }
.band .mono { color: rgba(255,255,255,0.85); margin-bottom: 1.2rem; display: block; }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact__list { list-style: none; margin: 2.4rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__list span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact__list a, .contact__list address { color: var(--text); font-style: normal; font-weight: 700; text-decoration: none; }
.contact__list a:hover { color: var(--red-2); }
.map { margin-top: 20px; aspect-ratio: 16 / 10; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.88); }
.map__load { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; background: transparent; border: 0; cursor: pointer; padding: 18px; }
.map__load strong { color: var(--text); }
.map__load small { color: var(--muted); }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }

.form { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3.4vw, 52px); display: grid; gap: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; position: relative; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field input, .field textarea, .field select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--text); font: inherit; padding: 10px 0 12px; border-radius: 0; transition: border-color .3s var(--ease); }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); }
.field .err { display: none; font-size: 0.8rem; color: var(--red-2); font-weight: 700; }
.field.is-invalid .err { display: block; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--red-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 12px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; border: 1px solid var(--line-2); padding: 9px 15px; font-size: 0.86rem; font-weight: 700; color: var(--body); transition: all .25s var(--ease); }
.chips label:hover span { border-color: var(--text); color: var(--text); }
.chips input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--red-2); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.form__note { margin: 0; font-size: 0.82rem; color: var(--muted); max-width: 38ch; }
.form__status { margin: 0; font-weight: 700; min-height: 1.4em; }
.form__status.is-ok { color: #74e3a4; }
.form__status.is-error { color: var(--red-2); }

/* Footer */
.footer { background: #050506; border-top: 1px solid var(--line); padding: clamp(72px, 8vw, 120px) 0 28px; font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; }
.footer h4 { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--text); }
.footer .notruf, .footer .notruf:hover { color: #fff; }
.footer address { font-style: normal; color: var(--muted); }
.footer__logo { width: 170px; margin-bottom: 18px; }
.footer__claim { font-family: var(--display); font-stretch: 115%; font-weight: 300; font-size: clamp(2.2rem, 1rem + 6.2vw, 7.6rem); letter-spacing: -0.04em; line-height: 0.95; color: var(--text); margin: clamp(64px, 8vw, 120px) 0 0; }
.footer__claim strong { font-weight: 800; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.84rem; }
.footer__legal p { margin: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal button { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: inherit; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Consent */
.consent { position: fixed; z-index: 150; left: 16px; bottom: 16px; width: min(440px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--line-2); padding: 22px; font-size: 0.9rem; box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.consent[hidden] { display: none; }
.consent strong { display: block; color: var(--text); margin-bottom: 6px; }
.consent a { color: var(--text); }
.consent__actions { display: flex; gap: 10px; margin-top: 16px; }
.consent__actions .btn { flex: 1; --h: 44px; padding: 0 12px; }

/* Service page hero ------------------------------------------------------ */
.phero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.phero__media { position: absolute; inset: 0; }
.phero__media video, .phero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.phero .stage__shade { z-index: 1; }
.phero__inner { position: relative; z-index: 2; padding-bottom: clamp(56px, 10vh, 120px); }
.phero__crumb { display: flex; gap: 10px; margin-bottom: 1.8rem; color: rgba(255,255,255,0.65); }
.phero__crumb a { text-decoration: none; }
.phero__crumb a:hover { color: #fff; }
.phero .display { max-width: 14ch; }
.phero__meta { position: absolute; z-index: 2; right: var(--gutter); bottom: 32px; color: rgba(255,255,255,0.6); text-align: right; }
@media (max-width: 767px) { .phero__meta { display: none; } }

/* Sub-services list */
.subs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sub { background: var(--bg); padding: clamp(26px, 2.6vw, 40px); min-height: 260px; display: flex; flex-direction: column; transition: background-color .4s var(--ease); }
.sub:hover { background: var(--surface); }
.sub__n { font-family: var(--mono); font-size: 0.72rem; color: var(--red-2); letter-spacing: 0.12em; margin-bottom: auto; }
.sub h3 { margin: 48px 0 10px; }
.sub p { margin: 0; color: var(--muted); }
.section--alt .sub { background: var(--bg-2); }
.section--alt .sub:hover { background: var(--surface); }
@media (max-width: 1000px) { .subs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .subs { grid-template-columns: 1fr; } }

/* Process (circuit timeline) */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process__line { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line-2); }
.process__line i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--red-glow); }
.step { position: relative; padding-top: 58px; }
.step::before { content: ''; position: absolute; top: 6px; left: 0; width: 14px; height: 14px; transform: rotate(45deg); background: var(--bg); border: 2px solid var(--line-2); transition: all .4s var(--ease); }
.step.is-lit::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px rgba(232,38,38,0.18), 0 0 20px var(--red-glow); }
.step .mono { color: var(--muted); display: block; margin-bottom: 14px; }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 0; padding-left: 36px; }
  .process__line { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process__line i { transform-origin: top; transform: scaleY(0); }
  .step { padding: 0 0 40px; }
  .step::before { left: -36px; top: 4px; }
}

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.split__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.split__media img, .split__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__media--wide { aspect-ratio: 16 / 11; }
.checks { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text); }
.checks li::before { content: ''; width: 10px; height: 10px; margin-top: 8px; transform: rotate(45deg); background: var(--red); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__media { aspect-ratio: 4 / 3; } }

/* Before / after */
.ba { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); user-select: none; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 20px rgba(0,0,0,0.5); pointer-events: none; }
.ba__handle::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; letter-spacing: 2px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__tag { position: absolute; top: 18px; padding: 6px 10px; background: rgba(9,9,11,0.75); color: #fff; }
.ba__tag--l { left: 18px; } .ba__tag--r { right: 18px; }
.ba:has(input:focus-visible) .ba__handle::after { outline: 2px solid #fff; outline-offset: 3px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; cursor: pointer; font-family: var(--display); font-stretch: 108%; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); font-weight: 600; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-size: 1.4rem; color: var(--red-2); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 26px; max-width: 70ch; color: var(--muted); }

/* Related services */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.related a { display: flex; flex-direction: column; gap: 30px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .4s var(--ease); }
.related a:hover { background: var(--surface); }
.related svg { width: 38px; height: 38px; color: var(--red-2); }
.related strong { font-family: var(--display); font-stretch: 108%; color: var(--text); font-size: 1.15rem; }
@media (max-width: 520px) { .related { grid-template-columns: 1fr 1fr; } }

/* Gallery (Referenzen page) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { min-height: 44px; padding: 0 20px; background: transparent; border: 1px solid var(--line-2); cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--body); transition: all .25s var(--ease); }
.filters button:hover { border-color: var(--text); color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; grid-auto-flow: dense; gap: 14px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--surface); animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.gallery figure.is-hidden { display: none; }
.gallery .wide { grid-column: span 2; } .gallery .tall { grid-row: span 2; }
.gallery button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery button:focus-visible { outline: 2px solid var(--red-2); outline-offset: -2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 20px 18px; background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent); pointer-events: none; }
.gallery figcaption strong { display: block; color: #fff; font-family: var(--display); font-stretch: 108%; font-size: 1.1rem; }
.gallery figcaption span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } .gallery .wide { grid-column: auto; } .gallery .tall { grid-row: auto; } }
.lightbox { border: 0; padding: 0; background: transparent; width: min(1280px, 94vw); max-width: none; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(5,5,6,0.94); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox p { margin-top: 14px; }
.lightbox__close { position: absolute; top: -56px; right: 0; width: 46px; height: 46px; background: var(--red); border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Jobs, benefits, legal */
.jobs { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.job h3 { font-family: var(--display); font-stretch: 110%; font-size: clamp(1.3rem, 1.05rem + 0.9vw, 2rem); font-weight: 300; }
.job .mono { color: var(--muted); }
@media (max-width: 800px) { .job { grid-template-columns: 1fr 1fr; } .job h3 { grid-column: 1 / -1; } }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.benefits > div { background: var(--bg-2); padding: clamp(26px, 3vw, 44px); }
.benefits h3 { margin: 40px 0 12px; }
.benefits p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr; } }
.legal { max-width: 760px; }
.legal h2 { font-family: var(--display); font-stretch: 108%; font-size: 1.35rem; font-weight: 700; margin: 2.6rem 0 0.8rem; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--text); }
.page-head { padding: calc(var(--nav-h) + clamp(60px, 10vw, 140px)) 0 clamp(48px, 6vw, 90px); border-bottom: 1px solid var(--line); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.values h3 { margin: 18px 0 10px; }
.values p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  [data-reveal], .w > span { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* Region pages */
.prose p { font-size: 1.08rem; color: var(--body); max-width: 62ch; }
.prose p:first-child { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); color: var(--text); }
.places { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.places li { padding: 10px 16px; border: 1px solid var(--line-2); font-weight: 700; color: var(--text); }
.places li::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 10px; transform: rotate(45deg); background: var(--red); vertical-align: 1px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { margin: 0; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--ease), filter .6s var(--ease); filter: saturate(0.92); }
.person:hover img { transform: scale(1.04); filter: saturate(1); }
.person figcaption { padding: 22px 22px 26px; display: grid; gap: 6px; }
.person strong { font-family: var(--display); font-stretch: 108%; font-size: 1.35rem; color: var(--text); letter-spacing: -0.01em; }
.person span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1000px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .team { gap: 12px; } .person figcaption { padding: 16px; } .person strong { font-size: 1.1rem; } }

/* Video tiles in the reference gallery */
.gallery figure video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease), transform 1.1s var(--ease); }
.gallery figure.is-playing video { opacity: 1; }
.gallery figure:hover video { transform: scale(1.05); }
.gallery .play { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; background: rgba(9,9,11,0.6); backdrop-filter: blur(6px); border: 1px solid var(--line-2); transition: opacity .4s var(--ease); }
.gallery .play::after { content: ''; position: absolute; left: 17px; top: 13px; border-style: solid; border-width: 9px 0 9px 13px; border-color: transparent transparent transparent #fff; }
.gallery figure.is-playing .play { opacity: 0; }
.lightbox video { width: 100%; max-height: 82vh; background: #000; }

/* Home: six project videos */
.strip--6 { grid-template-columns: repeat(3, 1fr); }
.strip--6 .tile { aspect-ratio: 4 / 3; }
@media (max-width: 1000px) { .strip--6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .strip--6 { grid-template-columns: 1fr; } }
.strip--6 .tile__label { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; }
.strip--6 .tile__label h3 { font-size: 1.25rem; }
