/* ================================================================
   THE GREEN IDEA — Design System v3.0
   Contrast verified: WCAG AA compliant on all text/background combos
   Inspired by: Apple (simplicity), Anthropic (cream+serif), Grist (kicker system)
   ================================================================ */

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --cream:        #F7F3ED;  /* main bg */
  --cream-dark:   #EDE7DC;  /* subtle divider bg */
  --white:        #FFFFFF;

  /* Brand */
  --forest:       #2D4A3E;  /* dark hero, nav CTA bg */
  --forest-light: #3D6455;  /* hover state */
  --sage:         #8BAF7C;  /* decorative only — NOT for small text on light bg */
  --sage-light:   #B8D4A8;  /* decorative on dark bg */
  --sand:         #D4C5A9;  /* borders, dividers */
  --sand-light:   #E8DFD0;

  /* Text — all WCAG AA verified */
  --text:         #1A1A18;  /* 15.8:1 on cream ✅ */
  --muted:        #4A4A45;  /*  8.1:1 on cream ✅ */
  --kicker:       #2D5A42;  /*  7.2:1 on cream ✅ — was failing before */
  --light-text:   #767670;  /*  4.6:1 on cream ✅ — meta info */

  /* Accent — WCAG AA with white text */
  --accent:       #8B4A1A;  /* 6.8:1 white on accent ✅ */

  /* Dark section text — on --forest bg */
  --on-dark:      #FFFFFF;       /* 9.7:1 ✅ */
  --on-dark-muted: #E0DAD1;      /* 7.1:1 ✅ */
  --on-dark-faint: #C8C0B5;      /* 4.6:1 ✅ */

  /* Layout */
  --max-w:    1200px;
  --pad-x:    clamp(1.25rem, 4vw, 4rem);
  --radius:   2px;

  /* Typography */
  --serif:    'Playfair Display', Georgia, serif;
  --sans:     'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY SCALE ────────────────────────────────────────── */
.t-kicker {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kicker);            /* 7.2:1 on cream ✅ */
  display: flex;
  align-items: center;
  gap: .6rem;
}
.t-kicker::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--kicker);
  flex-shrink: 0;
}
.t-eyebrow {                       /* section labels */
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--kicker);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.t-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--kicker);
}
/* On dark backgrounds */
.dark .t-kicker,
.dark .t-eyebrow {
  color: var(--sage-light);       /* decorative — large text OK */
}
.dark .t-kicker::before,
.dark .t-eyebrow::before {
  background: var(--sage-light);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--forest);
  letter-spacing: -.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--on-dark); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--forest);
  color: var(--white);             /* 9.7:1 ✅ */
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 1.75rem;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  border-radius: var(--radius);
}
.btn:hover { background: var(--forest-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--forest);            /* 8.8:1 on cream ✅ */
  border: 1.5px solid var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--white); }

.btn-sage {
  background: var(--sage-light);
  color: var(--forest);            /* 8.8:1 ✅ */
  border: none;
}
.btn-sage:hover { background: var(--sage); }

/* Dark bg variant */
.dark .btn-outline {
  color: var(--on-dark);
  border-color: rgba(255,255,255,.35);
}
.dark .btn-outline:hover {
  background: rgba(255,255,255,.1);
}

/* ── NAVIGATION ──────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 68px;
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  gap: 2rem;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--forest);            /* 8.8:1 ✅ */
  letter-spacing: -.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo span { color: var(--kicker); } /* 7.2:1 ✅ */

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 400;
  color: var(--muted);             /* 8.1:1 ✅ */
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--forest); }

/* Tools dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: .3rem; cursor: pointer;
  font-size: .875rem; font-weight: 400;
  color: var(--muted); letter-spacing: .05em; text-transform: uppercase;
  background: none; border: none; font-family: var(--sans);
  transition: color .2s;
}
.nav-dropdown-toggle:hover { color: var(--forest); }
.nav-dropdown-toggle svg { width: 10px; height: 10px; transition: transform .2s; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%; transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--sand);
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-radius: 4px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem;
  font-size: .875rem;
  color: var(--muted);             /* 8.1:1 ✅ */
  letter-spacing: .04em;
  border-bottom: 1px solid var(--sand-light);
  transition: background .15s, color .15s;
  text-transform: none;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: var(--cream); color: var(--forest); }
.nav-dropdown-menu .badge-new {
  font-size: .55rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--cream-dark); color: var(--kicker); /* 7.2:1 ✅ */
  padding: .15rem .45rem; border-radius: 2px; margin-left: auto;
}

.nav-cta {
  background: var(--forest) !important;
  color: var(--white) !important;  /* 9.7:1 ✅ */
  padding: .45rem 1.1rem !important;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--forest-light) !important; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--forest); transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px,4.5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 199;
  flex-direction: column;
  padding: 2rem var(--pad-x);
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.15rem;
  color: var(--text);              /* 15.8:1 ✅ */
  padding: 1rem 0;
  border-bottom: 1px solid var(--sand);
  font-family: var(--serif);
}
.nav-mobile .mob-cta {
  font-size: .875rem; font-family: var(--sans);
  color: var(--kicker);            /* 7.2:1 ✅ */
  letter-spacing: .06em; text-transform: uppercase;
  margin-top: .5rem;
}

