/* ==========================================================================
   AgrarWiki – Liquid Glass Design
   ========================================================================== */

@property --sweep {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, sans-serif;

  --bg: #eef4ec;
  --text: #0f1d14;
  --text-2: rgba(15, 29, 20, .7);
  --text-3: rgba(15, 29, 20, .5);
  --hairline: rgba(15, 29, 20, .08);
  --hairline-2: rgba(15, 29, 20, .14);

  --glass: rgba(255, 255, 255, .42);
  --glass-strong: rgba(255, 255, 255, .72);
  --glass-panel: rgba(250, 253, 250, .78);
  --rim-a: rgba(255, 255, 255, .95);
  --rim-b: rgba(255, 255, 255, .2);
  --inner-glow: rgba(255, 255, 255, .55);
  --spec: rgba(255, 255, 255, .6);
  --shadow: 0 1px 1px rgba(20, 40, 25, .04), 0 14px 44px -14px rgba(20, 60, 35, .28);
  --shadow-lg: 0 2px 2px rgba(20, 40, 25, .04), 0 30px 70px -20px rgba(20, 60, 35, .38);

  --accent: #1c9a52;
  --accent-2: #0d6f38;
  --accent-soft: rgba(28, 154, 82, .12);
  --mark: rgba(255, 205, 80, .55);

  --blob1: #86e3a8;
  --blob2: #ffd772;
  --blob3: #86ccff;
  --blob4: #efb785;
  --blob5: #bdf2d6;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --r: 26px;
  --orb-icon: rgba(13, 111, 56, .72);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #050f09;
  --text: #ebf6ee;
  --text-2: rgba(235, 246, 238, .72);
  --text-3: rgba(235, 246, 238, .48);
  --hairline: rgba(255, 255, 255, .08);
  --hairline-2: rgba(255, 255, 255, .15);
  --glass: rgba(255, 255, 255, .06);
  --glass-strong: rgba(255, 255, 255, .14);
  --glass-panel: rgba(16, 28, 21, .8);
  --rim-a: rgba(255, 255, 255, .42);
  --rim-b: rgba(255, 255, 255, .04);
  --inner-glow: rgba(255, 255, 255, .06);
  --spec: rgba(255, 255, 255, .16);
  --shadow: 0 1px 1px rgba(0, 0, 0, .25), 0 18px 50px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 2px rgba(0, 0, 0, .25), 0 36px 80px -20px rgba(0, 0, 0, .8);
  --accent: #4ade80;
  --accent-2: #22c55e;
  --accent-soft: rgba(74, 222, 128, .14);
  --mark: rgba(255, 196, 60, .35);
  --blob1: #0e6a39;
  --blob2: #6b4d09;
  --blob3: #0b4a78;
  --blob4: #5c2f12;
  --blob5: #0f5a44;
  --orb-icon: rgba(255, 255, 255, .9);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050f09;
    --text: #ebf6ee;
    --text-2: rgba(235, 246, 238, .72);
    --text-3: rgba(235, 246, 238, .48);
    --hairline: rgba(255, 255, 255, .08);
    --hairline-2: rgba(255, 255, 255, .15);
    --glass: rgba(255, 255, 255, .06);
    --glass-strong: rgba(255, 255, 255, .14);
    --glass-panel: rgba(16, 28, 21, .8);
    --rim-a: rgba(255, 255, 255, .42);
    --rim-b: rgba(255, 255, 255, .04);
    --inner-glow: rgba(255, 255, 255, .06);
    --spec: rgba(255, 255, 255, .16);
    --shadow: 0 1px 1px rgba(0, 0, 0, .25), 0 18px 50px -14px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 2px rgba(0, 0, 0, .25), 0 36px 80px -20px rgba(0, 0, 0, .8);
    --accent: #4ade80;
    --accent-2: #22c55e;
    --accent-soft: rgba(74, 222, 128, .14);
    --mark: rgba(255, 196, 60, .35);
    --blob1: #0e6a39;
    --blob2: #6b4d09;
    --blob3: #0b4a78;
    --blob4: #5c2f12;
    --blob5: #0f5a44;
    --orb-icon: rgba(255, 255, 255, .9);
    color-scheme: dark;
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .4s var(--ease);
}

a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: var(--mark); }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--glass-panel);
  text-decoration: none;
  font-weight: 600;
  transition: top .3s var(--ease);
}
.skip:focus { top: 16px; }

/* ---------- Hintergrund ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 62vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .85;
  will-change: transform;
}
.b1 { background: radial-gradient(circle, var(--blob1) 0%, transparent 62%); top: -22vmax; left: -18vmax; animation: drift1 26s ease-in-out infinite alternate; }
.b2 { background: radial-gradient(circle, var(--blob2) 0%, transparent 62%); top: -10vmax; right: -24vmax; animation: drift2 30s ease-in-out infinite alternate; }
.b3 { background: radial-gradient(circle, var(--blob3) 0%, transparent 62%); bottom: -30vmax; right: -10vmax; animation: drift3 34s ease-in-out infinite alternate; }
.b4 { background: radial-gradient(circle, var(--blob4) 0%, transparent 60%); bottom: -26vmax; left: -22vmax; width: 52vmax; opacity: .6; animation: drift2 28s ease-in-out infinite alternate-reverse; }
.b5 { background: radial-gradient(circle, var(--blob5) 0%, transparent 60%); top: 30%; left: 30%; width: 40vmax; opacity: .7; animation: drift1 22s ease-in-out infinite alternate-reverse; }

@keyframes drift1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12vw, 8vh) scale(1.12); }
  100% { transform: translate(4vw, 18vh) scale(.94); }
}
@keyframes drift2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10vw, 12vh) scale(.9); }
  100% { transform: translate(-16vw, -4vh) scale(1.1); }
}
@keyframes drift3 {
  0% { transform: translate(0, 0) scale(1.05); }
  50% { transform: translate(-14vw, -10vh) scale(.92); }
  100% { transform: translate(6vw, -16vh) scale(1.08); }
}

.cursor-light {
  position: absolute;
  left: 0;
  top: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .5), transparent 60%);
  opacity: 0;
  transition: opacity .6s;
  will-change: transform;
}
:root[data-theme="dark"] .cursor-light { background: radial-gradient(circle, rgba(120, 255, 180, .08), transparent 60%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cursor-light { background: radial-gradient(circle, rgba(120, 255, 180, .08), transparent 60%); }
}
body.pointer-active .cursor-light { opacity: 1; }

.grain {
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Liquid Glass ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--r);
  box-shadow:
    inset 0 1px 0 var(--inner-glow),
    inset 0 0 22px -6px var(--inner-glow),
    var(--shadow);
}
/* Lichtkante (Rim) */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, var(--rim-a), var(--rim-b) 38%, var(--rim-b) 62%, var(--rim-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* Spekulares Highlight, folgt dem Zeiger */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 25%) var(--my, -10%), var(--spec), transparent 45%);
  opacity: .55;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.glass:hover::after { opacity: 1; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  --r: 999px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  z-index: 50;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 12px;
  --r: 22px;
  transition: width .6s var(--spring), height .5s var(--ease), top .5s var(--ease);
}
.nav.scrolled {
  width: min(900px, calc(100% - 24px));
  height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #4bd98a, #0f7a3e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 6px rgba(0, 0, 0, .15), 0 6px 16px -6px rgba(15, 122, 62, .7);
  transition: transform .6s var(--spring);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.02em;
}
.brand-name b { font-weight: 800; }

.seg {
  position: relative;
  display: flex;
  padding: 4px;
  border-radius: 15px;
  background: var(--hairline);
}
.nav .seg { margin: 0 auto; }
.seg a, .seg button {
  position: relative;
  z-index: 1;
  padding: 7px 18px;
  border: 0;
  background: none;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  cursor: pointer;
  transition: color .3s;
}
.seg a:hover { color: var(--text); }
.seg a.active { color: var(--text); }
.seg-ind {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 11px;
  background: var(--glass-strong);
  box-shadow: inset 0 1px 0 var(--inner-glow), 0 2px 10px -2px rgba(0, 0, 0, .15);
  transition: transform .55s var(--spring), width .55s var(--spring), opacity .3s;
  opacity: 0;
}
.seg-ind.ready { opacity: 1; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.icon-btn {
  height: 40px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background .3s, color .3s, scale .4s var(--spring);
}
.icon-btn:hover { background: var(--hairline); color: var(--text); }
.icon-btn:active { scale: .92; }
.icon-btn svg { width: 20px; height: 20px; }
.search-btn { padding: 0 8px 0 12px; }

.kbd {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 7px;
  border: 1px solid var(--hairline-2);
  background: var(--glass);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .02em;
  white-space: nowrap;
}

#themeBtn .i-moon { display: none; }
:root[data-theme="dark"] #themeBtn .i-sun { display: none; }
:root[data-theme="dark"] #themeBtn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #themeBtn .i-sun { display: none; }
  :root:not([data-theme="light"]) #themeBtn .i-moon { display: block; }
}
#themeBtn svg { transition: transform .6s var(--spring); }
#themeBtn:hover svg { transform: rotate(40deg); }

.progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity .4s;
}
.progress.show { opacity: 1; }
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
}

/* Tabbar (mobil) */
.tabbar {
  display: none;
}

/* ---------- Layout ---------- */
main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 112px 20px 60px;
  outline: none;
  transition: opacity .22s ease, translate .22s ease, filter .22s ease;
}
main.is-leaving {
  opacity: 0;
  translate: 0 -10px;
  filter: blur(6px);
}

