/* ================================================================
   naehrwert-tabelle.online — Design System
   Oliv / Terracotta / Honig-Gold auf warmem Off-White
   Fonts: Playfair Display + Source Sans 3 + IBM Plex Mono
   ================================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Backgrounds */
  --bg: #F6F4EF;
  --bg-2: #EDE9E0;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FDFCFA;

  /* Text */
  --text: #2A2520;
  --text-dim: #6B6560;
  --text-muted: #9A958F;

  /* Borders */
  --border: #E0DCD5;
  --border-strong: #CFC9BF;

  /* Primary: Olive */
  --olive: #5B7C3A;
  --olive-light: #E8F0DC;
  --olive-dark: #435F2B;
  --olive-rgb: 91,124,58;

  /* Accent 1: Terracotta */
  --terracotta: #C4653A;
  --terracotta-light: #FCEEE7;
  --terracotta-dark: #A14F2B;
  --terracotta-rgb: 196,101,58;

  /* Accent 2: Golden Honey */
  --honey: #D4A024;
  --honey-light: #FBF4DE;
  --honey-dark: #B5881A;
  --honey-rgb: 212,160,36;

  /* Error */
  --err: #C0392B;
  --err-light: #FDEDEB;

  /* Success */
  --ok: #5B7C3A;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(42,37,32,.04), 0 1px 2px rgba(42,37,32,.06);
  --shadow: 0 4px 16px rgba(42,37,32,.06), 0 2px 6px rgba(42,37,32,.04);
  --shadow-lg: 0 12px 40px rgba(42,37,32,.08), 0 4px 12px rgba(42,37,32,.04);
  --shadow-olive: 0 4px 20px rgba(91,124,58,.15);
  --shadow-terracotta: 0 4px 20px rgba(196,101,58,.15);

  /* Radii */
  --r: 16px;
  --r-sm: 10px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Font families */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Fira Mono', 'Cascadia Code', monospace;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-decoration: none; transition: color .2s; }
a:hover { color: var(--olive-dark); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--text); }

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }

.lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 62ch;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 80px 0;
}
.section-sm { padding: 48px 0; }

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-sm { padding: 36px 0; }
  .container { padding: 0 18px; }
  .container-narrow { padding-left: 18px; padding-right: 18px; }
}

/* ---------- Spacing Utilities ---------- */
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mt-6 { margin-top: 64px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ---------- Eyebrow Badge ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--olive);
  background: var(--olive-light);
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive);
  flex-shrink: 0;
}
.eyebrow-terracotta {
  color: var(--terracotta);
  background: var(--terracotta-light);
}
.eyebrow-terracotta .dot { background: var(--terracotta); }
.eyebrow-honey {
  color: var(--honey-dark);
  background: var(--honey-light);
}
.eyebrow-honey .dot { background: var(--honey); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246,244,239,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.brand-mark {
  width: 36px; height: 36px;
  background: var(--olive);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; color: #fff; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--olive);
  background: var(--olive-light);
}
.nav-cta .btn { font-size: .85rem; padding: 10px 20px; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--text); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--r);
  transition: background .2s;
}
.mobile-menu a:hover {
  background: var(--olive-light);
  color: var(--olive);
}

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--olive);
  color: #fff;
  box-shadow: var(--shadow-olive);
}
.btn-primary:hover {
  background: var(--olive-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(91,124,58,.22);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--olive);
  color: var(--olive);
  background: var(--olive-light);
}

.btn-terracotta {
  background: var(--terracotta);
  color: #fff;
  box-shadow: var(--shadow-terracotta);
}
.btn-terracotta:hover {
  background: var(--terracotta-dark);
  color: #fff;
}

