/* ==========================================================================
   Avando AVE für Contao — Landingpage
   Eigenständig, ohne Build, ohne CDN. Schriften lokal.
   ========================================================================== */

/* --- Schriften (dieselben Variable Fonts, die das Theme ausliefert) ------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Spline Sans Mono";
  src: url("../fonts/spline-sans-mono.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --ink:        #06070a;
  --ink-1:      #0a0c11;
  --ink-2:      #10131b;
  --ink-3:      #171b25;
  --line:       #1e2430;
  --line-soft:  rgba(255, 255, 255, .07);
  --text:       #eef0f5;
  --dim:        #98a1b4;
  --dim-2:      #7d899f;   /* 4,88:1 auf --ink-3, 5,71:1 auf --ink */

  /* Der eine Wert, an dem die ganze Seite hängt. Wandert beim Scrollen. */
  --accent:     #3d7bff;
  --accent-ink: #06070a;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "Spline Sans Mono", ui-monospace, SFMono-Regular, monospace;

  --container: 1180px;
  --wide:      1400px;
  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5.5rem, 12vw, 11rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
  /* clip statt hidden: hidden auf html/body macht einen Scroll-Container
     auf und setzt damit position:sticky im Morph-Abschnitt außer Kraft. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

/* --- Atmosphäre: Grain + Lichthöfe ---------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: .5;
  transition: background 1.2s var(--ease);
  z-index: 0;
}

/* --- Fortschrittsbalken --------------------------------------------------- */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--accent);
  z-index: 100;
  transition: background .8s var(--ease);
}

/* --- Layout-Helfer -------------------------------------------------------- */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}
.wrap--wide { width: min(100% - var(--gutter) * 2, var(--wide)); }

section { position: relative; }

.band {
  padding-block: var(--section-y);
  position: relative;
  z-index: 1;
}

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
  margin: 0;
}

/* --- Typografische Bausteine ---------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.4rem;
  transition: color .8s var(--ease);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .6;
  flex: none;
}

.h-display {
  font-size: clamp(2.9rem, 1.4rem + 6.4vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .96;
}
.h-2 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); }
.h-3 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem); letter-spacing: -.025em; }

.lead {
  font-size: clamp(1.075rem, 1rem + .5vw, 1.375rem);
  line-height: 1.6;
  color: var(--dim);
  max-width: 46ch;
  text-wrap: pretty;
}

.muted { color: var(--dim); }
.mono  { font-family: var(--font-mono); }

.tok {
  font-family: var(--font-mono);
  font-size: .86em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: .1em .42em;
  border-radius: 5px;
  white-space: nowrap;
  transition: color .8s var(--ease), background .8s var(--ease);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .96rem;
  font-weight: 560;
  letter-spacing: -.01em;
  padding: .82rem 1.4rem;
  border-radius: 100px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .8s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -10px color-mix(in srgb, var(--accent) 65%, transparent);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: none;
  background: rgba(255, 255, 255, .035);
}

.btn svg { flex: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

/* --- Kopfleiste ----------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  padding-block: .85rem;
  transition: background .4s var(--ease), border-color .4s var(--ease),
              padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
  padding-block: .6rem;
}
.nav__in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -.03em;
  flex: none;
}
.brand__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: -.01em;
  color: var(--dim);
  margin-left: -.15rem;
}
.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-size: .9rem;
  color: var(--dim);
}
.nav__links a { transition: color .25s var(--ease); white-space: nowrap; }
.nav__links a:hover { color: var(--text); }
.nav .btn { padding: .58rem 1.1rem; font-size: .88rem; }

/* Menü-Knopf: drei Striche, die beim Öffnen zum Kreuz werden. Nur mobil. */
.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  place-items: center;
  margin-left: -.75rem;
}
.nav__bars,
.nav__bars::before,
.nav__bars::after {
  display: block;
  width: 16px; height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__bars { position: relative; }
.nav__bars::before,
.nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -5px; }
.nav__bars::after  { top: 5px; }
.nav.is-open .nav__bars { background: transparent; }
.nav.is-open .nav__bars::before { transform: translateY(5px) rotate(45deg); background: var(--text); }
.nav.is-open .nav__bars::after  { transform: translateY(-5px) rotate(-45deg); background: var(--text); }
.nav__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Sechs Abschnitte passen erst ab rund 1100 px in eine Zeile; darunter
   klappt das Menü. */
