/* ============================================================
   IMMERSIVE — Poetry / Dance / …
   Floema-inspired vertical scroll-driven storytelling.
   Geteiltes CSS für alle /immersive/*-Seiten.
   ============================================================ */


/* ============================================================
   01  TOKENS
   ============================================================ */
:root {
  --imm-bg:             #000;
  --imm-fg:             #fff;
  --imm-accent:         #FFF600;
  --imm-overlay:        rgba(0, 0, 0, 0.6);

  --imm-content-pad-x:  clamp(24px, 5vw, 80px);
  --imm-content-pad-b:  clamp(40px, 6vh, 96px);

  /* Offset der Buttons-Row vom unteren Viewport-Rand (Seq 1 Final State).
     Höher als imm-content-pad-b damit Panel + Buttons gemeinsam höher sitzen. */
  --imm-buttons-bottom: calc(var(--imm-content-pad-b) + 160px);

  /* Top-Position der Buttons-Row wenn Seq 2 aktiv ist.
     Auf Mobile höher gesetzt damit der Header (Logo + Burger) nicht
     verdeckt wird. */
  --imm-buttons-top: 24px;

  --imm-ease:           cubic-bezier(0.22, 1, 0.36, 1);
  --imm-reveal-dur:     900ms;
  --imm-reveal-shift:   28px;
  --imm-line-dur:       1100ms;
}
@media (max-width: 768px) {
  :root { --imm-buttons-top: 88px; }
}


/* ============================================================
   02  BODY (Immersive variant)
   ============================================================ */
.immersive-body {
  background: var(--imm-bg);
  color: var(--imm-fg);
  /* overflow-x: clip statt hidden, sonst macht der Browser body zum
     Scroll-Container und position:sticky pinnt nicht mehr. */
  overflow-x: clip;
  overflow-y: visible;
  /* iOS Safari: verhindert Pull-to-Refresh und Scroll-Chaining am Bottom
     (User-Bug-Report: am Bookmark-Ende swipt's manchmal an den Page-Anfang). */
  overscroll-behavior-y: contain;
}
html:has(.immersive-body) {
  overscroll-behavior-y: contain;
}
/* Native smooth-scroll (aus generai-style.css) deaktivieren — wir steuern
   alle Scroll-Animationen selbst per JS (easeOutScrollTo). */
html:has(.immersive-body),
.immersive-body { scroll-behavior: auto; }


/* ============================================================
   LIGHTBOX MODAL — max 95% Screen-Breite (über generai-style.css Default)
   ============================================================ */
.immersive-body .lightbox-modal {
  background: #000;  /* 100% opaque — kein Bleed des Videos im Hintergrund */
}

.immersive-body .lightbox-content {
  max-width: 95vw;
  max-height: 95vh;
}

/* YouTube-Iframe füllt den Modal-Slide */
.immersive-body .lightbox-slide iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  max-width: 95vw;
  max-height: 95vh;
  border: 0;
  background: #000;
}

/* Header soll auf dunklem Video lesbar bleiben — Logo + Menu
   sind bereits inline-SVG mit mix-blend-mode-friendly currentColor */
.immersive-body header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  mix-blend-mode: difference;
  color: #fff;
}

/* Skip-Link (Accessibility) — gilt für immersive sequenz-pages + immersive landing */
.immersive-body .skip-link,
.imm-landing .skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 14px;
  text-decoration: none;
}
.immersive-body .skip-link:focus,
.imm-landing .skip-link:focus { top: 0; }


/* ============================================================
   03  IMMERSIVE CONTAINER
   ============================================================ */
.immersive {
  display: block;
  width: 100%;
}


/* ============================================================
   04  SEQUENCE
   300lvh = 1× initial state + 2× scroll-distance für 6 stage transitions.
   Sticky Inner hält Video/Overlay/Panel im Viewport.
   ============================================================ */
.sequence {
  position: relative;
  width: 100%;
  height: 300lvh;
  background: var(--imm-bg);
}

.sequence__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100lvh;
  overflow: hidden;
  isolation: isolate;
}


/* ============================================================
   05  BACKGROUND VIDEO
   ============================================================ */
.sequence__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease-out;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.sequence.is-ready .sequence__bg {
  opacity: 1;
}

/* Loader während Sequence-Video lädt — mittig auf der Sticky-Fläche */
.sequence__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.4s ease;
  line-height: 0;
}
.sequence__loader.is-hidden {
  opacity: 0;
}

