/* =====================================================
   Herbarium Verde – Styles (große Bibliothek)
   ===================================================== */

/* ── Selbst gehostete Schriften (keine Drittanfragen, offline-fähig) ── */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-950: #0d2418; --green-900: #16341f; --green-800: #1f4f39;
  --green-700: #2d6a4f; --green-600: #40916c; --green-500: #52b788;
  --green-300: #95d5b2; --green-100: #d8f3dc;
  --accent: #e9c46a; --accent-deep: #c98632;
  --danger: #b3402e; --danger-bg: #fdeae5;
  --warn-bg: #fdf6e0; --warn-border: #e2c76f;
  --tier: #b5651d; --tier-bg: #f6e8d6;
  --detox: #2f8f83; --detox-bg: #d9f0ec;

  --bg: #f2f6ec; --bg-soft: #e8f0e2;
  --surface: #ffffff; --surface-2: #f7faf5;
  --ink: #1c2b21; --muted: #5b6f60; --line: #dde7da;
  --shadow: 0 10px 30px rgba(31,79,57,.10);
  --shadow-lg: 0 24px 60px rgba(31,79,57,.18);
  --hero-grad: linear-gradient(165deg,#eaf4e4 0%,#d8ecd6 45%,#cfe7d4 100%);
}

[data-theme="dark"] {
  --bg: #0e1a12; --bg-soft: #12241a;
  --surface: #17281d; --surface-2: #1c3123;
  --ink: #e6f1e4; --muted: #9cb4a0; --line: #27412f;
  --danger-bg: #3a1d17; --warn-bg: #33290f; --warn-border: #7a6524;
  --tier-bg: #33291b; --detox-bg: #13322e;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  --hero-grad: linear-gradient(165deg,#0f2016 0%,#12291c 45%,#143122 100%);
}

* { box-sizing: border-box; }

