/* =========================================================
   A&A Ingenieure GmbH · Website v2
   CI: A&A Blau #2A3F7D · Grau #747474 · Schwarz · Weiß · Fira Sans
   ========================================================= */

@font-face { font-family: 'Fira Sans'; font-weight: 300; font-style: normal; font-display: swap; src: url('../fonts/FiraSans-Light.woff') format('woff'); }
@font-face { font-family: 'Fira Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/FiraSans-Regular.woff') format('woff'); }
@font-face { font-family: 'Fira Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/FiraSans-Medium.woff') format('woff'); }
@font-face { font-family: 'Fira Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/FiraSans-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Fira Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/FiraSans-Bold.woff') format('woff'); }
@font-face { font-family: 'Fira Sans'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/FiraSans-ExtraBold.woff') format('woff'); }

:root {
  --blue: #2a3f7d;
  --blue-600: #22346a;
  --blue-800: #152148;
  --blue-900: #0c1430;
  --blue-950: #070c1e;
  --blue-light: #7d93d6;
  --blue-tint: #e9ecf5;
  --grey: #747474;
  --grey-300: #c9c9cc;
  --grey-100: #f3f4f7;
  --ink: #111318;
  --white: #fff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --pad-x: clamp(20px, 5vw, 72px);
  --pad-y: clamp(96px, 14vh, 180px);
  --maxw: 1320px;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--pad-y) 0; position: relative; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typo ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; transform-origin: left; }
