/* ─────────────────────────────────────────────────────────────
   LEGAL PAGES — shared CSS for Impressum, Datenschutz, AGB,
   Widerruf, Kontakt. Mirrors the design tokens from
   getasystole.html so the brand is consistent.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Brand palette (OKLCH) */
  --bone:           oklch(0.93 0.018 78);
  --bone-soft:      oklch(0.95 0.014 78);
  --ink:            oklch(0.22 0.018 260);
  --ink-80:         oklch(0.36 0.018 260);
  --ink-60:         oklch(0.52 0.020 260);
  --ink-30:         oklch(0.74 0.013 260);
  --ink-15:         oklch(0.86 0.010 260);
  --red:            oklch(0.62 0.214 24);
  --red-deep:       oklch(0.54 0.214 24);
  --link:           oklch(0.45 0.16 260);

  /* Typography */
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body:    "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;

  /* Layout */
  --maxw:   720px;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-feature-settings: "ss01", "cv11";
  background: var(--bone);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  hanging-punctuation: first last;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--red); }

img { display: block; max-width: 100%; height: auto; }

/* ───── Topbar ───── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(241, 230, 200, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--ink-15);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: var(--display);
  font-variation-settings: "opsz" 60, "wght" 700;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark sup {
  font-variation-settings: "opsz" 12, "wght" 700;
  font-size: 0.4em;
  vertical-align: super;
  color: var(--red);
  margin-left: 1px;
}
.topbar a.back {
  font-family: var(--display);
  font-variation-settings: "opsz" 12, "wght" 600;
  font-size: 13px;
  color: var(--ink-60);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.topbar a.back:hover { color: var(--ink); }

/* ───── Article ───── */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(96px, 10vw, 160px);
}

main h1 {
  font-family: var(--display);
  font-variation-settings: "opsz" 72, "wght" 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.024em;
  margin: 0 0 16px;
  text-wrap: balance;
}
main .updated {
  font-family: var(--display);
  font-variation-settings: "opsz" 12, "wght" 600;
  font-size: 12px;
  color: var(--ink-60);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 48px;
  font-variant-numeric: tabular-nums;
}

main h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 48, "wght" 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 48px 0 16px;
  text-wrap: balance;
}

main h3 {
  font-family: var(--display);
  font-variation-settings: "opsz" 24, "wght" 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 32px 0 12px;
}

main p, main li, main dd {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-80);
  text-wrap: pretty;
}
main p { margin: 0 0 14px; }

main ul, main ol {
  padding-left: 24px;
  margin: 0 0 16px;
}
main li { margin-bottom: 6px; }

main dl {
  margin: 0 0 16px;
  display: grid;
  gap: 6px;
}
main dt {
  font-family: var(--display);
  font-variation-settings: "opsz" 18, "wght" 600;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-60);
}
main dd { margin: 0 0 12px; color: var(--ink); }

main strong { font-variation-settings: "wght" 600; color: var(--ink); }

main blockquote {
  margin: 16px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--red);
  background: var(--bone-soft);
  font-style: italic;
}

main hr {
  border: none;
  border-top: 1px solid var(--ink-15);
  margin: 48px 0;
}

main .address {
  font-style: normal;
  background: var(--bone-soft);
  padding: 16px 20px;
  border-radius: 6px;
  border: 1px solid var(--ink-15);
  margin: 0 0 16px;
  line-height: 1.55;
}

main .toc {
  background: var(--bone-soft);
  border: 1px solid var(--ink-15);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 0 0 40px;
}
main .toc h2 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variation-settings: "opsz" 12, "wght" 700;
  color: var(--ink-60);
}
main .toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
@media (max-width: 600px) { main .toc ul { columns: 1; } }
main .toc li { margin: 0 0 6px; break-inside: avoid; }
main .toc a { color: var(--ink); text-decoration: none; font-size: 14px; }
main .toc a:hover { color: var(--red); text-decoration: underline; }

/* ───── Footer ───── */
.footer {
  background: var(--ink);
  color: var(--ink-30);
  padding: 56px var(--gutter) 32px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1fr auto; }
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-family: var(--display);
  font-variation-settings: "opsz" 12, "wght" 600;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.footer-nav a {
  color: var(--bone);
  text-decoration: none;
  opacity: 0.78;
  transition: opacity .15s;
}
.footer-nav a:hover { opacity: 1; color: var(--bone); }
.footer-legal {
  font-family: var(--display);
  font-variation-settings: "opsz" 12, "wght" 500;
  font-size: 12px;
  color: var(--ink-30);
  line-height: 1.6;
  text-align: right;
}
@media (max-width: 720px) { .footer-legal { text-align: left; } }
