/* =========================================================
   Rozan GmbH – Lüftungsmontage
   ========================================================= */

:root {
  --blue: #004AAD;
  --blue-700: #003A8A;
  --blue-500: #1D66CF;
  --blue-300: #6C9BE0;
  --blue-50: #EEF3FB;
  --ink: #13171C;
  --ink-2: #2A313B;
  --muted: #5E6876;
  --line: #E3E8EF;
  --bg: #FFFFFF;
  --soft: #F5F7FB;
  --navy: #061630;
  --navy-2: #0B2148;

  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Inter, Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

body.is-locked { overflow: hidden; }

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

section[id], main[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

/* ---------- Eyebrow / Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 74, 173, .14);
}
.eyebrow--light { color: #9DBDF0; }
.eyebrow--light .dot { background: #5E95E8; box-shadow: 0 0 0 4px rgba(94, 149, 232, .2); }

.section { padding: clamp(88px, 12vw, 160px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section__title {
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  line-height: 1.05; letter-spacing: -.035em; font-weight: 700; text-wrap: balance;
}
.section__title .muted { color: #7A8494; }
.section__lead { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 620px; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px;
  border-radius: 999px; border: 0; cursor: pointer;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, box-shadow .35s var(--ease), color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 74, 173, .55); }
.btn--primary:hover { background: var(--blue-700); box-shadow: 0 16px 34px -12px rgba(0, 74, 173, .6); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: var(--blue-50); }

/* ---------- Intro ---------- */
.intro { display: none; }
.js .intro.is-active {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 40%, #0A4FB4 0%, #003780 55%, #021D47 100%);
  color: #fff;
  overflow: hidden;
}
.intro__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease;
}
.intro__video.is-ready { opacity: 1; }
.js .intro.intro--video { background: #000; }
.intro--video .intro__flow, .intro--video .intro__center { display: none; }
.intro__flow { position: absolute; inset: 0; }
.intro__flow svg { width: 100%; height: 100%; }
.intro__flow path {
  fill: none; stroke: rgba(160, 200, 255, .35); stroke-width: 1.5;
  stroke-dasharray: 220 1400; stroke-dashoffset: 1620;
  animation: intro-flow 2.6s cubic-bezier(.45, 0, .2, 1) forwards;
}
.intro__flow path:nth-child(2) { animation-delay: .15s; }
.intro__flow path:nth-child(3) { animation-delay: .3s; }
.intro__flow path:nth-child(4) { animation-delay: .45s; }
@keyframes intro-flow { to { stroke-dashoffset: 0; } }

.intro__center { position: relative; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 26px); }
.intro__mark { width: clamp(64px, 11vw, 112px); height: auto; overflow: visible; }
.intro__mark polygon { fill: #fff; opacity: 0; }
.intro__mark .p-a { animation: piece-a .9s var(--ease) .25s forwards; }
.intro__mark .p-b { animation: piece-b .9s var(--ease) .4s forwards; }
.intro__mark .p-c { animation: piece-c .9s var(--ease) .55s forwards; }
@keyframes piece-a { from { opacity: 0; transform: translate(700px, -700px); } to { opacity: 1; transform: none; } }
@keyframes piece-b { from { opacity: 0; transform: translate(-800px, 0); } to { opacity: 1; transform: none; } }
@keyframes piece-c { from { opacity: 0; transform: translate(700px, 700px); } to { opacity: 1; transform: none; } }

.intro__word { display: flex; flex-direction: column; overflow: hidden; }
.intro__name {
  font-size: clamp(46px, 8.6vw, 92px); font-weight: 800; letter-spacing: .02em; line-height: .95;
  transform: translateY(105%); animation: rise .9s var(--ease) .85s forwards;
}
.intro__sub {
  font-size: clamp(11px, 1.55vw, 16.5px); font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  margin-top: 8px; opacity: 0; animation: fade .8s ease 1.3s forwards;
}
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: .9; } }

