/* Voie Lactée – Landingpage. Kein JavaScript, keine externen Ressourcen. */

@font-face {
  font-family: "Sora";
  src: url("/fonts/sora.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Ersatzschriften mit angeglichenen Maßen, damit beim Nachladen nichts springt */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Sora Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 112%;
  ascent-override: 87%;
  descent-override: 26%;
  line-gap-override: 0%;
}

:root {
  --navy: #0b1320;
  --deep: #1e2a44;
  --ivory: #e8e1d4;
  --steel: #a7b4c6;
  --gold: #d4af7c;
  --line: rgba(167, 180, 198, 0.18);
  --deep-soft: rgba(30, 42, 68, 0.55);
  --radius: 14px;
  --gutter: 20px;
  --max: 1120px;
  --font-head: "Sora", "Sora Fallback", system-ui, sans-serif;
  --font-text: "Inter", "Inter Fallback", system-ui, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ivory);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--gold);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  font-weight: 600;
  /* Large display size: tighter lines than the other headings. */
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
}
h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ivory);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* Kopf */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ivory);
  white-space: nowrap;
}
.header-link {
  font-size: 0.95rem;
  color: var(--steel);
  text-decoration: none;
  padding: 10px 0;
}
.header-link:hover {
  color: var(--ivory);
}

/* Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}
/* Pressed: touch screens have no hover, so a tap needs its own answer. */
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--ivory);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--navy);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ivory);
}
.btn-ghost:hover {
  border-color: var(--steel);
  color: var(--ivory);
}

/* Hero */
.hero {
  padding: 56px 0 24px;
}
.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 20px;
}
.hero h1 {
  max-width: 13ch;
}
.lead {
  font-size: clamp(1.1rem, 3.6vw, 1.3rem);
  color: var(--ivory);
  max-width: 38rem;
  margin-top: 24px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hint {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--steel);
}
.hero-shot {
  margin: 48px 0 0;
}

.shot {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--deep);
}
figcaption {
  font-size: 0.875rem;
  color: var(--steel);
  margin-top: 12px;
}

/* Abschnitte */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 44rem;
  margin-bottom: 40px;
}
.section-head p {
  color: var(--steel);
  margin-top: 16px;
  font-size: 1.1rem;
}

