/* =========================================================================
   Designsystem — nach dem Entwurf "Bellinghausen" (claude.ai/design)
   Vollflächiger heller Einseiter, Instrument Sans, dunkles Kreis-Signet.
   Alle Entscheidungen sitzen in :root; die Regeln darunter greifen nur zu.
   ========================================================================= */

/* --- Schrift: selbst gehostet (DSGVO — kein Google-CDN) --- */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg:        #fbfbfa;   /* Seitenhintergrund */
  --bg-raised: #ffffff;   /* Pillen, Sekundärbuttons */
  --ink:       #17181a;   /* Text, Signet, Primärbutton */
  --ink-body:  #55575b;   /* Fließtext */
  --ink-badge: #4a4c4f;   /* Badge-Text */
  --ink-soft:  #63656a;   /* Fußzeile, Nebentext — im Entwurf heller (#8a8c8f),
                             für 4.5:1 auf Kleintext nachgedunkelt */
  --line:      #e2e2df;   /* Rahmen */
  --line-soft: #ededea;   /* Trennlinie Fußzeile */
  --dot:       #1da463;   /* Statuspunkt */

  --font: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --pad-x: clamp(24px, 6vw, 96px);
  --radius-btn: 12px;
  --radius-pill: 999px;
}

/* =========================================================================
   Reset & Grundlayout
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body, h1, h2, h3, p, ul, ol, address { margin: 0; }

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 1 0; display: flex; flex-direction: column; }

a { color: inherit; text-decoration: none; transition: opacity 150ms ease; }
a:hover { opacity: 0.7; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--bg-raised);
  color: var(--ink);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  z-index: 10;
  font-size: 14px;
}
.skip:focus { left: 16px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================================
   Kopfzeile
   ========================================================================= */

.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px var(--pad-x);
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand .name { font-size: 15px; font-weight: 600; }

.lang-toggle {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity 150ms ease;
}
.lang-toggle:hover { opacity: 0.7; }

/* =========================================================================
   Held (Startseite)
   ========================================================================= */

.hero {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px var(--pad-x);
  animation: rise 0.7s ease both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-badge);
  margin-bottom: 40px;
  background: var(--bg-raised);
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 36px;
}

.hero .intro {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-body);
  max-width: 52ch;
  margin: 0 0 52px;
  text-wrap: pretty;
}

.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 550;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 15px 28px;
  border-radius: var(--radius-btn);
  background: var(--bg-raised);
}

/* =========================================================================
   Fußzeile
   ========================================================================= */

.site-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 26px var(--pad-x);
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink-soft);
}
.site-foot .legal { display: flex; gap: 20px; }
.site-foot a { text-decoration: none; }

/* =========================================================================
   Fließtextseiten (Impressum, Datenschutz, 404)
   ========================================================================= */

.prose {
  width: 100%;
  max-width: 44rem;
  padding: 24px var(--pad-x) 64px;
  animation: rise 0.7s ease both;
}
.prose h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 24px 0 32px;
}
.prose h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
}
.prose p, .prose li, .prose address { color: var(--ink-body); line-height: 1.65; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose address { font-style: normal; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Sprachblöcke auf den Rechtsseiten: Standard ist Deutsch (auch ohne JS),
   lang.js setzt html[lang] und schaltet damit um */
html[lang="en"] .only-de { display: none; }
html:not([lang="en"]) .only-en { display: none; }

/* Hinweiskasten für noch fehlende Angaben — vor dem Livegang entfernen */
.todo {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--dot);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--ink-badge);
}
