/* ==========================================================================
   elo Elektrotechnik UG – Stylesheet (Version „unter Strom“)
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/spacegrotesk-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --green: #3ddc6a;
  --blue: #2aa3ff;
  --green-deep: #0b6a23;
  --warm: #ffb347;

  --bg: #07090c;
  --bg-2: #0b0e13;
  --surface: #10141a;
  --surface-2: #171c24;
  --line: rgba(170, 190, 215, .11);
  --line-2: rgba(170, 190, 215, .24);
  --text: #eef2f6;
  --muted: #94a1b3;
  --on-accent: #03130a;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
  --glow: 0 0 28px rgba(42, 163, 255, .4);

  --grad: linear-gradient(100deg, var(--green), var(--blue));
  --radius: 20px;
  --maxw: 1240px;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.7, .5, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --green: #12873a;
  --blue: #0a72d4;
  --bg: #f3f1eb;
  --bg-2: #e9e6dd;
  --surface: #fffefb;
  --surface-2: #f1eee6;
  --line: rgba(20, 26, 38, .1);
  --line-2: rgba(20, 26, 38, .22);
  --text: #0d1117;
  --muted: #586271;
  --on-accent: #fff;
  --shadow: 0 30px 60px -34px rgba(30, 40, 60, .4);
  --glow: 0 0 22px rgba(10, 114, 212, .22);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.05; margin: 0; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--green); color: #03130a; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 16px; }
.svg-defs { position: absolute; }
.container { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
main { position: relative; counter-reset: sec; }
section { position: relative; z-index: 2; }
.section { padding: clamp(84px, 11vw, 150px) 0; }

@view-transition { navigation: auto; }

/* ---------- Hintergrund: Raster + Lichtkegel am Zeiger ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg__grid, .bg__glow { position: absolute; inset: 0; background-size: 34px 34px; }
.bg__grid { background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.4px); opacity: .5;
  -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }
.bg__glow { background-image: radial-gradient(circle, var(--blue) 1.2px, transparent 1.7px); opacity: 0; transition: opacity .5s;
  -webkit-mask-image: radial-gradient(260px circle at var(--px, 50%) var(--py, 50%), #000, transparent 70%);
          mask-image: radial-gradient(260px circle at var(--px, 50%) var(--py, 50%), #000, transparent 70%); }
.has-pointer .bg__glow { opacity: .9; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9000; pointer-events: none; }

/* ---------- Die Leitung durch die Seite ---------- */
.cable { position: absolute; left: 0; top: 0; width: 100%; z-index: 1; pointer-events: none; overflow: visible; display: none; }
.cable path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cable__base { stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 2 9; }
.cable__live { stroke: var(--blue); stroke-width: 2.5; }
.cable__nodes circle { fill: var(--bg); stroke: var(--line-2); stroke-width: 2; transition: fill .4s, stroke .4s; }
.cable__nodes circle.is-on { fill: var(--green); stroke: var(--green); }
.cable__head circle:first-child { fill: var(--blue); opacity: .22; animation: head-pulse 1.4s ease-in-out infinite; }
.cable__head circle:last-child { fill: #fff; stroke: var(--blue); stroke-width: 2; }
:root[data-theme="light"] .cable__head circle:last-child { fill: var(--blue); }
@keyframes head-pulse { 50% { transform: scale(1.5); opacity: .08; } }

/* ---------- Logo ---------- */
.mark { display: block; overflow: visible; }
.mark__disc { fill: #0b0d10; }
.mark__ring { fill: none; stroke: url(#gR); stroke-width: 3; opacity: .6; }
.mark__elo { fill: none; stroke: #fff; stroke-width: 15; stroke-linecap: round; }
.mark__bolt path { stroke-width: 6; stroke-linejoin: round; }
.mark__bolt-a { fill: url(#gA); stroke: url(#gA); }
.mark__bolt-b { fill: url(#gB); stroke: url(#gB); }

/* Einschalt-Sequenz: Leuchtröhre zeichnet „elo“, dann schlägt der Blitz ein */
.mark.is-boot .mark__disc { animation: disc-in .7s var(--ease) both; transform-origin: 177px 242px; }
.mark.is-boot .mark__ring { stroke-dasharray: 1; animation: draw 1s var(--ease) .15s both; }
.mark.is-boot .mark__elo > * { stroke-dasharray: 1.001; animation: draw .7s var(--ease) both, tube .5s steps(1) both; }
.mark.is-boot .mark__elo > :nth-child(1) { animation-delay: .35s, .35s; }
.mark.is-boot .mark__elo > :nth-child(2) { animation-delay: .6s, .6s; }
.mark.is-boot .mark__elo > :nth-child(3) { animation-delay: .75s, .75s; }
.mark.is-boot .mark__bolt { animation: strike .28s cubic-bezier(.7, 0, .3, 1) 1.15s both, flash 1s ease-out 1.15s both; }
@keyframes disc-in { from { transform: scale(.5); opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tube { 0% { opacity: 0 } 1% { opacity: 1 } 30% { opacity: .35 } 45% { opacity: 1 } 60% { opacity: .5 } 70%, 100% { opacity: 1 } }
@keyframes strike { from { clip-path: inset(-10% -10% 110% -10%); } to { clip-path: inset(-10%); } }
@keyframes flash { 0% { filter: brightness(1) } 12% { filter: brightness(3.2) drop-shadow(0 0 30px #bfe6ff) } 35% { filter: brightness(1.2) } 45% { filter: brightness(2.2) drop-shadow(0 0 16px #bfe6ff) } 100% { filter: brightness(1) } }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { width: 52px; height: auto; flex: none; }
.brand:hover .mark__bolt { animation: zap .5s steps(2) 2; }
@keyframes zap { 50% { filter: brightness(2.4) drop-shadow(0 0 12px #9fd8ff); transform: translate(1px, -1px); } }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark__main { font: 600 21px var(--font-head); letter-spacing: -.02em; display: inline-flex; align-items: center; }
.wordmark__sub { font: 500 9px var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.plug-o { width: .8em; height: .8em; margin: 0 .04em; display: inline-block; transform: translateY(.03em); transition: color .3s; }
.plug-o circle { fill: none; stroke: currentColor; stroke-width: 2.3; }
.plug-o path { fill: currentColor; }
.brand:hover .plug-o { animation: plug-spin .8s var(--ease); color: var(--green); }
@keyframes plug-spin { to { transform: translateY(.03em) rotate(360deg); } }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 10000; display: none; place-items: center; background: #05070a; transition: clip-path .8s cubic-bezier(.7, 0, .2, 1), visibility .8s; clip-path: inset(0); }
.js .preloader { display: grid; }
.preloader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 24px; }
.preloader .mark { width: 190px; }
.preloader__bar { width: 190px; height: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3ddc6a, #2aa3ff); }
.preloader__volt { font: 600 13px var(--font-head); letter-spacing: .3em; color: #6f8196; font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; border-bottom: 1px solid transparent; transition: background-color .4s, border-color .4s; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 76%, transparent); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.volt-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--grad); }

/* Lichtschalter */
.switch { position: relative; width: 44px; height: 54px; border-radius: 9px; padding: 0; border: 1px solid var(--line-2); cursor: pointer;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 6px 14px -8px rgba(0, 0, 0, .6); display: grid; place-items: center; flex: none; }
.switch__rocker { width: 24px; height: 34px; border-radius: 5px; position: relative; background: linear-gradient(180deg, #2a3140 0%, #1a2029 50%, #11151c 100%); box-shadow: 0 2px 0 rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08); transition: transform .15s; }
.switch__led { position: absolute; left: 50%; top: 6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #ff9f2e; box-shadow: 0 0 6px #ff9f2e; }
:root[data-theme="light"] .switch__rocker { background: linear-gradient(180deg, #ecebe6 0%, #fff 50%, #dcd9d0 100%); box-shadow: 0 -2px 0 rgba(0, 0, 0, .12), inset 0 -1px 0 rgba(0, 0, 0, .06); }
:root[data-theme="light"] .switch__led { top: auto; bottom: 6px; background: #2fbf4a; box-shadow: 0 0 6px #2fbf4a; }
.switch:active .switch__rocker { transform: scale(.92); }
.switch__tip { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); white-space: nowrap; font-size: 12px; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); opacity: 0; pointer-events: none; transition: .2s; }
.switch:hover .switch__tip, .switch:focus-visible .switch__tip { opacity: 1; transform: translate(-50%, 0); }

/* Themenwechsel: Licht breitet sich vom Schalter aus (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
.vt-theme::view-transition-old(root) { animation: none; z-index: 1; }
.vt-theme::view-transition-new(root) { animation: vt-circle .75s cubic-bezier(.6, 0, .2, 1) both; z-index: 2; }
@keyframes vt-circle { from { clip-path: circle(0 at var(--vx) var(--vy)); } to { clip-path: circle(var(--vr) at var(--vx) var(--vy)); } }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; justify-content: center; padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1;
  border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .3s, border-color .3s, background-position .5s var(--ease); white-space: nowrap; background: none; cursor: pointer; isolation: isolate; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { color: var(--on-accent); background: linear-gradient(100deg, var(--green), var(--blue), var(--green)); background-size: 200% 100%; box-shadow: 0 12px 34px -14px var(--blue); }
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 16px 44px -12px var(--blue); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 14%, transparent); }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn.is-charging { pointer-events: none; }
.btn.is-charging::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 255, 255, .35); transform-origin: left; animation: charge 1s var(--ease) forwards; z-index: -1; }
@keyframes charge { from { transform: scaleX(0); } }

.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); position: relative; cursor: pointer; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 0; overflow: hidden; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 30px; flex: 1; }
.notice { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; max-width: 580px; margin-bottom: 22px; padding: 12px 16px; border-radius: 14px; font-size: 15px;
  border: 1px solid color-mix(in srgb, var(--warm) 55%, transparent); background: color-mix(in srgb, var(--warm) 12%, var(--surface)); }
.notice strong { font-family: var(--font-head); }
.notice span { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 12.5px var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section .eyebrow::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); width: auto; height: auto; background: none; color: var(--muted); padding-right: 12px; border-right: 2px solid var(--green); }
.hero h1 { font-size: clamp(46px, 7.5vw, 116px); font-weight: 700; margin: 22px 0 26px; letter-spacing: -.05em; line-height: .94; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .line > span { display: inline-block; transition: transform 1.1s var(--ease); }
.js .hero h1 .line > span { transform: translateY(115%) rotate(4deg); transform-origin: left bottom; }
.js .is-ready .hero h1 .line > span { transform: none; }
.is-ready .hero h1 .line:nth-child(2) > span { transition-delay: .09s; }
.is-ready .hero h1 .line:nth-child(3) > span { transition-delay: .18s; }
.text-volt { background: linear-gradient(100deg, var(--green) 0%, #8fe0ff 40%, var(--blue) 65%, var(--green) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: volt-flow 6s linear infinite; padding-right: .06em; }
:root[data-theme="light"] .text-volt { background-image: linear-gradient(100deg, var(--green) 0%, #0a9bd4 40%, var(--blue) 65%, var(--green) 100%); }
@keyframes volt-flow { to { background-position: -220% 0; } }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 40px; font-size: 14px; }
.js .hero__copy > :not(h1) { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease) .35s, transform .9s var(--ease) .35s; }
.js .is-ready .hero__copy > :not(h1) { opacity: 1; transform: none; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); font-weight: 500; font-size: 14px; }
.led { width: 9px; height: 9px; border-radius: 50%; background: #ff5a4f; box-shadow: 0 0 8px #ff5a4f; flex: none; }
.led.is-on { background: #3dff6a; box-shadow: 0 0 10px #3dff6a; animation: led-pulse 2s infinite; }
@keyframes led-pulse { 50% { box-shadow: 0 0 2px #3dff6a; } }
.innung { height: 34px; width: auto; border-radius: 6px; background: #fff; padding: 3px 6px; }

.hero__stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; display: grid; place-items: center; transform: translate3d(var(--sx, 0), var(--sy, 0), 0); }
.hero__stage .mark { position: relative; z-index: 2; width: 78%; margin-left: 6%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)); transition: filter .4s; }
#heroMark .mark__ring { stroke-width: 4; opacity: 1; stroke-dasharray: .2 .8; animation: ring-run 4.5s linear infinite; }
#heroMark.is-boot .mark__ring { animation: draw 1s var(--ease) .15s both; stroke-dasharray: 1; }
#heroMark .mark__disc { stroke: var(--line-2); stroke-width: 1.5; }
@keyframes ring-run { to { stroke-dashoffset: -1; } }
.hero__stage.is-charged .mark__bolt { animation: zap .28s steps(2) infinite; }
.hero__stage.is-charged .mark { filter: drop-shadow(0 0 40px color-mix(in srgb, var(--blue) 55%, transparent)); }
.hero__rings { position: absolute; inset: 0; z-index: 1; }
.hero__rings i { position: absolute; left: 38.5%; top: 50%; width: 56%; aspect-ratio: 1; margin: -28% 0 0 -28%; border-radius: 50%; border: 1px solid var(--blue); opacity: 0; animation: ring-out 4.5s linear infinite; }
.hero__rings i:nth-child(2) { animation-delay: 1.5s; } .hero__rings i:nth-child(3) { animation-delay: 3s; }
@keyframes ring-out { 0% { transform: scale(.98); opacity: .5; } 100% { transform: scale(1.75); opacity: 0; } }
.readout { position: absolute; z-index: 3; left: 2%; bottom: 3%; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 500 12px var(--font-head); letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.readout span { display: inline-flex; align-items: baseline; gap: 6px; }
.readout i { font-style: italic; }
.readout b { font-size: 15px; color: var(--text); min-width: 4ch; text-align: right; }
.readout__ok { color: var(--green); align-items: center !important; }
.readout__ok i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.hero__foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding-block: 26px; padding-right: 70px; font: 500 11.5px var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue span { width: 1px; height: 34px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; inset: 0; background: var(--green); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; position: relative; z-index: 2; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 46s linear infinite; transform-origin: center; will-change: transform; }
.ticker__item { display: inline-flex; align-items: center; padding: 18px 0; font: 700 clamp(38px, 6.6vw, 100px)/1 var(--font-head); letter-spacing: -.04em; white-space: nowrap; text-transform: uppercase; }
.ticker__item span { display: inline-flex; align-items: center; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: color .3s; }
.ticker__item span:nth-child(3n+1) { color: var(--text); -webkit-text-stroke: 0; }
.ticker__item span::after { content: ""; width: .42em; height: .62em; margin: 0 .42em; background: var(--grad); clip-path: polygon(70% 0, 12% 56%, 46% 56%, 30% 100%, 88% 42%, 54% 42%); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Abschnittsköpfe & Einblenden ---------- */
.section-head { display: grid; gap: 20px; max-width: 800px; margin-bottom: clamp(40px, 5.5vw, 66px); }
.smart .section-head, .baustrom__grid .section-head { margin-bottom: 0; }
.section-head--center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head h2, .career__top h2 { font-size: clamp(34px, 5vw, 68px); font-weight: 700; letter-spacing: -.04em; }
.section-head p { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 640px; }
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform .95s var(--ease); transition-delay: calc(var(--i) * 45ms + .05s); }
.is-in .split .w > span, .split.is-in .w > span { transform: none; }

/* ---------- Leistungen: der Verteiler ---------- */
.board { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding: 16px 20px; margin-bottom: 18px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: repeating-linear-gradient(90deg, transparent 0 46px, var(--line) 46px 47px), color-mix(in srgb, var(--surface) 85%, transparent); }
.board__label { display: grid; gap: 2px; margin-right: auto; }
.board__label b { font: 600 13px var(--font-head); letter-spacing: .18em; text-transform: uppercase; }
.board__label span { font-size: 14px; color: var(--muted); }
.board__state { display: inline-flex; align-items: center; gap: 10px; font: 600 13px var(--font-head); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.main-switch { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font: 600 14px var(--font-head); transition: border-color .3s; }
.main-switch:hover { border-color: var(--green); }
.main-switch__knob { width: 46px; height: 26px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); position: relative; }
.main-switch__knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .3s var(--spring), background .3s, box-shadow .3s; }
.main-switch[aria-pressed="true"] .main-switch__knob::after { transform: translateX(20px); background: var(--green); box-shadow: 0 0 12px var(--green); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; border-radius: var(--radius); padding: 28px; background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .4s, opacity .9s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--blue) 16%, transparent), transparent 46%); }
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 23px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card ul { margin-top: 14px; display: grid; gap: 7px; }
.card li { position: relative; padding-left: 20px; font-size: 15px; color: var(--muted); }
.card li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 2px; background: var(--green); }

.svc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); transform-origin: left; transition: transform .7s var(--ease); }
.svc__top { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.card__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; flex: none; color: var(--on-accent); background: var(--grad); box-shadow: 0 10px 30px -12px var(--blue); transition: background .4s, color .4s, box-shadow .4s; }
.card__icon svg { width: 30px; height: 30px; }
.card__icon .draw { stroke-dasharray: 60; }
.svc.is-kick .card__icon .draw, .svc:hover .card__icon .draw { animation: icon-draw 1s var(--ease) both; }
@keyframes icon-draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
.svc__tag { margin-left: auto; font: 600 11.5px var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.breaker { position: relative; width: 36px; height: 56px; padding: 0; border-radius: 8px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface-2), var(--bg)); cursor: pointer; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.breaker::before { content: ""; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #3dff6a; box-shadow: 0 0 8px #3dff6a; transition: .3s; }
.breaker span { position: absolute; left: 7px; right: 7px; top: 6px; height: 24px; border-radius: 5px; background: linear-gradient(180deg, #46d977, #159a41); box-shadow: 0 2px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .22s var(--spring), background .2s; }
.breaker:hover { border-color: var(--green); }
.svc.is-off .breaker span { transform: translateY(13px); background: linear-gradient(180deg, #4a515d, #23272f); }
.svc.is-off .breaker::before { background: #ff5a4f; box-shadow: 0 0 6px #ff5a4f; }
.svc.is-off::before { transform: scaleX(0); }
.svc.is-off .card__icon { background: var(--surface-2); color: var(--muted); box-shadow: none; }
.svc.is-off > :not(.svc__top) { opacity: .42; }
.svc > :not(.svc__top) { transition: opacity .5s; }
.svc.is-kick { animation: power-on .5s steps(1); }
@keyframes power-on { 0% { filter: brightness(1.9) } 15% { filter: brightness(.7) } 30% { filter: brightness(1.5) } 50% { filter: brightness(.9) } 70% { filter: brightness(1.2) } 100% { filter: none } }
.svc--wide { grid-column: span 2; }
.services__cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: center; padding: 26px; border-radius: var(--radius); border: 1px dashed var(--line-2); text-align: center; }
.services__cta strong { font: 600 22px var(--font-head); }

/* ---------- Smart Home ---------- */
.smart__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 5vw, 76px); align-items: center; }
.feature-list { display: grid; gap: 18px; margin-top: 34px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.feature__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--green); background: var(--surface); }
.feature__ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }

.room { --dark: .78; --lamp: 0; position: relative; border-radius: 28px; border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.room__scene { position: relative; aspect-ratio: 16 / 10.5; background: #0b1019; overflow: hidden; }
.room__scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.room__dark { position: absolute; inset: 0; background: #020408; opacity: var(--dark); transition: opacity .8s var(--ease); pointer-events: none; mix-blend-mode: multiply; }
.room__glow { opacity: var(--lamp); transition: opacity .6s var(--ease); }
.room__blind { transition: transform 1.4s var(--ease); transform-origin: 485px 64px; }
.room[data-blinds="up"] .room__blind { transform: scaleY(.07); }
.room__sun { opacity: 0; transition: opacity 1.4s var(--ease); }
.room[data-blinds="up"] .room__sun { opacity: 1; }
.room__heat { opacity: 0; transition: opacity .6s; }
.room[data-heat="on"] .room__heat { opacity: 1; }
.room__heat path { animation: heat-rise 2.4s ease-in-out infinite; }
.room__heat path:nth-child(2) { animation-delay: .6s; } .room__heat path:nth-child(3) { animation-delay: 1.2s; }
@keyframes heat-rise { 0% { transform: translateY(6px); opacity: 0 } 40% { opacity: .9 } 100% { transform: translateY(-14px); opacity: 0 } }
.room__plug-led { fill: #333; transition: fill .3s; }
.room[data-plug="on"] .room__plug-led { fill: #3dff6a; }
.room__tv { fill: #05070b; transition: fill .4s; }
.room[data-plug="on"] .room__tv { fill: url(#tvGrad); }
.room__tvglow { position: absolute; left: 6%; top: 12%; width: 46%; height: 60%; background: radial-gradient(closest-side, rgba(60, 170, 255, .5), transparent); opacity: 0; transition: opacity .5s; pointer-events: none; mix-blend-mode: screen; }
.room[data-plug="on"] .room__tvglow { opacity: 1; animation: tv 3.2s steps(6) infinite; }
@keyframes tv { 20% { opacity: .6 } 40% { opacity: 1 } 60% { opacity: .75 } 80% { opacity: .9 } }
.room__badge, .room__temp { position: absolute; top: 16px; padding: 7px 12px; border-radius: 10px; background: rgba(5, 8, 14, .72); border: 1px solid rgba(255, 255, 255, .12); color: #e6f1ff; font: 600 12px var(--font-head); letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; gap: 8px; align-items: center; }
.room__badge { left: 16px; } .room__badge i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a4f; animation: led-blink 1.4s infinite; }
@keyframes led-blink { 50% { opacity: .25; } }
.room__temp { right: 16px; font-size: 14px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.room__scenes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 14px 0; }
.room__scenes > span { font: 600 11.5px var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.scene { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: none; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: .25s; }
.scene:hover { border-color: var(--green); }
.scene.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.room__panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; }
.tile { display: grid; justify-items: start; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); text-align: left; transition: background .3s, border-color .3s, transform .2s; cursor: pointer; }
.tile:active { transform: scale(.96); }
.tile svg { width: 22px; height: 22px; color: var(--muted); transition: color .3s; }
.tile b { font-size: 14px; font-weight: 600; }
.tile small { font-size: 12px; color: var(--muted); }
.tile[aria-pressed="true"] { border-color: color-mix(in srgb, var(--green) 60%, transparent); background: color-mix(in srgb, var(--green) 13%, var(--surface-2)); }
.tile[aria-pressed="true"] svg { color: var(--green); }
.dimmer { display: grid; grid-template-columns: auto 1fr 52px; gap: 14px; align-items: center; padding: 4px 18px 18px; font-size: 13.5px; color: var(--muted); }
.dimmer output { text-align: right; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.dimmer input { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--warm) var(--v, 80%), var(--line-2) var(--v, 80%)); outline-offset: 6px; cursor: pointer; }
.dimmer input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--warm); box-shadow: 0 0 14px color-mix(in srgb, var(--warm) 60%, transparent); }
.dimmer input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--warm); }

/* ---------- Baustrom ---------- */
.baustrom__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 76px); align-items: center; }
.stack { position: relative; aspect-ratio: 4 / 4.4; }
.stack img { position: absolute; width: 58%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line-2); transition: transform .8s var(--ease); }
.stack img:nth-child(1) { left: 0; top: 6%; transform: rotate(-6deg); z-index: 2; }
.stack img:nth-child(2) { left: 21%; top: 0; transform: rotate(2deg); z-index: 3; }
.stack img:nth-child(3) { right: 0; top: 10%; transform: rotate(7deg); z-index: 1; }
.stack:hover img:nth-child(1) { transform: rotate(-11deg) translateX(-7%); }
.stack:hover img:nth-child(2) { transform: rotate(0) translateY(-3%) scale(1.03); }
.stack:hover img:nth-child(3) { transform: rotate(12deg) translateX(7%); }
.stack__badge { position: absolute; left: 4%; bottom: 2%; z-index: 4; padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); max-width: 250px; }
.stack__badge b { font: 700 34px var(--font-head); display: block; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.03em; }
.stack__badge span { font-size: 13px; color: var(--muted); }
.steps { display: grid; margin: 30px 0 28px; counter-reset: s; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 22px; }
.step::before { counter-increment: s; content: counter(s); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 16px var(--font-head); border: 1.5px solid var(--line-2); background: var(--bg); position: relative; z-index: 2; transition: .4s; }
.step::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::after, .step:last-child .wire { display: none; }
.step.is-in::before { border-color: var(--green); color: var(--on-accent); background: var(--green); box-shadow: 0 0 20px color-mix(in srgb, var(--green) 50%, transparent); }
.step .wire { position: absolute; left: 21px; top: 44px; width: 2px; height: 0; background: linear-gradient(var(--green), var(--blue)); transition: height 1s var(--ease) .2s; z-index: 1; }
.step.is-in .wire { height: calc(100% - 44px); }
.step h3 { font-size: 18px; margin: 10px 0 2px; }
.step p { color: var(--muted); font-size: 15px; }
.note { font-size: 14px; color: var(--muted); padding: 14px 16px; border-left: 3px solid var(--green); background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 0 12px 12px 0; margin-bottom: 28px; }

/* ---------- Ablauf ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.process__wire { position: absolute; left: 12.5%; right: 12.5%; top: 43px; height: 2px; background: var(--line); }
.process__wire span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--grad); transition: transform 2s var(--ease) .2s; }
.process.is-in .process__wire span { transform: scaleX(1); }
.pstep { position: relative; text-align: center; padding: 0 8px; }
.pstep__node { width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--muted); transition: .5s var(--ease); transition-delay: var(--d); }
.pstep__node svg { width: 34px; height: 34px; }
.process.is-in .pstep__node { color: var(--on-accent); background: var(--grad); border-color: transparent; box-shadow: 0 0 0 7px color-mix(in srgb, var(--blue) 10%, transparent), var(--glow); }
.pstep h3 { font-size: 20px; margin-bottom: 6px; }
.pstep p { font-size: 15px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 8vw, 110px); border-block: 1px solid var(--line-2); }
.stat { padding: 34px 26px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 700 clamp(48px, 7vw, 104px)/.9 var(--font-head); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat:last-child b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ---------- Referenzen ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter { padding: 10px 17px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 14px; font-weight: 500; color: var(--muted); transition: .25s; cursor: pointer; }
.filter:hover { color: var(--text); border-color: var(--green); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.gallery { columns: 3 280px; column-gap: 16px; }
.shot { break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: block; width: 100%; background: var(--surface); cursor: zoom-in; }
.shot img { width: 100%; height: auto; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.85) contrast(1.02); }
.shot:hover img { transform: scale(1.07); filter: saturate(1.1); }
.shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.shot:hover::after, .shot:focus-visible::after { transform: scaleX(1); }
.shot figcaption { position: absolute; inset: auto 0 0 0; padding: 50px 18px 18px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); transform: translateY(24%); opacity: 0; transition: .45s var(--ease); }
.shot:hover figcaption, .shot:focus-visible figcaption { transform: none; opacity: 1; }
.shot figcaption b { display: block; font: 600 18px var(--font-head); }
.shot figcaption small { color: #c2cfe0; font-size: 13px; }
.shot.is-hidden { display: none; }
.shot__cat { display: none; }
.shot:not(:has(img)) { padding: 26px; cursor: default; background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 16%, var(--surface)), var(--surface)); }
.shot:not(:has(img))::before { content: ""; display: block; width: 34px; height: 34px; margin-bottom: 18px; background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5 10-5z'/%3E%3Cpath d='M6 12v5c3 2 9 2 12 0v-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5 10-5z'/%3E%3Cpath d='M6 12v5c3 2 9 2 12 0v-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.shot:not(:has(img)) figcaption { position: static; padding: 0; background: none; color: var(--text); transform: none; opacity: 1; }
.shot:not(:has(img)) figcaption b { font-size: 20px; }
.shot:not(:has(img)) figcaption small { color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; background: rgba(3, 5, 9, .93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; padding: 60px 16px; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox.no-t { transition: none; }
.lightbox img { max-height: 80vh; max-width: min(1100px, 100%); width: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox__cap { color: #cdd8e6; margin-top: 14px; text-align: center; font-size: 15px; }
.lightbox__btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; cursor: pointer; transition: .25s; }
.lightbox__btn:hover { background: #2aa3ff; border-color: #2aa3ff; }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; margin-top: -25px; }
.lightbox__next { right: 18px; top: 50%; margin-top: -25px; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member { padding: 26px; }
.team__list { display: contents; }
.team__list > .member:nth-child(4n+2) { --d: .08s; }
.team__list > .member:nth-child(4n+3) { --d: .16s; }
.team__list > .member:nth-child(4n+5) { --d: .08s; }
.team__list > .member:nth-child(4n+6) { --d: .16s; }
.team__list > .member:nth-child(4n+7) { --d: .24s; }
.member .avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px; position: relative; background: #0b0d10; color: #fff; font: 600 24px var(--font-head); letter-spacing: -.02em; border: 1px solid rgba(255, 255, 255, .14); }
.member .avatar::after { content: ""; position: absolute; right: -9px; top: 2px; width: 18px; height: 30px; background: linear-gradient(180deg, #23b04f 50%, #2aa3ff 50%); clip-path: polygon(82% 0, 18% 54%, 52% 51%, 22% 100%, 86% 42%, 54% 45%); transition: filter .3s; }
.member:hover .avatar::after { animation: zap .4s steps(2) 2; }
.member h3 { font-size: 21px; margin-bottom: 0; }
.member .role { color: var(--blue); font-size: 14px; font-weight: 600; margin-top: 6px; }
.member ul { margin-top: 14px; }
.member--lead { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: 0 24px; align-items: center; align-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--green) 12%, var(--surface)), color-mix(in srgb, var(--blue) 8%, var(--surface))); }
.member--lead .avatar { width: 104px; height: 104px; font-size: 34px; margin: 0 8px 0 0; grid-row: span 3; }
.member--lead h3 { font-size: 30px; }
.member--lead p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }

/* ---------- Karriere ---------- */
.career { border-radius: 32px; border: 1px solid var(--line-2); background: var(--surface); padding: clamp(28px, 5vw, 68px); position: relative; overflow: hidden; }
.career::before { content: ""; position: absolute; right: -140px; top: -140px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--green) 22%, transparent), transparent 65%); animation: breathe 7s ease-in-out infinite; }
.career::after { content: ""; position: absolute; left: -160px; bottom: -200px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--blue) 16%, transparent), transparent 65%); animation: breathe 9s ease-in-out infinite reverse; }
@keyframes breathe { 50% { transform: scale(1.25); } }
.career > * { position: relative; z-index: 1; }
.career__top { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: end; margin-bottom: 44px; }
.career__title { margin-top: 18px; }
.career__du { font: 700 clamp(26px, 3.2vw, 40px) var(--font-head); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.career__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.career__col { padding: 24px; border-radius: 20px; background: color-mix(in srgb, var(--surface-2) 80%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.career__col h3 { font-size: 18px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.career__col h3 svg { width: 22px; height: 22px; color: var(--green); }
.career__col li { position: relative; padding-left: 20px; font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.career__col li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 2px; background: var(--green); }
.career__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }
.career__cta p { color: var(--muted); font-size: 15px; }

/* ---------- Kontakt ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 50px); align-items: start; }
.info-list { display: grid; gap: 12px; }
.info { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 90%, transparent); transition: border-color .3s, transform .4s var(--ease); }
a.info:hover { border-color: var(--green); transform: translateX(6px); }
.info__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--blue); }
.info__ic svg { width: 22px; height: 22px; }
.info small { display: block; color: var(--muted); font-size: 13px; }
.info b { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.info .arrow { width: 18px; height: 18px; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
a.info:hover .arrow { transform: translateX(4px); color: var(--green); }
.hours { margin-top: 12px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 90%, transparent); }
.hours__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.hours__head h3 { font-size: 19px; }
.hours table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 9px 0; border-top: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today td { color: var(--green); font-weight: 600; }
.hours p { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

.form { padding: clamp(22px, 3.5vw, 40px); border-radius: 26px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); }
.form h3 { font-size: 28px; margin-bottom: 6px; }
.form > p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; margin-bottom: 14px; }
.field input, .field textarea, .field select { width: 100%; padding: 23px 16px 9px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px; transition: border-color .25s, box-shadow .25s; appearance: none; -webkit-appearance: none; }
.field textarea { min-height: 140px; resize: vertical; display: block; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field label { position: absolute; left: 17px; top: 16px; font-size: 16px; color: var(--muted); pointer-events: none; transition: .2s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 16%, transparent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field select + label { top: 7px; font-size: 12px; color: var(--green); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 20px; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--green); flex: none; }
.check a { color: var(--blue); text-decoration: underline; }
.form .btn { width: 100%; }
.form__msg { margin-top: 14px; font-size: 14px; color: var(--green); min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 0 0 30px; background: var(--bg-2); overflow: hidden; }
.footer__claim { overflow: hidden; white-space: nowrap; line-height: .8; padding: 40px 0 10px; user-select: none; }
.footer__claim { text-align: center; }
.footer__claim span { display: inline-block; font: 700 clamp(56px, 15.4vw, 300px)/.85 var(--font-head); letter-spacing: -.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-top: 40px; }
.footer p, .footer li { color: var(--muted); font-size: 15px; }
.footer h4 { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer li { margin-bottom: 8px; }
.footer a { transition: color .25s; }
.footer a:hover { color: var(--green); }
.footer__bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer .brand { margin-bottom: 16px; }
body > .footer:has(> .footer__bottom) { padding-top: 30px; }

.fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .7); transition: transform .35s var(--spring); }
.fab:hover { transform: scale(1.1) rotate(-8deg); }
.fab svg { width: 28px; height: 28px; }

/* ---------- Rechtliches ---------- */
.legal { padding: 150px 0 100px; position: relative; z-index: 2; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 6vw, 72px); margin-bottom: 30px; overflow-wrap: anywhere; hyphens: auto; letter-spacing: -.04em; }
.legal h2 { font-size: 24px; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal a { color: var(--blue); }
.legal .box { padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line-2); border-radius: 24px; background: var(--surface); }

/* ---------- Scrollgesteuerte Animationen (moderne Browser) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero__grid { animation: hero-out linear both; animation-timeline: view(); animation-range: exit 10% exit 90%; }
    @keyframes hero-out { to { opacity: 0; transform: translateY(-60px) scale(.96); filter: blur(6px); } }
    .footer__claim span { animation: claim-in linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    @keyframes claim-in { from { transform: translateX(-12%) scale(.86); opacity: .2; } }
    .stack { animation: stack-par linear both; animation-timeline: view(); }
    @keyframes stack-par { from { transform: translateY(50px); } to { transform: translateY(-50px); } }
    .career::before { animation: breathe 7s ease-in-out infinite; }
    .shot img { animation: shot-par linear both; animation-timeline: view(); scale: 1.12; }
    @keyframes shot-par { from { translate: 0 -4%; } to { translate: 0 4%; } }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .5s var(--ease); z-index: -1; }
  .nav a { padding: 14px 6px; font: 600 22px var(--font-head); border-bottom: 1px solid var(--line); color: var(--text); }
  .nav a::after { display: none; }
  .nav-open .nav { transform: none; }
  .burger { display: block; }
  .header__phone { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero__grid, .smart__grid, .baustrom__grid, .contact__grid, .career__top { grid-template-columns: 1fr; }
  .hero { padding-top: 96px; }
  .hero__stage { max-width: 300px; order: -1; margin-bottom: 6px; }
  .readout { display: none; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .process__wire { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .career__cols { grid-template-columns: 1fr; }
  .stack { max-width: 460px; margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .brand .mark { width: 44px; }
  .wordmark__main { font-size: 18px; }
  .services, .team { grid-template-columns: 1fr; }
  .svc--wide, .member--lead { grid-column: auto; }
  .member--lead { grid-template-columns: 1fr; }
  .member--lead .avatar { grid-row: auto; margin-bottom: 20px; }
  .room__panel { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__foot span:last-child { display: none; }
  .switch { width: 40px; height: 48px; }
  .switch__rocker { height: 30px; }
  .info { grid-template-columns: 44px 1fr; }
  .info .arrow { display: none; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; }
  .hide-sm { display: none; }
  .board__state { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero__copy > :not(h1) { opacity: 1; transform: none; }
  .js .hero h1 .line > span, .split .w > span { transform: none; }
  .hero__rings { display: none; }
}