.section { margin-top: 110px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -.04em;
  line-height: 1.05;
}
.section-head p {
  margin: 10px 0 0;
  max-width: 520px;
  color: var(--text-2);
  font-size: 17px;
}
.eyebrow-sm {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Reveal-Animation */
.reveal {
  opacity: 0;
  translate: 0 30px;
  scale: .985;
  transition:
    opacity .9s var(--ease) var(--d, 0ms),
    translate 1s var(--ease) var(--d, 0ms),
    scale 1s var(--ease) var(--d, 0ms);
}
.reveal.in {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: scale .45s var(--spring), box-shadow .4s, background .3s;
  --r: 999px;
}
.btn:active { scale: .95; }
.btn svg { width: 18px; height: 18px; transition: transform .45s var(--spring); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #34c776, #0e7a3d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 10px rgba(0, 0, 0, .15), 0 12px 30px -10px rgba(14, 122, 61, .7);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 10px rgba(0, 0, 0, .15), 0 16px 36px -10px rgba(14, 122, 61, .85); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  min-height: min(760px, calc(100vh - 150px));
}
.eyebrow {
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  80%, 100% { box-shadow: 0 0 0 10px transparent; }
}

.hero-title {
  margin: 0;
  font-size: clamp(3rem, 8.2vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.hero-title .line > span {
  display: inline-block;
  translate: 0 110%;
  rotate: 4deg;
  transform-origin: left bottom;
  animation: lineUp 1.2s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes lineUp {
  to { translate: 0 0; rotate: 0deg; }
}
.grad-text {
  background: linear-gradient(100deg, #1c9a52 0%, #7bc74d 25%, #e0b22c 50%, #36a3e0 75%, #1c9a52 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lineUp 1.2s var(--ease) forwards, gradShift 9s linear infinite;
  animation-delay: var(--d, 0ms), 0s;
}
.hero-title .line > .grad-text {
  animation: lineUp 1.2s var(--ease) forwards, gradShift 9s linear infinite;
  animation-delay: var(--d, 0ms), 0s;
}
@keyframes gradShift {
  to { background-position: -200% 0; }
}

.lead {
  margin: 26px 0 30px;
  max-width: 520px;
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.6;
  color: var(--text-2);
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(520px, 100%);
  padding: 10px 10px 10px 20px;
  border: 0;
  cursor: text;
  text-align: left;
  font-size: 16px;
  color: var(--text-3);
  --r: 20px;
  transition: scale .5s var(--spring), box-shadow .4s;
}
.search-pill:hover { scale: 1.015; }
.search-pill:active { scale: .985; }
.search-pill svg { width: 22px; height: 22px; color: var(--text-2); flex-shrink: 0; }
.search-pill span:not(.kbd) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-pill .kbd { padding: 6px 10px; }

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.quick a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 6px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  --r: 999px;
  transition: scale .45s var(--spring), color .3s;
}
.quick a:hover { color: var(--text); scale: 1.05; }
.quick .ib-mini { width: 26px; height: 26px; border-radius: 50%; }

/* Hero-Visual */
.hero-visual {
  position: relative;
  height: 540px;
  --px: 0;
  --py: 0;
}
.hv-layer {
  position: absolute;
  transform: translate3d(calc(var(--px) * var(--depth, 20) * 1px), calc(var(--py) * var(--depth, 20) * 1px), 0);
  transition: transform 1.2s var(--ease);
}
.orb-wrap { left: 50%; top: 47%; width: 330px; height: 330px; margin: -165px 0 0 -165px; --depth: 10; }
.orb-halo {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #86e3a8, #ffd772, #86ccff, #efb785, #86e3a8);
  filter: blur(40px);
  opacity: .55;
  animation: spin 18s linear infinite;
}
.orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .95) 0 5%, rgba(255, 255, 255, .45) 12%, transparent 36%),
    radial-gradient(circle at 72% 80%, rgba(255, 255, 255, .45), transparent 38%),
    linear-gradient(140deg, rgba(134, 227, 168, .35), rgba(255, 215, 114, .25) 55%, rgba(134, 204, 255, .35));
  -webkit-backdrop-filter: blur(10px) saturate(170%);
  backdrop-filter: blur(10px) saturate(170%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .55),
    inset 0 0 50px rgba(255, 255, 255, .45),
    inset -24px -34px 70px rgba(13, 111, 56, .22),
    0 40px 90px -30px rgba(13, 111, 56, .55);
  animation: morph 14s ease-in-out infinite;
  display: grid;
  place-items: center;
  color: var(--orb-icon);
}
.orb svg {
  width: 38%;
  height: 38%;
  filter: drop-shadow(0 6px 14px rgba(13, 111, 56, .45));
  animation: sway 6s ease-in-out infinite;
  transform-origin: 50% 90%;
}
@keyframes morph {
  0%, 100% { border-radius: 50%; rotate: 0deg; }
  25% { border-radius: 46% 54% 52% 48% / 53% 46% 54% 47%; }
  50% { border-radius: 53% 47% 45% 55% / 47% 55% 45% 53%; rotate: 8deg; }
  75% { border-radius: 48% 52% 55% 45% / 52% 48% 52% 48%; }
}
@keyframes sway {
  0%, 100% { rotate: -4deg; }
  50% { rotate: 4deg; }
}
@keyframes spin { to { rotate: 360deg; } }

.fc {
  padding: 16px 18px;
  --r: 22px;
  animation: bob 7s ease-in-out infinite alternate;
  animation-delay: var(--bd, 0s);
  opacity: 0;
  scale: .9;
  transition: opacity 1s var(--ease), scale 1.2s var(--spring);
}
.hero-visual.in .fc { opacity: 1; scale: 1; }
@keyframes bob {
  from { translate: 0 -8px; }
  to { translate: 0 10px; }
}
.fc-1 { left: 0; top: 13%; width: 236px; --depth: 34; }
.fc-2 { right: -8px; top: 38%; width: 224px; --depth: 26; }
.fc-3 { left: 8%; bottom: 3%; width: 250px; --depth: 42; }
.fc-4 { right: -8px; top: -2%; --depth: 18; }
.fc-1 .fc { transition-delay: .5s; }
.fc-2 .fc { transition-delay: .7s; }
.fc-3 .fc { transition-delay: .9s; }
.fc-4 .fc { transition-delay: 1.1s; }

.fc-row { display: flex; align-items: center; gap: 12px; }
.fc-label { font-size: 12.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.fc-val { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.fc-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.mini-ring {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(#c98a4b 0 var(--sweep), var(--hairline-2) var(--sweep) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%);
  mask: radial-gradient(circle, transparent 55%, #000 56%);
  transition: --sweep 2s var(--ease) 1s;
}
.hero-visual.in .mini-ring { --sweep: 162deg; }
.fc-bar {
  margin-top: 12px;
  height: 8px;
  border-radius: 8px;
  background: var(--hairline-2);
  overflow: hidden;
}
.fc-bar span {
  display: block;
  height: 100%;
  width: 70%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4fb3ff, #1c62d6);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.8s var(--ease) 1.2s;
}
.hero-visual.in .fc-bar span { transform: scaleX(1); }
.fc .ib { width: 44px; height: 44px; border-radius: 14px; }
.fc .ib svg { width: 24px; height: 24px; }
.fc-4 .fc { padding: 10px 14px 10px 10px; --r: 999px; }
.fc-4 .ib { width: 32px; height: 32px; border-radius: 50%; }
.fc-4 .ib svg { width: 18px; height: 18px; }
.fc-4 strong { font-size: 14px; }

/* Stat-Leiste */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
  padding: 8px;
  --r: 28px;
}
.stats-strip > div {
  padding: 20px 24px;
  border-right: 1px solid var(--hairline);
}
.stats-strip > div:last-child { border-right: 0; }
.stats-strip strong {
  display: block;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.stats-strip > div > span { font-size: 14px; color: var(--text-2); }

/* ---------- Icon-Bubble ---------- */
.ib {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -3px 8px rgba(0, 0, 0, .15),
    0 10px 22px -10px var(--c2);
  position: relative;
  overflow: hidden;
}
.ib::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(255, 255, 255, .45), transparent 48%);
  pointer-events: none;
}
.ib svg { width: 28px; height: 28px; position: relative; z-index: 1; }
.ib-mini { width: 30px; height: 30px; border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.ib-mini svg { width: 17px; height: 17px; }

/* ---------- Themenkarten ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(236px, auto);
  gap: 16px;
}
.bento .tcard:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento .tcard:nth-child(6),
.bento .tcard:nth-child(11) { grid-column: span 2; }

.tcard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  text-decoration: none;
  overflow: hidden;
  --r: 28px;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition:
    transform .6s var(--ease),
    box-shadow .5s var(--ease),
    opacity .9s var(--ease) var(--d, 0ms),
    translate 1s var(--ease) var(--d, 0ms),
    scale 1s var(--ease) var(--d, 0ms);
}
.tcard:hover {
  --ty: -5px;
  box-shadow: inset 0 1px 0 var(--inner-glow), inset 0 0 22px -6px var(--inner-glow), var(--shadow-lg);
}
.tcard.tilting { transition: transform .12s linear, box-shadow .5s var(--ease), opacity .9s var(--ease), translate 1s var(--ease), scale 1s var(--ease); }
.tcard-glow {
  position: absolute;
  z-index: -1;
  width: 75%;
  aspect-ratio: 1;
  right: -22%;
  top: -35%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c1), transparent 68%);
  opacity: .28;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
  pointer-events: none;
}
.tcard:hover .tcard-glow { opacity: .55; transform: scale(1.2) translate(-6%, 6%); }
.tcard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.tcard .ib { transition: transform .7s var(--spring); }
.tcard:hover .ib { transform: scale(1.08) rotate(-6deg); }
.tnum {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.tcard h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.tcard p {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--text-2);
}
.tcard .tintro { display: none; margin-top: 14px; font-size: 16px; line-height: 1.6; max-width: 460px; }
.tcard-body { flex: 1; }
.tcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-3);
}
.go {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hairline);
  color: var(--text);
  transition: background .4s, color .4s, transform .6s var(--spring);
}
.go svg { width: 17px; height: 17px; }
.tcard:hover .go {
  background: linear-gradient(145deg, var(--c1), var(--c2));
  color: #fff;
  transform: translateX(3px) rotate(-45deg);
}

/* Große Karte */
.bento .tcard:nth-child(1) { padding: 32px; }
.bento .tcard:nth-child(1) .ib { width: 76px; height: 76px; border-radius: 24px; }
.bento .tcard:nth-child(1) .ib svg { width: 40px; height: 40px; }
.bento .tcard:nth-child(1) h3 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.045em; }
.bento .tcard:nth-child(1) .tintro { display: block; }
.bento .tcard:nth-child(1) .tcard-glow { width: 90%; right: -25%; top: -30%; opacity: .38; }

/* Themenseite (Übersicht) */
.tgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tgrid .tcard .tintro { display: block; font-size: 15px; }
.chapters-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.chapters-mini span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--hairline);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

/* ---------- Fakten-Karussell ---------- */
.facts {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 40px 44px;
  overflow: hidden;
  --r: 34px;
}
.facts-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 90% at 0% 0%, color-mix(in srgb, var(--c1, #86e3a8) 45%, transparent), transparent 70%),
    radial-gradient(50% 80% at 100% 100%, color-mix(in srgb, var(--c2, #86ccff) 35%, transparent), transparent 70%);
  transition: background 1s var(--ease);
  opacity: .8;
}
.facts-stage {
  position: relative;
  min-height: 170px;
}
.fact {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 30px;
  opacity: 0;
  translate: 0 24px;
  filter: blur(8px);
  transition: opacity .7s var(--ease), translate .9s var(--ease), filter .7s var(--ease);
  pointer-events: none;
}
.fact.active {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
  pointer-events: auto;
}
.fact.leaving { translate: 0 -24px; }
.fact-big {
  flex-shrink: 0;
  min-width: 190px;
  font-size: clamp(54px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fact p {
  margin: 0 0 12px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
  font-weight: 550;
  letter-spacing: -.015em;
  max-width: 560px;
}
.fact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text-2);
  text-decoration: none;
}
.fact a svg { width: 16px; height: 16px; transition: transform .4s var(--spring); }
.fact a:hover { color: var(--text); }
.fact a:hover svg { transform: translateX(3px); }
.facts-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.facts-nav button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--hairline-2);
  cursor: pointer;
  transition: height .5s var(--spring), background .4s;
}
.facts-nav button.active {
  height: 34px;
  background: linear-gradient(180deg, var(--c1), var(--c2));
}

/* ---------- Agrarjahr ---------- */
.seasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.season {
  padding: 24px;
  overflow: hidden;
  transition: transform .6s var(--spring), opacity .9s var(--ease) var(--d, 0ms), translate 1s var(--ease) var(--d, 0ms), scale 1s var(--ease) var(--d, 0ms);
}
.season:hover { transform: translateY(-6px); }
.season-orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .9), transparent 32%), linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: inset 0 -6px 14px rgba(0, 0, 0, .15), 0 14px 30px -12px var(--c2);
  animation: morph 10s ease-in-out infinite;
  animation-delay: var(--md, 0s);
}
.season-bg {
  position: absolute;
  z-index: -1;
  width: 120%;
  aspect-ratio: 1;
  left: -60%;
  top: -60%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c1), transparent 65%);
  opacity: .22;
  transition: opacity .6s;
}
.season:hover .season-bg { opacity: .4; }
.season h3 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.season small { display: block; color: var(--text-3); font-weight: 600; font-size: 13px; margin-bottom: 14px; }
.season ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.season li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.45;
}
.season li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--c1), var(--c2));
}

