/* Virtual – Produktseite. Thema über die scrollcraft-Tokens, eigene Regeln nur mit diesen Werten. */
:root {
  --sc-canvas: #0a0c10;
  --sc-surface: #13161d;
  --sc-ink: #eef1f6;
  --sc-ink-soft: #9ba5b8;
  --sc-accent: #3567f0;
  --sc-accent-ink: #ffffff;
  --sc-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --sc-font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --sc-font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --surface-2: #191d26;
  --accent-soft: #8fb0ff;
  --nav-h: 56px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font-family: var(--sc-font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--sc-font-display); margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sc-ink); color: var(--sc-canvas); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }

/* Navigation: schmale Leiste, verwischt was darunter vorbeizieht. */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  height: var(--nav-h);
  display: flex; align-items: center; gap: var(--sc-5);
  padding: 0 var(--sc-gutter);
  background: color-mix(in oklab, var(--sc-canvas) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 1px 0 color-mix(in oklab, var(--sc-ink) 8%, transparent);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.01em; }
.nav-brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: var(--sc-5); margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--sc-ink-soft); font-size: 0.9375rem; transition: color var(--sc-d-fast) var(--sc-ease-out); }
.nav-links a:hover { color: var(--sc-ink); }

/* Knöpfe: Kapseln wie auf Apples Seiten. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border-radius: var(--sc-r-pill);
  font-size: 1rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none;
  transition: background-color var(--sc-d-fast) var(--sc-ease-out), transform var(--sc-d-fast) var(--sc-ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--sc-accent); color: var(--sc-accent-ink); }
.btn-primary:hover { background: color-mix(in oklab, var(--sc-accent) 88%, white); }
.btn-quiet { background: var(--surface-2); color: var(--sc-ink); }
.btn-quiet:hover { background: color-mix(in oklab, var(--surface-2) 85%, white); }
.btn-sm { min-height: 34px; padding: 0 16px; font-size: 0.9375rem; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.0625rem; }
.actions { display: flex; flex-wrap: wrap; gap: var(--sc-3); }
.actions-center { justify-content: center; }

.eyebrow { margin: 0 0 var(--sc-4); color: var(--accent-soft); font-size: var(--sc-t-sm); font-weight: 600; }
h2 { font-size: var(--sc-t-2xl); line-height: var(--sc-leading-tight); letter-spacing: var(--sc-track-tight); font-weight: 700; }
section p { color: var(--sc-ink-soft); font-size: var(--sc-t-base); line-height: var(--sc-leading-body); max-width: var(--sc-measure); }

/* ---------- Akt 1: Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + var(--sc-9)) var(--sc-gutter) var(--sc-section);
  max-width: var(--sc-maxw); margin: 0 auto;
}
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: var(--sc-t-4xl); line-height: var(--sc-leading-none); letter-spacing: var(--sc-track-tight); font-weight: 750; }
.hero .lead { margin: var(--sc-5) auto var(--sc-6); font-size: var(--sc-t-lg); line-height: 1.45; color: var(--sc-ink-soft); max-width: 40ch; text-align: center; }
.hero-copy .actions { justify-content: center; }

/* Bühne: hinten das Einstellungsfenster, in der Mitte die App, vorne das Icon.
   --sc-p läuft von 0 (Abschnitt kommt herein) bis 1 (verlässt den Bildschirm). */
.hero-stage {
  --hp: 0;
  position: relative;
  margin: var(--sc-8) auto 0;
  width: min(100%, 980px);
  aspect-ratio: 1640 / 1480;
  perspective: 1600px;
}
.hero-main {
  position: absolute; inset: 0; width: 100%;
  transform-origin: 50% 0%;
  transform: rotateX(calc(16deg * (1 - var(--hp)))) translateY(calc(36px * (1 - var(--hp))));
  filter: drop-shadow(0 30px 60px rgb(0 0 0 / 0.55)) drop-shadow(0 4px 10px rgb(0 0 0 / 0.4));
  z-index: 2;
  will-change: transform;
}
.hero-back {
  position: absolute; width: 40%; left: -12%; top: 12%;
  opacity: 0.5;
  transform: translateY(calc(var(--hp) * 90px)) scale(0.92);
  filter: drop-shadow(0 20px 40px rgb(0 0 0 / 0.5)) saturate(0.8) brightness(0.8);
  z-index: 1;
  will-change: transform;
}
.hero-front {
  position: absolute; width: 17%; right: -5%; bottom: 10%;
  transform: translateY(calc(var(--hp) * -180px)) rotate(calc(8deg - var(--hp) * 10deg));
  filter: drop-shadow(0 24px 30px rgb(0 0 0 / 0.5));
  z-index: 3;
  will-change: transform;
}
@media (max-width: 860px) {
  .hero-back { display: none; }
  .hero-front { width: 22%; right: -2%; }
}