.btn-sm {
  font-size: .85rem;
  padding: 10px 20px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card-accent {
  border-left: 3px solid var(--olive);
}
.card-terracotta {
  border-left: 3px solid var(--terracotta);
}
.card-honey {
  border-left: 3px solid var(--honey);
}

.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon-olive { background: var(--olive-light); color: var(--olive); }
.card-icon-terracotta { background: var(--terracotta-light); color: var(--terracotta); }
.card-icon-honey { background: var(--honey-light); color: var(--honey-dark); }
.card-icon svg { width: 24px; height: 24px; }

/* ---------- Visual Backdrop: card-with-visual ---------- */
.card-with-visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.card-with-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--visual-bg, none) center 30% / cover no-repeat;
  opacity: .22;
  mask-image: linear-gradient(to left, black 20%, .3 60%, transparent 95%);
  -webkit-mask-image: linear-gradient(to left, black 20%, .3 60%, transparent 95%);
}
.card-with-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, var(--bg-card) 35%, rgba(255,255,255,.78) 60%, rgba(255,255,255,.35) 100%);
}
.card-with-visual > * {
  position: relative;
  z-index: 2;
}
.card-with-visual:hover {
  transform: none;
}

@media (max-width: 768px) {
  .card-with-visual::before {
    mask-image: linear-gradient(to bottom, .6 0%, transparent 45%);
    -webkit-mask-image: linear-gradient(to bottom, .6 0%, transparent 45%);
  }
  .card-with-visual::after {
    background: linear-gradient(to bottom, rgba(255,255,255,.15) 0%, var(--bg-card) 55%);
  }
}

/* ---------- Visual Backdrop: article-with-visual ---------- */
.article-with-visual {
  position: relative;
  isolation: isolate;
}
.article-with-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 500px;
  z-index: 0;
  background: var(--visual-bg, none) center top / cover no-repeat;
  opacity: .16;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}
.article-with-visual > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .article-with-visual::before {
    height: 300px;
    opacity: .12;
  }
}

/* ---------- Visual Backdrop: tool-visual-bg ---------- */
.tool-visual-bg {
  position: relative;
  isolation: isolate;
}
.tool-visual-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--visual-bg, none) center center / cover no-repeat;
  opacity: .18;
  mask-image: linear-gradient(to left, black 15%, .25 55%, transparent 95%);
  -webkit-mask-image: linear-gradient(to left, black 15%, .25 55%, transparent 95%);
}
.tool-visual-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, var(--bg) 30%, rgba(246,244,239,.75) 55%, rgba(246,244,239,.3) 100%);
}
.tool-visual-bg > .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .tool-visual-bg::before {
    mask-image: linear-gradient(to bottom, .5 0%, transparent 50%);
    -webkit-mask-image: linear-gradient(to bottom, .5 0%, transparent 50%);
  }
  .tool-visual-bg::after {
    background: linear-gradient(to bottom, rgba(246,244,239,.1) 0%, var(--bg) 50%);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 140px;
  padding-bottom: 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text { max-width: 580px; }
.hero-text .eyebrow { margin-bottom: 20px; }
.hero-text h1 { margin-bottom: 18px; }
.hero-text .lead { margin-bottom: 28px; }
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Magnifying glass overlay */
.hero-lupe {
  position: absolute;
  top: 18%;
  right: 12%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.7);
  box-shadow: 0 8px 32px rgba(0,0,0,.18), inset 0 0 20px rgba(255,255,255,.15);
  overflow: hidden;
  z-index: 3;
  backdrop-filter: blur(2px);
}
.hero-lupe::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: inherit;
  z-index: 0;
}
.hero-lupe-table {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: .6rem;
}
.hero-lupe-table .lupe-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  color: var(--olive);
  margin-bottom: 6px;
}
.hero-lupe-table .lupe-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 2px 4px;
  font-family: var(--font-mono);
  font-size: .55rem;
  color: var(--text-dim);
}
.hero-lupe-table .lupe-row span:last-child {
  font-weight: 600;
}
.hero-lupe-table .luve-kh { color: var(--honey-dark); }
.hero-lupe-table .luve-protein { color: var(--olive); }
.hero-lupe-table .luve-fett { color: var(--terracotta); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { max-width: 100%; }
  .hero-visual { aspect-ratio: 16/9; }
  .hero-lupe { width: 110px; height: 110px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 120px; padding-bottom: 40px; }
  .hero-lupe { width: 90px; height: 90px; top: 10%; right: 8%; }
}

