/*
 * Monddeutung - eigenes Stylesheet, von Hand geschrieben.
 *
 * Bewusst ohne Framework und ohne Fremdschriften: Jede Anfrage vor der
 * Einwilligung muss an monddeutung.de gehen (Briefing 5, Regel 8), und
 * Systemschriften kosten keine Ladezeit (LCP unter 2,5 s auf dem Handy).
 * Mobil zuerst, Breakpoints nur nach oben.
 */

:root {
  --grund: #0e0b18;
  --grund-hell: #171326;
  --karte: #1d1830;
  --rand: #2e2745;
  --schrift: #ece9f5;
  --schrift-leise: #a9a2c4;
  --akzent: #b45ec9;
  --akzent-hell: #cf7ee0;
  --akzent-dunkel: #8c3fa0;
  --breite: 40rem;
  --radius: 0.9rem;
}

* { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--schrift);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.huelle {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  flex: 1 0 auto;
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; margin-top: 2rem; }
h3 { font-size: 1.1rem; margin-top: 1.5rem; }

/*
  Die Frage eines Fragebogen-Schritts. Semantisch eine Zwischenueberschrift
  (nur Schritt 1 traegt die h1 des Dokuments), optisch aber die Hauptzeile
  des Schritts.
*/
.frage { font-size: 1.6rem; margin-top: 0; }

@media (min-width: 40rem) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .frage { font-size: 2rem; }
}

p { margin: 0 0 1rem; }

a { color: var(--akzent-hell); }

.leise { color: var(--schrift-leise); }
.klein { font-size: 0.875rem; }
.mitte { text-align: center; }

/* ---------- Fortschritt ---------- */

.fortschritt {
  margin-bottom: 1.5rem;
}

.fortschritt-bahn {
  height: 0.4rem;
  background: var(--rand);
  border-radius: 999px;
  overflow: hidden;
}

.fortschritt-wert {
  height: 100%;
  background: linear-gradient(90deg, var(--akzent-dunkel), var(--akzent-hell));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.fortschritt-text {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  color: var(--schrift-leise);
  font-size: 0.875rem;
}

/* ---------- Auswahlfelder ---------- */

.raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.raster-eng { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 30rem) {
  .raster { grid-template-columns: repeat(4, 1fr); }
  .raster-eng { grid-template-columns: repeat(6, 1fr); }
}

.wahl {
  display: block;
  width: 100%;
  padding: 0.9rem 0.4rem;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  color: var(--schrift);
  font: inherit;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.wahl:hover,
.wahl:focus-visible {
  border-color: var(--akzent);
  background: var(--grund-hell);
  outline: none;
}

.wahl-zeichen {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

/* ---------- Formulare ---------- */

label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--schrift-leise);
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 0.85rem 0.9rem;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  color: var(--schrift);
  font: inherit;
  font-size: 1rem;
}

input:focus,
select:focus {
  border-color: var(--akzent);
  outline: none;
}

.feld { margin-bottom: 1.25rem; }

.zeile {
  display: flex;
  gap: 0.75rem;
}

.zeile > * { flex: 1; }

/* ---------- Schaltflächen ---------- */

.knopf {
  display: inline-block;
  width: 100%;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, var(--akzent-dunkel), var(--akzent));
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.knopf:hover { background: linear-gradient(90deg, var(--akzent), var(--akzent-hell)); }

.knopf-leise {
  background: none;
  border: 1px solid var(--rand);
  color: var(--schrift-leise);
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
}

.knopf-leise:hover { background: var(--grund-hell); }

/* ---------- Karten und Hinweise ---------- */

.karte {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.hinweis {
  background: var(--grund-hell);
  border-left: 3px solid var(--akzent);
  padding: 0.9rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5rem;
}

.fehler {
  color: #ff9d9d;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  min-height: 1.2rem;
}

/* ---------- Video ---------- */

.video-rahmen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.video-rahmen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--karte);
  border: none;
  color: var(--schrift);
  font: inherit;
  cursor: pointer;
}

.video-start .punkt {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--akzent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.preis {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--akzent-hell);
}

/* ---------- Einwilligung ---------- */

.einwilligung {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--grund-hell);
  border-top: 1px solid var(--rand);
  padding: 1rem;
  z-index: 50;
}

.einwilligung-inhalt {
  max-width: var(--breite);
  margin: 0 auto;
}

.einwilligung-knoepfe {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.einwilligung-knoepfe .knopf { font-size: 0.95rem; padding: 0.7rem 1rem; }

/* ---------- Fußzeile ---------- */

.fusszeile {
  flex-shrink: 0;
  border-top: 1px solid var(--rand);
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  color: var(--schrift-leise);
  font-size: 0.875rem;
}

.fusszeile a { color: var(--schrift-leise); margin: 0 0.4rem; }

/* ---------- Hilfsklassen ---------- */

[hidden] { display: none !important; }

.nur-vorleser {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
