/*
  Pfrommer — "Wer wir sind und was wir tun" — Styles
  (c) 2026 [Dein Name / Deine Firma]. Alle Rechte vorbehalten.
  Fremdkomponenten unter ihren jeweiligen Lizenzen — siehe readme.txt.
*/
:root {
    --mn-bg: #070b12;
    --mn-text: #ffffff;
    --mn-accent: #1a71d7;
    --mn-emergency: #19e896;
  }
  html, body {
    margin: 0;
    padding: 0;
    background: var(--mn-bg);
    color: var(--mn-text);
    font-family: var(--font-body, 'Inter', 'Helvetica Neue', sans-serif);
    overflow-x: hidden;
  }
  /* Gesamter Scrollweg der Story. Größer = langsameres, ruhigeres
     Durchscrollen; kleiner = schneller. Einziger Hebel fürs Tempo. */
  .scroll-stage { height: 1100vh; }

  #stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    will-change: filter;
  }
  #stage canvas { display: block; }

  .vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
  }

  /* Hero wordmark — the company name as display text over the living world */
  #hero-title {
    position: fixed;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    color: #fff;
    text-shadow: 0 2px 30px rgba(7, 11, 18, 0.65);
  }
  #hero-title .hero-main {
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-weight: 600;
    font-size: clamp(3.2rem, 9vw, 7.5rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
  }
  #hero-title .hero-sub {
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-weight: 400;
    font-size: clamp(1.1rem, 2.6vw, 2.1rem);
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-top: 0.9rem;
    padding-left: 0.34em; /* optically balance the tracking */
  }

  .caption {
    position: fixed;
    left: 4vw;
    bottom: 12vh;
    z-index: 5;
    max-width: 30rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    text-shadow: 0 1px 18px rgba(7, 11, 18, 0.6);
  }
  .caption .kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.75rem;
  }
  .caption h2 {
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-weight: 500;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
  }
  .caption p {
    margin: 0.875rem 0 0;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.75);
    max-width: 26rem;
  }

  #cap-blackout {
    left: 50%;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: none;
  }
  #cap-blackout h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: rgba(255,255,255,0.85);
  }

  #final-scrim {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background: radial-gradient(ellipse 90% 75% at center,
      rgba(0,0,0,0.78) 0%,
      rgba(0,0,0,0.6) 45%,
      rgba(0,0,0,0.25) 80%,
      rgba(0,0,0,0) 100%);
  }

  #final-overlay {
    position: fixed;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 6vw;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  #final-overlay.active { pointer-events: auto; }
  #final-overlay h1 {
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-weight: 500;
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0 0 1.5rem;
    max-width: 22ch;
    text-wrap: balance;
  }
  #final-overlay .sub {
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    color: rgba(255,255,255,0.65);
    margin: 0 0 2.5rem;
  }
  #final-overlay .sub strong {
    color: rgba(255,255,255,0.92);
    font-weight: 600;
  }
  .final-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }
  .btn-primary, .btn-secondary {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 6px;
    padding: 0.625rem 1.5rem;
    cursor: pointer;
    transition: all 200ms ease-in-out;
  }
  .btn-primary {
    background: var(--mn-accent);
    border: 1px solid var(--mn-accent);
    color: white;
  }
  .btn-primary:hover { background: #145aac; border-color: #145aac; }
  .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    backdrop-filter: blur(10px);
  }
  .btn-secondary:hover { background: rgba(255,255,255,0.1); }

  #scroll-hint {
    position: fixed;
    bottom: 2.5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    pointer-events: none;
  }
  #scroll-hint .line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: hint-pulse 2s ease-in-out infinite;
  }
  @keyframes hint-pulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.55); opacity: 0.4; }
  }

  #progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    z-index: 20;
    transform-origin: 0 0;
    transform: scaleX(0);
    background: var(--mn-accent);
  }

  @media (prefers-reduced-motion: reduce) {
    #scroll-hint .line { animation: none; }
  }