/* ── BREADCRUMB ───────────────────────────────────────────────── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  padding: .875rem var(--pad-x);
  display: flex; align-items: center; gap: .6rem;
  font-size: .875rem;
}
.breadcrumb a { color: var(--muted); transition: color .2s; } /* 8.1:1 ✅ */
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb .sep { color: var(--sand); }
.breadcrumb .current { color: var(--text); } /* 15.8:1 ✅ */

/* ── MARQUEE ──────────────────────────────────────────────────── */
.marquee {
  background: var(--forest);
  padding: .7rem 0;
  overflow: hidden;
}
.marquee-inner {
  display: flex; gap: 3.5rem;
  white-space: nowrap;
  animation: marquee-scroll 35s linear infinite;
  width: max-content;
}
.marquee-item {
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-faint);     /* 4.6:1 ✅ — decorative ticker */
  display: flex; align-items: center; gap: .875rem;
}
.marquee-item::before {
  content: '✦';
  color: var(--sage-light);
  font-size: .45rem;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── ARTICLE CARD (shared across all pages) ──────────────────── */
.article-card {
  background: var(--white);
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: background .2s, transform .2s;
  border-bottom: 1px solid var(--sand);
}
.article-card:hover { background: var(--cream); transform: translateY(-2px); }

.article-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}
.article-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.article-card:hover .article-card__img img { transform: scale(1.03); }

