/* ==========================================================================
   SummitPeak „Höhenlinie Navy“ – Startseite:
   Einstieg mit Live-Szene, Rechner, Scroll-Bühne, Über uns, Kontakt.
   Werte kommen aus theme.css, gemeinsame Bausteine aus base.css.
   ========================================================================== */

/* ---------- Einstieg ---------- */
.hero {
  position: relative; overflow: clip;
  padding: calc(var(--hh-top) + clamp(24px, 2vw, 40px)) 0 clamp(72px, 8vw, 120px);
  background:
    radial-gradient(120% 80% at 50% 0%, var(--navy) 0%, var(--navy-deep) 70%);
}
.hero__light {
  position: absolute; inset: -20% -10% auto auto; width: 75vw; height: 75vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(closest-side, rgba(42, 82, 134, .55), rgba(42, 82, 134, 0));
  pointer-events: none;
}
.hero__topo {
  position: absolute; left: -12%; bottom: -6%; width: 120%; height: auto; max-width: none;
  color: #FFFFFF; opacity: .06; pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s8);
  align-items: center;
}
.hero__copy { grid-column: 1 / span 6; display: grid; gap: 0; justify-items: start; }
/* V3.1 Apple-Stil: H1 → Unterzeile 32 px, Unterzeile → Buttons 40 px; Unterzeile 20 px, gedämpft, max. 56 Zeichen */
.hero__copy .lead { margin-top: var(--s4); font-size: 1.25rem; line-height: 1.55; color: var(--muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s5); }
@media (max-width: 600px) { .hero__copy .lead { font-size: 1.125rem; } }

/* Überschrift: Code-Ebene (aria-hidden, gleiche Schrift wie die H1) liegt deckungsgleich über der
   reservierten, echten H1. Getippt und vom Code geschrieben wird Zeichen für Zeichen auf den Endpositionen. */
