/* Gemeinsames Stylesheet für Impressum und Datenschutz.
   Bewusst eigenständig und ohne dc-Runtime: Rechtstexte müssen auch dann
   erreichbar sein, wenn JavaScript scheitert. Tokens gespiegelt aus der
   Landingpage, damit der Auftritt konsistent bleibt. */

@font-face { font-family: 'Satoshi'; src: url('./satoshi-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('./satoshi-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('./satoshi-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('./satoshi-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --font-sans: 'Satoshi', system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink-rgb: 11, 15, 26;
  --ink: rgb(var(--ink-rgb));
  --ink-3: #55564F;
  --ink-4: #6E6F66;
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --accent: #2540DE;
  --accent-strong: #1B31B5;
  --rule: rgba(var(--ink-rgb), 0.09);
  --rule-strong: rgba(var(--ink-rgb), 0.14);
  --radius: 8px;
  --gutter: clamp(24px, 5vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  /* 17px statt 16: Rechtstexte werden oft mobil gelesen und sind lang. */
  font-size: 17px;
  line-height: 1.7;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

header.top { border-bottom: 1px solid var(--rule); background: var(--bg); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.brand span { color: var(--accent); }

main { padding: clamp(40px, 7vw, 72px) 0 clamp(64px, 10vw, 112px); }

h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 8px; }
h2 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 44px 0 12px; padding-top: 24px; border-top: 1px solid var(--rule-strong); }
h3 { font-size: 17px; font-weight: 700; margin: 24px 0 6px; }
p, li { color: var(--ink-3); margin: 0 0 14px; }
/* Lesemaß: ch überschätzt bei Satoshi um Faktor ~1,55, deshalb 46ch statt 70ch */
p, li, .lead { max-width: 46ch; }
.lead { font-size: 18px; color: var(--ink-4); margin-bottom: 32px; }
ul { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 8px; }
strong { color: var(--ink); font-weight: 700; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
address { font-style: normal; color: var(--ink-3); }

/* Trefferfläche >= 24px (WCAG 2.2 AA, SC 2.5.8) */
a, button { display: inline-block; padding-top: 3px; padding-bottom: 3px; }
.brand, footer.bottom a { padding-top: 4px; padding-bottom: 4px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main[tabindex="-1"]:focus { outline: none; }

/* Skip-Link (Q4, WCAG 2.4.1) — gespiegelt aus site.css, weil legal.css bewusst
   eigenstaendig bleibt. Erstes fokussierbares Element, faehrt bei Fokus herein. */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--accent); color: #FFF; font-size: 14px; font-weight: 700;
  padding: 12px 18px; border-radius: var(--radius); text-decoration: none;
  box-shadow: 0 12px 30px rgba(var(--ink-rgb), 0.28);
  transform: translateY(calc(-100% - 16px));
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.skip-link:focus { transform: none; color: #FFF; outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }

/* Platzhalter, die vor dem Livegang ersetzt werden MÜSSEN.
   Bewusst grell: Wer das übersieht, riskiert bis zu 50.000 € Bußgeld
   nach § 5 DDG bzw. eine Abmahnung. */
.todo {
  display: block;
  background: #FFF4E5;
  border-left: 4px solid #B26A00;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  margin: 0 0 20px;
  max-width: none;
  font-size: 15px;
  line-height: 1.55;
  color: #6B3F00;
}
.todo b { color: #6B3F00; }
.todo code { background: rgba(178, 106, 0, 0.14); padding: 1px 5px; border-radius: 4px; font-size: 14px; }

/* ── 404: derselbe Formenkanon wie die Landingpage ─────────────────────────
   Riesige Ziffer wie in der "Drei Zahlen"-Sektion, Falle-Pill wie im
   Arbeitsheft-Mockup. Die 404 spricht die Sprache des Produkts: Sie ist
   eine Falle, nur eben eine harmlose. */
.pill404 {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px; line-height: 1;
  background: rgba(37, 64, 222, 0.1); color: var(--accent);
  margin-bottom: 18px;
}
.num404 {
  display: block;
  font-size: clamp(5rem, 18vw, 9rem); font-weight: 900;
  letter-spacing: -0.05em; line-height: 0.9;
  color: var(--ink); margin: 0 0 20px;
  font-variant-numeric: tabular-nums;
}
.num404 span { color: var(--accent); }
.btn404 {
  display: inline-block;
  background: var(--accent); color: #FFFFFF;
  font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 14px 26px; border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(37, 64, 222, 0.28);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), background 160ms ease;
}
.btn404:hover { background: var(--accent-strong); color: #FFFFFF; transform: translateY(-1px); }
.btn404:active { transform: scale(0.97); }
/* Press schlaegt Hover: ohne diese Regel gewinnt .btn404:hover per Quell-
   reihenfolge und das Druck-Feedback faellt auf Zeigergeraeten ganz aus.
   Gleiche Loesung wie .btn:hover:active in site.css. */
.btn404:hover:active { transform: translateY(-1px) scale(0.97); }

footer.bottom { border-top: 1px solid var(--rule); padding: 28px 0 64px; }
footer.bottom .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer.bottom a { color: var(--ink-3); font-size: 14px; }
.meta { color: var(--ink-4); font-size: 13px; max-width: none; margin: 0; }

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