/* ============================================================
   Potentia Nexus × Xiaomi — Experience Book
   Design: Editorial, Schwarz/Creme/Kupfer, Xiaomi-Orange-Akzent
   ============================================================ */

:root {
  --bg: #0a0908;
  --bg-soft: #131110;
  --ink: #f2ede4;
  --ink-dim: rgba(242, 237, 228, 0.62);
  --copper: #b8814a;
  --copper-soft: #caa06c;
  --orange: #ff6900;
  --line: rgba(242, 237, 228, 0.14);
  --font-display: "Archivo", sans-serif;
  --font-body: "Inter", sans-serif;
  --pad: clamp(1.25rem, 5vw, 6rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { background: var(--bg); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--copper); color: var(--bg); }

h1, h2, h3, .bignum, .hero-x {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 110;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 { font-size: clamp(2.1rem, 5vw, 4.3rem); text-transform: uppercase; }
h3 { font-size: clamp(1.8rem, 3.5vw, 3.1rem); text-transform: uppercase; }
h2 em, h3 em { font-style: normal; color: var(--copper-soft); }
.scene-orange h2 em, .hwrap-roadmap h3 em, .hwrap-roadmap .kicker { color: var(--orange); }

.kicker {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.4rem;
}
.scene-orange .kicker { color: var(--orange); }

.lede {
  font-size: clamp(1.12rem, 1.55vw, 1.38rem);
  color: var(--ink-dim);
  max-width: 38rem;
  margin-top: 1.6rem;
}

/* ---------- Chrome (fixe Elemente) ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(242, 237, 228, 0.08); z-index: 90;
}
.progress-bar {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--copper), var(--orange));
  transform-origin: 0 50%; transform: scaleX(0);
}

.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem var(--pad);
  font-size: 0.68rem; letter-spacing: 0.3em; font-weight: 500;
  mix-blend-mode: difference;
}
.chrome-brand span { color: var(--orange); mix-blend-mode: normal; }
.chrome-book { opacity: 0.6; }

.rail {
  position: fixed; left: 1.4rem; top: 50%; transform: translateY(-50%);
  z-index: 80; display: flex; flex-direction: column; gap: 1.1rem;
}
.rail a {
  display: flex; align-items: baseline; gap: 0.55rem;
  text-decoration: none; color: var(--ink-dim);
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  transition: color 0.3s;
}
.rail a i { font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; }
.rail a span { opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.3s; }
.rail a:hover span, .rail a.active span { opacity: 1; transform: none; }
.rail a.active { color: var(--copper-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero-inner {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad); padding-bottom: 12vh;
}
.hero-x {
  position: absolute; right: -2vw; top: 6vh; z-index: 2;
  font-size: clamp(20rem, 55vw, 52rem); font-weight: 900;
  font-variation-settings: "wdth" 125;
  color: var(--orange); opacity: 0.9; line-height: 0.8;
  pointer-events: none; user-select: none;
  text-shadow: 0 0 120px rgba(255, 105, 0, 0.35);
}
.hero-kicker { color: var(--ink); }
.hero-title {
  font-size: clamp(3rem, 10vw, 9.5rem);
  text-transform: uppercase;
  display: flex; flex-direction: column;
}
.hero-title .hero-xiaomi {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.hero-sub { margin-top: 1.4rem; color: var(--ink-dim); font-size: clamp(1.05rem, 1.55vw, 1.4rem); }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim); display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.scroll-hint span {
  width: 1px; height: 3rem; background: var(--ink-dim); display: block;
  animation: hint 2s ease-in-out infinite; transform-origin: top;
}
@keyframes hint { 0%,100% { transform: scaleY(0.3); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Szenen (vertikal) ---------- */
.scene { position: relative; height: 100vh; height: 100svh; overflow: hidden; }

/* Sticky-Slot-System: Slots liefern die Scroll-Strecke,
   Szenen/Strecken kleben am Viewport — keine Pin-Spacer, keine Lücken */
.slot { position: relative; }
.slot-scene { height: 230vh; }
.slot-scene .scene { position: sticky; top: 0; height: 100vh; height: 100svh; }
.slot-h .hwrap { position: sticky; top: 0; height: 100vh; height: 100svh; }

.scene-media { position: absolute; inset: 0; z-index: 1; }
.scene-media video, .scene-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.scene-media .kenburns { transform: scale(1.12); will-change: transform; }

.scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.scrim-left  { background: linear-gradient(90deg, rgba(10,9,8,0.95) 0%, rgba(10,9,8,0.72) 38%, rgba(10,9,8,0.25) 62%, rgba(10,9,8,0.08) 80%); }
.scrim-right { background: linear-gradient(270deg, rgba(10,9,8,0.95) 0%, rgba(10,9,8,0.72) 38%, rgba(10,9,8,0.25) 62%, rgba(10,9,8,0.08) 80%); }
.scrim-bottom{ background: linear-gradient(0deg, rgba(10,9,8,0.94) 0%, rgba(10,9,8,0.45) 45%, transparent 80%); }
.scrim-full  { background: rgba(10,9,8,0.62); }
.scrim-hero  { background: linear-gradient(0deg, rgba(10,9,8,0.88) 0%, rgba(10,9,8,0.25) 55%, rgba(10,9,8,0.35) 100%); }

.scene-content {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad); max-width: 50rem;
}
.scene-flip .scene-content { margin-left: auto; align-items: flex-start; text-align: left; }
.scene-content-center {
  max-width: 62rem; margin: 0 auto; text-align: center; align-items: center;
}
.scene-statement { background: radial-gradient(120% 90% at 50% 40%, #181310 0%, var(--bg-soft) 55%, var(--bg) 100%); }
.h-xl { font-size: clamp(2.7rem, 6.3vw, 5.6rem); }

/* Lesbarkeit über hellen Videostellen */
.scene-content, .hpanel-content { text-shadow: 0 1px 22px rgba(10, 9, 8, 0.5); }

/* Bulletpoints mit Nummernkreisen */
.points { list-style: none; margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.35rem; }
.points li { display: flex; gap: 1.1rem; align-items: flex-start; }
.points .num {
  flex: 0 0 auto; width: 2rem; height: 2rem; border: 1px solid var(--copper);
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: var(--copper-soft);
  margin-top: 0.15rem;
}
.scene-orange .points .num { border-color: var(--orange); color: var(--orange); }
.points strong { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.95rem; }
.points p { color: var(--ink-dim); font-size: 1.05rem; }

/* Chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.chips li {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 1.25rem; font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-dim);
}

/* KPIs */
.kpis { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 4rem); margin-top: 2.6rem; }
.kpis strong {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 5rem); color: var(--copper-soft); line-height: 1;
}
.kpis span { font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-dim); }