/* ---------- Search ---------- */
.search-wrap {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.search-input {
  width: 100%;
  padding: 18px 24px 18px 52px;
  font-size: 1.05rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color .25s, box-shadow .25s;
  color: var(--text);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 4px rgba(var(--olive-rgb),.12);
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  color: var(--text-muted);
  pointer-events: none;
}

/* ---------- Search Results ---------- */
.search-results {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  max-height: 400px;
  overflow-y: auto;
  display: none;
}
.search-results.active { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-2); }
.search-result-name {
  font-weight: 600;
  color: var(--text);
}
.search-result-portion {
  font-size: .85rem;
  color: var(--text-muted);
}
.search-result-kcal {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .95rem;
  color: var(--olive);
}
.search-no-results {
  padding: 24px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: .95rem;
}

/* ---------- Category Grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  color: var(--text);
  text-decoration: none;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--olive);
  color: var(--olive);
}
.category-card-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.category-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
}
.category-card-count {
  font-size: .8rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-card { padding: 18px 12px; }
}

/* ---------- Nutrient Table ---------- */
.nutrient-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-top: 24px;
}
.nutrient-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.nutrient-table thead th {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  background: var(--bg-2);
  padding: 12px 16px;
  text-align: left;
  position: sticky;
  top: 0;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.nutrient-table thead th:hover { color: var(--olive); }
.nutrient-table thead th .sort-arrow {
  margin-left: 4px;
  opacity: .4;
}
.nutrient-table thead th.sorted .sort-arrow { opacity: 1; color: var(--olive); }

.nutrient-table tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
.nutrient-table tbody tr:nth-child(even) { background: rgba(0,0,0,.015); }
.nutrient-table tbody tr:hover { background: var(--olive-light); }

.nutrient-table .food-name {
  font-weight: 600;
  color: var(--text);
}
.nutrient-table .food-portion {
  font-size: .8rem;
  color: var(--text-muted);
  display: block;
}
.nutrient-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Macro color coding */
.macro-kh { color: var(--honey-dark); }
.macro-protein { color: var(--olive); }
.macro-fett { color: var(--terracotta); }
.macro-kcal { color: var(--text); font-weight: 600; }

/* Macro legend */
.macro-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: .85rem;
}
.macro-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.macro-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.macro-legend-dot.kh { background: var(--honey); }
.macro-legend-dot.protein { background: var(--olive); }
.macro-legend-dot.fett { background: var(--terracotta); }

/* ---------- Trust Badges ---------- */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--text-dim);
  font-weight: 500;
}
.trust-badge svg {
  width: 18px; height: 18px;
  color: var(--olive);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .trust-badges { gap: 16px; justify-content: flex-start; }
  .trust-badge { font-size: .82rem; }
}

/* ---------- Highlight Box ---------- */
.highlight-box {
  background: var(--olive-light);
  border-left: 4px solid var(--olive);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: .95rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.highlight-box strong {
  color: var(--olive-dark);
}
.highlight-box-terracotta {
  background: var(--terracotta-light);
  border-left-color: var(--terracotta);
}
.highlight-box-terracotta strong { color: var(--terracotta-dark); }
.highlight-box-honey {
  background: var(--honey-light);
  border-left-color: var(--honey);
}
.highlight-box-honey strong { color: var(--honey-dark); }

/* ---------- Dark Section ---------- */
.dark-section {
  background: var(--text);
  color: #e0ddd6;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/texture-dark.jpg') center / cover no-repeat;
  opacity: .12;
}
.dark-section > * { position: relative; z-index: 1; }
.dark-section h2 { color: #fff; }
.dark-section .lead { color: #b5b0a8; }
.dark-section .highlight-box {
  background: rgba(var(--olive-rgb),.12);
  border-left-color: var(--olive);
  color: #c8c2b8;
}

/* ---------- Tool Card (Calculator) ---------- */
.tool-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--visual-bg, none) center 30% / cover no-repeat;
  opacity: .2;
  mask-image: linear-gradient(to left, black 20%, .3 60%, transparent 95%);
  -webkit-mask-image: linear-gradient(to left, black 20%, .3 60%, transparent 95%);
}
.tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, var(--bg-card) 35%, rgba(255,255,255,.78) 60%, rgba(255,255,255,.35) 100%);
}
.tool-card > * { position: relative; z-index: 2; }

