/* Trotzdem Hund — ein Stylesheet, keine Abhängigkeiten.
   Hell zuerst (das Thema heißt „durchatmen“), dunkel per Systemeinstellung.
   Schriften selbst gehostet, kein externer Aufruf, kein Cookie. */

@font-face {
  font-family: 'TH Display';
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 600 800; font-style: normal; font-display: swap;
  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+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'TH Text';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
  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+2212, U+FEFF, U+FFFD;
}

:root {
  --paper: #FCFAF6;
  --paper-2: #F4EFE6;
  --paper-3: #EDE6D9;
  --ink: #1B2B27;
  --ink-2: #3D4F49;
  --ink-3: #6B7A74;
  --line: #E1D9CB;
  --accent: #A94E28;
  --accent-2: #8E3F1E;
  --accent-soft: #F7E9E0;
  --calm: #2C6F62;
  --calm-soft: #E3EFEB;
  --warn-soft: #FBF1DA;
  --warn-line: #E2C378;
  --shadow: 0 1px 2px rgba(27,43,39,.05), 0 10px 30px -18px rgba(27,43,39,.28);
  --radius: 14px;
  --shell: 74rem;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121917; --paper-2: #19221F; --paper-3: #212C29;
    --ink: #ECE5D9; --ink-2: #C3CDC8; --ink-3: #93A09B;
    --line: #2C3835;
    --accent: #E08A5E; --accent-2: #EFA57C; --accent-soft: #2A211C;
    --calm: #6FBFAE; --calm-soft: #1B2926;
    --warn-soft: #2A2517; --warn-line: #6B5A2C;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -20px rgba(0,0,0,.8);
  }
}

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

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'TH Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem; line-height: 1.72; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand__name, .btn {
  font-family: 'TH Display', system-ui, sans-serif;
  font-weight: 700; line-height: 1.18; letter-spacing: -.015em;
}
h1 { font-size: clamp(1.95rem, 1.25rem + 2.6vw, 3.05rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.85rem); margin: 2.6rem 0 .8rem; }
h3 { font-size: 1.16rem; margin: 1.9rem 0 .5rem; }
p, ul, ol { margin: 0 0 1.15rem; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--accent-2); }
strong { font-weight: 650; }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.shell { width: min(100% - 2.4rem, var(--shell)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: .5rem; z-index: 99;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--calm); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------------ Kopf */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .shell { display: flex; align-items: center; gap: 1rem; min-height: 4.2rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
.brand__mark { border-radius: 9px; }
.brand__name { font-size: 1.14rem; letter-spacing: -.02em; white-space: nowrap; }
.brand__sub { color: var(--accent); }
.brand--foot { margin-bottom: .8rem; }

.nav { margin-left: auto; display: flex; gap: 1.35rem; align-items: center; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-toggle {
  display: none; margin-left: auto; font: inherit; font-size: .92rem;
  background: var(--paper-2); color: var(--ink); border: 1px solid var(--line);
  border-radius: 9px; padding: .45rem .85rem; cursor: pointer;
}

@media (max-width: 61rem) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 4.2rem 0 auto; display: none; flex-direction: column;
    align-items: stretch; gap: 0; padding: .5rem 1.2rem 1.2rem;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav[data-open="1"] { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ Hero */
.hero { padding: clamp(2.6rem, 1rem + 6vw, 5rem) 0 1.5rem; max-width: 54rem; }
.hero--slim { padding-bottom: .5rem; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: var(--measure); }
.kicker {
  display: inline-block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 650; color: var(--accent); margin-bottom: .7rem;
}
.lead { font-size: 1.14rem; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none;
  font-size: 1rem; font-weight: 700; border: 1px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 .6rem; }
.badge {
  display: inline-block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--calm); background: var(--calm-soft);
  padding: .28rem .6rem; border-radius: 999px; margin-bottom: .6rem;
}

/* -------------------------------------------------------------- Artikel */
.article-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 0 3.2rem;
  align-items: start; padding: 2.2rem 0 3rem;
}
.article-head { grid-column: 1 / -1; max-width: var(--measure); }
.article-shell > .article { grid-column: 1; grid-row: 2; }
.article-shell > .toc { grid-column: 2; grid-row: 2; }
@media (max-width: 61rem) {
  .article-shell { grid-template-columns: 1fr; }
  .article-head { order: 1; }
  .article-shell > .toc { order: 2; grid-column: 1; grid-row: auto; }
  .article-shell > .article { order: 3; grid-column: 1; grid-row: auto; }
}

.article { max-width: var(--measure); min-width: 0; }
.article > p, .article > ul, .article > ol { max-width: var(--measure); }
.article ul, .article ol { padding-left: 1.15rem; }
.article li { margin-bottom: .45rem; }
.article li::marker { color: var(--accent); }

.crumbs {
  list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0;
  margin: 0 0 1.1rem; font-size: .86rem; color: var(--ink-3);
}
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

.meta {
  display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .86rem;
  color: var(--ink-3); border-bottom: 1px solid var(--line);
  padding-bottom: 1rem; margin-bottom: 1.8rem;
}
.meta strong { color: var(--ink-2); font-weight: 600; }
.meta a { color: var(--ink-2); }

/* Antwort-Chunk: die Passage, die Google und Sprachmodelle herausziehen sollen. */
.answer {
  background: var(--calm-soft); border-left: 3px solid var(--calm);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.05rem 1.25rem .35rem; margin: 1.2rem 0 1.6rem;
}
.answer__label {
  display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--calm); margin-bottom: .35rem;
}
.answer p { margin-bottom: .8rem; }

.note {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.05rem 1.2rem .1rem; margin: 1.8rem 0;
  font-size: .97rem;
}
.note--key { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.note--med { background: var(--warn-soft); border-color: var(--warn-line); }

/* Artikelbild. Seitenverhältnis steht fest, damit beim Laden nichts springt. */
.foto { margin: 1.6rem 0 1.8rem; max-width: var(--measure); }
.foto img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; border-radius: var(--radius); background: var(--paper-2);
}
.foto figcaption {
  margin-top: .6rem; font-size: .88rem; color: var(--ink-3); line-height: 1.5;
}
/* Auf der Startseite darf es breiter sein, dort trägt es die Stimmung. */
.hero + .foto { max-width: 54rem; margin-top: 2rem; }
.hero + .foto img { border-radius: 18px; }

/* Rechtlich erzwungene Kästen. Stehen immer über dem Text, nie darunter,
   und sind deshalb bewusst auffälliger als eine normale Randnotiz. */
.legalbox {
  border-radius: var(--radius); padding: 1rem 1.15rem .25rem;
  margin: 1.4rem 0; font-size: .95rem; line-height: 1.6;
  border: 1px solid; max-width: var(--measure);
}
.legalbox p { margin-bottom: .75rem; }
.legalbox__title {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; margin-bottom: .4rem !important;
}
.legalbox__more { font-size: .88rem; }
.legalbox--med {
  background: var(--warn-soft); border-color: var(--warn-line); color: var(--ink);
}
.legalbox--med .legalbox__title { color: #8A6A1F; }
.legalbox--ad {
  background: var(--paper-2); border-color: var(--line); color: var(--ink-2);
}
.legalbox--ad .legalbox__title { color: var(--ink-3); }
@media (prefers-color-scheme: dark) { .legalbox--med .legalbox__title { color: #D8B564; } }

.med-band {
  border-top: 1px solid var(--line); margin: 2.2rem 0 0; padding-top: 1.2rem;
  font-size: .86rem; color: var(--ink-2);
}
.med-band strong { color: var(--ink); font-weight: 650; }
.med-band a { margin-left: .4rem; }

.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.85rem; margin-bottom: .6rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55rem; width: 1.05rem; height: .55rem;
  border-left: 2.5px solid var(--calm); border-bottom: 2.5px solid var(--calm);
  transform: rotate(-45deg);
}

.steps { counter-reset: s; list-style: none; padding-left: 0; }
.steps > li { counter-increment: s; position: relative; padding-left: 2.9rem; margin-bottom: 1.1rem; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: -.05rem;
  width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem;
  display: grid; place-items: center;
}

.table-wrap { overflow-x: auto; margin: 1.6rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 30rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; color: var(--ink); background: var(--paper-2); }

blockquote {
  margin: 1.8rem 0; padding: .2rem 0 .2rem 1.2rem;
  border-left: 3px solid var(--accent); color: var(--ink-2); font-size: 1.08rem;
}

/* ----------------------------------------------------------------- TOC */
.toc {
  position: sticky; top: 5.4rem; font-size: .9rem;
  border-left: 1px solid var(--line); padding-left: 1.2rem;
}
.toc__title {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 .7rem; font-weight: 700;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; margin-bottom: .55rem; line-height: 1.45; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.toc a[data-active="1"] { color: var(--accent); font-weight: 600; }
@media (max-width: 61rem) {
  .toc {
    position: static; border-left: 0; padding: 1.1rem 1.2rem .3rem;
    background: var(--paper-2); border-radius: var(--radius); margin-bottom: 2rem;
  }
}

/* ----------------------------------------------------------------- FAQ */
.faq { margin: 1rem 0 2rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative;
  font-weight: 600; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: .2rem; top: .85rem;
  font-size: 1.4rem; color: var(--accent); line-height: 1;
}
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding-bottom: .4rem; color: var(--ink-2); }

/* -------------------------------------------------------------- Quellen */
.sources { margin-top: 2.6rem; font-size: .89rem; color: var(--ink-3); }
.sources h2 { font-size: 1.05rem; margin-bottom: .7rem; }
.sources ol { padding-left: 1.2rem; }
.sources li { margin-bottom: .5rem; line-height: 1.55; }

/* --------------------------------------------------------------- Karten */
.cards {
  display: grid; gap: 1rem; margin: 1.2rem 0 2rem;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}
.card {
  display: flex; flex-direction: column; gap: .35rem; text-decoration: none;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.2rem; color: var(--ink); transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.card__kicker {
  font-size: .72rem; letter-spacing: .11em; text-transform: uppercase;
  font-weight: 700; color: var(--accent);
}
.card__title { font-family: 'TH Display', sans-serif; font-weight: 700; font-size: 1.03rem; line-height: 1.3; }
.card__teaser { font-size: .92rem; color: var(--ink-3); line-height: 1.55; }
.related { margin-top: 2.8rem; }
.related h2 { margin-bottom: .4rem; }

/* ------------------------------------------------------------- Buch-CTA */
.bookcta {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.6rem; align-items: center;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; margin: 2.6rem 0;
}
.bookcta__cover img { border-radius: 8px; box-shadow: var(--shadow); display: block; width: 100%; height: auto; }
.bookcta h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.bookcta p { margin-bottom: .8rem; font-size: .98rem; color: var(--ink-2); }
.bookcta__actions { margin: 0 0 .4rem; }
.bookcta__note { font-size: .78rem; color: var(--ink-3); margin: 0; }
@media (max-width: 40rem) {
  .bookcta { grid-template-columns: 1fr; text-align: left; }
  .bookcta__cover { max-width: 8.5rem; }
}

/* -------------------------------------------------------------- Startseite */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 55rem) { .split { grid-template-columns: 1fr; gap: 1.8rem; } }
.section { padding: 3rem 0; border-top: 1px solid var(--line); }
.section__intro { max-width: var(--measure); }
.panel {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.6rem .5rem;
}
.cover-big { max-width: 20rem; border-radius: 10px; box-shadow: var(--shadow); }
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 1.5rem 0; }
.stat { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
/* Beide sind span, also ohne display:block laeuft die Zahl in die
   Beschriftung hinein. Ist genau einmal passiert und sah kaputt aus. */
.stat__num {
  display: block; font-family: 'TH Display', sans-serif; font-size: 1.9rem;
  font-weight: 800; color: var(--accent); line-height: 1.1; margin-bottom: .35rem;
}
.stat__label { display: block; font-size: .9rem; color: var(--ink-3); line-height: 1.5; }

/* ------------------------------------------------------------------ Fuß */
.site-footer {
  background: var(--paper-2); border-top: 1px solid var(--line);
  padding: 3rem 0 2rem; margin-top: 3rem; font-size: .92rem; color: var(--ink-2);
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr repeat(4, 1fr); }
@media (max-width: 72rem) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 55rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 { font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .7rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center;
  border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: 1.2rem;
  font-size: .82rem; color: var(--ink-3);
}
.footer-legal a { color: var(--ink-3); }
.footer-legal__note { flex-basis: 100%; line-height: 1.5; }

@media print {
  .site-header, .site-footer, .toc, .bookcta, .related, .nav-toggle { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article-shell { display: block; }
}