/* Drei Schritte */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 48px;
}
.step {
  display: grid;
  gap: 20px;
}
.step-num {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.step h3 {
  margin-top: 6px;
  font-size: 1.4rem;
}
.step p {
  color: var(--steel);
  margin-top: 10px;
}
.step .shot {
  align-self: start;
}

/* Aha: three frames of the demo as a short silent loop (Freigabe → am Posten → grün). */
.aha {
  margin: 0 0 48px;
}
.aha-frames {
  position: relative;
  display: grid;
}
.aha-frame {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
}
.aha-frame-2 {
  animation: aha-2 9s ease-in-out infinite;
}
.aha-frame-3 {
  animation: aha-3 9s ease-in-out infinite;
}
@keyframes aha-2 {
  0%, 30% { opacity: 0; }
  36%, 94% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes aha-3 {
  0%, 63% { opacity: 0; }
  69%, 94% { opacity: 1; }
  100% { opacity: 0; }
}
/* The step that the picture shows right now. */
.aha-steps .step-num {
  transition: color 0.3s ease;
}
.aha-steps .step:nth-child(1) .step-num { animation: aha-step-1 9s step-end infinite; }
.aha-steps .step:nth-child(2) .step-num { animation: aha-step-2 9s step-end infinite; }
.aha-steps .step:nth-child(3) .step-num { animation: aha-step-3 9s step-end infinite; }
@keyframes aha-step-1 { 0% { color: var(--gold); } 33% { color: var(--steel); } 97% { color: var(--gold); } }
@keyframes aha-step-2 { 0% { color: var(--steel); } 33% { color: var(--gold); } 66% { color: var(--steel); } }
@keyframes aha-step-3 { 0% { color: var(--steel); } 66% { color: var(--gold); } 97% { color: var(--steel); } }
.aha-steps {
  gap: 28px;
}
@media (min-width: 760px) {
  .aha-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .aha-steps .step {
    display: block;
  }
}
/* Reduced motion: one still frame, the moment the change arrives at the station. */
@media (prefers-reduced-motion: reduce) {
  .aha-frame-2 {
    animation: none;
    opacity: 1;
  }
  .aha-frame-3 {
    animation: none;
    opacity: 0;
  }
  .aha-steps .step-num {
    animation: none !important;
    color: var(--gold);
  }
  .btn,
  .btn:active {
    transition: none;
    transform: none;
  }
}

/* Für wen */
.split {
  display: grid;
  gap: 24px;
}
.card {
  background: var(--deep-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.card h3 {
  margin-bottom: 16px;
}
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.list li {
  padding-left: 22px;
  position: relative;
  color: var(--steel);
}
.list li strong {
  color: var(--ivory);
  font-weight: 600;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--steel);
}
.list-not li::before {
  width: 10px;
  top: 0.75em;
}
.note {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--steel);
}

/* Datenhoheit */
.facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  background: var(--navy);
  padding: 28px 24px;
}
.fact h3 {
  margin-bottom: 8px;
}
.fact p {
  color: var(--steel);
}

/* Formular */
.cta h2 {
  max-width: 16ch;
}
form {
  display: grid;
  gap: 20px;
  max-width: 40rem;
}
.field {
  display: grid;
  gap: 8px;
}
label {
  font-weight: 500;
}
.optional {
  color: var(--steel);
  font-weight: 400;
  font-size: 0.9rem;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--font-text);
  color: var(--ivory);
  background: var(--deep);
  border: 1px solid rgba(167, 180, 198, 0.45);
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 52px;
}
textarea {
  min-height: 132px;
  resize: vertical;
}
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: transparent;
}
.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-weight: 400;
  color: var(--steel);
  font-size: 0.95rem;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}
.check a {
  color: var(--ivory);
}
/* Honigtopf: für Menschen unsichtbar, Bots füllen es aus */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot {
  font-size: 0.875rem;
  color: var(--steel);
}

/* Einfache Seiten (Danke, Fehler, Rechtliches) */
.page {
  padding: 56px 0 80px;
}
.page h1 {
  font-size: clamp(2rem, 7vw, 3.2rem);
  max-width: 18ch;
}
.page .lead {
  margin-top: 20px;
}
.prose {
  max-width: 44rem;
}
.prose h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
}
.prose h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}
.prose p,
.prose ul {
  color: var(--steel);
  margin: 0 0 12px;
}
.prose ul {
  padding-left: 20px;
}
.prose strong {
  color: var(--ivory);
  font-weight: 600;
}
.placeholder {
  color: var(--gold);
}

/* Fuß */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 0.9rem;
  color: var(--steel);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  gap: 24px;
}
.site-footer a {
  color: var(--steel);
  display: inline-block;
  padding: 8px 0;
}
.site-footer a:hover {
  color: var(--ivory);
}

/* Größere Bildschirme */
@media (min-width: 760px) {
  :root {
    --gutter: 32px;
  }
  .hero {
    padding: 96px 0 32px;
  }
  .section {
    padding: 104px 0;
  }
  .step {
    grid-template-columns: 1fr 1.25fr;
    gap: 48px;
    align-items: center;
  }
  .step:nth-child(even) {
    grid-template-columns: 1.25fr 1fr;
  }
  .step:nth-child(even) .step-text {
    order: 2;
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .card,
  .fact {
    padding: 36px 32px;
  }
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
@media (max-width: 759px) {
  .form-row {
    display: grid;
    gap: 20px;
  }
  .actions .btn {
    width: 100%;
  }
}