.sequence__bg-guard {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

@keyframes imm-fade-in {
  to { opacity: 1; }
}


/* ============================================================
   06  OVERLAY — fadet ab Stage 2 ein (sobald gescrollt wird)
   ============================================================ */
.sequence__overlay {
  position: absolute;
  inset: 0;
  background: var(--imm-overlay);
  opacity: 0;
  transition: opacity 1200ms var(--imm-ease);
  z-index: 2;
  pointer-events: none;
}

.sequence:not([data-stage="1"]) .sequence__overlay { opacity: 1; }


/* ============================================================
   07  CONTENT PANEL (60% width, horizontal mittig)
   ============================================================ */
.sequence__panel {
  position: absolute;
  left: 50%;
  /* Panel-Bottom = Buttons-Top - 48px gap.
     Buttons-Top = vh - buttons-bottom - btn-height (48).
     → CSS bottom = buttons-bottom + 48 (btn) + 48 (gap) */
  bottom: calc(var(--imm-buttons-bottom) + 48px + 48px);
  transform: translateX(-50%);
  z-index: 3;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  pointer-events: none;
}

.sequence__panel > * { pointer-events: auto; }

/* Linie wird per scaleX von links nach rechts gezeichnet (statt nur fade) */
.panel__rule {
  width: 100%;
  height: 1px;
  border: 0;
  background: #fff;
  margin: 0;
  /* Wir setzen die Reveal-Werte hier direkt mit höherer Spezifität,
     damit die [data-reveal] Defaults (translateY-Fade) NICHT greifen. */
}

.panel__title {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.17;
  letter-spacing: -0.01em;
  color: #fff;
}

.panel__body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.5;
  color: #fff;
}

/* Body-Swap-Container — beide Bodies stacken im selben Grid-Cell.
   Container-Höhe = max(body1, body2) Höhe (kein leerer Reserve-Block). */
.panel__bodies {
  display: grid;
}
.panel__bodies > .panel__body {
  grid-column: 1;
  grid-row: 1;
}


/* ============================================================
   08  REVEAL ANIMATIONS
   Default: opacity 0 + translateY(+28px) (kommt von unten hoch).
   .is-visible:    opacity 1, transform 0.
   .is-hidden-up:  opacity 0, translateY(-28px) (geht nach oben weg).
   ============================================================ */
/* Default-Reveal via transition: gilt für H1 und Body (NICHT Buttons,
   die haben eigenes Reveal via Keyframe damit der Hover-Lift unabhängig bleibt). */
[data-reveal]:not(.panel__rule):not(.ibtn) {
  opacity: 0;
  transform: translateY(var(--imm-reveal-shift));
  transition:
    opacity var(--imm-reveal-dur) var(--imm-ease),
    transform var(--imm-reveal-dur) var(--imm-ease);
  transition-delay: var(--imm-reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal]:not(.panel__rule):not(.ibtn).is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal]:not(.panel__rule):not(.ibtn).is-hidden-up {
  opacity: 0;
  transform: translateY(calc(var(--imm-reveal-shift) * -1));
}

/* Button-Reveal via Keyframe — entkoppelt von .ibtn's 0.3s Hover-Transition.
   Solange der Button noch nicht reveal-ed ist: nicht klickbar, nicht tab-bar
   (verhindert dass Klicks/Enter durch das unsichtbare Element ausgelöst werden). */