@media (max-width: 1099px) {
  .nav .btn { margin-left: auto; }
  .brand__sub { display: none; }
  .nav__toggle { display: grid; }
  .nav.is-open {
    background: var(--ink);
    border-bottom-color: var(--line-soft);
  }
  .nav__links {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: .5rem var(--gutter) 1.4rem;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    color: var(--text);
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a {
    padding: .9rem 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__links a:last-child { border-bottom: 0; }
}

/* --- Reveal --------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: calc(var(--i, 0) * 85ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: clamp(8rem, 16vw, 12rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: clip;
}
.hero .glow--a {
  width: 780px; height: 780px;
  top: -320px; left: 48%;
  background: radial-gradient(circle, var(--accent), transparent 68%);
  opacity: .3;
}
.hero .glow--b {
  width: 560px; height: 560px;
  top: 120px; left: -180px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  opacity: .22;
}

.hero__head { max-width: 21ch; }
.hero__lead { margin-top: 1.7rem; display: grid; gap: 1.05rem; max-width: 60ch; }
.hero__lead .lead { max-width: none; font-size: clamp(1.02rem, .97rem + .38vw, 1.2rem); }
.lead--punch {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.22;
  color: var(--text) !important;
  font-size: clamp(1.32rem, 1.05rem + 1.25vw, 2.05rem) !important;
  border-left: 2px solid var(--accent);
  padding-left: 1.1rem;
  transition: border-color .8s var(--ease);
}
.hero .actions { margin-top: 2.4rem; }

.hero__note {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--dim-2);
  letter-spacing: .01em;
}

.h-display .swap {
  display: inline-block;
  color: var(--accent);
  transition: color .8s var(--ease);
}

/* --- Browser-Rahmen ------------------------------------------------------- */
.frame {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .05) inset,
    0 40px 90px -30px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(0, 0, 0, .5);
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .62rem .85rem;
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.frame__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
  flex: none;
}
.frame__url {
  margin-left: .6rem;
  flex: 1;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--dim-2);
  background: rgba(0, 0, 0, .35);
  border-radius: 100px;
  padding: .22rem .75rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame__body { position: relative; background: var(--ink-1); }

/* --- Vergleichs-Schieber -------------------------------------------------- */
.compare {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  position: relative;
}
.compare__stage {
  position: relative;
  aspect-ratio: 1200 / 750;
  touch-action: pan-y;
  user-select: none;
  cursor: ew-resize;
}
.compare__stage img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.compare__top {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  will-change: clip-path;
}
.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 0 22px rgba(0, 0, 0, .65);
  z-index: 3;
}
.compare__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(10, 12, 17, .78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .3);
  display: grid;
  place-items: center;
  color: #fff;
  cursor: ew-resize;
  transition: scale .3s var(--ease);
}
.compare__grip:hover { scale: 1.1; }
.compare__tag {
  position: absolute;
  bottom: 1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 100px;
  background: rgba(6, 7, 10, .72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  pointer-events: none;
}
.compare__tag--l { left: 1rem; }
.compare__tag--r { right: 1rem; }

.compare__cap {
  margin-top: 1.1rem;
  text-align: center;
  font-size: .92rem;
  color: var(--dim-2);
}

/* --- Kennzahlen-Leiste ---------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.stat {
  padding: 2.2rem 1.5rem;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat__n {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text);
}
.stat__l {
  margin-top: .55rem;
  font-size: .88rem;
  color: var(--dim-2);
  line-height: 1.45;
}
@media (max-width: 780px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ==========================================================================
   Karten-Raster (Versprechen, Unterbau …)
   ========================================================================== */
.grid-3 {
  display: grid;
  /* fest auf drei Spuren: auto-fit bricht sechs Karten sonst in 4+2 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

.cell {
  background: var(--ink-1);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  position: relative;
  transition: background .45s var(--ease);
}
.cell:hover { background: var(--ink-2); }
.cell__n {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .8s var(--ease);
}
.cell h3 { margin: 1.1rem 0 .7rem; font-size: 1.28rem; }
.cell p { color: var(--dim); font-size: .96rem; line-height: 1.62; }
.cell__mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  margin-bottom: 1.3rem;
  transition: color .8s var(--ease), background .8s var(--ease);
}

/* ==========================================================================
   Der Morph — die Signature-Sektion
   ========================================================================== */
/* clip auf der Sektion, nicht nur auf der Bühne: sobald die Bühne per
   Media Query `position: static` wird, ist sie nicht mehr der Bezugsrahmen
   des Lichthofs — der 900px-Kreis würde sonst das Layout-Viewport aufziehen. */
.morph { overflow: clip; }
.morph__track { height: 460vh; position: relative; }

.morph__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-block: clamp(4rem, 8vh, 6rem) clamp(2rem, 5vh, 3.5rem);
  overflow: clip;
}
.morph .glow--m {
  width: 900px; height: 900px;
  top: 50%; left: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, var(--accent), transparent 65%);
  opacity: .16;
}