.on-dark .eyebrow, .eyebrow--light { color: var(--blue-light); }
.h-xxl { font-size: clamp(46px, 8.4vw, 132px); font-weight: 800; line-height: .96; letter-spacing: -.035em; }
.h-xl  { font-size: clamp(38px, 5.8vw, 86px); font-weight: 700; line-height: 1.02; letter-spacing: -.03em; }
.h-l   { font-size: clamp(30px, 3.8vw, 56px); font-weight: 700; line-height: 1.06; letter-spacing: -.025em; }
.h-m   { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.lead  { font-size: clamp(18px, 1.55vw, 22px); color: var(--grey); line-height: 1.55; max-width: 720px; }
.on-dark .lead { color: rgba(255,255,255,.72); }
.accent { color: var(--blue); }
.on-dark .accent { color: var(--blue-light); }
.muted { color: var(--grey); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 999px; overflow: hidden;
  background: var(--bg); color: var(--fg);
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: -1;
  background: var(--blue-900); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 18px 40px -18px rgba(42,63,125,.7); }
.btn svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--light { --bg: #fff; --fg: var(--blue-900); }
.btn--light::before { background: var(--blue-tint); }
.btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.btn--ghost::before { background: rgba(255,255,255,.12); }
.btn--outline { --bg: transparent; --fg: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn--outline::before { background: var(--blue); }
.btn--outline:hover { color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--blue); }
.on-dark .link-arrow { color: #fff; }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 2px; }
.link-arrow:hover span { background-size: 100% 1.5px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 1000;
  background: var(--blue-950); color: #fff;
  display: grid; place-items: center;
  transition: transform 1.1s var(--ease-io);
}
.preloader.is-done { transform: translateY(-100%); }
.preloader__panel { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: var(--blue); transform: translateY(100%); transition: transform .9s var(--ease-io); }
.preloader.is-leaving .preloader__panel { transform: translateY(0); }
.preloader__logo { width: min(300px, 60vw); position: relative; z-index: 2; }
.preloader .logo-svg .lg-a1 { fill: var(--blue-light); }
.preloader .logo-svg .lg-a2 { fill: #9a9a9a; }
.preloader .logo-svg .lg-amp, .preloader .logo-svg .lg-txt { fill: #fff; }
.preloader .logo-svg g { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.preloader.is-go .lg-a1 { animation: plA .9s var(--ease) .05s forwards; }
.preloader.is-go .lg-a2 { animation: plA .9s var(--ease) .18s forwards; }
.preloader.is-go .lg-amp { animation: plAmp 1s var(--ease) .38s forwards; transform-origin: 50% 50%; }
.preloader.is-go .lg-txt { animation: plTxt .8s var(--ease) .6s forwards; }
.preloader__count {
  position: absolute; right: var(--pad-x); bottom: 32px; z-index: 2;
  font-size: clamp(48px, 9vw, 120px); font-weight: 800; letter-spacing: -.04em; line-height: 1;
  color: rgba(255,255,255,.12); font-variant-numeric: tabular-nums;
}
.preloader__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--blue-light); transform: scaleX(0); transform-origin: left; z-index: 2; }
@keyframes plA { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes plAmp { from { opacity: 0; transform: scale(.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes plTxt { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- 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), var(--blue-light)); transform-origin: left; transform: scaleX(0); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  padding: 18px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: #fff;
  transition: transform .6s var(--ease), background .4s var(--ease), color .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(7,12,30,.55); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.nav.is-light { color: var(--ink); }
.nav.is-light.is-scrolled { background: rgba(255,255,255,.78); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { width: 92px; flex-shrink: 0; }
.nav__logo .logo-svg g { transition: fill .4s var(--ease); }
.nav__logo .logo-svg g { fill: #fff; }
.nav.is-light .nav__logo .lg-a1 { fill: var(--blue); }
.nav.is-light .nav__logo .lg-a2 { fill: var(--grey); }
.nav.is-light .nav__logo .lg-amp, .nav.is-light .nav__logo .lg-txt { fill: #000; }
.nav__links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); font-size: 15px; font-weight: 500; }
.nav__links a:not(.btn) { position: relative; padding: 6px 0; opacity: .9; }
.nav__links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 12px 22px; font-size: 14px; }
.nav:not(.is-light) .btn { --bg: #fff; --fg: var(--blue-900); }
.nav:not(.is-light) .btn::before { background: var(--blue-tint); }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px currentColor; }
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.nav__burger span:nth-child(1) { top: 19px; }
.nav__burger span:nth-child(2) { top: 26px; }
.menu-open .nav__burger span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.menu-open .nav__burger span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}

/* Mobile menu */
.menu {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 105; background: var(--blue-900); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--pad-x) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .nav { color: #fff !important; background: transparent !important; box-shadow: none !important; }
.menu-open .nav .nav__logo g { fill: #fff !important; }
.menu__list { list-style: none; }
.menu__list li { overflow: hidden; }
.menu__list a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(38px, 10vw, 64px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; transform: translateY(110%); transition: transform .8s var(--ease); }
.menu__list a small { font-size: 13px; font-weight: 600; color: var(--blue-light); letter-spacing: .1em; }
.menu-open .menu__list a { transform: none; transition-delay: calc(.25s + var(--i) * .06s); }
.menu__meta { margin-top: 48px; font-size: 15px; color: rgba(255,255,255,.65); display: grid; gap: 6px; opacity: 0; transition: opacity .6s .6s; }
.menu-open .menu__meta { opacity: 1; }

/* ---------- Reveal system ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(48px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-48px); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Split text (line/word mask) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1s + var(--i) * .045s); }
.split.is-in .w > span { transform: none; }

/* Clip reveal for images */
.js [data-clip] { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.4s var(--ease-io); transition-delay: calc(var(--d, 0) * 1s); }
.js [data-clip="left"] { clip-path: inset(0 100% 0 0 round var(--radius)); }
.js [data-clip].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js [data-clip] .ph__inner { transform: scale(1.25); transition: transform 1.8s var(--ease); transition-delay: calc(var(--d, 0) * 1s); }
.js [data-clip].is-in .ph__inner { transform: scale(1); }

/* Line draw */
.js .draw-line { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-io); }
.js .draw-line.is-in { transform: scaleX(1); }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950));
  aspect-ratio: var(--ar, 4/3);
}
.ph__inner { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; will-change: transform; }
.ph__inner::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255,255,255,.05) 58px 59px),
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(255,255,255,.035) 58px 59px),
    radial-gradient(ellipse at 70% 20%, rgba(125,147,214,.28), transparent 60%);
}
.ph__label {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 24px; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.35;
}
.ph__label b { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff; background: rgba(125,147,214,.28); border: 1px solid rgba(255,255,255,.25); padding: 6px 12px; border-radius: 999px; }
.ph__label em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .06em; }
.ph img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph--light { background: linear-gradient(135deg, #dfe3ee, #c7cee2); }
.ph--light .ph__label { color: var(--blue-800); }
.ph--light .ph__label b { color: var(--blue); background: rgba(255,255,255,.6); border-color: rgba(42,63,125,.2); }
.ph--light .ph__label em { color: rgba(21,33,72,.55); }
.ph--light .ph__inner::before { background: repeating-linear-gradient(90deg, transparent 0 58px, rgba(42,63,125,.06) 58px 59px), repeating-linear-gradient(0deg, transparent 0 58px, rgba(42,63,125,.05) 58px 59px); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; color: #fff; background: var(--blue-950); }
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; border-radius: 0; aspect-ratio: auto; }
.js .hero__media .ph__inner { transform: scale(1.18); transition: transform 2.6s var(--ease); }
.js.is-ready .hero__media .ph__inner, .is-ready .hero__media .ph__inner { transform: scale(1.04); }
.hero__media .ph__label { justify-content: flex-start; align-items: flex-end; padding: 110px calc(var(--pad-x) + 40px) 0; text-align: right; opacity: .75; }
.hero__shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,12,30,.55) 0%, rgba(7,12,30,.15) 35%, rgba(7,12,30,.35) 60%, rgba(7,12,30,.92) 100%),
              linear-gradient(90deg, rgba(12,20,48,.7) 0%, rgba(12,20,48,0) 60%); }