.ibtn[data-reveal] {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.ibtn[data-reveal].is-visible {
  animation: ibtn-reveal var(--imm-reveal-dur) var(--imm-ease) var(--ibtn-delay, 0ms) forwards;
  pointer-events: auto;
  visibility: visible;
}

@keyframes ibtn-reveal {
  from { opacity: 0; transform: translateY(var(--imm-reveal-shift)); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Line-Draw-Reveal: Linie wird von links nach rechts gezeichnet */
[data-reveal].panel__rule {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--imm-line-dur) var(--imm-ease);
  transition-delay: var(--imm-reveal-delay, 0ms);
  will-change: transform;
}
[data-reveal].panel__rule.is-visible {
  transform: scaleX(1);
}


/* ============================================================
   09  BUTTON — analog zum Figma-Component (Default / hover / selected)
   16px SemiBold, padding 12/24, icon 16×16, radius 8
   ============================================================ */
.panel__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  /* 48px Abstand zum Body = flex gap (28) + zusätzlicher margin (20) */
  margin-top: 20px;
}


/* ============================================================
   SCROLL-HINT — Maus-Icon mit animierter Scroll-Bewegung unter
   der Headline. Position absolute relativ zum .panel__title-wrap,
   damit das Panel-Flex-Layout (Title→Body Gap) unverändert bleibt.
   Reveal NACH der Headline via JS (.is-revealed); Fadet beim ersten
   Scroll mit leichtem Slide nach oben aus (.is-hidden). */
.panel__title-wrap {
  position: relative;
}
.scroll-hint {
  position: absolute;
  top: calc(100% + 64px);  /* 64px unter dem Headline-Block */
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.scroll-hint.is-revealed {
  opacity: 1;
}
.scroll-hint.is-hidden {
  opacity: 0 !important;
  transform: translateY(-10px) !important;
}

.scroll-hint__mouse {
  width: 32px;
  height: 52px;
  position: relative;
  box-sizing: border-box;
  border: 1px solid #fff;
  /* 9999px → garantiert saubere Halbkreise oben/unten (Pill-Shape, da
     der Radius auf halbe Breite=16px geclamped wird). */
  border-radius: 9999px;
}
.scroll-hint__mouse::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 13px;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 10px;
  animation: scrollHintDown 1.5s linear infinite;
}

@keyframes scrollHintDown {
  0%   { top: 10px; height: 4px;  opacity: 1; }
  33%  { top: 10px; height: 27px;             }
  66%  { top: 33px; height: 7px;  opacity: 1; }
  100% { top: 37px; height: 4px;  opacity: 0; }
}

.ibtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--imm-accent);
  color: #000;
  border: 0;
  border-radius: 8px;
  /* <a> erbt im Default content-box, <button> border-box → ohne Reset wäre
     der Chamber-/Anfrage-Link mit explicit height höher als die Buttons. */
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.17;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease-in-out;
  /* Reveal-Delay pro Button für Stagger (von links nach rechts) */
  --imm-reveal-delay: var(--ibtn-delay, 0ms);
}

/* Hover-State analog zu generai-style.css .button.primary/secondary:
   leichter Lift + sanfter Schatten + Color-Inversion */
.ibtn:hover {
  background: #fff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.5);
}
.ibtn:hover .ibtn__icon { color: #000; }

/* Selected-State (aktive Sub-Sequenz) laut Figma Button Component
   state=selected: BLACK BG, WHITE text + icon (invertiert) */
.ibtn.is-selected {
  background: #000;
  color: #fff;
}
.ibtn.is-selected .ibtn__icon { color: #fff; }

.ibtn:active {
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

.ibtn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.ibtn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #373737;
  flex-shrink: 0;
}
.ibtn__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  /* Skalierung 24→16/12 ergibt non-integer Faktor → ohne diese Hints kann
     Sub-Pixel Anti-Aliasing das Icon weich machen. */
  shape-rendering: geometricPrecision;
  image-rendering: -webkit-optimize-contrast;
}
.ibtn__icon svg path { fill: currentColor; }


/* 3 Button-Größen 1:1 aus Figma Button Component (L / M / S).
   Stehen NACH der Basis-Definition damit die Media-Queries gewinnen. */

/* Size M — Medium: kleineres Padding, Font + Icon (ab <= 1300px) */
@media (max-width: 1300px) {
  .ibtn {
    padding: 8px 16px;
    font-size: 12px;
    gap: 4px;
  }
  .ibtn__icon { width: 12px; height: 12px; }
}

/* Size S — kompakter Mobile-State: nur Icon, kein Text (ab <=768) — Figma:
   44×30, padding 8×16, gap 0 (kein Label), corner-radius 8, icon 12×12. */
@media (max-width: 768px) {
  .ibtn {
    padding: 8px 16px;
    gap: 0;
    height: 30px;            /* Figma S height */
  }
  .ibtn__icon { width: 12px; height: 12px; }
  /* Text-Label ausblenden — nur das Icon bleibt */
  .ibtn > span:not(.ibtn__icon) { display: none; }
  .immersive-buttons { gap: 8px; }

  /* Hover-State für Size S deaktivieren — gelber BG bleibt, kein Lift, kein
     Shadow. Auf Touch-Geräten flashed der Hover sonst kurz weiß. */
  .ibtn:hover {
    background: var(--imm-accent);
    color: #000;
    transform: none;
    box-shadow: none;
  }
  .ibtn.is-selected:hover {
    background: #000;
    color: #fff;
  }
}


/* ============================================================
   10  GLOBALE BUTTONS-ROW (fixed, wechselt zwischen bottom↔top)
   Erscheint ab Seq 1 Stage 6 unten zentriert, wandert bei Seq 2
   nach oben sticky (per JS Klasse .is-at-top).
   ============================================================ */
.immersive-buttons {
  position: fixed;
  left: 50%;
  /* Position wird per JS gesetzt — interpoliert scroll-linked zwischen
     Bottom (Seq 1 Final State) und Top (Seq 2). */
  top: var(--ibtn-top, calc(100lvh - var(--imm-buttons-bottom) - 48px));
  transform: translateX(-50%);
  display: flex;
  flex-wrap: nowrap;       /* nie umbrechen */
  gap: 16px;
  z-index: 100;
  pointer-events: none;
  white-space: nowrap;
  /* Kein transition auf top — JS tracked direkt mit Scroll */
}

.immersive-buttons > * { pointer-events: auto; }


/* ============================================================
   11  SEQUENCE 2 — Triptych Content (weißer Hintergrund)
   ============================================================ */
.sequence--2 {
  position: relative;
  background: #fff;
  color: #000;
  /* Override .sequence height: 300lvh — Sequenz 2 wächst mit Content
     (Installation + Specs + Kontakt). */
  height: auto;
  min-height: 200lvh;
}

/* Scrolling Content — keine extra gap zwischen Pages, jede Page ist 100lvh */
.seq2__content {
  position: relative;
  z-index: 5;
  padding: 0 var(--imm-content-pad-x);
  display: flex;
  flex-direction: column;
}

.seq2__page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* exakt mittig zu 100lvh */
  gap: 32px;
  width: 50%;
  margin: 0 auto;
  height: 100lvh;             /* exakt eine Viewport-Höhe */
  box-sizing: border-box;
  padding-block: 24px;
  /* Safety net: kein Bleed in die nächste Page bei kleineren Screens */
  overflow: hidden;
  scroll-margin-top: 0;
}

