/*
 * Stil für die beiden Rechtsseiten (privacy.html, impressum.html).
 *
 * WARUM EINE GETEILTE DATEI und nicht wie bei index.html eingebettet:
 * die Landing-Page muss als eine Datei funktionieren, weil sie zur Vorschau
 * als Artefakt veröffentlicht wird und dort keine zweite Datei laden darf.
 * Auf Namecheap gilt das nicht. Zwei Rechtsseiten mit identischem Stil zweimal
 * zu pflegen ist der sichere Weg, dass sie irgendwann verschieden aussehen.
 *
 * Farben aus holdline/theme/colors.js, wie überall.
 */

:root {
  /* Sagt dem Browser, in welcher Helligkeit er malt, was nicht uns gehoert:
     Bildlaufleiste, Auswahlmarkierung, Innereien der Formularfelder. Ohne
     die Zeile nimmt er "hell" an, auch auf der dunklen Fassung. */
  color-scheme: light;

  --ground: #f4f5f9;
  --surface: #ffffff;
  --text: #15152b;
  --muted: #5f6076;
  --accent: #007085;
  --line: #dfe2ec;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;

    --ground: #1a1a2e;
    --surface: #232345;
    --text: #e0e0e0;
    --muted: #9494ad;
    --accent: #00b4d8;
    --line: #2e2e52;
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;

  --ground: #1a1a2e;
  --surface: #232345;
  --text: #e0e0e0;
  --muted: #9494ad;
  --accent: #00b4d8;
  --line: #2e2e52;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem) 5rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2.5rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.mark span { color: var(--accent); }
.back { font-size: 0.875rem; color: var(--accent); text-decoration: none; font-weight: 600; }

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

.stand { margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; }

h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2.75rem 0 0.75rem;
  text-wrap: balance;
}

h3 { font-size: 1rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }

p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--accent); }

.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.box.wichtig { border-color: var(--accent); }
.box p:last-child { margin-bottom: 0; }

dl { margin: 0; }
dt { font-weight: 700; margin-top: 1rem; }
dd { margin: 0.15rem 0 0; color: var(--muted); }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
