/* ============================================================
   Welle – Landingpage
   Design-System 1:1 aus SPEC §5 ("2 Uhr nachts am Meer")
   ============================================================ */

:root {
  --abyss:  #0B1626;  /* Hintergrund */
  --deep:   #12233B;  /* Flächen, Wellenkörper */
  --foam:   #E8F0EE;  /* Primärtext */
  --mist:   #7C93A6;  /* Sekundärtext */
  --ember:  #F2A65A;  /* DER eine Akzent – sparsam */
  --signal: #D96C6C;  /* nur Hilfe/Notfall */

  --maxw: 760px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }

/* Display / Ziffern */
.wordmark, h1, h2, .badge__store, .timer-demo__digit, .footer__mark {
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.01em;
}

.accent { color: var(--ember); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  /* leichter vertikaler Verlauf, oben minimal wärmer */
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(242,166,90,0.06), transparent 60%),
    linear-gradient(180deg, var(--deep) 0%, var(--abyss) 55%);
  overflow: hidden;
}

.nav {
  position: relative;
  z-index: 3;
  padding: 28px 4px;
}

.wordmark {
  font-size: 22px;
  font-weight: 600;
  color: var(--foam);
}

.hero__content {
  position: relative;
  z-index: 3;
  margin: auto;
  max-width: var(--maxw);
  padding-bottom: 12vh;
  text-align: center;
}

.hero__headline {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 24px;
}

.hero__sub {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--mist);
  max-width: 44ch;
  margin: 0 auto 40px;
}

/* ============ STORE-BADGES ============ */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 168px;
  padding: 12px 22px;
  border: 1px solid rgba(232,240,238,0.16);
  border-radius: 14px;
  background: rgba(232,240,238,0.03);
  text-decoration: none;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}

.badge__eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.badge__store {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--foam);
}

/* "Bald verfügbar"-Zustand: gedämpft, nicht klickbar */
.badges[data-state="soon"] .badge {
  cursor: default;
  opacity: 0.65;
}

/* Live-Zustand: aktiv, Ember-Highlight für die erkannte Plattform */
.badges[data-state="live"] .badge {
  cursor: pointer;
  opacity: 1;
}
.badges[data-state="live"] .badge:hover {
  border-color: rgba(242,166,90,0.5);
  background: rgba(242,166,90,0.06);
  transform: translateY(-2px);
}
.badge.badge--primary {
  border-color: var(--ember);
  background: rgba(242,166,90,0.10);
}
.badge.badge--primary .badge__store { color: var(--ember); }

.hero__soon {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--mist);
}
.badges[data-state="live"] ~ .hero__soon { display: none; }

.notify {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(242,166,90,0.35);
  padding-bottom: 1px;
  transition: border-color .2s var(--ease);
  white-space: nowrap;
}
.notify:hover { border-color: var(--ember); }

.closing__soon { margin-top: 24px; }

/* ============ OCEAN / WELLEN-ANIMATION ============ */
.ocean {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46vh;
  min-height: 260px;
  z-index: 1;
  pointer-events: none;
}

.ocean__svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.wave path { will-change: transform; }

/* zwei getilte Kopien driften nahtlos nach links */
.wave--back  { animation: drift 26s linear infinite; }
.wave--front { animation: drift 18s linear infinite; }

.wave__crest { filter: drop-shadow(0 0 6px rgba(242,166,90,0.45)); }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-1440px); }
}

/* sanftes vertikales Heben des ganzen Ozeans */
.ocean__svg { animation: swell 9s ease-in-out infinite; }
@keyframes swell {
  0%, 100% { transform: translateY(6px); }
  50%      { transform: translateY(-6px); }
}

/* ============ SECTIONS ============ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 12vh, 130px) 24px;
}

.section__eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 18px;
}

.section__title {
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 22px;
}

.section__body {
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  color: var(--mist);
  max-width: 52ch;
  margin: 0;
}

/* dünne Trennlinie zwischen Sektionen */
.section + .section { border-top: 1px solid rgba(124,147,166,0.12); }

/* ---- Split-Sektion (Text + Timer-Demo) ---- */
.section--split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.split__text { min-width: 0; }

.timer-demo {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 340px;
  margin: 0 auto;
  border-radius: 26px;
  border: 1px solid rgba(232,240,238,0.12);
  background: linear-gradient(180deg, var(--deep), var(--abyss));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timer-demo__water {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(18,35,59,0.95), rgba(11,22,38,0.95));
  animation: sink 6s ease-in-out infinite alternate;
}
/* geschwungene Wasseroberflaeche mit Ember-Kamm, driftet sanft seitlich */
.timer-demo__water::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='24'%20viewBox='0%200%20120%2024'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,12%20C40,2%2080,22%20120,12%20L120,24%20L0,24%20Z'%20fill='%2312233B'/%3E%3Cpath%20d='M0,12%20C40,2%2080,22%20120,12'%20fill='none'%20stroke='%23F2A65A'%20stroke-opacity='0.55'%20stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120px 16px;
  filter: drop-shadow(0 -1px 8px rgba(242,166,90,0.25));
  animation: demoDrift 9s linear infinite;
}
@keyframes demoDrift {
  from { background-position-x: 0; }
  to   { background-position-x: -120px; }
}
@keyframes sink {
  from { height: 60%; }
  to   { height: 30%; }
}
.timer-demo__digit {
  position: relative;
  z-index: 2;
  font-size: 2.6rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--foam);
  opacity: 0.92;
}

/* ---- Privacy-Sektion: dezent hervorgehoben ---- */
.section--privacy .section__title { color: var(--foam); }
.section--privacy {
  background:
    radial-gradient(80% 60% at 20% 0%, rgba(242,166,90,0.05), transparent 70%);
  border-radius: 0;
}

/* ---- Closing ---- */
.section--closing {
  text-align: center;
  padding-top: clamp(80px, 14vh, 150px);
  padding-bottom: clamp(80px, 14vh, 150px);
}
.closing__title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 40px;
}
.section--closing .badges { justify-content: center; }

/* ============ FOOTER ============ */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 72px;
  border-top: 1px solid rgba(124,147,166,0.12);
  text-align: center;
  color: var(--mist);
}
.footer__mark {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foam);
  margin-bottom: 18px;
}
.footer__links {
  display: flex;
  gap: 26px;
  justify-content: center;
  margin-bottom: 26px;
}
.footer__links a {
  font-size: 0.95rem;
  color: var(--mist);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer__links a:hover { color: var(--foam); }
.footer__note {
  font-size: 0.85rem;
  max-width: 46ch;
  margin: 0 auto 18px;
  line-height: 1.7;
}
.footer__note a { color: var(--mist); }
.footer__note a:hover { color: var(--signal); }
.footer__copy { font-size: 0.82rem; margin: 0; opacity: 0.7; }

/* ============ RESPONSIVE ============ */
@media (max-width: 680px) {
  .section--split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .timer-demo { max-height: 300px; }
  .badge { min-width: 150px; flex: 1; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave--back, .wave--front, .ocean__svg,
  .timer-demo__water {
    animation: none !important;
  }
  .badge { transition: none; }
}

/* ============ CONTENT-BODY (Impressum/Datenschutz) ============ */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}
.legal a.back {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--ember);
  text-decoration: none;
  font-size: 0.95rem;
}
.legal h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 600;
  margin: 0 0 32px;
}
.legal h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--foam);
}
.legal p, .legal address {
  color: var(--mist);
  font-style: normal;
  margin: 0 0 14px;
}
.legal .todo {
  color: var(--signal);
  border-left: 2px solid var(--signal);
  padding-left: 14px;
}