/* Triptych-Page: breiter, Bild bekommt eigenes Größen-Limit */
.seq2__page--triptych {
  width: min(1200px, calc(100% - 2 * var(--imm-content-pad-x)));
  max-width: 1200px;
}

/* Specs-Page: nochmal breiter — 4 Info-Boxes nebeneinander */
.seq2__page--specs {
  width: min(1400px, calc(100% - 2 * var(--imm-content-pad-x)));
  max-width: 1400px;
}


/* ============================================================
   11a  INSTALLATION (Content-Strang: Triptych + Sound untereinander)
   Jeder .triptych-text / .triptych-image fadet beim Scroll ein (data-reveal-up).
   ============================================================ */
.seq2__page--installation {
  /* Override .seq2__page Default (50% width + 100lvh height): wir wollen
     zwei volle Blöcke nacheinander, mit Specs-Breite. */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(80px, 12vh, 160px);
  height: auto;
  min-height: 100lvh;
  width: min(1400px, calc(100% - 2 * var(--imm-content-pad-x)));
  max-width: 1400px;
  padding-block: clamp(120px, 14vh, 180px);
  overflow: visible;
}

/* Scroll-Reveal: Move-up + Fade. Selbe Kurve wie .info-inhalt (Sequence 3). */
[data-reveal-up] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1600ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal-up].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal-up] {
    transition: none;
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   12  TRIPTYCH-LAYOUT (Text-Liste links + Bild rechts)
   ============================================================ */
.triptych-layout {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  width: 100%;
}

.triptych-text {
  flex: 0 1 36%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.triptych-image {
  position: relative;
  flex: 1 1 auto;
  margin: 0;
  aspect-ratio: 888 / 925;
  /* Höhe nie größer als verfügbare Viewport-Höhe → kein Overflow nach unten */
  max-height: min(720px, calc(100lvh - 96px));
  max-width: 888px;
}

.triptych-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Installation-Strang: kein max-height (Content fließt frei), damit
   das Figure die volle 888/925-Aspect-Ratio behält → kein Bild-Crop. */
.seq2__page--installation .triptych-image {
  max-height: none;
}

/* Variante: Bild links, Text rechts (Sound-Block) */
.triptych-layout--reverse { flex-direction: row-reverse; }

/* Yellow Circle Markers über dem Triptych-Bild — Position relativ zu den 3 Panels */
.triptych-marker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--imm-accent);
  color: #000;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  z-index: 2;
  pointer-events: none;
}

/* Positionen nach Vorlage triptych.jpg — kann nach Bedarf feinjustiert werden */
.triptych-marker--1 { left: 12%; top: 55%; }
.triptych-marker--2 { left: 43%; top: 50%; }
.triptych-marker--3 { left: 82%; top: 43%; }


/* ============================================================
   13  SEQ2 TITLE + NUMBERED ITEMS — auf weißem BG
   ============================================================ */
.seq2__title {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.17;
  letter-spacing: -0.01em;
  color: #000;
}

