@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Farbrollen: ein Grund, eine Schrift, ein Akzent. Flächen unterscheiden sich durch Tonstufen. */
  --ground: #0f1a2c;
  --ground-2: #15233a;
  --ground-3: #1f3250;
  --text: #e6ebf2;
  --muted: #aab6c9;
  --accent: #cfa95f;
  --accent-hover: #ddb96f;
  --steel: #78a9cc;
  --paper: #e6ebf2;
  --on-accent: #0f1a2c;

  --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;

  /* Fünf Schriftgrößen: klein, Text, Aussage, Überschrift, Display (Display steht in home.css) */
  --t-s: 0.9375rem;
  --t-b: 1.125rem;
  --t-l: clamp(1.2rem, 0.95rem + 0.95vw, 1.75rem);
  --t-h: clamp(2.25rem, 1.2rem + 4.2vw, 4.5rem);

  --gutter: clamp(20px, 2.4vw, 40px);
  --bar: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--t-b);
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
  overflow-x: clip;
}

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

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

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px; z-index: 20;
}
.skip:focus { left: 8px; }

/* Kopfzeile: schlicht, Wortmarke, wenige Links, eine Aktion */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--ground); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--bar); gap: 16px; }
.mark {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none;
  font-family: var(--display); font-weight: 650; font-size: var(--t-b); letter-spacing: -0.01em;
}
.mark svg { flex: none; }
.mark:hover { color: var(--text); }
.nav { display: flex; gap: clamp(16px, 2.6vw, 36px); font-size: var(--t-s); }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--accent); }
.nav .nav-cta:hover { color: var(--accent-hover); }
@media (max-width: 720px) { .nav a:not(.nav-cta) { display: none; } }

/* Typografie */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--t-h); line-height: 1; }
h3 { font-size: var(--t-h); line-height: 1; }
p { margin: 0 0 1em; }
.lede { font-size: var(--t-l); line-height: 1.3; max-width: 34em; }

/* Schaltflächen: eckig, flach, eine Füllfarbe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 0; min-height: 52px;
  font-family: var(--body); font-weight: 600; font-size: var(--t-b);
  text-decoration: none; cursor: pointer; border: 0;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: var(--ground-3); color: var(--text); }
.btn-ghost:hover { background: #29416a; color: var(--text); }

/* Fußzeile der Unterseiten */
.site-foot { background: var(--ground-2); padding: 40px 0 48px; color: var(--muted); font-size: var(--t-s); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-foot nav { display: flex; gap: 24px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

/* Rechtstexte, Dankeseite, 404 */
.legal { padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 128px); }
.legal .wrap { max-width: 860px; margin: 0 auto; }
.legal h1 { font-size: var(--t-h); line-height: 1; margin-bottom: 40px; }
.legal h2 { font-size: var(--t-l); line-height: 1.2; margin: 48px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 12px; } }
.todo { background: rgba(207, 169, 95, 0.18); color: var(--accent); padding: 1px 6px; }
.legal .lede { color: var(--text); }
