/* Ryderz · Warteliste — dieselben Werte wie die App (theme.js). */
:root {
  --grund: #07070A;
  --flaeche: #111117;
  --karte: #17171C;
  --rand: rgba(255, 255, 255, 0.10);
  --text: #F5F5F7;
  --text-2: #B4B4BE;
  --text-3: #8C8C97;
  --akzent: #45EFD4;
  --akzent-hell: #79FCF3;
  --akzent-dunkel: #34CDAA;
  --gefahr: #FF5A5F;
  --ui: 'Manrope', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--grund);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
/* Ein ruhiger Schein oben, wie hinter dem Radar in der App. */
body::before {
  content: '';
  position: fixed;
  /* Genau Bildschirmbreite: ragte er seitlich hinaus, liess Safari auf dem
     iPhone die Seite seitlich wischen. */
  top: -20vh;
  left: 0;
  right: 0;
  height: 80vh;
  background: radial-gradient(ellipse 90% 70% at 70% 30%, rgba(69, 239, 212, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
main, footer { position: relative; z-index: 1; }
/* Der Schein hinter dem Mockup darf ueber den Inhaltsrand hinaus, nur nicht ueber den
   Bildschirmrand: abgeschnitten wird erst am Fenster, nicht an der Spalte. */
html { overflow-x: clip; }
/* Doppelt haelt besser: aeltere iPhones kennen `clip` nicht. hidden an html
   und body verhindert das seitliche Wischen dort, und touch-action laesst
   den Finger nur senkrecht scrollen (Zoomen bleibt erlaubt). */
html, body { overflow-x: hidden; max-width: 100%; }
html { touch-action: pan-y pinch-zoom; }

a { color: var(--akzent); }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-within {
  outline: 2px solid var(--akzent-hell);
  outline-offset: 3px;
  border-radius: 10px;
}

.seite { max-width: 1040px; margin: 0 auto; padding: 28px 20px 40px; }

.kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kopf img { height: 34px; width: auto; }
.knopf-klein {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(69, 239, 212, 0.45);
  color: var(--akzent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.knopf-klein:hover { background: rgba(69, 239, 212, 0.08); }
.marke {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--akzent);
}

.held {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 8px;
}
.held h1 {
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 14px 0 18px;
  text-wrap: balance;
}
.held h1 em { font-style: normal; color: var(--akzent); }
.unterzeile { font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 30em; margin: 0 0 28px; text-wrap: pretty; }
.knopf.knopf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0 34px;
  text-decoration: none;
}
.hinweis { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-3); }

/* Das Angebot über der Überschrift: der erste Blick, noch vor dem Titel.
   Ein Lichtstreif läuft alle paar Sekunden einmal darüber — Bewegung, die
   auffällt, ohne dass man etwas lesen muss, das sich bewegt. */
.angebot {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(69, 239, 212, 0.35);
  background: rgba(69, 239, 212, 0.09);
  color: var(--text);
  font-size: 13px;
  line-height: 18px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}
.angebot b { font-weight: 700; }
.angebot i { font-style: normal; color: var(--akzent); }
.angebot:hover { background: rgba(69, 239, 212, 0.14); }
.angebot::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(121, 252, 243, 0.28) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: streif 5s cubic-bezier(0.4, 0, 0.2, 1) 1.2s infinite;
}
@keyframes streif {
  0% { transform: translateX(-100%); }
  28%, 100% { transform: translateX(100%); }
}
.geschenk { flex: none; fill: none; stroke: var(--akzent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Der Zähler unter dem Knopf: echte Zahl vom Server (gratis.js). */
.zaehler { max-width: 340px; margin: 16px 0 0; }
.zaehler .balken { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.zaehler .balken span { display: block; height: 100%; width: 0; min-width: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--akzent-dunkel), var(--akzent-hell)); transition: width 0.8s cubic-bezier(0.2, 0, 0, 1); }
.zaehler p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.zaehler b { font-family: var(--mono); font-weight: 500; color: var(--akzent); }
.zaehler + .hinweis { margin-top: 4px; }

/* Der Kasten im Formular: was man bekommt, und die Bedingungen dazu. */
.geschenk-kasten {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(69, 239, 212, 0.06);
  border: 1px solid rgba(69, 239, 212, 0.22);
}
.geschenk-feld { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(69, 239, 212, 0.12); }
.geschenk-kasten b { display: block; font-size: 15px; line-height: 1.4; }
.geschenk-kasten p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.geschenk-kasten p .betont { display: inline; font-size: inherit; line-height: inherit; color: var(--text); }
.bedingungen { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--text-3); }
.bedingungen summary { cursor: pointer; color: var(--text-2); min-height: 28px; display: inline-flex; align-items: center; }
.bedingungen ul { margin: 4px 0 0; padding-left: 16px; }
.bedingungen li + li { margin-top: 3px; }

/* Das Mockup: freigestellt, dahinter ein Schein in Akzentfarbe wie hinter dem Radar
   in der App. Das Bild wird nie beschnitten; der Schein darf ueber den Rand laufen. */
.mockup { position: relative; display: flex; justify-content: center; isolation: isolate; }
.mockup::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  /* Hoechstens so breit, dass er vor dem Fensterrand ausklingt: Platz rechts der Spalte ist
     das Seitenpolster (20 px) bzw. ab 1040 px Fensterbreite der freie Rand; 16 px fuer die
     Scrollleiste abgezogen. */
  width: min(150%, calc(100% + 2 * max(4px, (100vw - 1016px) / 2)));
  height: 112%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(69, 239, 212, 0.55) 0%, rgba(69, 239, 212, 0.42) 50%, rgba(52, 205, 170, 0.16) 76%, transparent 100%),
    radial-gradient(closest-side at 58% 36%, rgba(121, 252, 243, 0.22), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
/* Das Handy (deckende Flaeche x 41-462 von 600) sitzt 8,08 % links der Bildmitte,
   weil der Schatten rechts mit zur Bildflaeche gehoert. Um genau so viel nach rechts. */
.mockup picture { display: block; width: min(360px, 100%); transform: translateX(8.08%); }
.mockup img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); }