.seq2__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seq2__items li {
  /* Custom-Property merkt sich die Item-Font-Size für den Num-Kreis Margin-Calc */
  --li-fs: clamp(16px, 1.6vw, 22px);
  display: flex;
  align-items: flex-start;       /* Kreis-Nummer vertikal top zum Label */
  gap: 10px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: var(--li-fs);
  line-height: 1.5;
  color: #000;
}

.seq2__items-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--imm-accent);
  color: #000;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  /* Skalierender Versatz: Kreis vertikal zur Mitte der ersten Textzeile (Cap-Height).
     Formel: (Line-Height - Kreis-Höhe) / 2 — zentriert Kreis in der Text-Zeilenbox.
     Bei großem Text (fs 22 → LH 33): margin 4.5px. Bei kleinem Text (fs 16 → LH 24): margin 0. */
  margin-top: max(0px, calc((var(--li-fs, 22px) * 1.5 - 24px) / 2));
}


/* ============================================================
   14  INFO-INHALT (Figma Frame 05 / Component info-inhalt)
   Bild (1:1, 240×240) links + Text rechts, vertikal unten ausgerichtet.
   Desktop: 2-spaltig (links 2, rechts 3 Items).
   Mobile <768px: Spalten stacken, Bild oben + Text unten pro Item.
   ============================================================ */
.info-content {
  display: flex;
  flex-wrap: wrap;
  column-gap: 44px;
  row-gap: 32px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.info-content__col {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1 1 0;
  max-width: 664px;
  min-width: 0;
}

.info-inhalt {
  display: flex;
  align-items: flex-end;       /* vertikal unten ausgerichtet (Figma counterAxisAlignItems: MAX) */
  gap: 24px;
  /* Reveal-Default: leicht unten + transparent. .is-visible blendet ein.
     Lange Dauer + pronounced easeOut (kein easeIn → startet sofort, läuft sanft aus). */
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1600ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--inhalt-delay, 0ms);
  will-change: opacity, transform;
}

.info-inhalt.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.info-inhalt__image {
  flex: 0 0 240px;
  width: 240px;
  height: 240px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}
.info-inhalt__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-inhalt__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-inhalt__title {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: #000;
}

/* Paragraph-Spacing 8px zwischen Absätzen */
.info-inhalt__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-inhalt__body p {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.2;
  color: #000;
}

/* Mobile <768px: info-inhalte stacken — Bild oben, Text unten */
/* Hinweis: info-inhalt-Layout bei <=768 verhält sich wie bei <=960
   (1-Spalten-Grid, info-inhalt bleibt horizontal Bild|Text mit 140×140).
   Frühere column-Override hier wurde entfernt. */


/* Footer im immersiven Kontext: weißer BG, schwarze Schrift
   (überschreibt `color: var(--imm-fg) = #fff` vom .immersive-body). */
.immersive-body footer,
.immersive-body footer h4,
.immersive-body footer p,
.immersive-body footer .footer-item,
.immersive-body footer .footer-links {
  color: #000;
}

/* Bookmark-Grid Section nach Kontakt: weißer BG mit Spacer 240 / 400.
   position: relative + z-index hebt die Section über das Sequence-1 Video
   (position: fixed, z-index: 0 auf <=768px). */
.immersive-bookmarks {
  position: relative;
  z-index: 10;
  background: #fff;
  color: #000;
  padding-top: 240px;
  padding-bottom: 400px;
  padding-inline: var(--imm-content-pad-x);
}

/* Footer ebenfalls über Video (sonst auch durchsichtig auf <=768px).
   BG = Original #F6F6F6 (generai-style.css), nur explizit gehalten als
   Schutz gegen Transparenz im immersiven Kontext. */
.immersive-body footer {
  position: relative;
  z-index: 10;
  background: #F6F6F6;
}


/* ============================================================
   14a  KONTAKT (Sequence 2 — letzte Section vor dem Footer)
   "Interesse geweckt?" — zentrierte Headline + Body + CTA mit Mail-Icon.
   ============================================================ */
.kontakt-section {
  background: #fff;
  color: #000;
  padding-block: clamp(120px, 18vh, 240px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kontakt-section__inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-inline: var(--imm-content-pad-x);
}

.kontakt-section__title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.kontakt-section__body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  margin: 0;
  max-width: 560px;
}

