/* ==========================================================================
   FreyAI Visions – Startseite (Fable V2)
   Industrial Luxury. Tokens: .skills/freyai-brand/SKILL.md
   Nur Brand-Hex-Werte. Kein Gradient, kein Glassmorphism, kein Glow.
   Reihenfolge: Tokens · Reset · Typo · Layout · Komponenten · Sektionen ·
   Motion · Media Queries · Reduced Motion · Print
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg-dark: #131516;
  --bg-sidebar: #191b1d;
  --bg-card: #1c1f22;
  --bg-hover: #252830;
  --bg-input: #1a1d20;
  --bg-input-focus: #282b30;

  --accent-primary: #c8956c;
  --accent-primary-hover: #daa882;
  --accent-primary-light: rgba(200, 149, 108, 0.12);
  --accent-success: #5a9e6f;
  --accent-danger: #d16464;

  --text-primary: #e8e4df;
  --text-secondary: #9a958e;
  --text-muted: #958e85;

  --border-color: #2a2d31;
  --border-radius: 6px;
  --border-radius-sm: 4px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 3px 10px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.25);

  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;

  --header-h: 60px;
  --avail-h: 44px;
  --rail-h: 2px;
  --container: 1280px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 360ms;
  --dur-reveal: 480ms;

  /* Motion-Variablen, von JS gesetzt */
  --px: 0;
  --py: 0;
  --sy: 0;
  --progress: 0;
  --thread: 0;
  --approve-y: 0px;
}

/* 2. Reset & Base ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-16));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Signatur: Fractal-Noise, mattes Stahlblech */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

::selection {
  background: var(--accent-primary);
  color: var(--bg-dark);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-16);
  z-index: 200;
  padding: var(--space-12) var(--space-16);
  background: var(--accent-primary);
  color: var(--bg-dark);
  font-weight: 600;
  border-radius: var(--border-radius);
}

.skip-link:focus {
  top: var(--space-8);
  outline-offset: 0;
}

/* 3. Typografie ------------------------------------------------------------ */
h1,
h2,
h3 {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
  text-wrap: balance;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.display {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin-bottom: var(--space-12);
  color: var(--accent-primary);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-small {
  font-size: 14px;
  line-height: 1.45;
}

.legal-note,
.form-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* 4. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.section {
  padding: var(--space-64) 0;
  border-top: 1px solid var(--border-color);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-32);
}

.section-intro {
  margin-top: var(--space-16);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* 5. Komponenten ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: 48px;
  padding: var(--space-12) var(--space-24);
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  cursor: default;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-sm {
  min-height: 44px;
  padding: var(--space-8) var(--space-16);
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-24);
  box-shadow: var(--shadow-sm);
}

.icon-check {
  flex: 0 0 auto;
  color: currentColor;
}

/* S0 Verfügbarkeitsleiste -------------------------------------------------- */
.avail {
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
}

.avail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  min-height: var(--avail-h);
}

.avail-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-8);
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.avail-sep {
  color: var(--text-muted);
}

.avail-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: var(--avail-h);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

/* S1 Header / Navigation --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 21, 22, 0.96);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.wordmark:hover {
  text-decoration: none;
  color: var(--accent-primary);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: calc(var(--space-8) * -1);
  border-radius: var(--border-radius);
}

.menu-toggle:hover {
  background: var(--bg-hover);
}

.menu-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.menu-bars span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile: Navigation bleibt ohne JavaScript erreichbar; JS aktiviert das kompakte Menü. */
.site-nav {
  position: static;
  flex-basis: 100%;
  visibility: visible;
  opacity: 1;
  transform: none;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
}

html.is-ready .menu-toggle {
  display: inline-flex;
}

html.is-ready .site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-basis: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), visibility 0s linear var(--dur-base);
}

html.is-ready .site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), visibility 0s;
}

.nav-list {
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-16) var(--space-16);
}

.nav-cta {
  order: -1;
  padding: var(--space-8) 0 var(--space-12);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-8);
}

.nav-cta .btn {
  width: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: var(--space-8) var(--space-8);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--border-radius);
}

.nav-link:hover {
  text-decoration: none;
  color: var(--accent-primary);
  background: var(--bg-hover);
}