@media (max-width: 768px) {
  .tool-card::before {
    mask-image: linear-gradient(to bottom, .6 0%, transparent 45%);
    -webkit-mask-image: linear-gradient(to bottom, .6 0%, transparent 45%);
  }
  .tool-card::after {
    background: linear-gradient(to bottom, rgba(255,255,255,.15) 0%, var(--bg-card) 55%);
  }
  .tool-card { padding: 24px; }
}

/* ---------- Form Elements ---------- */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dim);
}
.field input,
.field select {
  padding: 14px 16px;
  font-size: .95rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s;
  color: var(--text);
}
.field input:focus,
.field select:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(var(--olive-rgb),.12);
}
.field input::placeholder { color: var(--text-muted); }
.field-full { grid-column: 1 / -1; }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Result Box ---------- */
.result-box {
  background: var(--olive-light);
  border: 1px solid rgba(var(--olive-rgb),.2);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-top: 24px;
}
.result-box h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--olive-dark);
}
.result-value {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--olive);
  line-height: 1;
}
.result-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 4px;
}
.result-detail {
  font-size: .88rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* Macro bar */
.macro-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.macro-bar-item {
  text-align: center;
}
.macro-bar-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.macro-bar-label.kh { color: var(--honey-dark); }
.macro-bar-label.protein { color: var(--olive); }
.macro-bar-label.fett { color: var(--terracotta); }
.macro-bar-value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
}
.macro-bar-value.kh { color: var(--honey); }
.macro-bar-value.protein { color: var(--olive); }
.macro-bar-value.fett { color: var(--terracotta); }
.macro-bar-unit {
  font-size: .8rem;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .result-value { font-size: 1.8rem; }
}

/* ---------- Stats Row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--olive);
  line-height: 1;
}
.stat-label {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

@media (max-width: 560px) {
  .stats-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Ratgeber Content ---------- */
.ratgeber {
  max-width: 720px;
  margin: 48px auto 0;
}
.ratgeber h2 {
  margin-bottom: 16px;
  margin-top: 32px;
}
.ratgeber h2:first-child { margin-top: 0; }
.ratgeber p {
  color: var(--text-dim);
  margin-bottom: 14px;
  line-height: 1.75;
}
.ratgeber ul.bul {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.ratgeber ul.bul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-dim);
  line-height: 1.7;
}
.ratgeber ul.bul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--olive);
}

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: 60px 0;
}
.cta-section h2 { margin-bottom: 14px; }
.cta-section .lead { margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--text);
  color: #c8c2b8;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.footer-desc {
  font-size: .88rem;
  line-height: 1.6;
  color: #9a958f;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #9a958f;
  margin-bottom: 16px;
}
.footer ul li { margin-bottom: 8px; }
.footer ul a {
  font-size: .9rem;
  color: #b5b0a8;
  transition: color .2s;
}
.footer ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  font-size: .82rem;
  color: #6b6560;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Legal Pages ---------- */
.legal {
  padding-top: 140px;
  padding-bottom: 80px;
}
.legal h1 {
  margin-bottom: 8px;
}
.legal .legal-meta {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.legal h2 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal p {
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.7;
}
.legal ul.bul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  color: var(--text-dim);
  line-height: 1.7;
}
.legal ul.bul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive);
}

