/* ========== Landing-Page Grid (Desktop) ========== */

/* Tokens.css setzt html/body overflow-x:hidden — das macht body zum Sticky-
 * Containing-Block und bricht .landing-form-col-Sticky. Auf Landing-Seiten:
 * overflow-x:clip statt hidden (verhindert horizontale Scrollbar, killt aber
 * NICHT die Sticky-Reference auf den Viewport). */
html:has(.landing-grid),
body:has(.landing-grid) {
  overflow-x: clip;
}

.landing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.landing-scroll {
  padding: var(--space-6) clamp(48px, 5vw, 96px) var(--space-6) var(--space-6);
  overflow: visible;
}

/* Grid-Spalte selbst ist sticky-Host. height:100vh + align-self:start verhindert Grid-Stretch
 * und sorgt für stabilen Sticky-Reference. Flex zentriert die Form-Card vertikal. */
.landing-form-col {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: linear-gradient(
    180deg,
    rgba(118, 146, 90, 0.08) 0%,
    rgba(118, 146, 90, 0.14) 50%,
    rgba(118, 146, 90, 0.08) 100%
  );
  backdrop-filter: blur(8px);
  border-left: 1px solid rgba(118, 146, 90, 0.25);
  z-index: 2;
}

@media (prefers-color-scheme: dark) {
  .landing-form-col {
    background: linear-gradient(
      180deg,
      rgba(164, 190, 136, 0.08) 0%,
      rgba(164, 190, 136, 0.14) 50%,
      rgba(164, 190, 136, 0.08) 100%
    );
    border-left-color: rgba(164, 190, 136, 0.22);
  }
}

.landing-form-card {
  width: 100%;
  max-width: clamp(380px, 28vw, 460px);
  padding: var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow:
    0 16px 48px rgba(28, 25, 23, 0.12),
    0 2px 8px rgba(118, 146, 90, 0.12);
}

@media (prefers-color-scheme: dark) {
  .landing-form-card {
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(164, 190, 136, 0.06);
  }
}

/* Story-Sections */
.story-section {
  min-height: 60vh;
  padding: var(--space-5) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: clamp(580px, 60vw, 880px);
}

.story-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
}

.story-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.96;
  margin: 0 0 var(--space-3);
  color: var(--text);
  letter-spacing: -0.02em;
}

.story-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 var(--space-3);
}

.story-tagline {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 var(--space-5);
  max-width: 420px;
  line-height: 1.5;
}

.story-body {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.story-scroll-hint {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: var(--space-6) 0 0;
  opacity: 0.7;
}

.landing-footer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.landing-footer p {
  margin: 0 0 var(--space-2);
}

.landing-footer-nav {
  display: flex;
  gap: var(--space-3);
}

.landing-footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.landing-footer-nav a:hover {
  text-decoration: underline;
}

/* ========== Reptile-BG-Layer ========== */
.reptile-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.reptile-svg {
  position: absolute;
  top: 55%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 700ms ease;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: -1;
}

.reptile-svg[data-tier="gecko"]         { background-image: url(/vendor/svg/reptiles/gecko.svg); }
.reptile-svg[data-tier="crested-gecko"] { background-image: url(/vendor/svg/reptiles/crested-gecko.svg); }
.reptile-svg[data-tier="snake"]         { background-image: url(/vendor/svg/reptiles/snake.svg); }
.reptile-svg[data-tier="corn-snake"]    { background-image: url(/vendor/svg/reptiles/corn-snake.svg); }
.reptile-svg[data-tier="beardie"]       { background-image: url(/vendor/svg/reptiles/beardie.svg); }
.reptile-svg[data-tier="frog"]          { background-image: url(/vendor/svg/reptiles/frog.svg); }
.reptile-svg[data-tier="skink"]         { background-image: url(/vendor/svg/reptiles/skink.svg); }

.reptile-svg.active {
  opacity: var(--reptile-opacity, 0.08);
  transition: opacity 600ms ease;
}

@media (prefers-color-scheme: dark) {
  .reptile-svg.active { opacity: var(--reptile-opacity, 0.12); }
}

@media (prefers-reduced-motion: reduce) {
  .reptile-svg { transition: none; }
}

/* ========== Form-Tabs ========== */
.form-tabs {
  display: flex;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  border-bottom: 1px solid var(--border);
}

.form-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: var(--space-2) 0;
  margin-right: var(--space-3);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -1px;
}

.form-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--space-3);
}