/* Das hidden-Attribut muss immer gewinnen: eigene display-Regeln (flex/grid)
   würden es sonst aushebeln und ausgeblendete Elemente sichtbar lassen. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0; font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6;
  transition: background .4s ease, color .4s ease;
}
h1, h2, h3, .brand-name, .daily-name { font-family: "Fraunces", Georgia, serif; line-height: 1.15; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header ── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .8rem clamp(1rem,4vw,2.4rem);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 12px rgba(31,79,57,.3); transition: transform .4s cubic-bezier(.2,.9,.3,1.4); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-name { font-size: 1.25rem; font-weight: 600; }
.brand-name em { font-style: italic; color: var(--green-600); }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a { position: relative; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .3rem 0; transition: color .25s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2.5px; border-radius: 2px; background: linear-gradient(90deg,var(--green-600),var(--green-300)); transition: right .3s cubic-bezier(.6,0,.3,1); }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { right: 0; }
.theme-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .3s, box-shadow .3s; }
.theme-toggle:hover { transform: rotate(20deg) scale(1.08); box-shadow: var(--shadow); }
.theme-toggle svg { width: 20px; height: 20px; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

/* ── Hero ── */
.hero { position: relative; min-height: 90vh; display: grid; place-items: center; padding: 7rem 1.5rem 6rem; background: var(--hero-grad); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.blob-1 { width: 480px; height: 480px; left: -140px; top: -80px; background: radial-gradient(circle,#95d5b2,transparent 70%); }
.blob-2 { width: 420px; height: 420px; right: -120px; top: 20%; background: radial-gradient(circle,#e9c46a66,transparent 70%); animation-delay: -8s; }
.blob-3 { width: 520px; height: 520px; left: 30%; bottom: -220px; background: radial-gradient(circle,#52b78877,transparent 70%); animation-delay: -15s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,40px) scale(1.15); } }
.float-leaf { display: block; width: 54px; height: 54px; color: var(--green-500); opacity: .5; animation: leaf-float 9s ease-in-out infinite; }
.leafp-1 { left: 8%; top: 22%; }
.leafp-2 { right: 10%; top: 18%; }
.leafp-3 { left: 16%; bottom: 20%; }
.leaf-2 { width: 42px; height: 42px; animation-delay: -3s; color: var(--green-600); }
.leaf-3 { width: 38px; height: 38px; animation-delay: -6s; color: var(--accent); opacity: .45; }
@keyframes leaf-float { 0%,100% { transform: translateY(0) rotate(-14deg); } 50% { transform: translateY(-26px) rotate(10deg); } }

/* ── Parallax-Wrapper: JS verschiebt das Kind, der Wrapper bleibt Mess-Referenz ── */
.plx-wrap { position: absolute; pointer-events: none; }
.plx-wrap > * { will-change: transform; }

/* ── Blumenwiese ── */
.meadow { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none; }
.meadow .plx-wrap { bottom: 0; }
.meadow .sprout {
  display: block;
  width: var(--w, 48px);
  height: auto;
  transform-origin: 50% 96%;
  animation: sway-plant var(--sd, 6s) ease-in-out var(--sdel, 0s) infinite alternate;
  filter: drop-shadow(0 4px 6px rgba(31, 79, 57, .12));
}
@keyframes sway-plant {
  from { transform: rotate(-3.6deg); }
  to   { transform: rotate(4.2deg); }
}
.meadow-hero { bottom: 26px; z-index: 2; }
.meadow-wissen { height: 130px; }

/* ── Ranke: zeichnet sich, dann erscheint das Archiv ── */
.vine-wrap { margin: -0.6rem 0 1.2rem; }
.vine { display: block; width: min(760px, 92%); height: 74px; margin: 0 auto; overflow: visible; }
.vine-stem { stroke-dasharray: 1; stroke-dashoffset: 1; }
.vine.drawn .vine-stem { transition: stroke-dashoffset 1.9s cubic-bezier(.45, 0, .2, 1); stroke-dashoffset: 0; }
.vine .vleaf { opacity: 0; transform: scale(.3); transform-origin: center; transform-box: fill-box; }
.vine.drawn .vleaf {
  transition: opacity .5s ease var(--d, .6s), transform .55s cubic-bezier(.2, .9, .3, 1.5) var(--d, .6s);
  opacity: 1; transform: scale(1);
}
.pollen span { position: absolute; bottom: -12px; left: var(--x); width: var(--size); height: var(--size); border-radius: 50%; background: radial-gradient(circle,rgba(255,255,240,.9),rgba(233,196,106,.35)); animation: rise var(--dur) linear var(--delay) infinite; opacity: 0; }
@keyframes rise { 0% { transform: translate(0,0); opacity: 0; } 8% { opacity: .8; } 92% { opacity: .5; } 100% { transform: translate(var(--drift),-105vh); opacity: 0; } }
.bee { position: absolute; width: 64px; height: 64px; offset-path: path("M -80 320 C 200 120, 420 420, 700 240 C 950 90, 1200 340, 1540 200"); offset-rotate: auto 12deg; animation: fly 26s linear infinite; filter: drop-shadow(0 6px 8px rgba(0,0,0,.15)); }
.butterfly { position: absolute; width: 56px; height: 56px; offset-path: path("M 1540 160 C 1200 380, 900 120, 620 320 C 380 480, 160 240, -80 400"); animation: fly 34s linear infinite; animation-delay: -10s; }
@keyframes fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@supports not (offset-path: path("M0 0 L1 1")) { .bee { left: 12%; top: 30%; animation: leaf-float 7s ease-in-out infinite; } .butterfly { right: 14%; top: 42%; animation: leaf-float 8s ease-in-out -2s infinite; } }
.bee-wing { transform-origin: 48px 42px; animation: flap .22s ease-in-out infinite alternate; }
.bee-wing-r { animation-delay: .06s; }
@keyframes flap { from { transform: rotate(-12deg); } to { transform: rotate(16deg); } }
.bf-wing-l { transform-origin: 48px 50px; animation: bf-flap 1.1s ease-in-out infinite alternate; }
.bf-wing-r { transform-origin: 52px 50px; animation: bf-flap 1.1s ease-in-out infinite alternate; }
@keyframes bf-flap { from { transform: scaleX(1); } to { transform: scaleX(.62); } }
.hero-inner { position: relative; max-width: 800px; text-align: center; z-index: 2; }
.hero-kicker { display: inline-block; padding: .45em 1.2em; border-radius: 999px; background: color-mix(in srgb,var(--surface) 72%,transparent); border: 1px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--green-700); box-shadow: var(--shadow); }
[data-theme="dark"] .hero-kicker { color: var(--green-300); }
.hero-title { margin: .5em 0 .25em; font-size: clamp(2.8rem,7.5vw,5rem); font-weight: 700; letter-spacing: -.01em; }
.grad-text { background: linear-gradient(100deg,var(--green-600),var(--green-500) 45%,var(--accent-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 0 auto; max-width: 620px; font-size: clamp(1.02rem,2.2vw,1.2rem); color: var(--muted); }
.hero-sub strong { color: var(--green-700); }
[data-theme="dark"] .hero-sub strong { color: var(--green-300); }
.hero-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85em 1.7em; border-radius: 999px; border: none; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .3s cubic-bezier(.2,.9,.3,1.3), box-shadow .3s; }
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: linear-gradient(120deg,var(--green-700),var(--green-600)); color: #f0fff5; box-shadow: 0 10px 24px rgba(45,106,79,.35); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 34px rgba(45,106,79,.45); }
.btn-ghost { background: transparent; color: var(--green-700); border: 2px solid var(--green-600); }
[data-theme="dark"] .btn-ghost { color: var(--green-300); }
.btn-ghost:hover { transform: translateY(-3px); background: color-mix(in srgb,var(--green-600) 12%,transparent); }
.btn-wide { width: 100%; justify-content: center; margin-top: 1rem; }
.hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(1.2rem,4vw,3rem); margin: 2.8rem 0 0; }
.hero-stats div { text-align: center; }
.hero-stats dt { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.7rem,3.6vw,2.3rem); font-weight: 700; color: var(--green-700); }
[data-theme="dark"] .hero-stats dt { color: var(--green-300); }
.hero-stats dd { margin: 0; font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; z-index: 3; }

/* ── Sections ── */
section { padding: clamp(3rem,7vw,5.5rem) clamp(1rem,5vw,3rem); }
.section-head { max-width: 680px; margin: 0 auto 2.4rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem,4.5vw,2.7rem); margin: 0 0 .4em; }
.section-head p { color: var(--muted); margin: 0; }

/* ── Pflanze des Tages ── */
.daily-wrap { padding-top: 0; padding-bottom: 0; }
.daily { display: flex; align-items: center; gap: clamp(1rem,3vw,2.2rem); max-width: 880px; margin: -3.2rem auto 0; padding: 1.2rem clamp(1.2rem,3vw,1.8rem); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); position: relative; z-index: 5; }
.daily-media { flex: 0 0 auto; width: 104px; height: 104px; border-radius: 18px; overflow: hidden; }
.daily-media img, .daily-media .card-ph { width: 100%; height: 100%; object-fit: cover; }
.daily-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-deep); }
.daily-name { font-size: 1.5rem; margin: .1em 0; }
.daily-text { color: var(--muted); font-size: .93rem; margin: 0; }
.daily .btn { flex: 0 0 auto; padding: .65em 1.3em; font-size: .92rem; }

/* ── Bibliothek ── */
.library { position: relative; }
.ladybug { position: absolute; width: 44px; height: 44px; right: clamp(1rem,8vw,7rem); top: 2.4rem; animation: crawl 7s ease-in-out infinite; }
@keyframes crawl { 0%,100% { transform: translateX(0) rotate(-6deg); } 50% { transform: translateX(26px) rotate(8deg); } }
.search-wrap { position: relative; max-width: 640px; margin: 0 auto 1.4rem; }
.search-icon { position: absolute; left: 1.15rem; top: 50%; translate: 0 -50%; width: 21px; height: 21px; color: var(--muted); pointer-events: none; }
#searchInput, #searchInputHero { width: 100%; padding: 1.05em 3.2em 1.05em 3.1em; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; outline: none; box-shadow: var(--shadow); transition: border-color .3s, box-shadow .3s; }
#searchInput:focus, #searchInputHero:focus { border-color: var(--green-600); box-shadow: 0 0 0 5px color-mix(in srgb,var(--green-500) 22%,transparent), var(--shadow); }
.search-clear { position: absolute; right: .7rem; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--bg-soft); color: var(--muted); cursor: pointer; transition: background .25s, color .25s; }
.search-clear:hover { background: var(--green-100); color: var(--green-800); }
.search-clear svg { width: 16px; height: 16px; }

