/* ==========================================================================
   Northlightframe V10 · Popcorn Cinema & Live-Agent-Theater
   - 1. Live-Agent-Orchester ([data-v10-agent-theater]):
        Randlose Obsidian-Kino-Bühne, High-DPI Canvas2D-Lichtfeld,
        4 schwebende Stationen, 3 Kunden-Geschichten, Popcorn-Auto-Regie,
        interaktive Freigabe-Lichtwelle, No-JS-Fallback (.v10-theater-fallback).
   - 2. Geführte „Popcorn“-Kino-Tour ([data-v10-tour-start], .v10-tour-hud):
        Ruhiger Start-Button (.v10-tour-trigger), hauchdünne Kino-Steuerleiste
        am unteren Rand.
   - 3. Randloser 3er-Demo-Kino-Streifen (.v10-reel-strip) &
        Einzel-Demo-Direktzeile (.v10-demo-inline-bar).
   - 0 externe Hosts · 0 CDNs · 0 px Überlauf (1440px & 390px)
   - Voller Respekt für prefers-reduced-motion & html.is-still
   ========================================================================== */

:root {
  --v10-obsidian: #070A0F;
  --v10-obsidian-deep: #05070B;
  --v10-ink: #EEF2F8;
  --v10-ink-soft: rgba(238, 242, 248, 0.74);
  --v10-ink-mute: rgba(238, 242, 248, 0.50);
  --v10-hair: rgba(238, 242, 248, 0.13);
  --v10-hair-strong: rgba(238, 242, 248, 0.30);
  --v10-gold: #D59B42;
  --v10-emerald: #2EE6A6;
  --v10-ice: #56CCF2;
  --v10-warm: #F2F5FA;
  --v10-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --v10-phase-color: #D59B42;
  --v10-phase-glow: rgba(213, 155, 66, 0.22);
}

/* ==========================================================================
   1. LIVE-AGENT-ORCHESTER ([data-v10-agent-theater])
   ========================================================================== */
.v10-agent-theater {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: clamp(640px, 84vh, 880px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--v10-obsidian);
  color: var(--v10-ink);
  overflow: clip;
  isolation: isolate;
  padding: clamp(56px, 7.5vh, 96px) 0 0;
  border: 0;
  --v10-phase-color: var(--v10-gold);
  --v10-phase-glow: rgba(213, 155, 66, 0.20);
  --mx: 50%;
  --my: 44%;
}

.v10-agent-theater[data-v10-phase="1"] {
  --v10-phase-color: var(--v10-gold);
  --v10-phase-glow: rgba(213, 155, 66, 0.22);
}

.v10-agent-theater[data-v10-phase="2"] {
  --v10-phase-color: var(--v10-emerald);
  --v10-phase-glow: rgba(46, 230, 166, 0.22);
}

.v10-agent-theater[data-v10-phase="3"] {
  --v10-phase-color: var(--v10-ice);
  --v10-phase-glow: rgba(86, 204, 242, 0.22);
}

.v10-agent-theater[data-v10-phase="4"] {
  --v10-phase-color: var(--v10-warm);
  --v10-phase-glow: rgba(242, 245, 250, 0.20);
}

.v10-agent-theater.is-released {
  --v10-phase-color: var(--v10-emerald);
  --v10-phase-glow: rgba(46, 230, 166, 0.30);
}

/* Weicher atmosphärischer Grundschein (null harte Kanten) */
.v10-agent-theater::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      64% 52% at var(--mx, 50%) var(--my, 44%),
      var(--v10-phase-glow) 0%,
      rgba(7, 10, 15, 0) 68%
    ),
    radial-gradient(
      90% 42% at 50% 0%,
      rgba(213, 155, 66, 0.06) 0%,
      transparent 72%
    ),
    linear-gradient(
      180deg,
      rgba(5, 7, 11, 0.65) 0%,
      transparent 16%,
      transparent 82%,
      rgba(5, 7, 11, 0.78) 100%
    );
  transition: opacity 640ms var(--v10-ease);
}

/* Vollbild High-DPI Canvas2D-Lichtfeld */
.v10-theater-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Redaktioneller Bühnenkopf (falls in HTML mitgegeben) */
.v10-theater-head,
.v10-theater-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: min(var(--maxw, 1380px), 100%);
  margin-inline: auto;
  padding-inline: var(--gut, clamp(18px, 3.6vw, 56px));
}