/* V3.1: H1 clamp(2rem, 1rem + 3.4vw, 4rem) → 64 px bei 1440 px */
.hero__title { position: relative; font-size: clamp(2rem, 1rem + 3.4vw, 4rem); line-height: 1.04; }
.hero__title, .hero__title-final, .hero__title-code, .hero__title-glint { font-kerning: none; font-variant-ligatures: none; }
.hero__title-final { font: inherit; font-kerning: none; font-variant-ligatures: none; letter-spacing: inherit; color: inherit; -webkit-hyphens: manual; hyphens: manual; transform-origin: 0 50%; }
.hero__title-code, .hero__title-glint {
  position: absolute; inset: 0; pointer-events: none; -webkit-hyphens: manual; hyphens: manual; text-wrap: balance;
}
.hero__title-code em { font-style: normal; color: var(--accent-text); }
.cw { white-space: nowrap; }
/* Zeichen der Tipp-Ebene: fester Platz in der Breite des endgültigen Buchstabens (setzt home.js) */
.cg { display: inline-block; text-align: center; vertical-align: top; }   /* Box fest an der Zeile: Schriftwechsel verschiebt nichts */
.cg.is-hidden { visibility: hidden; }
.cg.is-code { color: #CFE0F8; text-shadow: 0 0 10px rgba(120, 170, 240, .7); }
/* Ziffern 0/1 in Geist Mono, kleiner per transform (nicht per font-size): Platz und Zeile bleiben unverändert,
   es entsteht keine Layout-Verschiebung. In schmalen Plätzen („i“, „l“) noch kleiner, damit nichts seitlich übersteht. */
.cg.is-code { font-family: var(--mono); font-weight: 700; transform: scale(.62); transform-origin: 50% 62%; }
.cg.is-code.is-narrow { transform: scale(.46); }
.cg.is-hot { color: #FFF4E6; text-shadow: 0 0 12px rgba(199, 125, 20, .65); }
.cg.is-set { transition: color 180ms ease-out, text-shadow 180ms ease-out; }
.type-caret {
  position: absolute; left: 0; top: 0; width: .08em; height: 1em; margin-left: .02em;
  background: var(--copper); border-radius: 1px; pointer-events: none;
}
.hero__title.is-waiting .type-caret { animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.hero__title-glint {
  opacity: 0; color: transparent;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, 0) 56%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  filter: blur(4px);
}
/* Übernahme vom Logo: SVG (Logo-Glühen) und Canvas (Code-Regen) über Kopfzeile und Hero, ohne Zeigerereignisse */
.takeover-fx, .takeover-rain { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; overflow: visible; }
.hero__topo--pulse { opacity: 0; color: #FFFFFF; stroke-width: 1.4; }
.hero__shock { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 0; }
.hero__shock i {
  position: absolute; left: 0; top: 0; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(190, 214, 248, .9);
  box-shadow: 0 0 24px rgba(42, 82, 134, .5), inset 0 0 24px rgba(42, 82, 134, .4);
  opacity: 0; transform: translate(-50%, -50%) scale(.15);
}
@media (prefers-reduced-motion: no-preference) {
  /* Nur die Überschrift wartet auf ihre Inszenierung (mit JS); Sicherheitsnetz: nach 9 s trotzdem sichtbar */
  .js .hero__title:not(.is-done) .hero__title-final { opacity: 0; animation: failsafe-show 1ms linear 9s forwards; }
  /* Einleitung, Buttons und Prinzip-Zeile stehen sofort, kurz gestaffelt: die Hauptaktion ist nie versteckt */
  .hero__after { animation: after-in 600ms var(--ease) backwards; }
  .hero__actions.hero__after { animation-delay: 60ms; }
  /* Szene kommt kurz nach dem Text: der erste Blick gehört der Überschrift */
  .js .hero__scene { animation: scene-in 900ms var(--ease) 400ms backwards; }
}
@keyframes failsafe-show { to { opacity: 1; } }
@keyframes after-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes scene-in { from { opacity: 0; transform: translateY(16px); } }
.hero__scene { grid-column: 7 / -1; position: relative; }

/* ---------- LIVE-SZENE „Firmenwissen“ ---------- */
/* Szenen im Raum (V3.1): Bühne mit Perspektive, Rig mit Grundneigung (Maus-Parallax setzt site.js),
   „Atmen“ als CSS-Animation auf eigener Ebene. Echte Ebenenstaffel über preserve-3d:
   hintere Glasplatten −40/−80 px, Fenster 0, Blasen/Eingabe +30, Ergebnis +60, Prüf-Pille +90. */
.scene-stage { position: relative; perspective: 1600px; perspective-origin: 30% 40%; }
.scene-rig { transform-style: preserve-3d; transform: rotateY(-8deg) rotateX(4deg); }
.scene-breathe { position: relative; display: grid; transform-style: preserve-3d; }
@media (prefers-reduced-motion: no-preference) {
  .js .scene-breathe { animation: scene-breathe 4s ease-in-out infinite alternate; }
  .scene-stage.is-idle .scene-breathe, .scene-stage.is-tilting .scene-breathe { animation-play-state: paused; }
}
@keyframes scene-breathe { from { transform: rotateY(-1deg) rotateX(.5deg); } to { transform: rotateY(1deg) rotateX(-.5deg); } }
.scene-floor {
  position: absolute; left: 8%; right: 4%; bottom: -6px; height: 90px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(2, 10, 26, .55), rgba(2, 10, 26, 0));
  transform: translate3d(0, 24px, -120px);
}
.scene {
  grid-area: 1 / 1; align-self: start;   /* jede Szene behält ihre eigene Höhe (kein leeres Glas unten) */
  position: relative;
  padding: 32px 34px 48px 18px;
  font-family: var(--sans);
  transform-style: preserve-3d;
  transition: transform 800ms var(--ease), opacity 600ms var(--ease);
}
/* Wechsel: alte Szene kippt zurück/weg, neue kommt aus der Tiefe nach vorn */
.scene.is-off { opacity: 0; transform: translate3d(4%, 0, -260px) rotateY(-18deg); pointer-events: none; }
.scene.is-leave { opacity: 0; transform: translate3d(-6%, 2%, -220px) rotateY(16deg) rotateX(6deg); pointer-events: none; }
.scene__deck { position: relative; transform-style: preserve-3d; }
.scene__sheet {
  position: absolute; border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(43, 78, 128, .55), rgba(20, 46, 86, .45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(2, 10, 26, .6);
}
.scene__sheet--1 { inset: -14px -16px 30px 24px; transform: translateZ(-40px); }
.scene__sheet--2 { inset: -30px -34px 64px 50px; transform: translateZ(-80px); opacity: .7; }

.chat {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(38, 70, 116, .97), rgba(22, 50, 92, .97));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 2px 4px rgba(2, 10, 26, .2),
    0 18px 36px -14px rgba(2, 10, 26, .55),
    0 50px 90px -30px rgba(2, 10, 26, .75);
  transform-style: preserve-3d;
}
/* Glaskante: Dicke des Fensters, leicht versetzt dahinter, Hell-Dunkel-Verlauf */
.chat::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
  background: linear-gradient(135deg, rgba(170, 198, 240, .55), rgba(40, 72, 120, .9) 35%, rgba(6, 20, 44, .95));
  transform: translate3d(5px, 7px, -12px);
}
/* Spiegelreflex: ein diagonaler Glanz läuft pro Durchlauf einmal über das Glas */
.chat__glare { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; pointer-events: none; transform: translateZ(2px); }
.chat__glare::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .09) 45%, rgba(255, 255, 255, .14) 50%, rgba(255, 255, 255, 0));
  transform: translateX(-120%) skewX(-12deg); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .scene.is-glare .chat__glare::before { animation: glare-run 2600ms cubic-bezier(.45, .05, .55, .95) 1; }
}
@keyframes glare-run { 0% { opacity: 1; transform: translateX(-120%) skewX(-12deg); } 100% { opacity: 1; transform: translateX(320%) skewX(-12deg); } }
.chat__bar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 46px; padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04); border-radius: 20px 20px 0 0;
  transform: translateZ(1px);
}
.chat__title { display: inline-flex; align-items: center; gap: 9px; font-size: .875rem; font-weight: 600; color: #FFFFFF; }
.chat__ico { width: 17px; height: 17px; }
.chat__tag { font-size: var(--fs-xs); color: #E1E8F1; white-space: nowrap; }
.chat__body { display: grid; gap: 14px; padding: 18px 20px 32px; transform-style: preserve-3d; }
.chat__row--q, .tray, .dk-rec, .dk-text { transform: translateZ(30px); }
.chat__row--a, .src, .dk-chips { transform: translateZ(42px); }
.dk-card { transform: translateZ(60px); }
.stack { display: grid; }
.stack > [data-v] { grid-area: 1 / 1; visibility: hidden; }
.scene[data-cur="0"] .stack > [data-v="0"],
.scene[data-cur="1"] .stack > [data-v="1"],
.scene[data-cur="2"] .stack > [data-v="2"] { visibility: visible; }

.chat__row--q { display: flex; justify-content: flex-end; }
.q { max-width: 86%; }
.q__text {
  padding: 11px 16px; border-radius: 18px 18px 6px 18px;
  background: rgba(255, 255, 255, .9); color: var(--navy-deep);
  font-size: .9375rem; font-weight: 500; line-height: 1.45;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6);
  justify-self: end;
}
.q__w { display: inline-block; }

.tray {
  position: relative; overflow: hidden;
  padding: 12px; border-radius: 14px;
  background: rgba(7, 26, 56, .38);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
}
.tray__status { position: relative; display: grid; margin: 0 2px 10px; font-size: var(--fs-xs); color: var(--text-glass); }
.tray__state { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; }
.tray__state svg { width: 14px; height: 14px; }
.tray__state--run { visibility: hidden; }
.tray__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
.docs { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; }
.doc__name { min-width: 0; -webkit-hyphens: manual; hyphens: manual; }
.doc {
  position: relative;
  display: grid; grid-template-columns: 16px 1fr 18px; align-items: center; gap: 8px;
  min-height: 40px; padding: 7px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--fs-xs); line-height: 1.25; color: var(--text-glass);
  transition: opacity 500ms var(--ease), background-color 300ms ease, border-color 300ms ease, transform 500ms var(--ease);
}
.doc__ico { width: 16px; height: 16px; color: var(--muted); }
.doc__hit {
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: #FFFFFF; color: var(--navy-deep);
  opacity: 0; transform: scale(.6);
  transition: opacity 300ms var(--ease), transform 400ms var(--ease);
}
.doc__hit svg { width: 12px; height: 12px; }
.doc.is-scan { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }
.doc.is-hit { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .42); color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .6); }
.doc.is-hit .doc__ico { color: #FFFFFF; }
.doc.is-hit .doc__hit { opacity: 1; transform: none; }
.doc.is-dim { opacity: .5; }
.tray__scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 40%; z-index: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, 0));
  opacity: 0; transform: translateX(-100%); pointer-events: none;
}