.kontakt-section__cta {
  /* erbt .ibtn — Lift-Hover + Yellow BG */
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.kontakt-section__cta .ibtn__icon {
  width: 18px;
  height: 18px;
  color: #000;
  flex: 0 0 auto;
}


/* ============================================================
   14b  BREAKPOINT 1300px — Mid-Desktop Anpassungen
   - Buttons L → M (siehe @media bei .ibtn weiter oben)
   - info-inhalt Bilder 240→200
   - Sequence 2 / 3 (Installation + Specs) auf 90% Screen-Breite
   - Sequence 2 Bilder (Triptych) auf 75% schrumpfen
   ============================================================ */
@media (max-width: 1300px) {
  .info-inhalt__image {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
  }

  .seq2__page--installation,
  .seq2__page--specs {
    /* 92% Screen-Breite — überschreibt das Inner-Padding von .seq2__content via vw */
    width: 92vw;
    max-width: 92vw;
    margin-inline: calc(50% - 46vw);
  }

  .seq2__page--installation .triptych-image {
    flex: 0 1 auto;
    width: 50vw;
    max-width: 50vw;
  }

  /* Installation: Triptychon- und Audio-Block horizontal mittig zentrieren */
  .seq2__page--installation .triptych-layout {
    justify-content: center;
  }

  /* Sequence 1: Panel weiter nach unten rücken (Gap zu Buttons halbieren) */
  .sequence__panel {
    bottom: calc(var(--imm-buttons-bottom) + 48px + 24px);
  }
}


/* ============================================================
   14c  BREAKPOINT 1024px — Tablet-Querformat
   - Sequence 1 Panel: 60% Breite
   - info-inhalt Bilder: 160×160
   - Buttons-Leiste unterhalb des Headers (96px) statt 24px
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --imm-buttons-top: 70px;
  }

  .sequence__panel {
    width: 60%;
  }

  .info-inhalt__image {
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
  }
}


/* ============================================================
   14d  BREAKPOINT 960px
   - Sequence 1 Panel ins untere Drittel der Browserhöhe rücken
   - Sequence 3 info-inhalte vertikal stacken (1 Spalte)
   - info-inhalt Bilder 140×140
   ============================================================ */
@media (max-width: 960px) {
  /* Panel + Buttons gemeinsam tiefer rücken — kleinerer Boden-Abstand
     zieht die ganze Gruppe (Buttons + darüber sitzendes Panel) nach unten. */
  :root {
    --imm-buttons-bottom: calc(var(--imm-content-pad-b) + 60px);
  }

  /* Sequence 2 + 3 auf 80% Screen-Breite verkleinern */
  .seq2__page--installation,
  .seq2__page--specs {
    width: 80vw;
    max-width: 80vw;
    margin-inline: calc(50% - 40vw);
  }

  /* Sequence 2 Triptych-Bilder weiter verkleinern auf 40vw (50% der Page-Breite) */
  .seq2__page--installation .triptych-image {
    width: 40vw;
    max-width: 40vw;
  }

  /* Info-Inhalte (Specs): 1-spaltig, alles untereinander */
  .info-content {
    flex-direction: column;
    align-items: stretch;
  }
  .info-content__col {
    max-width: none;
    width: 100%;
  }

  .info-inhalt__image {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
  }
}


/* ============================================================
   15  RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .sequence__panel {
    width: 70%;
    gap: 20px;
  }
  .panel__buttons { gap: 10px; }

  /* Mobile: Video + Overlay als full-screen Fixed-Layer */
  .sequence__bg,
  .sequence__bg-guard,
  .sequence__overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
  }
  .sequence__bg { z-index: 0; }
  .sequence__bg-guard { z-index: 1; }
  .sequence__overlay  { z-index: 2; }

  /* Sequence 2 Mobile-Anpassungen */
  .seq2__content { padding-inline: 0; }
  .seq2__page {
    width: 100%;
    padding-inline: 8px; /* nur Mini-Padding, sonst passen 2× Info-Box (170+170+16=356) bei 375vw nicht rein */
    /* Auf Mobile darf die Page wachsen wenn der Inhalt > 100lvh ist
       (Info-Boxes wären sonst oben abgeschnitten). Content beginnt unter
       der Buttons-Row, kein vertikales Zentrieren. */
    height: auto;
    min-height: 100lvh;
    justify-content: flex-start;
    padding-top: 132px;       /* Buttons-Row Bottom (~116) + Atemraum */
    padding-bottom: 32px;
    overflow: visible;
  }
  .immersive-buttons { gap: 10px; }
  /* info-boxes Layout bleibt 2×2 auch auf Mobile (Figma viewport=S) */

  /* Triptych: Bild oben, Text darunter (für beide Blöcke gleich) */
  .triptych-layout,
  .triptych-layout--reverse {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .triptych-text, .triptych-image { flex: 0 0 auto; max-width: 100%; }
  /* Bild bei <=768: 50% Screen-Breite, linksbündig zum Text */
  .seq2__page--installation .triptych-image {
    width: 50vw;
    max-width: 50vw;
    align-self: flex-start;
  }
}