.v10-theater-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(18px, 3vw, 48px);
  align-items: end;
  padding-bottom: clamp(20px, 3vh, 32px);
}

.v10-theater-kicker {
  margin: 0 0 10px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v10-phase-color);
  transition: color 480ms var(--v10-ease);
}

.v10-theater-title {
  margin: 0;
  font-family: var(--display, system-ui, sans-serif);
  font-size: clamp(1.95rem, 3.8vw, 3.35rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--v10-ink);
}

.v10-theater-title .dim,
.v10-theater-title .v10-dim {
  color: rgba(238, 242, 248, 0.46);
  font-weight: 400;
}

.v10-theater-lead {
  margin: 0;
  max-width: 44ch;
  justify-self: end;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.56;
  color: var(--v10-ink-soft);
}

/* ==========================================================================
   LIVE-STAGE-OVERLAY (von popcorn-cinema.js montiert, 0 Kästen)
   ========================================================================== */
.v10-theater-stage {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: min(var(--maxw, 1380px), 100%);
  min-height: clamp(500px, 64vh, 720px);
  margin-inline: auto;
  padding: 0 var(--gut, clamp(18px, 3.6vw, 56px)) clamp(34px, 4.5vh, 52px);
}

/* Ruhige Haarlinien-Steuerzeile oben (3 Geschichten + Pause/Weiter) */
.v10-theater-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--v10-hair);
  border-bottom: 1px solid var(--v10-hair);
}

.v10-story-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px clamp(18px, 2.8vw, 38px);
}

.v10-story-btn {
  position: relative;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px 0;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  font-weight: 500;
  color: var(--v10-ink-mute);
  cursor: pointer;
  transition: color 260ms var(--v10-ease);
}

.v10-story-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -17px;
  height: 1px;
  background: var(--v10-phase-color);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms var(--v10-ease), background-color 420ms ease;
}

.v10-story-btn:hover,
.v10-story-btn:focus-visible {
  color: var(--v10-ink);
  outline: none;
}

.v10-story-btn:focus-visible {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--v10-phase-color);
}

.v10-story-btn.is-active {
  color: var(--v10-ink);
}

.v10-story-btn.is-active::after {
  transform: scaleX(1);
}

.v10-story-no {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--v10-phase-color);
  opacity: 0.72;
}

.v10-story-btn.is-active .v10-story-no {
  opacity: 1;
}

.v10-controls-right {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.v10-story-clock {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v10-ink-mute);
}

.v10-play-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--v10-hair);
  padding: 6px 0 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v10-ink-soft);
  cursor: pointer;
  transition: color 220ms ease;
}

.v10-play-toggle:hover,
.v10-play-toggle:focus-visible {
  color: var(--v10-ink);
  outline: none;
}

.v10-play-toggle:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Offener Mittelraum für das Canvas2D-Orbitalfeld */
.v10-theater-air {
  flex: 1 1 auto;
  min-height: clamp(230px, 32vh, 360px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(18px, 2.6vh, 30px) 0 12px;
  pointer-events: none;
}

.v10-scene-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v10-ink-soft);
}

.v10-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v10-phase-color);
  box-shadow: 0 0 12px var(--v10-phase-color);
  transition: background-color 420ms ease, box-shadow 420ms ease;
}

.v10-scene-shield {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v10-emerald);
  opacity: 0.84;
}

/* Unteres Redaktionsband — reine Typografie & 1-px-Haarlinien, 0 Kästen */
.v10-theater-narration {
  position: relative;
  padding-top: clamp(18px, 2.5vh, 26px);
  border-top: 1px solid var(--v10-hair);
}

/* 4-Phasen-Haarlinien-Leiste */
.v10-phase-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 20px;
  margin-bottom: clamp(18px, 2.6vh, 28px);
}

.v10-phase-step {
  position: relative;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 0 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  color: var(--v10-ink-mute);
  transition: color 280ms var(--v10-ease);
}

.v10-phase-step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--v10-hair);
  transition: background-color 320ms ease;
}

.v10-phase-step::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--v10-step-color, var(--v10-phase-color));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms var(--v10-ease);
  z-index: 1;
}