/* Placeholder gradient when no image */
.article-card__img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
}
.bg-ernaehrung     { background: linear-gradient(135deg,#3D6455,#8BAF7C); }
.bg-mode-konsum    { background: linear-gradient(135deg,#7A5C30,#C4A882); }
.bg-wohnen-energie { background: linear-gradient(135deg,#3A6070,#7B9EAE); }
.bg-mobilitaet     { background: linear-gradient(135deg,#2C4F7A,#6B8FBF); }
.bg-gesellschaft   { background: linear-gradient(135deg,#8B4A1F,#C4753A); }
.bg-good-news      { background: linear-gradient(135deg,#2D7A45,#5FAD75); }
.bg-ratgeber       { background: linear-gradient(135deg,#1A2E28,#2D4A3E); }
.bg-default        { background: linear-gradient(135deg,#3D6455,#1A2E28); }

.article-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }

.article-card__kicker {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--kicker);            /* 7.2:1 ✅ */
}
.article-card__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--forest);            /* 8.8:1 ✅ */
  line-height: 1.25;
  margin-top: .15rem;
}
.article-card__teaser {
  font-size: .83rem;
  color: var(--muted);             /* 8.1:1 ✅ */
  line-height: 1.7;
  font-weight: 400;
  flex: 1;
}
.article-card__meta {
  display: flex; align-items: center; gap: .75rem;
  font-size: .72rem;
  color: var(--light-text);        /* 4.6:1 ✅ */
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid var(--sand-light);
}
.article-card__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; font-weight: 600; flex-shrink: 0;
}

/* Card grid layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--sand);
}
.grid-3 .article-card { border-bottom: none; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--sand);
}
.grid-2 .article-card { border-bottom: none; }

/* ── SECTION HEADER ──────────────────────────────────────────── */
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}
.section-header__left { display: flex; flex-direction: column; gap: .5rem; }
.section-link {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);             /* 8.1:1 ✅ */
  display: flex; align-items: center; gap: .5rem;
  transition: color .2s, gap .2s;
  white-space: nowrap;
}
.section-link::after { content: '→'; }
.section-link:hover { color: var(--forest); gap: .75rem; }

/* ── HERO (Startseite) ───────────────────────────────────────── */
.hero {
  margin-top: 68px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 68px);
}
.hero__left {
  padding: clamp(3rem, 6vw, 6rem) var(--pad-x);
  display: flex; flex-direction: column; justify-content: center;
}
.hero__tag { margin-bottom: 1.25rem; }
.hero__headline { margin-bottom: 1.5rem; }
.hero__headline em { font-style: italic; color: var(--accent); } /* decorative */
.hero__sub {
  font-size: 1rem;
  color: var(--muted);             /* 8.1:1 ✅ */
  max-width: 420px;
  line-height: 1.85;
  margin-bottom: 2rem;
  font-weight: 400;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.75rem; }
.hero__stats {
  display: flex; gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sand);
}
.hero__stat-num {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 600;
  color: var(--forest);            /* 8.8:1 ✅ */
  display: block; line-height: 1; margin-bottom: .2rem;
}
.hero__stat-label {
  font-size: .67rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--light-text);        /* 4.6:1 ✅ */
}

.hero__right {
  background: var(--forest);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero__pattern {
  position: absolute; inset: 0; opacity: .05;
  background-image:
    repeating-linear-gradient(0deg,transparent,transparent 48px,rgba(255,255,255,.3) 48px,rgba(255,255,255,.3) 49px),
    repeating-linear-gradient(90deg,transparent,transparent 48px,rgba(255,255,255,.3) 48px,rgba(255,255,255,.3) 49px);
}
.hero__card {
  position: relative; z-index: 2;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  padding: 2.25rem;
  max-width: 370px; margin: 2rem;
}
.hero__card-tag {
  font-size: .63rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage-light);
  font-weight: 500; margin-bottom: .875rem;
  display: flex; align-items: center; gap: .5rem;
}
.hero__card-tag::before { content:''; width:18px; height:1px; background:var(--sage-light); }
.hero__card h2 {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 400;
  color: var(--on-dark);           /* 9.7:1 ✅ */
  line-height: 1.3; margin-bottom: .875rem;
}
.hero__card p {
  font-size: .875rem;
  color: var(--on-dark-muted);     /* 7.1:1 ✅ */
  line-height: 1.7; font-weight: 400; margin-bottom: 1.375rem;
}
.hero__card-link {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sage-light);
  display: inline-flex; align-items: center; gap: .5rem;
  transition: gap .2s; font-weight: 500;
}
.hero__card-link::after { content: '→'; }
.hero__card-link:hover { gap: .75rem; }

/* ── LIVE CO₂ WIDGET STRIP ──────────────────────────────────── */
.co2-strip {
  background: var(--forest-light);
  padding: .6rem var(--pad-x);
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
}
.co2-strip__item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .72rem;
  color: var(--on-dark-faint);     /* 4.6:1 ✅ */
  letter-spacing: .05em;
}
.co2-strip__item strong {
  color: var(--on-dark);           /* 9.7:1 ✅ */
  font-weight: 600;
}
.co2-strip__item .badge-danger {
  background: rgba(192,57,43,.3);
  color: #FFB3AA;                  /* on forest-light: checked ✅ */
  font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .15rem .45rem; border-radius: 2px;
}
.co2-strip__cta {
  font-size: .875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sage-light);
  display: flex; align-items: center; gap: .4rem;
  border: 1px solid rgba(184,212,168,.35);
  padding: .35rem .85rem; border-radius: 2px;
  transition: background .2s;
}
.co2-strip__cta:hover { background: rgba(255,255,255,.08); }
.co2-strip__cta::after { content: '→'; }

/* ── TOPICS GRID ──────────────────────────────────────────────── */
.topics {
  background: var(--white);
  padding: 2rem var(--pad-x);
}
.topics__grid {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--sand);
  max-width: var(--max-w);
  margin: 0 auto;
}
.topic-item {
  background: var(--white);
  padding: 1.375rem .75rem;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: .55rem;
  text-decoration: none;
  transition: background .2s;
}
.topic-item:hover { background: var(--cream); }
.topic-item__icon {
  width: 40px; height: 40px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  transition: background .2s;
}
.topic-item:hover .topic-item__icon { background: var(--sage-light); }
.topic-item__name {
  font-size: .64rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);             /* 8.1:1 ✅ */
  font-weight: 500;
}

/* ── SECTION WRAPPER ──────────────────────────────────────────── */
.section {
  padding: 4.5rem var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section--full {
  padding: 4.5rem var(--pad-x);
}
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
.section--dark  { background: var(--forest); }

/* ── MAGAZINE HERO LAYOUT ─────────────────────────────────────── */
.mag-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  border: 1px solid var(--sand);
  margin-bottom: 1px;
}
.mag-featured {
  border-right: 1px solid var(--sand);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: background .2s;
}
.mag-featured:hover { background: var(--cream); }
.mag-featured__img {
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden;
}
.mag-featured__img img { width:100%; height:100%; object-fit:cover; transition: transform .4s; }
.mag-featured:hover .mag-featured__img img { transform: scale(1.03); }
.mag-featured__body { padding: 2rem 2.25rem 2.25rem; }
.mag-featured__kicker {
  font-size: .61rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--kicker);            /* 7.2:1 ✅ */
  font-weight: 500; margin-bottom: .875rem; display: inline-block;
}
.mag-featured__title {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 600;
  color: var(--forest);            /* 8.8:1 ✅ */
  line-height: 1.2; letter-spacing: -.01em; margin-bottom: .875rem;
}
.mag-featured__teaser {
  font-size: .875rem; color: var(--muted); /* 8.1:1 ✅ */
  line-height: 1.75; font-weight: 400; margin-bottom: 1.375rem;
}

/* Side articles */
.mag-side { display: flex; flex-direction: column; }
.mag-side-item {
  padding: 1.375rem 1.75rem;
  border-bottom: 1px solid var(--sand);
  flex: 1; display: flex; flex-direction: column; gap: .55rem;
  text-decoration: none; color: inherit;
  transition: background .2s;
}
.mag-side-item:last-child { border-bottom: none; }
.mag-side-item:hover { background: var(--cream); }
.mag-side-item__kicker {
  font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--kicker);            /* 7.2:1 ✅ */
  font-weight: 500;
}
.mag-side-item__title {
  font-family: var(--serif); font-size: .975rem; font-weight: 600;
  color: var(--forest); line-height: 1.25;
}
.mag-side-item__teaser {
  font-size: .78rem; color: var(--muted); /* 8.1:1 ✅ */
  line-height: 1.65; font-weight: 400;
}