@media (max-width: 768px) {
  .legal { padding-top: 120px; padding-bottom: 56px; }
}

/* ---------- 404 Page ---------- */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 40px 24px;
}
.page-404 .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}
.page-404 h1 { margin-bottom: 12px; }
.page-404 .lead { margin: 0 auto 28px; }

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(.95);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal-scale.in {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  max-width: 200px;
  margin: 0 auto;
}

/* ---------- BMI Scale ---------- */
.bmi-scale {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 16px;
}
.bmi-scale-segment {
  flex: 1;
  transition: opacity .3s;
}
.bmi-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.bmi-marker {
  position: relative;
  height: 0;
  margin-top: -9px;
  transition: margin-left .4s ease;
}
.bmi-marker::after {
  content: '';
  position: absolute;
  left: 0;
  top: -4px;
  width: 4px;
  height: 18px;
  background: var(--text);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

/* ---------- Kalorienzehler Tages-Ticker ---------- */
.tages-ticker {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-top: 20px;
}
.tages-ticker h3 {
  font-size: .95rem;
  margin-bottom: 12px;
}
.ticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ticker-item {
  text-align: center;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--r);
}
.ticker-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--olive);
}
.ticker-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-top: 4px;
}

.food-list {
  margin-top: 16px;
  max-height: 300px;
  overflow-y: auto;
}
.food-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.food-list-item:last-child { border-bottom: none; }
.food-list-remove {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.food-list-remove:hover {
  color: var(--err);
  background: var(--err-light);
}

@media (max-width: 560px) {
  .ticker-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Category Page Header ---------- */
.category-header {
  padding-top: 140px;
  padding-bottom: 40px;
}
.category-header h1 { margin-bottom: 8px; }
.category-header .lead { margin-bottom: 12px; }

@media (max-width: 768px) {
  .category-header { padding-top: 120px; padding-bottom: 28px; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--olive); }
.breadcrumbs .sep { color: var(--border-strong); }

/* ---------- Print CSS ---------- */
@media print {
  .nav, .mobile-menu, .footer, .hero-visual, .hero-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .legal { padding-top: 0; }
  a { color: #000; text-decoration: underline; }
}

/* ---------- Focus styles (accessibility) ---------- */
:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ================================================================
   EXPANDED COMPONENTS (v2)
   ================================================================ */

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--olive), var(--honey), var(--terracotta));
  z-index: 200;
  width: 0%;
  transition: width .1s ease-out;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--olive);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 300;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- Ratgeber Card (für Index-Seite) ---------- */
.ratgeber-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ratgeber-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  isolation: isolate;
}
.ratgeber-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: var(--visual-bg, linear-gradient(135deg, var(--olive-light), var(--honey-light)));
  opacity: .5;
  z-index: 0;
  mask-image: linear-gradient(to bottom, black, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}
.ratgeber-card-body {
  position: relative;
  z-index: 1;
  padding: 28px;
  margin-top: 60px;
}
.ratgeber-card-cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--olive);
  background: var(--olive-light);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}
.ratgeber-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}
.ratgeber-card-excerpt {
  font-size: .92rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 14px;
}
.ratgeber-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.ratgeber-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--olive);
}
.ratgeber-card:hover .ratgeber-card-title { color: var(--olive); }

@media (max-width: 768px) {
  .ratgeber-grid { grid-template-columns: 1fr; }
}