.morph__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.morph__head h2 {
  font-size: clamp(1.55rem, 1rem + 1.9vw, 2.35rem);
  max-width: 16ch;
}
.morph__head .eyebrow { margin-bottom: .9rem; }
.morph__counter {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--dim-2);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.morph__counter b {
  color: var(--accent);
  font-weight: 500;
  transition: color .5s var(--ease);
}

.morph__cols {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  align-items: center;
  min-height: 0;
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
}

/* Studio-Panel (Nachbau) */
.studio {
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: .8rem;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}
.studio__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.studio__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: -.02em;
}
.studio__x {
  width: 22px; height: 22px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--dim-2);
  display: grid;
  place-items: center;
  font-size: .74rem;
}
.studio__body { padding: .9rem 1rem 1rem; overflow: hidden; flex: 1; min-height: 0; }

.studio__group {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim-2);
  padding: .75rem 0 .55rem;
  border-top: 1px solid var(--line-soft);
  margin-top: .3rem;
}
.studio__group:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

.ctrl {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .5rem .7rem;
  padding: .34rem 0;
}
.ctrl__l { color: var(--dim); font-size: .78rem; }
.ctrl__v {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ctrl__track {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 100px;
  background: var(--ink-3);
  position: relative;
}
.ctrl__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  border-radius: 100px;
  background: var(--studio-accent, var(--accent));
  transition: background .45s var(--ease);
}
.ctrl__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
.swatch {
  width: 26px; height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: var(--studio-accent, var(--accent));
  transition: background .45s var(--ease);
}
.chip-row { display: flex; gap: .3rem; padding: .3rem 0 .1rem; }
.chip {
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .22rem .5rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--dim-2);
  white-space: nowrap;
}
.chip.is-on {
  background: var(--studio-accent, var(--accent));
  border-color: transparent;
  color: var(--studio-ink, var(--accent-ink));
  font-weight: 600;
}

.studio__foot {
  margin-top: auto;
  display: flex;
  gap: .45rem;
  padding: .85rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}
.studio__foot span {
  flex: 1;
  text-align: center;
  font-size: .72rem;
  padding: .45rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--dim);
}
.studio__foot span:last-child {
  background: var(--studio-accent, var(--accent));
  border-color: transparent;
  color: var(--studio-ink, var(--accent-ink));
  font-weight: 600;
  transition: background .45s var(--ease);
}

/* Bühne rechts — die Höhe gibt der Bildschirm vor, nicht das Bildseitenverhältnis.
   Sonst wächst der Rahmen mit der Spaltenbreite über die 100vh der Bühne hinaus. */