.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
.theme-row { margin-bottom: .5rem; }

/* Zwei Filter-Ebenen sichtbar trennen: „Bereich" ist die Hauptauswahl,
   „Thema" grenzt innerhalb der Heilpflanzen weiter ein. */
.filter-ebene { margin-bottom: 1.1rem; }
.filter-label {
  display: block; text-align: center;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 800; color: var(--muted); margin-bottom: .6rem;
}
/* Hauptebene: größere, kräftigere Reiter */
#typeRow .chip { font-size: 1rem; padding: .6em 1.5em; border-width: 2px; }
/* Unterebene: eingerückt in eigener Fläche, dadurch klar untergeordnet */
.filter-ebene-sub {
  max-width: 940px; margin: 0 auto 1.8rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 22px; padding: .95rem 1.1rem .55rem;
}
[data-theme="dark"] .filter-ebene-sub { background: rgba(255,255,255,.04); }
@media (max-width: 560px) {
  #typeRow .chip { font-size: .92rem; padding: .55em 1.15em; }
  .filter-ebene-sub { padding: .8rem .6rem .4rem; }
}
.chip { padding: .5em 1.15em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: all .25s; }
.chip-sm { font-size: .82rem; padding: .42em .95em; }
.chip:hover { border-color: var(--green-500); color: var(--green-700); transform: translateY(-2px); }
[data-theme="dark"] .chip:hover { color: var(--green-300); }
.chip.active { background: linear-gradient(120deg,var(--green-700),var(--green-600)); border-color: transparent; color: #f0fff5; box-shadow: 0 6px 16px rgba(45,106,79,.3); }
.result-count { text-align: center; font-size: .88rem; font-weight: 600; color: var(--muted); margin: 0 0 1.4rem; }

.herb-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 1.3rem; max-width: 1280px; margin: 0 auto; }
.card { position: relative; display: flex; flex-direction: column; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; overflow: hidden; opacity: 0; transform: translateY(24px); transition: opacity .5s ease calc(var(--i,0)*45ms), transform .5s ease calc(var(--i,0)*45ms), box-shadow .35s ease, border-color .35s ease; }
.card.visible { opacity: 1; transform: translateY(0); }
.card:hover, .card:focus-visible { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: var(--green-300); transition: opacity .5s ease, transform .35s cubic-bezier(.2,.9,.3,1.2), box-shadow .35s ease, border-color .35s ease; outline: none; }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.card-img, .card-ph { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover .card-img { transform: scale(1.06); }
.card-ph svg { width: 100%; height: 100%; }
.card-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.12rem; line-height: 1.2; }
.card-body h3 mark { background: color-mix(in srgb,var(--accent) 45%,transparent); color: inherit; border-radius: 4px; padding: 0 .1em; }
.card .latin { margin: .15rem 0 .4rem; font-style: italic; font-size: .82rem; color: var(--muted); }
.blurb { margin: 0 0 .8rem; font-size: .87rem; color: var(--muted); }
.card-badge { position: absolute; top: .7rem; left: .7rem; padding: .3em .75em; border-radius: 999px; font-size: .72rem; font-weight: 800; background: color-mix(in srgb,var(--surface) 88%,transparent); backdrop-filter: blur(4px); color: var(--green-700); }
[data-theme="dark"] .card-badge { color: var(--green-300); }
.badge-tier { color: var(--tier); }
.badge-detox { color: var(--detox); }
.tox-badge { position: absolute; top: .7rem; right: 3.2rem; padding: .3em .7em; border-radius: 999px; font-size: .7rem; font-weight: 800; background: var(--danger); color: #fff; }
.fav-btn { position: absolute; top: .6rem; right: .6rem; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: none; background: color-mix(in srgb,var(--surface) 85%,transparent); backdrop-filter: blur(4px); color: var(--muted); cursor: pointer; z-index: 2; transition: transform .25s, color .25s; }
.fav-btn:hover { transform: scale(1.18); color: #d1495b; }
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav-btn.active { color: #d1495b; animation: heart-pop .45s cubic-bezier(.2,.9,.3,1.6); }
.fav-btn.active svg { fill: currentColor; }
@keyframes heart-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.card-more { margin-top: auto; font-size: .85rem; font-weight: 800; color: var(--green-600); display: inline-flex; align-items: center; gap: .3rem; transition: gap .25s; }
.card:hover .card-more { gap: .6rem; }

/* ── Detox-Kurplan-Banner ── */
.detox-banner {
  max-width: 1180px;
  margin: 0 auto 1.8rem;
  padding: 1.6rem clamp(1.1rem, 3vw, 2rem);
  border-radius: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--green-500) 14%, var(--surface)), var(--surface));
  border: 1.5px solid var(--green-300);
  box-shadow: var(--shadow);
  animation: pop-in .5s cubic-bezier(.2, .9, .3, 1.1);
}
/* Erklär-Teaser: Warum entgiften? */
.detox-explain {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) 3fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: center;
  margin-bottom: 1.4rem;
}
.detox-illu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem .8rem .5rem;
  box-shadow: var(--shadow);
}
.detox-illu svg { display: block; width: 100%; height: auto; }
.detox-copy h4 { margin: 0 0 .4rem; font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; color: var(--green-800); }
[data-theme="dark"] .detox-copy h4 { color: var(--green-300); }
.detox-copy p { margin: 0 0 1rem; font-size: .93rem; color: var(--muted); }
.detox-analogy {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-border);
  border-radius: 0 12px 12px 0;
  padding: .8rem 1rem;
  margin: 0 0 1.1rem;
  font-size: .9rem;
  line-height: 1.55;
}
.detox-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px dashed var(--green-300);
}
.fact-tile {
  padding: .5em 1em;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.fact-tile em {
  font-style: normal;
  font-weight: 600;
  font-size: .78em;
  color: var(--muted);
  margin-left: .3em;
}
@media (max-width: 800px) {
  .detox-explain { grid-template-columns: 1fr; }
  .detox-illu { max-width: 360px; margin: 0 auto; }
}

.detox-banner-head { text-align: center; max-width: 640px; margin: 0 auto 1.2rem; }
.detox-banner-head h3 { margin: 0 0 .35rem; font-size: 1.35rem; }
.detox-banner-head p { margin: 0; color: var(--muted); font-size: .93rem; }
.detox-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.detox-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.2rem 1.3rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .28s cubic-bezier(.2,.9,.3,1.2), box-shadow .28s, border-color .28s;
}
.detox-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-400, var(--green-500)); }
.detox-card { font: inherit; text-align: left; }
.detox-card.gewaehlt { border-color: var(--green-600); box-shadow: 0 0 0 3px color-mix(in srgb,var(--green-500) 35%,transparent), var(--shadow); }