/* Die vier Funktionen, direkt unter dem Einstieg. */
.kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 40px 0 0; }
.kachel {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 22px;
  padding: 20px;
}
.symbol-feld {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(69, 239, 212, 0.10);
  margin-bottom: 14px;
}
.symbol { fill: none; stroke: var(--akzent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kachel b { display: block; font-size: 17px; line-height: 1.3; margin-bottom: 6px; letter-spacing: -0.01em; }
.kachel p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }

/* Das Formular am Ende — der Knopf oben springt hierher. */
html { scroll-behavior: smooth; }
.platz { scroll-margin-top: 20px; margin: 64px auto 0; max-width: 560px; }

/* Das Formular — die eine Handlung der Seite. */
.formular {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 26px;
  padding: 24px;

}
.formular h2 { font-size: 20px; line-height: 1.3; margin: 0 0 4px; letter-spacing: -0.02em; }
.formular .unter { margin: 0 0 18px; color: var(--text-3); font-size: 14px; }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feld { display: grid; gap: 6px; margin-bottom: 14px; }
.feld span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.feld input {
  font: inherit;
  color: var(--text);
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 14px;
  padding: 14px 15px;
  min-height: 50px;
}
.feld input::placeholder { color: var(--text-3); }
.feld input:focus { border-color: var(--akzent); outline: none; }
/* Vorschlag bei einem Vertipper in der Adresse (formular.js). */
.feld .tipp { font-size: 13px; line-height: 1.5; font-weight: 400; color: var(--text-2); }
.feld .tipp button { font: inherit; font-weight: 700; color: var(--akzent); background: none; border: 0; padding: 4px 2px; min-height: 32px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.zustimmung {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 6px 0 18px;
  cursor: pointer;
}
.zustimmung input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--akzent); }

.knopf {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #07070A;
  background: linear-gradient(165deg, var(--akzent-hell), var(--akzent-dunkel));
  box-shadow: 0 10px 34px rgba(69, 239, 212, 0.28);
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.knopf:active { transform: scale(0.98); }
.knopf[disabled] { opacity: 0.55; cursor: default; }

.meldung { margin: 14px 0 0; font-size: 14px; line-height: 1.5; min-height: 1.5em; }
.meldung.fehler { color: var(--gefahr); }
.meldung.gut { color: var(--akzent); }

/* Unsichtbar fuer Menschen — die Falle fuer Skripte. */
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Einfache Textseiten: Impressum, Datenschutz, Bestaetigung */
.vorspann { font-family: var(--mono); font-size: 12px; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase; color: var(--akzent); }
.text { max-width: 680px; margin: 0 auto; padding: 28px 20px 48px; }
.text h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.12; letter-spacing: -0.03em; margin: 36px 0 18px; text-wrap: balance; }
.text h2 { font-size: 18px; margin: 30px 0 8px; letter-spacing: -0.01em; }
.text p, .text li { color: var(--text-2); font-size: 15px; line-height: 1.65; }
.text ul { padding-left: 20px; }
.text address { font-style: normal; color: var(--text-2); line-height: 1.7; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }

footer {
  border-top: 1px solid var(--rand);
  max-width: 1040px;
  margin: 24px auto 0;
  padding: 18px 20px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  color: var(--text-3);
}
footer a { color: var(--text-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .kacheln { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .seite { padding: 18px 16px 32px; }
  .held { grid-template-columns: 1fr; gap: 36px; padding-top: 32px; text-align: center; }
  .held h1 { margin: 10px 0 14px; }
  .unterzeile { font-size: 17px; margin: 0 auto 22px; }
  .knopf.knopf-cta { width: 100%; }
  .zaehler { margin-left: auto; margin-right: auto; }
  .geschenk-kasten { text-align: left; }
  .mockup picture { width: min(300px, 72vw); }
  /* Am Handy laeuft der Schein randlos bis an den Bildschirmrand — und wird
     GENAU DORT abgeschnitten: der Rahmen ist so breit wie der Bildschirm
     (negativer Rand = Seitenpolster) und schneidet ab. overflow-x: clip am
     html reicht mobilen Browsern nicht, sie verbreitern sonst die ganze
     Seite und lassen sie seitlich wischen. */
  .mockup { margin: -24px -16px -24px; padding: 24px 0; overflow: hidden; }
  .mockup::before { width: 150%; }
  /* Am Handy: eine Spalte, Symbol links, Text rechts — kurz und scanbar. */
  .kacheln { grid-template-columns: 1fr; gap: 10px; margin-top: 36px; }
  .kachel { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px; border-radius: 20px; }
  .symbol-feld { grid-row: span 2; margin: 0; }
  .kachel b { margin: 1px 0 2px; }
  .platz { margin-top: 44px; }
  .formular { padding: 20px; border-radius: 22px; }
  .felder { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .angebot::after { animation: none; display: none; }
}
