/*
 * Design-Lock der Website. Übernimmt die Rollen aus
 * apps/mobile/src/theme/tokens.ts unverändert, damit Store-Eintrag, App und
 * Website als eine Sache gelesen werden.
 *
 * Herkunft der Entscheidungen:
 * - Empower: genau ein dunkler Poster-Moment, danach helle Inhaltsflächen.
 *   Signalgelb ist dort ausschliesslich Fläche für Interaktion, nie Schrift.
 * - Gumroad: schwarzer Primärbutton, dünne Linien, warmes Off-White,
 *   Tiefe über Farbflächen statt über Schatten.
 *
 * Zwei Regeln, die nicht verhandelbar sind:
 * 1. Gelb liegt IMMER hinter dunklem Text. Nie Schriftfarbe, nie Buttonfüllung.
 * 2. Kein einziger box-shadow. Trennung entsteht durch Fläche und Linie.
 *
 * Keine Webfonts. Das ist hier kein Geschmack, sondern Datenschutz: Schriften
 * von einem fremden CDN übertragen die IP des Besuchers an einen Dritten und
 * brauchen dafür eine Rechtsgrundlage, die es auf einer Rechtstextseite nicht
 * gibt (LG München I, 3 O 17493/20). Systemschriften lösen das ersatzlos.
 */

:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --muted: #f3f4f6;
  --border: #e4e6eb;

  --ink: #101114;
  --ink-soft: #3f434d;
  --ink-muted: #767b87;

  --primary: #2f59f8;
  --on-primary: #ffffff;
  --primary-soft: #e9eeff;

  --marker: #f5e400;
  --promo: #ff2e63;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  --measure: 66ch;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--lesen {
  max-width: calc(var(--measure) + 48px);
}

/* --- Kopfbereich. Hell wie alles andere. -------------------------------- */

.poster {
  background: var(--paper);
  color: var(--ink);
  padding: 56px 0 64px;
  border-bottom: 1.5px solid var(--border);
}

.poster a {
  color: var(--ink);
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.marke__zeichen {
  display: block;
  width: 34px;
  height: 34px;
  flex: none;
}

.poster h1 {
  margin: 40px 0 0;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
  max-width: 15ch;
}

.poster p {
  margin: 20px 0 0;
  max-width: 44ch;
  font-size: 19px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Der Textmarker. Fläche hinter dunklem Text — dieselbe Geste wie im Icon. */
.marker {
  background: var(--marker);
  color: var(--ink);
  padding: 2px 8px;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.marker--klein {
  font-size: 14px;
  padding: 3px 8px;
  display: inline-block;
}

/* --- Buttons ------------------------------------------------------------- */

/* Die einzige Stelle mit weisser Schrift auf Farbe — wie in der App. Marker
   und Preismarke tragen dagegen immer dunklen Text. */
.knopf,
.poster a.knopf {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 32px;
  border-radius: 999px;
  border: 0;
  min-height: 56px;
  line-height: 24px;
}

.knopf:focus-visible,
a:focus-visible {
  outline: 3px solid var(--marker);
  outline-offset: 3px;
}

/* --- Inhaltsflächen ------------------------------------------------------ */

main {
  padding: 64px 0 96px;
}

h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 48px 0 12px;
  text-wrap: balance;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 32px 0 8px;
}

p,
li {
  color: var(--ink-soft);
  text-wrap: pretty;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

/* Karte ohne Schatten: Fläche plus Linie, wie in beiden Referenzen. */
.karte {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}

.karte--ruhig {
  background: var(--muted);
  border-color: transparent;
}

.raster {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 32px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 16px;
  display: block;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1.5px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

td {
  color: var(--ink-soft);
}

/* Zusammenfassung in einfacher Sprache. Art. 12 Abs. 1 DSGVO verlangt eine
   Form, die für die Zielgruppe verständlich ist — hier 14- bis 19-Jährige. */
.kurzfassung {
  background: var(--muted);
  border-left: 4px solid var(--marker);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 24px 0 40px;
}

.kurzfassung h2 {
  margin-top: 0;
  font-size: 21px;
}

.kurzfassung li {
  margin-bottom: 8px;
}

.stand {
  color: var(--ink-muted);
  font-size: 14px;
  margin-top: 8px;
}

/* --- Fuss ---------------------------------------------------------------- */

footer {
  border-top: 1.5px solid var(--border);
  padding: 40px 0 64px;
  font-size: 15px;
  color: var(--ink-muted);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 16px;
}

footer a {
  color: var(--ink-soft);
}

/* --- Sprungmarke für Tastatur und Screenreader --------------------------- */

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

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--marker);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