.intro__skip {
  position: absolute; right: 20px; bottom: max(20px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 14px; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .2s;
}
.intro__skip:hover { background: rgba(255, 255, 255, .22); }

.intro.is-leaving { animation: intro-out 1s cubic-bezier(.76, 0, .24, 1) forwards; }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); } }
.intro.is-leaving .intro__center { transition: transform 1s cubic-bezier(.76, 0, .24, 1), opacity .6s; transform: translateY(-80px); opacity: 0; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #3E86EE); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: transform .5s var(--ease), background-color .35s, box-shadow .35s;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(19, 23, 28, .07);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.header__logo { flex-shrink: 0; }
.header__logo img { height: 38px; width: auto; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.nav a:hover { background: rgba(0, 74, 173, .07); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--blue);
}

.burger {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: 12px; z-index: 102; -webkit-tap-highlight-color: transparent;
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .45s var(--ease), background-color .3s;
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 16px) 24px max(32px, env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s .4s;
}
.mobile-menu[hidden] { display: none; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-size: clamp(34px, 10vw, 46px); font-weight: 700; letter-spacing: -.03em; padding: 6px 0;
  transform: translateY(18px); opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease), color .2s;
}
.mobile-menu nav a:active { color: var(--blue); }
.menu-open .mobile-menu nav a { transform: none; opacity: 1; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .2s; }
.mobile-menu nav a[aria-current="page"] { color: var(--blue); }
.mobile-menu__mail { margin-top: 40px; color: var(--blue); font-weight: 600; }
.menu-open .header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 32px) 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, #F7F9FD 0%, #FFFFFF 100%);
}
.hero__air { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 40px; }
.hero__title {
  font-size: clamp(2.5rem, 6.6vw, 5.6rem);
  line-height: 1; letter-spacing: -.045em; font-weight: 750;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--blue); }
.hero__lead { margin-top: 26px; max-width: 520px; text-wrap: pretty; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.hero__visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: end; }
.hero__glow {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 102, 207, .22), rgba(29, 102, 207, 0) 68%);
  filter: blur(10px);
}
.hero__mark { position: relative; width: 100%; height: 100%; overflow: visible; }
.hp { will-change: transform; }
.hp polygon { filter: drop-shadow(0 40px 60px rgba(0, 58, 138, .25)); }

/* Hero entrance */
.js .hero__title .line > span,
.js .hero .eyebrow, .js .hero__lead, .js .hero__actions { opacity: 0; transform: translateY(110%); }
.js .hero .eyebrow, .js .hero__lead, .js .hero__actions { transform: translateY(24px); }
.js .hero__visual { opacity: 0; transform: scale(.92); }
.is-ready .hero__title .line > span,
.is-ready .hero .eyebrow, .is-ready .hero__lead, .is-ready .hero__actions,
.is-ready .hero__visual {
  opacity: 1; transform: none;
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease);
}
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.is-ready .hero__lead { transition-delay: .2s; }
.is-ready .hero__actions { transition-delay: .3s; }
.is-ready .hero__visual { transition-delay: .1s; transition-duration: 1.4s; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px;
  border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(19, 23, 28, .25);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 22px 0; background: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; letter-spacing: -.02em; color: var(--ink-2); white-space: nowrap; }
.marquee i { width: 8px; height: 8px; background: var(--blue); transform: rotate(45deg); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(calc(-50% - 17px)); } }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding-top: clamp(80px, 10vw, 130px); padding-bottom: clamp(80px, 10vw, 130px);
}
.stat { padding: 8px 0 0; border-top: 2px solid var(--ink); }
.stat__num {
  display: flex; align-items: flex-start;
  font-size: clamp(3.4rem, 7vw, 6rem); font-weight: 750; letter-spacing: -.05em; line-height: 1;
  margin-top: 22px; font-variant-numeric: tabular-nums;
}
.stat__num sup { font-size: .45em; color: var(--blue); margin-left: 4px; line-height: 1.2; top: 0; }
.stat__label { margin-top: 14px; color: var(--muted); font-size: 15.5px; max-width: 220px; }