/* ══════════════════════════════════════════════════════════
   Scroll-Inszenierung: Naturaufnahme, per Scrollen gesteuert
   Das Video läuft nie von allein. Der Bildstand hängt allein an
   der Scroll-Position – runter vorwärts, hoch rückwärts.
   ══════════════════════════════════════════════════════════ */
.szene { position: relative; height: 320vh; background: var(--green-950); }
.buehne { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--green-950); }
.buehne video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; will-change: transform, filter;
  /* Grundmaßstab 1.0 statt 1.06: Jedes Prozent Vergrößerung kostet Schärfe,
     weil das Bild dabei hochgerechnet wird. */
  transform: scale(var(--v-scale, 1));
  /* Kontrast lässt Kanten schärfer wirken – echtes Nachschärfen wäre ein
     SVG-Filter je Einzelbild und würde das flüssige Spulen wieder kaputt machen. */
  filter: saturate(var(--v-sat, 1.06)) brightness(var(--v-bright, 1.06)) contrast(var(--v-kontrast, 1.06));
}
.schleier {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--schleier, .72);
  background:
    radial-gradient(120% 80% at 50% 12%, transparent 30%, rgba(13,36,24,.35) 78%),
    linear-gradient(180deg, rgba(13,36,24,.45) 0%, rgba(13,36,24,.12) 32%, rgba(13,36,24,.72) 100%);
}

/* Titel kommt auf einen zu – man fährt hindurch */
.szene-titel {
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%) scale(var(--titel-scale, 1));
  width: min(94vw, 1100px); text-align: center; color: #f2f8f2;
  opacity: var(--titel-op, 1); filter: blur(var(--titel-blur, 0px));
  will-change: transform, opacity, filter;
}
.szene-kicker {
  display: inline-block; padding: .42em 1.2em; border-radius: 999px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(8px);
  font-size: .92rem; font-weight: 700; margin-bottom: 1.1rem; opacity: var(--bei-op, 1);
}
.szene-titel h2 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(3.2rem, 11vw, 8.5rem); line-height: .98; margin: 0 0 .7rem;
  text-shadow: 0 8px 60px rgba(0,0,0,.4);
}
.szene-titel h2 em { font-style: normal; color: var(--green-300); }
.szene-titel p { font-size: clamp(1rem, 1.8vw, 1.3rem); opacity: var(--bei-op, .9); margin: 0; }

/* Bibliothek gleitet herein: erst die Reiter, dann Titel und Suchfeld */
.szene-bib { position: absolute; left: 50%; bottom: 0; width: min(94vw, 1080px); transform: translateX(-50%); padding-bottom: 4vh; }
.szene-kopf {
  opacity: var(--kopf-op, 0);
  transform: translateY(var(--kopf-y, 40px)) scale(var(--kopf-scale, .97));
  will-change: transform, opacity;
}
.szene-bib-titel {
  text-align: center; color: #f2f8f2; font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0 0 1rem; text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
/* Suchfeld über dem Video: großzügig, vollrund und deutlich abgesetzt */
.szene-suche { max-width: 760px; margin: 0 auto 1.5rem; }
.szene-suche #searchInputHero {
  padding: 1.25em 1.8em 1.25em 3.6em;
  font-size: 1.08rem; border-color: transparent;
  background: rgba(255,255,255,.97);
  box-shadow: 0 20px 55px rgba(0,0,0,.32);
}
.szene-suche #searchInputHero::placeholder { color: #6b7c6f; }
.szene-suche #searchInputHero:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 5px color-mix(in srgb,var(--green-500) 32%,transparent), 0 20px 55px rgba(0,0,0,.32);
}
.szene-suche .search-icon { left: 1.5rem; width: 22px; height: 22px; color: #6b7c6f; }
@media (max-width: 640px) {
  .szene-suche #searchInputHero { padding: 1.05em 1.3em 1.05em 3.1em; font-size: 1rem; }
}
.szene-chips {
  opacity: var(--chips-op, 0); margin-bottom: 0;
  transform: translateY(var(--chips-y, 60px)) scale(var(--chips-scale, .94));
  will-change: transform, opacity;
}
/* Reiter über dem Video: Glasoptik, damit sie auf dem Bild lesbar bleiben */
.szene-chips .chip {
  font-size: 1rem; padding: .6em 1.5em; border-width: 2px;
  border-color: rgba(255,255,255,.55); color: #f2f8f2;
  background: rgba(255,255,255,.13); backdrop-filter: blur(12px);
}
.szene-chips .chip:hover { background: rgba(255,255,255,.26); border-color: #fff; color: #fff; }
.szene-chips .chip.active {
  background: linear-gradient(120deg, var(--green-700), var(--green-500));
  border-color: transparent; color: #f0fff5;
}
.szene-hinweis {
  position: absolute; left: 50%; bottom: 3.5vh; transform: translateX(-50%);
  color: #e8f5ea; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  opacity: var(--hinweis-op, 1); display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.szene-hinweis .maus { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.7); border-radius: 12px; position: relative; }
.szene-hinweis .maus::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px;
  border-radius: 2px; background: #fff; transform: translateX(-50%);
  animation: maus-tipp 1.9s ease-in-out infinite;
}
@keyframes maus-tipp { 0%,100% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; transform: translate(-50%,9px); } }

/* Pollen in der Szene */
.szene-pollen { position: absolute; inset: 0; pointer-events: none; opacity: var(--pollen-op, .5); }
.szene-pollen i {
  position: absolute; bottom: -8px; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(216,243,220,.85); box-shadow: 0 0 8px rgba(216,243,220,.7);
  animation: pollen-steigen var(--dur) linear var(--del) infinite; left: var(--x);
}
@keyframes pollen-steigen {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: .9; } 88% { opacity: .7; }
  100% { transform: translateY(-102vh) translateX(var(--drift)); opacity: 0; }
}

