/* ==========================================================================
   BASE · Grundlagen: Abstände, Typografie, Reset
   Farben, Schriften und Radien kommen aus theme.css (vom CMS erzeugt).
   ========================================================================== */

:root {
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --container-max: 1200px;
  --text-max: 680px;
  --gutter: var(--space-16);
}
@media (max-width: 760px) {
  :root { --gutter: var(--space-4); --space-24: 56px; --space-16: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%;}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

main {min-height: 70vh;}

.wr-skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--surface); padding: var(--space-2) var(--space-4); z-index: 100; }
.wr-skip:focus { left: var(--space-4); }

/* Typografie */
.wr-display-xl, .wr-display-l, .wr-h1, .wr-h2, .wr-h3, .wr-kicker {
  font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--ink);
}
.wr-display-xl { font-size: clamp(44px, 6vw, 72px); line-height: 1.06; letter-spacing: -0.02em; }
.wr-display-l  { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.12; letter-spacing: -0.02em; }
.wr-h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.01em; }
.wr-h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.01em; }
.wr-h3 { font-size: 22px; line-height: 28px; }
.wr-kicker { font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-ink); }
.wr-kicker--muted { color: var(--ink-muted); }
.wr-lead { font-size: 21px; line-height: 32px; margin: 0; max-width: var(--text-max); }
.wr-body { font-size: 17px; line-height: 28px; margin: 0; max-width: var(--text-max); }
.wr-meta, .wr-small { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: 0; }
.wr-link { color: var(--tanne); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wr-link:hover { text-decoration-thickness: 2px; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; background: var(--surface-sunken); padding: 1px 5px; border-radius: var(--radius-sm); }

/* Hilfsklassen */
.wr-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.wr-stack > * + * { margin-top: var(--space-4); }
.wr-stack-lg { display: grid; gap: var(--space-6); }