.morph__frame {
  position: relative;
  min-width: 0;
  height: 100%;
  display: flex;
}
.morph__frame > .frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}
.morph__shots {
  position: relative;
  flex: 1;
  min-height: 220px;
}
.morph__shots img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  will-change: opacity;
}
.morph__shots img:first-child { opacity: 1; }

.morph__label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .4rem .8rem;
  border-radius: 100px;
  background: rgba(6, 7, 10, .78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .14);
}
.morph__label i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--studio-accent, var(--accent));
  transition: background .45s var(--ease);
  flex: none;
}

.morph__foot {
  margin-top: clamp(1.25rem, 3vh, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.morph__cap {
  font-size: .95rem;
  color: var(--dim);
  max-width: 52ch;
}
.morph__dots { display: flex; gap: .4rem; }
.morph__dots i {
  width: 22px; height: 3px;
  border-radius: 100px;
  background: var(--ink-3);
  transition: background .35s var(--ease);
}
.morph__dots i.is-on { background: var(--accent); }

@media (max-width: 900px) {
  .morph__track { height: auto; }
  .morph__stage { position: static; height: auto; min-height: 0; overflow: visible; }
  .morph__cols { grid-template-columns: 1fr; }
  .studio { max-height: none; }
  .morph__frame { height: auto; }
  .morph__shots { aspect-ratio: 1200 / 750; flex: none; }
}

/* ==========================================================================
   Design Studio
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split--flip > :first-child { order: 2; }
/* Grid-Kinder haben min-width:auto — ein breiter <pre> reißt sonst die Spur
   auf und damit die ganze Seite in die Waagerechte. */
.split > *, .grid-3 > *, .demo > *, .pillars > * { min-width: 0; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

.video-card { position: relative; }
.video-card video { width: 100%; display: block; }
.video-card__hint {
  position: absolute;
  right: 1rem; top: 1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .32rem .7rem;
  border-radius: 100px;
  background: rgba(6, 7, 10, .7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.video-card__hint::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.checks { display: grid; gap: 1.15rem; margin-top: 2.2rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.check__i {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  margin-top: .15rem;
  flex: none;
  transition: color .8s var(--ease), background .8s var(--ease);
}
.check b { font-weight: 600; display: block; margin-bottom: .15rem; letter-spacing: -.01em; }
.check span { color: var(--dim); font-size: .94rem; line-height: 1.55; }

/* ==========================================================================
   KI-Workflows
   ========================================================================== */
.split--top { align-items: start; }

.kiflow .kiflow__code {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  padding: 1.2rem 1.4rem;
}
.kiflow__cap {
  margin: 0;
  padding: 1rem 1.4rem;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) { .kiflow .kiflow__code { font-size: .7rem; padding: 1rem; } }
.kiflow__steps { list-style: none; margin: 0; padding: 0; background: var(--ink-1); }
.kiflow__step { padding: 1rem 1.4rem 1.1rem; }
.kiflow__step + .kiflow__step { border-top: 1px solid var(--line); }
.kiflow__n {
  display: block;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent);
  margin-bottom: .35rem;
  transition: color .8s var(--ease);
}
.kiflow__step p { color: var(--dim); font-size: .9rem; line-height: 1.55; margin: 0; }

.kiflow__studio {
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 72ch;
  font-size: .96rem;
  line-height: 1.62;
  padding-left: 1.1rem;
  border-left: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
}
.kiflow__studio b { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Freigabe per Link
   ========================================================================== */
.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.links > * { min-width: 0; }
.link-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-1);
  overflow: hidden;
  margin: 0;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.link-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-3px); }
.link-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}
.link-card figcaption { padding: 1.25rem; display: grid; gap: .75rem; }

/* Einleitung, die die drei Karten klar als Beispiel ausweist */
.example-lead {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-size: .95rem;
  color: var(--dim);
}
.example-lead__k {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 100px;
  padding: .28rem .7rem;
  transition: color .8s var(--ease), border-color .8s var(--ease);
}
.link-card__k {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.link-card__t { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; }
.link-card__u {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--accent);
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .5rem .65rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .8s var(--ease);
}
.link-card__d { font-size: .88rem; color: var(--dim); }

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--dim-2);
}
.flow b {
  font-weight: 500;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .35rem .8rem;
  background: var(--ink-1);
}
.flow b:last-of-type { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

/* ==========================================================================
   Barrierefreiheit & Datenschutz — zwei Säulen
   ========================================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.pillar {
  background: var(--ink-1);
  padding: clamp(1.9rem, 3.2vw, 2.9rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.pillar__top { display: flex; align-items: center; gap: .85rem; }
.pillar__badge {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  flex: none;
  transition: color .8s var(--ease), background .8s var(--ease);
}
.pillar__k {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.pillar h3 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem); }
.pillar > p { color: var(--dim); font-size: .98rem; line-height: 1.6; }
.pillar figure { margin: 0; }
.pillar figure img { border-radius: var(--r-sm); border: 1px solid var(--line); }
.pillar figcaption {
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--dim-2);
  line-height: 1.5;
}
.pillar .checks { margin-top: 0; gap: .95rem; }
.pillar .check span { font-size: .9rem; }
.pillar__spacer { flex: 1; }

/* Nachbau einer Netzwerk-Liste: der Beleg für „nichts geht raus“ */
.net {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #05060a;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .78rem;
}
.net__bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--line);
  color: var(--dim-2);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.net__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .8rem;
  padding: .38rem .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  color: var(--dim);
  align-items: baseline;
}
.net__row span:nth-child(2) { color: var(--dim-2); font-size: .74rem; }
.net__row span:last-child { color: #4ade80; font-size: .74rem; }
.net__row--ext { color: var(--dim-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.net__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .75rem;
  background: var(--ink-1);
  color: var(--dim-2);
  font-size: .76rem;
}
.net__foot b { color: #4ade80; font-weight: 600; }

/* Beleg-Chips unter den Säulen */
.proofs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.6rem;
}
.proofs span {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .4rem .85rem;
  background: var(--ink-1);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.proofs span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transition: background .8s var(--ease);
}

/* ==========================================================================
   Live-Demo: vier Regler, eine Oberflaeche
   ========================================================================== */
.demo {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
}
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-1);
  padding: 1.4rem;
  display: grid;
  gap: 1.3rem;
  position: sticky;
  top: 6rem;
}
@media (max-width: 860px) { .panel { position: static; } }

