/* ============================================================
   Living Charity e. V. — Design-Tokens
   Designkonzept: „Editorial Humanitarian Premium"

   FARBWELT: abgeleitet aus dem ECHTEN Vereinslogo (Herz aus zwei
   Händen, Rot #B50000 + Schwarz ~#141414, Wortmarke LIVING CHARITY).
   Rot ist die Markenfarbe und wird gezielt eingesetzt (CTAs, Akzente,
   5-€-Ziffer); Schwarz trägt Tiefe (Trust-Strip, dunkle Sektionen,
   Footer); warme helle Neutraltöne halten die Seite ruhig — kein
   grelles Spendenportal.

   Zentrale Quelle aller Gestaltungswerte; in WordPress → theme.json.
   ============================================================ */

:root {
  /* ---------- Marke (aus Logo gesampelt) ---------- */
  --brand:        #b50000;  /* Logo-Rot — Akzent, CTAs, Links; auf Ivory 6.5:1 */
  --brand-strong: #8f0d12;  /* vertieftes Rot — Hover, kleine Texte */
  --brand-tint:   #f7e9e7;  /* stille rote Fläche (Badges, Hovers) */
  --ink:          #161616;  /* Logo-Schwarz — Text, dunkle Flächen */

  /* ---------- Neutraltöne (warm, ohne Grünstich) ---------- */
  --ivory:        #f7f4f0;  /* primärer Seitenhintergrund */
  --paper:        #ffffff;  /* redaktionelle Inhaltsflächen, Header */
  --sand:         #ece7e1;  /* warme Abstufungsfläche */
  --stone:        #c9c3bc;  /* stille Linien-/Flächenabstufung */
  --text:         #232120;
  --text-muted:   #6b6560;
  --line:         #e3dfda;
  --line-strong:  #c8c2bb;

  /* Status (semantisch, getrennt von der Markenfarbe) */
  --success:      #267858;
  --warning:      #8a5f20;
  --error:        #a63e38;

  /* helle Töne für dunkle (Ink-)Flächen */
  --on-dark:        #f5f3f0;
  --on-dark-muted:  #b7b1ab;
  --on-dark-line:   rgb(245 243 240 / 0.16);
  --brand-on-dark:  #e2b3b0;  /* Markenakzent auf Ink (Links, Overline-Strich); 9.7:1 */

  /* ---------- Typografie ---------- */
  --font-display: "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-text: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-editorial: "Newsreader", Georgia, serif; /* nur kursiver Akzent */

  --text-xs:   0.8125rem;
  --text-sm:   0.9375rem;
  --text-base: clamp(1.0625rem, 1rem + 0.25vw, 1.1563rem);
  --text-lg:   clamp(1.25rem, 1.15rem + 0.4vw, 1.4375rem);
  --text-xl:   clamp(1.45rem, 1.3rem + 0.8vw, 1.875rem);
  --text-2xl:  clamp(1.75rem, 1.5rem + 1.4vw, 2.5rem);
  --text-3xl:  clamp(2.125rem, 1.75rem + 2.2vw, 3.375rem);
  --text-impact: clamp(4rem, 3rem + 5vw, 7.5rem);
  --text-4xl:  clamp(2.6rem, 1.9rem + 3.6vw, 4.75rem);

  --leading-tight: 1.12;
  --leading-snug:  1.3;
  --leading-body:  1.6;
  --tracking-caps: 0.14em;

  /* ---------- Raum & Raster ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-section: clamp(4rem, 3rem + 4.5vw, 7rem);
  --space-section-sm: clamp(2.5rem, 2rem + 2.5vw, 4rem);

  --container-max: 80rem;
  --container-text: 42.5rem;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);

  /* ---------- Form ---------- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-xs: 4px;
  --shadow-soft: 0 1px 2px rgb(22 22 22 / 0.06);
  --shadow-lift: 0 2px 6px rgb(22 22 22 / 0.08);

  /* ---------- Bewegung ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-quick: 160ms;
  --duration-reveal: 600ms;

  /* ---------- Interaktion ---------- */
  --touch-target: 2.75rem;
  --focus-ring: 3px solid var(--brand);
}

