/* ===== Schrift (lokal gehostet) ===== */
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --white: #ffffff;
  --paper: #f4f4f2;
  --light: #d9d9d8;
  --mid: #8c8e91;
  --ink: #1e1e1e;
  --dark: #141414;
  --muted: #8a8a8a;
  --line: #1e1e1e;
  --pad: clamp(16px, 2.2vw, 32px);
  --font: "Inter Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white); color: var(--ink);
  font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--white); }

.up { text-transform: uppercase; }
.b { font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.small { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.grey { color: var(--muted); }

/* ===== Kopfzeile ===== */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: 54px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad);
  color: var(--ink); pointer-events: none;
  transition: background .35s, color .35s, border-color .35s; border-bottom: 2px solid transparent;
}
.top.solid { background: var(--white); border-bottom-color: var(--ink); }
.top.on-dark { background: var(--dark); color: #f1f1f1; border-bottom-color: #f1f1f1; }
.top.on-light { background: var(--light); }
.top a, .top nav { pointer-events: auto; }
.logo {
  font-weight: 700; font-size: 17px; letter-spacing: -0.03em; text-transform: uppercase;
  border: 1.5px solid currentColor; padding: 1px 6px 0; line-height: 1.25;
}
.top nav { display: flex; gap: 22px; align-items: center; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.top nav a { display: inline-flex; align-items: center; gap: 7px; }
.top nav a.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.top nav .spacer { width: 18vw; }
.top nav a:hover { opacity: .65; }

/* ===== Rechtsseiten ===== */
.legal { padding: 120px var(--pad) 120px; }
.legal .inner { max-width: 860px; }
.legal .num { font-weight: 700; font-size: clamp(54px, 8vw, 120px); line-height: .85; letter-spacing: -0.05em; }
.legal h1 { font-weight: 700; text-transform: uppercase; font-size: clamp(48px, 9vw, 140px); line-height: .86; letter-spacing: -0.045em; margin: 10px 0 64px; hyphens: auto; }
.legal h2 { font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 46px); line-height: .95; letter-spacing: -0.03em; margin: 80px 0 16px; padding-top: 14px; border-top: 2px solid var(--line); }
.legal h3 { font-weight: 700; text-transform: uppercase; font-size: 18px; letter-spacing: -0.01em; margin: 36px 0 8px; }
.legal h4 { font-weight: 700; font-size: 16px; margin: 22px 0 6px; }
.legal p, .legal li { font-weight: 400; color: #333; line-height: 1.6; max-width: 70ch; }
.legal p + p { margin-top: .9em; }
.legal ul { margin: 10px 0 0 1.2em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal .block { border-top: 1px solid var(--line); padding: 14px 0 28px; display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.legal .block .small { color: var(--muted); }
.legal .block p { font-weight: 700; text-transform: uppercase; font-size: clamp(18px, 2vw, 24px); line-height: 1.15; color: var(--ink); letter-spacing: -0.02em; }
.legal .block p a { text-transform: none; }
.legal .toc { list-style: none; margin: 0; border-top: 1px solid var(--line); }
.legal .toc li { border-bottom: 1px solid var(--line); max-width: none; }
.legal .toc a { display: flex; justify-content: space-between; padding: 10px 0; text-decoration: none; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.legal .toc a::after { content: "●"; font-size: 12px; }
.legal .source { margin-top: 64px; font-size: 14px; }
.foot-mini {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 18px var(--pad); border-top: 2px solid var(--line); font-size: 13px; font-weight: 700; text-transform: uppercase;
}
.foot-mini a:hover { opacity: .6; }

@media (max-width: 760px) {
  .top nav .spacer, .top nav .hide-m { display: none; }
  .top nav { gap: 14px; }
  .legal .block { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