/* ---------- Scroll-to-play build ---------- */
.build { position: relative; height: 640vh; background: var(--navy); color: #fff; }
.build__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(70% 60% at 75% 55%, rgba(29, 102, 207, .28), rgba(29, 102, 207, 0) 70%),
    linear-gradient(180deg, var(--navy) 0%, #071A3A 100%);
}
.build__inner {
  height: 100%; display: grid; grid-template-columns: minmax(340px, .74fr) 1.26fr; align-items: center; gap: 40px;
  padding-top: var(--header-h); padding-bottom: 24px;
}
.build__title { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; max-width: 460px; }
.build__steps { margin-top: 40px; display: grid; gap: 6px; }
.build__steps li {
  display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 14px 0;
  opacity: .35; transition: opacity .5s var(--ease);
}
.build__steps li.is-active { opacity: 1; }
.build__steps .n { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #7FA9EC; padding-top: 4px; font-variant-numeric: tabular-nums; }
.build__steps h3 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.build__steps p {
  color: #A9BAD6; font-size: 15.5px; max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .6s var(--ease), opacity .5s var(--ease), margin .6s var(--ease);
}
.build__steps li.is-active p { max-height: 80px; opacity: 1; margin-top: 4px; }

.build__stage {
  position: relative; height: min(76vh, 700px); container-type: size;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
}

/* Montage-Grafik (2D): alle Ebenen im Koordinatensystem 1043 × 590 */
.shot {
  position: relative; flex: none;
  width: 100%; width: min(100cqw, (100cqh - 80px) * 1.7678); aspect-ratio: 1043 / 590;
  border-radius: 18px; overflow: hidden; isolation: isolate;
  background: #F2F5F9;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 30px 80px -30px rgba(0, 0, 0, .7);
}
.shot__unit, .shot__duct, .shot__details, .shot__shadows ellipse { opacity: 0; }
.shot__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.shot__plan, .shot__laser, .shot__seams { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.shot__plan .ln { stroke: #9CC3FF; stroke-width: 2.4; fill: none; }
.shot__plan .ln--thin { stroke-width: 1.6; opacity: .8; }
.shot__plan .ln--ref { stroke-width: 1.4; opacity: .45; }
.shot__plan .ln--axis { stroke-width: 1.6; stroke-dasharray: 14 8 3 8; opacity: .75; }
.shot__laser { stroke: #FF5A4E; stroke-width: 2; opacity: 0; filter: drop-shadow(0 0 4px rgba(255, 70, 60, .9)); }
.shot__seams path { stroke: #00B8D9; stroke-width: 5; opacity: 0; }
.shot__bolts g { opacity: 0; }
.shot__bolts circle { stroke: #004AAD; stroke-width: 3; fill: #fff; }
.shot__bolts .c { stroke: none; fill: #004AAD; }
.shot__airpath { fill: none; stroke: none; }
.shot__chev { fill: none; stroke: #004AAD; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.shot__tag {
  position: absolute; transform: translate(-50%, -50%); opacity: 0; white-space: nowrap; pointer-events: none;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  padding: 7px 10px; border-radius: 999px; color: #DCE9FF;
  background: rgba(6, 22, 48, .78); box-shadow: 0 0 0 1px rgba(156, 195, 255, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.shot__tag--work { color: #fff; background: rgba(0, 74, 173, .88); box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .5); }
.shot__badge {
  position: absolute; left: 3%; top: 5%; opacity: 0; display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: -.005em; line-height: 1; color: var(--ink);
  padding: 10px 14px 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
}
.shot__badge i { width: 8px; height: 8px; border-radius: 50%; background: #22B573; box-shadow: 0 0 0 4px rgba(34, 181, 115, .22); }
.build__meter {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 16px;
  max-width: 360px; margin: 0 auto;
}
.build__meter-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8AA3C9; }
.build__meter-val { font-size: 28px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.build__meter-bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.build__meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3E86EE, #9CC3FF); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; padding: 30px 26px 32px; border-radius: var(--radius);
  background: var(--soft); border: 1px solid transparent;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); background: #fff; border-color: var(--line); box-shadow: 0 30px 60px -30px rgba(6, 22, 48, .25); }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: #fff; color: var(--blue); margin-bottom: 26px;
  box-shadow: 0 6px 16px -8px rgba(0, 74, 173, .35);
  transition: background-color .35s, color .35s, transform .5s var(--ease);
}
.card:hover .card__icon { background: var(--blue); color: #fff; transform: rotate(-6deg) scale(1.05); }
.card__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.card--accent { background: var(--blue); color: #fff; display: flex; flex-direction: column; }
.card--accent:hover { background: var(--blue-700); border-color: transparent; }
.card--accent h3 { font-size: 22px; margin-top: auto; }
.card--accent p { color: rgba(255, 255, 255, .78); }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.card--accent:hover .card__link svg { transform: translateX(4px); }

/* ---------- About ---------- */
.about { background: var(--soft); }
.about__statement {
  font-size: clamp(1.75rem, 4.4vw, 3.6rem);
  line-height: 1.16; letter-spacing: -.035em; font-weight: 650;
  max-width: 1080px; text-wrap: balance;
}
.about__statement .w { color: var(--ink); opacity: .14; transition: opacity .25s linear; }
.about__statement .w.is-on { opacity: 1; }
.about__statement .w.is-blue { color: var(--blue); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(64px, 8vw, 110px); }
.value { padding: 32px 28px; background: #fff; border-radius: var(--radius); }
.value__n { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--blue); }
.value h3 { font-size: 22px; letter-spacing: -.02em; margin: 34px 0 10px; font-weight: 650; }
.value p { color: var(--muted); font-size: 15.5px; }

/* ---------- Jobs ---------- */
.job {
  border-radius: 28px; background: #fff; border: 1px solid var(--line);
  padding: clamp(26px, 4vw, 48px);
  box-shadow: 0 40px 80px -50px rgba(6, 22, 48, .3);
}
.job__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.job__title { font-size: clamp(1.6rem, 3.4vw, 2.5rem); letter-spacing: -.035em; font-weight: 700; line-height: 1.1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: 14px; font-weight: 600; }
.job__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-top: 32px; }
.job__cols h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.checks { display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23004AAD' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; background: var(--blue); color: #fff;
  padding: clamp(96px, 13vw, 170px) 0;
}
.cta__mark {
  position: absolute; right: -6%; top: 50%; width: min(56vw, 640px); height: auto;
  transform: translateY(-50%); overflow: visible; pointer-events: none;
}
.cta__mark polygon { fill: rgba(255, 255, 255, .09); will-change: transform; }
.cta__inner { position: relative; }
.cta h2 { font-size: clamp(2.3rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 750; margin-bottom: 40px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 40px; padding: 14px 22px 14px 14px;
  border-radius: 18px; background: var(--soft); transition: background-color .25s, transform .4s var(--ease);
  font-weight: 600; font-size: 17px; max-width: 100%;
}
.contact__mail:hover { background: var(--blue-50); transform: translateY(-2px); }
.contact__mail small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.contact__mail > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.contact__mail-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--blue); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.contact__mail-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.form {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: clamp(20px, 3vw, 36px); border-radius: 28px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(6, 22, 48, .3);
}
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; display: block;
  padding: 26px 16px 10px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--soft);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: #CBD3DE; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 74, 173, .12); }
.field label {
  position: absolute; left: 17px; top: 18px; color: var(--muted); font-size: 16px; pointer-events: none;
  transform-origin: 0 0; transition: transform .25s var(--ease), color .2s;
}
.field label .opt { color: #9AA3B0; font-size: .9em; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(.76); color: var(--blue);
}
.field__err { display: none; font-size: 13.5px; color: #C2341F; margin: 6px 0 0 4px; }
.field.is-invalid input { border-color: #E06450; background: #FFF6F4; }
.field.is-invalid .field__err { display: block; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form__note { font-size: 13.5px; color: var(--muted); max-width: 300px; }
.form__submit.is-loading { pointer-events: none; opacity: .75; }
.form__submit.is-loading svg { animation: nudge .8s ease-in-out infinite alternate; }
@keyframes nudge { to { transform: translateX(6px); } }
.form__error { grid-column: 1 / -1; font-size: 14.5px; color: #C2341F; }

.form__success {
  position: absolute; inset: 0; border-radius: inherit; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px;
  animation: fade-in .6s var(--ease);
}
.form__success[hidden] { display: none; }
.form__success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; margin-bottom: 22px; animation: pop .6s var(--ease); }
.form__success-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.form__success h2, .form__success h3 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 8px; }
.form__success p { color: var(--muted); max-width: 340px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #C3CFE2; padding: 72px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__brand img { height: 40px; width: auto; }
.footer__brand p { margin-top: 20px; max-width: 320px; font-size: 15px; color: #8FA0BC; }
.footer__nav { display: grid; gap: 10px; align-content: start; }
.footer__nav a, .footer__contact a, .footer__bottom a { transition: color .2s; }
.footer__nav a:hover, .footer__contact a:hover, .footer__bottom a:hover { color: #fff; }
.footer__contact a { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: 14px; color: #7F92B2; }
.footer__head { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #6F84A6; margin-bottom: 6px; }
.footer__contact { display: grid; gap: 10px; align-content: start; }
.footer__contact .footer__more { color: #C3CFE2; font-weight: 500; }
.footer__legal { display: flex; gap: 22px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .header__logo img { height: 32px; }

  .hero { padding-bottom: 88px; }
  .hero__inner { grid-template-columns: 1fr; gap: 8px; }
  .hero__visual { order: -1; max-width: 230px; justify-self: start; margin-left: -12px; }

  .build { height: 580vh; }
  .build__inner { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 0; align-content: stretch; align-items: stretch; padding-top: calc(var(--header-h) + 8px); }
  .build__text { order: 2; padding: 22px 0 8px; }
  .build__stage { order: 1; height: auto; min-height: 0; }
  .build .eyebrow { margin-bottom: 10px; }
  .build__title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .build__steps { margin-top: 14px; gap: 0; }
  .build__steps li { padding: 6px 0; grid-template-columns: 36px 1fr; }
  .build__steps li:not(.is-active) { display: none; }
  .build__steps h3 { font-size: 18px; }
  .build__steps p { font-size: 15px; }
  .build__meter { max-width: 280px; }
  .build__meter-val { font-size: 22px; }
  .build__stage { gap: 18px; justify-content: flex-end; }
  .shot { border-radius: 14px; width: min(100cqw, (100cqh - 64px) * 1.7678); }
  .shot__tag { font-size: 10px; padding: 5px 7px; letter-spacing: .04em; }
  .shot__badge { font-size: 11px; padding: 7px 10px 7px 9px; gap: 7px; }

  .contact__grid { grid-template-columns: 1fr; }
  .job__cols { grid-template-columns: 1fr; gap: 28px; }
  .values { grid-template-columns: 1fr; }
  .value h3 { margin-top: 18px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 24px 22px 26px; }
  .card__icon { margin-bottom: 18px; }
  .stats { gap: 40px 18px; }
  .stat__label { font-size: 14px; }
  .form { grid-template-columns: 1fr; border-radius: 22px; }
  .form__foot { flex-direction: column-reverse; align-items: stretch; }
  .form__submit { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .job__head .btn { width: 100%; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
  .cta__mark { width: 90vw; right: -30%; }
}

@media (max-height: 640px) and (max-width: 900px) {
  .build__steps p { display: none; }
  .build__title { display: none; }
}

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

/* =========================================================
   Erweiterungen: mehrere Seiten, Animationen, Übergänge
   ========================================================= */

/* ---------- Weiches Scrollen (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Wortwechsel im Hero ---------- */
.rot { position: relative; display: inline-grid !important; color: var(--blue); }
.rot__w {
  grid-area: 1 / 1; white-space: nowrap;
  opacity: 0; transform: translateY(60%); filter: blur(6px);
  transition: transform .9s var(--ease), opacity .7s var(--ease), filter .7s var(--ease);
}
.rot__w.is-on { opacity: 1; transform: none; filter: none; }
.rot__w.is-out { opacity: 0; transform: translateY(-60%); filter: blur(6px); }
.rot__bar { display: block; width: 120px; height: 3px; margin-top: 22px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rot__bar i { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
.rot__bar.is-run i { animation: rot-bar var(--rot-ms, 2800ms) linear forwards; }
@keyframes rot-bar { to { transform: scaleX(1); } }
.js .rot__bar { opacity: 0; }
.is-ready .rot__bar { opacity: 1; transition: opacity 1s var(--ease) .25s; }

/* ---------- Gemeinsame Bausteine ---------- */
.section--soft { background: var(--soft); }
.section--tight { padding-top: clamp(40px, 6vw, 72px); }
.section__more { margin-top: clamp(36px, 5vw, 56px); }
.section__more .btn svg, .apply .btn svg { width: 18px; height: 18px; }
.cta__soft { color: rgba(255, 255, 255, .62); }

a.card { display: flex; flex-direction: column; }
.card__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px;
  font-size: 15px; font-weight: 600; color: var(--blue); opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.card__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.card:hover .card__more, a.card:focus-visible .card__more { opacity: 1; transform: none; }
@media (hover: none) { .card__more { opacity: 1; transform: none; } }
.card__note { margin-top: 12px; font-size: 13.5px !important; color: var(--blue) !important; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Seitenkopf der Unterseiten ---------- */
.phero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, #F3F6FB 0%, #FFFFFF 100%);
}
.phero__lines { position: absolute; inset: 0; pointer-events: none; }
.phero__lines svg { width: 100%; height: 100%; }
.phero__lines path {
  fill: none; stroke: rgba(0, 74, 173, .14); stroke-width: 1.4; vector-effect: non-scaling-stroke;
  stroke-dasharray: 160 1100; animation: phero-line 9s linear infinite;
}
.phero__lines path:nth-child(2) { animation-duration: 12s; animation-delay: -4s; stroke: rgba(0, 74, 173, .1); }
.phero__lines path:nth-child(3) { animation-duration: 15s; animation-delay: -8s; stroke: rgba(0, 74, 173, .08); }
@keyframes phero-line { from { stroke-dashoffset: 1260; } to { stroke-dashoffset: 0; } }
.phero__inner { position: relative; }
.phero__title {
  font-size: clamp(2.5rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 750;
  text-wrap: balance; max-width: 900px;
}
.phero__title .muted, .contact .muted { color: #7A8494; }
.phero__lead { margin-top: 24px; max-width: 600px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); text-wrap: pretty; }

/* Einblenden beim Laden der Seite */
.js .rise { opacity: 0; transform: translateY(26px); }
.is-ready .rise { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-ready .rise:nth-child(2) { transition-delay: .07s; }
.is-ready .rise:nth-child(3) { transition-delay: .14s; }
.is-ready .rise:nth-child(4) { transition-delay: .21s; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; max-width: 880px; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: color .2s, box-shadow .2s, background-color .2s;
}
.chip:hover { color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }

/* ---------- Dienstleistungen im Detail ---------- */
.svc { padding: clamp(64px, 9vw, 120px) 0; scroll-margin-top: var(--header-h); }
.svc + .svc { border-top: 1px solid var(--line); }
.svc__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.svc--flip .svc__text { order: 2; }
.svc__title { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.svc__list { margin-top: 30px; }
.illu {
  margin: 0; border-radius: 24px; overflow: hidden; background: #F2F5F9;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(6, 22, 48, .35);
}
.illu__svg { width: 100%; height: auto; }
.illu__label { font: 600 13px var(--font); fill: #6B7A90; letter-spacing: .02em; }
.illu__pipe { fill: none; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.illu__pipe--blue { stroke: #BFD6FA; }
.illu__pipe--grey { stroke: #D3DBE6; }
.illu__pipe--out { stroke: #C3CEDD; stroke-width: 14; }
.illu__flow { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 10 22; animation: illu-flow 1.4s linear infinite; }
.illu__flow--wide { stroke-width: 5; stroke-dasharray: 18 26; }
.illu__flow--blue { stroke: #1D66CF; }
.illu__flow--grey { stroke: #6F7F96; }
.illu__flow--rev { animation-direction: reverse; }
@keyframes illu-flow { to { stroke-dashoffset: -32; } }
.illu__spiro { fill: none; stroke: rgba(138, 154, 176, .45); stroke-width: 30; stroke-dasharray: 2 22; }
.illu__drops path:first-child { stroke: #A9B6C8; stroke-width: 10; fill: none; }
.illu__drops path:last-child { fill: #DCE3ED; stroke: #8A9AB0; stroke-width: 2; stroke-linejoin: round; }
.illu__puffs path { fill: none; stroke-width: 3; stroke-linecap: round; opacity: 0; animation: illu-puff 2.4s var(--ease) infinite; }
.illu__puffs--blue path { stroke: #1D66CF; }
.illu__puffs--grey path { stroke: #6F7F96; }
.illu__puffs path:nth-child(2) { animation-delay: .8s; }
.illu__puffs path:nth-child(3) { animation-delay: 1.6s; }
@keyframes illu-puff { 0% { opacity: 0; transform: translateY(-6px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(14px); } }
.illu__puffs--up path { animation-name: illu-puff-up; }
@keyframes illu-puff-up { 0% { opacity: 0; transform: translateY(8px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-12px); } }
.illu__spin { transform-box: fill-box; transform-origin: center; animation: illu-spin 1.1s linear infinite; }
@keyframes illu-spin { to { transform: rotate(360deg); } }
.illu__ping { fill: none; stroke: #22B573; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: illu-ping 2s var(--ease) infinite; }
@keyframes illu-ping { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.2); } }
.illu__steam path { fill: none; stroke: #9AA8BC; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 30 60; opacity: .8; animation: illu-steam 2.2s linear infinite; }
.illu__steam path:nth-child(2) { animation-delay: -.7s; }
.illu__steam path:nth-child(3) { animation-delay: -1.4s; }
@keyframes illu-steam { to { stroke-dashoffset: -90; } }
/* Animationen nur laufen lassen, wenn die Grafik sichtbar ist */
.js .illu:not(.is-live) * { animation-play-state: paused !important; }

/* ---------- Arbeitsweise (Über uns) ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: flow; }
.flow li { padding: 30px 28px 32px; border-radius: var(--radius); background: var(--soft); }
.flow__n { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--blue); }
.flow h3 { font-size: 21px; letter-spacing: -.02em; margin: 26px 0 8px; font-weight: 650; }
.flow p { color: var(--muted); font-size: 15.5px; }

/* ---------- Bewerbung ---------- */
.apply {
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  margin-top: 24px; padding: clamp(26px, 4vw, 44px); border-radius: 28px; background: var(--soft);
}
.apply__title { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.03em; font-weight: 700; margin-bottom: 8px; }
.apply p { color: var(--muted); max-width: 520px; }
.apply__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Kontaktseite ---------- */
.page-contact .contact { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px)); background: linear-gradient(180deg, #F3F6FB 0%, #FFFFFF 50%); }
.page-contact .contact .phero__title { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.form__note a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Rechtliches ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; margin: 40px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-2); }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal__stand { font-size: 14px; color: var(--muted) !important; margin-bottom: 8px; }
mark.todo { background: #FFF1B8; color: #6B4E00; padding: 1px 6px; border-radius: 6px; }

/* ---------- Seitenwechsel ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 900; pointer-events: none;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 40%, #0A4FB4 0%, #003780 55%, #021D47 100%);
  transform: translateY(100%); visibility: hidden;
}
.curtain__mark { width: 64px; height: auto; opacity: 0; transform: scale(.85); }
.curtain__mark polygon { fill: #fff; }
.is-leaving .curtain { visibility: visible; transform: none; transition: transform .55s cubic-bezier(.76, 0, .24, 1); pointer-events: auto; }
.is-leaving .curtain__mark { opacity: 1; transform: none; transition: opacity .4s ease .2s, transform .5s var(--ease) .15s; }
.is-entering .curtain { visibility: visible; transform: none; }
.is-entering .curtain__mark { opacity: 1; transform: none; }
.is-entered .curtain { visibility: visible; transform: translateY(-100%); transition: transform .75s cubic-bezier(.76, 0, .24, 1), visibility 0s .75s; }
.is-entered .curtain__mark { opacity: 0; transition: opacity .3s ease; }

/* Intro: Ladebalken */

.intro__bar { position: absolute; left: 0; right: 0; bottom: -34px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.intro__bar i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); animation: intro-bar 2.4s cubic-bezier(.65, 0, .35, 1) .3s forwards; }
@keyframes intro-bar { to { transform: scaleX(1); } }

/* ---------- Responsive Erweiterungen ---------- */
@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .svc__inner { grid-template-columns: 1fr; }
  .svc--flip .svc__text { order: 0; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat__num { font-size: clamp(2.6rem, 11vw, 4rem); }
}
@media (max-width: 600px) {
  .cards--4, .flow { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 36px; }
  .stat__label { max-width: none; }
  .apply__actions { width: 100%; }
  .apply__actions .btn { width: 100%; }
  .footer__legal { gap: 18px; }
  .chips { margin-top: 26px; }
  .chip { font-size: 13.5px; padding: 8px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  .rot__w { transition: none; filter: none; }
}

/* Umlaute im Hero nicht abschneiden */
.hero__title .line { padding-top: .1em; margin-top: -.1em; }

.section--soft .card:not(.card--accent) { background: #fff; }
.section--soft .card:not(.card--accent):hover { border-color: var(--line); }
@media (max-width: 900px) {
  .build__inner { grid-template-rows: auto auto; align-content: center; }
  .build__stage { height: auto; container-type: inline-size; justify-content: flex-start; }
  .shot { width: 100%; }
}
@media (max-width: 600px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__contact a { overflow-wrap: normal; }
}

/* Abluftgitter (Einstellhalle) */
.illu__grilles rect { fill: #F1F4F8; stroke: #6F7F96; stroke-width: 1.5; }
.illu__grilles path { stroke: #6F7F96; stroke-width: 1.5; }
/* Navigation mit fünf Einträgen */
.nav { gap: 2px; }
@media (max-width: 1100px) { .nav a { padding: 8px 11px; } .header__inner { gap: 20px; } }

/* ---------- Telefon, Adresse, Karte ---------- */
.header__call { display: none; }
@media (max-width: 900px) {
  .header__call {
    display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 12px;
    color: var(--blue); -webkit-tap-highlight-color: transparent;
  }
  .header__call svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .header__call + .burger { margin-left: 0; }
  .menu-open .header__call { opacity: 0; pointer-events: none; }
}
.mobile-menu__contact { display: grid; gap: 8px; margin-top: 40px; }
.mobile-menu__contact a { color: var(--blue); font-weight: 600; font-size: 17px; }
.footer__addr { color: #C3CFE2 !important; font-weight: 500 !important; line-height: 1.5; }

.contact__cards { display: grid; gap: 12px; margin-top: 40px; max-width: 420px; }
.contact__cards .contact__mail { display: flex; margin-top: 0; }

.mapsec { padding: 0 0 clamp(72px, 10vw, 130px); }
.map { position: relative; border-radius: 28px; overflow: hidden; height: clamp(360px, 46vw, 480px); background: #E9EEF5; box-shadow: 0 0 0 1px var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; }
.map__grid {
  position: absolute; inset: -20%;
  background:
    linear-gradient(90deg, rgba(0, 74, 173, .06) 2px, transparent 2px) 0 0 / 80px 80px,
    linear-gradient(rgba(0, 74, 173, .06) 2px, transparent 2px) 0 0 / 80px 80px,
    linear-gradient(28deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 100% 100%,
    linear-gradient(-62deg, transparent 48.5%, #fff 48.5%, #fff 51.5%, transparent 51.5%) 0 0 / 100% 100%,
    #E3EAF3;
}
.map__pin {
  position: absolute; left: 50%; top: 22%; width: 54px; height: 54px; margin-left: -27px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--blue); display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(0, 74, 173, .6);
}
.map__pin svg { width: 26px; height: 26px; transform: rotate(45deg); fill: none; stroke: #fff; stroke-width: 2; }
.map__card {
  position: relative; margin-top: 70px; width: min(100%, 420px); padding: 26px 26px 22px; border-radius: 22px; background: #fff;
  box-shadow: 0 30px 60px -30px rgba(6, 22, 48, .35); text-align: center;
}
.map__title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.map__addr { margin-top: 8px; color: var(--ink-2); }
.map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.map__note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.map.is-loaded .map__ph { display: none; }
@media (max-width: 600px) {
  .map { border-radius: 22px; height: 500px; }
  .map__actions .btn { width: 100%; }
}
.map__ph { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.map__pin { position: relative; left: auto; top: auto; margin: 0 0 26px; flex-shrink: 0; }
.map__card { margin-top: 0; }

/* ---------- Ablauf-Animation: Gebäudeschnitt ---------- */
.shot [data-fx]:not([data-fx="fadeout"]) { opacity: 0; }
.shot__grow { transform-box: fill-box; transform-origin: right center; }
.shot__pop, .shot__checks [data-fx] { transform-box: fill-box; transform-origin: center; }
.shot__room { font: 600 15px var(--font); fill: #74839A; letter-spacing: .02em; }
.shot__seams path { stroke: #00B8D9; stroke-width: 5; fill: none; stroke-linecap: round; }
.shot__hangers path { stroke: #8A9AB0; stroke-width: 3; fill: none; stroke-linecap: round; }
.shot__checks circle { fill: #22B573; stroke: #fff; stroke-width: 3; }
.shot__checks path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.shot__tag { white-space: nowrap; }
.legal__list { list-style: disc; padding-left: 22px; margin: 10px 0 12px; color: var(--ink-2); display: grid; gap: 4px; }
.shot__pipe { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.shot__pipe--out { stroke: #9AA8BC; stroke-width: 7; }
.shot__pipe--sup { stroke: #1D66CF; stroke-width: 5; }
.shot__pipe--ext { stroke: #8392A8; stroke-width: 5; }
@media (max-width: 600px) { .shot__room { font-size: 25px; } }

/* =========================================================
   Startseite: echtes Video im Hintergrund
   ========================================================= */
.hero--video { background: #061630; color: #fff; }
.hero__media { position: absolute; inset: 0; overflow: hidden; background: #061630 center / cover no-repeat; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero__video.is-playing { opacity: 1; }
/* Dunkelblauer Filter: links kräftiger, damit der Text gut lesbar ist */
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 16, 38, .88) 0%, rgba(4, 16, 38, .72) 38%, rgba(4, 22, 52, .38) 75%, rgba(4, 22, 52, .3) 100%),
    linear-gradient(180deg, rgba(0, 40, 110, .35) 0%, rgba(4, 16, 38, 0) 30%, rgba(4, 16, 38, .55) 100%);
}
.hero--video .hero__inner { grid-template-columns: 1fr; }
.hero--video .hero__text { max-width: 760px; }
.hero--video .eyebrow { color: #A9C7F5; }
.hero--video .eyebrow .dot { background: #6FA4F0; box-shadow: 0 0 0 4px rgba(111, 164, 240, .22); }
.hero--video .hero__title { color: #fff; text-shadow: 0 2px 30px rgba(0, 10, 30, .35); }
.hero--video .rot { color: #8DBBFF; }
.hero--video .rot__bar { background: rgba(255, 255, 255, .22); }
.hero--video .rot__bar i { background: #8DBBFF; }
.hero--video .hero__lead { color: rgba(235, 242, 252, .86); }
.hero--video .btn--primary { box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); }
.hero--video .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.hero--video .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255, 255, 255, .08); }
.hero--video .scroll-cue { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.hero--video .scroll-cue span { background: #fff; }

/* Kopfzeile oben auf der Startseite: hell auf dem Video */
.header__logo-light { display: none; }
.page-home .header:not(.is-scrolled) .header__logo-dark { display: none; }
.page-home .header:not(.is-scrolled) .header__logo-light { display: block; }
.page-home .header:not(.is-scrolled) .nav a { color: rgba(255, 255, 255, .88); }
.page-home .header:not(.is-scrolled) .nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.page-home .header:not(.is-scrolled) .nav a[aria-current="page"] { color: #fff; }
.page-home .header:not(.is-scrolled) .nav a[aria-current="page"]::after { background: #fff; }
.page-home .header:not(.is-scrolled) .burger span { background: #fff; }
.page-home .header:not(.is-scrolled) .header__call { color: #fff; }
/* Menü offen: wieder dunkel auf hellem Grund */
.page-home.menu-open .header .header__logo-dark,
.menu-open .page-home .header .header__logo-dark { display: block; }
.menu-open .page-home .header .header__logo-light { display: none; }
.menu-open .page-home .header .burger span { background: var(--ink); }
@media (max-width: 900px) {
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(4, 16, 38, .55) 0%, rgba(4, 16, 38, .62) 40%, rgba(4, 16, 38, .88) 100%),
      linear-gradient(90deg, rgba(4, 16, 38, .35), rgba(4, 16, 38, .2));
  }
  .hero--video .hero__inner { align-self: flex-end; }
}
.job__cols--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .job__cols--2 { grid-template-columns: 1fr; } }
.nowrap { white-space: nowrap; }