/* Lokal gehostete Variable Fonts (DSGVO: keine externen Requests) */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}


/* ============================================================
   Basis: Reset, Typografie, Layout-Primitive, Barrierefreiheit
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--ivory);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

/* ---------- Typografie ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); line-height: var(--leading-snug); }
h4 { font-size: var(--text-lg); line-height: var(--leading-snug); }

p, ul, ol, dl { max-width: var(--container-text); }
p + p { margin-top: 1em; }
p, li, dd, dt, summary { overflow-wrap: break-word; hyphens: auto; }

.lead { font-size: var(--text-lg); line-height: 1.55; color: var(--text); }
small, .text-sm { font-size: var(--text-sm); }
.text-muted { color: var(--text-muted); }

/* Redaktioneller Akzent (Newsreader, nur kursiv, sparsam) */
.editorial-accent {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

/* Eyebrow-Etikett mit kurzer Linie */
.overline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--brand);
}
.overline::before { content: ""; width: 1.75rem; height: 2px; background: var(--brand); flex: none; }
.overline--brand { color: var(--brand-strong); }
.section-dark .overline { color: var(--on-dark-muted); }

a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--duration-quick) var(--ease-out);
}
a:hover { color: var(--brand-strong); }

::selection { background: var(--stone); color: var(--ink); }

/* ---------- Fokus & Tastatur ---------- */

:focus-visible { outline: var(--focus-ring); outline-offset: 2px; border-radius: 2px; }
/* Auf dunklen Flächen reicht Markenrot nicht (2,55:1) — heller Ring (≥ 3:1) */
.section-dark :focus-visible, .site-footer :focus-visible, .trust-strip :focus-visible {
  outline-color: var(--on-dark);
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--duration-quick) var(--ease-out);
}
.skip-link:focus-visible { top: 1rem; color: var(--on-dark); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- Layout-Primitive ---------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--text { max-width: calc(var(--container-text) + 2 * var(--container-pad)); }

.section { padding-block: var(--space-section); }
.section--sm { padding-block: var(--space-section-sm); }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }

.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark :is(h1, h2, h3, h4) { color: var(--on-dark); }
.section-dark p { line-height: calc(var(--leading-body) + 0.07); letter-spacing: 0.01em; }
.section-dark a { color: var(--brand-on-dark); }
.section-dark .overline::before { background: var(--brand-on-dark); }
.section-dark a:hover { color: var(--on-dark); }
.section-dark .text-muted { color: var(--on-dark-muted); }

.section-head { margin-bottom: var(--space-7); max-width: 52rem; }
.section-head .overline { margin-bottom: var(--space-4); }
.section-head p { margin-top: var(--space-4); }

.grid { display: grid; gap: var(--space-6); }
/* Grid-Kinder dürfen unter ihre Min-Content-Breite schrumpfen, damit lange
   deutsche Komposita (z. B. „Spendenbescheinigung") umbrechen statt überlaufen */
.grid > *, .split > *, .hero__grid > *, .impact5__grid > * { min-width: 0; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
.grid--halves { grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); align-items: center; }

.flow > * + * { margin-top: var(--space-4); }
.flow-lg > * + * { margin-top: var(--space-6); }

hr.rule { border: 0; border-top: 1px solid var(--line); margin-block: var(--space-7); }

/* ---------- Reveal-Animationen (dezent, abschaltbar) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--duration-reveal) var(--ease-out),
    transform var(--duration-reveal) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { transition-delay: calc(var(--stagger-i, 0) * 60ms); }

.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .site-footer, .trust-strip, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Muted-Text auf Sand-Flächen braucht einen dunkleren Ton (Kontrast ≥ 4.5:1) */
.section--sand { --text-muted: #605b56; }


/* ============================================================
   Komponenten — „Editorial Humanitarian Premium"
   Feine Linien, kaum Schatten, Radien 4–12 px, keine Pill-Buttons.
   Jede Klasse entspricht einem WordPress-Block/Pattern
   (Zuordnung: docs/wordpress-blueprint.md).
   ============================================================ */

/* ---------- Buttons (Radius 6 px, Hover max. 2 px Bewegung) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--touch-target);
  padding: 0.6rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  hyphens: manual; /* Buttons nie automatisch trennen */
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--duration-quick) var(--ease-out),
    border-color var(--duration-quick) var(--ease-out),
    color var(--duration-quick) var(--ease-out),
    transform var(--duration-quick) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--ink); color: var(--on-dark); }