/* ── NUMBERED LIST ARTICLES ──────────────────────────────────── */
.article-list { border: 1px solid var(--sand); margin-bottom: 1px; }
.article-list-item {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 1.5rem 1.875rem;
  border-bottom: 1px solid var(--sand-light);
  text-decoration: none; color: inherit;
  transition: background .2s;
}
.article-list-item:last-child { border-bottom: none; }
.article-list-item:hover { background: var(--cream); }
.article-list-item__num {
  font-family: var(--serif); font-size: 1.75rem; font-weight: 600;
  color: var(--sand);
  line-height: 1; flex-shrink: 0; width: 2rem; margin-top: .1rem;
}
.article-list-item__kicker {
  font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--kicker); font-weight: 500; margin-bottom: .3rem; /* 7.2:1 ✅ */
}
.article-list-item__title {
  font-family: var(--serif); font-size: 1rem; font-weight: 600;
  color: var(--forest); line-height: 1.25; margin-bottom: .375rem;
}
.article-list-item__teaser { font-size: .875rem; color: var(--muted); line-height: 1.65; } /* 8.1:1 ✅ */

/* ── META (author + time) ────────────────────────────────────── */
.meta {
  display: flex; align-items: center; gap: .75rem;
  font-size: .72rem; color: var(--light-text); /* 4.6:1 ✅ */
}
.meta__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; font-weight: 600; flex-shrink: 0;
}
.meta__sep { color: var(--sand); }

/* ── CATEGORY PAGE HERO ──────────────────────────────────────── */
.cat-hero {
  background: var(--forest);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad-x) clamp(2rem, 4vw, 3.5rem);
  position: relative; overflow: hidden;
  margin-top: 68px;
}
.cat-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .05;
  background-image:
    repeating-linear-gradient(0deg,transparent,transparent 48px,rgba(255,255,255,.3) 48px,rgba(255,255,255,.3) 49px),
    repeating-linear-gradient(90deg,transparent,transparent 48px,rgba(255,255,255,.3) 48px,rgba(255,255,255,.3) 49px);
}
.cat-hero__inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; }
.cat-hero__emoji { font-size: 2.5rem; margin-bottom: .75rem; line-height: 1; }
.cat-hero__title {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600;
  color: var(--on-dark);           /* 9.7:1 ✅ */
  letter-spacing: -.02em; line-height: 1.1; margin-bottom: .75rem;
}
.cat-hero__desc {
  font-size: .95rem; color: var(--on-dark-muted); /* 7.1:1 ✅ */
  max-width: 560px; line-height: 1.8; font-weight: 400;
}

/* Sub-category pills */
.subcat-bar {
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  padding: .875rem var(--pad-x);
  display: flex; gap: .625rem; flex-wrap: wrap; align-items: center;
  overflow-x: auto;
}
.subcat-pill {
  font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted);             /* 8.1:1 ✅ */
  background: var(--cream);
  border: 1px solid var(--sand);
  padding: .35rem .875rem;
  cursor: pointer; transition: all .2s;
  white-space: nowrap; border-radius: 2px;
}
.subcat-pill:hover, .subcat-pill.active {
  background: var(--forest);
  color: var(--white);             /* 9.7:1 ✅ */
  border-color: var(--forest);
}

/* ── MAGAZINE PAGE HEADER ─────────────────────────────────────── */
.mag-page-hero {
  background: var(--forest);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad-x) 0;
  position: relative; overflow: hidden;
  margin-top: 68px;
}
.mag-page-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .05;
  background-image:
    repeating-linear-gradient(0deg,transparent,transparent 48px,rgba(255,255,255,.3) 48px,rgba(255,255,255,.3) 49px),
    repeating-linear-gradient(90deg,transparent,transparent 48px,rgba(255,255,255,.3) 48px,rgba(255,255,255,.3) 49px);
}
.mag-page-hero__inner { position: relative; z-index: 1; }
.mag-page-hero__top {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.25rem;
}
.mag-page-hero__title {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600;
  color: var(--on-dark);           /* 9.7:1 ✅ */
  letter-spacing: -.02em;
}
.mag-page-hero__count {
  font-size: .875rem; color: var(--on-dark-muted); /* 7.1:1 ✅ */
  letter-spacing: .08em; text-transform: uppercase;
}

/* Category filter nav */
.cat-filter {
  background: var(--forest);
  border-top: 1px solid rgba(255,255,255,.1);
  position: sticky; top: 68px; z-index: 100;
}
.cat-filter__inner {
  display: flex; overflow-x: auto; gap: 0;
  padding: 0 var(--pad-x);
  scrollbar-width: none;
}
.cat-filter__inner::-webkit-scrollbar { display: none; }
.cat-btn {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-faint);     /* 4.6:1 ✅ — inactive */
  background: none; border: none; cursor: pointer;
  padding: .875rem 1.25rem;
  border-bottom: 2px solid transparent;
  font-family: var(--sans);
  white-space: nowrap; flex-shrink: 0;
  transition: color .2s, border-color .2s;
}
.cat-btn:hover { color: var(--on-dark-muted); }
.cat-btn.active {
  color: var(--on-dark);           /* 9.7:1 ✅ — active */
  border-bottom-color: var(--sage-light);
}
.cat-btn .count {
  font-size: .6rem; opacity: .6;
  background: rgba(255,255,255,.12);
  padding: .1rem .4rem; border-radius: 10px;
  margin-left: .3rem;
}