.hero__content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(56px, 11vh, 120px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: block; }
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.3s var(--ease); }
.js .is-ready .hero__title .line > span { transform: none; }
.hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.hero__title .line:nth-child(3) > span { transition-delay: .2s; color: var(--blue-light); }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero__sub { max-width: 520px; font-size: clamp(17px, 1.4vw, 20px); color: rgba(255,255,255,.8); }
.js .hero__sub { opacity: 0; transform: translateY(20px); transition: all 1.1s var(--ease) .45s; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.js .hero__ctas { opacity: 0; transform: translateY(20px); transition: all 1.1s var(--ease) .6s; }
.js .is-ready .hero__sub, .js .is-ready .hero__ctas { opacity: 1; transform: none; }
.hero__meta { position: absolute; z-index: 3; top: 50%; right: var(--pad-x); transform: translateY(-50%); writing-mode: vertical-rl; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.55); display: flex; gap: 18px; align-items: center; }
.hero__meta::before { content: ''; width: 1px; height: 60px; background: rgba(255,255,255,.4); }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); width: 1px; height: 54px; background: rgba(255,255,255,.2); overflow: hidden; }
.hero__scroll::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: #fff; animation: scrollDot 2s var(--ease-io) infinite; }
@keyframes scrollDot { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }
@media (max-width: 720px) { .hero__meta { display: none; } }

/* Rails (Schienen) SVG */
.rails { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; z-index: 2; pointer-events: none; opacity: .5; }
.rails path { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.js .rails path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-io) .3s; }
.rails path.sleeper { stroke: rgba(255,255,255,.25); transition-duration: 1.6s; }
.js .is-ready .rails path { stroke-dashoffset: 0; }

/* ---------- Marquee ---------- */
.marquee { background: var(--blue); color: #fff; overflow: hidden; padding: clamp(22px, 3vw, 36px) 0; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item { font-size: clamp(34px, 5.4vw, 78px); font-weight: 800; letter-spacing: -.03em; line-height: 1; padding: 0 .45em; white-space: nowrap; }
.marquee__item.is-outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.65); }
.marquee__dot { width: .28em; height: .28em; font-size: clamp(34px, 5.4vw, 78px); border-radius: 50%; background: var(--blue-light); flex-shrink: 0; }