/* ---------- Akt 2: Räume ---------- */
.rooms {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sc-8);
  align-items: center;
  padding: var(--sc-section) var(--sc-gutter);
  max-width: var(--sc-maxw); margin: 0 auto;
}
.rooms-copy p { margin: var(--sc-4) 0 0; }
.rooms-copy h2 { margin-bottom: var(--sc-2); }
.rooms-visual { margin: 0; display: grid; gap: var(--sc-4); }
.shot {
  border-radius: 14px; overflow: hidden;
  background: var(--sc-surface);
  box-shadow: 0 24px 50px rgb(0 0 0 / 0.45), 0 0 0 1px color-mix(in oklab, var(--sc-ink) 8%, transparent);
}
.shot-room img { -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.shot-tools { width: 86%; justify-self: end; }
@media (max-width: 860px) {
  .rooms { grid-template-columns: 1fr; gap: var(--sc-6); }
  .shot-tools { width: 100%; }
}

/* ---------- Akt 3: Schichten (Höhepunkt) ---------- */
.layers { background: linear-gradient(var(--sc-canvas), #080a0e 20%, #080a0e 80%, var(--sc-canvas)); }
.layers-stage {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sc-7);
  align-items: center;
  padding: calc(var(--nav-h) + var(--sc-4)) var(--sc-gutter) var(--sc-5);
  max-width: var(--sc-maxw); margin: 0 auto;
  height: 100vh; height: 100svh;
}
.layers-copy h2 { font-size: var(--sc-t-xl); margin-bottom: var(--sc-5); max-width: 18ch; }
.layer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sc-3); }
.layer-list li {
  display: grid; gap: 2px;
  padding: 10px 14px; border-radius: 12px;
  opacity: 0.35;
  transition: opacity var(--sc-d-slow) var(--sc-ease-out), background-color var(--sc-d-slow) var(--sc-ease-out);
}
.layer-list li.shown { opacity: 0.72; }
.layer-list li.lit { opacity: 1; background: var(--sc-surface); }
.layer-list strong { font-size: 1rem; font-weight: 650; }
.layer-list span { color: var(--sc-ink-soft); font-size: 0.9375rem; line-height: 1.45; }

.stack-wrap { position: relative; height: 100%; display: grid; place-items: center; perspective: 2200px; }
.stack {
  --explode: 0; --gap: calc(10px + var(--explode) * 92px);
  position: relative;
  width: min(30vw, 400px); aspect-ratio: 1.25;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-38deg);
}
.plate {
  position: absolute; inset: 0;
  border-radius: 22px;
  display: flex; align-items: flex-end; justify-content: flex-start; gap: 10px;
  padding: 0 0 16px 22px;
  transform: translateZ(calc((2.5 - var(--i)) * var(--gap)));
  background: color-mix(in oklab, var(--tone) 80%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, white 14%, transparent), 0 30px 40px rgb(0 0 0 / 0.35);
  transition: box-shadow 240ms var(--sc-ease-out), background-color 240ms var(--sc-ease-out);
}
.plate span { font-weight: 700; font-size: clamp(0.95rem, 1.3vw, 1.25rem); letter-spacing: -0.02em; color: rgb(255 255 255 / 0.9); }
.plate img { width: 30px; height: 30px; }
.plate.lit { box-shadow: inset 0 0 0 2px var(--accent-soft), 0 30px 40px rgb(0 0 0 / 0.35); background: color-mix(in oklab, var(--tone) 75%, white 15%); }
.p0 { --i: 0; --tone: #2a3242; }
.p1 { --i: 1; --tone: #2b4fd8; }
.p2 { --i: 2; --tone: #232a38; }
.p3 { --i: 3; --tone: #1f2633; }
.p4 { --i: 4; --tone: #1b2130; }
.p5 { --i: 5; --tone: #161b26; }
/* Der Doppelklick: ein kleines Quadrat in Akzentfarbe, das von oben durch alle Schichten fällt. */
.pulse {
  --travel: 0;
  position: absolute; left: 50%; top: 50%;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent-soft) 45%, transparent);
  opacity: 0;
  transform: translateZ(calc((3.3 - var(--travel) * 5.8) * var(--gap)));
}
.layers.travelling .pulse { opacity: 1; }

/* Ohne Pin (Handy, reduzierte Bewegung): Stapel steht aufgefächert, alle Zeilen lesbar. */
.layers.static .layers-stage { height: auto; grid-template-columns: 1fr; padding-top: var(--sc-section); padding-bottom: var(--sc-section); }
.layers.static .stack { --explode: 0.75; width: min(70vw, 340px); }
.layers.static .stack-wrap { height: 460px; order: -1; }
.layers.static .layer-list li { opacity: 1; }
.layers.static .pulse { display: none; }

/* ---------- Akt 4: Spiele ---------- */
.games { padding: var(--sc-section) var(--sc-gutter); max-width: var(--sc-maxw); margin: 0 auto; }
.games-title { font-size: var(--sc-t-3xl); line-height: var(--sc-leading-none); letter-spacing: var(--sc-track-tight); font-weight: 750; max-width: 14ch; }
.games-title span { display: block; }
.games-title span + span { color: var(--accent-soft); }
.games-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sc-8); margin-top: var(--sc-7); align-items: start; }
.games-body p { margin: 0; }
.spec { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--sc-surface); border-radius: 16px; overflow: hidden; font-size: 0.9375rem; }
.spec caption { text-align: left; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); padding: 0 0 var(--sc-3); font-weight: 600; }
.spec th, .spec td { text-align: left; padding: 14px 16px; vertical-align: top; }
.spec tr + tr > * { box-shadow: inset 0 1px 0 color-mix(in oklab, var(--sc-ink) 7%, transparent); }
.spec th { font-weight: 600; white-space: nowrap; }
.spec td:last-child { color: var(--sc-ink-soft); white-space: nowrap; }
@media (max-width: 860px) {
  .games-body { grid-template-columns: 1fr; gap: var(--sc-6); }
  .spec tr { display: grid; gap: 2px; padding: 12px 16px; }
  .spec tr + tr { box-shadow: inset 0 1px 0 color-mix(in oklab, var(--sc-ink) 7%, transparent); }
  .spec tr + tr > * { box-shadow: none; }
  .spec th, .spec td { padding: 0; white-space: normal; }
  .spec td:last-child { white-space: normal; font-size: 0.875rem; }
}