/* ══════ Käfer, Falter und Blätter hinter den Karten ══════ */
.deko-hintergrund { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.deko { position: absolute; display: block; will-change: transform; }
.deko svg { width: 100%; height: 100%; display: block; }
@keyframes deko-flug-rechts {
  0%   { transform: translate(-14vw, 0) rotate(-6deg); }
  25%  { transform: translate(18vw, -42px) rotate(4deg); }
  50%  { transform: translate(52vw, 18px) rotate(-3deg); }
  75%  { transform: translate(86vw, -30px) rotate(5deg); }
  100% { transform: translate(118vw, 6px) rotate(-4deg); }
}
@keyframes deko-flug-links {
  0%   { transform: translate(118vw, 0) scaleX(-1) rotate(4deg); }
  30%  { transform: translate(76vw, 34px) scaleX(-1) rotate(-5deg); }
  60%  { transform: translate(38vw, -26px) scaleX(-1) rotate(3deg); }
  100% { transform: translate(-16vw, 12px) scaleX(-1) rotate(-2deg); }
}
@keyframes deko-trudeln {
  0%   { transform: translateY(-8%) rotate(0deg); opacity: 0; }
  10%  { opacity: .5; } 90% { opacity: .4; }
  100% { transform: translateY(108%) rotate(220deg); opacity: 0; }
}
@keyframes deko-schweben {
  0%,100% { transform: translateY(0) rotate(-8deg); }
  50%     { transform: translateY(-30px) rotate(8deg); }
}
.deko-flug-r { animation: deko-flug-rechts var(--dauer,46s) linear var(--verz,0s) infinite; }
.deko-flug-l { animation: deko-flug-links  var(--dauer,54s) linear var(--verz,0s) infinite; }
.deko-blatt  { animation: deko-trudeln     var(--dauer,26s) linear var(--verz,0s) infinite; color: var(--green-500); }
.deko-rand   { animation: deko-schweben    var(--dauer,11s) ease-in-out var(--verz,0s) infinite; }

/* Inhalte der Bibliothek liegen immer über der Deko */
.library > *:not(.deko-hintergrund) { position: relative; z-index: 1; }

/* ══════ Aufgeräumt, wenn die Szene läuft ══════
   Überschrift, Ranke, Suchfeld und Bereichs-Reiter stehen dann schon über dem
   Video. Unter dem Video bleibt nur die Themen-Zeile – ruhig und ohne Doppelung.
   Ohne Szene (Handy, kein Video) erscheint alles wieder wie gewohnt. */
/* Der grüne Streifen zwischen Szene und Bibliothek trägt nur noch Einleitung,
   Knöpfe und Zahlen – ohne Titel braucht er längst nicht mehr die volle Hero-Höhe. */
.szene-an .hero { min-height: 0; padding: 3.2rem 1.5rem 3.4rem; }
.szene-an .hero-cta { margin-top: 1.5rem; }
.szene-an .hero-stats { margin-top: 2rem; }
@media (max-width: 640px) {
  .szene-an .hero { padding: 2.4rem 1.2rem 2.6rem; }
}

.szene-an .library > .section-head,
.szene-an .library > .vine-wrap,
.szene-an .library > .search-wrap,
.szene-an .library > .filter-ebene:not(.filter-ebene-sub) { display: none; }

.szene-an .library { padding-top: 2.2rem; }
.szene-an .filter-ebene-sub { margin-top: 0; }
/* Ohne die große Überschrift wirkt die Themen-Zeile als ruhiger Kopf der Liste */
.szene-an .filter-ebene-sub .filter-label { display: none; }
.szene-an #howTo { margin-top: 1.2rem; }

/* Der Info-Knopf zieht in die Themen-Zeile um */
.themen-kopf { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: .7rem; }
.themen-kopf .info-btn { width: 26px; height: 26px; font-size: .9rem; }
.themen-kopf span {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 800; color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .deko-flug-r, .deko-flug-l, .deko-blatt, .deko-rand, .szene-pollen i { animation: none; }
  .szene-hinweis .maus::after { animation: none; }
}
@media (max-width: 640px) {
  .szene { height: 260vh; }
  .szene-chips .chip { font-size: .9rem; padding: .52em 1.1em; }
}

/* ── Info-Knopf an der Bibliotheks-Überschrift ── */
.head-mit-info { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.info-btn {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%; border: 2px solid var(--green-600);
  background: var(--surface); color: var(--green-700);
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .25s; vertical-align: middle;
}
.info-btn:hover { background: var(--green-600); color: #f0fff5; transform: scale(1.1); }
.info-btn[aria-expanded="true"] { background: var(--green-700); color: #f0fff5; border-color: transparent; }
.info-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb,var(--green-500) 40%,transparent); }
[data-theme="dark"] .info-btn { color: var(--green-300); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.howto {
  max-width: 1180px; margin: 0 auto 1.6rem;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 24px; padding: 1.4rem 1.4rem .4rem;
  box-shadow: var(--shadow);
  animation: howto-auf .35s cubic-bezier(.2,.9,.3,1.1) both;
}
.howto-title { font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; text-align: center; margin: 0 0 1.1rem; }
.howto .steps { margin-bottom: 0; }
@keyframes howto-auf { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .howto { animation: none; } }

.footer-links { margin-top: .5rem; font-size: .88rem; }
.footer-links a { color: inherit; opacity: .85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

/* ── Rechtstexte (Impressum, Datenschutz) ── */
/* Oben Luft lassen, damit die Überschrift nicht unter der Kopfzeile klebt */
.rechtstext { max-width: 780px; margin: 0 auto; padding: 6.5rem 1.2rem 4rem; }
.rechtstext h1 { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 1.5rem; }
.rechtstext h2 { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; margin: 2.2rem 0 .6rem; color: var(--green-700); }
[data-theme="dark"] .rechtstext h2 { color: var(--green-300); }
.rechtstext p, .rechtstext li { line-height: 1.75; color: var(--ink); }
.rechtstext ul { padding-left: 1.3rem; }
.rechtstext li { margin-bottom: .35rem; }
.rechtstext code { background: var(--bg-soft); padding: .1em .45em; border-radius: 6px; font-size: .9em; }
.rechtstext a { color: var(--green-700); }
[data-theme="dark"] .rechtstext a { color: var(--green-300); }
.platzhalter-box {
  background: var(--warn-bg); border: 1.5px solid var(--warn-border);
  border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: 2rem; line-height: 1.6;
}
[data-theme="dark"] .platzhalter-box { background: #3a3520; border-color: #6b5c2e; }
.rechts-stand { color: var(--muted); font-size: .9rem; margin-top: 2.5rem; }
.rechts-zurueck { margin-top: 2rem; font-weight: 700; }

/* ── Kurplan anfordern (Double-Opt-In) ── */
.optin {
  max-width: 620px;
  margin: 1.6rem auto 0;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.optin h4 { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; margin: 0 0 .4rem; }
.optin-lead { color: var(--muted); font-size: .93rem; margin: 0 0 1.1rem; }
.optin-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.optin-input {
  width: 100%; padding: .8em 1em; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface-2);
  font: inherit; color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.optin-input:focus-visible {
  outline: none; border-color: var(--green-600);
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--green-500) 30%,transparent);
}
.optin-input.fehler { border-color: var(--danger); background: var(--danger-bg); }
.optin-fieldset { border: none; padding: 0; margin: 1.2rem 0 .4rem; }
.optin-fieldset legend { font-weight: 700; font-size: .9rem; padding: 0; margin-bottom: .6rem; }
.optin-optional { font-weight: 400; color: var(--muted); }
.optin-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.optin-chips label {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .42em .95em; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface-2);
  font-size: .85rem; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all .2s;
}
.optin-chips label:hover { border-color: var(--green-500); color: var(--green-700); }
.optin-chips input { position: absolute; opacity: 0; pointer-events: none; }
.optin-chips input:checked + span { color: inherit; }
.optin-chips label:has(input:checked) {
  background: linear-gradient(120deg,var(--green-700),var(--green-600));
  border-color: transparent; color: #f0fff5;
}
.optin-chips label:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb,var(--green-500) 35%,transparent); }
.optin-check { display: flex; gap: .6rem; align-items: flex-start; margin: 1.2rem 0 .2rem; font-size: .87rem; color: var(--muted); line-height: 1.5; }
.optin-check input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--green-600); flex: none; }
.optin-check a { color: var(--green-700); }
[data-theme="dark"] .optin-check a { color: var(--green-300); }
.optin-status { margin: .7rem 0 0; font-size: .88rem; min-height: 1.2em; }
.optin-status.fehler { color: var(--danger); font-weight: 600; }
.optin-status.hinweis { color: var(--accent-deep); font-weight: 600; }
.optin-done { text-align: center; padding: .5rem 0 .3rem; }
.optin-done-icon { font-size: 2.4rem; display: block; margin-bottom: .4rem; }
.optin-done p { color: var(--muted); font-size: .93rem; margin: .3rem 0 0; }
.detox-badge {
  align-self: flex-start;
  padding: .28em .9em;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--green-700), var(--green-600));
  color: #f0fff5;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.detox-card strong { font-family: "Fraunces", Georgia, serif; font-size: 1.18rem; margin-top: .2rem; }