/* Quadranten */
.quad {
  list-style: none; margin-top: 2.4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.4rem;
  max-width: 34rem;
}
.quad li { border-top: 1px solid var(--line); padding-top: 1rem; }
.quad strong { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 1rem; color: var(--copper-soft); }
.quad p { color: var(--ink-dim); font-size: 1.02rem; margin-top: 0.3rem; }

/* ---------- Horizontale Strecken ---------- */
.hwrap { position: relative; overflow: hidden; }
.htrack { display: flex; height: 100vh; height: 100svh; width: max-content; will-change: transform; }

.hpanel { position: relative; width: 100vw; height: 100%; flex: 0 0 auto; overflow: hidden; }
.hpanel-media { position: absolute; inset: 0; z-index: 1; }
.hpanel-media video, .hpanel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hpanel-content {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad); padding-bottom: 10vh; max-width: 48rem;
}
.hpanel-content > p { color: var(--ink-dim); margin-top: 1.1rem; max-width: 34rem; font-size: 1.1rem; }

.pnum {
  position: absolute; top: 8vh; right: var(--pad); z-index: 3;
  font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 125;
  font-size: clamp(4rem, 10vw, 9rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 237, 228, 0.28);
}

.mini { list-style: none; margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mini li { font-size: 1rem; color: var(--ink-dim); }
.mini strong {
  display: inline-block; min-width: 10.5rem; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.16em; text-transform: uppercase;
}

/* Roadmap */
.hwrap-roadmap { background: var(--bg-soft); }
.hwrap-roadmap .hpanel { width: 70vw; border-right: 1px solid var(--line); }
.hwrap-roadmap .hpanel-intro .hpanel-content, .hwrap-roadmap .hpanel-step .hpanel-content {
  justify-content: center; padding-bottom: var(--pad);
}
.hpanel-final { width: 100vw !important; }
.hpanel-final .hpanel-content { justify-content: flex-end; padding-bottom: 12vh; }

.bignum {
  display: block; font-weight: 900; font-variation-settings: "wdth" 125;
  font-size: clamp(6rem, 16vw, 15rem); line-height: 0.9;
  color: var(--orange); margin-bottom: 1.5rem;
}
.hpanel-step h3 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.hpanel-step p { color: var(--ink-dim); font-size: clamp(1.15rem, 1.8vw, 1.45rem); margin-top: 0.8rem; }

/* ---------- Finale ---------- */
.scene-finale .cta {
  display: inline-block; margin-top: 2.6rem;
  border: 1px solid var(--copper); border-radius: 999px;
  padding: 1rem 2.5rem; color: var(--ink); text-decoration: none;
  font-size: 0.88rem; letter-spacing: 0.26em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.scene-finale .cta:hover { background: var(--copper); color: var(--bg); }
/* Finale-Headline etwas kompakter, damit nichts aus dem Viewport läuft */
.scene-finale h2.h-xl { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }

.footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 2rem var(--pad); border-top: 1px solid var(--line);
  font-size: 0.64rem; letter-spacing: 0.3em; color: var(--ink-dim); text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (min-width: 1001px) {
  /* Kapitel-Rail links nicht mit Text kollidieren lassen */
  .scene-content, .hpanel-content, .hero-inner { padding-left: 11rem; }
  .scene-content-center { padding-left: var(--pad); }
}
@media (max-width: 1000px) {
  .rail { display: none; }
}
@media (max-width: 860px) {
  .scene { height: auto; min-height: 100svh; }
  .slot-scene, .slot-h { height: auto !important; }
  .slot-scene .scene { height: auto; min-height: 100svh; }
  .slot-h .hwrap { height: auto; }
  .slot-scene .scene, .slot-h .hwrap { position: relative; top: auto; }
  .scene-content { padding-top: 22vh; padding-bottom: 14vh; }
  .hwrap { overflow: visible; }
  .htrack { flex-direction: column; width: auto; height: auto; transform: none !important; }
  .hpanel, .hwrap-roadmap .hpanel { width: 100vw; height: 100svh; border-right: none; }
  .hero-x { top: 2vh; }
  .quad { grid-template-columns: 1fr; }
  .mini strong { min-width: 7rem; }
  .chrome-book { display: none; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint span { animation: none; }
  .scene-media .kenburns { transform: none; }
  * { transition: none !important; }
}

/* Reduced Motion: Slots flachlegen und horizontale Strecken vertikal
   stapeln, damit alle Panels ohne Scroll-Animation erreichbar bleiben */
.reduced-motion .slot-scene, .reduced-motion .slot-h { height: auto !important; }
.reduced-motion .slot-scene .scene { position: relative; top: auto; height: auto; min-height: 100vh; }
.reduced-motion .slot-h .hwrap { position: relative; top: auto; height: auto; overflow: visible; }
.reduced-motion .htrack { flex-direction: column; width: auto; height: auto; transform: none !important; }
.reduced-motion .hpanel, .reduced-motion .hwrap-roadmap .hpanel { width: 100vw; height: 100vh; border-right: none; }

/* ---------- Scroll-World (Akt III): Der Flug durch die E-Bike-Strategie ---------- */
.sworld { position: relative; background: var(--bg); }

/* Theme-Tokens für die Scrub-Engine (unlayered → schlägt die @layer-sw-Defaults) */
.sw-root {
  --sw-bg: #0a0908;
  --sw-ink: #f2ede4;
  --sw-ink-soft: rgba(242, 237, 228, 0.62);
  --sw-accent: #ff6900;
  --sw-font-display: "Archivo", sans-serif;
  --sw-font-body: "Inter", sans-serif;
}

/* Embedded-Modus: fixe Engine-Layer ausblenden, solange die World nicht im Viewport ist */
.sw-off .sw-sky, .sw-off .sw-stage, .sw-off .sw-copylayer, .sw-off .sw-route,
.sw-off .sw-hint, .sw-off .sw-topbar, .sw-off .sw-scrollbar { display: none; }

/* Die Seite hat eigenes Chrome (Header, Progress, Rail) — Engine-Duplikate aus */
.sw-root .sw-topbar, .sw-root .sw-scrollbar { display: none; }

/* Bandkanten: fixe Layer blenden über --sw-fade weich ein/aus (Engine setzt die Var) */
.sw-root .sw-sky, .sw-root .sw-stage, .sw-root .sw-copylayer,
.sw-root .sw-route, .sw-root .sw-hint { opacity: var(--sw-fade, 1); }

/* Weißer Radial-Glow wirkt auf dem dunklen Theme wie ein Fleck */
.sw-root .sw-sky__glow { display: none; }

/* Die Engine setzt html,body{overflow-x:hidden} (in @layer sw). html-level
   overflow bricht position:sticky der Roadmap/Journey-Slots — zurück auf
   sichtbar, body behält das Clipping wie bisher. */
html { overflow-x: visible; }

/* ARGE-CHINA-Szene: auf Mobile kompakter, damit Inhalt in den Viewport passt */
@media (max-width: 860px) {
  .scene-arge .scene-content { padding-top: 10vh; padding-bottom: 8vh; }
  .scene-arge .lede { font-size: 0.95rem; }
  .scene-arge .points { margin-top: 1.4rem; gap: 0.9rem; }
}