.btn--primary:hover { background: #2c2c2c; color: var(--on-dark); }

.btn--accent { background: var(--brand-strong); color: #fff; }
.btn--accent:hover { background: var(--brand); color: #fff; }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--paper); }

.section-dark .btn--ghost { border-color: var(--on-dark-line); color: var(--on-dark); }
.section-dark .btn--ghost:hover { border-color: var(--on-dark); background: rgb(242 244 239 / 0.07); color: var(--on-dark); }
.section-dark .btn--primary { background: var(--on-dark); color: var(--ink); }
.section-dark .btn--primary:hover { background: #fff; color: var(--brand-strong); }

.btn .btn__arrow { transition: transform var(--duration-quick) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(2px); }

/* Textlink mit Pfeilbewegung */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}
.arrow-link span[aria-hidden] { transition: transform var(--duration-quick) var(--ease-out); }
.arrow-link:hover span[aria-hidden] { transform: translateX(2px); }

/* ---------- Trust-Strip (über dem Header) ---------- */

.trust-strip {
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.45rem var(--container-pad);
}
.trust-strip strong { color: var(--on-dark); font-weight: 600; white-space: nowrap; }
.trust-strip__detail { white-space: nowrap; }
@media (max-width: 30rem) { .trust-strip__detail { display: none; } }
.trust-strip { border-bottom: 2px solid var(--brand); }

/* ---------- Header (Forest, sticky nach erstem Scrollbereich) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--duration-quick) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgb(22 22 22 / 0.10); }

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 4.25rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--brand); }
.brand__mark { width: 3rem; height: auto; flex: none; }
.brand__tile { background: var(--paper); border-radius: var(--radius-sm); padding: 0.4rem 0.5rem; display: inline-flex; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.1; letter-spacing: -0.01em; }
.brand__sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}
.site-footer .brand__sub { color: var(--on-dark-muted); }

.site-nav__list { display: flex; align-items: center; gap: clamp(0.1rem, 0.8vw, 0.75rem); list-style: none; padding: 0; margin: 0; max-width: none; }
/* Flex-Kinder dürfen nie schrumpfen — sonst quetscht sich der CTA mehrzeilig. */
.site-nav__list li { flex: none; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  padding: 0.4rem 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}
.site-nav__link:hover { color: var(--brand); background: var(--ivory); }
.site-nav__link[aria-current="page"] { color: var(--brand-strong); box-shadow: inset 0 -2px 0 var(--brand); }

.site-nav__cta { margin-left: 0.5rem; background: var(--brand); color: #fff; white-space: nowrap; }
.site-nav__cta:hover { background: var(--brand-strong); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--touch-target);
  height: var(--touch-target);
  padding: 0.6rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}
.nav-toggle__line { display: block; height: 2px; background: var(--ink); border-radius: 1px; transition: transform var(--duration-quick) var(--ease-out), opacity var(--duration-quick) var(--ease-out); }

@media (max-width: 71rem) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 24px rgb(22 22 22 / 0.15);
    padding: var(--space-4) var(--container-pad) var(--space-6);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link { width: 100%; padding: 0.85rem 0.75rem; font-size: 1.05rem; }
  .site-nav__cta { margin: var(--space-4) 0 0; width: 100%; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Editorial Hero ---------- */

.hero { padding-block: clamp(3rem, 2rem + 3.5vw, 5.5rem) var(--space-section); }
.hero__grid { display: grid; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 6.5fr 5.5fr; } }
.hero h1 { margin-block: var(--space-4) var(--space-5); max-width: 17ch; }
.hero__sub { font-size: var(--text-lg); line-height: 1.55; max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero__trust { margin-top: var(--space-5); font-size: var(--text-sm); color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.hero__trust::before { content: ""; width: 1.25rem; height: 1px; background: var(--line-strong); }

/* ---------- Immersiver Vollbild-Hero (Startseite) ---------- */

.hero--immersive {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-height: clamp(34rem, 88svh, 50rem);
  padding-block: 0 var(--space-8);
  overflow: hidden;
}
.hero--immersive .hero__media { position: absolute; inset: 0; }
.hero--immersive .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 24%;
}
.hero--immersive .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgb(16 13 11 / 0.78) 0%,
      rgb(16 13 11 / 0.48) 42%,
      rgb(16 13 11 / 0.10) 78%,
      rgb(16 13 11 / 0.05) 100%
    ),
    linear-gradient(
      to top,
      rgb(16 13 11 / 0.85) 0%,
      rgb(16 13 11 / 0.42) 38%,
      rgb(16 13 11 / 0.10) 70%,
      rgb(16 13 11 / 0.22) 100%
    );
}
.hero--immersive .container { position: relative; z-index: 1; width: 100%; }
.hero--immersive h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin-block: var(--space-4) var(--space-5);
}
.hero--immersive .hero__sub { color: rgb(245 243 240 / 0.92); max-width: 52ch; }
.hero--immersive .hero__trust { color: var(--on-dark-muted); }
.hero--immersive .hero__trust::before { background: var(--on-dark-line); }
.hero__credit {
  position: absolute;
  right: var(--container-pad);
  bottom: var(--space-3);
  z-index: 1;
  margin: 0;
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  color: rgb(245 243 240 / 0.72);
  max-width: none;
}
@media (max-width: 40rem) {
  .hero--immersive { min-height: min(92svh, 44rem); }
  .hero__credit { position: static; margin-top: var(--space-4); padding-inline: var(--container-pad); }
  .hero--immersive .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Redaktionelle Faktenzeile (nur bestätigte Angaben) ---------- */

.fact-band { background: var(--paper); border-bottom: 1px solid var(--line); }
.fact-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: 0 var(--space-6);
  max-width: none;
  padding: 0;
  margin: 0;
  list-style: none;
}
.fact-band__grid > li { display: flex; flex-direction: column; gap: 0.2rem; padding-block: var(--space-5); }
.fact-band strong { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.fact-band span { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); }
@media (min-width: 56rem) {
  .fact-band__grid > li + li { border-left: 1px solid var(--line); padding-left: var(--space-6); }
}

/* Dokumentarische Bildfläche mit Bildzeile */
.doc-media { position: relative; }
.doc-media__frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
/* Unter Desktopbreite kippt 4:5 in leere Riesenfläche — flacher beschneiden */
@media (max-width: 60rem) { .doc-media__frame { aspect-ratio: 3 / 2; } }
.doc-media__frame--wide { aspect-ratio: 3 / 2; }
.doc-media__frame img, .doc-media__frame svg { width: 100%; height: 100%; object-fit: cover; }
.doc-media__caption {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: 0.5rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
  max-width: none;
}

/* neutraler Platzhalter, ehrlich beschriftet — nie als Projektfoto tarnen */
.media-pending {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, var(--sand) 0%, #efe9dc 55%, var(--stone) 140%);
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-5);
}