/* ---------- Glossar-Teaser ---------- */
.gteaser {
  padding: 40px;
  text-align: center;
  --r: 34px;
  overflow: hidden;
}
.gteaser h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; }
.gteaser > p { margin: 0 auto 26px; max-width: 520px; color: var(--text-2); }
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--hairline-2);
  background: var(--glass);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: scale .5s var(--spring), color .3s, background .3s, border-color .3s, opacity .8s var(--ease) var(--d, 0ms), translate .9s var(--ease) var(--d, 0ms);
}
.chip:hover {
  scale: 1.07;
  color: var(--text);
  background: var(--glass-strong);
  border-color: color-mix(in srgb, var(--c1, var(--accent)) 50%, transparent);
}
.chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--c1), var(--c2));
}

/* ---------- Seitenkopf ---------- */
.page-head {
  padding: 30px 0 34px;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5rem);
  letter-spacing: -.055em;
  line-height: 1;
}
.page-head p {
  margin: 16px 0 0;
  max-width: 580px;
  font-size: 18px;
  color: var(--text-2);
}

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
}
.crumbs a { text-decoration: none; color: var(--text-2); transition: color .3s; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 14px; height: 14px; }

/* ---------- Themen-Detailseite ---------- */
.topic-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  padding: 44px;
  overflow: hidden;
  --r: 38px;
}
.topic-hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 90% at 0% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 70%),
    radial-gradient(45% 80% at 100% 100%, color-mix(in srgb, var(--c2) 40%, transparent), transparent 70%);
  opacity: .55;
  animation: glowPulse 8s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { opacity: .4; transform: scale(1); }
  to { opacity: .65; transform: scale(1.06); }
}
.topic-icon {
  width: 148px;
  height: 148px;
  border-radius: 44px;
  animation: iconIn 1.2s var(--spring) both;
}
.topic-icon svg { width: 76px; height: 76px; }
@keyframes iconIn {
  from { scale: .5; rotate: -20deg; opacity: 0; }
  to { scale: 1; rotate: 0deg; opacity: 1; }
}
.draw path, .draw circle, .draw rect {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 1.6s var(--ease) forwards;
  animation-delay: calc(300ms + var(--i, 0) * 90ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.topic-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  letter-spacing: -.05em;
  line-height: 1.02;
}
.topic-hero .subtitle {
  margin: 6px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}
.topic-hero .intro {
  margin: 16px 0 20px;
  max-width: 680px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text-2);
}
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta .pill svg { width: 15px; height: 15px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0 34px;
}
.stat {
  padding: 22px 24px;
  overflow: hidden;
}
.stat-val {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}
.stat p { margin: 6px 0 0; font-size: 14.5px; color: var(--text-2); line-height: 1.45; }

.topic-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  padding: 18px 10px 12px;
  --r: 24px;
}
.toc-title {
  margin: 0 12px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.toc ol {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc button {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: none;
  border-radius: 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
  color: var(--text-2);
  cursor: pointer;
  transition: color .3s;
}
.toc button span { color: var(--text-3); font-variant-numeric: tabular-nums; font-weight: 700; }
.toc button:hover, .toc button.active { color: var(--text); }
.toc button.active span { color: var(--c2); }
.toc-ind {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  border-radius: 12px;
  background: var(--glass-strong);
  box-shadow: inset 0 1px 0 var(--inner-glow), 0 3px 12px -4px rgba(0, 0, 0, .18);
  transition: transform .55s var(--spring), height .55s var(--spring), opacity .3s;
  opacity: 0;
}
.toc-ind::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--c1), var(--c2));
}

.chapter {
  padding: 36px 40px 38px;
  margin-bottom: 18px;
  overflow: hidden;
  scroll-margin-top: 96px;
  --r: 32px;
}
.chapter-num {
  position: absolute;
  top: 16px;
  right: 30px;
  font-size: 88px;
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  background: linear-gradient(160deg, var(--c1), transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .35;
  pointer-events: none;
}
.chapter h2 {
  margin: 0 0 16px;
  padding-right: 70px;
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -.035em;
  line-height: 1.15;
}

.prose { color: var(--text-2); font-size: 16.5px; line-height: 1.72; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--text); font-weight: 650; }
.prose em { color: var(--text); }
.prose ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c1) 18%, transparent);
}

.table-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--hairline-2);
  background: var(--glass);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.prose th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  background: color-mix(in srgb, var(--c1) 10%, transparent);
  white-space: nowrap;
}
.prose td {
  padding: 12px 16px;
  border-top: 1px solid var(--hairline);
  vertical-align: top;
  min-width: 120px;
}
.prose tbody tr { transition: background .3s; }
.prose tbody tr:hover { background: color-mix(in srgb, var(--c1) 8%, transparent); }

.callout {
  position: relative;
  margin: 0 0 18px;
  padding: 18px 20px 18px 62px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--c1) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c1) 30%, transparent);
}
.callout::before {
  content: "i";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  font-family: Georgia, serif;
  font-style: italic;
  color: #fff;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.callout.tip::before { content: "✦"; font-style: normal; font-family: var(--font); font-size: 14px; }
.callout strong { display: block; margin-bottom: 4px; }
.callout p { margin: 0; font-size: 15.5px; }

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.info-chip {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--hairline-2);
  background: var(--glass);
  transition: transform .5s var(--spring), border-color .4s, background .4s;
}
.info-chip:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c1) 55%, transparent);
  background: color-mix(in srgb, var(--c1) 8%, var(--glass));
}
.info-chip strong { display: block; margin-bottom: 4px; font-size: 15.5px; }
.info-chip span { display: block; font-size: 14.5px; line-height: 1.5; }

.related {
  padding: 28px 32px;
  margin-bottom: 18px;
}
.related h3 { margin: 0 0 14px; font-size: 18px; letter-spacing: -.02em; }
.related .chip-cloud { justify-content: flex-start; margin: 0; }

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pager a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  text-decoration: none;
  overflow: hidden;
  transition: transform .6s var(--spring);
}
.pager a:hover { transform: translateY(-4px); }
.pager a.next { flex-direction: row-reverse; text-align: right; }
.pager small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.pager strong { display: block; font-size: 18px; letter-spacing: -.02em; margin-top: 2px; }
.pager .ib { width: 46px; height: 46px; border-radius: 15px; }
.pager .ib svg { width: 24px; height: 24px; }

/* ---------- Widgets ---------- */
.widget { margin: 6px 0 22px; }