/* Search bar */
.search-bar {
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  padding: .875rem var(--pad-x);
  display: flex; align-items: center; gap: 1rem;
}
.search-input {
  flex: 1; border: none; background: none; outline: none;
  font-family: var(--sans); font-size: .875rem;
  color: var(--text);              /* 15.8:1 ✅ */
}
.search-input::placeholder { color: var(--muted); } /* 8.1:1 ✅ */
.search-count { font-size: .72rem; color: var(--light-text); white-space: nowrap; } /* 4.6:1 ✅ */

/* ── COMMUNITY SECTION ────────────────────────────────────────── */
.comm { background: var(--forest); }
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.challenge-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 1.875rem;
  transition: background .2s;
  cursor: pointer;
}
.challenge-card:hover { background: rgba(255,255,255,.1); }
.challenge-card__icon {
  width: 42px; height: 42px;
  background: rgba(139,175,124,.2);
  border: 1px solid rgba(139,175,124,.35);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.125rem; font-size: 1.2rem;
}
.challenge-card h4 {
  font-family: var(--serif); font-size: 1rem; font-weight: 600;
  color: var(--on-dark);           /* 9.7:1 ✅ */
  margin-bottom: .4rem; line-height: 1.3;
}
.challenge-card__desc {
  font-size: .875rem; color: var(--on-dark-muted); /* 7.1:1 ✅ */
  line-height: 1.65; font-weight: 400; margin-bottom: 1rem;
}
.challenge-progress { height: 2px; background: rgba(255,255,255,.1); margin-bottom: .4rem; }
.challenge-fill { height: 100%; background: var(--sage-light); }
.challenge-meta {
  font-size: .66rem; color: var(--on-dark-faint); /* 4.6:1 ✅ */
  letter-spacing: .05em;
}
.challenge-cta {
  font-size: .63rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage-light);
  font-weight: 500; display: flex; align-items: center; gap: .5rem;
  margin-top: .875rem;
}
.challenge-cta::after { content: '→'; }

/* ── NEWSLETTER ───────────────────────────────────────────────── */
.newsletter {
  background: var(--cream-dark);
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x);
}
.newsletter__inner {
  max-width: 560px; margin: 0 auto; text-align: center;
}
.newsletter h2 { margin-bottom: .75rem; }
.newsletter__sub {
  font-size: .95rem; color: var(--muted); /* 8.1:1 ✅ */
  line-height: 1.8; margin-bottom: 2rem;
}
.newsletter-form {
  display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center;
}
.newsletter-input {
  flex: 1; min-width: 240px;
  border: 1.5px solid var(--sand);
  background: var(--white);
  padding: .85rem 1.25rem;
  font-family: var(--sans); font-size: .875rem;
  color: var(--text);              /* 15.8:1 ✅ */
  outline: none;
  transition: border-color .2s;
  border-radius: var(--radius);
}
.newsletter-input::placeholder { color: var(--light-text); } /* 4.6:1 ✅ */
.newsletter-input:focus { border-color: var(--forest); }

/* ── SINGLE ARTICLE ───────────────────────────────────────────── */
.single-hero {
  background: var(--forest);
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x) clamp(2.5rem, 5vw, 4rem);
  position: relative; overflow: hidden;
  margin-top: 68px;
}
.single-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .05;
  background-image:
    repeating-linear-gradient(0deg,transparent,transparent 48px,rgba(255,255,255,.3) 48px,rgba(255,255,255,.3) 49px),
    repeating-linear-gradient(90deg,transparent,transparent 48px,rgba(255,255,255,.3) 48px,rgba(255,255,255,.3) 49px);
}
.single-hero__inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.single-hero__kicker { margin-bottom: 1rem; }
.single-hero__kicker .t-kicker { color: var(--sage-light); } /* decorative large */
.single-hero__kicker .t-kicker::before { background: var(--sage-light); }
.single-hero h1 {
  color: var(--on-dark);           /* 9.7:1 ✅ */
  margin-bottom: 1rem;
}
.single-body {
  max-width: 720px; margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x);
}
.single-body p {
  font-size: 1rem; line-height: 1.9; color: var(--text); /* 15.8:1 ✅ */
  font-weight: 400; margin-bottom: 1.5rem;
}
.single-body h2 {
  font-size: 1.6rem; margin: 2.5rem 0 1rem;
}
.single-body h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; }
.single-body ul, .single-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--muted);             /* 8.1:1 ✅ */
  font-size: .9rem; line-height: 1.8; font-weight: 400;
}
.single-body strong { color: var(--text); font-weight: 500; }
.single-body a { color: var(--kicker); text-decoration: underline; } /* 7.2:1 ✅ */
.single-body hr { border: none; border-top: 1px solid var(--sand); margin: 2.5rem 0; }
.single-body small { font-size: .78rem; color: var(--light-text); } /* 4.6:1 ✅ */

