/* GG — Genesungsgeschichten: modernes, ruhiges Lesedesign */
:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --ink: #1c1c1a;
  --muted: #6b6b64;
  --line: #e6e4dc;
  --accent: #0f766e;
  --accent-soft: #e0f2f0;
  --ok: #15803d;      --ok-bg: #dcfce7;
  --part: #b45309;    --part-bg: #fef3c7;
  --some: #c2410c;    --some-bg: #ffedd5;
  --none: #6b6b64;    --none-bg: #eceae4;
  --sevhigh: #b91c1c; --sevhigh-bg: #fee2e2;
  --sevmed: #a16207;  --sevmed-bg: #fef9c3;
  --sevlow: #166534;  --sevlow-bg: #ecfccb;
  --mark: #fde68a;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
mark { background: var(--mark); padding: 0 3px; border-radius: 4px; }
code { background: #efede6; padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* header */
.site-header { padding: 44px 0 20px; }
.site-header h1 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 6px; letter-spacing: -0.02em; }
.site-header .sub { color: var(--muted); max-width: 70ch; margin: 0; }
.site-header .count { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* search */
.searchbar { display: flex; gap: 10px; margin: 26px 0 8px; max-width: 640px; }
.searchbar input {
  flex: 1; padding: 13px 18px; font-size: 17px; border: 1.5px solid var(--line);
  border-radius: 999px; background: var(--card); outline: none;
}
.searchbar input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.searchbar button {
  padding: 13px 26px; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--accent); border: 0; border-radius: 999px; cursor: pointer;
}
.searchbar button:hover { filter: brightness(1.08); }
.hint { color: var(--muted); font-size: 13.5px; margin: 2px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; align-items: center; }
.chip {
  font-size: 13px; padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid #bfe3df;
}
.chip.hit { background: var(--ok-bg); color: var(--ok); border-color: #bbe5c8; }
.chip.half { opacity: .65; }
.resultline { color: var(--muted); margin: 10px 0 22px; font-size: 14.5px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; margin: 10px 0 40px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 16px; display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(28, 28, 26, .08); transform: translateY(-2px); }
.card h3 { margin: 2px 0 0; font-size: 18.5px; line-height: 1.35; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card .illness { color: var(--muted); font-size: 14.5px; }
.card .snippet { font-size: 14.5px; color: #3c3c37; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.card .foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.score { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; font-weight: 600; }

/* badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.b-ok    { background: var(--ok-bg);    color: var(--ok); }
.b-part  { background: var(--part-bg);  color: var(--part); }
.b-some  { background: var(--some-bg);  color: var(--some); }
.b-none  { background: var(--none-bg);  color: var(--none); }
.b-sev-high { background: var(--sevhigh-bg); color: var(--sevhigh); }
.b-sev-med  { background: var(--sevmed-bg);  color: var(--sevmed); }
.b-sev-low  { background: var(--sevlow-bg);  color: var(--sevlow); }
.b-plain { background: #efede6; color: var(--muted); font-weight: 500; }

/* pager */
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 8px 0 48px; }
.pager a, .pager span {
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  font-size: 14px; color: var(--ink);
}
.pager .cur { background: var(--accent); color: #fff; border-color: var(--accent); }

/* story page */
.crumbs { margin: 26px 0 4px; font-size: 14px; color: var(--muted); }
.story-head { padding: 8px 0 18px; }
.story-head h1 { font-size: clamp(26px, 4vw, 36px); margin: 4px 0 8px; letter-spacing: -.02em; }
.story-head .meta { display: flex; flex-wrap: wrap; gap: 6px; }

.facts {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 18px 0 26px;
}
.facts dl { display: grid; grid-template-columns: 190px 1fr; gap: 8px 18px; margin: 0; }
.facts dt { color: var(--muted); font-size: 13.5px; padding-top: 2px; }
.facts dd { margin: 0; font-size: 14.5px; }
@media (max-width: 640px) { .facts dl { grid-template-columns: 1fr; } .facts dt { margin-top: 6px; } }

.summary {
  background: var(--accent-soft); border: 1px solid #bfe3df; border-radius: var(--radius);
  padding: 18px 24px; margin: 0 0 30px; font-size: 16.5px;
}
.summary .label { font-weight: 700; color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 6px; }

h2.section { font-size: 21px; margin: 34px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.transscript { font-family: var(--serif); font-size: 17.5px; line-height: 1.75; max-width: 78ch; }
.transscript h2 { font-size: 22px; margin: 30px 0 10px; }
.transscript h3 { font-size: 19px; margin: 26px 0 8px; }
.transscript h4 { font-size: 17px; margin: 22px 0 6px; }
.transscript h5 { font-size: 16px; margin: 18px 0 6px; }
.transscript ul, .transscript ol { padding-left: 26px; }
.transscript li { margin: 4px 0; }
.transscript blockquote { border-left: 3px solid var(--line); margin: 14px 0; padding: 2px 18px; color: var(--muted); font-style: italic; }
.md-img { margin: 20px 0; }
.md-img img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }

.fazit { background: var(--accent-soft); border: 1px solid #bfe3df; border-radius: 12px; padding: 14px 18px; margin: 18px 0 6px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.metric .v { font-weight: 700; font-size: 15.5px; }
.metric .l { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
details.details-transcript { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 14px 20px; margin-top: 26px; }
details.details-transcript summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 4px 0; }
details.details-transcript[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }

.attribution {
  border: 1.5px solid #bfe3df; background: linear-gradient(0deg, #f2fbfa, #fff);
  border-radius: var(--radius); padding: 16px 22px; margin: 34px 0;
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px;
}
.attribution .lbl { font-weight: 700; color: var(--accent); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; margin-right: 4px; }
.attribution a { font-weight: 600; word-break: break-all; }
.btn {
  display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--accent);
  color: #fff; font-weight: 600; font-size: 14px;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }

.site-footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 22px 0 40px; color: var(--muted); font-size: 13.5px; }
.notfound { text-align: center; padding: 80px 0; }
.notfound h1 { font-size: 40px; margin-bottom: 8px; }.btn-big { padding: 13px 30px; font-size: 16.5px; }
.para-de { max-width: 80ch; font-size: 16.5px; line-height: 1.7; margin: 10px 0; }

/* ganze Karte klickbar (Overlay-Trick, valides HTML) */
.card { position: relative; }
.card-cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; outline: none; }
.card-cover:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.card-cover:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.card h3 a, .card .foot a { position: relative; z-index: 2; }