.detox-desc { color: var(--muted); font-size: .88rem; flex: 1; }
.detox-dl { margin-top: .5rem; font-weight: 800; color: var(--green-600); font-size: .9rem; }
[data-theme="dark"] .detox-dl { color: var(--green-300); }
.detox-card:hover .detox-dl { text-decoration: underline; }
.detox-note { text-align: center; margin: 1.1rem 0 0; font-size: .8rem; color: var(--muted); }

/* ── Paginierung ── */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  margin: 2.2rem auto 0;
}
.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 .8em;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all .22s;
}
.page-btn:hover:not(:disabled) { border-color: var(--green-500); color: var(--green-700); transform: translateY(-2px); }
[data-theme="dark"] .page-btn:hover:not(:disabled) { color: var(--green-300); }
.page-btn.active {
  background: linear-gradient(120deg, var(--green-700), var(--green-600));
  border-color: transparent;
  color: #f0fff5;
  box-shadow: 0 6px 14px rgba(45, 106, 79, .3);
  cursor: default;
}
.page-btn:disabled { opacity: .38; cursor: default; }
.page-prev, .page-next { font-size: .92rem; }
.page-dots { color: var(--muted); padding: 0 .2em; user-select: none; }

.empty-state { max-width: 400px; margin: 2.5rem auto; text-align: center; color: var(--muted); }
.empty-state svg { width: 64px; height: 64px; opacity: .7; animation: leaf-float 6s ease-in-out infinite; }
.empty-state h3 { color: var(--ink); margin: .6rem 0 .3rem; }
.empty-state a { color: var(--green-600); font-weight: 700; }