/* Zusammensetzung (Donut) */
.w-comp {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--hairline-2);
  background: var(--glass);
}
.donut {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(#c98a4b 0 45%, #4fb3ff 45% 70%, #9fdcc9 70% 95%, #5b3a1e 95% 100%);
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%), conic-gradient(#000 var(--sweep), transparent 0);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle, transparent 57%, #000 58%) intersect, conic-gradient(#000 var(--sweep), transparent 0);
  transition: --sweep 1.8s var(--ease) .2s;
}
.reveal-widget.in .donut, .donut.in { --sweep: 360deg; }
.donut-wrap { position: relative; }
.donut-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.donut-label strong { font-size: 30px; letter-spacing: -.04em; line-height: 1; color: var(--text); }
.donut-label span { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.legend { list-style: none !important; padding: 0; margin: 0 !important; display: grid !important; gap: 10px !important; flex: 1; min-width: 200px; }
.legend li { display: flex; align-items: center; gap: 12px; padding: 0 !important; }
.legend li::before { display: none; }
.legend i { width: 14px; height: 14px; border-radius: 5px; flex-shrink: 0; }
.legend b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }

/* Bodenprofil */
.w-profile {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--hairline-2);
  background: var(--glass);
}
.w-profile .grass {
  height: 14px;
  background:
    repeating-linear-gradient(100deg, #4caf50 0 3px, #7ccf5a 3px 6px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 60%);
  mask: linear-gradient(180deg, transparent, #000 60%);
}
.layer {
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: var(--h);
  transition: background .3s;
}
.layer:hover { background: color-mix(in srgb, var(--lc) 12%, transparent); }
.layer-swatch {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .18) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, .18) 0 3px, transparent 4px),
    radial-gradient(circle at 45% 80%, rgba(255, 255, 255, .12) 0 2px, transparent 3px),
    var(--lc);
  background-size: 22px 22px, 30px 30px, 18px 18px, auto;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  transform-origin: left;
  scale: 0 1;
  transition: scale 1s var(--ease);
  transition-delay: calc(var(--i) * 150ms);
}
.reveal-widget.in .layer-swatch { scale: 1 1; }
.layer-text {
  padding: 14px 20px;
  border-top: 1px solid var(--hairline);
  opacity: 0;
  translate: 16px 0;
  transition: opacity .8s var(--ease), translate .8s var(--ease);
  transition-delay: calc(300ms + var(--i) * 150ms);
}
.reveal-widget.in .layer-text { opacity: 1; translate: 0 0; }
.layer-text strong { display: block; }
.layer-text p { margin: 2px 0 0 !important; font-size: 14.5px; line-height: 1.5; }

/* Orbit (Kreislauf / Fruchtfolge) */
.w-orbit {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1;
  margin: 8px auto 24px;
  --rad: 36%;
}
.orbit-ring {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--c1) 50%, transparent);
  animation: spin 60s linear infinite;
}
.orbit-spin {
  position: absolute;
  inset: 14%;
  animation: spin 9s linear infinite;
}
.orbit-dot {
  position: absolute;
  left: 50%;
  top: -9px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c1) 25%, transparent), 0 0 24px var(--c1);
}
.orbit-center {
  position: absolute;
  inset: 34%;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .6), transparent 45%), linear-gradient(145deg, color-mix(in srgb, var(--c1) 35%, transparent), color-mix(in srgb, var(--c2) 35%, transparent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 0 30px rgba(255, 255, 255, .25);
  animation: morph 12s ease-in-out infinite;
}
.orbit-center strong { color: var(--text); font-size: 17px; line-height: 1.2; letter-spacing: -.02em; }
.orbit-center span { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.orbit-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  transform: translate(-50%, -50%);
}
.orbit-bubble {
  display: block;
  padding: 12px 14px;
  text-align: center;
  --r: 18px;
  scale: .6;
  opacity: 0;
  transition: scale .9s var(--spring), opacity .6s var(--ease);
  transition-delay: calc(var(--i) * 140ms);
}
.reveal-widget.in .orbit-bubble { scale: 1; opacity: 1; }
.orbit-bubble b { display: block; color: var(--text); font-size: 15px; line-height: 1.25; }
.orbit-bubble small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--text-2); }
.orbit-bubble .n {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--c1), var(--c2));
}

/* Minimumtonne */
.w-min {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--hairline-2);
  background: var(--glass);
}
.barrel {
  position: relative;
  height: 250px;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0 14px;
}
.barrel::before, .barrel::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 7px;
  border-radius: 7px;
  background: linear-gradient(90deg, #6b6f76, #aeb3ba, #6b6f76);
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.barrel::before { bottom: 22%; }
.barrel::after { bottom: 70%; }
.stave {
  position: relative;
  flex: 1;
  height: var(--h);
  padding: 0;
  border: 0;
  border-radius: 10px 10px 4px 4px;
  cursor: pointer;
  background: linear-gradient(90deg, #a86a35, #d59a5f 45%, #b27540);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset -2px 0 0 rgba(0, 0, 0, .12);
  transition: height .9s var(--spring), filter .3s, transform .4s var(--spring);
  z-index: 1;
}
.stave:hover { filter: brightness(1.1); transform: translateY(-3px); }
.stave:active { transform: translateY(0) scale(.97); }
.stave.min { background: linear-gradient(90deg, #c0492f, #f07a52 45%, #c9553a); animation: wobble 1.8s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { rotate: 0deg; } 25% { rotate: -1.2deg; } 75% { rotate: 1.2deg; } }
.stave .plus {
  position: absolute;
  left: 50%;
  top: -30px;
  translate: -50% 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass-strong);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transition: opacity .3s, translate .4s var(--spring);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.stave:hover .plus { opacity: 1; translate: -50% -3px; }
.water {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: var(--level);
  z-index: 2;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(79, 179, 255, .38), rgba(28, 98, 214, .55));
  transition: height 1.1s var(--spring);
}
.water::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .6), transparent);
}
.water::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  animation: shimmer 3.6s ease-in-out infinite;
}
@keyframes shimmer { to { left: 110%; } }
.barrel-labels {
  display: flex;
  gap: 6px;
  max-width: 440px;
  margin: 10px auto 0;
  padding: 0 14px;
}
.barrel-labels span {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-2);
  transition: color .3s;
}
.barrel-labels span.min { color: #e0553a; }
.min-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 15px;
}
.min-status .yield strong { font-size: 22px; letter-spacing: -.03em; color: var(--text); }
.min-reset {
  padding: 8px 16px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  background: var(--glass);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: scale .4s var(--spring), background .3s;
}
.min-reset:hover { background: var(--glass-strong); }
.min-reset:active { scale: .95; }

/* Pyramide */
.w-pyr { display: grid; gap: 8px; justify-items: center; margin-bottom: 22px; }
.pyr-level {
  width: var(--w);
  padding: 13px 18px;
  border-radius: 16px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) var(--mix), #0b3d22), color-mix(in srgb, var(--c2) var(--mix), #0b3d22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px -14px var(--c2);
  scale: .4 1;
  opacity: 0;
  transition: scale 1s var(--spring), opacity .6s var(--ease);
  transition-delay: calc(var(--i) * 130ms);
}
.reveal-widget.in .pyr-level { scale: 1 1; opacity: 1; }
.pyr-level b { display: block; font-size: 15px; line-height: 1.25; }
.pyr-level small { display: block; font-size: 13px; opacity: .88; line-height: 1.35; margin-top: 2px; }

/* Mägen */
.w-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
  position: relative;
}
.flow-step {
  position: relative;
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--hairline-2);
  background: var(--glass);
  opacity: 0;
  translate: 0 20px;
  transition: opacity .7s var(--ease), translate .8s var(--spring);
  transition-delay: calc(var(--i) * 140ms);
}
.reveal-widget.in .flow-step { opacity: 1; translate: 0 0; }
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2.5px solid var(--c1);
  border-right: 2.5px solid var(--c1);
  rotate: 45deg;
  translate: 0 -50%;
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge { 50% { translate: 4px -50%; } }
.flow-step .n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  background: linear-gradient(145deg, var(--c1), var(--c2));
}
.flow-step strong { display: block; font-size: 15.5px; }
.flow-step span { display: block; font-size: 13.5px; line-height: 1.45; margin-top: 4px; }

/* Phänologie */
.w-pheno {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 26px;
  align-items: center;
  margin-bottom: 22px;
}
.pheno-ring {
  position: relative;
  width: 200px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--stops));
  -webkit-mask: radial-gradient(circle, transparent 50%, #000 51%), conic-gradient(#000 var(--sweep), transparent 0);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle, transparent 50%, #000 51%) intersect, conic-gradient(#000 var(--sweep), transparent 0);
  transition: --sweep 2.2s var(--ease);
}
.reveal-widget.in .pheno-ring { --sweep: 360deg; }
.pheno-wrap { position: relative; }
.pheno-wrap .donut-label strong { font-size: 18px; }
.pheno-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px !important;
}
.pheno-list li {
  display: flex;
  gap: 10px;
  padding: 0 !important;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  translate: 10px 0;
  transition: opacity .6s var(--ease), translate .7s var(--ease);
  transition-delay: calc(var(--i) * 80ms);
}
.reveal-widget.in .pheno-list li { opacity: 1; translate: 0 0; }
.pheno-list li::before { display: none; }
.pheno-list i { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; flex-shrink: 0; background: var(--pc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 25%, transparent); }
.pheno-list b { color: var(--text); display: block; }

/* Zeitleiste */
.w-timeline {
  position: relative;
  margin: 0 0 22px;
  padding-left: 30px;
}
.w-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--c1), var(--c2));
  transform-origin: top;
  scale: 1 0;
  transition: scale 2s var(--ease);
}
.reveal-widget.in .w-timeline::before { scale: 1 1; }
.tl-item {
  position: relative;
  padding: 0 0 18px;
  opacity: 0;
  translate: 14px 0;
  transition: opacity .7s var(--ease), translate .8s var(--ease);
  transition-delay: calc(var(--i) * 170ms);
}
.reveal-widget.in .tl-item { opacity: 1; translate: 0 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--c1);
}
.tl-item b {
  display: inline-block;
  margin-bottom: 2px;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  background: color-mix(in srgb, var(--c1) 18%, transparent);
}
.tl-item p { margin: 0 !important; font-size: 15px; }

