/* Imprint, privacy policy and terms (/imprint, /privacy, /terms). Colours and type follow index.html. */
:root {
  --black: #111110;
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #a3231f;
  --line: #e2dcd0;
  --soft: #f7f5f0;
  --muted: #6f6c64;
  --muted-2: #9a968b;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
}
a { color: inherit; }
img { display: block; }
[hidden] { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand span { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 6px 13px;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
}
.lang-toggle button[aria-pressed="true"] { background: var(--black); color: var(--white); }
.btn {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 14.5px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--black);
  color: var(--white);
  white-space: nowrap;
}
@media (max-width: 480px) { .btn { display: none; } }

/* ---------- Document ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 64px 32px 96px; }
@media (max-width: 640px) { .legal { padding: 40px 20px 72px; } }
.kicker { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; margin: 0; }
.legal .lede { margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.legal .meta { margin: 20px 0 0; font-size: 13.5px; color: var(--muted-2); }
.legal h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 56px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.legal h3 { font-size: 17px; margin: 28px 0 8px; }
.legal p, .legal ul, .legal ol, .legal dl, .legal address { margin: 0 0 14px; }
.legal address { font-style: normal; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--muted-2); }
.legal strong { font-weight: 600; }
.legal a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--black); }

/* Numbered clauses: (1), (2), ... */
.legal ol.clauses { list-style: none; padding-left: 0; counter-reset: clause; }
.legal ol.clauses > li { counter-increment: clause; position: relative; padding-left: 34px; margin-bottom: 10px; }
.legal ol.clauses > li::before { content: "(" counter(clause) ")"; position: absolute; left: 0; color: var(--muted-2); }
.legal ol.clauses ul { margin: 8px 0 0; }

/* Part headings of the terms (Teil A, B, C); not h2, so the contents list matches the § numbers. */
.legal .part {
  margin: 80px 0 0;
  padding-top: 22px;
  border-top: 2px solid var(--black);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.legal .part + h2 { margin-top: 12px; padding-top: 0; border-top: 0; }

.note {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15px;
  color: var(--muted);
  margin: 28px 0 0;
}
.note strong { color: var(--black); }
.callout {
  border: 1px solid var(--black);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 20px 0;
}
.callout > :last-child { margin-bottom: 0; }

.facts { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 10px 24px; margin: 0 0 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

/* Built by legal.js from the h2 headings of the visible language. */
.toc {
  margin: 36px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.toc strong { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 14.5px; }
.toc li { break-inside: avoid; margin-bottom: 4px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Details only the operator can fill in. Search for class="todo" before publishing. */
.todo {
  background: #fff3c4;
  border-bottom: 1px dashed #b58a00;
  border-radius: 3px;
  padding: 0 3px;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--black); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media print {
  .site-header, .site-footer, .toc, .lang-toggle { display: none; }
  .legal { padding: 0; max-width: none; }
  .legal h2 { break-after: avoid; }
}