.panel__badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border-radius: 100px;
  padding: .34rem .75rem;
  justify-self: start;
  margin: 0;
  transition: color .8s var(--ease), background .8s var(--ease);
}

.legend-intro {
  margin-top: 1.4rem;
  font-size: .84rem;
  color: var(--dim-2);
}
.legend { margin-top: .5rem; }

.field { display: grid; gap: .55rem; }
.field__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}
.field__l { font-size: .88rem; font-weight: 550; }
.field__v {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--dim-2);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 100px;
  background: var(--ink-3);
  cursor: pointer;
  margin: .45rem 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
  cursor: grab;
}

.swatches { display: flex; gap: .45rem; flex-wrap: wrap; }
.swatches button {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  cursor: pointer;
  padding: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.swatches button:hover { transform: scale(1.12); }
.swatches button[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--ink-1), 0 0 0 3px currentColor;
}

/* Die Miniatur-Oberfläche, die von den Reglern lebt */
.mock {
  --d-secondary: color-mix(in srgb, var(--d-primary) 78%, #b224ef);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-1);
  padding: calc(1.5rem * var(--d-space));
  display: grid;
  gap: calc(1.25rem * var(--d-space));
  overflow: hidden;
}
@supports (color: oklch(from red l c h)) {
  .mock { --d-secondary: oklch(from var(--d-primary) l calc(c * .92) calc(h + 42)); }
}

.mock__nav {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  padding-bottom: calc(1rem * var(--d-space));
  border-bottom: 1px solid var(--line);
}
.mock__nav span {
  font-size: .87rem;
  color: var(--dim);
  padding: .35rem .7rem;
  border-radius: calc(var(--d-radius) * 100px);
}
.mock__nav span.is-on { background: var(--d-primary); color: var(--d-ink, #fff); font-weight: 550; }

.mock__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: calc(1rem * var(--d-space));
}
.mock__card {
  border: 1px solid color-mix(in srgb, var(--d-primary) 30%, var(--line));
  border-radius: calc(var(--d-radius) * 16px);
  background: var(--ink-2);
  padding: calc(1.15rem * var(--d-space));
  box-shadow: 0 calc(14px * var(--d-shadow)) calc(34px * var(--d-shadow)) calc(-12px * var(--d-shadow))
              color-mix(in srgb, var(--d-primary) 40%, transparent);
}
.mock__card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.025em;
  margin: 0 0 .45rem;
  color: var(--d-heading, var(--text));
}
.mock__card p { font-size: .9rem; color: var(--dim); line-height: 1.55; }
.mock__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: calc(var(--d-radius) * 100px);
  background: color-mix(in srgb, var(--d-secondary) 20%, transparent);
  color: var(--d-secondary);
  margin-bottom: .6rem;
}
.mock__row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.mock__btn {
  color: var(--d-ink, #fff);
  font-size: .92rem;
  font-weight: 550;
  padding: calc(.6rem * var(--d-space)) calc(1.15rem * var(--d-space));
  border-radius: calc(var(--d-radius) * 100px);
  background: var(--d-primary);
  border: 1px solid transparent;
  box-shadow: 0 calc(8px * var(--d-shadow)) calc(22px * var(--d-shadow)) calc(-8px * var(--d-shadow))
              color-mix(in srgb, var(--d-primary) 70%, transparent);
}
.mock__btn--2 { background: transparent; border-color: var(--d-primary); color: var(--d-primary); box-shadow: none; }
.mock__link {
  color: var(--d-primary);
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.mock__input {
  border: 1px solid var(--line);
  border-radius: calc(var(--d-radius) * 12px);
  background: var(--ink-2);
  padding: calc(.65rem * var(--d-space)) .9rem;
  color: var(--dim-2);
  font-size: .86rem;
  flex: 1;
  min-width: 140px;
}
.mock__bar {
  color: var(--d-ink, #fff);
  height: calc(46px * var(--d-space));
  border-radius: calc(var(--d-radius) * 14px);
  background: linear-gradient(100deg, var(--d-primary), var(--d-secondary));
  display: flex;
  align-items: center;
  padding-inline: 1rem;
  font-size: .89rem;
  font-weight: 550;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--dim-2);
}
.legend span {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .25rem .6rem;
}

/* ==========================================================================
   Kaskade / Technik
   ========================================================================== */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.figures > * { min-width: 0; }
.figure { background: var(--ink-1); padding: 1.6rem 1.5rem; }
.figure b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--accent);
  transition: color .8s var(--ease);
  font-variant-numeric: tabular-nums;
}
.figure span {
  display: block;
  margin-top: .6rem;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--dim-2);
}