/* ---------- 5-Euro-Impact (redaktionell, keine aggressive Spendenbox) ---------- */

.impact5 { background: var(--ink); color: var(--on-dark); }
.impact5__grid { display: grid; gap: clamp(1.5rem, 4vw, 5rem); align-items: center; padding-block: clamp(3.5rem, 4rem + 2vw, 6.5rem); }
@media (min-width: 56rem) { .impact5__grid { grid-template-columns: auto 1fr; } }
.impact5__figure {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 500;
  font-size: var(--text-impact);
  line-height: 0.95;
  color: var(--brand-on-dark);
  white-space: nowrap;
}
.impact5__figure small { display: block; font-family: var(--font-display); font-style: normal; font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--on-dark-muted); margin-top: 0.75rem; white-space: normal; }
.impact5 h2 { max-width: 24ch; }
.impact5__body p { margin-top: var(--space-4); }
.impact5__note { font-size: var(--text-sm); color: var(--on-dark-muted); }

/* Quellen-Kennzeichnung */
.source-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  max-width: none;
}
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--ivory);
}
.source-badge--original { color: var(--success); border-color: var(--success); }
.source-badge--extern { color: #6d6046; border-color: #6d6046; }
.source-badge--illustration { color: var(--warning); border-color: var(--warning); }
a.external-link::after { content: " ↗"; font-size: 0.85em; }

/* ---------- Karten (editorial, feine Linien) ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration-quick) var(--ease-out), transform var(--duration-quick) var(--ease-out), box-shadow var(--duration-quick) var(--ease-out);
}
.card:hover, .card:focus-within { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card__media { aspect-ratio: 3 / 2; background: var(--sand); border-bottom: 1px solid var(--line); }
.card__media img, .card__media svg { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: var(--text-xs); color: var(--text-muted); max-width: none; }
.card__title { font-size: var(--text-lg); }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--brand); }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__excerpt { font-size: var(--text-sm); flex: 1; }
.card__link { font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); color: var(--ink); }
.card__link span[aria-hidden] { color: var(--brand); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.12em 0.6em;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--sand);
  color: var(--ink);
}
.badge::before { content: ""; width: 0.45em; height: 0.45em; border-radius: 50%; background: currentColor; }
.badge--aktiv { background: #e2efe7; color: var(--success); }
.badge--geplant { background: var(--sand); color: #6d6046; }
.badge--laufend { background: var(--brand-tint); color: var(--brand-strong); }
.badge--abgeschlossen { background: #e6e6ec; color: #4c4c66; }
.badge--pausiert { background: #f0e5d6; color: #815318; }
.badge--pruefung { background: #f6ede8; color: var(--brand-strong); }

/* ---------- Hilfe-Liste (Linien statt Karten) ---------- */

.help-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 0 var(--space-8); max-width: none; }
.help-list li { position: relative; border-top: 1px solid var(--line-strong); }
.help-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  text-decoration: none;
  color: var(--ink);
}
.help-list strong { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; }
.help-list p { font-size: var(--text-sm); color: var(--text-muted); margin: 0.15rem 0 0; }
.help-list .help-list__arrow { color: var(--brand); font-weight: 700; flex: none; transition: transform var(--duration-quick) var(--ease-out); }
.help-list a:hover strong { color: var(--brand-strong); }
.help-list a:hover .help-list__arrow { transform: translateX(3px); }