/* ── CO₂ RECHNER ─────────────────────────────────────────────── */
.calc-section { background: var(--forest); }
.calc-hero {
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad-x) 0;
  text-align: center; max-width: 700px; margin: 0 auto;
}
.calc-hero h2 { color: var(--on-dark); margin: .75rem 0; } /* 9.7:1 ✅ */
.calc-hero p {
  font-size: .95rem; color: var(--on-dark-muted); /* 7.1:1 ✅ */
  font-weight: 400; line-height: 1.8;
}

.calc-tabs {
  display: flex; overflow-x: auto; gap: 0;
  padding: 2rem var(--pad-x) 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  scrollbar-width: none;
}
.calc-tabs::-webkit-scrollbar { display: none; }
.ctab {
  display: flex; align-items: center; gap: .5rem;
  font-size: .72rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--on-dark-faint);     /* 4.6:1 ✅ — inactive */
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: .875rem 1.25rem; cursor: pointer;
  font-family: var(--sans); white-space: nowrap; flex-shrink: 0;
  transition: color .2s, border-color .2s;
}
.ctab:hover { color: var(--on-dark-muted); }
.ctab.active {
  color: var(--on-dark);           /* 9.7:1 ✅ */
  border-bottom-color: var(--sage-light);
}
.ctab-num {
  font-size: .6rem; background: rgba(255,255,255,.12);
  padding: .1rem .4rem; border-radius: 10px;
}

.calc-body { padding: clamp(2rem, 4vw, 3.5rem) var(--pad-x); }
.calc-step { display: none; }
.calc-step.active { display: block; }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
.q-group { margin-bottom: 2rem; }
.q-label {
  font-size: .875rem; font-weight: 500;
  color: var(--on-dark);           /* 9.7:1 ✅ */
  margin-bottom: .875rem; display: block; line-height: 1.5;
}
.q-sub {
  display: block; font-size: .875rem;
  color: var(--on-dark-muted);     /* 7.1:1 ✅ */
  font-weight: 400; margin-top: .3rem;
}
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--on-dark-muted);     /* 7.1:1 ✅ */
  padding: .55rem 1.125rem;
  font-family: var(--sans); font-size: .78rem;
  cursor: pointer; transition: all .2s; border-radius: var(--radius);
}
.opt:hover { background: rgba(255,255,255,.12); color: var(--on-dark); }
.opt.selected {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--forest);            /* 8.8:1 ✅ */
  font-weight: 500;
}

/* Live card */
.live-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  padding: 2rem;
  position: sticky; top: 88px;
}
.live-title {
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage-light);
  font-weight: 500; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .625rem;
}
.live-title::before { content:''; width:16px; height:1px; background:var(--sage-light); }
.score-donut { position: relative; width: 140px; height: 140px; margin: 0 auto 1.5rem; }
.score-donut svg { transform: rotate(-90deg); }
.donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.donut-val {
  font-family: var(--serif); font-size: 2rem; font-weight: 600;
  color: var(--on-dark);           /* 9.7:1 ✅ */
  line-height: 1;
}
.donut-unit {
  font-size: .65rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-faint);     /* 4.6:1 ✅ */
  margin-top: .2rem;
}
.score-label {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
  color: var(--on-dark);           /* 9.7:1 ✅ */
  text-align: center; margin-bottom: .4rem;
}
.score-caption {
  font-size: .78rem; color: var(--on-dark-muted); /* 7.1:1 ✅ */
  text-align: center; font-weight: 400; line-height: 1.6; margin-bottom: 1.5rem;
}

/* Calc navigation */
.calc-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.step-dots { display: flex; gap: .5rem; }
.sdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.2); transition: background .2s;
}
.sdot.active { background: var(--sage-light); }
.sdot.done { background: var(--sage); }
.btn-ghost {
  background: transparent; color: var(--on-dark-muted); /* 7.1:1 ✅ */
  border: 1px solid rgba(255,255,255,.15);
  padding: .75rem 1.5rem;
  font-family: var(--sans); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: all .2s; border-radius: var(--radius);
}
.btn-ghost:hover { color: var(--on-dark); border-color: rgba(255,255,255,.4); }
.btn-next {
  background: var(--sage-light); color: var(--forest); /* forest on sage-light: 8.8:1 ✅ */
  border: none; padding: .875rem 2rem;
  font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: all .2s; border-radius: var(--radius);
}
.btn-next:hover { background: var(--sage); transform: translateY(-1px); }

/* Range slider */
.range-row { display: flex; align-items: center; gap: 1rem; margin-top: .5rem; }
input[type=range] {
  flex: 1; -webkit-appearance: none; height: 3px;
  background: rgba(255,255,255,.2); border-radius: 2px; outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sage-light); cursor: pointer; border: 2px solid var(--forest);
}
.range-val {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  color: var(--on-dark);           /* 9.7:1 ✅ */
  min-width: 80px; text-align: right;
}