/* ---------- Statement (Scroll-Text) ---------- */
.statement { padding: var(--pad-y) 0; background: var(--white); }
.statement__text { font-size: clamp(30px, 4.3vw, 64px); font-weight: 700; line-height: 1.14; letter-spacing: -.028em; max-width: 1180px; }
.statement__text .sw { color: #d9dbe2; transition: color .35s linear; }
.statement__text .sw.is-lit { color: var(--ink); }
.statement__text .sw.is-accent.is-lit { color: var(--blue); }
.statement__foot { margin-top: 64px; display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.statement__foot .lead { max-width: 520px; }

/* ---------- Leistungen: horizontal scroll ---------- */
.hs { position: relative; background: var(--grey-100); }
.hs__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.hs__track { display: flex; gap: clamp(20px, 2vw, 32px); padding: 0 var(--pad-x); will-change: transform; align-items: stretch; }
.hs__intro { flex: 0 0 min(460px, 80vw); display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-right: 40px; }
.hs__progress { margin-top: 24px; height: 2px; width: 200px; background: rgba(42,63,125,.15); position: relative; overflow: hidden; }
.hs__progress span { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.card-l {
  flex: 0 0 clamp(320px, 34vw, 500px); background: #fff; border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(0,0,0,.04);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.card-l:hover { transform: translateY(-8px); box-shadow: 0 34px 70px -30px rgba(42,63,125,.45); }
.card-l .ph { border-radius: 0; --ar: 16/11; }
.card-l .ph__inner { transition: transform 1.2s var(--ease); }
.card-l:hover .ph__inner { transform: scale(1.06); }
.card-l__body { padding: 32px 34px 36px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-l__num { font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--blue); text-transform: uppercase; }
.card-l__text { color: var(--grey); font-size: 16px; }
.card-l .link-arrow { margin-top: auto; padding-top: 8px; }
@media (max-width: 960px), (prefers-reduced-motion: reduce) {
  .hs__sticky { position: static; height: auto; padding: var(--pad-y) 0; display: block; }
  .hs__track { flex-direction: column; transform: none !important; }
  .hs__intro { flex: none; padding: 0 0 16px; }
  .card-l { flex: none; }
  .hs__progress { display: none; }
}

/* ---------- Expanding image band ---------- */
.band { position: relative; height: 170vh; background: var(--white); }
.band__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.band__media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; border-radius: 0; aspect-ratio: auto; }
.js .band__media { clip-path: inset(18% 22% 18% 22% round 28px); will-change: clip-path; }
.band__media .ph__inner { transform: scale(1.2); will-change: transform; }
.band__caption { position: relative; z-index: 3; color: #fff; text-align: center; pointer-events: none; }
.band__caption .h-xxl { text-shadow: 0 10px 60px rgba(0,0,0,.35); }
.band__caption p { margin-top: 18px; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.band__shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: rgba(7,12,30,.35); z-index: 2; pointer-events: none; opacity: 0; }

/* ---------- Unternehmen ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__visual { position: relative; padding-bottom: 18%; }
.about__visual .ph:first-child { --ar: 4/5; width: 78%; }
.about__visual .ph:nth-child(2) { --ar: 1/1; position: absolute; width: 46%; right: 0; bottom: 0; border: 8px solid #fff; border-radius: calc(var(--radius) + 8px); }
.about__badge { position: absolute; left: 62%; top: 8%; z-index: 3; width: 128px; height: 128px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; box-shadow: 0 20px 50px -20px rgba(42,63,125,.8); }
.about__badge svg { position: absolute; top: 8px; right: 8px; bottom: 8px; left: 8px; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 22s linear infinite; }
.about__badge svg text { fill: rgba(255,255,255,.85); font-size: 9.5px; letter-spacing: .28em; font-weight: 600; }
.about__badge strong { font-size: 30px; letter-spacing: -.02em; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__text > * + * { margin-top: 24px; }
.about__text p { color: var(--grey); font-size: 18px; line-height: 1.65; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid rgba(0,0,0,.08); }
.value { padding-top: 32px; position: relative; }
.value::before { content: ''; position: absolute; top: -1px; left: 0; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-io); transition-delay: calc(var(--d, 0) * 1s + .2s); }
.value.is-in::before { transform: scaleX(1); }
.value__num { font-size: 13px; font-weight: 600; color: var(--blue); letter-spacing: .16em; }
.value h3 { font-size: 24px; font-weight: 700; margin: 12px 0 10px; letter-spacing: -.015em; }
.value p { color: var(--grey); font-size: 16px; }
@media (max-width: 880px) {
  .about__grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
}

/* ---------- Prozess / Track ---------- */
.process { background: var(--blue-900); color: #fff; overflow: hidden; }
.process__head { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; flex-wrap: wrap; }
.track { position: relative; margin-top: clamp(64px, 8vw, 110px); }
.track__rail { position: relative; height: 22px; }
.track__rail::before, .track__rail::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.14); }
.track__rail::before { top: 0; } .track__rail::after { bottom: 0; }
.track__sleepers { position: absolute; top: -6px; right: 0; bottom: -6px; left: 0; inset: -6px 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 3px, transparent 3px 26px); }
.track__fill { position: absolute; left: 0; right: 0; top: 0; bottom: 0; transform-origin: left; transform: scaleX(0); }
.track__fill::before, .track__fill::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--blue-light); box-shadow: 0 0 16px var(--blue-light); }
.track__fill::before { top: 0; } .track__fill::after { bottom: 0; }
.track__train { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(125,147,214,.35), 0 0 30px 6px rgba(125,147,214,.6); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 44px; }
.step { opacity: .35; transition: opacity .6s var(--ease); }
.step.is-on { opacity: 1; }
.step__num { font-size: clamp(44px, 5vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.6); transition: color .6s var(--ease); }
.step.is-on .step__num { color: var(--blue-light); -webkit-text-stroke-color: transparent; }
.step h3 { font-size: 22px; font-weight: 700; margin: 18px 0 8px; }
.step p { font-size: 15.5px; color: rgba(255,255,255,.66); }
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { background: var(--blue-950); color: #fff; }
.team__head { text-align: center; max-width: 900px; margin: 0 auto; }
.team__head .lead { margin: 28px auto 0; }
.team__main { margin-top: clamp(56px, 7vw, 96px); --ar: 21/9; }
.team__gallery { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.team__gallery .ph:nth-child(1) { --ar: 3/4; }
.team__gallery .ph:nth-child(2) { --ar: 4/3; margin-top: 60px; }
.team__gallery .ph:nth-child(3) { --ar: 3/4; margin-top: -40px; }
@media (max-width: 720px) {
  .team__gallery { grid-template-columns: 1fr 1fr; }
  .team__gallery .ph:nth-child(2) { grid-column: 1 / -1; order: -1; margin-top: 0; }
  .team__gallery .ph:nth-child(3) { margin-top: 0; }
}

/* ---------- Karriere list ---------- */
.careers__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 880px) { .careers__head { grid-template-columns: 1fr; } }
.jobs { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid rgba(0,0,0,.1); position: relative; }
.job {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 28px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid rgba(0,0,0,.1); position: relative; isolation: isolate;
}
.job::before { content: ''; position: absolute; top: 0; right: calc(var(--pad-x) * -1); bottom: 0; left: calc(var(--pad-x) * -1); inset: 0 calc(var(--pad-x) * -1); background: var(--blue); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.job:hover::before { transform: scaleY(1); transform-origin: top; }
.job, .job * { transition: color .45s var(--ease); }
.job:hover, .job:hover .job__num, .job:hover .job__meta, .job:hover .job__cta { color: #fff; }
.job__num { font-size: 14px; font-weight: 600; letter-spacing: .16em; color: var(--blue); }
.job__title { font-size: clamp(24px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.02em; transition: transform .6s var(--ease), color .45s; }
.job:hover .job__title { transform: translateX(14px); }
.job__meta { display: block; font-size: 15px; color: var(--grey); margin-top: 4px; font-weight: 400; letter-spacing: 0; }
.job__cta { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; color: var(--blue); white-space: nowrap; }
.job__cta svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.job:hover .job__cta svg { transform: translateX(5px) rotate(-45deg); }
@media (max-width: 720px) { .job { grid-template-columns: 44px 1fr; gap: 16px; } .job__cta { grid-column: 2; } }
.job-preview { position: fixed; left: 0; top: 0; z-index: 90; width: 300px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .35s var(--ease), transform .5s var(--ease); --ar: 4/3; }
.job-preview.is-on { opacity: 1; }
.job-preview .ph { width: 100%; }
.job-preview .ph + .ph { display: none; }
@media (hover: none), (max-width: 960px) { .job-preview { display: none; } }

/* ---------- CTA ---------- */
.cta { position: relative; min-height: 90vh; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; background: var(--blue-950); }
.cta__media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; border-radius: 0; aspect-ratio: auto; }
.cta__media::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(12,20,48,.88), rgba(30,46,96,.8)); }
.cta__content { position: relative; z-index: 3; padding: var(--pad-y) var(--pad-x); max-width: 1100px; }
.cta__content .lead { margin: 28px auto 44px; }

/* ---------- Kontakt ---------- */
.contact { background: var(--grey-100); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 110px); margin-top: 64px; }
@media (max-width: 880px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.contact__item:first-child { padding-top: 0; }
.contact__icon { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--blue); flex-shrink: 0; transition: background .4s var(--ease), color .4s var(--ease); }
.contact__item:hover .contact__icon { background: var(--blue); color: #fff; }
.contact__icon svg { width: 18px; height: 18px; }
.contact__label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.contact__value { font-size: 18px; font-weight: 500; margin-top: 2px; }
.contact__map { margin-top: 32px; --ar: 16/10; }

.form { background: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; box-shadow: 0 30px 80px -50px rgba(42,63,125,.45); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 24px 16px 10px; border-radius: 14px; border: 1.5px solid rgba(0,0,0,.1); background: #fff;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field label { position: absolute; left: 17px; top: 17px; font-size: 15px; color: var(--grey); pointer-events: none; transition: all .3s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42,63,125,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 7px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--grey); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); flex-shrink: 0; }
.check a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__note { font-size: 13px; color: var(--grey); }
.hp { position: absolute !important; left: -9999px !important; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-950); color: rgba(255,255,255,.66); padding: clamp(80px, 10vw, 130px) 0 0; overflow: hidden; position: relative; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 72px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand .logo-img { width: 180px; margin-bottom: 26px; }
.footer__brand p { font-size: 15px; max-width: 330px; }
.footer h4 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer ul { list-style: none; display: grid; gap: 12px; font-size: 15px; }
.footer a { transition: color .3s; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 0; font-size: 13.5px; color: rgba(255,255,255,.45); }
.footer__bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__word { font-size: clamp(90px, 23vw, 380px); font-weight: 800; letter-spacing: -.06em; line-height: .78; color: transparent; -webkit-text-stroke: 1px rgba(125,147,214,.28); text-align: center; margin-top: 20px; white-space: nowrap; user-select: none; transform: translateY(12%); }
.footer__word span { color: rgba(42,63,125,.35); -webkit-text-stroke: 0; }
@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Subpage header ---------- */
.page-hero { position: relative; padding: clamp(150px, 22vh, 230px) 0 clamp(64px, 9vh, 110px); background: var(--blue-900); color: #fff; overflow: hidden; }
.page-hero--img { min-height: 78vh; display: flex; align-items: flex-end; }
.page-hero__media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; border-radius: 0; aspect-ratio: auto; }
.page-hero__media::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(7,12,30,.55), rgba(7,12,30,.2) 40%, rgba(7,12,30,.88)); }
.page-hero .container { position: relative; z-index: 3; width: 100%; }
.page-hero .lead { margin-top: 26px; }
.breadcrumb { font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: 28px; display: flex; gap: 10px; }
.breadcrumb a:hover { color: #fff; }
.page-hero .rails { height: 50%; opacity: .35; }

/* ---------- Leistungen detail ---------- */
.subnav { position: sticky; top: var(--nav-h, 0px); transition: top .6s var(--ease); z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(0,0,0,.06); }
.subnav .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.subnav a { white-space: nowrap; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--grey); transition: all .3s var(--ease); }
.subnav a:hover { color: var(--blue); }
.subnav a.is-active { background: var(--blue); color: #fff; }
.service { padding: var(--pad-y) 0; border-bottom: 1px solid rgba(0,0,0,.06); scroll-margin-top: 60px; }
.service__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.service:nth-of-type(even) .service__media { order: 2; }
.service__media { position: relative; }
.service__media .ph { --ar: 4/5; }
.service__big { position: absolute; right: -10px; bottom: -40px; z-index: 3; font-size: clamp(90px, 12vw, 180px); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: #fff; -webkit-text-stroke: 1.5px var(--blue); color: transparent; pointer-events: none; }
.service:nth-of-type(even) .service__big { right: auto; left: -10px; }
.service__text > * + * { margin-top: 22px; }
.service__text p { color: var(--grey); font-size: 18px; line-height: 1.65; }
.ticks { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(0,0,0,.08); }
.ticks li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 16.5px; font-weight: 500; }
.ticks li::before { content: ''; width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; border-radius: 50%; background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a3f7d' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.on-dark .ticks { border-color: rgba(255,255,255,.12); }
.on-dark .ticks li { border-color: rgba(255,255,255,.12); }
@media (max-width: 880px) {
  .service__grid { grid-template-columns: 1fr; }
  .service:nth-of-type(even) .service__media { order: 0; }
}

/* ---------- Karriere page ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.perk { background: #fff; border-radius: 22px; padding: 32px 28px; border: 1px solid rgba(0,0,0,.06); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.perk:hover { transform: translateY(-6px); box-shadow: 0 26px 60px -34px rgba(42,63,125,.5); }
.perk__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 22px; }
.perk__icon svg { width: 22px; height: 22px; }
.perk h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.perk p { color: var(--grey); font-size: 15.5px; }
@media (max-width: 960px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .perks { grid-template-columns: 1fr; } }

.acc { border-top: 1px solid rgba(0,0,0,.1); margin-top: 56px; }
.acc__item { border-bottom: 1px solid rgba(0,0,0,.1); scroll-margin-top: 90px; }
.acc__head { width: 100%; display: grid; grid-template-columns: 60px 1fr 48px; gap: 20px; align-items: center; text-align: left; padding: 30px 0; }
.acc__head .job__title { font-size: clamp(22px, 2.3vw, 32px); }
.acc__plus { width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--blue); position: relative; transition: background .4s var(--ease), transform .5s var(--ease); }
.acc__plus::before, .acc__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: var(--blue); transition: transform .5s var(--ease), background .4s; }
.acc__plus::after { transform: rotate(90deg); }
.acc__item.is-open .acc__plus { background: var(--blue); transform: rotate(180deg); }
.acc__item.is-open .acc__plus::before, .acc__item.is-open .acc__plus::after { background: #fff; }
.acc__item.is-open .acc__plus::after { transform: rotate(0); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.acc__item.is-open .acc__body { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; min-height: 0; }
.acc__content { display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 40px; padding: 6px 0 44px 80px; }
.acc__content h4 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.acc__content ul { list-style: none; display: grid; gap: 10px; color: var(--grey); font-size: 16px; }
.acc__content ul li { padding-left: 20px; position: relative; }
.acc__content ul li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--blue); }
.acc__apply { background: var(--grey-100); border-radius: 20px; padding: 26px; display: grid; gap: 14px; align-content: start; }
.acc__apply p { font-size: 15px; color: var(--grey); }
@media (max-width: 960px) { .acc__content { grid-template-columns: 1fr; padding-left: 0; } .acc__head { grid-template-columns: 40px 1fr 48px; } }

.steps-light { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; counter-reset: s; }
.steps-light > div { padding: 34px 30px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.steps-light b { display: block; font-size: 48px; font-weight: 800; letter-spacing: -.04em; color: var(--blue-light); line-height: 1; margin-bottom: 18px; }
.steps-light h3 { font-size: 21px; margin-bottom: 8px; }
.steps-light p { color: rgba(255,255,255,.66); font-size: 15.5px; }
@media (max-width: 800px) { .steps-light { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(64px, 9vh, 110px) 0 var(--pad-y); }
.legal__grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: 110px; font-size: 14px; }
.toc h2 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin-bottom: 16px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 2px solid rgba(0,0,0,.07); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--grey); transition: all .3s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--blue); border-color: var(--blue); font-weight: 600; }
.prose { max-width: 780px; font-size: 16.5px; line-height: 1.75; color: #2b2f38; }
.prose h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.015em; color: var(--ink); margin: 64px 0 18px; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 600; color: var(--ink); margin: 34px 0 10px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .box { background: var(--grey-100); border-radius: 18px; padding: 24px 28px; margin: 20px 0 24px; }
.prose .box p:last-child { margin-bottom: 0; }
.prose .stand { margin-top: 56px; font-size: 14px; color: var(--grey); }
.todo { background: #fff3c4; color: #6b5200; padding: 1px 6px; border-radius: 5px; font-weight: 600; }
@media (max-width: 960px) { .legal__grid { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- 404 / Danke ---------- */
.solo { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--blue-950); color: #fff; position: relative; overflow: hidden; padding: 120px var(--pad-x); }
.solo .h-xxl { font-size: clamp(90px, 18vw, 260px); color: transparent; -webkit-text-stroke: 1.5px var(--blue-light); }
.solo .lead { margin: 20px auto 40px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .band { height: auto; }
  .band__sticky { position: relative; height: 80vh; }
  .band__media { clip-path: none !important; }
}

/* ---------- Ergänzungen ---------- */
.nav-hidden .subnav { top: 0; }
.ph__inner[data-parallax] { top: -9%; right: 0; bottom: -9%; left: 0; inset: -9% 0; }
.page-hero .lead { color: rgba(255,255,255,.74); }
.page-hero .eyebrow, .solo .eyebrow { color: var(--blue-light); }
.band__caption .split .w > span { transition-duration: 1.3s; }
.solo .rails { opacity: .3; }
.cta .rails { opacity: .25; }
.hero__title { max-width: 1100px; }

/* ---------- Robustheit (v4) ---------- */
/* Preloader verschwindet spätestens nach 5 s, auch wenn JavaScript ausfällt */
.preloader { animation: plFailsafe .4s linear 5s forwards; }
@keyframes plFailsafe { to { opacity: 0; visibility: hidden; } }

/* Lange Wörter (z. B. „Schieneninfrastruktur“) dürfen auf kleinen Bildschirmen nicht aus dem Rahmen laufen */
.h-xxl, .h-xl, .h-l, .h-m, .statement__text, .job__title, .card-l__text, .prose, .lead, .value p, .step p, .ticks li, .contact__value { overflow-wrap: break-word; }
@media (max-width: 600px) {
  .h-xxl, .h-xl, .h-l, .h-m, .statement__text, .job__title { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
  .prose { -webkit-hyphens: auto; hyphens: auto; }
}

/* Mobiles Menü auf niedrigen Bildschirmen (Smartphone quer) scrollbar */
.menu { overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (max-height: 560px) {
  .menu { justify-content: flex-start; padding-top: 90px; }
  .menu__list a { font-size: 30px; }
  .menu__meta { margin-top: 24px; }
}

/* Leistungs-Galerie: auf niedrigen Desktop-Bildschirmen kompakter, auf sehr niedrigen normal untereinander */
@media (min-width: 961px) and (max-height: 860px) {
  .card-l .ph { max-height: 32vh; }
  .card-l__body { padding: 22px 26px 26px; gap: 10px; }
  .card-l .h-m { font-size: clamp(20px, 1.9vw, 26px); }
  .card-l__text { font-size: 15px; }
  .hs__intro .lead { font-size: 17px; }
}
@media (min-width: 961px) and (max-height: 620px) {
  .hs__sticky { position: static; height: auto; padding: var(--pad-y) 0; display: block; }
  .hs__track { display: grid; grid-template-columns: 1fr 1fr; transform: none !important; }
  .hs__intro { grid-column: 1 / -1; padding: 0 0 16px; }
  .hs__progress { display: none; }
  .card-l .ph { max-height: none; }
}

/* Fallback für ältere Browser ohne aspect-ratio (z. B. iOS 14) */
@supports not (aspect-ratio: 1 / 1) {
  .ph:not(.hero__media):not(.band__media):not(.cta__media):not(.page-hero__media) { height: 0; padding-top: var(--pt, 75%); }
}

/* Lange Stellen-Bezeichnungen auf schmalen Handys umbrechen statt überstehen */
.job > div, .acc__head > span:nth-child(2) { min-width: 0; }
.job__meta, .job__title { overflow-wrap: break-word; word-break: break-word; }
@media (max-width: 600px) { .job__meta { -webkit-hyphens: auto; hyphens: auto; } .acc__head { gap: 14px; } }
.hp input { font-size: 16px; }
/* Leistungs-Unternavigation: Hinweis, dass man seitlich wischen kann */
@media (max-width: 760px) { .subnav .container { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); } }
/* Scroll-Hinweis im Startbild nur dort, wo genug Platz ist */
@media (max-width: 600px), (max-height: 700px) { .hero__scroll { display: none; } }
/* Große Monitore (QHD / 4K): Inhalt breiter und Fließtext etwas größer */
@media (min-width: 1800px) {
  :root { --maxw: 1560px; }
  .lead { font-size: 23px; max-width: 820px; }
  .card-l__text, .value p, .step p { font-size: 17px; }
  .about__text p, .service__text p { font-size: 19px; }
}
@media (min-width: 2300px) {
  :root { --maxw: 1800px; }
  .h-xxl { font-size: 150px; }
  .h-xl { font-size: 96px; }
  .nav__links { font-size: 16px; }
}
/* Smartphone quer: Startbild ohne Mindesthöhe, damit Titel und Buttons sichtbar bleiben */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { height: auto; min-height: 0; }
  .hero__content { height: auto; padding-top: 110px; padding-bottom: 48px; }
  .hero__title { font-size: clamp(38px, 7vw, 64px); }
  .hero__bottom { margin-top: 24px; }
  .page-hero--img { min-height: 0; }
  .band { height: 140vh; }
}

/* Gruppenfotos (Bild 09 / 25) immer komplett zeigen: kein Zoom, kein Parallax, Seitenverhältnis = Foto */
.ph.no-zoom .ph__inner, .js [data-clip].no-zoom .ph__inner, .js [data-clip].no-zoom.is-in .ph__inner { transform: none !important; translate: none !important; top: 0; bottom: 0; }
.ph.no-zoom img { object-fit: cover; object-position: center; }
/* Galeriebild rechts darf das Teamfoto nicht mehr überlappen */
.team__gallery { margin-top: 24px; }
.team__gallery .ph:nth-child(3) { margin-top: 0; }
