/* ═══════════════════════════════════════════════════════════════
   Vitrine · Landingpage
   Welt: Regalwand im dunklen Raum, Notation aus der PAL-Boxart.
   Die Schrift läuft auf einer Breitenachse: Archivo Narrow für alles,
   was wie ein Rücken im Regal steht, Archivo Expanded für das, was
   wie ein Cover im Licht liegt.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0f111c;
  --surface: #1c1e2c;
  --sunken: #222432;
  --ink: #e9e9ed;
  --muted: rgba(233, 233, 237, 0.58);
  --faint: rgba(233, 233, 237, 0.42);
  --line: rgba(255, 255, 255, 0.09);
  --accent: #9184d9;
  --accent-text: #b5abfc;
  --accent-deep: #5d5294;
  --accent-ink: #16121f;
  --laser: #ff5a52;

  --plate: rgba(20, 22, 34, 0.86);

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

/* Eine Familie, drei Breiten. Schmal steht im Regal, breit liegt im Licht. */
.u-wide { font-family: 'Archivo', system-ui, sans-serif; font-stretch: 125%; }
.u-narrow { font-family: 'Archivo', system-ui, sans-serif; font-stretch: 75%; }

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a { color: inherit; }

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

/* ── Bühne ───────────────────────────────────────────────────── */

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Legt das Licht in die Mitte und dunkelt die Ränder ab, damit die
   Schrift über der Wand steht statt in ihr zu ertrinken. */
#vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(8, 9, 16, 0.88) 0%, rgba(8, 9, 16, 0.66) 26%, rgba(8, 9, 16, 0.1) 58%, transparent 78%),
    radial-gradient(120% 90% at 50% 45%, transparent 34%, rgba(8, 9, 16, 0.5) 100%),
    linear-gradient(to bottom, rgba(8, 9, 16, 0.78) 0%, transparent 24%, transparent 66%, rgba(8, 9, 16, 0.9) 100%);
  transition: opacity 0.4s ease;
}