/* ---------- Schritt-Liste ---------- */

.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: var(--space-5); max-width: 40rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.5rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -0.15rem;
  width: 2.4rem; height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}
.steps li + li::after { content: ""; position: absolute; left: 1.2rem; top: -1.35rem; height: 1.1rem; width: 1.5px; background: var(--line-strong); }
.steps h3 { font-size: var(--text-lg); margin-bottom: 0.2em; }
.steps p { font-size: var(--text-sm); color: var(--text-muted); }

.section-dark .steps li::before { background: transparent; border-color: var(--on-dark-line); color: var(--on-dark); }
.section-dark .steps li + li::after { background: var(--on-dark-line); }
.section-dark .steps p { color: var(--on-dark-muted); }

/* ---------- Text-Bild-Split ---------- */

.split { display: grid; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
@media (min-width: 60rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-left .split__media { order: -1; }
  .split--asym { grid-template-columns: 7fr 5fr; }
}

/* ---------- Baum-Auswahl (Plant Ceylon) ---------- */

.tree-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
.tree-list li {
  border-top: 1px solid var(--line);
  padding-block: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 26rem) { .tree-list { grid-template-columns: 1fr; } }

/* ---------- Proof-Modul ---------- */

.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 0 var(--space-7); max-width: none; }
.proof-item { border-top: 1px solid var(--line-strong); padding: var(--space-5) 0; }
.proof-item h3 { font-size: var(--text-base); margin-bottom: 0.35rem; }
.proof-item p { font-size: var(--text-sm); color: var(--text-muted); }
.proof-item .source-badge { margin-bottom: var(--space-3); background: transparent; }