.v10-phase-step[data-phase="1"] { --v10-step-color: var(--v10-gold); }
.v10-phase-step[data-phase="2"] { --v10-step-color: var(--v10-emerald); }
.v10-phase-step[data-phase="3"] { --v10-step-color: var(--v10-ice); }
.v10-phase-step[data-phase="4"] { --v10-step-color: var(--v10-warm); }

.v10-phase-step:hover,
.v10-phase-step:focus-visible {
  color: var(--v10-ink);
  outline: none;
}

.v10-phase-step.is-past {
  color: rgba(238, 242, 248, 0.68);
}

.v10-phase-step.is-past::before {
  transform: scaleX(1);
  opacity: 0.42;
}

.v10-phase-step.is-active {
  color: var(--v10-ink);
}

.v10-phase-step.is-active::before {
  transform: scaleX(1);
  opacity: 1;
}

.v10-phase-num {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v10-step-color, var(--v10-phase-color));
  opacity: 0.72;
}

.v10-phase-step.is-active .v10-phase-num {
  opacity: 1;
}

.v10-phase-name {
  font-family: var(--sans, system-ui, sans-serif);
  font-size: clamp(0.84rem, 1vw, 0.96rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Aktive Szenen-Aussage + Spezialisten-Zeile + Freigabe-Aktion */
.v10-narration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 18px clamp(20px, 4vw, 56px);
  align-items: end;
  min-height: 118px;
}

.v10-narration-main {
  transition: opacity 260ms var(--v10-ease), transform 320ms var(--v10-ease);
}

.v10-narration-main.is-switching {
  opacity: 0;
  transform: translateY(6px);
}

.v10-narration-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 10px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.v10-narration-story {
  color: var(--v10-ink);
}

.v10-narration-badge {
  color: var(--v10-phase-color);
}

.v10-narration-text {
  margin: 0;
  font-family: var(--display, system-ui, sans-serif);
  font-size: clamp(1.18rem, 2.05vw, 1.72rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.018em;
  color: var(--v10-ink);
  max-width: 44ch;
}

.v10-narration-quote {
  margin: 8px 0 0;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--v10-ink-soft);
  max-width: 56ch;
}

/* Spezialisten-Zeile in Phase 3 (Leser · Prüfer · Rechner/Planer/Schreiber) */
.v10-agents-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(238, 242, 248, 0.09);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--v10-ink-soft);
}

.v10-agents-line[hidden] {
  display: none;
}

.v10-agent-role {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  transition: color 280ms ease, opacity 280ms ease;
}

.v10-agent-role strong {
  color: var(--v10-ice);
  font-weight: 500;
}

.v10-agent-role.is-lit {
  color: var(--v10-ink);
}

.v10-agent-role.is-lit strong {
  color: #8BE2FF;
}

/* Rechte Aktionsspalte (Freigeben · Live testen + Status) */
.v10-narration-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}

.v10-release-btn {
  position: relative;
  appearance: none;
  background: transparent;
  color: var(--v10-ink);
  border: 0;
  border-top: 1px solid var(--v10-hair-strong);
  border-bottom: 1px solid var(--v10-hair-strong);
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 280ms var(--v10-ease),
    color 280ms var(--v10-ease),
    background-color 280ms var(--v10-ease),
    transform 240ms var(--v10-ease);
}

.v10-release-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 140% at 50% 50%,
    rgba(213, 155, 66, 0.24) 0%,
    rgba(46, 230, 166, 0.10) 48%,
    transparent 78%
  );
  opacity: 0;
  transition: opacity 320ms var(--v10-ease);
  pointer-events: none;
}

.v10-release-btn:hover,
.v10-release-btn:focus-visible {
  border-color: var(--v10-gold);
  color: #FFFFFF;
  outline: none;
}

.v10-release-btn:hover::before,
.v10-release-btn:focus-visible::before {
  opacity: 1;
}

.v10-release-btn.is-ready {
  border-color: rgba(242, 245, 250, 0.56);
  color: #FFFFFF;
}

.v10-release-btn.is-ready::before {
  opacity: 0.65;
}

.v10-release-btn.is-done {
  border-color: var(--v10-emerald);
  color: var(--v10-emerald);
}

.v10-release-btn.is-done::before {
  background: radial-gradient(
    120% 140% at 50% 50%,
    rgba(46, 230, 166, 0.22) 0%,
    transparent 76%
  );
  opacity: 1;
}

