/* Mindplay - Landingpage
 * Keine externen Schriften, keine externen Skripte, keine Cookies.
 * Das ist Absicht: so braucht die Seite kein Einwilligungs-Banner.
 * Farben und Schrift sind vorlaeufig (siehe LOV-2 Marken-Minimum).
 */

:root {
  --plum: #3a1c32;
  --plum-dark: #2a1425;
  --cream: #fbf5ee;
  --cream-2: #f3e9dd;
  --clay: #c2684a;
  --clay-dark: #a8553a;
  /* Keine fuenfte Markenfarbe, nur die gedrueckte Stufe von Terrakotta
     dunkel. Beim Ueberfahren muss ein Knopf nachgeben, und heller darf
     er nicht werden, sonst sinkt der Kontrast des Knopftextes. */
  --clay-press: #8f462f;
  --ink: #2b1f28;
  --muted: #6e5c68;
  --line: rgba(58, 28, 50, 0.14);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 60rem;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a { color: var(--clay-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
/* Beim Ueberfahren dunkler, nicht heller. Heller hiesse 3,6:1. */
a:hover { color: var(--clay-press); }

.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 34em; }

/* --- Kopfzeile ----------------------------------------------------------- */

.topbar {
  padding: 1.5rem 0;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--plum);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.wordmark .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--clay);
  display: inline-block;
}

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

.hero {
  background: var(--plum);
  color: var(--cream);
  padding: 0 0 4.5rem;
}
.hero .topbar .wordmark { color: var(--cream); }
.hero h1 { color: var(--cream); max-width: 24em; }
.hero .lede { color: rgba(251, 245, 238, 0.78); }

.badge {
  display: inline-block;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251, 245, 238, 0.7);
  border: 1px solid rgba(251, 245, 238, 0.28);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

/* --- Knoepfe ------------------------------------------------------------- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.08s ease;
}
/* Knopftext ist Weiss auf Terrakotta-dunkel: 5,2:1. Auf dem hellen
   Terrakotta waeren es nur 3,9:1 — zu wenig fuer Knopftext (LOV-2). */
.btn-primary { background: var(--clay-dark); color: #fff; }
.btn-primary:hover { background: var(--clay-press); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(251, 245, 238, 0.4);
}
.btn-ghost:hover { background: rgba(251, 245, 238, 0.1); color: var(--cream); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* --- Abschnitte ---------------------------------------------------------- */

section { padding: 4rem 0; }
section.tight { padding: 2.5rem 0; }

.section-head { max-width: 34em; margin-bottom: 2.5rem; }

/* Das `min(..., 100%)` ist kein Zierrat. Ohne das haelt eine Spalte ihre
   Mindestbreite auch dann, wenn der Kasten schmaler ist — und schiebt die
   ganze Seite seitlich raus. Auf einem iPhone SE (320 px) laesst sich die
   Seite dann verschieben. Mit `min` gibt die Spalte nach. */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--clay);
  display: block;
  margin-bottom: 0.3rem;
}
.card p:last-child { margin-bottom: 0; }

.split {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
}
.split h3 { margin-bottom: 0.4rem; }
.split p:last-child { margin-bottom: 0; }
.split .is { color: var(--plum); }
.split .is-not { color: var(--muted); }

/* --- Hoerprobe ----------------------------------------------------------- */

#hoerprobe[hidden] { display: none; }

.probe {
  background: var(--plum);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  align-items: center;
}
.probe h2 { color: var(--cream); margin-bottom: 0.4rem; }
.probe p { color: rgba(251, 245, 238, 0.78); margin-bottom: 0.6rem; }
.probe .probe-tipp { color: rgba(251, 245, 238, 0.55); font-size: 0.9375rem; margin: 0; }
/* Kleine Versalien sind der schlechteste Fall fuer Kontrast (LOV-2).
   Diese Zeile steht aber auf Pflaume, nicht auf Creme — dort waere
   Terrakotta dunkel noch schlechter als das helle. Darum Creme.
   Der Akzent bleibt daneben: Punkt und Fortschrittsbalken. */
