/* ==========================================================================
   Hauptdomain – Launch-Seite zum SiP
   Fotos vom letzten SiP liegen verstreut um den Titel. Beim Scrollen fliegen
   sie in die Mitte und werden zum Stapel, das oberste Foto öffnet sich auf
   den ganzen Bildschirm, darauf steht die Anmeldung.
   Bewegung: launch.js (setzt nur transform, Größe und Deckkraft).
   Ohne JavaScript oder mit „weniger Bewegung“: ruhige Seite mit denselben
   Inhalten (Abschnitt „Ruhig“ unten).
   Farben und Schriften aus web.css (LSV-Branding).
   ========================================================================== */

body.launch {
  margin: 0; background: var(--nebel); color: var(--tanne);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.launch :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ------------------------------------------------ Kopf */
.top { position: fixed; z-index: 20; top: 0; left: 0; padding: clamp(18px, 2.6vw, 34px) clamp(20px, 4vw, 56px); }
.top__mark { position: relative; display: block; width: clamp(78px, 7vw, 108px); }
.top__mark img { display: block; width: 100%; height: auto; transition: opacity .3s; }
.top__light { position: absolute; inset: 0; opacity: 0; }
.is-dark .top__dark { opacity: 0; }
.is-dark .top__light { opacity: 1; }

/* ------------------------------------------------ Titel */
.intro__title { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 900; color: var(--tanne); }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.intro__big {                                        /* „SiP“ – der Name, wie er geschrieben wird */
  display: block; font-size: clamp(7.5rem, 19vw, 21rem); line-height: .8; letter-spacing: -.045em; perspective: 600px;
}
.intro__big span { display: inline-block; transform-origin: 50% 100%; }
.intro__sub {
  display: block; margin-top: .55em; font-size: clamp(1.05rem, 2.1vw, 2rem); line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase;
}
.intro__when { max-width: min(26em, 15.5em + 20vw); margin: .7em auto 0; text-wrap: balance; font-size: clamp(1rem, 1.25vw, 1.25rem); font-weight: 600; color: var(--panther); }

/* ------------------------------------------------ Fotos */
.card { margin: 0; overflow: hidden; background: var(--soft); }
.card img, .reveal__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------ Anmeldung auf dem großen Foto */
.reveal__frame { overflow: hidden; background: var(--tief); }
.reveal__photo { margin: 0; width: 100%; height: 100%; }
.reveal__veil { position: absolute; inset: 0; background: var(--tief); opacity: .56; }
.reveal__text { color: var(--weiss); }
.reveal__text a:not(.btn) { color: var(--weiss); font-weight: 700; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.reveal__title {
  margin: 0 0 .45em; max-width: 11ch; font-family: var(--display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 7.25rem); line-height: .9; letter-spacing: -.035em; text-transform: uppercase;
}
.pitch__facts { margin: 0; font-size: clamp(1.0625rem, 1.4vw, 1.375rem); line-height: 1.45; }
.pitch__facts strong { font-weight: 800; }
.pitch__note { margin: .6em 0 0; font-size: 1rem; color: rgba(255, 255, 255, .82); }
.pitch__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(22px, 3.2vh, 36px); }

.hint { margin: 0; font-size: .875rem; font-weight: 700; color: var(--panther); }

/* ------------------------------------------------ Infos unter der Animation (Stil aus web.css) */
.launch .info { position: relative; z-index: 1; background: var(--nebel); }
.launch .info a { color: var(--tanne); text-underline-offset: 3px; }

/* ------------------------------------------------ Fuß */
.legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 22px clamp(20px, 4vw, 56px) 28px; font-size: .8125rem; color: rgba(255, 255, 255, .72); background: var(--tief);
}
.legal p { margin: 0; }
.legal nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal a { color: var(--weiss); text-underline-offset: 3px; }

/* Übergang beim Klick auf „Jetzt anmelden“: tiefgrün wie die Seitenleiste des Formulars */
.leave {
  position: fixed; inset: 0; z-index: 50; background: var(--tief); pointer-events: none;   /* = Seitenleiste des Formulars */
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .42s cubic-bezier(.7, 0, .2, 1);
}
.is-leaving .leave { transform: none; }

/* ==========================================================================
   Bewegt (JavaScript an, keine Einstellung „weniger Bewegung“)
   ========================================================================== */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .scene { position: relative; height: 340vh; }
  .scene__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

  .intro {
    position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0 20px; text-align: center; will-change: transform, opacity; pointer-events: none;
  }
  .intro__big span, .intro__sub, .intro__when { will-change: transform, opacity; }
  .pile { position: absolute; inset: 0; z-index: 2; perspective: 1400px; pointer-events: none; }
  .card { position: absolute; left: 50%; top: 50%; width: 200px; height: 250px; will-change: transform; backface-visibility: hidden; }

  .reveal { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
  .reveal__frame { position: absolute; inset: 0; will-change: transform; backface-visibility: hidden; }
  .reveal__photo img { will-change: transform; }
  .reveal__veil { opacity: 0; }
  .reveal__text {
    position: absolute; left: 0; bottom: 0; box-sizing: border-box; width: min(100%, 900px);
    padding: 0 clamp(20px, 4vw, 56px) clamp(28px, 7vh, 72px);
  }
  .reveal__text > * { opacity: 0; will-change: transform, opacity; }
  .is-open .reveal { pointer-events: auto; }

  .hint {
    position: absolute; left: 0; right: 0; bottom: clamp(18px, 4vh, 36px); z-index: 4; text-align: center; pointer-events: none;
    animation: hint 1.8s 3.4s ease-in-out infinite both;
  }
  .hint::after { content: ""; display: block; width: 1.5px; height: 28px; margin: 8px auto 0; background: currentColor; }

  /* bis launch.js den ersten Stand gesetzt hat: nichts zeigen, was gleich springt */
  html:not(.ready) .pile, html:not(.ready) .intro, html:not(.ready) .hint { visibility: hidden; }
  /* Sicherheitsnetz: lädt launch.js nicht, steht die Anmeldung nach kurzer Zeit trotzdem da */
  html:not(.ready) .scene { height: auto; }
  html:not(.ready) .reveal { pointer-events: auto; }
  html:not(.ready) .reveal__frame, html:not(.ready) .reveal__text > * { opacity: 0; animation: failsafe .3s 2.5s both; }
  html:not(.ready) .reveal__veil { opacity: .56; }
}
@keyframes failsafe { to { opacity: 1; } }
@keyframes hint { 0%, 100% { transform: none; } 50% { transform: translateY(6px); } }

/* ==========================================================================
   Ruhig (ohne JavaScript oder mit „weniger Bewegung“): dieselben Inhalte
   ========================================================================== */
@media (scripting: none), (prefers-reduced-motion: reduce) {
  .top { position: absolute; }                       /* Logo bleibt oben auf dem hellen Teil */
  .intro { padding: clamp(110px, 16vh, 170px) clamp(20px, 4vw, 56px) 40px; }
  .pile {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
    padding: 0 clamp(20px, 4vw, 56px) 40px;
  }
  .card { aspect-ratio: 4 / 3; }
  .reveal { position: relative; min-height: 88vh; display: flex; align-items: flex-end; }
  .reveal__frame { position: absolute; inset: 0; }
  .reveal__text { position: relative; padding: 120px clamp(20px, 4vw, 56px) clamp(32px, 7vh, 72px); max-width: 900px; }
  .hint { display: none; }
}