.stack { display: grid; gap: 3px; margin-top: 2rem; font-family: var(--font-mono); font-size: .78rem; }
.stack__l {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--ink-1);
  padding: .6rem .85rem;
  color: var(--dim-2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.stack__l:hover { color: var(--dim); border-color: var(--line-soft); }
.stack__l--win {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--ink-1));
}
.stack__l em { font-style: normal; color: var(--dim-2); }

.code {
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.75;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
  overflow-x: auto;
  color: var(--dim);
  margin: 0;
  tab-size: 2;
}
.code .c { color: var(--dim-2); font-style: italic; }
.code .v { color: var(--accent); transition: color .8s var(--ease); }
.code .f { color: #d8b4fe; }

/* ==========================================================================
   Abschluss
   ========================================================================== */
.cta {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 130% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    var(--ink-1);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
  position: relative;
}
.cta .lead { margin: 1.4rem auto 0; }
.cta .actions { justify-content: center; margin-top: 2.4rem; }
.cta__fine { margin-top: 1.6rem; font-family: var(--font-mono); font-size: .74rem; color: var(--dim-2); }

.foot {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  margin-top: var(--section-y);
}
.foot__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--dim-2);
}
.foot__links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot__links a:hover { color: var(--text); }

/* --- Promo-Film (Knopf im Hero + <dialog>) ------------------------------- */
.hero__row { margin-top: 1.7rem; display: grid; gap: 2.4rem; }
.hero__row .hero__lead { margin-top: 0; }
@media (min-width: 1024px) {
  .hero__row {
    grid-template-columns: minmax(0, 60ch) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
}
.film-teaser {
  display: block;
  color: var(--text);
  transition: transform .5s var(--ease), border-color .3s var(--ease);
}
.film-teaser__body { position: relative; display: block; }
.film-teaser img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* leicht abdunkeln, damit Knopf und Beschriftung auf dem hellen Bild stehen */
.film-teaser__body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 7, 10, .55), rgba(6, 7, 10, .12) 55%);
  transition: opacity .3s var(--ease);
}
.film-teaser__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 76px; height: 76px;
  margin: auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 14px 40px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .4s var(--ease), background .8s var(--ease);
}
.film-teaser__play svg { margin-left: 4px; }
.film-teaser__label {
  position: absolute;
  right: 1rem; bottom: 1rem;   /* links unten steht die Texteinblendung des Films */
  z-index: 1;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem .85rem;
  border-radius: 100px;
  background: rgba(6, 7, 10, .78);
  border: 1px solid var(--line);
  font-size: .85rem;
  font-weight: 550;
}
.film-teaser__meta { font-family: var(--font-mono); font-size: .78rem; color: var(--dim); }
@media (max-width: 599px) {
  .film-teaser__label { top: .75rem; bottom: auto; right: .75rem; font-size: .8rem; padding: .3rem .7rem; }
  .film-teaser__play { width: 60px; height: 60px; }
}
.film-teaser:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.film-teaser:hover .film-teaser__play { transform: scale(1.08); }
.film-teaser:hover .film-teaser__body::after { opacity: .6; }
.film {
  width: min(100% - var(--gutter) * 2, 1200px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.film::backdrop {
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(10px);
}
.film__box {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8);
}
.film video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.film__close {
  position: absolute;
  top: .75rem; right: .75rem;
  z-index: 1;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  color: var(--text);
  cursor: pointer;
}
.film__close:hover { border-color: var(--text); }
.film[open] { animation: film-in .45s var(--ease); }
@keyframes film-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .film[open] { animation: none; } }