.progress-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: var(--rail-h);
  overflow: hidden;
}

.progress-rail-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent-primary);
  transform: scaleX(var(--progress));
  transform-origin: left center;
  will-change: transform;
}

/* S2 Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-48);
}

.hero-grid {
  display: grid;
  gap: var(--space-32);
}

.hero-copy {
  max-width: 640px;
}

.hero .eyebrow {
  margin-bottom: var(--space-16);
}

.hero-sub {
  margin-top: var(--space-16);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
}

.hero-proof {
  margin-top: var(--space-12);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-top: var(--space-24);
}

/* Hero-Stapel: Mobile = statischer 3-Zeilen-Block */
.hero-stack {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: var(--space-16);
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.hs-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M-1 13 13 -1M-1 1 1 -1M11 13 13 11' stroke='%232a2d31' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0));
}

.hs-inbox {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.hs-tile {
  padding: var(--space-8) var(--space-12);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.hs-plate,
.sv-plate {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 2px solid var(--accent-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.hs-plate-head,
.sv-plate-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-4) var(--space-12);
  padding: var(--space-12) var(--space-16);
  border-bottom: 1px solid var(--border-color);
}

.hs-plate-id,
.sv-plate-id {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.hs-plate-title,
.sv-plate-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.hs-slots {
  padding: var(--space-8) var(--space-8);
}

.hs-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  min-height: 40px;
  padding: var(--space-8) var(--space-8);
  border-left: 2px solid var(--border-color);
  margin-bottom: var(--space-4);
  font-size: 14px;
}

.hs-slot:last-child {
  margin-bottom: 0;
}

.hs-slot-name {
  font-weight: 600;
  color: var(--text-primary);
}

.hs-slot-state {
  font-size: 13px;
  color: var(--text-secondary);
}

.hs-slot.is-done {
  border-left-color: var(--accent-success);
}

.hs-slot.is-done .hs-slot-state {
  color: var(--accent-success);
}

.hs-slot.is-active {
  border-left-color: var(--accent-primary);
  background: var(--accent-primary-light);
}

.hs-slot.is-pending .hs-slot-name {
  color: var(--text-muted);
}

.hs-approve,
.sv-approve {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-12);
  background: var(--accent-primary);
  color: var(--bg-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.hs-approve {
  margin-left: auto;
}

/* Der Freigabe-Chip ersetzt die Statuszeile im aktiven Slot */
.hs-slot.is-active .hs-slot-state,
.sv-slot.is-active .sv-slot-state {
  display: none;
}

.hs-edge {
  display: none;
}

/* S3 Ablauf / Scrollytelling ----------------------------------------------- */
.scrolly {
  display: grid;
  gap: var(--space-32);
}

.scrolly-visual {
  order: -1;
}

.sv-slots-wrap {
  position: relative;
  padding: var(--space-16);
}

.sv-thread {
  position: absolute;
  top: var(--space-24);
  bottom: var(--space-24);
  left: calc(var(--space-16) + 7px);
  width: 2px;
  background: var(--accent-primary);
  transform: scaleY(var(--thread));
  transform-origin: top center;
  transition: transform var(--dur-slow) var(--ease);
}

.sv-thread::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--border-color);
  z-index: -1;
}

.sv-slots {
  position: relative;
  display: grid;
  gap: var(--space-8);
}

.sv-slot {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: var(--space-12);
  min-height: 48px;
  padding: var(--space-8) var(--space-12) var(--space-8) 0;
  font-size: 15px;
  border-radius: var(--border-radius);
  transition: background-color var(--dur-base) var(--ease);
}

.sv-slot-marker {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-card);
  transition: border-color var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease);
}

.sv-slot-marker::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent-primary);
  transform: scale(0);
  transition: transform var(--dur-base) var(--ease);
}

.sv-slot-name {
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--dur-base) var(--ease);
}