.probe-label {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 245, 238, 0.75);
  margin-bottom: 0.6rem;
}

.probe-player { display: flex; align-items: center; gap: 1.1rem; }

.hp-knopf {
  flex: 0 0 auto;
  width: 4.25rem; height: 4.25rem;
  border: 0; border-radius: 50%;
  background: var(--cream); color: var(--plum-dark);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.12s ease;
}
.hp-knopf:active { transform: scale(0.96); }
.hp-knopf svg { width: 1.6rem; height: 1.6rem; fill: currentColor; grid-area: 1 / 1; }
.hp-knopf .ikon-pause { display: none; }
.hp-knopf.laeuft .ikon-play { display: none; }
.hp-knopf.laeuft .ikon-pause { display: block; }

.hp-rechts { flex: 1 1 auto; min-width: 0; }
.hp-balken {
  height: 6px; border-radius: 3px;
  background: rgba(251, 245, 238, 0.22);
  cursor: pointer; position: relative;
}
.hp-balken:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.hp-fuell {
  display: block; height: 100%; width: 0;
  border-radius: 3px; background: var(--clay);
}
.hp-zeit {
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  color: rgba(251, 245, 238, 0.6);
  font-variant-numeric: tabular-nums;
}

/* --- Formular ------------------------------------------------------------ */

.signup {
  background: var(--plum);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.signup h2 { color: var(--cream); }
.signup p { color: rgba(251, 245, 238, 0.8); }
/* Verweise auf dunklem Grund: Creme mit Unterstrich. Ein heller
   Terrakotta-Ton waere eine fuenfte Farbe und waere schlechter zu
   lesen. Der Unterstrich zeigt, dass es ein Verweis ist. */
.signup a { color: var(--cream); }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  font: inherit;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 245, 238, 0.3);
  background: rgba(251, 245, 238, 0.07);
  color: var(--cream);
}
.field input::placeholder { color: rgba(251, 245, 238, 0.45); }
.field input:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 1px;
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: rgba(251, 245, 238, 0.85);
}
.check input { margin-top: 0.3rem; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; accent-color: var(--clay); }

.hp { position: absolute; left: -9999px; }

.form-note { font-size: 0.875rem; color: rgba(251, 245, 238, 0.65); margin: 1rem 0 0; }

.form-msg {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
}
.form-msg[hidden] { display: none; }
.form-msg.ok { background: rgba(251, 245, 238, 0.14); color: var(--cream); }
.form-msg.err { background: rgba(194, 104, 74, 0.25); color: var(--cream); }

.done {
  text-align: center;
  padding: 1rem 0;
}
/* Der Danke-Bereich bekommt nach dem Absenden den Fokus, damit Vorleseprogramme
   ihn ansagen. Der Rahmen darum soll dabei nicht zu sehen sein. */
.done:focus { outline: none; }
.done:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.done h2 { margin-bottom: 0.4rem; }

/* --- Hinweis-Banner (nur bis zur Einrichtung sichtbar) ------------------- */

.setup-banner {
  background: #7a1f1f;
  color: #fff;
  font-size: 0.9375rem;
  padding: 0.85rem 0;
}
/* Der Balken kann zwei Hinweise tragen (Versandweg, Vorschaubild).
   Darum Absaetze statt eines Fliesstextes — sonst kleben sie aneinander. */
.setup-banner p { margin: 0 0 0.5rem; }
.setup-banner p:last-child { margin-bottom: 0; }
.setup-banner code {
  background: rgba(255, 255, 255, 0.18);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.setup-banner strong { letter-spacing: 0.02em; }

/* --- Fusszeile ----------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 0.75rem; }

/* --- Inhaltsseiten (Impressum, Datenschutz) ------------------------------ */

.doc { max-width: 44rem; padding: 3rem 0 4rem; }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.doc h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4rem; }
.doc .todo {
  background: #fff3cd;
  border-left: 4px solid #c2a33a;
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  font-size: 0.9375rem;
}
.doc .meta { color: var(--muted); font-size: 0.9375rem; }

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