/* Nachhaltigkeits-Dreiklang */
.w-triad {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
}
.triad-venn {
  position: relative;
  width: 280px;
  height: 260px;
}
.triad-venn .c {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  background: color-mix(in srgb, var(--vc) 38%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--vc) 70%, transparent);
  transition: translate 1.2s var(--spring), opacity .8s;
  opacity: 0;
}
.triad-venn .c span { translate: var(--lt); }
.triad-venn .c1 { --vc: #34c776; left: 60px; top: 0; translate: 0 -40px; }
.triad-venn .c2 { --vc: #f0b429; left: 0; top: 96px; translate: -40px 30px; }
.triad-venn .c3 { --vc: #e0569b; left: 120px; top: 96px; translate: 40px 30px; }
.triad-venn .c1 span { --lt: 0 -26px; }
.triad-venn .c2 span { --lt: -24px 16px; }
.triad-venn .c3 span { --lt: 24px 16px; }
.reveal-widget.in .triad-venn .c { translate: 0 0; opacity: 1; }
.triad-core {
  position: absolute;
  left: 50%;
  top: 150px;
  translate: -50% -50%;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #1c9a52, #0d6f38);
  box-shadow: 0 6px 16px -6px rgba(13, 111, 56, .8);
  scale: 0;
  transition: scale .8s var(--spring) .9s;
}
.reveal-widget.in .triad-core { scale: 1; }
.triad-list { display: grid; gap: 10px; }
.triad-list div { padding: 12px 16px; border-radius: 16px; border: 1px solid var(--hairline-2); background: var(--glass); border-left: 4px solid var(--vc); }
.triad-list strong { display: block; }
.triad-list span { font-size: 14.5px; }

/* ---------- Glossar ---------- */
.gtools {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
}
.gsearch {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, 100%);
  padding: 4px 8px 4px 18px;
  --r: 18px;
}
.gsearch svg { width: 20px; height: 20px; color: var(--text-3); flex-shrink: 0; }
.gsearch input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}
.gsearch input::placeholder { color: var(--text-3); }
.gcount { font-size: 13px; font-weight: 600; color: var(--text-3); padding-right: 8px; white-space: nowrap; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; }
.letters button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--hairline-2);
  border-radius: 12px;
  background: var(--glass);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: scale .4s var(--spring), background .3s, color .3s;
}
.letters button:hover:not(:disabled) { scale: 1.12; background: var(--glass-strong); }
.letters button:disabled { opacity: .3; cursor: default; }
.gletter-group { margin-top: 34px; scroll-margin-top: 96px; }
.gletter {
  margin: 0 0 14px;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  background: linear-gradient(135deg, #1c9a52, #7bc74d 60%, #e0b22c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}
.gcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.gcard {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  scroll-margin-top: 110px;
  --r: 22px;
  transition: transform .6s var(--spring), opacity .9s var(--ease) var(--d, 0ms), translate 1s var(--ease) var(--d, 0ms), scale 1s var(--ease) var(--d, 0ms);
}
.gcard:hover { transform: translateY(-4px); }
.gcard h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.02em; }
.gcard p { margin: 0 0 14px; flex: 1; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.gcard .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: var(--hairline);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-2);
  transition: background .3s, color .3s;
}
.gcard .tag:hover { background: var(--hairline-2); color: var(--text); }
.gcard .tag .ib-mini { width: 24px; height: 24px; border-radius: 50%; }
.gcard .tag .ib-mini svg { width: 14px; height: 14px; }
.gcard.flash { animation: flash 2.2s var(--ease); }
@keyframes flash {
  0%, 60% { box-shadow: 0 0 0 3px var(--accent), 0 0 40px -4px var(--accent); }
  100% { box-shadow: inset 0 1px 0 var(--inner-glow), var(--shadow); }
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-3);
  font-weight: 600;
}
.empty-big { font-size: 40px; margin-bottom: 8px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(5rem, 16vw, 10rem); margin: 0; letter-spacing: -.06em; line-height: 1; }

/* ---------- Suche ---------- */
.search-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.search-layer[hidden] { display: none; }
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 10, .22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fadeIn .35s var(--ease);
}
.search-panel {
  position: relative;
  width: min(660px, calc(100% - 24px));
  margin: max(80px, 12vh) auto 0;
  background: var(--glass-panel);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  backdrop-filter: blur(40px) saturate(190%);
  box-shadow: inset 0 1px 0 var(--inner-glow), var(--shadow-lg);
  --r: 26px;
  overflow: hidden;
  animation: panelIn .55s var(--spring);
}
.search-layer.closing .search-backdrop { animation: fadeOut .25s var(--ease) forwards; }
.search-layer.closing .search-panel { animation: panelOut .25s var(--ease) forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes panelIn { from { opacity: 0; scale: .94; translate: 0 -16px; } }
@keyframes panelOut { to { opacity: 0; scale: .97; translate: 0 -8px; } }
.search-field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 22px;
  border-bottom: 1px solid var(--hairline);
}
.search-field svg { width: 22px; height: 22px; color: var(--text-3); flex-shrink: 0; }
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 18px;
  color: var(--text);
}
.search-field input::placeholder { color: var(--text-3); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field .kbd { cursor: pointer; }
.search-results {
  max-height: min(58vh, 520px);
  overflow-y: auto;
  padding: 8px;
  overscroll-behavior: contain;
}
.sr-group {
  padding: 12px 12px 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.sr-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  animation: srIn .45s var(--ease) both;
  animation-delay: calc(var(--i) * 25ms);
}
@keyframes srIn { from { opacity: 0; translate: 0 6px; } }
.sr-item.active { background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--inner-glow), 0 2px 10px -4px rgba(0, 0, 0, .15); }
.sr-item .ib { width: 36px; height: 36px; border-radius: 11px; }
.sr-item .ib svg { width: 19px; height: 19px; }
.sr-text { flex: 1; min-width: 0; }
.sr-text strong { display: block; font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-text span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}
.sr-arrow { width: 16px; height: 16px; color: var(--text-3); opacity: 0; transition: opacity .2s, translate .3s var(--spring); }
.sr-item.active .sr-arrow { opacity: 1; translate: 3px 0; }
mark { background: var(--mark); color: inherit; border-radius: 4px; padding: 0 2px; }
.sr-empty { padding: 40px 20px; text-align: center; color: var(--text-3); font-weight: 600; }
.sr-hint {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding: 10px 16px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- Footer ---------- */
.footer {
  width: min(1120px, 100%);
  margin: 40px auto 0;
  padding: 0 20px 30px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 24px;
  --r: 22px;
}
.footer-note { font-size: 13.5px; color: var(--text-3); }

/* ---------- Responsiv ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 10px; }
  .hero-visual { height: 460px; max-width: 560px; width: 100%; margin: 0 auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .tcard:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .bento .tcard:nth-child(1) { grid-column: span 2; }
  .seasons { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip > div:nth-child(2) { border-right: 0; }
  .stats-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
  .topic-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: relative; top: 0; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 4px; }
  .toc li { flex: 0 1 auto; }
  .toc button { background: var(--hairline); border-radius: 999px; padding: 7px 13px; font-size: 13.5px; }
  .toc-ind { display: none; }
  .w-flow { grid-template-columns: repeat(2, 1fr); }
  .w-flow .flow-step:nth-child(2)::after { display: none; }
}

@media (max-width: 720px) {
  .nav { height: 56px; }
  .nav.scrolled { width: calc(100% - 24px); }
  .nav .seg, .nav .search-btn { display: none; }
  .nav-actions { margin-left: auto; }
  .tabbar {
    position: fixed;
    z-index: 50;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    translate: -50% 0;
    width: min(420px, calc(100% - 24px));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px;
    --r: 26px;
    border-radius: 26px;
  }
  .tabbar.seg { background: var(--glass); }
  .tabbar a, .tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 4px 6px;
    font-size: 11px;
    border-radius: 20px;
  }
  .tabbar svg { width: 23px; height: 23px; }
  .tabbar .seg-ind { top: 6px; bottom: 6px; border-radius: 20px; }
  main { padding: 92px 16px 40px; overflow-x: clip; }
  .hero-title { font-size: 11vw; }
  .search-pill .kbd { display: none; }
  .footer { padding: 0 16px 110px; }
  .section { margin-top: 80px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-visual { height: 400px; }
  .orb-wrap { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
  .fc-1 { width: 200px; top: 2%; }
  .fc-2 { width: 190px; top: 44%; right: 0; }
  .fc-3 { width: 210px; left: 0; }
  .fc-4 { display: none; }
  .fc-val { font-size: 22px; }
  .bento, .tgrid, .seasons { grid-template-columns: minmax(0, 1fr); }
  .bento .tcard:nth-child(n) { grid-column: span 1; }
  .bento .tcard:nth-child(1) { padding: 24px; }
  .stats-strip > div { padding: 16px; }
  .facts { grid-template-columns: 1fr; padding: 28px 24px; }
  .facts-stage { min-height: 250px; }
  .fact { flex-direction: column; align-items: flex-start; gap: 10px; }
  .facts-nav { flex-direction: row; }
  .facts-nav button.active { height: 10px; width: 30px; }
  .facts-nav button { transition: width .5s var(--spring), background .4s; }
  .gteaser { padding: 28px 20px; }
  .topic-hero { grid-template-columns: 1fr; padding: 28px 24px; gap: 20px; }
  .topic-icon { width: 96px; height: 96px; border-radius: 30px; }
  .topic-icon svg { width: 50px; height: 50px; }
  .stat-row { grid-template-columns: minmax(0, 1fr); }
  .chapter { padding: 26px 22px 28px; }
  .chapter-num { font-size: 64px; right: 18px; }
  .chapter h2 { padding-right: 50px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .related { padding: 22px; }
  .w-orbit { aspect-ratio: auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .w-orbit .orbit-ring, .w-orbit .orbit-spin { display: none; }
  .w-orbit .orbit-center { position: relative; inset: auto; grid-column: 1 / -1; order: -1; padding: 18px; border-radius: 22px; animation: none; }
  .w-orbit .orbit-item { position: static; width: auto; transform: none; }
  .w-orbit .orbit-bubble { height: 100%; }
  .w-flow { grid-template-columns: minmax(0, 1fr); }
  .flow-step::after { display: none; }
  .w-pheno, .w-triad { grid-template-columns: 1fr; justify-items: center; }
  .pheno-list { grid-template-columns: 1fr; width: 100%; }
  .triad-list { width: 100%; }
  .layer { grid-template-columns: 70px 1fr; }
  .search-panel { margin-top: 70px; }
  .sr-hint { display: none; }
}

/* ---------- Wissenschaftliche Elemente ---------- */
.prose h3 {
  margin: 28px 0 10px;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--text);
}
.prose a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--c1) 70%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color .3s;
}
.prose a:hover { text-decoration-color: var(--c2); }
.prose small { font-size: 13.5px; color: var(--text-3); }
.prose sub, .prose sup { line-height: 0; }