.v10-release-spark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v10-gold);
  box-shadow: 0 0 12px var(--v10-gold);
  flex-shrink: 0;
  transition: background-color 280ms ease, box-shadow 280ms ease, transform 280ms ease;
}

.v10-release-btn.is-done .v10-release-spark {
  background: var(--v10-emerald);
  box-shadow: 0 0 14px var(--v10-emerald);
  transform: scale(1.2);
}

.v10-release-note {
  margin: 0;
  max-width: 34ch;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  line-height: 1.48;
  letter-spacing: 0.04em;
  color: var(--v10-ink-mute);
  min-height: 1.5em;
  transition: color 280ms ease;
}

.v10-release-note.is-done {
  color: var(--v10-emerald);
}

/* 2-px-Licht-Timeline direkt am unteren Bühnenrand */
.v10-theater-timeline {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 2px;
  background: rgba(238, 242, 248, 0.08);
  overflow: hidden;
  pointer-events: none;
}

.v10-theater-timeline-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--v10-gold) 0%,
    var(--v10-emerald) 38%,
    var(--v10-ice) 72%,
    var(--v10-warm) 100%
  );
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ==========================================================================
   NO-JS FALLBACK (.v10-theater-fallback)
   Sichtbar ohne JavaScript; erst nach JS-Mount (.is-v10-live) ausgeblendet
   ========================================================================== */
.v10-theater-fallback {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: min(var(--maxw, 1380px), 100%);
  margin-inline: auto;
  padding: 20px var(--gut, clamp(18px, 3.6vw, 56px)) clamp(44px, 6vh, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--v10-hair);
}

.v10-agent-theater.is-v10-live .v10-theater-fallback {
  display: none;
}

.v10-fallback-story {
  padding-top: 16px;
  border-top: 1px solid rgba(238, 242, 248, 0.14);
}

.v10-fallback-story h3 {
  margin: 6px 0 8px;
  font-family: var(--display, system-ui, sans-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--v10-ink);
}

.v10-fallback-story p,
.v10-fallback-story li {
  margin: 0 0 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--v10-ink-soft);
}

.v10-fallback-story ol {
  margin: 10px 0 0;
  padding-left: 18px;
}

/* ==========================================================================
   2. GEFÜHRTE „POPCORN“-KINO-TOUR (.v10-tour-trigger & .v10-tour-hud)
   ========================================================================== */
.v10-tour-trigger {
  appearance: none;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 2px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 240ms var(--v10-ease),
    background-color 240ms var(--v10-ease),
    color 240ms var(--v10-ease),
    transform 220ms var(--v10-ease);
}

.v10-tour-trigger:hover,
.v10-tour-trigger:focus-visible {
  border-color: var(--v10-gold);
  background: rgba(213, 155, 66, 0.10);
  color: #FFFFFF;
  outline: none;
}

html[data-theme="light"] .v10-tour-trigger:hover,
html[data-theme="light"] .v10-tour-trigger:focus-visible {
  color: #0E1116;
  background: rgba(142, 93, 18, 0.10);
}

.v10-tour-trigger.is-tour-active {
  border-color: var(--v10-gold);
  background: rgba(213, 155, 66, 0.16);
}

/* Schwebende Kino-Steuerleiste (nur bei aktiver Tour sichtbar) */
.v10-tour-hud {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(14px);
  z-index: 95;
  width: max-content;
  max-width: calc(100vw - 24px);
  background: rgba(7, 10, 15, 0.90);
  color: var(--v10-ink);
  border: 1px solid rgba(238, 242, 248, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--v10-ease), transform 360ms var(--v10-ease);
  overflow: hidden;
}

.v10-tour-hud.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.v10-tour-hud-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 12px 16px;
}

.v10-tour-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v10-gold);
  box-shadow: 0 0 10px var(--v10-gold);
  flex-shrink: 0;
}

.v10-tour-hud.is-paused .v10-tour-dot {
  background: var(--v10-ink-mute);
  box-shadow: none;
}

.v10-tour-caption {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v10-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(46ch, 46vw);
}

.v10-tour-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--v10-hair);
  flex-shrink: 0;
}

.v10-tour-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--v10-ink-soft);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.v10-tour-btn:hover,
.v10-tour-btn:focus-visible {
  color: #FFFFFF;
  background: rgba(238, 242, 248, 0.08);
  outline: none;
}