/* ---------- Featured Food Card ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.food-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.food-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--olive);
}
.food-card-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.food-card-kcal {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--olive);
  line-height: 1;
}
.food-card-kcal-unit {
  font-size: .8rem;
  color: var(--text-muted);
  margin-left: 4px;
}
.food-card-portion {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.food-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.food-pill {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-pill);
}
.food-pill.protein { background: var(--olive-light); color: var(--olive-dark); }
.food-pill.kh { background: var(--honey-light); color: var(--honey-dark); }
.food-pill.fett { background: var(--terracotta-light); color: var(--terracotta-dark); }

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* ---------- Countup Stats (Hero) ---------- */
.countup-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.countup-item {
  text-align: center;
}
.countup-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--olive);
  line-height: 1;
}
.countup-suffix {
  font-size: 1.2rem;
  color: var(--text-muted);
}
.countup-label {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

@media (max-width: 560px) {
  .countup-row { gap: 8px; }
  .countup-number { font-size: 1.8rem; }
}

/* ---------- Macro Donut (SVG) ---------- */
.macro-donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}
.macro-donut {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}
.macro-donut-legend {
  flex: 1;
}
.macro-donut-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.macro-donut-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.macro-donut-label {
  flex: 1;
  font-size: .88rem;
  color: var(--text-dim);
}
.macro-donut-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .95rem;
}

/* ---------- Comparison Bar (Lebensmittel-Vergleich) ---------- */
.comparison-row {
  display: grid;
  grid-template-columns: 200px 1fr 80px;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.comparison-row:last-child { border-bottom: none; }
.comparison-label {
  font-weight: 600;
  color: var(--text);
}
.comparison-bar-track {
  height: 18px;
  background: var(--bg-2);
  border-radius: var(--r-pill);
  overflow: hidden;
  position: relative;
}
.comparison-bar-fill {
  height: 100%;
  border-radius: var(--r-pill);
  transition: width .6s ease-out;
}
.comparison-bar-fill.olive { background: var(--olive); }
.comparison-bar-fill.honey { background: var(--honey); }
.comparison-bar-fill.terracotta { background: var(--terracotta); }
.comparison-value {
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: right;
  font-size: .95rem;
}

@media (max-width: 768px) {
  .comparison-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .comparison-value { text-align: left; }
}

/* ---------- Stat Highlight (große Zahlen in Ratgeber) ---------- */
.stat-highlight-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.stat-highlight {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.stat-highlight-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--olive);
  line-height: 1;
}
.stat-highlight-num.honey { color: var(--honey-dark); }
.stat-highlight-num.terracotta { color: var(--terracotta); }
.stat-highlight-text {
  font-size: .88rem;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .stat-highlight-row { grid-template-columns: 1fr; }
}

/* ---------- Table of Contents (Ratgeber) ---------- */
.toc {
  background: var(--olive-light);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin: 32px 0;
  border-left: 4px solid var(--olive);
}
.toc-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--olive-dark);
}
.toc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}
.toc-list a {
  font-size: .88rem;
  color: var(--text-dim);
  padding: 4px 0;
}
.toc-list a:hover { color: var(--olive); }

@media (max-width: 560px) {
  .toc-list { grid-template-columns: 1fr; }
}

/* ---------- Pros / Cons Grid ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.pros-col, .cons-col {
  padding: 24px;
  border-radius: var(--r-lg);
}
.pros-col {
  background: var(--olive-light);
  border: 1px solid rgba(var(--olive-rgb), .2);
}
.cons-col {
  background: var(--terracotta-light);
  border: 1px solid rgba(var(--terracotta-rgb), .2);
}
.pros-col h3, .cons-col h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.pros-col h3 { color: var(--olive-dark); }
.cons-col h3 { color: var(--terracotta-dark); }
.pros-col ul, .cons-col ul {
  list-style: none;
  padding: 0;
}
.pros-col li, .cons-col li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: .92rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.pros-col li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--olive);
  font-weight: 700;
  font-size: 1.1rem;
}
.cons-col li::before {
  content: '−';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 1.1rem;
}

@media (max-width: 560px) {
  .pros-cons { grid-template-columns: 1fr; }
}

/* ---------- Article Body (Ratgeber Langform) ---------- */
.article-body {
  max-width: 720px;
  margin: 0 auto;
}
.article-body p {
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1.02rem;
}
.article-body h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}
.article-body h3 {
  margin-top: 28px;
  margin-bottom: 10px;
}
.article-body ul.bul {
  list-style: none;
  margin: 14px 0;
  padding: 0;
}
.article-body ul.bul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text-dim);
  line-height: 1.7;
}
.article-body ul.bul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--olive);
}
.article-body blockquote {
  border-left: 4px solid var(--honey);
  background: var(--honey-light);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--text-dim);
}
.article-body strong { color: var(--text); }
.article-body a { font-weight: 600; }