/* ---------- Akt 5: Funktionen ---------- */
.features { padding: var(--sc-section) var(--sc-gutter); max-width: var(--sc-maxw); margin: 0 auto; }
.features-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sc-7); align-items: end; }
.features-visual { margin: 0; justify-self: end; width: min(100%, 360px); }
.features-visual img { filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.5)); }
.feature-list { list-style: none; margin: var(--sc-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sc-4); }
.feature-list li { background: var(--sc-surface); border-radius: 16px; padding: var(--sc-5); }
.feature-list h3 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; }
.feature-list p { margin: var(--sc-2) 0 0; font-size: 0.9375rem; line-height: 1.55; }
@media (max-width: 960px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .features-head { grid-template-columns: 1fr; }
  .features-visual { justify-self: center; width: 78%; }
  .feature-list { grid-template-columns: 1fr; }
}

/* ---------- Akt 6: Abschluss ---------- */
.close { text-align: center; padding: var(--sc-section) var(--sc-gutter) var(--sc-9); display: flex; flex-direction: column; align-items: center; }
.close-icon { width: 128px; height: 128px; margin-bottom: var(--sc-6); filter: drop-shadow(0 20px 30px rgb(0 0 0 / 0.5)); }
.close h2 { font-size: var(--sc-t-3xl); line-height: var(--sc-leading-none); margin-bottom: var(--sc-6); }
.reqs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sc-3) var(--sc-7); margin: var(--sc-7) 0 0; }
.reqs div { display: grid; gap: 2px; }
.reqs dt { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.reqs dd { margin: 0; font-weight: 600; }
.close .note { margin: var(--sc-6) auto 0; max-width: 58ch; font-size: 0.9375rem; text-align: center; }

/* ---------- Fußzeile ---------- */
.foot { padding: var(--sc-7) var(--sc-gutter) var(--sc-8); max-width: var(--sc-maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: var(--sc-3) var(--sc-6); align-items: baseline; color: var(--sc-ink-soft); font-size: 0.875rem; box-shadow: 0 -1px 0 color-mix(in oklab, var(--sc-ink) 7%, transparent); }
.foot p { margin: 0; }
.foot nav { display: flex; gap: var(--sc-5); }
.foot a { color: var(--sc-ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-note { flex-basis: 100%; font-size: 0.8125rem; }

/* Handy */
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: calc(var(--nav-h) + var(--sc-7)); }
  .hero h1 { font-size: var(--sc-t-2xl); }
  .hero .actions .btn { width: 100%; }
  .hero-copy .actions { width: 100%; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-main, .hero-back, .hero-front { transform: none; }
  .btn:active { transform: none; }
}

/* Impressum */
.legal { max-width: 720px; margin: 0 auto; padding: calc(var(--nav-h) + var(--sc-8)) var(--sc-gutter) var(--sc-9); }
.legal h1 { font-size: var(--sc-t-2xl); letter-spacing: var(--sc-track-tight); margin-bottom: var(--sc-6); }
.legal h2 { font-size: var(--sc-t-lg); margin: var(--sc-7) 0 var(--sc-3); }
.legal h3 { font-size: 1.0625rem; margin: var(--sc-5) 0 var(--sc-2); }
.legal p, .legal dd { color: var(--sc-ink-soft); line-height: var(--sc-leading-body); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--sc-2) var(--sc-5); }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }
.legal a { color: var(--accent-soft); }

.nav-legal .btn { margin-left: auto; }