.v10-tour-btn-exit {
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--v10-hair);
  text-transform: uppercase;
}

.v10-tour-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(238, 242, 248, 0.09);
  pointer-events: none;
}

.v10-tour-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--v10-gold), var(--v10-emerald));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* Keine Kollision mit .v6-kbd-whisper während aktiver Tour oder im Live-Agent-Orchester */
html.is-v10-tour-active .v6-kbd-whisper,
html.is-v10-theater-in-view .v6-kbd-whisper {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   3. RANDLOSER 3ER-KINO-STREIFEN (.v10-reel-strip)
   0 dicke Rahmen, 0 Schattenkästen, reine 1-px-Haarlinien & Hover-Video
   ========================================================================== */
.v10-reel-strip {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100%;
  background: var(--v10-obsidian);
  color: var(--v10-ink);
  border-top: 1px solid var(--v10-hair);
  border-bottom: 1px solid var(--v10-hair);
  overflow: clip;
}

.v10-reel-inner {
  width: 100%;
  max-width: min(var(--maxw, 1380px), 100%);
  margin-inline: auto;
  padding: clamp(32px, 4.5vh, 52px) var(--gut, clamp(18px, 3.6vw, 56px)) clamp(40px, 5.5vh, 64px);
}

.v10-reel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: clamp(20px, 2.8vh, 30px);
}

.v10-reel-label {
  margin: 0;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v10-ink-mute);
}

.v10-reel-all {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v10-ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--v10-hair-strong);
  padding-bottom: 3px;
  transition: color 220ms ease, border-color 220ms ease;
}

.v10-reel-all:hover,
.v10-reel-all:focus-visible {
  color: var(--v10-gold);
  border-color: var(--v10-gold);
  outline: none;
}

.v10-reel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--v10-hair);
}

.v10-reel-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.6vw, 30px) clamp(16px, 2.2vw, 28px) clamp(16px, 2vh, 24px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.v10-reel-item:first-child {
  padding-left: 0;
}

.v10-reel-item:last-child {
  padding-right: 0;
}

.v10-reel-item + .v10-reel-item {
  border-left: 1px solid var(--v10-hair);
}

.v10-reel-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--v10-obsidian-deep);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

.v10-reel-media img,
.v10-reel-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v10-reel-media img {
  transition: transform 720ms var(--v10-ease), filter 420ms ease;
  filter: brightness(0.92) contrast(1.03);
}

.v10-reel-media video {
  opacity: 0;
  transition: opacity 380ms var(--v10-ease);
  pointer-events: none;
}

.v10-reel-media video.is-playing {
  opacity: 1;
}

.v10-reel-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--v10-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms var(--v10-ease);
  z-index: 2;
}

.v10-reel-item:hover .v10-reel-media img,
.v10-reel-item:focus-within .v10-reel-media img {
  transform: scale(1.035);
  filter: brightness(1.02) contrast(1.04);
}

.v10-reel-item:hover .v10-reel-media::after,
.v10-reel-item:focus-within .v10-reel-media::after {
  transform: scaleX(1);
}

.v10-reel-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v10-reel-kicker {
  margin: 0;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v10-gold);
  opacity: 0.88;
}

.v10-reel-title {
  margin: 0;
  font-family: var(--display, system-ui, sans-serif);
  font-size: clamp(1.08rem, 1.35vw, 1.3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--v10-ink);
}

.v10-reel-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--v10-ink-soft);
}

.v10-reel-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 6px;
}

.v10-reel-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0 0 2px;
  border-bottom: 1px solid var(--v10-hair-strong);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v10-ink);
  text-decoration: none;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}

.v10-reel-link:hover,
.v10-reel-link:focus-visible {
  color: var(--v10-gold);
  border-color: var(--v10-gold);
  outline: none;
}