.form-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-row input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px);
  font-family: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 150ms;
}

.form-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 90, 120, 80), 0.12);
}

.form-hint {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

.form-row-consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}
.form-row-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: auto;
  padding: 0;
}
.form-row-consent span {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-row-consent a {
  color: var(--accent);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  margin-top: var(--space-2);
}

.form-foot {
  margin-top: var(--space-3);
  text-align: center;
  font-size: 13px;
}

.form-foot a {
  color: var(--text-muted);
  text-decoration: none;
}

.form-foot a:hover {
  text-decoration: underline;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none;
}

.turnstile-slot {
  margin: var(--space-3) 0;
  min-height: 65px;
}

.turnstile-slot:empty {
  min-height: 0;
  margin: 0;
}

.landing-error-msg {
  color: var(--error, #c0392b);
  font-size: 13px;
  margin-top: var(--space-2);
  min-height: 20px;
}

/* Flow-A-Hinweis (Verify-Lifecycle-Plan Task 3): Register-Erfolgsmeldung im selben
   Status-Element wie Fehler — nur success-eingefärbt statt rot. */
.landing-error-msg.landing-success-msg {
  color: var(--success, #6f8b56);
}

/* ========== Mobile (<880px) ========== */
.mobile-feature-chips { display: none; }
.mobile-expand-trigger { display: none; }

@media (max-width: 880px) {
  /* Grid auf 1-spaltig, Form & Hero stacken */
  .landing-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    overflow-x: hidden;
  }

  .landing-scroll {
    padding: var(--space-4) var(--space-3) 0;
    order: 2;
    /* Default versteckt — wird durch .landing-expanded sichtbar */
    display: none;
  }

  .landing-form-col {
    /* Mobile: Sticky/100vh-Setup aus Desktop zurücknehmen */
    position: static;
    top: auto;
    align-self: auto;
    height: auto;
    display: block;
    order: 1;
    background: transparent;
    backdrop-filter: none;
    border-left: none;
    padding: var(--space-3);
    overflow-x: hidden;
  }

  .landing-form-card {
    position: relative;
    top: auto;
    transform: none;
    margin: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 6px 20px rgba(28, 25, 23, 0.06);
  }

  .landing-form-card input,
  .landing-form-card button {
    box-sizing: border-box;
    max-width: 100%;
  }

  /* Hero-Card auf Mobile statt Long-Scroll */
  .landing-form-col::before {
    content: 'Breeder-Hub';
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    margin: 0 0 var(--space-2);
    color: var(--text);
    background-image: url(/vendor/svg/reptiles/gecko.svg);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 60px 60px;
    padding: var(--space-4) 60px var(--space-1) 0;
    line-height: 1.05;
  }

  .landing-form-col::after {
    content: 'Multi-Species-Tracking \00B7 Stammbaum \00B7 Compliance';
    display: block;
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 0 0 var(--space-3);
  }

  /* Feature-Chips als horizontale Scroll-Liste */
  .mobile-feature-chips {
    display: block;
    order: 3;
    padding: var(--space-3) 0 var(--space-4);
    overflow-x: hidden;
  }

  .mobile-feature-chips ul {
    list-style: none;
    margin: 0;
    padding: 0 var(--space-3);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-feature-chips ul::-webkit-scrollbar { display: none; }

  .mobile-feature-chips li {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text);
  }

  .mobile-feature-chips .chip-icon { font-size: 14px; }

  .mobile-expand-trigger {
    display: block;
    margin: var(--space-3) var(--space-3);
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 13.5px;
    cursor: pointer;
  }

  /* Expanded-State: Long-Scroll sichtbar */
  body.landing-expanded .landing-scroll { display: block; }
  body.landing-expanded .mobile-expand-trigger { display: none; }

  /* Story-Sections auf Mobile schmaler */
  .story-section {
    min-height: auto;
    padding: var(--space-4) 0;
  }

  .story-headline { font-size: 40px; line-height: 1; }
  .story-title { font-size: 24px; }
  .story-tagline, .story-body { font-size: 14.5px; }

  /* Reptile-BG dezent auf Mobile (statisch, kein Parallax) */
  .reptile-bg-layer { display: none; }

  /* ===== Phase 10 T6: Mobile-Polish ===== */
  /* Hero-Pedigree-SVG ausblenden — Hero-Card bleibt schlank */
  .hero-pedigree { display: none; }

  /* §5 Egg-Pulse aus (battery-friendly) — nur eggIn behalten */
  .mockup-eggs.visible .egg {
    animation: eggIn 500ms ease-out forwards !important;
  }

  /* §6 Phone-Frame: einmaliger Self-Glow als »du nutzt es gerade«-Selbstreferenz */
  .mockup-phone.visible .phone-frame {
    animation: phoneSelfGlow 2200ms ease-out 800ms forwards;
  }
  @keyframes phoneSelfGlow {
    0%   { box-shadow: 0 12px 28px rgba(28, 25, 23, 0.18); }
    40%  { box-shadow: 0 12px 28px rgba(28, 25, 23, 0.18), 0 0 0 4px rgba(118, 146, 90, 0.35); }
    100% { box-shadow: 0 12px 28px rgba(28, 25, 23, 0.18); }
  }
}

/* ========== Phase 10: Hero-Geneticist ========== */
.story-hero .story-headline em.accent {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.hero-pedigree {
  position: relative;
  width: 100%;
  max-width: clamp(380px, 32vw, 520px);
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-3) var(--space-2);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(28, 25, 23, 0.06);
  opacity: 0;
  transition: opacity 300ms ease;
}
.hero-pedigree.visible { opacity: 1; }

.hero-pedigree-svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-node {
  opacity: 0;
  transform-origin: center;
  transform: scale(0);
}
.hero-pedigree.visible .hero-node {
  animation: heroNodePop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hero-pedigree.visible .hero-node-sire  { animation-delay: 200ms; }
.hero-pedigree.visible .hero-node-dam   { animation-delay: 320ms; }
.hero-pedigree.visible .hero-node-child { animation-delay: 440ms; }

@keyframes heroNodePop {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-edge {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
.hero-pedigree.visible .hero-edge {
  animation: heroEdgeDraw 1600ms ease-out 500ms forwards;
}
@keyframes heroEdgeDraw { to { stroke-dashoffset: 0; } }

.hero-pedigree.visible .hero-node-child {
  animation: heroNodePop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 440ms forwards,
             heroChildPulse 4s ease-in-out 2500ms infinite;
}
@keyframes heroChildPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.92; }
}

.hero-coi-pill {
  position: absolute;
  bottom: 18px;
  right: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-family: 'Fraunces', Georgia, serif;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 4px;
  opacity: 0;
  transform: translateY(8px);
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.08);
}
.hero-pedigree.visible .hero-coi-pill {
  animation: heroCoiFade 400ms ease-out 1700ms forwards;
}
@keyframes heroCoiFade {
  to { opacity: 1; transform: translateY(0); }
}
.hero-coi-label { font-size: 10px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-coi-value { font-weight: 500; font-variant-numeric: tabular-nums; }
.hero-coi-unit { color: var(--text-muted); font-size: 12px; }

/* Reduced-Motion: alle Animationen aus, Endzustand sofort */
@media (prefers-reduced-motion: reduce) {
  .hero-pedigree { opacity: 1; }
  .hero-node, .hero-coi-pill { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-edge { stroke-dashoffset: 0 !important; animation: none !important; }
}

/* ========== Phase 10: Section-Mockups ========== */
.section-mockup {
  max-width: clamp(420px, 45vw, 640px);
  margin: var(--space-3) 0 0;
  padding: var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px rgba(28, 25, 23, 0.04);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.section-mockup.visible { opacity: 1; transform: translateY(0); }
.mockup-caption {
  margin: var(--space-2) 0 0;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
}
.mockup-caption.mono { font-family: 'JetBrains Mono', Menlo, monospace; font-style: normal; font-size: 11px; }

/* §1 Sparkline */
.spark-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.mockup-sparkline.visible .spark-line {
  animation: sparkDraw 2000ms ease-out forwards;
}
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }

/* §2 Mini-Pedigree */
.mini-node { opacity: 0; transform-origin: center; transform: scale(0); }
.mini-edge { stroke-dasharray: 120; stroke-dashoffset: 120; }
.mockup-pedigree-mini.visible .mini-node-1 { animation: heroNodePop 500ms cubic-bezier(0.34,1.56,0.64,1) 0ms forwards; }
.mockup-pedigree-mini.visible .mini-node-2 { animation: heroNodePop 500ms cubic-bezier(0.34,1.56,0.64,1) 80ms forwards; }
.mockup-pedigree-mini.visible .mini-node-3 { animation: heroNodePop 500ms cubic-bezier(0.34,1.56,0.64,1) 160ms forwards; }
.mockup-pedigree-mini.visible .mini-edge   { animation: heroEdgeDraw 1200ms ease-out 240ms forwards; }

/* §3 Probability-Bars */
.mockup-bars { display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.bar-label { width: 110px; font-family: 'Fraunces', Georgia, serif; color: var(--text); }
.bar-track { flex: 1; height: 8px; background: var(--bg-elevated); border-radius: 99px; overflow: hidden; }
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, white) 100%);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  width: var(--target, 50%);
}
.mockup-bars.visible .bar-fill {
  animation: barGrow 1400ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.mockup-bars.visible .bar-row:nth-child(1) .bar-fill { animation-delay: 0ms; }
.mockup-bars.visible .bar-row:nth-child(2) .bar-fill { animation-delay: 200ms; }
.mockup-bars.visible .bar-row:nth-child(3) .bar-fill { animation-delay: 400ms; }
@keyframes barGrow { to { transform: scaleX(1); } }
.bar-value {
  width: 50px; text-align: right;
  font-family: 'Fraunces', Georgia, serif; font-variant-numeric: tabular-nums; color: var(--text-muted);
  font-size: 12.5px;
}

/* §4 PDF-Stack */
.mockup-pdf-stack { display: flex; gap: 10px; flex-wrap: wrap; }
.pdf-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 110px;
  opacity: 0;
  transform: translateY(16px);
}
.mockup-pdf-stack.visible .pdf-card {
  animation: pdfSlideIn 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.mockup-pdf-stack.visible .pdf-card:nth-child(1) { animation-delay: 0ms; }
.mockup-pdf-stack.visible .pdf-card:nth-child(2) { animation-delay: 150ms; }
.mockup-pdf-stack.visible .pdf-card:nth-child(3) { animation-delay: 300ms; }
@keyframes pdfSlideIn { to { opacity: 1; transform: translateY(0); } }
.pdf-pill {
  display: inline-block; padding: 2px 8px; border-radius: 99px;
  background: var(--accent); color: #fff; font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; font-family: 'Inter', sans-serif; font-weight: 600;
  align-self: flex-start;
}
.pdf-name { font-family: 'Fraunces', Georgia, serif; font-size: 13px; color: var(--text); }

/* §5 Eier + Temp-Sparkline */
.mockup-eggs .egg-row { display: flex; gap: 6px; font-size: 26px; }
.mockup-eggs .egg { opacity: 0; transform: translateY(8px); display: inline-block; }
.mockup-eggs.visible .egg { animation: eggIn 500ms ease-out forwards, eggPulse 4s ease-in-out 800ms infinite; }
.mockup-eggs.visible .egg:nth-child(1) { animation-delay: 0ms, 800ms; }
.mockup-eggs.visible .egg:nth-child(2) { animation-delay: 80ms, 1000ms; }
.mockup-eggs.visible .egg:nth-child(3) { animation-delay: 160ms, 1200ms; }
.mockup-eggs.visible .egg:nth-child(4) { animation-delay: 240ms, 1400ms; }
.mockup-eggs.visible .egg:nth-child(5) { animation-delay: 320ms, 1600ms; }
.mockup-eggs.visible .egg:nth-child(6) { animation-delay: 400ms, 1800ms; }
.mockup-eggs.visible .egg:nth-child(7) { animation-delay: 480ms, 2000ms; }
@keyframes eggIn { to { opacity: 1; transform: translateY(0); } }
@keyframes eggPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.temp-sparkline { width: 100%; max-width: 280px; height: 30px; margin-top: 8px; }
.temp-sparkline polyline { stroke-dasharray: 400; stroke-dashoffset: 400; }
.mockup-eggs.visible .temp-sparkline polyline { animation: sparkDraw 1600ms ease-out 600ms forwards; }

/* §6 Phone-Frame */
.phone-frame {
  width: 140px; height: 240px;
  background: #1c1917;
  border-radius: 20px;
  padding: 12px 8px 8px;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.18);
}
.phone-notch {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 6px; background: #000; border-radius: 99px;
}
.phone-screen {
  background: var(--bg-surface);
  border-radius: 12px;
  height: 100%;
  padding: 14px 8px 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.phone-card {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px;
  background: var(--bg-elevated);
  border-radius: 6px;
  font-size: 10px;
  font-family: 'Fraunces', Georgia, serif;
  color: var(--text);
  transition: background 600ms ease;
}
.phone-card-active { background: var(--accent); color: #fff; }
.phone-avatar {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: #fff; font-weight: 600;
  background: var(--accent);
}
.phone-avatar-f { background: #d97c3e; }
.phone-avatar-m { background: #3b82f6; }

.mockup-phone.visible .phone-card-active {
  animation: phoneTabSwitch 4s ease-in-out 500ms infinite;
}
@keyframes phoneTabSwitch {
  0%, 30% { background: var(--accent); color: #fff; }
  40%, 70% { background: var(--bg-elevated); color: var(--text); }
  80%, 100% { background: var(--accent); color: #fff; }
}

/* §7 QR-Code */
.mockup-qr { display: flex; align-items: center; gap: var(--space-3); }
.qr-box {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px;
  box-shadow:
    0 4px 12px rgba(28, 25, 23, 0.10),
    0 0 0 1px rgba(28, 25, 23, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: blur(8px);
  opacity: 0;
  transition: filter 800ms ease, opacity 400ms ease;
}
.mockup-qr.visible .qr-svg { filter: blur(0); opacity: 1; }

/* Im Dark-Mode bleibt der QR-Box weiss (QR braucht hellen BG zum scannen) —
 * Shadow wird wärmer für Kontrast gegen dunkles Card-BG. */
@media (prefers-color-scheme: dark) {
  .qr-box {
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

/* Reduced-Motion: Section-Mockups */
@media (prefers-reduced-motion: reduce) {
  .section-mockup, .section-mockup.visible { opacity: 1 !important; transform: none !important; }
  .section-mockup *, .section-mockup.visible * {
    animation: none !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* ========== Phase 10: Skribble-Notiz ========== */
.landing-skribble {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
  transform: rotate(-2deg);
  display: inline-block;
  margin: var(--space-5) 0 var(--space-3);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* ========== Phase 10: Footer-Stats-Counter ========== */
.landing-stats { font-size: 13px; color: var(--text-muted); margin: 0 0 var(--space-2); line-height: 1.5; }
.landing-stats strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ========== Phase 11: Stat-Spread (rechte Spalte) ========== */
.landing-form-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
}

.stat-spread {
  padding-top: var(--space-3);
}
.stat-meta {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
}
.stat-row {
  display: flex;
  gap: var(--space-4);
  justify-content: flex-start;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(48px, 4vw, 64px);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-lbl {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.species-spread {
  padding-bottom: var(--space-3);
}
.species-meta {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}
.species-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
}
.species-tag {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--text);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
}
.species-tag-more {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.landing-beta-note {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}

/* ========== Phase 10 T6: Mobile-Overrides (nach Phase-10-Desktop-Regeln — höhere Cascade-Position) ========== */
@media (max-width: 880px) {
  /* Section-Mockups schmaler (überschreibt .section-mockup max-width: 400px/360px) */
  .section-mockup { max-width: 280px; }

  /* Skribble-Notiz kleiner (überschreibt .landing-skribble font-size: 15px) */
  .landing-skribble { font-size: 13px; }
}

/* ========== Phase 11 T5: Mobile-Stat-Carousel ========== */
@media (max-width: 880px) {
  .landing-form-col {
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    position: static;   /* Sticky raus auf Mobile */
    align-self: auto;
    gap: var(--space-3);
    padding: var(--space-3);
  }

  .stat-spread {
    padding-top: 0;
  }
  .stat-row {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-2);
    gap: var(--space-3);
  }
  .stat-row::-webkit-scrollbar { display: none; }
  .stat-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 100px;
  }
  .stat-num {
    font-size: 36px;
  }

  .species-spread {
    padding-bottom: 0;
  }
  .species-tags {
    margin-bottom: var(--space-2);
  }
  .landing-beta-note {
    font-size: 11px;
    border-top: none;
    padding-top: 0;
    text-align: center;
  }
}

/* ========== Registration-Toggle: Geschlossen-Meldung + Warteliste ========== */
.landing-info-msg {
  padding: var(--space-3, 16px);
  border: 1px solid var(--border, #e7e5e0);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.landing-info-msg p { margin: 0 0 8px; }
.waitlist-row { display: flex; gap: 8px; margin: 12px 0 8px; }
.waitlist-row input { flex: 1; min-width: 0; }
.waitlist-hint { font-size: 12px; color: var(--text-muted, #78716c); }
.landing-status-msg { font-size: 13px; margin-top: 8px; min-height: 1em; }