/* ---------- Bento Grid (Startseite Upgrade) ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 16px;
}
.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.bento-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--olive);
}
.bento-item.span-2 { grid-column: span 2; }
.bento-item.span-3 { grid-column: span 3; }
.bento-item.row-2 { grid-row: span 2; }
.bento-feature {
  background: linear-gradient(135deg, var(--olive), var(--olive-dark));
  color: #fff;
  border: none;
}
.bento-feature .bento-title { color: #fff; }
.bento-feature .bento-text { color: rgba(255,255,255,.85); }
.bento-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.bento-text {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.5;
  flex: 1;
}
.bento-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.bento-cta {
  font-size: .85rem;
  font-weight: 600;
  color: var(--olive);
  margin-top: 12px;
}
.bento-feature .bento-cta { color: #fff; }

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-item.span-3 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-item.span-2, .bento-item.span-3 { grid-column: span 1; }
  .bento-item.row-2 { grid-row: span 1; }
}

/* ---------- Newsletter Strip ---------- */
.newsletter-strip {
  background: var(--text);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 36px;
  text-align: center;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.newsletter-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(var(--olive-rgb), .25), transparent);
  z-index: 0;
}
.newsletter-strip > * { position: relative; z-index: 1; }
.newsletter-strip h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.newsletter-strip p {
  color: #b5b0a8;
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-pill);
  color: #fff;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus {
  border-color: var(--olive);
  background: rgba(255,255,255,.12);
}
.newsletter-form button {
  background: var(--olive);
  color: #fff;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: background .2s;
}
.newsletter-form button:hover { background: var(--olive-dark); }

@media (max-width: 560px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
}

/* ---------- Category Pill Filter ---------- */
.cat-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cat-pill {
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all .2s;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--olive);
  color: #fff;
  border-color: var(--olive);
}

/* ---------- Related Articles ---------- */
.related-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related-card {
  text-decoration: none;
  color: var(--text);
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: all .2s;
}
.related-card:hover {
  border-color: var(--olive);
  transform: translateY(-2px);
}
.related-card-cat {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--olive);
  margin-bottom: 6px;
}
.related-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .related-row { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   NÄHRSTOFF-NATUR — Rebrand + Dark Mode (2026-08-11)
   Salbei · Beerenrot · Ocker (Makros) — dunkles Nacht-Schema
   ============================================================ */
:root {
  --accent: #7A9B76;
  --accent-dark: #5F7E5C;
  --accent-light: #EDF2EB;
  --berry: #C0392B;
  --berry-light: #FAE9E6;
  --ocker: #D9A441;
  --ocker-light: #F8F0DD;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121410;
    --bg-2: #191C16;
    --bg-card: #1E221B;
    --bg-card-hover: #252A22;
    --text: #ECEFE8;
    --text-dim: #AEB5A5;
    --text-muted: #82897A;
    --border: #2E342A;
    --border-strong: #3E4639;
    --accent: #9DB898;
    --accent-dark: #B6CBAF;
    --accent-light: #24301F;
    --berry: #D96A5C;
    --berry-light: #3A211C;
    --ocker: #E0B45F;
    --ocker-light: #332A15;
  }
  body { background: var(--bg); color: var(--text); }
  .card { background: var(--bg-card); border-color: var(--border); }
  input, select, textarea { background: var(--bg-card); color: var(--text); border-color: var(--border); }
  table { background: var(--bg-card); }
}