/* ── Kompass ── */
.kompass { background: var(--bg-soft); }
.kompass-card { max-width: 720px; margin: 0 auto; padding: clamp(1.3rem,3vw,2rem); border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
#kompassInput { width: 100%; padding: 1em 1.2em; border-radius: 16px; border: 2px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; resize: vertical; min-height: 90px; outline: none; transition: border-color .3s, box-shadow .3s; }
#kompassInput:focus { border-color: var(--green-600); box-shadow: 0 0 0 5px color-mix(in srgb,var(--green-500) 20%,transparent); }
.kompass-examples { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .8rem; font-size: .85rem; color: var(--muted); }
.example-chip { padding: .4em .95em; border-radius: 999px; border: 1.5px dashed var(--green-500); background: transparent; color: var(--green-700); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .25s; }
[data-theme="dark"] .example-chip { color: var(--green-300); }
.example-chip:hover { background: var(--green-100); border-style: solid; transform: translateY(-2px); }
[data-theme="dark"] .example-chip:hover { background: #23402e; }
.kompass-disclaimer { margin: .8rem 0 0; text-align: center; font-size: .8rem; color: var(--muted); }
.kompass-result { max-width: 720px; margin: 1.6rem auto 0; }
.analysis { padding: clamp(1.2rem,3vw,1.8rem); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: pop-in .5s cubic-bezier(.2,.9,.3,1.15); }
.analysis h3 { margin: 1.2rem 0 .7rem; font-size: 1.15rem; }
.analysis h3:first-child { margin-top: 0; }
.chips-inline { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; }
.s-chip { font-size: .82rem; font-weight: 700; padding: .35em .95em; border-radius: 999px; background: var(--green-100); color: var(--green-800); animation: pop-in .4s cubic-bezier(.2,.9,.3,1.4) backwards; }
[data-theme="dark"] .s-chip { background: #23402e; color: var(--green-300); }
.result-herb { display: flex; align-items: center; gap: 1rem; padding: .7rem .85rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); margin-bottom: .6rem; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; animation: slide-in .5s ease backwards; }
.result-herb:hover { transform: translateX(6px); border-color: var(--green-300); box-shadow: var(--shadow); }
@keyframes slide-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
.result-illu { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.result-illu img, .result-illu svg { width: 100%; height: 100%; object-fit: cover; }
.result-info { flex: 1; min-width: 0; }
.result-info strong { font-size: 1rem; }
.result-info .matched { display: block; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tox-inline { font-size: .72rem; font-weight: 800; color: var(--danger); margin-left: .3rem; }
.score-track { width: 100%; height: 7px; margin-top: .4rem; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.score-bar { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg,var(--green-500),var(--green-600)); transition: width 1s cubic-bezier(.2,.8,.3,1) .2s; }
.danger-alert { padding: 1.2rem 1.4rem; border-radius: 20px; background: var(--danger-bg); border: 2px solid var(--danger); color: var(--ink); animation: pop-in .45s cubic-bezier(.2,.9,.3,1.15); }
.danger-alert strong { color: var(--danger); }
.soft-hint { padding: 1.1rem 1.3rem; border-radius: 20px; background: var(--surface); border: 1px dashed var(--line); color: var(--muted); text-align: center; animation: pop-in .45s ease; }
@keyframes pop-in { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ── Wissen ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 1.3rem; max-width: 980px; margin: 0 auto 2.2rem; }
.step { padding: 1.6rem 1.5rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s; }
.step:hover { transform: translateY(-6px); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; font-weight: 700; color: #f0fff5; background: linear-gradient(130deg,var(--green-700),var(--green-500)); box-shadow: 0 8px 18px rgba(45,106,79,.3); margin-bottom: .9rem; }
.step h3 { margin: 0 0 .35em; font-size: 1.12rem; }
.step p { margin: 0; font-size: .92rem; color: var(--muted); }
.disclaimer-box { max-width: 820px; margin: 0 auto; padding: 1.2rem 1.5rem; border-radius: 18px; background: var(--warn-bg); border: 1.5px solid var(--warn-border); font-size: .92rem; position: relative; z-index: 1; }

/* ── Wissens-Hub ── */
.wissen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.3rem;
  max-width: 980px;
  margin: 0 auto 2.6rem;
}
.fact-card, .top-symptoms {
  padding: 1.6rem 1.6rem 1.4rem;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
.fact-label {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-deep);
}
.fact-card h3 { margin: .35rem 0 0; font-size: 1.35rem; }
.fact-card .latin { margin: .1rem 0 .5rem; font-style: italic; font-size: .88rem; color: var(--muted); }
.fact-text { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }
.fact-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-sm { padding: .55em 1.2em; font-size: .88rem; }

.top-symptoms h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.top-symptoms-sub { margin: 0 0 1rem; font-size: .86rem; color: var(--muted); }
.top-symptom-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-count .count {
  display: inline-block;
  margin-left: .35em;
  padding: .05em .55em;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: .78em;
}
[data-theme="dark"] .chip-count .count { background: #23402e; color: var(--green-300); }
.chip.active .count, .chip-count:hover .count { background: rgba(255,255,255,.25); color: inherit; }

.wissen-sub {
  text-align: center;
  font-size: 1.25rem;
  margin: 0 0 1.3rem;
  position: relative;
  z-index: 1;
}
.glossar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  max-width: 980px;
  margin: 0 auto 2.6rem;
}
.glossar-card {
  padding: 1.25rem 1.3rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .3s;
  position: relative;
  z-index: 1;
}
.glossar-card:hover { transform: translateY(-5px); }
.glossar-icon { font-size: 1.6rem; }
.glossar-card h4 { margin: .45rem 0 .3rem; font-size: 1.02rem; }
.glossar-card p { margin: 0; font-size: .87rem; color: var(--muted); }

/* Kompass-Karte leuchtet nach Klick im Menü kurz auf */
.kompass-card.pulse { animation: kompass-pulse 1.6s ease; }
@keyframes kompass-pulse {
  0%, 100% { box-shadow: var(--shadow-lg); }
  35% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--green-500) 40%, transparent), var(--shadow-lg); }
  65% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-500) 25%, transparent), var(--shadow-lg); }
}
.wissen { position: relative; padding-bottom: 11rem; overflow: hidden; }