/* ============================================================
   14e  BREAKPOINT 600px — Mobile S
   - Sequence 1 Panel: 80% Screen-Breite
   - Sequence 2 + 3: 80% Screen-Breite
   - info-inhalt Bilder: 80×80
   - info-inhalt Text + Bild top-aligned (statt flex-end)
   ============================================================ */
@media (max-width: 600px) {
  .sequence__panel {
    width: 80%;
  }

  .seq2__page--installation,
  .seq2__page--specs {
    width: 80vw;
    max-width: 80vw;
    margin-inline: calc(50% - 40vw);
  }

  .info-inhalt {
    align-items: flex-start;
  }
  .info-inhalt__image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
  }
}


/* ============================================================
   16  REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .sequence__overlay,
  .sequence__bg,
  .panel__rule {
    transition: none !important;
    animation: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  [data-reveal].is-hidden-up { opacity: 0; }
  .panel__rule { transform: scaleX(1); }
  .sequence__bg { opacity: 1; }
}


/* ============================================================
   IMMERSIVE LANDING (/immersive/index.php)
   Goodman-inspired: full-bleed hero, large card grid, white bg.
   ============================================================ */
.imm-landing {
  background: #fff;
  color: #000;
}

/* Full-bleed Hero — Loop-Video oder Bild + zentrierter Titel
   Parallax: Hero-BG translates langsamer, Content translates etwas und faded.
   Wird vom Scroll-Handler in /immersive/index.php gesteuert. */
.imm-hero {
  position: relative;
  width: 100%;
  height: 85lvh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}

/* Loader während das Hero-Video lädt — horizontaler Balken auf 50% Breite,
   horizontal/vertikal mittig, wird per JS auf 'playing' Event ausgeblendet. */
.imm-hero__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
  line-height: 0; /* verhindert Extra-Höhe durch inline-block */
}
.imm-hero__loader.is-hidden {
  opacity: 0;
}

.imm-hero__bg {
  position: absolute;
  left: 0;
  top: -50%;        /* Headroom oben — der Parallax-Translate schiebt den BG
                       nach UNTEN, dieser negative Top sorgt dafür, dass auch
                       bei max-Translate immer noch BG am Hero-Top sichtbar ist. */
  width: 100%;
  height: 150%;     /* Gesamthöhe: 50% über Hero, 100% auf Hero-Höhe */
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  opacity: 0;
  transition: opacity 0.8s ease-out;
}
.imm-hero.is-video-ready .imm-hero__bg {
  opacity: 1;
}

.imm-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  will-change: opacity;
}

.imm-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translate3d(0, -50%, 0);
  text-align: center;
  padding-inline: clamp(24px, 5vw, 80px);
  color: #fff;
  z-index: 2;
  will-change: transform, opacity;
  opacity: 0;                                /* Start unsichtbar */
  transition: opacity 0.8s ease;
}
/* Sichtbar, sobald das Hero-Video das erste Frame zeigt (JS setzt .is-video-ready) */
.imm-hero.is-video-ready .imm-hero__content {
  opacity: 1;
}

/* Reduced motion: keine Parallax-Transforms */
@media (prefers-reduced-motion: reduce) {
  .imm-hero__bg,
  .imm-hero__content { transform: none !important; }
  .imm-hero__content { opacity: 1 !important; }
}

.imm-hero__eyebrow {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 clamp(16px, 2vh, 24px) 0;
  opacity: 0.85;
}

.imm-hero__title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(36px, 6.5vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(20px, 2.4vh, 32px) 0;
  color: #fff;
}

.imm-hero__tagline {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Intro — schmaler Textblock unter Hero */
.imm-intro {
  box-sizing: border-box;
  width: 100%;
  padding-block: clamp(96px, 14vh, 180px);
  padding-inline: clamp(24px, 5vw, 80px);
  display: flex;
  justify-content: center;
}

.imm-intro__inner {
  max-width: 760px;
  text-align: center;
}

.imm-intro__eyebrow {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 24px 0;
  color: #000;
}

.imm-intro__title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 28px 0;
}

.imm-intro__body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  margin: 0;
}

