/* ============================================================
   voltron.ch 2026 — Eine Seite, eine Story: fünf Teile.
   Bauhaus-Brutalist Swiss, light. Die Bühne (fixed, rechts)
   montiert beim Scrollen vier Wege + den fünften Baustein.
   Grund-Zustand ohne JS / reduced-motion: fertig montiert.
============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { margin: 0; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }

/* ---- Tokens ---- */
:root {
  --bg: #000000;
  --bg-elev: #141414;
  --ink: #F5F2EC;
  --ink-soft: #C9C5BC;
  --ink-muted: #8A8780;
  --ink-faint: #3A3833;
  --rule: rgba(245, 242, 236, 0.12);
  --rule-strong: rgba(245, 242, 236, 0.26);
  --accent: #E63946;
  --accent-bright: #B22433;
  --accent-deep: #7E1822;

  --font-display: "Inter Tight", "Inter", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-monumental: clamp(3rem, 1rem + 7vw, 7.5rem);
  --fs-h2: clamp(2rem, 1rem + 3vw, 3.6rem);
  --fs-h3: clamp(1.25rem, 1rem + 0.6vw, 1.55rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.92rem;
  --fs-mono: 0.74rem;

  --container: 1440px;
  --gutter: clamp(1.5rem, 4vw, 4rem);

  --s2: 0.5rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2rem;
  --s6: 3rem;
  --s7: 4.5rem;
  --s8: 6.5rem;

  --t-fast: 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --t: 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-slow: 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Base ---- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--bg); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
  color: var(--ink);
}
p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }
em { font-style: normal; color: var(--accent); }
.period { color: var(--ink); }

a.link {
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color var(--t-fast), color var(--t-fast);
}
a.link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: 1.1rem 2rem;
  border: none;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all var(--t);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--ink-muted);
}
.btn .arrow { transition: transform var(--t-fast); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  margin: 0 auto;
}
.section { padding: var(--s8) 0; position: relative; z-index: 2; }
/* Text links, die Bühne wohnt rechts */
.col-text { max-width: 620px; }
@media (max-width: 880px) {
  .section { padding: var(--s7) 0; }
  .col-text { max-width: none; }
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  transition: background var(--t), border-bottom-color var(--t);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.92);
  border-bottom-color: var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) 0;
  min-height: 64px;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}
.brand .mark {
  width: 22px;
  height: 22px;
  color: var(--ink);
  flex-shrink: 0;
}
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: #FFFFFF !important;
  transition: all var(--t-fast);
}
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; }
@media (max-width: 480px) {
  .brand { letter-spacing: 0.14em; font-size: 0.72rem; }
  .nav-cta { padding: 0.5rem 0.85rem; letter-spacing: 0.14em; }
}

main { padding-top: 64px; position: relative; z-index: 2; }

/* ---- Hero ---- */
.hero {
  min-height: calc(92vh - 64px);
  padding: var(--s8) 0 var(--s7);
  display: flex;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.hero-eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
}
.hero h1 {
  font-size: var(--fs-monumental);
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.hero-lead {
  margin-top: var(--s6);
  max-width: 46ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
}
.hero-meta { margin-top: var(--s6); display: flex; gap: var(--s3); flex-wrap: wrap; }
.scroll-hint {
  position: absolute;
  bottom: var(--s5);
  left: var(--gutter);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}

/* ---- Section head ---- */
.section-head { margin-bottom: var(--s6); }
.section-head .num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s4);
}
.section-head h2 { font-size: var(--fs-h2); font-weight: 900; letter-spacing: -0.04em; }

/* ---- Warum: die drei Begriffe ---- */
.terms {
  list-style: none;
  border-top: 1px solid var(--rule);
  margin-bottom: var(--s6);
}
.terms li {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: var(--fs-lead);
}
.terms strong { color: var(--ink); font-weight: 700; }

/* ---- Prose ---- */
.prose { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); max-width: 58ch; }
.prose strong { color: var(--ink); font-weight: 700; }

/* ---- Die vier Wege ---- */
.wege { list-style: none; border-top: 1px solid var(--rule); }
.wege li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--s4);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background var(--t-fast), transform var(--t-fast);
}
.wege li:hover { background: var(--bg-elev); transform: translateY(-2px); }
.weg-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1rem + 1.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink-faint);
  line-height: 1;
}
.wege li:hover .weg-num { color: var(--accent); }
.wege h3 { font-size: var(--fs-h3); font-weight: 800; margin-bottom: var(--s2); }
.wege p { color: var(--ink-soft); font-size: 1rem; max-width: 52ch; }
/* ---- Der Ursprung ---- */
.origin {
  margin-top: var(--s6);
  border-left: 3px solid var(--accent);
  padding-left: var(--s5);
  max-width: 58ch;
}
.origin h3 { font-size: var(--fs-h3); margin-bottom: var(--s3); }
.origin p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; margin: 0; }