.formula {
  position: relative;
  margin: 4px 0 20px;
  padding: 18px 22px 16px;
  border-radius: 20px;
  border: 1px solid var(--hairline-2);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--c1) 10%, transparent), transparent 60%),
    var(--glass);
  overflow-x: auto;
}
.formula::before {
  content: "Formel";
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.formula .f {
  display: block;
  text-align: center;
  line-height: 1.6;
  padding: 6px 0 10px;
  font-family: "Cambria Math", "STIX Two Math", "Latin Modern Math", Georgia, "Times New Roman", serif;
  font-size: 21px;
  color: var(--text);
  white-space: nowrap;
}
.formula .f small { font-family: var(--font); font-size: 12px; color: var(--text-3); }
.formula .f i { font-style: italic; }
.formula p {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--hairline-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  margin: 0 4px;
  line-height: 1.25;
}
.frac > span { padding: 0 4px; }
.frac > span:first-child { border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.frac > span:last-child { padding-top: 2px; }

.refs {
  padding: 26px 32px;
  margin-bottom: 18px;
}
.refs h3 { margin: 0 0 12px; font-size: 18px; letter-spacing: -.02em; }
.refs ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
.refs li::marker { color: var(--c2); font-weight: 700; }

/* ---------- Körnungsdreieck ---------- */
.w-tex {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 24px;
  border: 1px solid var(--hairline-2);
  background: var(--glass);
}
.tex-plot { position: relative; width: 100%; touch-action: none; }
.tex-plot canvas { display: block; width: 100%; cursor: crosshair; }
.tex-labels span {
  position: absolute;
  translate: -50% -50%;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: rgba(30, 25, 20, .72);
  pointer-events: none;
  max-width: 78px;
  transition: color .3s, scale .4s var(--spring);
}
.tex-labels span.on { color: #111; scale: 1.12; }
.tex-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  translate: -50% -50%;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #1b1b1b;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .45), 0 4px 12px rgba(0, 0, 0, .35);
  pointer-events: none;
  transition: left .35s var(--ease), top .35s var(--ease);
}
.tex-ax {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
}
.tex-ax.l { left: 12%; top: 38%; rotate: -60deg; }
.tex-ax.r { right: 12%; top: 38%; rotate: 60deg; }
.tex-ax.b { left: 50%; bottom: 0; translate: -50% 0; }
.tex-side { display: grid; gap: 14px; }
.tex-result {
  padding: 14px 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--tc, #ccc) 35%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc, #ccc) 70%, transparent);
  transition: background .4s, border-color .4s;
}
.tex-result small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.tex-result strong { display: block; font-size: 22px; letter-spacing: -.02em; color: var(--text); line-height: 1.2; margin-top: 2px; }
.tex-result span { font-size: 13px; font-style: italic; color: var(--text-2); }
.tex-bar {
  display: flex;
  height: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--hairline);
}
.tex-bar i { display: block; height: 100%; transition: width .35s var(--ease); }
.tex-bar .bs { background: #e7b96a; }
.tex-bar .bu { background: #9fcf86; }
.tex-bar .bt { background: #a58bd0; }
.tex-slider {
  display: grid;
  grid-template-columns: 56px 1fr 52px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}
.tex-slider output { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.tex-silt { display: flex; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 650; color: var(--text); }
.tex-silt b { font-variant-numeric: tabular-nums; }
.tex-silt small { font-weight: 500; }
.tex-note { margin: 0 !important; font-size: 13px !important; line-height: 1.5; color: var(--text-3); }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: var(--hairline-2);
  outline-offset: 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25), inset 0 -2px 4px rgba(0, 0, 0, .06);
  cursor: grab;
  transition: scale .3s var(--spring);
}
input[type="range"]::-webkit-slider-thumb:active { scale: 1.15; cursor: grabbing; }
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  cursor: grab;
}

/* ---------- Bodentypen ---------- */
.w-types {
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--hairline-2);
  background: var(--glass);
}
.types-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.types-tabs button, .pf-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  background: var(--glass);
  font-size: 14px;
  font-weight: 650;
  color: var(--text-2);
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, scale .4s var(--spring);
}
.types-tabs button:hover, .pf-tabs button:hover { color: var(--text); scale: 1.04; }
.types-tabs button[aria-selected="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 6px 16px -8px var(--c2);
}
.types-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.types-profile {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  height: 380px;
}
.tp-scale { position: relative; margin-top: 10px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tp-scale span { position: absolute; right: 0; translate: 0 -50%; }
.tp-scale span:first-child { translate: 0 0; }
.tp-scale span:last-child { translate: 0 -100%; }
.tp-unit { position: absolute; left: 0; bottom: -20px; font-size: 11px; color: var(--text-3); }
.tp-col {
  display: flex;
  flex-direction: column;
  border-radius: 14px 14px 18px 18px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 12px 30px -16px rgba(0, 0, 0, .5);
  position: relative;
}
.tp-col::before {
  content: "";
  height: 10px;
  flex-shrink: 0;
  background: repeating-linear-gradient(100deg, #4caf50 0 3px, #7ccf5a 3px 6px);
}
.tp-h {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .14) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 70% 65%, rgba(0, 0, 0, .16) 0 2px, transparent 3px),
    var(--hc);
  background-size: 18px 18px, 26px 26px, auto;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
  transform-origin: top;
  animation: horizonIn .7s var(--ease) both;
  animation-delay: calc(var(--i) * 110ms);
  min-height: 22px;
}
.tp-h + .tp-h { box-shadow: inset 0 1px 0 rgba(0, 0, 0, .15); }
.tp-h.m {
  background:
    radial-gradient(ellipse 11px 7px at 25% 30%, rgba(192, 97, 42, .85) 0 30%, transparent 80%),
    radial-gradient(ellipse 8px 12px at 70% 60%, rgba(200, 109, 47, .75) 0 25%, transparent 80%),
    radial-gradient(ellipse 12px 6px at 45% 85%, rgba(230, 225, 210, .7) 0 25%, transparent 80%),
    var(--hc);
  background-size: 37px 31px, 43px 39px, 29px 45px, auto;
}
.tp-h.b {
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .5) 0 1.5px, transparent 2.5px),
    var(--hc);
  background-size: 14px 14px, auto;
  color: #333;
  text-shadow: none;
}
.tp-h.r {
  background:
    radial-gradient(ellipse 16px 10px at 30% 40%, rgba(160, 150, 130, .55) 0 55%, transparent 65%),
    radial-gradient(ellipse 12px 14px at 75% 75%, rgba(140, 130, 110, .45) 0 55%, transparent 65%),
    var(--hc);
  background-size: 46px 40px, 52px 48px, auto;
  color: #333;
  text-shadow: none;
}
@keyframes horizonIn {
  from { opacity: 0; scale: 1 .4; }
}
.types-body.swap .types-info { animation: infoIn .6s var(--ease) both; }
@keyframes infoIn { from { opacity: 0; translate: 12px 0; } }
.ti-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ti-head h4 { margin: 0; font-size: 24px; letter-spacing: -.03em; color: var(--text); }
.ti-wrb {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--hairline);
}
.ti-formula {
  margin: 8px 0 12px;
  font-family: "Cambria Math", Georgia, serif;
  font-size: 17px;
  color: var(--c2);
  font-weight: 600;
}
.types-info p { margin: 0 0 10px; font-size: 15px; }
.ti-h { gap: 6px !important; margin-bottom: 12px !important; }
.ti-h li { display: flex; gap: 10px; align-items: baseline; padding: 0 !important; font-size: 14px; }
.ti-h li::before { display: none; }
.ti-h i { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); translate: 0 1px; }
.ti-h b { color: var(--text); }

/* ---------- Humus-Kontinuum ---------- */
.w-som { margin-bottom: 20px; }
.som-track {
  position: relative;
  height: 150px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--hairline-2);
  background: var(--glass);
}
.som-band {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(110, 160, 60, .35), rgba(140, 95, 50, .35) 30%, rgba(70, 50, 35, .35) 55%, rgba(60, 50, 45, .15) 75%, transparent);
}
.som-mineral {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 14%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, #a58bd0 30%, transparent));
}
.som-mineral span {
  width: 42px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, #b8a5dc, #8c73c4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.som-mineral span:nth-child(2) { width: 34px; translate: 6px 0; }
.som-mineral em { font-size: 11px; font-style: normal; font-weight: 700; color: var(--text-2); margin-top: 4px; }
.som-p {
  position: absolute;
  left: 0;
  top: var(--y);
  width: 100%;
  height: 0;
  pointer-events: none;
}
.som-p i {
  position: absolute;
  left: 2%;
  width: 22px;
  height: 14px;
  margin-top: -7px;
  border-radius: 40% 60% 55% 45%;
  background: linear-gradient(135deg, #7fb04a, #6b4a24);
  animation: somFlow 9s linear infinite;
  animation-delay: calc(var(--i) * -0.75s);
}
@keyframes somFlow {
  0% { left: 2%; scale: 1; opacity: 0; background-color: #7fb04a; rotate: 0deg; }
  6% { opacity: 1; }
  35% { scale: .65; rotate: 120deg; }
  60% { scale: .38; border-radius: 50%; filter: brightness(.7); }
  84% { left: 84%; scale: .3; opacity: 1; }
  100% { left: 86%; scale: .3; opacity: 0; }
}
.som-co2 {
  position: absolute;
  left: var(--x);
  bottom: 18px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-3);
  opacity: 0;
  animation: co2 6s ease-out infinite;
  animation-delay: calc(var(--i) * 1.2s);
}
@keyframes co2 {
  0% { opacity: 0; translate: 0 0; }
  20% { opacity: .9; }
  100% { opacity: 0; translate: 6px -110px; }
}
.som-stops {
  list-style: none !important;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px !important;
  margin: 10px 0 6px !important;
  padding: 0;
}
.som-stops li {
  padding: 0 !important;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  color: var(--text-2);
}
.som-stops li::before { display: none; }
.som-axis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  background: linear-gradient(90deg, var(--hairline), transparent 40%, transparent 60%, var(--hairline));
  position: relative;
}
.som-axis::after {
  content: "→";
  position: absolute;
  left: 50%;
  translate: -50% 0;
}
.som-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.som-compare > div {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--hairline-2);
  background: var(--glass);
}
.som-compare .new { border-color: color-mix(in srgb, var(--c1) 60%, transparent); background: color-mix(in srgb, var(--c1) 12%, var(--glass)); }
.som-compare .old { opacity: .82; }
.som-compare small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.som-compare strong { display: block; color: var(--text); font-size: 16px; margin: 2px 0 4px; }
.som-compare span { display: block; font-size: 14px; line-height: 1.5; }