/* ── Footer ── */
.site-footer { background: var(--green-950); color: #cfe3d2; padding: 3rem clamp(1rem,5vw,3rem) 1.6rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; max-width: 1080px; margin: 0 auto 2rem; }
.footer-brand .brand-name { font-size: 1.35rem; color: #eaf6ec; }
.footer-brand em { color: var(--green-300); }
.footer-brand p { margin: .5rem 0 0; font-size: .88rem; color: #9db8a1; }
.footer-sources h4 { margin: 0 0 .6rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #9db8a1; }
.footer-sources ul { list-style: none; margin: 0; padding: 0; }
.footer-sources li { margin-bottom: .35rem; font-size: .9rem; color: #b9d0bd; }
.footer-note { text-align: center; font-size: .8rem; color: #85a089; border-top: 1px solid #1f3b29; padding-top: 1.3rem; margin: 0; }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1.2rem; background: rgba(9,22,13,.55); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { position: relative; width: min(680px,100%); max-height: 90vh; overflow-y: auto; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-lg); transform: scale(.92) translateY(24px); transition: transform .4s cubic-bezier(.2,.9,.3,1.15); }
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: none; background: color-mix(in srgb,var(--surface) 80%,transparent); backdrop-filter: blur(6px); color: var(--ink); cursor: pointer; z-index: 5; transition: transform .25s, color .25s; }
.modal-close:hover { transform: rotate(90deg) scale(1.08); color: var(--danger); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 0 0 2rem; }
.modal-figure { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: 26px 26px 0 0; background: var(--bg-soft); }
.modal-img { width: 100%; height: 100%; object-fit: cover; }
.modal-ph { width: 100%; height: 100%; }
.modal-ph svg { width: 100%; height: 100%; }
.modal-type-badge { position: absolute; bottom: 1rem; left: 1.2rem; padding: .4em 1em; border-radius: 999px; font-size: .8rem; font-weight: 800; background: color-mix(in srgb,var(--surface) 90%,transparent); backdrop-filter: blur(6px); color: var(--green-700); }
.modal-type-badge.badge-tier { color: var(--tier); }
.modal-tox { position: absolute; top: 1rem; left: 1.2rem; padding: .4em 1em; border-radius: 999px; font-size: .8rem; font-weight: 800; background: var(--danger); color: #fff; }
.modal-head { padding: 1.3rem clamp(1.3rem,4vw,2.2rem) 0; }
.modal-head h2 { margin: 0; font-size: clamp(1.7rem,4vw,2.2rem); }
.modal-head .latin { font-style: italic; color: var(--muted); margin: .1rem 0 .5rem; }
.modal-cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.modal-section { padding: 0 clamp(1.3rem,4vw,2.2rem); margin-top: 1.3rem; }
.modal-section h4 { margin: 0 0 .5rem; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.modal-section p { margin: 0; }
.modal-section > .tag { display: inline-block; }
.tag { font-size: .74rem; font-weight: 700; padding: .28em .8em; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.use-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.use-list li { display: flex; gap: .6rem; padding: .55rem .9rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .92rem; }
.use-list li::before { content: "🌿"; flex: 0 0 auto; }
.safety-box { padding: 1rem 1.2rem; border-radius: 16px; background: var(--warn-bg); border-left: 5px solid var(--warn-border); font-size: .92rem; }
.safety-box.tox { background: var(--danger-bg); border-left-color: var(--danger); }
.safety-box.tox strong { color: var(--danger); }
.detox-box { padding: .9rem 1.2rem; border-radius: 16px; background: var(--detox-bg); border-left: 5px solid var(--detox); font-size: .92rem; }
.detox-box strong { color: var(--detox); }
.modal-fav { margin: 1.4rem clamp(1.3rem,4vw,2.2rem) 0; }
.modal-note { padding: 0 clamp(1.3rem,4vw,2.2rem); font-size: .8rem; color: var(--muted); text-align: right; margin-top: 1.4rem; }

/* ── Reveal & Misc ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--d,0s), transform .7s ease var(--d,0s); }
.reveal.visible { opacity: 1; transform: translateY(0); }
::selection { background: var(--green-300); color: var(--green-950); }
body.modal-open { overflow: hidden; }

/* ── Responsive ── */
@media (max-width: 720px) {
  .site-nav { display: none; }
  .daily { flex-direction: column; text-align: center; margin-top: -2rem; }
  .hero { min-height: 84vh; }
  .hero-stats { gap: 1.1rem 1.8rem; }
  .ladybug { display: none; }
  .herb-grid { grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: .9rem; }
  .use-list li::before { content: "🌿"; }
  .meadow { height: 100px; }
  .meadow .sprout { width: 34px; }
  .meadow .plx-wrap:nth-child(even) { display: none; }
  .wissen { padding-bottom: 8rem; }
}

/* ── Mobile-Menü ── */
.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 21px; height: 21px; }
.nav-toggle .nt-close { display: none; }
.nav-toggle.open .nt-open { display: none; }
.nav-toggle.open .nt-close { display: block; }

@media (max-width: 720px) {
  .nav-toggle { display: grid; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: .5rem 1.2rem 1rem;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; animation: nav-drop .25s ease; }
  .site-nav a { padding: .8rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
}
@keyframes nav-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ── Safe-Area (iPhone-Notch etc.) ── */
.site-header {
  padding-left: max(clamp(1rem, 4vw, 2.4rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 4vw, 2.4rem), env(safe-area-inset-right));
  padding-top: max(.8rem, env(safe-area-inset-top));
}
html { scroll-padding-top: calc(92px + env(safe-area-inset-top)); }

/* ── Datenschutz-Hinweis ── */
.consent {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(620px, calc(100vw - 2rem));
  padding: .9rem 1.2rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1.5px solid var(--green-300);
  box-shadow: var(--shadow-lg);
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.15);
}
.consent.show { transform: translate(-50%, 0); }
.consent p { margin: 0; font-size: .86rem; color: var(--muted); flex: 1; }
.consent strong { color: var(--ink); }
.consent .btn { flex-shrink: 0; }

/* ── Install-Hinweis ── */
.install-hint {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  z-index: 110;
  display: flex;
  align-items: center;
  gap: .8rem;
  width: min(560px, calc(100vw - 2rem));
  padding: .8rem 1rem;
  border-radius: 16px;
  background: var(--green-800);
  color: #eaf6ec;
  box-shadow: var(--shadow-lg);
  font-size: .87rem;
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.15);
}
.install-hint.show { transform: translate(-50%, 0); }
.install-hint span { flex: 1; }
.install-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.14);
  color: #eaf6ec;
  cursor: pointer;
}
.install-close svg { width: 14px; height: 14px; }

@media (max-width: 560px) {
  .consent { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  html { scroll-behavior: auto; }
  .bee, .butterfly, .pollen { display: none; }
  .reveal, .card { opacity: 1; transform: none; }
  .vine-stem { stroke-dashoffset: 0 !important; }
  .vine .vleaf { opacity: 1 !important; transform: none !important; }
}