/* Card-List — Sticky-Scroll Pattern (Goodman-like)
   Jeder Teaser ist eine 2-Spalten-Zeile [Text | Bild], abwechselnd umgekehrt.
   Text-Spalte ist position:sticky, Bild ist höher → Text bleibt stehen,
   bis die nächste Zeile ihn wegschiebt. */
.imm-grid-section {
  box-sizing: border-box;
  width: 100%;
  padding-block: clamp(40px, 6vh, 96px) clamp(96px, 14vh, 180px);
  padding-inline: clamp(24px, 5vw, 80px);
}

.imm-cards-list {
  display: flex;
  flex-direction: column;
  gap: 80px; /* Abstand zwischen den Teasern */
  max-width: 1600px;
  margin: 0 auto;
}

.imm-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.imm-card--reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.imm-card--reverse .imm-card__media {
  order: -1;
}

.imm-card__media {
  position: relative;
  width: 100%;
  margin: 0; /* User-Agent default <figure> margin 16px 40px aushebeln */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
  border-radius: 24px;
}

.imm-card__media img,
.imm-card__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 1.2s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.imm-card:hover .imm-card__media img,
.imm-card:hover .imm-card__media video,
.imm-card:focus-visible .imm-card__media img,
.imm-card:focus-visible .imm-card__media video {
  transform: scale(1.05);
}

/* Sticky Text-Spalte — bleibt stehen, bis die nächste Zeile sie wegschiebt.
   Padding rundherum (mit Akzent auf links), damit auf Hover der gelbe
   Box-Hintergrund visuell sauber wirkt — analog zur .teaser-body
   auf Home (teaser-card--xl). */
.imm-card__meta {
  position: sticky;
  top: clamp(120px, 22vh, 220px);
  align-self: start;
  padding: clamp(24px, 2.2vw, 48px);
  border-radius: 24px;
  background-color: transparent;
  transition: background-color 0.4s ease;
}

.imm-card:hover .imm-card__meta,
.imm-card:focus-visible .imm-card__meta {
  background-color: #FFF600;
}

.imm-card__eyebrow {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 20px 0;
  color: #000;
  opacity: 0.6;
}

.imm-card__title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 3.2vw, 22px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 20px 0;
}

.imm-card__sub {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
  margin: 0 0 28px 0;
  color: #000;
  opacity: 0.65;
}

.imm-card__desc {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  margin: 0 0 28px 0;
  color: #000;
  max-width: 52ch;
}

/* Card-CTA basiert auf .button.secondary aus generai-style.css.
   Override: inline-flex statt flex, damit der Button auf Content-Breite
   schrumpft statt die volle Text-Spalte zu füllen. Höhere Specificity
   nötig, da .button.secondary kombiniert (0,2,0) den Basic-Selektor
   (0,1,0) schlagen würde. */
.button.secondary.imm-card__cta,
.button.primary.imm-card__cta {
  display: inline-flex;
  width: auto;
  align-self: flex-start;
}

/* Section-Titel (für "Aktuelle Installationen" o.ä.) */
.imm-section-head {
  max-width: 1600px;
  margin: 0 auto clamp(40px, 6vh, 64px) auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
}

.imm-section-head__title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  margin: 0;
}

.imm-section-head__rule {
  flex: 1;
  height: 1px;
  background: #000;
  opacity: 0.15;
}

/* Mobile — stacking, sticky off (zu wenig vertical room für sinnvolles Sticky) */
@media (max-width: 900px) {
  .imm-card,
  .imm-card--reverse {
    grid-template-columns: 1fr;
    gap: 0; /* meta und media verschmelzen visuell — wie teaser-card--xl */
    padding-block: 0;
  }
  .imm-cards-list { gap: 24px; }
  .imm-card--reverse .imm-card__media { order: 0; }
  .imm-section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .imm-section-head__rule { width: 100%; flex: 0 0 1px; }

  /* Jeder Teaser-Block wird zur teaser-card--xl-artigen Einheit:
     meta oben (gray bg, oben rund, unten flach) — media unten (oben flach, unten rund). */
  .imm-card__meta {
    position: static;
    top: auto;
    background-color: #efefef; /* analog .teaser-body */
    border-radius: 24px 24px 0 0;
    padding-bottom: clamp(48px, 4.4vw, 96px); /* unten verdoppelt */
  }
  .imm-card__media {
    border-radius: 0 0 24px 24px;
  }
  /* 120px Abstand von der Intro-Section zur ersten Teaser-Card */
  .imm-grid-section {
    padding-top: 120px;
  }
  /* Texte nutzen volle Breite innerhalb der meta-Box */
  .imm-card__desc { max-width: none; }
}