.chat__row--a { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.a__mark {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #FFFFFF;
}
.a__mark svg { width: 15px; height: 15px; }
.a__v { display: grid; gap: 6px; }
.a__skel { grid-area: 1 / 1; display: none; align-content: start; gap: 10px; padding-top: 6px; }
.a__skel i { display: block; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .09); }
.a__skel i:nth-child(1) { width: 92%; } .a__skel i:nth-child(2) { width: 78%; } .a__skel i:nth-child(3) { width: 54%; }
.scene.is-animated .a__skel { display: grid; transition: opacity 500ms ease; }
.scene.is-answering .a__skel { opacity: 0; }
.scene.is-scanning .a__skel i { animation: pulse-soft 1.6s ease-in-out infinite; }
@keyframes pulse-soft { 50% { opacity: .45; } }
.a__s { font-size: .9375rem; line-height: 1.5; color: #E6ECF4; }
.src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-left: 42px; }
.src__k { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.src__v { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; align-content: flex-start; }
.chip {
  display: inline-flex; align-items: center;
  min-height: 28px; padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18);
  font-size: var(--fs-xs); font-weight: 500; color: #FFFFFF; white-space: nowrap;
}
.review {
  position: absolute; left: -14px; bottom: -24px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(24, 56, 102, .97);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 20px -10px rgba(2, 10, 26, .6), 0 28px 48px -18px rgba(2, 10, 26, .7);
  font-size: .8125rem; font-weight: 600; color: #FFFFFF;
  transform: translateZ(90px);
}
.review__ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; color: var(--navy-deep); }
.review__ico svg { width: 17px; height: 17px; }

/* Statischer Endzustand (ohne JS / „Bewegung reduzieren“): Treffer der ersten Frage */
.scene:not(.is-animated) .tray__state--run { visibility: hidden; }
.scene:not(.is-animated) .doc[data-doc="0"],
.scene:not(.is-animated) .doc[data-doc="2"] { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .42); color: #FFFFFF; }
.scene:not(.is-animated) .doc[data-doc="0"] .doc__hit,
.scene:not(.is-animated) .doc[data-doc="2"] .doc__hit { opacity: 1; transform: none; }
.scene:not(.is-animated) .doc[data-doc="1"],
.scene:not(.is-animated) .doc[data-doc="3"],
.scene:not(.is-animated) .doc[data-doc="4"] { opacity: .5; }