.noscript {
  position: relative;
  z-index: 3;
  margin: 6rem var(--gutter) 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Kopfzeile ───────────────────────────────────────────────── */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem var(--gutter);
  background: linear-gradient(to bottom, rgba(9, 10, 18, 0.9), rgba(9, 10, 18, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 75%;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: var(--accent-ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 125%;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
}

.topnav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 75%;
  font-size: 0.86rem;
  font-weight: 500;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s;
}

.topnav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.topbar__cta {
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 75%;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-text);
  padding: 0.45rem 0.9rem;
  border-radius: 9px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s;
}

.topbar__cta:hover { background: #cfc6ff; transform: translateY(-1px); }

/* ── Akte ────────────────────────────────────────────────────── */

main { position: relative; z-index: 2; }

.act {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem var(--gutter) 6rem;
}

.act--hero { align-items: flex-end; min-height: 108svh; position: relative; }
.act--right { justify-content: flex-end; }
.act--left { justify-content: flex-start; }
.act--center { justify-content: center; }

/* Inhalt ist ohne JavaScript sofort da; mit JavaScript kommt er
   einmal sauber herein, statt auf jeder Sektion identisch zu blinken. */
.js .panel,
.js .hero > * { opacity: 0; transform: translateY(20px); }

.js .is-in .panel,
.js .is-in .hero > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .is-in .hero > *:nth-child(2) { transition-delay: 0.06s; }
.js .is-in .hero > *:nth-child(3) { transition-delay: 0.12s; }
.js .is-in .hero > *:nth-child(4) { transition-delay: 0.18s; }
.js .is-in .hero > *:nth-child(5) { transition-delay: 0.24s; }

/* ── Akt 1 · Hero ────────────────────────────────────────────── */

.hero { max-width: 46rem; }

.spineline {
  margin: 0 0 1.4rem;
  font-family: 'Martian Mono', ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__line { display: block; }

.hero__line--wide { color: var(--accent-text); }

.hero__body {
  margin: 1.6rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: rgba(233, 233, 237, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.85rem 1.3rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, background-color 0.25s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 14px 34px -16px rgba(145, 132, 217, 0.9);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -16px rgba(145, 132, 217, 1);
}

.btn__hint {
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 75%;
  font-weight: 500;
  font-size: 0.76rem;
  color: rgba(22, 18, 31, 0.7);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-2px); }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin: 2.6rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.hero__facts div { display: flex; flex-direction: column-reverse; gap: 0.3rem; }

.hero__facts dt {
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 75%;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__facts dd {
  margin: 0;
  font-family: 'Martian Mono', ui-monospace, monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.scrollhint {
  position: absolute;
  bottom: 1.8rem; left: 50%;
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 75%;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.scrollhint span {
  display: block;
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, transparent, var(--accent-text));
  animation: drop 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  transform-origin: top;
}

@keyframes drop {
  0% { transform: scaleY(0.2); opacity: 0.2; }
  45% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.2); opacity: 0.2; }
}

/* ── Panels: das Beiheft aus der Hülle ───────────────────────── */

.panel {
  position: relative;
  width: min(30rem, 100%);
  padding: 1.9rem 1.8rem 1.7rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--plate);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.panel--wide { width: min(44rem, 100%); }

/* Der Plattform-Banner der PAL-Hülle, nicht ein Eyebrow über allem. */
.kicker {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 5px;
  background: var(--accent-text);
  color: var(--accent-ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 75%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel h2 {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 125%;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede {
  margin: 1rem 0 0;
  font-size: 0.98rem;
  color: rgba(233, 233, 237, 0.76);
}

.footnote {
  margin: 1rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--faint);
}

/* ── Akt 2 · Scan-Auslesung ──────────────────────────────────── */

.readout {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 11px;
  background: rgba(9, 10, 18, 0.66);
  border: 1px solid rgba(255, 90, 82, 0.3);
}

.readout__head { display: flex; align-items: center; gap: 0.55rem; }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--laser);
  box-shadow: 0 0 12px rgba(255, 90, 82, 0.9);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.35; } }

.readout__label {
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 75%;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffa49e;
}

.readout__value {
  margin: 0.6rem 0 0;
  min-height: 1.6em;
  font-family: 'Archivo Expanded', sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.readout__value::after {
  content: '';
  display: inline-block;
  width: 2px; height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--laser);
  animation: caret 1s steps(2) infinite;
}

@keyframes caret { 50% { opacity: 0; } }

.readout__meta {
  margin: 0.5rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Martian Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.usk {
  display: inline-grid;
  place-items: center;
  width: 19px; height: 19px;
  border-radius: 3px;
  font-family: 'Archivo', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
}

.usk--0 { background: #3d6b4a; color: #eaf7ee; }
.usk--6 { background: #4d6b2f; color: #f2f7e9; }
.usk--12 { background: #6b5f2a; color: #faf6e6; }
.usk--16 { background: #7a4a26; color: #fbeee5; }
.usk--18 { background: #7a2f2f; color: #fbe8e8; }

.ticks { margin: 1.4rem 0 0; padding: 0; list-style: none; }

.ticks li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
  font-size: 0.9rem;
  color: rgba(233, 233, 237, 0.8);
  border-bottom: 1px solid var(--line);
}

.ticks li:last-child { border-bottom: 0; }

.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.05rem;
  width: 8px; height: 1px;
  background: var(--accent);
}

/* ── Akt 3 · Datenblatt ──────────────────────────────────────── */

.datasheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}

.datasheet div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 0.9rem;
  background: rgba(28, 30, 44, 0.96);
}

.datasheet span {
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 75%;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.datasheet strong { font-size: 0.92rem; font-weight: 600; }

/* ── Akt 4 · Preistabelle ────────────────────────────────────── */

.pricetable {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pricetable th {
  text-align: left;
  font-weight: 600;
  padding: 0.8rem 0;
}

.pricetable th span {
  display: block;
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 75%;
  font-weight: 500;
  font-size: 0.74rem;
  color: var(--muted);
}

.pricetable td {
  text-align: right;
  padding: 0.8rem 0;
  font-family: 'Martian Mono', ui-monospace, monospace;
  font-size: 0.92rem;
  font-weight: 600;
}

.pricetable tr { border-bottom: 1px solid var(--line); }
.pricetable tr:last-child { border-bottom: 0; }

.pricetable .is-active th,
.pricetable .is-active td { color: var(--accent-text); }

/* ── Akt 5 · Feed ────────────────────────────────────────────── */

.feedcard {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 11px;
  background: rgba(34, 36, 50, 0.9);
}

.feedcard__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.8rem;
}

.feedcard__text { margin: 0; font-size: 0.88rem; }

.feedcard__meta {
  margin: 0.35rem 0 0;
  font-family: 'Martian Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--muted);
}

/* ── Akt 6 · Vertrauen ───────────────────────────────────────── */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.3rem 2rem;
  margin-top: 1.6rem;
}

.trust p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(233, 233, 237, 0.74);
}

.trust strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  color: var(--ink);
}

/* ── Akt 7 · Abschluss ───────────────────────────────────────── */

.closing { text-align: center; }
.closing .lede { margin-inline: auto; max-width: 32rem; }

.closing__title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  letter-spacing: -0.03em;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.store {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(34, 36, 50, 0.85);
  text-align: left;
  cursor: not-allowed;
}

.store__kicker {
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 75%;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.store__name {
  font-family: 'Archivo Expanded', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.store__note {
  font-family: 'Martian Mono', ui-monospace, monospace;
  font-size: 0.64rem;
  color: var(--muted);
}

.closing .footnote { text-align: center; }

/* ── Fußzeile ────────────────────────────────────────────────── */

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding: 2rem var(--gutter) 2.6rem;
  border-top: 1px solid var(--line);
  background: rgba(9, 10, 18, 0.9);
  font-size: 0.8rem;
  color: var(--muted);
}

.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 75%;
  font-weight: 600;
  color: var(--ink);
}

.foot__nav { display: flex; gap: 1.2rem; }
.foot__nav a { text-decoration: none; }
.foot__nav a:hover { color: var(--ink); }
.foot__meta { margin-left: auto; color: var(--faint); }

/* ── Kleine Schirme ──────────────────────────────────────────── */

@media (max-width: 860px) {
  .topnav { display: none; }
  .topbar__cta { margin-left: auto; }
  .act { padding: 6.5rem var(--gutter) 4rem; min-height: 100svh; }
  .panel { width: 100%; }
  .hero__facts { gap: 1.6rem; }
  .foot__meta { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .panel, .js .hero > * { opacity: 1; transform: none; }
}
