/* Token aus ios/Sources/App/Theme.swift — eine Quelle, zwei Oberflaechen.
   Aendert sich die Palette dort, muss sie hier mit. */
:root {
  color-scheme: light dark;

  --ground: #FBF7F2;
  --surface: #FFFFFF;
  --surface-2: #F5EFE8;
  --line: #E6DDD3;
  --ink: #2B2622;
  --ink-soft: #6B625B;
  --accent: #E4694F;
  --accent-deep: #C2503A;
  --on-accent: #FFFFFF;

  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;

  --radius-sm: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #16120F;
    --surface: #1E1916;
    --surface-2: #262019;
    --line: #3A322B;
    --ink: #F2EBE3;
    --ink-soft: #B0A69D;
    --accent: #F08268;
    --accent-deep: #C9573E;
    --on-accent: #1A1512;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Struktur kommt aus Freiraum und Typografie, nicht aus Kaesten (DESIGN.md §1,
   Kurskorrektur 2026-09-08). Deshalb hat hier nichts einen Rahmen, der nicht
   etwas trennt. */
.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: var(--space-xl);
}

/* --- Kopf ------------------------------------------------------------- */

header {
  padding-block: 88px 0;
}

.wordmark {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 var(--space-xxl);
}

h1 {
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-xl);
  font-weight: 700;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* Der einzige Akzent auf der Seite. Ein Wort, nicht mehr — DESIGN.md §1:
   „Koralle markiert genau eine Sache pro Screen." */
.accent { color: var(--accent); }

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

section {
  padding-block: 72px;
}

section + section {
  border-top: 1px solid var(--line);
}

h2 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0 0 var(--space-xl);
}

p {
  margin: 0 0 var(--space-lg);
  max-width: 32rem;
}

p:last-child { margin-bottom: 0; }

/* Die drei Punkte: eine Liste mit Luft, kein Kartenstapel. */
.points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.points li + li {
  margin-top: var(--space-xxl);
}

.points h3 {
  font-size: 1.12rem;
  margin: 0 0 var(--space-sm);
  font-weight: 650;
}

.points p {
  color: var(--ink-soft);
  margin: 0;
}

/* --- Hinweis ---------------------------------------------------------- */

.notice {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.notice p { max-width: none; }

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

footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-xxl) 64px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-lg);
}

/* Unterstreichung in inkSoft, nicht in line: gegen den Creme-Grund kommt `line`
   auf 1,26:1 und ist als Link-Kennzeichnung nicht wahrnehmbar. */
a {
  color: var(--ink);
  text-decoration-color: var(--ink-soft);
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: var(--accent); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Rechtstext-Seiten ------------------------------------------------ */

.legal h1 {
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  margin-bottom: var(--space-xl);
}

.legal h2 {
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  margin: var(--space-xxl) 0 var(--space-md);
}

.legal dt {
  font-weight: 600;
  margin-top: var(--space-lg);
}

.legal dd {
  margin: 0;
  color: var(--ink-soft);
}

.todo {
  border-left: 3px solid var(--accent);
  padding: var(--space-md) 0 var(--space-md) var(--space-lg);
  margin: 0 0 var(--space-xxl);
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: text-decoration-color 0.15s ease-out; }
}