/* Animierter Ablauf (Klassen setzt site.js) */
.scene.is-animated [data-at] {
  transition: opacity 700ms var(--ease), translate 800ms var(--ease), scale 800ms var(--ease);
}
.scene.is-animated [data-at]:not(.on) { opacity: 0; translate: 0 10px; }
.scene.is-animated .q__w { opacity: 0; transform: translateY(6px); filter: blur(3px); transition: opacity 600ms var(--ease), transform 700ms var(--ease), filter 600ms var(--ease); transition-delay: calc(var(--i) * 45ms); }
.scene.is-animated .q.on .q__w { opacity: 1; transform: none; filter: none; }
.scene.is-animated .tray__state { transition: opacity 400ms ease; }
.scene.is-animated .tray__state--run { visibility: visible; }
.scene.is-animated:not(.is-scanning):not(.is-found) .tray__state--run { opacity: 0; }
.scene.is-animated:not(.is-found) .tray__state--done { opacity: 0; }
.scene.is-animated.is-found .tray__state--run { opacity: 0; }
.scene.is-scanning .tray__scan { opacity: 1; animation: scan-sweep 1.5s cubic-bezier(.45, .05, .55, .95) infinite; }
.scene.is-scanning .tray__pulse { animation: pulse 1.2s ease-in-out infinite; }
.scene.is-paused .tray__scan, .scene.is-paused .tray__pulse, .scene.is-paused .a__skel i { animation-play-state: paused; }
.scene.is-fading .chat__body > *, .scene.is-fading .review { opacity: 0 !important; transition: opacity 800ms ease; }
.scene.is-paused .dk-wave i { animation-play-state: paused; }
@keyframes scan-sweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.scene-toggle {
  position: absolute; right: 0; bottom: 0; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2);
  color: var(--text); cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease);
}
.scene-toggle svg { width: 16px; height: 16px; }
/* sichtbar 36 px, Tippfläche 44 px */
.scene-toggle::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
.scene-toggle:active { transform: scale(.94); }
.scene-toggle__play { display: none; }
.scene-toggle.is-paused .scene-toggle__play { display: block; }
.scene-toggle.is-paused .scene-toggle__pause { display: none; }
@media (hover: hover) and (pointer: fine) { .scene-toggle:hover { background: rgba(255, 255, 255, .14); color: #FFFFFF; } }

/* Reiter (Segmented Control, Glas). Der Platz ist von Anfang an reserviert (kein Layout-Sprung, wenn JS sie aktiviert);
   ohne JavaScript bleiben sie unsichtbar und aus der Bedienung genommen. */
html:not(.js) .scene-tabs { visibility: hidden; }
.scene-tabs {
  position: relative; z-index: 4;
  display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 6px 18px;
  border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.scene-tabs__tab {
  min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text); font-size: .8125rem; font-weight: 500; white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease);
}
.scene-tabs__tab[aria-selected="true"] { background: #FFFFFF; color: var(--navy-deep); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .5); }
.scene-tabs__tab:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .scene-tabs__tab[aria-selected="false"]:hover { color: #FFFFFF; background: rgba(255, 255, 255, .08); } }

/* Szene „Angebot diktieren“ */
.dk-rec { display: flex; align-items: center; gap: 10px; }
.dk-rec__mic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; color: var(--navy-deep); flex: none; }
.dk-rec__mic svg { width: 16px; height: 16px; }
.dk-rec__k { font-size: .8125rem; font-weight: 600; color: #FFFFFF; }
.dk-wave { display: flex; align-items: center; gap: 3px; height: 22px; flex: 1 1 auto; min-width: 0; }
.dk-wave i { display: block; width: 3px; height: 100%; border-radius: 2px; background: var(--accent-text); transform: scaleY(.18); transform-origin: 50% 50%; }
.scene.is-recording .dk-wave i { animation: dk-wave 900ms ease-in-out infinite alternate; }
.dk-wave i:nth-child(3n) { animation-delay: -300ms !important; } .dk-wave i:nth-child(3n+1) { animation-delay: -600ms !important; } .dk-wave i:nth-child(4n) { animation-duration: 700ms !important; }
@keyframes dk-wave { from { transform: scaleY(.18); } to { transform: scaleY(1); } }
.dk-rec__state { display: grid; font-size: var(--fs-xs); color: var(--text-glass); white-space: nowrap; }
.dk-rec__run, .dk-rec__done { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; }
.dk-rec__run::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
.dk-rec__done svg { width: 14px; height: 14px; }
.dk-rec__done { visibility: hidden; }
.scene:not(.is-animated) .dk-rec__run, .scene.is-marked .dk-rec__run { visibility: hidden; }
.scene:not(.is-animated) .dk-rec__done, .scene.is-marked .dk-rec__done { visibility: visible; }
.dk-text { font-size: .9375rem; line-height: 1.6; color: #E6ECF4; }
.dk-w { display: inline-block; }
.dk-val { border-radius: 4px; padding: 1px 0; transition: background-color 400ms ease, box-shadow 400ms ease; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.scene:not(.is-animated) .dk-val, .scene.is-marked .dk-val { background: rgba(157, 182, 222, .1); box-shadow: 0 0 0 3px rgba(157, 182, 222, .12); background-color: rgba(157, 182, 222, .12); color: #FFFFFF; }
.dk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--val { background: rgba(157, 182, 222, .08); border-color: rgba(157, 182, 222, .34); }
.scene.is-animated .dk-chips [data-at]:not(.on) { translate: 0 -18px; scale: .9; }
.dk-card {
  container-type: inline-size;
  padding: 12px 14px 14px; border-radius: 14px;
  background: rgba(10, 30, 62, .72); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 32px -16px rgba(2, 10, 26, .7);
}
.dk-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dk-card__title { font-size: .875rem; font-weight: 600; color: #FFFFFF; }
.dk-card__note { font-size: var(--fs-xs); color: var(--text-glass); }
.dk-row { display: grid; grid-template-columns: 24px 40px 36px minmax(0, 1fr) 52px 64px; gap: 6px; -webkit-hyphens: manual; hyphens: manual; align-items: baseline; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .78125rem; line-height: 1.3; color: #E6ECF4; }
.dk-row > span:nth-child(3) { padding-left: 3px; }
.dk-row--h { border-top: 0; padding-top: 0; font-size: .75rem; color: var(--text-glass); }
.dk-n { text-align: right; font-variant-numeric: tabular-nums; }
.dk-sum { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .2); display: grid; gap: 3px; }
.dk-sum__row { display: flex; justify-content: space-between; font-size: .78125rem; color: #E6ECF4; }
.dk-sum__row--total { font-size: .875rem; font-weight: 600; color: #FFFFFF; }
@container (max-width: 330px) {
  .dk-row { grid-template-columns: 28px 52px minmax(0, 1fr) 64px; gap: 6px; }
  .dk-ep, .dk-u { display: none; }
  .dk-n[data-u]::after { content: "\00a0" attr(data-u); }
}

.section__light--calc {
  left: -15%; top: 10%; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(closest-side, rgba(42, 82, 134, .42), rgba(42, 82, 134, 0));
}
.section__light--about {
  right: -20%; top: -10%; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(closest-side, rgba(42, 82, 134, .36), rgba(42, 82, 134, 0));
}
.section__light--contact {
  left: 20%; bottom: -30%; width: 80vw; height: 80vw; max-width: 1200px; max-height: 1200px;
  background: radial-gradient(closest-side, rgba(42, 82, 134, .4), rgba(42, 82, 134, 0));
}

/* ---------- Zeitfresser-Rechner ---------- */
.calc-section { background: linear-gradient(180deg, var(--navy-deep), var(--navy) 55%, var(--navy-deep)); }
.calc-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s6);
  align-items: start;
}
.calc-intro { grid-column: 1 / span 4; padding-right: var(--s2); display: grid; gap: var(--s3); align-content: start; padding-top: var(--s2); }
.calc { grid-column: 5 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.calc__form { display: grid; gap: var(--s4); padding: clamp(24px, 3vw, 40px); }
.calc__field { display: grid; gap: 12px; }
.calc__label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.calc__label-row label { font-size: var(--fs-small); font-weight: 500; color: #FFFFFF; }
.calc__num, .calc__weeks {
  width: 84px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  background: rgba(7, 26, 56, .5); border: 1px solid rgba(255, 255, 255, .42);
  color: #FFFFFF; font-size: 1rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.calc__num::-webkit-inner-spin-button, .calc__weeks::-webkit-inner-spin-button { opacity: .6; }
.calc__num:focus-visible, .calc__weeks:focus-visible { outline: none; border-color: #FFFFFF; box-shadow: 0 0 0 3px rgba(255, 255, 255, .28); }
.calc__hint { font-size: .8125rem; line-height: 1.5; color: var(--text-glass); }
.calc__range {
  --p: 50%;
  width: 100%; height: 44px; margin: -8px 0; background: none; cursor: pointer;   /* 44 px Tippfläche, optisch wie zuvor 28 px */
  -webkit-appearance: none; appearance: none;
}
.calc__range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--copper) var(--p), rgba(255, 255, 255, .18) var(--p));
}
.calc__range::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.calc__range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--copper); }
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: var(--copper); border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 5px rgba(199, 125, 20, .22), 0 4px 10px rgba(0, 0, 0, .4);
  transition: transform 160ms var(--ease);
}
.calc__range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--copper); border: 2px solid #FFFFFF; box-shadow: 0 0 0 5px rgba(199, 125, 20, .22), 0 4px 10px rgba(0, 0, 0, .4); }
.calc__range:active::-webkit-slider-thumb { transform: scale(1.1); }
.calc__range:focus-visible { outline: none; }
.calc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--navy-deep), 0 0 0 5px #FFFFFF; }
.calc__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--navy-deep), 0 0 0 5px #FFFFFF; }
.calc__assume { padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--text-glass); }
.calc__assume label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.calc__assume-k { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-glass); margin-right: 4px; }
.calc__weeks { width: 68px; }
.calc__result {
  display: grid; align-content: space-between; gap: var(--s4);
  padding: clamp(24px, 3vw, 40px);
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
  border-radius: 0 var(--radius-lg) 0 0;
}
.calc__out { display: grid; gap: 6px; }
.calc__out-k { font-size: .8125rem; font-weight: 500; color: var(--text-glass); }
.calc__out--money { min-width: 0; }
.calc__money {
  display: block; white-space: nowrap; overflow: visible;
  font-size: clamp(2.75rem, 1.6rem + 3vw, 4.25rem); font-weight: 600; line-height: 1; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums; color: #FFFFFF;
}
.calc__outs .calc__out { align-content: space-between; }
.calc__outs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.calc__value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; color: #FFFFFF; min-width: 0; }
.calc__value output { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.calc__unit { font-size: .875rem; color: var(--text-glass); }
/* Formel: eigene Zeile über die ganze Karte, damit sie nicht umbricht */
.calc__formula {
  grid-column: 1 / -1; padding: 14px clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs); line-height: 1.5; color: var(--text-glass); text-wrap: balance;
}
.calc__noscript { grid-column: 1 / -1; padding: 0 var(--s4) var(--s3); }
.calc-cta {
  grid-column: 5 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 0 4px;
}
.calc-cta p { max-width: 42em; font-size: var(--fs-small); color: var(--text); }