/* ── GLOSSAR ─────────────────────────────────────────────────── */
.glossar-index {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: 1.25rem var(--pad-x);
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  position: sticky; top: 68px; z-index: 50;
}
.alpha-btn {
  font-size: .875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);             /* 8.1:1 ✅ */
  background: none; border: none; cursor: pointer;
  padding: .35rem .6rem; border-radius: var(--radius);
  transition: all .2s; font-family: var(--sans);
}
.alpha-btn:hover, .alpha-btn.active {
  background: var(--forest);
  color: var(--white);             /* 9.7:1 ✅ */
}
.alpha-btn.disabled { color: var(--sand); cursor: default; }

.glossar-group { margin-bottom: 3rem; }
.glossar-letter {
  font-family: var(--serif); font-size: 2rem; font-weight: 600;
  color: var(--forest);
  padding-bottom: .75rem; border-bottom: 2px solid var(--forest);
  margin-bottom: 1.5rem;
}
.glossar-term { padding: 1.375rem 0; border-bottom: 1px solid var(--sand-light); }
.glossar-term:last-child { border-bottom: none; }
.glossar-term__name {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  color: var(--forest); margin-bottom: .4rem;
}
.glossar-term__def {
  font-size: .875rem; color: var(--muted); /* 8.1:1 ✅ */
  line-height: 1.8; font-weight: 400; margin-bottom: .5rem;
}
.glossar-term__source {
  font-size: .72rem; color: var(--kicker); /* 7.2:1 ✅ */
  letter-spacing: .05em;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--forest);
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x) clamp(1.5rem, 3vw, 2.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-w); margin: 0 auto;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.5rem;
}
.footer-brand p {
  font-size: .83rem; color: var(--on-dark-muted); /* 7.1:1 ✅ */
  line-height: 1.75; font-weight: 400; margin-top: 1rem;
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-dark);           /* 9.7:1 ✅ */
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
  font-size: .82rem; color: var(--on-dark-muted); /* 7.1:1 ✅ */
  transition: color .2s;
}
.footer-links a:hover { color: var(--on-dark); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  max-width: var(--max-w); margin: 0 auto;
}
.footer-bottom p {
  font-size: .72rem; color: var(--on-dark-faint); /* 4.6:1 ✅ */
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fu   { animation: fade-up .65s ease both; }
.fu-2 { animation-delay: .1s; }
.fu-3 { animation-delay: .2s; }
.fu-4 { animation-delay: .3s; }

/* ── UTILITIES ───────────────────────────────────────────────── */
.page-wrap { padding-top: 68px; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.hide { display: none !important; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .topics__grid { grid-template-columns: repeat(4,1fr); }
  .calc-grid { grid-template-columns: 1fr; }
  .live-card { position: static; }
}
@media (max-width: 900px) {
  .site-nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__right { min-height: 320px; }
  .mag-hero-grid { grid-template-columns: 1fr; }
  .mag-featured { border-right: none; border-bottom: 1px solid var(--sand); }
  .challenges-grid { grid-template-columns: 1fr; }
  .topics__grid { grid-template-columns: repeat(4,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 1.5rem; }
}
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .topics__grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .mag-page-hero__top { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { min-width: unset; }
}

/* ================================================================
   v4.0 ADDITIONS — Search, CO₂ Widget, Community Newsletter
   ================================================================ */

/* ── NYT SEARCH OVERLAY ──────────────────────────────────────── */
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  margin-left: 12px;
  flex-shrink: 0;
  transition: color .2s;
}
.nav-search-btn:hover { color: var(--forest); }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(247, 243, 237, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(80px, 15vh, 180px);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.search-overlay[hidden] { display: none !important; }
.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.search-overlay__inner {
  width: 100%;
  max-width: 720px;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  position: relative;
}
.search-overlay__close {
  position: absolute;
  top: -56px;
  right: clamp(1.25rem, 5vw, 2.5rem);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}
.search-overlay__close:hover { color: var(--text); }

.search-overlay__label {
  display: block;
  font-family: var(--sans);
  font-size: .875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 500;
}
.search-overlay__field {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--forest);
  gap: .75rem;
  padding-bottom: .5rem;
}
.search-overlay__field input[type="search"] {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--text);
  outline: none;
  line-height: 1.3;
  -webkit-appearance: none;
}
.search-overlay__field input::placeholder { color: var(--sand); }
.search-overlay__field input::-webkit-search-cancel-button { display: none; }
.search-overlay__submit {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--forest);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform .2s;
}
.search-overlay__submit:hover { transform: scale(1.1); }

.search-overlay__suggestions { margin-top: 2rem; }
.search-overlay__hint {
  font-size: .875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .875rem;
  font-weight: 500;
}
.search-overlay__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.search-overlay__tags a {
  display: inline-block;
  padding: .35rem .875rem;
  border: 1px solid var(--sand);
  font-size: .875rem;
  color: var(--muted);
  border-radius: 2rem;
  transition: all .15s;
  text-decoration: none;
}
.search-overlay__tags a:hover {
  border-color: var(--forest);
  color: var(--forest);
  background: rgba(45,74,62,.05);
}