/* --- Impressum & Datenschutz (impressum.html) ----------------------------- */
.legal__back { margin-left: auto; }
.legal {
  max-width: 46rem;
  padding-top: clamp(7rem, 14vw, 10rem);
}
.legal__title { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); margin-bottom: 3rem; }
.legal section { scroll-margin-top: 6rem; }
.legal section + section { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.legal h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin-bottom: 1.2rem; }
.legal h3 { font-size: 1.1rem; letter-spacing: -.02em; margin: 2rem 0 .5rem; }
.legal p { color: var(--dim); }
.legal p + p { margin-top: 1rem; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.legal a:hover { text-decoration-color: var(--accent); }
.legal__note { font-family: var(--font-mono); font-size: .78rem; color: var(--dim-2) !important; margin-bottom: 1rem; }

/* ==========================================================================
   Bewegung reduzieren — dieselbe Rücksicht, die das Theme eingebaut hat
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .morph__track { height: auto; }
  .morph__stage { position: static; height: auto; min-height: 0; }
  .morph__cols { grid-template-columns: 1fr; }
  .studio { max-height: none; }
  /* Statt Überblendung: alle sechs Stände nebeneinander als Beleg */
  .morph__shots { aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .morph__shots img { position: static; opacity: 1 !important; height: auto; }
  .morph__label { display: none; }
  .morph__dots { display: none; }
}