/* ==========================================================================
   SCROLL-BÜHNE
   Grundzustand (ohne JS, schmale/niedrige Fenster, „Bewegung reduzieren“):
   Abschnitte untereinander, jedes Kapitel mit seinem Panel.
   .lx.is-pinned (gesetzt von stage.js): gepinnte Bühne.
   ========================================================================== */
.lx { position: relative; background: var(--navy-deep); }
.lx-sticky { position: relative; }
.lx-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lx-bg__light {
  position: absolute; width: 90vw; height: 90vw; max-width: 1300px; max-height: 1300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(42, 82, 134, .5), rgba(42, 82, 134, 0));
}
.lx-bg__light--a { left: 30%; top: 0; }
.lx-bg__light--b { left: -20%; top: 40%; opacity: .7; }
.lx-bg__topo { position: absolute; left: -10%; bottom: 0; width: 120%; height: auto; max-width: none; color: #FFFFFF; opacity: .05; }
.lx-groups { position: relative; z-index: 1; }
.lx-group { position: relative; padding-block: var(--section-y) 0; }
.lx-group:last-child { padding-bottom: var(--section-y); }
.lx-group__head { display: grid; gap: var(--s3); max-width: 760px; margin-bottom: var(--s6); }
.lx-group__text { max-width: 40em; }
.lx-steps { border-top: 1px solid var(--line); }
.lx-step {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s3);
  align-items: center; padding-block: var(--s6);
  border-bottom: 1px solid var(--line);
}
.lx-step__copy { grid-column: 1 / span 5; display: grid; gap: 12px; align-content: start; }
.lx-step__stage { grid-column: 7 / -1; }
.lx-step__kicker { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.lx-step__title { font-size: var(--fs-h3); line-height: 1.15; text-wrap: balance; }
.lx-step__copy > p:not(.lx-step__kicker) { max-width: 36em; }
.lx-navwrap { display: none; }

/* Umschalter je Abschnitt: läuft JavaScript, aber die Bühne nicht (Handy, niedrige Fenster, „Bewegung
   reduzieren“), zeigt jeder Abschnitt ein Kapitel statt aller untereinander. Ohne JavaScript bleibt
   der Umschalter verborgen (hidden) und alle Kapitel stehen untereinander. */
.lx-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s2); }
.lx-tab {
  min-width: 48px; height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05); color: var(--text);
  font-size: .9375rem; font-weight: 400; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease, border-color var(--dur-ui) ease, transform var(--dur-press) var(--ease);
}
.lx-tab:active { transform: scale(.96); }
.lx-tab[aria-current="true"] { background: #FFFFFF; border-color: #FFFFFF; color: var(--navy-deep); font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .lx-tab:not([aria-current="true"]):hover { background: rgba(255, 255, 255, .12); color: #FFFFFF; } }
.lx.is-tabs .lx-steps { border-top: 0; }
.lx.is-tabs .lx-step { display: none; align-items: start; padding-block: var(--s3) var(--s2); border-bottom: 0; }
.lx.is-tabs .lx-step.is-shown { display: grid; }

/* ---------- Panels (Glas, Maße relativ zur Panelbreite) ---------- */
.pnl {
  container-type: inline-size;
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; min-height: 360px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 40px 80px -36px rgba(2, 10, 26, .8), 0 14px 28px -16px rgba(2, 10, 26, .45);
  color: var(--text-glass);
  overflow: hidden;
}
.pnl__topo { position: absolute; left: -12%; bottom: -2%; width: 124%; height: auto; max-width: none; color: #FFFFFF; opacity: .07; pointer-events: none; }
.pnl__top {
  position: relative;
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 46px; padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  font-size: .8125rem;
}
.pnl__title { font-weight: 600; color: #FFFFFF; }
.pnl__pos { color: var(--text-glass); font-variant-numeric: tabular-nums; }
.pnl__body { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(18px, 4.5cqw, 32px); gap: 3cqw; }

/* Leistungen: Höhenprofil */
/* Kopf oben, das Profil füllt den Rest bis zu den Beschriftungen – kein Leerraum dazwischen */
.rtp { justify-content: flex-start; gap: clamp(14px, 3.4cqw, 24px); }
.rt-wrap { flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 2.4cqw; }
.rt { display: block; width: 100%; height: clamp(120px, 36cqw, 230px); overflow: visible; }
.lx.is-pinned .rt { height: 100%; min-height: 96px; }
.rt__grid line { stroke: rgba(255, 255, 255, .08); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.rt__ghost { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.25; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.rt__area { fill: url(#rt-fill); }
.rt__line { fill: none; stroke: #FFFFFF; stroke-width: 2.25; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rt__summit path { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rt__summit.is-reached path { stroke: #FFFFFF; fill: rgba(255, 255, 255, .25); }
/* Punkte sind Striche der Länge 0 mit runden Enden: bleiben Kreise, auch wenn die Grafik gestreckt wird */
.rt__pt, .rt__ring { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rt__pt { stroke: #6F8DB8; stroke-width: 11; }
.rt__pt.is-done { stroke: #FFFFFF; }
.rt__ring { stroke: #FFFFFF; stroke-width: 19; }
.rt__pt.is-active { stroke: var(--copper); stroke-width: 13; }
.rt__labels { display: grid; grid-template-columns: repeat(4, 24%); margin-left: 3.6%; font-size: max(13px, 2.1cqw); line-height: 1.3; color: var(--text-glass); }
.rt__labels li { display: grid; gap: 2px; padding-right: 6px; }
.rt__labels span { font-size: max(13px, 1.8cqw); font-weight: 600; letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.rt__labels .is-active { color: #FFFFFF; font-weight: 600; }
.rt__labels .is-active span { color: #FFFFFF; }
/* Schmales Panel (Handy): nur die aktive Etappe trägt ihren Namen, die anderen zeigen die Nummer –
   vier Wörter nebeneinander stoßen dort aneinander */
@container (max-width: 400px) {
  .rt__labels li { white-space: nowrap; }
  .rt__labels li:not(.is-active) { font-size: 0; }
  .rt__labels li:not(.is-active) span { font-size: 13px; }
}
.rt-head { display: grid; gap: 4px; }
.rt-head__k { font-size: max(13px, 1.9cqw); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-glass); }
.rt-head__num { font-size: clamp(48px, 13cqw, 88px); line-height: .95; color: #FFFFFF; letter-spacing: -0.04em; font-variant-numeric: lining-nums tabular-nums; }
.rt-head__t { font-size: max(15px, 2.7cqw); line-height: 1.25; color: #FFFFFF; }

/* Einsatzbereiche: Heute vs. Mit Assistenz */
.ucp { justify-content: center; }
.ucp__title { font-size: max(17px, 3.3cqw); line-height: 1.2; color: #FFFFFF; }
.ucp__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; }
.ucp__col { display: grid; align-content: start; gap: 2cqw; padding: max(14px, 3cqw); border-radius: 16px; }
.ucp__col--before { background: rgba(7, 26, 56, .32); border: 1px solid rgba(255, 255, 255, .07); }
.ucp__col--after { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.ucp__k { font-size: max(13px, 1.9cqw); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-glass); }
.ucp__col--after .ucp__k { color: #FFFFFF; }
.ucp__col ol { display: grid; gap: 1.6cqw; }
.ucp__col li { font-size: max(13px, 2.3cqw); line-height: 1.4; }
.ucp__col--before li { padding-left: 14px; position: relative; color: var(--text-glass); }
.ucp__col--before li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.ucp__col--after li { display: grid; grid-template-columns: max(16px, 2.6cqw) 1fr; gap: 8px; align-items: start; color: #EEF2F7; transition: opacity 300ms ease; }
.ucp__col--after li svg { width: max(16px, 2.6cqw); height: max(16px, 2.6cqw); margin-top: .1em; color: #FFFFFF; }
.ucp__col--after li.is-human { padding: 1.4cqw; margin: 0 -1.4cqw -1.4cqw; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #FFFFFF; font-weight: 500; }
@container (max-width: 440px) {
  .ucp__cols { grid-template-columns: 1fr; }
}

/* Arbeitsweise: Zitat + aktiver Grundsatz */
/* Zitat oben, aktiver Grundsatz und Fortschritt als Gruppe unten */
.qt { justify-content: flex-start; }
.qt__active { margin-top: auto; }
.qt__quote { font-size: clamp(24px, 6.4cqw, 42px); line-height: 1.12; color: #FFFFFF; letter-spacing: -0.03em; text-wrap: balance; }
.qt__active {
  display: grid; grid-template-columns: auto 1fr; gap: 4cqw; align-items: center;
  padding: max(14px, 3.4cqw); border-radius: 16px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.qt__num { font-size: clamp(32px, 8.5cqw, 56px); line-height: .95; letter-spacing: -0.04em; color: #FFFFFF; font-variant-numeric: lining-nums tabular-nums; }
.qt__title { font-size: max(14px, 2.6cqw); line-height: 1.35; font-weight: 500; color: #FFFFFF; }
.qt__dots { display: flex; gap: 8px; }
.qt__dots li { width: 22px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.qt__dots .is-done { background: rgba(255, 255, 255, .55); }
.qt__dots .is-active { width: 40px; background: #FFFFFF; }

/* ---------- Gepinnte Bühne ---------- */
.lx.is-pinned .lx-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  padding-top: var(--header-h);
  overflow: hidden;
}
.lx.is-pinned .lx-bg__light { will-change: transform; }
.lx.is-pinned .lx-bg__topo { will-change: transform; }
.lx.is-pinned .lx-groups { display: grid; min-height: 0; }
.lx.is-pinned .lx-group {
  grid-area: 1 / 1; min-height: 0; padding: 0;
  display: flex; align-items: center;
  pointer-events: none;
}
.lx.is-pinned .lx-group__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "head head head head head . stage stage stage stage stage stage"
    "copy copy copy copy copy . stage stage stage stage stage stage";
  grid-template-rows: auto auto;
  column-gap: var(--gap);
  align-content: center; align-items: center;
}
.lx.is-pinned .lx-group__head {
  grid-area: head; align-self: end;
  gap: 14px; margin: 0 0 var(--s4); padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line-strong);
  opacity: 0;
  will-change: opacity, transform;
}
.lx.is-pinned .lx-group__head .h2 { font-size: clamp(1.625rem, 1rem + 1.4vw, 2.375rem); }
.lx.is-pinned .lx-group__text { font-size: 1rem; line-height: 1.55; }
.lx.is-pinned .lx-steps, .lx.is-pinned .lx-step { display: contents; }
.lx.is-pinned .lx-step__copy {
  grid-area: copy; align-self: start;
  opacity: 0;
  will-change: opacity, transform;
}
.lx.is-pinned .lx-step.is-active .lx-step__copy { pointer-events: auto; }
.lx.is-pinned .lx-step__stage {
  grid-area: stage; align-self: center; justify-self: end;
  width: min(100%, 640px);
  height: min(calc(100vh - var(--header-h) - var(--nav-h) - 104px), 580px);
  perspective: 1800px; perspective-origin: 50% 30%;
}
.lx.is-pinned .pnl { height: 100%; min-height: 0; will-change: transform, opacity; transform-origin: 50% 60%; }
.lx.is-pinned .pnl.is-front {
  -webkit-backdrop-filter: saturate(150%) blur(22px);
  backdrop-filter: saturate(150%) blur(22px);
}
/* Listen im Panel leuchten beim Scrollen nacheinander auf */
.lx.is-pinned .ucp__col--after li[data-k]:not(.is-lit) { opacity: .4; }

.lx.is-pinned .lx-navwrap {
  display: block; position: relative; z-index: 2;
  background: rgba(7, 26, 56, .5);
  border-top: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
}
.lx-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.lx-nav__group {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--nav-h); padding-top: 12px;
}
/* Fortschritt des Abschnitts: Linie oben, wächst von links (Skalierung setzt stage.js) */
.lx-nav__group::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .14); }
.lx-nav__label i {
  position: absolute; left: 0; right: 0; top: 12px; height: 2px; border-radius: 1px;
  background: #FFFFFF;
  transform: scaleX(0); transform-origin: 0 50%;
}
.lx-nav__label {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: .875rem; font-weight: 500; color: var(--muted); text-align: left; white-space: nowrap;
  transition: color 200ms ease;
}
.lx-nav__label.is-active { color: #FFFFFF; }
.lx-nav__ticks { display: flex; align-items: center; }
.lx-nav__tick {
  width: 22px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; border-radius: 6px;
}
.lx-nav__tick span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  transition: transform 200ms var(--ease), background-color 200ms ease;
}
.lx-nav__tick.is-done span { background: rgba(255, 255, 255, .6); }
.lx-nav__tick.is-active span { background: #FFFFFF; transform: scale(1.45); }
.lx-nav__tick:active span { transform: scale(.8); }
@media (hover: hover) and (pointer: fine) {
  .lx-nav__label:hover { color: #FFFFFF; }
  .lx-nav__tick:hover span { background: #FFFFFF; }
}

/* Niedrige Fenster: kompaktere Bühne */
@media (max-height: 820px) {
  .lx.is-pinned .lx-group__head { gap: 10px; margin-bottom: var(--s3); padding-bottom: var(--s3); }
  .lx.is-pinned .lx-group__head .h2 { font-size: clamp(1.5rem, 1rem + 1.2vw, 2.125rem); }
  .lx.is-pinned .lx-group__text { font-size: .9375rem; }
  .lx.is-pinned .lx-step__copy { gap: 8px; }
  .lx.is-pinned .lx-step__title { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
  .lx.is-pinned .lx-step__copy > p:not(.lx-step__kicker) { font-size: 1rem; }
  :root { --nav-h: 56px; }
}

/* ---------- Über uns ---------- */
.about-section { background: linear-gradient(180deg, var(--navy-deep), var(--navy) 60%, var(--navy-deep)); }
.about { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s6); align-items: center; }
.about__intro { grid-column: 1 / span 5; display: grid; gap: var(--s3); }
.people { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; align-items: stretch; gap: var(--gap); }
.person { overflow: hidden; display: flex; flex-direction: column; }
.person__portrait {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(42, 82, 134, .7), rgba(42, 82, 134, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(7, 26, 56, .45));
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.person__topo { position: absolute; left: -30%; bottom: 0; width: 160%; height: auto; max-width: none; color: #FFFFFF; opacity: .12; }
.person__mono { position: relative; font-size: clamp(2.75rem, 2rem + 2vw, 4rem); line-height: 1; color: #FFFFFF; letter-spacing: -0.02em; }
.person__body { flex: 1 1 auto; display: grid; align-content: start; gap: 10px; padding: clamp(20px, 2.4vw, 28px); }
.person__name { font-size: clamp(1.125rem, 1rem + .3vw, 1.3125rem); line-height: 1.2; }
.person__role { font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: #FFFFFF; }
.person__body p:last-child { font-size: var(--fs-small); line-height: 1.6; color: var(--text-glass); }

/* ---------- Kontakt ---------- */
.contact-section { background: linear-gradient(180deg, var(--navy-deep), var(--navy) 70%); }
.contact-section__topo { position: absolute; left: -10%; top: 4%; width: 120%; height: auto; max-width: none; color: #FFFFFF; opacity: .05; pointer-events: none; }
.contact { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s6); align-items: start; }
.contact__copy { grid-column: 1 / span 5; display: grid; gap: var(--s3); }
.contact__list { display: grid; gap: var(--s3); margin-top: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line); }
.contact__list dt { display: flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact__list dt svg { width: 18px; height: 18px; }
.contact__list dd { margin-top: 6px; color: #FFFFFF; line-height: 1.6; }
.contact__form { grid-column: 7 / -1; padding: clamp(24px, 3.4vw, 48px); }
#contact-form { display: grid; gap: var(--s3); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .calc-intro { grid-column: 1 / -1; max-width: 720px; }
  .calc, .calc-cta { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero__copy, .hero__scene { grid-column: 1 / -1; }
  .hero__scene { max-width: 640px; }
  .lx-step__copy, .lx-step__stage { grid-column: 1 / -1; }
  .about__intro, .people, .contact__copy, .contact__form { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .calc { grid-template-columns: 1fr; }
  .calc__result { border-left: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .calc-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  /* Handy: engerer Rhythmus, damit die Seite kurz bleibt */
  :root { --section-y: 72px; }
  .calc-grid { row-gap: var(--s4); }
  .calc__form { gap: var(--s3); }
  .pnl { min-height: 320px; }
  .scene { padding: 28px 14px 52px 6px; }
  .scene-rig { transform: rotateY(-5deg) rotateX(3deg); }      /* V3.1: mobil flachere Grundneigung */
  .scene-tabs { margin-left: 6px; }
  .scene-tabs__tab { padding: 0 12px; }
  .dk-text { font-size: .875rem; }
  .scene__sheet--1 { inset: -14px -10px 30px 16px; }
  .scene__sheet--2 { inset: -26px -20px 60px 32px; }
  .chat__bar { padding: 0 14px; }
  .chat__body { padding: 16px 14px 32px; gap: 14px; }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .doc { grid-template-columns: 14px minmax(0, 1fr) 16px; gap: 6px; padding: 6px 8px; }
  .doc__ico { width: 14px; height: 14px; }
  .doc__hit { width: 16px; height: 16px; }
  .q { max-width: 92%; }
  .q__text, .a__s { font-size: .875rem; }
  .src { padding-left: 0; }
  .chip { white-space: normal; }
  .review { left: 4px; bottom: -22px; }
  /* Personen: Porträt bleibt 4:5 (klein, links), Name und Rolle daneben, Text darunter über die ganze Breite */
  .people { grid-template-columns: 1fr; }
  .person {
    display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: var(--s2);
    grid-template-areas: "bild name" "bild rolle" "text text";
    padding: var(--s2);
  }
  .person__body { display: contents; }
  .person__portrait { grid-area: bild; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; }
  .person__name { grid-area: name; align-self: end; }
  .person__role { grid-area: rolle; align-self: start; margin-top: 6px; }
  .person__body p:last-child { grid-area: text; margin-top: var(--s2); }
  .person__mono { font-size: 2rem; }
  .pnl { border-radius: 18px; }
}
@media (max-width: 420px) {
  .calc__outs { grid-template-columns: 1fr; gap: var(--s2); }
}
@media (max-width: 400px) {
  .doc { grid-template-columns: minmax(0, 1fr) 16px; }
  .doc__ico { display: none; }
}
@media (max-width: 380px) {
  .chat__bar { flex-wrap: wrap; row-gap: 2px; padding-block: 8px; }
  .person { grid-template-columns: 88px minmax(0, 1fr); }
}

/* Einstieg ab 1200 px (V3.1): breitere Textspalte, Verhältnis ca. 1,55 : 1 zur Szene */
@media (min-width: 1200px) {
  .hero__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .hero__copy { grid-column: 1; }
  .hero__scene { grid-column: 2; }
}

