/* Forkast — Wissensseiten.
   Gemeinsames Stylesheet für alle /wissen/-Seiten. Bewusst als eigene Datei
   statt inline wie auf der Startseite: Die Startseite ist 1,3 MB (Schriften und
   Bilder als base64), das wäre pro Artikel neu zu laden. Hier teilen sich alle
   Seiten Stylesheet und Schriften über den Browser-Cache — Ladezeit ist bei
   Content-Seiten ein Ranking-Faktor.
   Farben und Schriften stammen 1:1 aus der Startseite. */

@font-face {
  font-family: "Grotesk";
  src: url(/assets/fonts/grotesk-700.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Grotesk";
  src: url(/assets/fonts/grotesk-500.ttf) format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Mono";
  src: url(/assets/fonts/mono-700.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #FAF5EF;
  --card: #FFFFFF;
  --ink: #151515;
  --ink-soft: #5A5A54;
  --ink-faint: #9A9A94;
  --orange: #F54E00;
  --blue: #1D4AFF;
  --pink: #EC4899;
  --pink-bg: #FCE3EC;
  --yellow: #F7A501;
  --green: #1F8A4C;
  --border: #151515;
  --rule: rgba(21, 21, 21, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #17140F;
    --card: #221E18;
    --ink: #F5EFE6;
    --ink-soft: #C7BFB2;
    --ink-faint: #8B8478;
    --border: #F5EFE6;
    --rule: rgba(245, 239, 230, 0.16);
    --pink-bg: #3A2029;
  }
}
:root[data-theme="dark"] {
  --cream: #17140F;
  --card: #221E18;
  --ink: #F5EFE6;
  --ink-soft: #C7BFB2;
  --ink-faint: #8B8478;
  --border: #F5EFE6;
  --rule: rgba(245, 239, 230, 0.16);
  --pink-bg: #3A2029;
}
:root[data-theme="light"] {
  --cream: #FAF5EF;
  --card: #FFFFFF;
  --ink: #151515;
  --ink-soft: #5A5A54;
  --ink-faint: #9A9A94;
  --border: #151515;
  --rule: rgba(21, 21, 21, 0.12);
  --pink-bg: #FCE3EC;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

.shell { width: min(720px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Kopf ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0; flex-wrap: wrap;
}
.wordmark {
  font-family: "Grotesk", sans-serif; font-weight: 700; font-size: 21px;
  letter-spacing: -0.02em; text-decoration: none;
}
.nav-back { font-size: 14px; text-decoration: none; color: var(--ink-soft); }
.nav-back:hover { color: var(--ink); }

.mono {
  font-family: "Mono", ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px;
}

/* ---------- Artikel ---------- */
.crumbs { font-size: 13px; color: var(--ink-faint); margin: 8px 0 20px; }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

h1 {
  font-family: "Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(30px, 6vw, 44px); line-height: 1.1;
  letter-spacing: -0.03em; text-wrap: balance; margin: 0 0 14px;
}
h2 {
  font-family: "Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(21px, 4vw, 27px); line-height: 1.2;
  letter-spacing: -0.02em; text-wrap: balance; margin: 44px 0 12px;
}
h3 {
  font-family: "Grotesk", sans-serif; font-weight: 700;
  font-size: 19px; margin: 28px 0 6px;
}
p { margin: 0 0 18px; }
.lede { font-size: 20px; color: var(--ink-soft); margin-bottom: 26px; }
.meta { font-size: 13px; color: var(--ink-faint); margin: 0 0 28px; }

article ul, article ol { margin: 0 0 18px; padding-left: 22px; }
article li { margin-bottom: 9px; }

.hero-img {
  border-radius: 18px; margin: 0 0 30px; width: 100%;
  border: 1px solid var(--rule);
}
figure { margin: 30px 0; }
figure img { border-radius: 18px; border: 1px solid var(--rule); }
figcaption { font-size: 14px; color: var(--ink-faint); margin-top: 10px; }

/* Kurze Antwort ganz oben — beantwortet die Suchfrage sofort, statt sie
   hinter einer Einleitung zu verstecken. */
.answer {
  background: var(--card); border: 2px solid var(--border);
  border-radius: 18px; padding: 22px 24px; margin: 0 0 32px;
}
.answer p:last-child { margin-bottom: 0; }
.answer .mono { color: var(--orange); display: block; margin-bottom: 10px; }

.callout {
  background: var(--card); border-left: 4px solid var(--yellow);
  border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 26px 0;
  font-size: 17px;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--orange); }

/* Quellenangabe direkt am Satz — die Seiten geben Leitlinien wieder,
   sie empfehlen nicht selbst. */
.src { font-size: 15px; color: var(--ink-soft); }

.sources { font-size: 15px; color: var(--ink-soft); }
.sources li { margin-bottom: 8px; word-break: break-word; }

.disclaimer {
  border: 1px solid var(--rule); border-radius: 14px;
  padding: 18px 20px; margin: 40px 0 0;
  font-size: 15px; color: var(--ink-soft); background: var(--card);
}
.disclaimer p:last-child { margin-bottom: 0; }

/* ---------- Weiterlesen + Fuß ---------- */
.more { margin: 48px 0 0; }
.more-grid { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 620px) { .more-grid { grid-template-columns: 1fr 1fr; } }
.more-card {
  display: block; text-decoration: none; background: var(--card);
  border: 1px solid var(--rule); border-radius: 16px; padding: 18px 20px;
}
.more-card:hover { border-color: var(--border); }
.more-card strong { display: block; font-size: 17px; margin-bottom: 5px; }
.more-card span { font-size: 15px; color: var(--ink-soft); }

.cta {
  background: var(--pink-bg); border-radius: 20px;
  padding: 26px 24px; margin: 48px 0 0;
}
.cta h2 { margin-top: 0; }
.cta p { font-size: 17px; }
.cta a.btn {
  display: inline-block; background: var(--orange); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 13px 22px; border-radius: 12px;
}

footer {
  margin: 60px 0 40px; padding-top: 24px; border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--ink-faint);
}
footer a { color: var(--ink-faint); }

/* ---------- Übersichtsseite ---------- */
.hub-list { display: grid; gap: 18px; margin: 30px 0 0; }
@media (min-width: 620px) { .hub-list { grid-template-columns: 1fr 1fr; } }
.hub-card {
  display: block; text-decoration: none; background: var(--card);
  border: 1px solid var(--rule); border-radius: 18px; padding: 22px 24px;
}
.hub-card:hover { border-color: var(--border); }
.hub-card h2 { font-size: 20px; margin: 8px 0 6px; }
.hub-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }
