/* =====================================================================
   kriebelmuecken.de - Wikipedia-Lite mit Daten-Visualisierungen
   Palette: #FAFBF8 BG, #2D7A8F Teal (Akzent), #C7E0DC Hellblau-Grün,
            #1E2E33 Ink, #6B7B7F Muted, #E2E8E6 Border
   Fonts:   Fraunces (Headlines) + Inter (Body), lokal
   ===================================================================== */

/* latin */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/Fraunces-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+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/Fraunces-LatinExt.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}
/* latin */
@font-face {
  font-family: 'Inter';
  src: url('/assets/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+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-LatinExt.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: #FAFBF8;
  --bg-soft: #F1F4F2;
  --paper: #FFFFFF;
  --ink: #1E2E33;
  --ink-soft: #3A4549;
  --muted: #6B7B7F;
  --accent: #2D7A8F;
  --accent-dark: #1F5B6B;
  --accent-soft: #C7E0DC;
  --accent-tint: #E8F1EF;
  --rule: #E2E8E6;
  --warn: #B85C00;
  --warn-bg: #FFFCF0;
  --warn-border: #E8D89A;
  --warn-dark: #7A5A00;
  --danger: #A33A2A;
  --ok: #4A7C3D;
  --link: #2D7A8F;
  --maxw-wide: 1180px;
  --infobox-w: 320px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
h1 {
  font-size: 2.2rem;
  margin: 0.3em 0 0.2em;
  font-weight: 400;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4em;
}
h2 {
  font-size: 1.55rem;
  margin: 2.2rem 0 0.6em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.3em;
  font-weight: 500;
}
h3 { font-size: 1.15rem; margin: 1.6rem 0 0.4em; }
h4 { font-size: 1rem; margin: 1.2rem 0 0.3em; font-weight: 600; font-family: 'Inter', sans-serif; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin: 0.2em 0; }
hr { border: none; border-top: 1px solid var(--rule); margin: 2rem 0; }

.skiplink {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.6em 1em;
  z-index: 100;
}
.skiplink:focus { left: 0; outline: 3px solid var(--accent-soft); }

/* ------- Layout ------- */
.wrap { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 1.5rem; }
main.layout {
  display: grid;
  grid-template-columns: 1fr var(--infobox-w);
  gap: 2.2rem;
  margin: 1.5rem auto 3rem;
  align-items: start;
  max-width: var(--maxw-wide);
  padding: 0 1.5rem;
}
@media (max-width: 880px) { main.layout { grid-template-columns: 1fr; } }
main.article-only {
  max-width: 820px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
}

/* ------- Header (offiziell mit 3px accent-border) ------- */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--accent);
  padding: 0.8rem 0;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw-wide); margin: 0 auto;
  padding: 0 1.5rem; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--ink); text-decoration: none;
  font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 400;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 46px; height: 24px; color: var(--accent); flex-shrink: 0; }
.brand-text { color: var(--ink); }
.brand-dot { color: var(--accent); }
.brand-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.6rem;
  border-left: 1px solid var(--rule);
  padding-left: 0.7rem;
}
@media (max-width: 640px) { .brand-sub { display: none; } }

.saison {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--accent-dark);
  background: var(--accent-tint);
  padding: 0.3em 0.75em;
  border: 1px solid var(--accent-soft);
  border-radius: 3px;
  font-weight: 500;
  white-space: nowrap;
}
.saison-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.saison.is-active .saison-dot {
  background: var(--accent);
  animation: puls 2.4s ease-in-out infinite;
}
.saison.is-rest { color: var(--muted); background: var(--bg-soft); border-color: var(--rule); }
@keyframes puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,122,143,0.35); }
  50%      { box-shadow: 0 0 0 5px rgba(45,122,143,0); }
}

/* ------- Hauptnavigation ------- */
.site-nav {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.site-nav .wrap { padding: 0 1.5rem; }
.site-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 0.1rem;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: 0.7rem 1rem;
  color: var(--ink); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
  background: var(--paper);
  text-decoration: none;
}

/* ------- Article-Tabs (Wikipedia-like) ------- */
.article-tabs { background: var(--paper); border-bottom: 1px solid var(--rule); }
.article-tabs .wrap { padding: 0 1.5rem; }
.article-tabs ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 0.1rem; font-size: 0.82rem;
}
.article-tabs li { margin: 0; }
.article-tabs a {
  display: block; padding: 0.5rem 0.9rem;
  color: var(--muted); text-decoration: none;
  border: 1px solid transparent; border-bottom: 0;
  border-radius: 3px 3px 0 0;
}
.article-tabs a.cur {
  color: var(--ink); background: var(--bg);
  border-color: var(--rule); margin-bottom: -1px;
  padding-bottom: calc(0.5rem + 1px);
}
.article-tabs a:hover:not(.cur) {
  background: var(--bg-soft);
  color: var(--ink);
}

/* ------- Breadcrumbs (jetzt nur klein im Article) ------- */
.breadcrumbs { font-size: 0.82rem; color: var(--muted); margin: 0 0 0.8rem; }
.breadcrumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.3em;
}
.breadcrumbs li:not(:last-child)::after {
  content: " / "; color: var(--rule); margin-left: 0.3em;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ------- Article-Body ------- */
.article { min-width: 0; }
.article .meta-row {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.article .meta-row b {
  color: var(--ink-soft);
  font-weight: 500;
}

/* Last-Edit Banner */
.last-edit {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 0.5rem 0.85rem;
  border-left: 2px solid var(--accent);
  margin: 0 0 1.5rem;
  border-radius: 0 4px 4px 0;
}
.last-edit b { color: var(--ink-soft); font-weight: 500; }

/* Lead-Absatz mit erstem Buchstaben groß */
.article .lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.article .lead::first-letter {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.15em 0 0;
  color: var(--accent-dark);
  font-weight: 300;
}

/* TOC */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  padding: 1rem 1.3rem;
  margin: 1.2rem 0 1.8rem;
  border-radius: 4px;
  display: inline-block;
  min-width: 280px;
  max-width: 100%;
}
.toc strong {
  display: block; margin: 0 0 0.5rem;
  font-family: 'Fraunces', serif; font-size: 1rem;
  color: var(--ink); font-weight: 500;
}
.toc ol { margin: 0; padding-left: 1.4rem; font-size: 0.92rem; }
.toc li { margin: 0.2rem 0; }
.toc ol ol { margin-top: 0.2rem; padding-left: 1.2rem; font-size: 0.88rem; }
.toc a { color: var(--link); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Faktenkasten (gelblich, amtlich) */
.fact {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 4px;
  padding: 0.9rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.92rem;
  display: flex; gap: 0.8rem; align-items: flex-start;
}
.fact-icon {
  width: 24px; height: 24px;
  background: #C99700; color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-family: 'Fraunces', serif; font-size: 0.9rem;
  flex-shrink: 0; margin-top: 0.1rem;
}
.fact strong {
  color: var(--warn-dark);
  display: block; margin-bottom: 0.2rem;
  font-family: 'Fraunces', serif;
}
.fact p { margin: 0; }

/* Hinweis-Boxen (neutral, Teal) */
.hinweis {
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1.1rem;
  margin: 1.2rem 0;
  border-radius: 0 4px 4px 0;
  font-size: 0.93rem;
}
.hinweis strong {
  color: var(--accent-dark);
  font-family: 'Fraunces', serif;
  display: block; margin-bottom: 0.2rem;
}
.hinweis p:last-child { margin-bottom: 0; }

/* Fußnoten */
sup.ref {
  font-size: 0.7rem;
  color: var(--accent-dark);
  font-weight: 600;
  padding: 0 0.15em;
}
sup.ref a { color: var(--accent-dark); text-decoration: none; }
sup.ref a:hover { background: var(--accent-tint); text-decoration: underline; }

/* Quellen-Liste */
.quellen {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
}
.quellen h2 {
  font-size: 1.25rem;
  border: 0;
  padding: 0;
  margin: 0 0 0.6em;
}
.quellen ol { padding-left: 1.4em; color: var(--ink-soft); }
.quellen li { margin: 0.3em 0; }
.quellen em { font-style: italic; color: var(--ink); }

/* Figure - voll auf Article-Breite */
figure { margin: 1.5rem 0; }
figure img,
figure picture,
figure picture img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
figure img { border: 1px solid var(--rule); }
figcaption {
  font-size: 0.83rem; color: var(--muted);
  margin-top: 0.4rem; font-style: italic;
}
figcaption a { color: var(--muted); }

/* Lightbox-Trigger - macht Bild klickbar */
.lightbox-trigger {
  display: block;
  cursor: zoom-in;
  position: relative;
}
.lightbox-trigger::after {
  content: "⌕";
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  width: 28px; height: 28px;
  background: rgba(30, 46, 51, 0.7);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.lightbox-trigger:hover::after,
.lightbox-trigger:focus-visible::after { opacity: 1; }

/* Lightbox-Overlay (per JS injiziert) */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 33, 0.94);
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 2rem;
  cursor: zoom-out;
  animation: lb-fade 0.2s ease-out;
}
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.lightbox-overlay figcaption {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-style: italic;
  max-width: 80vw;
  text-align: center;
}
.lightbox-overlay .lb-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.lightbox-overlay .lb-close:hover,
.lightbox-overlay .lb-close:focus-visible {
  background: rgba(255, 255, 255, 0.25);
  outline: 2px solid #fff;
}
@keyframes lb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.lightbox-open { overflow: hidden; }

/* Disclaimer - medizinischer Hinweis */
.disclaimer {
  background: #FFF4F0;
  border-left: 4px solid var(--danger);
  padding: 0.95rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.93rem;
  border-radius: 0 4px 4px 0;
}
.disclaimer strong { color: var(--danger); }
.disclaimer .notfall {
  display: block;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(163, 58, 42, 0.3);
}
.disclaimer .notfall-number {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--danger);
  padding: 0 0.2em;
}

/* ------- Steckbrief/Infobox rechts ------- */
aside.infobox {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 0.85rem;
  overflow: hidden;
  position: sticky; top: 1rem;
}
.infobox .ibhead {
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1rem;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
}
.infobox .ibhead-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--accent-soft);
  font-style: italic;
  font-weight: 400;
  margin-top: 0.2rem;
}
.infobox .ibsub {
  background: var(--accent-dark);
  color: var(--accent-soft);
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  text-align: center;
  font-style: italic;
  font-family: 'Fraunces', serif;
}
.infobox .ibimg {
  border-bottom: 1px solid var(--rule);
  background: var(--bg-soft);
  margin: 0;
}
.infobox .ibimg img { width: 100%; height: auto; display: block; border: 0; border-radius: 0; }
.infobox .ibimg figcaption {
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}
.infobox .ibsection {
  padding: 0.6rem 1rem;
  background: var(--bg-soft);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.infobox dl {
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
}
.infobox dt {
  padding: 0.45rem 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.infobox dd {
  margin: 0;
  padding: 0.45rem 1rem;
  color: var(--ink);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--rule);
}
.infobox dt:last-of-type,
.infobox dd:last-of-type { border-bottom: 0; }
.infobox em { font-style: italic; color: var(--accent-dark); }
.infobox .ibfoot {
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  text-align: center;
}

/* ------- Themen-Cards (für Hub-Übersicht und Spoke-Cross-Sells) ------- */
.kapitel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
}
.kapitel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s;
  display: block;
  position: relative;
}
.kapitel:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
  text-decoration: none;
  transform: translateY(-2px);
}
.kapitel .arrow { color: var(--accent); float: right; font-family: 'Fraunces', serif; }
.kapitel h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 0.3em;
  font-weight: 500;
}
.kapitel p { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

/* Status-Cards (für Hub) */
.status-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.status {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  position: relative;
  overflow: hidden;
}
.status::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
}
.status.is-warn::before { background: var(--warn); }
.status.is-ok::before { background: var(--ok); }
.status .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.status .value {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.1;
  font-weight: 500;
}
.status .unit {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  margin-left: 0.2em;
}
.status .sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

/* ------- Daten-Visualisierungen (SVG-Charts) ------- */
.chart-block {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
}
.chart-block h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.4rem;
  font-weight: 600;
}
.chart-block .ctitle {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 500;
}
.chart-block .csub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.6rem;
  font-style: italic;
}

/* SAISONKALENDER */
.saison-svg { width: 100%; height: auto; display: block; }
.saison-svg .m-bg { fill: var(--bg-soft); stroke: var(--rule); stroke-width: 1; }
.saison-svg .m-active { fill: var(--accent-soft); stroke: var(--accent); }
.saison-svg .m-peak { fill: var(--accent); stroke: var(--accent-dark); }
.saison-svg .m-current { stroke: var(--accent-dark); stroke-width: 3; }
.saison-svg .m-label { font-family: 'Inter', sans-serif; font-size: 11px; fill: var(--ink-soft); font-weight: 500; text-anchor: middle; }
.saison-svg .m-label-active { fill: var(--accent-dark); font-weight: 600; }
.saison-svg .m-label-peak { fill: #fff; }

/* TAGESAKTIVITAET */
.day-svg { width: 100%; height: auto; display: block; }
.day-svg .axis { stroke: var(--rule); stroke-width: 1; }
.day-svg .grid { stroke: var(--rule); stroke-width: 0.5; stroke-dasharray: 2 3; }
.day-svg .area { fill: var(--accent-soft); opacity: 0.6; }
.day-svg .curve { fill: none; stroke: var(--accent); stroke-width: 2; }
.day-svg .peak { fill: var(--accent-dark); }
.day-svg .label { font-family: 'Inter', sans-serif; font-size: 10px; fill: var(--muted); }
.day-svg .label-peak { fill: var(--accent-dark); font-weight: 600; font-size: 11px; }

/* GROESSENVERGLEICH */
.compare-svg { width: 100%; height: auto; display: block; background: var(--bg-soft); border-radius: 4px; }
.compare-svg .scale { stroke: var(--ink-soft); stroke-width: 1.5; }
.compare-svg .scale-tick { stroke: var(--ink-soft); stroke-width: 1; }
.compare-svg .scale-label { font-family: 'Inter', sans-serif; font-size: 9px; fill: var(--muted); text-anchor: middle; }
.compare-svg .ins-body { fill: var(--ink); }
.compare-svg .ins-label { font-family: 'Inter', sans-serif; font-size: 11px; fill: var(--ink-soft); text-anchor: middle; font-weight: 500; }
.compare-svg .ins-size { font-family: 'Fraunces', serif; font-size: 10px; fill: var(--accent-dark); text-anchor: middle; font-style: italic; }
.compare-svg .highlight rect { fill: var(--accent-tint); }

/* DACH-KARTE */
.map-svg { width: 100%; height: auto; display: block; }
.map-svg .country { fill: var(--bg-soft); stroke: var(--ink-soft); stroke-width: 1; }
.map-svg .country-label { font-family: 'Inter', sans-serif; font-size: 11px; fill: var(--ink-soft); font-weight: 600; text-anchor: middle; }
.map-svg .hotspot { fill: var(--accent); opacity: 0.55; }
.map-svg .hotspot-ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.4; }
.map-svg .city { font-family: 'Inter', sans-serif; font-size: 8px; fill: var(--ink-soft); text-anchor: middle; }

/* LEBENSZYKLUS */
.cycle-svg { width: 100%; height: auto; display: block; max-width: 480px; margin: 0 auto; }
.cycle-svg .stage { fill: var(--paper); stroke: var(--accent); stroke-width: 1.5; }
.cycle-svg .stage-icon { fill: var(--accent-dark); }
.cycle-svg .stage-label { font-family: 'Inter', sans-serif; font-size: 12px; fill: var(--ink); font-weight: 600; text-anchor: middle; }
.cycle-svg .stage-sub { font-family: 'Inter', sans-serif; font-size: 9px; fill: var(--muted); text-anchor: middle; }
.cycle-svg .arrow { fill: none; stroke: var(--accent); stroke-width: 1.5; marker-end: url(#arrowhead); }
.cycle-svg .center-label { font-family: 'Fraunces', serif; font-size: 13px; fill: var(--ink-soft); text-anchor: middle; font-style: italic; }

/* BISSVERLAUF */
.biss-svg { width: 100%; height: auto; display: block; }
.biss-svg .timeline-line { stroke: var(--accent); stroke-width: 2; }
.biss-svg .phase-bg { fill: var(--bg-soft); stroke: var(--rule); stroke-width: 1; rx: 4; }
.biss-svg .phase-dot { fill: var(--accent); stroke: var(--paper); stroke-width: 2; }
.biss-svg .phase-dot.crit { fill: var(--warn); }
.biss-svg .phase-title { font-family: 'Fraunces', serif; font-size: 12px; fill: var(--ink); font-weight: 500; text-anchor: middle; }
.biss-svg .phase-time { font-family: 'Inter', sans-serif; font-size: 10px; fill: var(--accent-dark); font-weight: 600; text-anchor: middle; }
.biss-svg .phase-desc { font-family: 'Inter', sans-serif; font-size: 9.5px; fill: var(--muted); text-anchor: middle; }

/* REPELLENT-WIRKDAUER */
.rep-svg { width: 100%; height: auto; display: block; }
.rep-svg .bar-bg { fill: var(--bg-soft); }
.rep-svg .bar { fill: var(--accent); }
.rep-svg .bar.weak { fill: var(--accent-soft); }
.rep-svg .axis-line { stroke: var(--rule); stroke-width: 1; }
.rep-svg .grid-line { stroke: var(--rule); stroke-width: 0.5; stroke-dasharray: 2 3; }
.rep-svg .rep-label { font-family: 'Inter', sans-serif; font-size: 12px; fill: var(--ink); font-weight: 500; }
.rep-svg .rep-value { font-family: 'Fraunces', serif; font-size: 11px; fill: var(--accent-dark); font-weight: 600; }
.rep-svg .axis-label { font-family: 'Inter', sans-serif; font-size: 10px; fill: var(--muted); text-anchor: middle; }

/* ------- Tabellen ------- */
table.compare {
  width: 100%; border-collapse: collapse;
  margin: 1.5rem 0; font-size: 0.93rem;
}
table.compare th, table.compare td {
  padding: 0.7rem 0.8rem; text-align: left;
  border-bottom: 1px solid var(--rule); vertical-align: top;
}
table.compare th {
  background: var(--bg-soft);
  font-family: 'Fraunces', serif;
  font-weight: 500; color: var(--ink);
}
table.compare tr:hover td { background: var(--accent-tint); }
table.compare .ja { color: var(--ok); font-weight: 600; }
table.compare .nein { color: var(--muted); }
table.compare .achtung { color: var(--warn); font-weight: 600; }

/* ------- Akkordeon (Fallenbau) ------- */
details.fallenbau {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin: 0.6rem 0;
}
details.fallenbau summary {
  padding: 1rem 1.2rem; cursor: pointer;
  font-family: 'Fraunces', serif; font-size: 1.05rem;
  color: var(--ink); list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
details.fallenbau summary::-webkit-details-marker { display: none; }
details.fallenbau summary::after {
  content: "+"; color: var(--accent);
  font-size: 1.4rem; transition: transform 0.2s; line-height: 1;
}
details.fallenbau[open] summary::after { transform: rotate(45deg); }
details.fallenbau[open] summary {
  border-bottom: 1px solid var(--rule);
  background: var(--accent-tint);
}
details.fallenbau .body { padding: 1rem 1.2rem 0.5rem; }
details.fallenbau .body :last-child { margin-bottom: 1rem; }

/* ------- Quiz (Verwechslung) ------- */
.verwechslung-quiz {
  background: var(--bg-soft);
  padding: 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
  border: 1px solid var(--rule);
}
.quiz-item {
  background: var(--paper);
  padding: 1.2rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--rule);
}
.quiz-item:last-child { margin-bottom: 0; }
.quiz-item h3 { margin-top: 0; }
.quiz-options { list-style: none; padding: 0; margin: 0.8rem 0 0; }
.quiz-options li { margin: 0.3rem 0; }
.quiz-options input[type="radio"] { display: none; }
.quiz-options label {
  display: block; padding: 0.6rem 0.9rem;
  background: var(--bg-soft); border: 1px solid var(--rule);
  border-radius: 4px; cursor: pointer;
}
.quiz-options label:hover { background: var(--accent-tint); }
.quiz-options input[type="radio"]:checked + label {
  background: var(--accent-tint); border-color: var(--accent);
}
.quiz-feedback {
  display: none; margin-top: 0.8rem;
  padding: 0.7rem 0.9rem; border-radius: 4px; font-size: 0.92rem;
}
.quiz-options input.opt-r:checked ~ .quiz-feedback.fb-r,
.quiz-options input.opt-w1:checked ~ .quiz-feedback.fb-w1,
.quiz-options input.opt-w2:checked ~ .quiz-feedback.fb-w2 { display: block; }
.quiz-feedback.fb-r {
  background: #E8F3E0; color: var(--ok);
  border-left: 3px solid var(--ok);
}
.quiz-feedback.fb-w1, .quiz-feedback.fb-w2 {
  background: #FBEAEA; color: var(--danger);
  border-left: 3px solid var(--danger);
}

/* ------- FAQ (DL/DT/DD-Pattern) ------- */
.faq { margin: 2.5rem 0; }
.faq dl { margin: 0; }
.faq dt {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: 1.2rem;
  font-weight: 500;
}
.faq dd {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--accent-soft);
  color: var(--ink);
}

/* ------- Print ------- */
.print-hint {
  background: var(--accent-tint);
  border: 1px dashed var(--accent);
  padding: 0.8rem 1rem;
  border-radius: 4px;
  margin: 1.5rem 0;
  font-size: 0.93rem;
}
.print-hint::before { content: "🖨 "; }

@media print {
  body { font-size: 11pt; color: #000; background: #fff; }
  .site-header, .site-nav, .article-tabs, .site-footer, .breadcrumbs,
  .saison, .produkt-box, .print-hint, .quellen, aside.infobox,
  .last-edit, .kapitel-grid, .toc, .mock-badge, nav, .no-print { display: none !important; }
  main.layout, main.article-only {
    display: block !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  h1, h2, h3 { color: #000; page-break-after: avoid; }
  a { color: #000; text-decoration: none; }
  .print-cheatsheet { display: block !important; }
  .hinweis { background: #f4f4f4; border-left-color: #000; }
}
.print-cheatsheet { display: none; }

/* ------- Amazon-Produktbox ------- */
.produkt-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0;
  margin: 2rem 0;
  overflow: hidden;
}
.produkt-werbung {
  background: var(--bg-soft);
  padding: 0.5rem 1.2rem;
  font-size: 0.83rem;
  border-bottom: 1px solid var(--rule);
}
.produkt-werbung summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 500;
}
.produkt-werbung p { margin: 0.6rem 0; font-size: 0.83rem; color: var(--muted); }
.produkt-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1.2rem;
}
@media (max-width: 540px) {
  .produkt-inner { grid-template-columns: 1fr; }
  .produkt-bild { max-width: 200px; }
}
.produkt-bild { display: block; }
.produkt-bild img { border-radius: 4px; }
.produkt-marke {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.produkt-titel { margin: 0.2rem 0 0.5rem; font-size: 1.15rem; }
.produkt-titel a { text-decoration: none; color: var(--ink); }
.produkt-beschreibung { font-size: 0.95rem; margin: 0.6rem 0; }
.produkt-procontra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.8rem 0;
}
.produkt-procontra ul { margin: 0.3rem 0 0; padding-left: 1.2rem; font-size: 0.9rem; }
.pro-block strong { color: var(--ok); }
.contra-block strong { color: var(--warn); }
.produkt-fazit {
  background: var(--accent-tint);
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  font-size: 0.93rem;
  margin-top: 0.8rem;
}
.produkt-meta {
  display: flex; align-items: center;
  gap: 1rem; flex-wrap: wrap; margin-top: 1rem;
}
.produkt-preis {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--accent-dark);
  font-weight: 500;
}
.produkt-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 0.6em 1.2em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}
.produkt-btn:hover { background: var(--accent-dark); }

/* ------- Footer ------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  padding: 2rem 0 1.2rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer .wrap { padding: 0 1.5rem; }
.site-footer strong { color: var(--ink-soft); font-family: 'Fraunces', serif; font-weight: 500; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-dark); }

/* ------- 404 ------- */
.notfound { text-align: center; padding: 4rem 0 2rem; }
.notfound h1 { font-size: 2.2rem; border: 0; }
.notfound p { color: var(--muted); }
.notfound .escape {
  position: relative;
  margin: 2rem auto 2rem;
  width: 320px; height: 80px;
  overflow: visible;
}
.notfound .escape svg {
  position: absolute; left: 0; top: 32px;
  animation: muecke-fliegt 4.5s ease-in 1s 1 forwards;
}
@keyframes muecke-fliegt {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  20%  { transform: translate(30px, -8px) rotate(-3deg); opacity: 1; }
  40%  { transform: translate(80px, 4px) rotate(2deg); }
  60%  { transform: translate(150px, -12px) rotate(-2deg); }
  80%  { transform: translate(240px, -20px) rotate(4deg); opacity: 0.7; }
  100% { transform: translate(340px, -50px) rotate(6deg); opacity: 0; }
}

/* ------- Legal-Seiten ------- */
.legal-content { padding: 0.5rem 0; }
.legal-content h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal-content h3 { font-size: 1.1rem; }

/* ------- Reduced motion ------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
