/* root alpha – Landing Page */

:root {
  --bg: #fafafa;
  --fg: #1d1d1b;          /* Farbe des Logos */
  --muted: #6f6f6b;
  --line: #e3e3df;
  --bg-inverted: #050504; /* = invert(var(--bg)), für den Bereich außerhalb der Seite */
  --invert-duration: 430ms;                         /* Dauer der zweiten Drehung im Logo */
  --invert-ease: cubic-bezier(.65, 0, .35, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  transition: background-color var(--invert-duration) var(--invert-ease);
}
html.inverted { background: var(--bg-inverted); }
html.no-transition, html.no-transition .page { transition: none; }

body {
  margin: 0;
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Die gesamte Seite wird per Filter invertiert – Logo inklusive. */
.page {
  min-height: 100svh;
  background: var(--bg);
  transition: filter var(--invert-duration) var(--invert-ease);
}
html.inverted .page { filter: invert(1); }

/* ---------------------------------------------------------------- Hero */

/* Bleibt beim Scrollen stehen; --p (0…1) kommt aus landing.js und steuert,
   wie stark das Logo blurt und in den Hintergrund verblasst. */
.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 0 24px;
  filter: blur(calc(var(--p, 0) * 16px));
  opacity: calc(1 - var(--p, 0) * 0.88);
  will-change: filter, opacity;
}

#logo {
  display: block;
  width: min(78vw, 760px);
  aspect-ratio: 1000 / 190; /* Artboard-Maße der Animation */
}

/* Scroll-Hinweis: blendet nach der Logo-Animation ein. */
.scroll-hint {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% * 2 / 3 - 0.5em); /* auf zwei Drittel der Hero-Höhe zentriert */
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-indent: .32em; /* gleicht das letzte Spacing aus, damit der Text mittig sitzt */
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  opacity: 0;
}
.scroll-hint.is-visible {
  animation: hint-in 900ms ease-out forwards;
}
@keyframes hint-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* „DOWN" taumelt langsam nach unten, verschwindet und fällt von oben erneut. */
.scroll-hint .word-down {
  display: inline-block;
  will-change: transform, opacity;
}
.scroll-hint.is-visible .word-down {
  animation: word-fall 3.6s linear infinite;
}
@keyframes word-fall {
  0%   { transform: translateY(-1.4em) rotate(-8deg); opacity: 0; }
  20%  { transform: translateY(-0.7em) rotate(5deg);  opacity: 1; }
  50%  { transform: translateY(0)      rotate(-4deg); }
  80%  { transform: translateY(0.8em)  rotate(7deg);  opacity: 1; }
  100% { transform: translateY(1.6em)  rotate(-3deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint.is-visible,
  .scroll-hint.is-visible .word-down { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------- Inhalt */

/* Liegt über dem Hero und schiebt sich beim Scrollen darüber. */
.content {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.info {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px 64px;
}

/* Datenschutz: eine Spalte, lesefreundliche Zeilenlänge */
.info.privacy {
  grid-template-columns: 1fr;
  padding-top: 0;
}
.info.privacy > div { max-width: 72ch; }
.info.privacy p { font-size: 14px; line-height: 1.6; }

.info h2 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.info p { margin: 0 0 14px; }
.info p:last-child { margin-bottom: 0; }
.info strong { font-weight: 600; }
.info small { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; }

.info a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.info a:hover { text-decoration-color: currentColor; }

/* -------------------------------------------------------------- Footer */

.footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

@media (max-width: 600px) {
  #logo { width: 86vw; }
  .info { gap: 36px; }
}