.promise {
  margin-top: var(--s5);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---- Vertiefen-Zeile + FAQ (Unterseiten) ---- */
.deeplinks {
  margin-top: var(--s5);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 2;
}
.deeplinks a { color: var(--ink-soft); border-bottom: 1px solid var(--rule-strong); transition: color var(--t-fast), border-color var(--t-fast); }
.deeplinks a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.faq h3 { font-size: 1.1rem; margin: var(--s5) 0 var(--s2); }
.faq h3:first-child { margin-top: 0; }
.faq p { color: var(--ink-soft); max-width: 58ch; }

/* ---- Einladung ---- */
.invitation { border-top: 1px solid var(--rule); position: relative; }
.invitation::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--gutter);
  width: 120px;
  height: 2px;
  background: var(--accent);
}
.invitation-cta {
  margin-top: var(--s6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s4);
}
.invitation-cta .mail {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}
.invitation-cta .mail a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule-strong);
}
.invitation-cta .mail a:hover { color: var(--accent); border-bottom-color: var(--accent); }
/* dezent: wer dahinter steht */
.who-behind {
  font-size: var(--fs-small);
  color: var(--ink-muted);
  max-width: 52ch;
}

.assembly-hint {
  display: none;
  margin-top: var(--s5);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.js /* dezent: wer dahinter steht */
.who-behind {
  font-size: var(--fs-small);
  color: var(--ink-muted);
  max-width: 52ch;
}

.assembly-hint { display: block; }
/* Hinweis bleibt auch mobil sichtbar */

/* ---- Footer ---- */
.site-footer {
  padding: var(--s6) 0 var(--s5);
  border-top: 1px solid var(--rule);
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--ink-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---- Reveal (versteckt nur mit JS; ohne JS alles sichtbar) ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   DIE BÜHNE — fünf Teile + Würfel.
   Basis-Layout = fertig montiertes 224px-Quadrat (Kachel-Schnitt
   wie das Marken-Zeichen). JS verschiebt die Teile pro Frame;
   ohne JS / reduced-motion steht hier einfach das rote Quadrat.
============================================================ */
.stage {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.stage-group {
  position: absolute;
  left: 72%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  perspective: 1400px;
}
.piece {
  position: absolute;
  background: var(--accent);
  will-change: transform;
  mix-blend-mode: screen;   /* dunkler Grund: screen statt multiply — Text bleibt lesbar */
  box-shadow: 0 0 50px rgba(230, 57, 70, 0.12);
}
.p1 { left: -112px; top: -112px; width: 140px; height: 84px; }
.p2 { left: 28px;   top: -112px; width: 84px;  height: 84px; }
.p3 { left: -112px; top: -28px;  width: 84px;  height: 140px; }
.p4 { left: -28px;  top: -28px;  width: 140px; height: 84px; }
.p5 { left: -28px;  top: 56px;   width: 140px; height: 56px; }

.stage .cube {
  position: absolute;
  left: -112px;
  top: -112px;
  width: 224px;
  height: 224px;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(28deg);
  opacity: 0;
  cursor: grab;
  touch-action: none;
}
.stage .cube.grabbing { cursor: grabbing; }
.stage.complete .cube { pointer-events: auto; }
.stage .cube i {
  position: absolute;
  inset: 0;
  display: block;
  border: 1px solid rgba(245, 242, 236, 0.20);
}
.stage .cube .f-front  { background: var(--accent);        transform: translateZ(112px); }
.stage .cube .f-back   { background: var(--accent);        transform: rotateY(180deg) translateZ(112px); }
.stage .cube .f-right  { background: var(--accent-bright); transform: rotateY(90deg) translateZ(112px); }
.stage .cube .f-left   { background: var(--accent-bright); transform: rotateY(-90deg) translateZ(112px); }
.stage .cube .f-top    { background: var(--accent-deep);   transform: rotateX(90deg) translateZ(112px); }
.stage .cube .f-bottom { background: var(--accent-deep);   transform: rotateX(-90deg) translateZ(112px); }

/* Kleine Screens: Bühne bleibt — kleiner, unten rechts */
@media (max-width: 880px) {
  .stage-group { left: 78%; top: 78%; transform: scale(0.45); }
}

/* ---- Reduced motion: alles steht, nichts fliegt ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Atmosphäre & Feinschliff (Frontend-Design-Review 2026-06-11)
   Drei Schichten Tiefe statt flachem Schwarz — alle ultraleise:
   Satz-Raster, Film-Korn, rote Glut hinter der Bühne.
============================================================ */

/* Schweizer Satz-Raster: haarfeine vertikale Linien, kaum sichtbar */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to right,
    rgba(245, 242, 236, 0.026) 0,
    rgba(245, 242, 236, 0.026) 1px,
    transparent 1px,
    transparent 96px
  );
}

/* Film-Korn über allem: nimmt dem Schwarz die digitale Glätte */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  filter: grayscale(1) contrast(130%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Rote Glut hinter der Bühne: die Teile schweben in Atmosphäre */
.stage::before {
  content: "";
  position: absolute;
  left: 72%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.09) 0%, transparent 62%);
}
@media (max-width: 880px) {
  .stage::before {
    left: 78%;
    top: 78%;
    width: 420px;
    height: 420px;
  }
}

/* Production-Grade-Details */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
html {
  scrollbar-width: thin;
  scrollbar-color: #2A2825 #000000;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: #2A2825; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #3A3833; }