/* ---------- Team ---------- */

.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.team-card__portrait {
  width: 4.25rem; height: 4.25rem;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}
.team-card__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--text-lg); }
.team-card__role { font-size: var(--text-sm); color: var(--text-muted); }

/* ---------- Donation Panel ---------- */

.donation-panel {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 38rem;
}
.donation-panel__label { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--brand); }
.donation-panel__title { font-size: var(--text-xl); margin-top: 0.35rem; }
.donation-panel dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.45rem 1.25rem; margin-block: var(--space-4); font-size: 1rem; }
.donation-panel dt { color: var(--text-muted); }
.donation-panel dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.donation-panel .iban { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.donation-panel__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Betragsauswahl (informativ für Überweisung, keine Zahlungsabwicklung) */
.amount-picker { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block: var(--space-4); }
.amount-picker button {
  min-height: var(--touch-target);
  min-width: 4rem;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ivory);
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--duration-quick) var(--ease-out), background var(--duration-quick) var(--ease-out);
}
.amount-picker button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong); }
.amount-picker button:hover { border-color: var(--brand); }

.copy-btn { position: relative; }
.copy-btn__feedback {
  position: absolute;
  inset: auto auto calc(100% + 0.5rem) 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.7rem;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-xs);
  font-size: var(--text-xs);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-quick) var(--ease-out);
}
.copy-btn.is-copied .copy-btn__feedback { opacity: 1; }

/* Girocode (EPC-QR) — Bankdaten mit bisheriger Vereinswebsite abgeglichen */
.girocode { display: grid; gap: 0.5rem; max-width: 11rem; }
.girocode img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.girocode figcaption { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.4; }

/* (Altlast) Platzhalterfläche, falls ein QR-Code wieder entfernt werden muss */
.qr-slot {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  aspect-ratio: 1;
  max-width: 11rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-align: center;
}

/* ---------- Formulare ---------- */

.form { display: grid; gap: var(--space-5); max-width: 38rem; }
.form__row { display: grid; gap: var(--space-5); }
@media (min-width: 40rem) { .form__row--halves { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.field .field__hint { font-size: var(--text-xs); color: var(--text-muted); }
.field__optional { font-weight: 400; color: var(--text-muted); }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: var(--touch-target);
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  transition: border-color var(--duration-quick) var(--ease-out), box-shadow var(--duration-quick) var(--ease-out);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand-strong); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--stone);
}
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error); }
.field__error { display: none; font-size: var(--text-sm); font-weight: 600; color: var(--error); }
.field.has-error .field__error { display: block; }

.checkbox-field { display: flex; gap: 0.75rem; align-items: flex-start; max-width: var(--container-text); }
.checkbox-field input { width: 1.35rem; height: 1.35rem; margin-top: 0.2rem; flex: none; accent-color: var(--brand); }
.checkbox-field label { font-size: var(--text-sm); font-weight: 400; }
.checkbox-field.has-error label { color: var(--error); }

