/* Styles for the legal pages (impressum.html, datenschutz.html).
   The token block below mirrors the :root in index.html — that file is the
   source of truth; if a colour changes there, change it here too. */

:root {
  color-scheme: light;

  --bg:        #fbf8fa;
  --bg-sunk:   #f2ecef;
  --ink:       #201a1e;
  --body:      #56494f;
  --muted:     #6b5c62;
  --line:      #e5dce0;
  --line-firm: #cfc2c8;
  --accent:    #7d2b41;
  --on-dark:   #f4eef1;

  --r-sm: 2px;
  --r:    4px;

  --gutter: clamp(20px, 5vw, 44px);
  --font-ui:   'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-text: 'EB Garamond', 'Iowan Old Style', Palatino, Georgia, serif;
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
}

@supports (color: oklch(0 0 0)) {
  :root {
    --bg:        oklch(0.984 0.004 344);
    --bg-sunk:   oklch(0.951 0.007 344);
    --ink:       oklch(0.196 0.014 344);
    --body:      oklch(0.408 0.014 344);
    --muted:     oklch(0.487 0.015 344);
    --line:      oklch(0.902 0.008 344);
    --line-firm: oklch(0.815 0.013 344);
    --accent:    oklch(0.418 0.113 5);
    --on-dark:   oklch(0.950 0.006 344);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

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

.skip {
  position: absolute; left: var(--gutter); top: -6rem; z-index: 10;
  background: var(--ink); color: var(--on-dark);
  padding: 0.75rem 1.25rem; border-radius: var(--r);
  font-family: var(--font-ui); font-size: 0.875rem; font-weight: 600;
  transition: top 0.2s var(--ease-fast);
}
.skip:focus { top: 0.75rem; }

.wrap { width: 100%; max-width: 46rem; margin-inline: auto; padding-inline: var(--gutter); }

.hdr { border-bottom: 1px solid var(--line); }
.hdr__bar {
  max-width: 46rem; margin-inline: auto; padding: 0 var(--gutter);
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-ui); font-weight: 700; font-size: 1.0625rem;
  letter-spacing: -0.02em; color: inherit; text-decoration: none;
}
.brand__mark { width: 17px; height: 17px; flex: none; display: block; }
.brand__mark circle { fill: var(--ink); }
.brand__mark path { fill: var(--accent); }
.back {
  font-family: var(--font-ui); font-size: 0.9375rem; font-weight: 500;
  color: var(--body); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color 0.2s var(--ease-fast);
}
.back:hover { color: var(--ink); }

main { padding-block: clamp(48px, 8vw, 88px) clamp(64px, 9vw, 104px); }

h1 {
  font-family: var(--font-ui); font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  letter-spacing: -0.028em; line-height: 1.1; text-wrap: balance;
  margin-bottom: 2.5rem;
}
h2 {
  font-family: var(--font-ui); font-weight: 600;
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  letter-spacing: -0.016em; line-height: 1.25; text-wrap: balance;
  margin-top: 2.75rem; margin-bottom: 0.75rem;
}
h2:first-of-type { margin-top: 0; }
h3 {
  font-family: var(--font-ui); font-weight: 600;
  font-size: 1rem; letter-spacing: -0.008em; line-height: 1.35;
  color: var(--ink);
  margin-top: 1.75rem; margin-bottom: 0.4rem;
}
h2 + h3 { margin-top: 1.25rem; }
h3 + p { margin-top: 0; }

/* Art. 21 Abs. 4 DSGVO verlangt einen deutlich hervorgehobenen Hinweis auf
   das Widerspruchsrecht. Die Versalien stammen aus der Vorlage; hier nur
   etwas kleiner und weiter gesperrt gesetzt, damit ein ganzer Absatz in
   Großbuchstaben noch lesbar bleibt. */
.caps { font-size: 0.9375rem; letter-spacing: 0.012em; line-height: 1.6; }

p, li { text-wrap: pretty; color: var(--body); }
p + p { margin-top: 0.9rem; }
h2 + p { margin-top: 0; }

address { font-style: normal; color: var(--body); margin-top: 0.35rem; }
address b, strong { color: var(--ink); font-weight: 500; }

ul { margin-top: 0.75rem; padding-left: 1.15rem; }
li + li { margin-top: 0.4rem; }
li::marker { color: var(--line-firm); }

a { color: var(--accent); text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    transition: border-color 0.2s var(--ease-fast); }
a:hover { border-bottom-color: var(--accent); }
.hdr a, .ftr a { border-bottom: 0; }

.updated {
  margin-top: 3.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-family: var(--font-ui); font-size: 0.875rem; color: var(--muted);
}

/* Deliberately loud: this must not be shipped unfilled. */
.todo {
  margin-top: 0.75rem; padding: 1rem 1.15rem;
  background: var(--bg-sunk); border: 1px dashed var(--accent); border-radius: var(--r);
  font-family: var(--font-ui); font-size: 0.9375rem; line-height: 1.5; color: var(--ink);
}
.todo b { font-weight: 600; color: var(--accent); }

.ftr { border-top: 1px solid var(--line); padding-block: 1.5rem 2rem; }
.ftr__in { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; justify-content: space-between; }
.ftr span { font-family: var(--font-ui); font-size: 0.875rem; color: var(--muted); }
/* Above the 24x24 target minimum (WCAG 2.2 SC 2.5.8) and tappable on touch. */
.ftr a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-ui); font-size: 0.875rem; color: var(--muted); text-decoration: none;
}
.ftr a:hover { color: var(--ink); }
.ftr ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; list-style: none; margin: 0; padding: 0; }
.ftr li { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