/* Kompakte Einzel-Demo-Direktzeile (z. B. W09 unter dem Agent-Theater) */
.v10-demo-inline-bar {
  width: 100%;
  max-width: min(var(--maxw, 1380px), 100%);
  margin-inline: auto;
  padding: 18px var(--gut, clamp(18px, 3.6vw, 56px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  border-top: 1px solid var(--v10-hair);
  border-bottom: 1px solid var(--v10-hair);
  color: var(--v10-ink-soft);
}

.v10-demo-inline-label {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v10-ink-mute);
}

.v10-demo-inline-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

/* ==========================================================================
   4. RESPONSIVE (Desktop 1440px -> Tablet -> Mobil 390px · 0px Overflow)
   ========================================================================== */
@media (max-width: 960px) {
  .v10-theater-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .v10-theater-lead {
    justify-self: start;
  }

  .v10-narration-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .v10-narration-action {
    align-items: flex-start;
    text-align: left;
  }

  .v10-reel-grid {
    grid-template-columns: 1fr;
  }

  .v10-reel-item,
  .v10-reel-item:first-child,
  .v10-reel-item:last-child {
    padding: 24px 0;
    border-left: 0;
  }

  .v10-reel-item + .v10-reel-item {
    border-left: 0;
    border-top: 1px solid var(--v10-hair);
  }

  .v10-theater-fallback {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .v10-agent-theater {
    min-height: 640px;
    padding-top: 44px;
  }

  .v10-theater-stage {
    min-height: 540px;
    padding-bottom: 26px;
  }

  .v10-theater-controls {
    gap: 10px 14px;
    padding: 12px 0;
  }

  .v10-story-btn::after {
    bottom: -13px;
  }

  .v10-controls-right {
    width: 100%;
    justify-content: space-between;
  }

  .v10-play-toggle {
    border-left: 0;
    padding-left: 0;
  }

  .v10-theater-air {
    min-height: 205px;
    flex-direction: column;
    gap: 6px;
    padding-top: 14px;
  }

  .v10-phase-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin-bottom: 16px;
  }

  .v10-narration-text {
    font-size: 1.15rem;
  }

  .v10-release-btn {
    width: 100%;
    justify-content: center;
  }

  .v10-tour-hud {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .v10-tour-hud-row {
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 9px 12px 11px;
  }

  .v10-tour-caption {
    flex: 1 1 60%;
    max-width: 100%;
    font-size: 10px;
  }

  .v10-tour-actions {
    width: 100%;
    justify-content: space-between;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--v10-hair);
    padding-top: 6px;
  }
}

/* ==========================================================================
   5. RUHE-MODUS (html.is-still & prefers-reduced-motion)
   ========================================================================== */
html.is-still .v10-reel-media video {
  opacity: 0 !important;
}

html.is-still .v10-theater-timeline-fill,
html.is-still .v10-tour-progress-fill {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .v10-agent-theater::before,
  .v10-story-btn,
  .v10-story-btn::after,
  .v10-phase-step,
  .v10-phase-step::before,
  .v10-narration-main,
  .v10-release-btn,
  .v10-release-btn::before,
  .v10-tour-hud,
  .v10-reel-media img,
  .v10-reel-media video,
  .v10-reel-media::after {
    transition: none !important;
  }

  .v10-reel-media video {
    opacity: 0 !important;
  }
}

/* V11e · Aufgeräumte, luftige Mobile-Fassung des Live-Agent-Orchesters (<= 768px) */
@media (max-width: 768px) {
  .v10-agent-theater {
    min-height: auto !important;
    padding-top: 76px !important;
    padding-bottom: 44px !important;
  }
  .v10-theater-head {
    gap: 10px !important;
    margin-bottom: 18px !important;
  }
  .v10-theater-title {
    font-size: clamp(1.7rem, 7vw, 2.15rem) !important;
    line-height: 1.08 !important;
  }
  .v10-theater-lead {
    display: none !important;
  }
  .v10-theater-bar {
    gap: 8px !important;
    padding-bottom: 10px !important;
  }
  .v10-theater-meta,
  .v10-story-tag,
  .v10-stage-meta,
  .v10-badge-local,
  .v10-release-sub {
    display: none !important;
  }
  .v10-theater-visual {
    height: 175px !important;
    min-height: 175px !important;
  }
  .v10-phase-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 8px !important;
  }
  .v10-phase-step {
    padding: 8px 4px !important;
    text-align: center;
  }
  .v10-phase-name {
    font-size: 0.72rem !important;
  }
  .v10-narration {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding-top: 16px !important;
  }
  .v10-narration-title {
    font-size: 1.18rem !important;
    line-height: 1.25 !important;
  }
  .v10-release-btn {
    width: 100%;
    justify-content: center;
    border-radius: 999px !important;
    min-height: 46px !important;
  }
}