.sv-slot-state {
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.sv-slot.is-active {
  background: var(--accent-primary-light);
  padding-left: var(--space-8);
  margin-left: calc(var(--space-8) * -1);
}

.sv-slot.is-active .sv-slot-marker {
  border-color: var(--accent-primary);
}

.sv-slot.is-active .sv-slot-marker::after {
  transform: scale(1);
}

.sv-slot.is-active .sv-slot-state {
  color: var(--accent-primary);
  font-weight: 600;
}

.sv-slot.is-done .sv-slot-marker {
  border-color: var(--accent-success);
  background: var(--accent-success);
}

.sv-slot.is-done .sv-slot-state {
  color: var(--accent-success);
}

.sv-slot.is-pending .sv-slot-name {
  color: var(--text-muted);
}

.sv-approve {
  position: absolute;
  right: var(--space-16);
  top: var(--space-16);
  transform: translateY(var(--approve-y));
  transition: transform var(--dur-slow) var(--ease);
  pointer-events: none;
}

.sv-checkpoint {
  margin-top: var(--space-16);
  padding: var(--space-16);
  border-left: 2px solid var(--accent-primary);
  background: var(--bg-card);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.sv-checkpoint-label {
  display: block;
  margin-bottom: var(--space-4);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.sv-checkpoint-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  transition: opacity 120ms var(--ease);
}

.sv-checkpoint-text.is-fading {
  opacity: 0;
}

.scrolly-steps {
  display: grid;
  gap: var(--space-24);
}

.scrolly-step {
  position: relative;
  padding-left: var(--space-48);
}

.step-index {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  transition: color var(--dur-base) var(--ease);
}

.scrolly-step.is-current .step-index {
  color: var(--accent-primary);
}

.scrolly-step.is-current h3 {
  color: var(--accent-primary);
}

.scrolly-step p {
  margin-top: var(--space-12);
  color: var(--text-secondary);
}

.scrolly-step .checkpoint {
  padding: var(--space-12) var(--space-16);
  border-left: 2px solid var(--accent-primary);
  color: var(--text-primary);
}

.checkpoint strong {
  color: var(--accent-primary);
  font-weight: 600;
}

/* S4 Ergebnis-Karten ------------------------------------------------------- */
.stack {
  display: grid;
  gap: var(--space-16);
}

.stack-card h3 {
  margin-bottom: var(--space-12);
}

.stack-card p {
  color: var(--text-secondary);
}

.stack-note {
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px solid var(--border-color);
  font-size: 15px;
}

.stack-note strong {
  color: var(--text-primary);
  font-weight: 600;
}

.stack-sentinel {
  display: block;
  height: 1px;
}

/* S5 Vorgehen -------------------------------------------------------------- */
.phases {
  position: relative;
  display: grid;
  gap: var(--space-24);
}

.phase {
  position: relative;
  padding-left: var(--space-64);
}

.phase-index {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-card);
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.phase h3 {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.phase p {
  margin-top: var(--space-8);
  color: var(--text-secondary);
}

/* S6 Gründer --------------------------------------------------------------- */
.founder-grid {
  display: grid;
  gap: var(--space-32);
}

.founder-copy p + p {
  margin-top: var(--space-16);
}

.founder-copy h2 {
  margin-bottom: var(--space-16);
}

.founder-copy > p {
  color: var(--text-secondary);
}

.founder-facts {
  display: grid;
  gap: var(--space-12);
  margin-top: var(--space-24);
}

.founder-facts li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
  color: var(--text-primary);
}

.founder-facts .icon-check {
  margin-top: 4px;
  color: var(--accent-success);
}

.founder-claim {
  margin-top: var(--space-24);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.founder-figure {
  order: -1;
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
}

.founder-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 483 / 720;
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  filter: grayscale(15%) contrast(1.05);
}

.founder-figure figcaption {
  margin-top: var(--space-12);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* S7 Investition ----------------------------------------------------------- */
.tiers {
  display: grid;
  gap: var(--space-16);
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
}

.tier.is-featured {
  border-color: var(--accent-primary);
}

.tier-badge {
  position: absolute;
  top: calc(var(--space-12) * -1);
  left: var(--space-24);
  padding: var(--space-4) var(--space-12);
  background: var(--accent-primary);
  color: var(--bg-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
}

.tier-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.tier-price {
  margin-top: var(--space-8);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.tier-period {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.tier-qualifier {
  margin-top: var(--space-8);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.tier-text {
  margin-top: var(--space-16);
  color: var(--text-secondary);
}

.tier-list {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-16);
  margin-bottom: auto;
  padding-top: var(--space-16);
  border-top: 1px solid var(--border-color);
  font-size: 15px;
}

.tier-list li {
  position: relative;
  padding-left: var(--space-24);
}

.tier-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 2px;
  background: var(--accent-primary);
}

.tier-cta {
  margin-top: var(--space-24);
}

.legal-note {
  margin-top: var(--space-24);
  max-width: 720px;
}

/* S8 System-Check + Formular ----------------------------------------------- */
.check-grid {
  display: grid;
  gap: var(--space-32);
}

.check-copy h2 {
  margin-bottom: var(--space-16);
}

.check-copy > p {
  color: var(--text-secondary);
}

.check-alt {
  margin-top: var(--space-16);
}

.check-alt a {
  display: inline-block;
  padding: var(--space-8) 0;
  font-weight: 600;
}

.check-form {
  width: 100%;
  max-width: 520px;
}

.lead-form-wrap {
  display: none;
}

html.is-ready .lead-form-wrap {
  display: block;
}

.nojs-card h3 {
  margin-bottom: var(--space-12);
}

.nojs-card p {
  margin-bottom: var(--space-16);
  color: var(--text-secondary);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field {
  margin-bottom: var(--space-16);
}

.form-field label {
  display: block;
  margin-bottom: var(--space-8);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select {
  width: 100%;
  min-height: 48px;
  padding: var(--space-12) 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%239a958e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent-primary);
  background-color: var(--bg-input-focus);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: var(--accent-danger);
}

.field-hint {
  margin-top: var(--space-8);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.field-error {
  margin-top: var(--space-8);
  font-size: 14px;
  line-height: 1.45;
  color: var(--accent-danger);
}

.field-error[hidden] {
  display: none;
}

.form-check {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  column-gap: var(--space-4);
}

.form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: transparent;
  border: 0;
  position: relative;
}

.form-check input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  background: var(--bg-input);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.form-check input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 18px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--bg-dark);
  border-bottom: 2px solid var(--bg-dark);
  transform: rotate(45deg) scale(0);
  transition: transform var(--dur-fast) var(--ease);
}

.form-check input[type="checkbox"]:checked::before {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.form-check input[type="checkbox"]:checked::after {
  transform: rotate(45deg) scale(1);
}

.form-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 0;
}

.form-check input[aria-invalid="true"]::before {
  border-color: var(--accent-danger);
}

.form-check label {
  margin: 0;
  padding-top: var(--space-12);
  min-height: 44px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-check .field-error {
  grid-column: 1 / -1;
}

.lead-status {
  margin-top: var(--space-16);
  font-size: 15px;
  line-height: 1.5;
  min-height: 0;
  opacity: 0;
  transition: opacity 200ms var(--ease);
}

.lead-status.is-success,
.lead-status.is-error {
  opacity: 1;
}

.lead-status.is-success {
  color: var(--accent-success);
}

.lead-status.is-error {
  color: var(--accent-danger);
}

.form-note {
  margin-top: var(--space-12);
}

/* S9 Footer ---------------------------------------------------------------- */
.site-footer {
  padding: var(--space-48) 0 var(--space-32);
  border-top: 1px solid var(--border-color);
  background: var(--bg-sidebar);
}

.footer-grid {
  display: grid;
  gap: var(--space-32);
}

.footer-wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-12);
}

.footer-line {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.footer-claim {
  margin-top: var(--space-4);
  color: var(--text-muted);
}

.footer-links {
  display: grid;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

/* 7. Motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero-Stagger rein per CSS – funktioniert auch ohne JS */
  .hero-copy > * {
    animation: rise var(--dur-reveal) var(--ease) both;
  }

  .hero-copy > :nth-child(1) { animation-delay: 0ms; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .hero-copy > :nth-child(5) { animation-delay: 240ms; }

  .hero-stack {
    animation: rise var(--dur-reveal) var(--ease) 200ms both;
  }

  /* Reveal-Startzustand nur, wenn JS aktiv ist (html.is-ready) */
  html.is-ready .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
  }

  html.is-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  html.is-ready .tiers.reveal > :nth-child(2),
  html.is-ready .phases.reveal > :nth-child(2) {
    transition-delay: 70ms;
  }

  html.is-ready .tiers.reveal > :nth-child(3),
  html.is-ready .phases.reveal > :nth-child(3) {
    transition-delay: 140ms;
  }

  /* Hero-Ebenen: Pointer + Scroll, nur Desktop mit feinem Zeiger */
  @media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
    .hero-stack [data-depth] {
      transition: transform 400ms var(--ease);
      will-change: transform;
    }

    .hs-texture {
      transform: translate3d(calc(var(--px) * 2px), calc(var(--py) * 2px + var(--sy) * 2px), 0);
    }

    .hs-inbox {
      transform: translate3d(calc(var(--px) * 5px), calc(var(--py) * 5px + var(--sy) * 5px), 0);
    }

    .hs-plate {
      transform: translate3d(calc(var(--px) * 9px), calc(var(--py) * 9px + var(--sy) * 8px), 0);
    }

    .hs-approve {
      transform: translate3d(calc(var(--px) * 14px), calc(var(--py) * 14px + var(--sy) * 12px), 0);
    }

    .hs-edge {
      opacity: calc(0.35 - var(--sy) * 0.2);
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 8. Media Queries (mobile-first) ------------------------------------------ */
@media (max-width: 479px) {
  .avail-place {
    display: none;
  }
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--space-24);
    padding-right: var(--space-24);
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-sub {
    font-size: 18px;
  }

  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tier.is-featured {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-links {
    justify-items: end;
  }
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-96) 0;
  }

  .section-head {
    margin-bottom: var(--space-48);
  }

  .hero {
    padding: var(--space-48) 0 var(--space-64);
  }

  .hero-stack {
    aspect-ratio: 4 / 3;
  }

  .stack {
    max-width: 720px;
  }

  .phases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-32);
  }

  .phase {
    padding-left: 0;
    padding-top: var(--space-64);
  }

  .phase h3 {
    min-height: 0;
    display: block;
  }

  .founder-grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
  }

  .founder-figure {
    order: 0;
    max-width: 420px;
  }

  .check-grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .check-form {
    justify-self: end;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-32);
    padding-right: var(--space-32);
  }

  /* Header: volle Navigation, unabhaengig vom JS-Zustand */
  .menu-toggle,
  html.is-ready .menu-toggle {
    display: none;
  }

  .site-nav,
  html.is-ready .site-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
    padding: 0;
  }

  .nav-cta {
    order: 0;
    padding: 0;
    border: 0;
    margin: 0 0 0 var(--space-12);
  }

  .nav-cta .btn {
    width: auto;
  }

  .nav-link {
    min-height: 44px;
    padding: var(--space-8) var(--space-12);
    font-size: 15px;
  }

  /* Hero: Grid 7/5, Stapel als Ebenen-Komposition */
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: var(--space-48);
  }

  .hero-stack {
    display: block;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    justify-self: end;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .hs-texture {
    inset: 8% 0 0 12%;
    opacity: 0.6;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-sidebar);
  }

  .hs-inbox {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1;
    display: block;
    width: 46%;
  }

  .hs-tile {
    position: absolute;
    left: 0;
    padding: var(--space-8) var(--space-12);
  }

  .hs-tile:nth-child(1) { top: 4%; left: 2%; transform: rotate(-3deg); }
  .hs-tile:nth-child(2) { top: 20%; left: 10%; transform: rotate(2deg); }
  .hs-tile:nth-child(3) { top: 36%; left: 0; transform: rotate(-1deg); }
  .hs-tile:nth-child(4) { top: 52%; left: 12%; transform: rotate(4deg); }

  .hs-plate {
    position: absolute;
    right: 2%;
    bottom: 6%;
    width: 68%;
    z-index: 2;
  }

  .hs-slot {
    min-height: 44px;
    font-size: 15px;
  }

  .hs-approve {
    position: absolute;
    right: calc(var(--space-16) * -1);
    top: 50%;
    margin-top: -18px;
    margin-left: 0;
    z-index: 3;
  }

  .hs-edge {
    display: block;
    position: absolute;
    top: 6%;
    right: -2%;
    width: 44%;
    height: 1px;
    background: rgba(200, 149, 108, 0.35);
    transform: rotate(-28deg);
    transform-origin: right center;
    z-index: 4;
    opacity: 0.35;
  }

  /* Scrollytelling: Steps links, Visual sticky rechts */
  .scrolly {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-64);
    align-items: start;
  }

  .scrolly-visual {
    order: 1;
    position: sticky;
    top: calc(var(--header-h) + var(--space-24));
    min-height: 480px;
    max-height: calc(100vh - var(--header-h) - var(--space-48));
  }

  .scrolly-steps {
    gap: 0;
  }

  .scrolly-step {
    min-height: 56vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-48) 0 var(--space-48) var(--space-64);
    opacity: 0.32;
    transition: opacity var(--dur-base) var(--ease);
  }

  .scrolly-step.is-current,
  .scrolly-step.is-past {
    opacity: 1;
  }

  .scrolly-step .checkpoint {
    display: none;
  }

  /* Nach dem letzten Schritt Reststrecke lassen, damit Schritt 4
     aktiv bleibt und das Visual nicht sofort aus dem Sticky läuft. */
  .scrolly-step:last-child {
    margin-bottom: 34vh;
  }

  .scrolly-step:first-child {
    padding-top: 0;
  }

  .step-index {
    top: var(--space-48);
    font-size: 15px;
  }

  .scrolly-step:first-child .step-index {
    top: 2px;
  }

  /* Ergebnis: Sticky-Stapel */
  .stack {
    max-width: 720px;
    margin: 0 auto;
    gap: 0;
  }

  .stack-card {
    position: sticky;
    padding: var(--space-32);
    transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease);
  }

  .stack-card:nth-child(1) {
    top: calc(var(--header-h) + var(--space-32));
  }

  .stack-card:nth-child(2) {
    top: calc(var(--header-h) + var(--space-32) + var(--space-16));
  }

  .stack-card:nth-child(3) {
    top: calc(var(--header-h) + var(--space-32) + var(--space-32));
  }

  .stack-card:not(:last-child) {
    margin-bottom: 40vh;
  }

  .stack-card.is-behind {
    transform: scale(0.97) translateY(-8px);
    opacity: 0.6;
  }

  .section-ergebnis .container {
    padding-bottom: var(--space-32);
  }

  /* Vorgehen: Verbindungslinie zwischen den Nummern */
  .phases .phase:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 44px;
    right: calc(var(--space-32) * -1);
    height: 1px;
    background: var(--border-color);
  }

  .founder-grid {
    grid-template-columns: 6fr 6fr;
    gap: var(--space-64);
  }

  .tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .tier.is-featured {
    grid-column: auto;
  }

  .check-grid {
    gap: var(--space-64);
  }
}

@media (min-width: 1280px) {
  .display {
    font-size: 56px;
  }
}

/* 9. Reduced Motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-stack [data-depth] {
    transform: none !important;
  }

  .hs-tile:nth-child(n) {
    transform: none !important;
  }

  .hs-edge {
    opacity: 0.35 !important;
  }

  .reveal,
  html.is-ready .reveal {
    opacity: 1;
    transform: none;
  }

  .stack-card {
    position: static;
    margin-bottom: var(--space-16) !important;
  }

  .stack-card.is-behind {
    transform: none;
    opacity: 1;
  }

  .scrolly-visual {
    position: static;
  }

  .scrolly-step {
    min-height: 0;
  }

  .lead-status {
    opacity: 1;
  }

  .btn-primary:hover,
  .btn-primary:focus-visible {
    transform: none;
  }
}

/* 10. Print ------------------------------------------------------------------ */
@media print {
  body::before,
  .avail,
  .menu-toggle,
  .progress-rail,
  .hero-stack,
  .scrolly-visual,
  .lead-form-wrap {
    display: none !important;
  }

  body {
    background: none;
    color: #131516;
  }

  .site-header {
    position: static;
  }

  .stack-card,
  .scrolly-step {
    position: static;
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: var(--space-16) !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