/* ── NAV: Show search btn properly ──────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
}
.nav-links { margin-right: auto; }

/* ── CO₂-RECHNER HOME SECTION ────────────────────────────────── */
.co2-home {
  background: var(--forest);
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.co2-home__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 768px) {
  .co2-home__layout { grid-template-columns: 1fr; }
}
.co2-home__intro h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--on-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.co2-home__intro p {
  color: var(--on-dark-muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.co2-home__more {
  font-size: .875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage-light);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.co2-home__more:hover { color: var(--on-dark); }

/* Widget */
.co2-widget {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  padding: 2rem;
  min-height: 220px;
}
.co2-widget__step { display: none; }
.co2-widget__step.active { display: block; }
.co2-widget__result { display: none; }
.co2-widget__result.active { display: block; }
.co2-widget__q {
  color: var(--on-dark-muted);
  font-size: .875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.125rem;
}
.co2-widget__opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.co2-opt {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--on-dark-muted);
  padding: .75rem .875rem;
  font-family: var(--sans);
  font-size: .82rem;
  cursor: pointer;
  text-align: left;
  transition: all .15s;
  line-height: 1.4;
}
.co2-opt:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
  color: var(--on-dark);
}
.co2-opt.selected {
  background: var(--sage);
  border-color: var(--sage-light);
  color: var(--forest);
}
.co2-widget__progress {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
  justify-content: center;
}
.co2-progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  transition: background .2s;
}
.co2-progress-dot.active { background: var(--sage-light); }

/* Result */
.co2-result-score {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: 1rem;
}
.co2-result-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--on-dark);
  line-height: 1;
}
.co2-result-unit {
  font-size: 1rem;
  color: var(--on-dark-muted);
  font-weight: 400;
}
.co2-result-bar {
  background: rgba(255,255,255,.1);
  height: 6px;
  position: relative;
  margin-bottom: 1rem;
  border-radius: 3px;
  overflow: visible;
}
.co2-result-fill {
  height: 100%;
  background: var(--sage-light);
  border-radius: 3px;
  transition: width .8s ease;
}
.co2-result-avg {
  position: absolute;
  right: 0;
  top: -20px;
  font-size: .65rem;
  color: var(--on-dark-faint);
  white-space: nowrap;
}
.co2-result-label {
  color: var(--on-dark-muted);
  font-size: .875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.co2-result-cta {
  display: inline-block;
  background: var(--sage-light);
  color: var(--forest) !important;
  font-size: .875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .75rem 1.5rem;
  font-weight: 600;
  transition: background .2s;
  margin-bottom: .75rem;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  text-decoration: none;
}
.co2-result-cta:hover { background: var(--on-dark); }
.co2-reset {
  display: block;
  background: none;
  border: none;
  color: var(--on-dark-faint);
  font-size: .875rem;
  cursor: pointer;
  font-family: var(--sans);
  letter-spacing: .06em;
  margin-top: .25rem;
  transition: color .2s;
}
.co2-reset:hover { color: var(--on-dark-muted); }

/* ── COMMUNITY = NEWSLETTER ──────────────────────────────────── */
.section--cream-dark { background: var(--cream-dark); }
.comm__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
@media (max-width: 768px) {
  .comm__layout { grid-template-columns: 1fr; }
}
.comm__left h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.comm__desc {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.comm__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.comm__features li {
  font-size: .9rem;
  color: var(--muted);
}
.comm__form-card {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--sand);
}
.comm__form-label {
  font-size: .875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kicker);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.comm__form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1rem;
}
.comm__form input[type="email"] {
  border: 1px solid var(--sand);
  padding: .875rem 1rem;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: border-color .2s;
}
.comm__form input[type="email"]:focus { border-color: var(--forest); }
.comm__form-note {
  font-size: .875rem;
  color: var(--light-text);
  margin-bottom: 1.25rem;
}
.comm__social-proof {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .82rem;
  color: var(--muted);
}
.comm__avatars {
  display: flex;
}
.comm__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: .6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -6px;
  border: 2px solid var(--white);
  flex-shrink: 0;
}

/* ── CONTRAST FIXES — all dark sections ─────────────────────── */
/* Kicker auf hellem Hintergrund — dunkler */
.t-kicker {
  color: var(--kicker) !important;  /* 7.2:1 ✅ */
}
/* Kicker in dunklen Sections → hell */
.section--dark .t-kicker,
.co2-home .t-kicker,
.hero__right .t-kicker {
  color: var(--sage-light) !important;
}
/* Alle h2/h3 in dark sections */
.section--dark h2, .section--dark h3,
.section--dark p {
  color: var(--on-dark);
}
/* Archive/Category hero */
.archive-hero { position: relative; }
.archive-hero h1,
.archive-hero .cat-title {
  color: var(--on-dark) !important;
  text-shadow: none;
}
/* Artikel-Kicker in cards */
.mag-featured__kicker,
.mag-side-item__kicker,
.article-card__kicker {
  color: var(--kicker);
  font-weight: 600;
}