/* ---------- pF-Kurve ---------- */
.w-pf {
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--hairline-2);
  background: var(--glass);
}
.pf-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pf-tabs button i { width: 10px; height: 10px; border-radius: 50%; background: var(--sc); }
.pf-tabs button[aria-selected="true"] {
  color: var(--text);
  border-color: var(--sc);
  background: color-mix(in srgb, var(--sc) 18%, var(--glass));
}
.pf-chart { position: relative; }
.pf-chart svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: none; }
.pf-nfk { fill: color-mix(in srgb, var(--sc) 10%, transparent); transition: fill .4s; }
.pf-grid { stroke: var(--hairline-2); stroke-width: 1; }
.pf-tick { font-size: 12px; fill: var(--text-3); font-family: var(--font); font-variant-numeric: tabular-nums; }
.pf-axis { font-size: 12.5px; font-weight: 700; fill: var(--text-2); font-family: var(--font); }
.pf-ref { stroke: var(--text-3); stroke-dasharray: 5 5; stroke-width: 1.2; }
.pf-reft { font-size: 11.5px; font-weight: 700; fill: var(--text-2); font-family: var(--font); }
.pf-curve {
  fill: none;
  stroke: var(--sc);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: .35;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: opacity .4s, stroke-width .4s;
}
.reveal-widget.in .pf-curve { animation: draw 1.8s var(--ease) forwards; animation-delay: calc(var(--i) * 150ms); }
.pf-curve.on { opacity: 1; stroke-width: 4; }
.pf-drop { stroke: var(--sc); stroke-width: 1.3; stroke-dasharray: 3 4; opacity: .8; }
.pf-pt { fill: var(--bg); stroke: var(--sc); stroke-width: 3; }
.pf-brace { stroke: var(--sc); stroke-width: 3; stroke-linecap: round; }
.pf-bt { font-size: 12.5px; font-weight: 800; fill: var(--text); font-family: var(--font); }
.pf-hl { stroke: var(--text-3); stroke-width: 1; }
.pf-hover circle { fill: var(--sc); stroke: #fff; stroke-width: 2.5; }
.pf-hit { cursor: crosshair; }
.pf-tip {
  position: absolute;
  translate: 12px -120%;
  padding: 7px 11px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--text);
  background: var(--glass-panel);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  pointer-events: none;
}
.pf-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 14px 0 12px;
}
.pf-stats div {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--hairline-2);
  text-align: center;
}
.pf-stats div.hi { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 14%, transparent); }
.pf-stats small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--text-3); }
.pf-stats b { display: block; font-size: 22px; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; }
.pf-stats span { font-size: 11px; color: var(--text-3); }
.pf-vbar {
  display: flex;
  height: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--hairline-2);
}
.pf-vbar i {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: width .7s var(--spring);
}
.pf-vbar i span { padding: 0 4px; overflow: hidden; text-overflow: ellipsis; }
.v-solid { background: repeating-linear-gradient(135deg, #b39a7c 0 6px, #a58b6c 6px 12px); color: #fff; }
.v-dead { background: #5b7fa6; color: #fff; }
.v-nfk { background: var(--sc); color: #fff; }
.v-air { background: color-mix(in srgb, #cfe3f2 70%, transparent); color: #2a3a4a; }
.pf-cap { margin: 6px 0 0 !important; font-size: 12.5px !important; color: var(--text-3); text-align: center; }

@media (max-width: 720px) {
  .w-tex { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .tex-labels span { font-size: 9px; max-width: 58px; }
  .types-body { grid-template-columns: minmax(0, 1fr); }
  .types-profile { height: 260px; max-width: 220px; }
  .som-track { height: 120px; }
  .som-stops { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .som-stops li { font-size: 10.5px; }
  .som-axis { font-size: 10.5px; }
  .som-compare { grid-template-columns: minmax(0, 1fr); }
  .pf-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .pf-stats div { padding: 8px 2px; }
  .pf-stats b { font-size: 17px; }
  .formula { padding: 16px 14px 14px; }
  .formula .f { font-size: 17px; white-space: normal; }
  .refs { padding: 22px; }
}

/* ---------- Fingerprobe ---------- */
.w-finger {
  position: relative;
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--hairline-2);
  background:
    radial-gradient(80% 60% at 0% 0%, color-mix(in srgb, var(--c1) 16%, transparent), transparent 70%),
    var(--glass);
  overflow: hidden;
}
.fp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  margin-bottom: 14px;
}
.fp-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fp-hint { font-size: 13px; font-weight: 600; color: var(--text-3); }
.fp-sep { color: var(--text-3); font-weight: 700; }
.fp-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 11px;
  border: 1px solid var(--hairline-2);
  border-radius: 12px;
  background: var(--glass-strong);
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  line-height: 1.25;
  cursor: pointer;
  animation: srIn .4s var(--ease) both;
  transition: scale .4s var(--spring);
}
.fp-chip:hover { scale: 1.05; }
.fp-chip small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.fp-back {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  background: var(--glass);
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  transition: background .3s, scale .4s var(--spring);
}
.fp-back:hover { background: var(--glass-strong); }
.fp-back:active { scale: .95; }
.fp-stage { position: relative; }
.fp-stage.enter > * { animation: fpIn .55s var(--ease) both; }
@keyframes fpIn { from { opacity: 0; translate: 24px 0; } }

.fp-img {
  display: block;
  border-radius: 16px;
  background: linear-gradient(160deg, #fbf5ea, #efe3cf);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
  overflow: hidden;
}
.fp-img svg { display: block; width: 100%; height: auto; }
.fp-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: center;
}
.fp-intro h4, .fp-q h4, .fp-result h4 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--text);
}
.fp-steps { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.fp-steps li::marker { color: var(--c2); font-weight: 800; }

.fp-kicker {
  margin: 0 0 4px !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c2);
}
.fp-opts {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 12px;
}
.fp-opt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 14px;
  border: 1.5px solid var(--hairline-2);
  border-radius: 20px;
  background: var(--glass);
  text-align: left;
  cursor: pointer;
  animation: fpOpt .6s var(--spring) both;
  animation-delay: calc(120ms + var(--i) * 90ms);
  transition: transform .5s var(--spring), border-color .3s, background .3s, box-shadow .4s;
}
@keyframes fpOpt { from { opacity: 0; scale: .9; translate: 0 14px; } }
.fp-opt:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c1) 70%, transparent);
  background: color-mix(in srgb, var(--c1) 8%, var(--glass));
  box-shadow: 0 14px 30px -18px var(--c2);
}
.fp-opt:hover .fp-img svg { transform: scale(1.05); }
.fp-opt .fp-img svg { transition: transform .6s var(--spring); }
.fp-opt:active { transform: scale(.97); }
.fp-opt.picked {
  border-color: var(--c2);
  background: color-mix(in srgb, var(--c1) 18%, var(--glass));
  transform: scale(.97);
}
.fp-opt strong { padding: 0 4px; font-size: 15.5px; color: var(--text); line-height: 1.3; }
.fp-d { padding: 0 4px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }

.fp-result { position: relative; }
.fp-badge span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.fp-result h4 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -.04em;
  margin-bottom: 2px;
  animation: iconIn .8s var(--spring) both;
  transform-origin: left;
}
.fp-ka { margin: 0 0 12px !important; font-size: 14px; color: var(--text-3); }
.fp-ka b { color: var(--text); }
.fp-comp { margin: 16px 0; }
.fp-cbar { display: flex; height: 16px; border-radius: 16px; overflow: hidden; background: var(--hairline); }
.fp-cbar i { display: block; height: 100%; width: 0; animation: fpBar 1s var(--ease) .2s forwards; }
@keyframes fpBar { to { width: var(--w); } }
.fp-comp .bs, .fp-clegend .bs { background: #e7b96a; }
.fp-comp .bu, .fp-clegend .bu { background: #9fcf86; }
.fp-comp .bt, .fp-clegend .bt { background: #a58bd0; }
.fp-clegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 4px; font-size: 13.5px; font-weight: 650; color: var(--text); }
.fp-clegend span { display: inline-flex; align-items: center; gap: 6px; }
.fp-clegend i { width: 10px; height: 10px; border-radius: 3px; }
.fp-comp small { font-size: 12.5px; color: var(--text-3); }
.fp-props {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin-bottom: 16px;
}
.fp-prop { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.fp-dots { display: inline-flex; gap: 4px; }
.fp-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--hairline-2);
}
.fp-dots i.on {
  background: linear-gradient(145deg, var(--c1), var(--c2));
  animation: fpDot .5s var(--spring) both;
  animation-delay: calc(300ms + var(--k) * 70ms);
}
@keyframes fpDot { from { scale: 0; } }
.fp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fp-burst {
  position: absolute;
  left: 40px;
  top: 60px;
  width: 0;
  height: 0;
  pointer-events: none;
}
.fp-burst i {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 40% 60% 50% 50%;
  background: var(--c);
  animation: fpBurst 1.1s var(--ease) forwards;
}
@keyframes fpBurst {
  from { transform: rotate(var(--a)) translateX(0) scale(1); opacity: 1; }
  to { transform: rotate(var(--a)) translateX(var(--d)) scale(.3); opacity: 0; }
}
.tex-dot.ping { animation: texPing 1.2s var(--ease) 2; }
@keyframes texPing {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .9), 0 4px 12px rgba(0, 0, 0, .35); }
  100% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0), 0 4px 12px rgba(0, 0, 0, .35); }
}