.form__status { display: none; padding: var(--space-4); border-radius: var(--radius-sm); font-weight: 600; max-width: none; }
.form__status.is-success { display: block; background: #e2efe7; color: var(--success); }
.form__status.is-error { display: block; background: #f7e7e5; color: var(--error); }

.form .hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); max-width: var(--container-text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  min-height: var(--touch-target);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; color: var(--brand); transition: transform var(--duration-quick) var(--ease-out); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 0 var(--space-5); }

/* ---------- CTA-Sektion ---------- */

.cta-final .container { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 56rem) { .cta-final .container { grid-template-columns: 1.4fr 1fr; } }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Footer (Forest) ---------- */

.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: var(--text-sm); }
.site-footer a { color: #d8d3cd; }
.site-footer a:hover { color: #fff; }
.site-footer__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 1.4rem + 6vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--on-dark);
  padding-top: var(--space-8);
  margin: 0;
  max-width: none;
  border-bottom: 1px solid var(--on-dark-line);
  padding-bottom: var(--space-6);
}
.site-footer__grid { display: grid; gap: var(--space-7); padding-block: var(--space-7) var(--space-6); }
@media (min-width: 56rem) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h2 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: var(--space-4);
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__brand .brand__name { color: #fff; }
.site-footer__register { margin-top: var(--space-4); color: var(--on-dark-muted); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  padding-block: var(--space-5);
  border-top: 1px solid var(--on-dark-line);
  color: var(--on-dark-muted);
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { padding-top: var(--space-5); font-size: var(--text-sm); color: var(--text-muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; max-width: none; }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.35rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Seitenkopf ---------- */

.page-head { padding-block: var(--space-6) 0; }
.page-head h1 { margin-block: var(--space-3) var(--space-4); max-width: 22ch; }
.page-head .lead { max-width: 56ch; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.page-head--wide h1 { max-width: 28ch; }
.page-head--wide .lead { max-width: 60ch; }

/* ---------- Leerzustand / Fehlerzustand / Ladezustand ---------- */

.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: clamp(2rem, 4vw, 3.5rem);
  max-width: 44rem;
}
.empty-state :is(h2, h3) { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.empty-state p { color: var(--text-muted); }
.empty-state .btn { margin-top: var(--space-5); }

.error-state { border-left: 3px solid var(--error); background: #f7e7e5; color: var(--error); padding: var(--space-4) var(--space-5); border-radius: var(--radius-xs); font-weight: 600; max-width: var(--container-text); }
.loading-state { color: var(--text-muted); font-size: var(--text-sm); display: inline-flex; align-items: center; gap: 0.5rem; }
.loading-state::before { content: ""; width: 1em; height: 1em; border: 2px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; animation: lc-spin 0.9s linear infinite; }
@keyframes lc-spin { to { transform: rotate(360deg); } }

/* ---------- Infokarte / Zwei-Klick-Karte ---------- */

.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); }
.info-card :is(h2, h3) { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.info-card address { font-style: normal; line-height: 1.7; }

.map-consent {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-5);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.map-consent p { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-4); }

/* ---------- Projekt-Detail ---------- */

.project-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: none;
}
.project-facts > div { background: var(--paper); padding: var(--space-4); }
.project-facts dt { font-family: var(--font-display); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.project-facts dd { margin: 0.25rem 0 0; font-weight: 600; color: var(--ink); }

.progress { --progress: 0%; height: 0.5rem; border-radius: var(--radius-xs); background: var(--sand); border: 1px solid var(--line); overflow: hidden; }
.progress__bar { width: var(--progress); height: 100%; background: var(--brand); transition: width 900ms var(--ease-out); }

/* ---------- Update-Karte / Dokumente ---------- */

.update-card { border-left: 2px solid var(--line-strong); padding-left: var(--space-4); }
.update-card time { font-size: var(--text-xs); color: var(--text-muted); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; }

.doc-list { list-style: none; padding: 0; display: grid; gap: var(--space-2); max-width: var(--container-text); }
.doc-list a {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  text-decoration: none;
  font-weight: 600;
}
.doc-list a:hover { border-color: var(--brand); }

/* ---------- 404 / Suche / Danke ---------- */
.error-page { min-height: 55vh; display: grid; align-items: center; }
.search-form { display: flex; gap: var(--space-2); max-width: 34rem; }
.search-form input { flex: 1; }
.search-results { list-style: none; padding: 0; display: grid; gap: var(--space-3); max-width: var(--container-text); }
.search-results a { font-family: var(--font-display); font-weight: 700; }


/* ---------- Galerie (Archivbilder) ---------- */
.gallery { list-style: none; padding: 0; display: grid; gap: var(--space-5); max-width: none; }
.gallery__item { max-width: none; }
@media (min-width: 48rem) { .gallery { grid-template-columns: 4fr 3fr 3fr; } }
.gallery { align-items: start; }
.gallery figure { display: grid; gap: var(--space-3); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); background: var(--sand); }
.gallery figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-muted); }

/* ---------- Spendenkonto im Footer ---------- */
.site-footer__bank { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--on-dark-line); }
.site-footer__bank p { line-height: 1.7; }
.site-footer__bank .iban { color: var(--on-dark); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