@container (max-width: 620px) {
  .fp-intro { grid-template-columns: minmax(0, 1fr); }
  .fp-intro .fp-img { max-width: 320px; }
  .fp-opts { grid-template-columns: minmax(0, 1fr); }
  .fp-opt { display: grid; grid-template-columns: minmax(130px, 44%) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: start; }
  .fp-opt .fp-img { grid-row: 1 / span 2; }
  .fp-opt strong { padding-top: 6px; }
  .fp-props { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Fruchtfolgeplaner ---------- */
.w-plan {
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--hairline-2);
  background:
    radial-gradient(70% 50% at 100% 0%, color-mix(in srgb, var(--c1) 16%, transparent), transparent 70%),
    var(--glass);
}
.plan-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
.plan-preset {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1.5px solid var(--hairline-2);
  border-radius: 18px;
  background: var(--glass);
  text-align: left;
  cursor: pointer;
  transition: transform .5s var(--spring), border-color .3s, background .3s, box-shadow .4s;
}
.plan-preset:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c1) 60%, transparent); }
.plan-preset[aria-selected="true"] {
  border-color: var(--c2);
  background: color-mix(in srgb, var(--c1) 16%, var(--glass));
  box-shadow: 0 10px 26px -16px var(--c2);
}
.plan-preset strong { font-size: 14.5px; line-height: 1.3; color: var(--text); }
.plan-preset small { font-size: 12px; line-height: 1.35; color: var(--text-3); font-weight: 600; }
.pp-dots { display: flex; gap: 4px; margin-bottom: 2px; }
.pp-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

.plan-main.swap > * { animation: fpIn .55s var(--ease) both; }
.plan-main.swap > *:nth-child(2) { animation-delay: 60ms; }
.plan-main.swap > *:nth-child(3) { animation-delay: 120ms; }
.plan-main.swap > *:nth-child(4) { animation-delay: 180ms; }
.plan-head h4 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.03em; color: var(--text); }
.plan-head p { margin: 0 0 14px !important; font-size: 15px; }

.plan-seq {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}
.ps-item {
  display: flex;
  flex-direction: column;
  padding: 7px 13px 8px;
  border: 1.5px solid color-mix(in srgb, var(--cc) 60%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--cc) 20%, var(--glass));
  text-align: left;
  cursor: pointer;
  line-height: 1.25;
  transition: transform .4s var(--spring), box-shadow .3s, background .3s;
  animation: fpOpt .5s var(--spring) both;
  animation-delay: calc(var(--i) * 70ms);
}
.ps-item small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ps-item b { font-size: 14px; color: var(--text); }
.ps-item:hover { transform: translateY(-2px); }
.ps-item.sel { background: color-mix(in srgb, var(--cc) 38%, var(--glass)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc) 35%, transparent); }
.ps-arrow { font-weight: 800; color: var(--text-3); }
.ps-arrow.loop { font-size: 18px; color: var(--c2); }

.plan-cal {
  padding: 12px 14px 10px;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid var(--hairline-2);
  background: var(--glass);
}
.pc-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.pc-row + .pc-row { margin-top: 6px; }
.pc-y { font-size: 12px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.pc-months { display: grid; grid-template-columns: repeat(12, 1fr); }
.pc-months span { text-align: center; font-size: 11px; font-weight: 700; color: var(--text-3); }
.pc-track {
  position: relative;
  height: 40px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), var(--hairline-2) calc(100% / 12 - 1px) calc(100% / 12)),
    repeating-linear-gradient(135deg, color-mix(in srgb, #b08a60 14%, transparent) 0 4px, transparent 4px 9px);
  overflow: hidden;
}
.pc-bar {
  position: absolute;
  top: 5px;
  height: 24px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11.5px;
  font-weight: 800;
  color: rgba(0, 0, 0, .72);
  background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 88%, #fff), var(--cc));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 8px -4px rgba(0, 0, 0, .35);
  cursor: pointer;
  transform-origin: left;
  animation: pcGrow .7s var(--ease) both;
  animation-delay: calc(var(--i) * 35ms);
  transition: box-shadow .3s, filter .3s;
}
@keyframes pcGrow { from { transform: scaleX(0); opacity: 0; } }
.pc-bar:hover { filter: brightness(1.06); }
.pc-bar.sel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 2.5px var(--text); }
.pc-bar.zf {
  top: 9px;
  height: 16px;
  font-size: 10.5px;
  background: repeating-linear-gradient(135deg, var(--cc) 0 5px, color-mix(in srgb, var(--cc) 55%, #fff) 5px 10px);
}
.pc-bar.under {
  top: 32px;
  height: 5px;
  padding: 0;
  border-radius: 3px;
  background: var(--cc);
}
.pc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 0 0 68px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.pc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pc-legend i { width: 18px; height: 10px; border-radius: 3px; }
.lg-main { background: #d69a3a; }
.lg-zf { background: repeating-linear-gradient(135deg, #9ccc65 0 3px, #d9edc2 3px 6px); }
.lg-under { height: 4px !important; background: #3fae7c; }
.lg-bare { background: repeating-linear-gradient(135deg, color-mix(in srgb, #b08a60 30%, transparent) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--hairline-2); }

.plan-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}
.plan-detail {
  padding: 16px;
  border-radius: 18px;
  border: 1.5px solid color-mix(in srgb, var(--cc) 55%, transparent);
  background: color-mix(in srgb, var(--cc) 12%, var(--glass));
}
.plan-detail.pop { animation: fpIn .45s var(--ease) both; }
.pd-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pd-head i { width: 16px; height: 16px; border-radius: 50%; background: var(--cc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.pd-head h5 { margin: 0; font-size: 18px; letter-spacing: -.02em; color: var(--text); }
.pd-head span { font-size: 12px; font-weight: 700; color: var(--text-3); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pd-grid div { padding: 8px 10px; border-radius: 12px; background: var(--glass); border: 1px solid var(--hairline); }
.pd-grid small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.pd-grid b { display: block; font-size: 13.5px; line-height: 1.35; color: var(--text); }
.plan-detail p { margin: 0 !important; font-size: 14px; line-height: 1.55; }

.pe-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pe-m {
  position: relative;
  padding: 10px 12px 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--hairline-2);
  background: var(--glass);
  overflow: hidden;
  animation: fpOpt .5s var(--spring) both;
  animation-delay: calc(150ms + var(--i) * 60ms);
}
.pe-m::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--st); }
.pe-m.ok { --st: #34b36b; }
.pe-m.warn { --st: #e3a322; }
.pe-m.bad { --st: #e0553a; }
.pe-m small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); line-height: 1.3; }
.pe-m b { display: block; margin: 2px 0; font-size: 20px; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.pe-m span { display: block; font-size: 11.5px; line-height: 1.35; color: var(--text-3); }
.pe-checks { list-style: none !important; margin: 10px 0 0 !important; padding: 0; display: grid !important; gap: 6px !important; }
.pe-checks li { display: flex; gap: 8px; align-items: baseline; padding: 0 !important; font-size: 13.5px; line-height: 1.45; }
.pe-checks li::before { display: none; }
.pe-checks i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; translate: 0 1px; }
.pe-checks .ok i { background: #34b36b; }
.pe-checks .warn i { background: #e3a322; }
.pe-checks .bad i { background: #e0553a; }

.plan-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-pc > div { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--hairline-2); background: var(--glass); }
.plan-pc h5 { margin: 0 0 8px; font-size: 14px; letter-spacing: .02em; color: var(--text); }
.plan-pc .pro h5::before { content: "＋ "; color: #34b36b; }
.plan-pc .con h5::before { content: "！ "; color: #e3a322; }
.plan-pc ul { gap: 6px !important; margin: 0 !important; }
.plan-pc li { font-size: 13.5px; line-height: 1.45; padding-left: 18px !important; }
.plan-pc li::before { width: 6px !important; height: 6px !important; left: 2px !important; top: .6em !important; box-shadow: none !important; }
.plan-note { margin: 12px 0 0 !important; font-size: 12px !important; line-height: 1.5; color: var(--text-3); }

@container (max-width: 760px) {
  .plan-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-body { grid-template-columns: minmax(0, 1fr); }
  .pe-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 520px) {
  .plan-presets { grid-template-columns: minmax(0, 1fr); }
  .pc-row { grid-template-columns: 40px minmax(0, 1fr); gap: 6px; }
  .pc-y { font-size: 10.5px; }
  .pc-legend { margin-left: 0; }
  .pc-bar { font-size: 10px; padding: 0 3px; }
  .plan-pc { grid-template-columns: minmax(0, 1fr); }
  .pd-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Theme-Wechsel (View Transition) ---------- */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-new(root) {
  animation: themeReveal .75s var(--ease);
}
@keyframes themeReveal {
  from { clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 30px)); }
  to { clip-path: circle(150vmax at var(--vt-x, 90%) var(--vt-y, 30px)); }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; translate: none; scale: none; }
}

/* ---------- Widgets nach Containerbreite ---------- */
.widget { container-type: inline-size; }
@container (max-width: 700px) {
  .w-tex { grid-template-columns: minmax(0, 1fr); }
  .tex-plot { max-width: 480px; margin: 0 auto; }
}
@container (max-width: 560px) {
  .types-body { grid-template-columns: minmax(0, 1fr); }
  .types-profile { height: 260px; max-width: 220px; }
}
