/* ==========================================================================
   Alltagsheld:innen – Design-System (Web)
   Gemessen an alltagsheldinnen.org (Startseite + Kampagnenseite
   /heldinnen-gutscheine/), Stand November 2026.
   Schriften: Barlow Condensed (Ersatz für die DIN-artige Condensed-Headline-
   schrift der Website) + Inter (Fließtext). Beide via Google Fonts:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap" rel="stylesheet">
   ========================================================================== */

:root {
  /* --- Markenfarben (fix, in beiden Modi gleich) --- */
  --ah-red: #C10708;        /* Primärrot Web: CTAs, Headlines, Links, Logo-Box */
  --ah-red-bar: #C92728;    /* Navigationsleiste */
  --ah-red-logo: #C22026;   /* Rot der Logo-Masterdateien (Print/CMYK-Ableitung) */
  --ah-red-dark: #9A0506;   /* Hover/Active für rote Buttons */
  --ah-gold: #F0B84A;       /* Hand im Logo, Spenden-Button-Kreis, Akzente */
  --ah-sand: #F6D696;       /* Karten-Hintergrund News/Teaser */
  --ah-cream: #FEFAF2;      /* Abschnitts-Hintergrund */
  --ah-pink: #FFD8E9;       /* Kampagnen-Panels, Zitatboxen */
  --ah-mauve: #E3ACD6;      /* Kampagnen-Bänder, Spendenformular */
  --ah-ink: #333333;        /* Text */
  --ah-ink-soft: #5A5552;   /* Sekundärtext, Bildnachweise */
  --ah-white: #FFFFFF;

  /* --- Semantische Tokens (werden im Dark Mode umgeschaltet) --- */
  --bg: var(--ah-white);
  --bg-section: var(--ah-cream);
  --surface-card: var(--ah-sand);
  --surface-campaign: var(--ah-pink);
  --surface-band: var(--ah-mauve);
  --text: var(--ah-ink);
  --text-soft: var(--ah-ink-soft);
  --text-accent: var(--ah-red);       /* rote Headlines/Links */
  --on-red: var(--ah-white);
  --border-strong: var(--ah-ink);

  /* --- Typografie --- */
  --font-display: "Barlow Condensed", "DIN Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --lh-body: 1.75;   /* die Website setzt Fließtext sehr luftig */

  /* --- Raum & Form --- */
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem;
  --space-5: 4rem;  --space-6: 6.5rem;
  --container: 1200px;
  --radius-panel: 18px;   /* Kampagnen-Panels, Zitatboxen */
  --radius-btn: 2px;      /* Buttons sind nahezu eckig */
  --radius-card: 0;       /* News-Karten eckig */
  --shadow-card: 0 2px 6px rgba(51, 51, 51, .12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1E1918;
    --bg-section: #262020;
    --surface-card: #3A3022;
    --surface-campaign: #3A2530;
    --surface-band: #4A2E45;
    --text: #F4EDE6;
    --text-soft: #C9BEB6;
    --text-accent: #FF6B5E;   /* aufgehelltes Rot für Lesbarkeit auf dunkel */
    --border-strong: #F4EDE6;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1E1918; --bg-section: #262020; --surface-card: #3A3022;
  --surface-campaign: #3A2530; --surface-band: #4A2E45;
  --text: #F4EDE6; --text-soft: #C9BEB6; --text-accent: #FF6B5E; --border-strong: #F4EDE6;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-accent); }
:focus-visible { outline: 3px solid var(--ah-gold); outline-offset: 3px; }
.ah-container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

h1, h2, h3, h4, .ah-display {
  font-family: var(--font-display); font-weight: 600; line-height: 1.1;
  margin: 0 0 .5em; text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* Hero-Claim: rot, regular, zentriert (Startseite) */
.ah-claim {
  font-family: var(--font-display); font-weight: 400; font-size: var(--fs-hero);
  color: var(--text-accent); text-align: center; line-height: 1.35; margin: 0;
}
/* Abschnittstitel: Versal, sehr weit gesperrt, dunkel (z. B. EINBLICKE & AKTUELLES) */
.ah-section-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .12em; font-size: var(--fs-h2); color: var(--text);
  text-align: center; margin: 0 0 var(--space-4);
}
/* Zweizeilige Kampagnen-Headline: Zeile 1 dunkel, Zeile 2 rot, fett */
.ah-headline-duo { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1.05; margin: 0 0 .5em; }
.ah-headline-duo span { display: block; }
.ah-headline-duo span + span { color: var(--text-accent); }
.ah-red-heading { color: var(--text-accent); font-weight: 700; }

/* ---------- Header: rote Leiste + überhängende Logo-Box ---------- */
.ah-header { position: relative; background: var(--ah-red-bar); color: var(--on-red); }
.ah-header__inner { display: flex; align-items: center; gap: var(--space-3); min-height: 104px; }
.ah-header__logo {
  align-self: flex-start; flex: 0 0 auto; width: clamp(150px, 18vw, 256px);
  margin-bottom: -180px; /* Logo-Box hängt über die Leiste nach unten */
  position: relative; z-index: 2; text-decoration: none;
}
.ah-header__logo .box { background: var(--ah-red); display: block; padding: 34% 5% 4%; } /* fast quadratische Box, Wortmarke unten – wie auf der Website */
.ah-header__logo .claim {
  display: block; font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: .95rem; line-height: 1.3; color: var(--text-accent);
  padding-top: .5rem; background: var(--bg);
}
.ah-nav { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.75rem; }
.ah-nav a {
  color: var(--on-red); text-decoration: none; font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .01em; padding: .5rem 0;
}
.ah-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.ah-donate-circle {
  flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; background: var(--ah-gold);
  display: grid; place-items: center; color: var(--ah-ink); text-decoration: none; /* Weiß auf Gold wäre zu kontrastarm */
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-transform: uppercase;
}
@media (max-width: 860px) {
  .ah-header__inner { flex-wrap: wrap; min-height: 0; padding-block: .75rem; }
  .ah-header__logo { margin-bottom: 0; width: 160px; }
  .ah-header__logo .claim { display: none; }
  .ah-header__logo .box { padding: 4%; }
  .ah-nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: .25rem 1.25rem; }
  .ah-donate-circle { margin-left: auto; width: 64px; height: 64px; font-size: .85rem; }
}

/* ---------- Abschnitte ---------- */
.ah-section { padding-block: var(--space-6); }
.ah-section--cream { background: var(--bg-section); }
.ah-section--band { background: var(--surface-band); padding-block: var(--space-3); }

/* Hände-Trenner zwischen Abschnitten (Signatur-Element der Website) */
.ah-divider { display: flex; justify-content: center; padding-block: var(--space-4); }
.ah-divider img, .ah-divider svg { width: 72px; height: auto; transform: rotate(-8deg); }

/* ---------- News-/Teaser-Karten ---------- */
.ah-cards { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ah-card {
  background: var(--surface-card); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.ah-card__media { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.ah-card__body { padding: 2.5rem 2rem 2rem; display: flex; flex-direction: column; flex: 1; }
.ah-card__title {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  color: var(--text-accent); font-size: 1.5rem; line-height: 1.25; margin: 0 0 1rem;
}
.ah-card__text { font-size: .95rem; line-height: 2; margin: 0 0 1.5rem; }
.ah-readmore {
  margin-top: auto; font-size: .85rem; text-transform: uppercase; color: var(--text-accent);
  text-decoration: none; font-weight: 500;
}
.ah-readmore::after { content: " »"; }
.ah-readmore:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.ah-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--ah-red); color: var(--ah-white); border: 0; border-radius: var(--radius-btn);
  font: 600 1.15rem/1.2 var(--font-body); padding: 1.05rem 2rem; text-decoration: none; cursor: pointer;
}
.ah-btn:hover { background: var(--ah-red-dark); }
.ah-btn--block { display: flex; width: 100%; }
.ah-btn--outline {
  background: transparent; color: var(--text); border: 1.5px solid var(--border-strong);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
}
.ah-btn--outline:hover, .ah-btn--outline[aria-pressed="true"] { background: var(--ah-white); color: var(--ah-ink); }

/* ---------- Kampagnen-Panel (rosa, abgerundet, über Foto) ---------- */
.ah-hero-photo { position: relative; min-height: 640px; background: #555 center / cover no-repeat; display: flex; align-items: flex-end; padding: var(--space-4) 0; }
.ah-panel {
  background: var(--surface-campaign); border-radius: var(--radius-panel);
  padding: clamp(1.5rem, 3vw, 2.5rem); max-width: 40rem;
}
.ah-panel p { margin: 0 0 1.25rem; }
.ah-photo-credit {
  position: absolute; right: 1rem; bottom: 1rem; background: rgba(255,255,255,.85); color: var(--ah-ink);
  font-size: .78rem; padding: .2rem .6rem; border-radius: 4px;
}

/* ---------- Spendenbox (mauve) ---------- */
.ah-donate-box {
  background: var(--surface-band); border-radius: var(--radius-panel); padding: 1.5rem; max-width: 26rem;
  display: grid; gap: .75rem; color: var(--ah-ink);
}
.ah-donate-box h3 { text-align: center; margin: 0; font-weight: 700; }
.ah-donate-box .row { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.ah-donate-box .ah-btn--outline { color: var(--ah-ink); border-color: var(--ah-ink); }
.ah-donate-box a { color: var(--ah-ink); text-align: center; font-size: .95rem; }

/* ---------- Stempel (Wirkungszahl, leicht gedreht) ---------- */
.ah-stamp {
  display: inline-block; transform: rotate(-1.5deg); border: 3px solid var(--ah-ink);
  outline: 1.5px solid var(--ah-ink); outline-offset: 4px; padding: .9rem 2rem;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.45rem; line-height: 1.25; color: var(--ah-ink); text-align: center;
}

/* ---------- Zitat ---------- */
.ah-quote {
  background: var(--surface-campaign); border-radius: var(--radius-panel); padding: 2rem 2.25rem; margin: 0;
}
.ah-quote p { font-style: italic; font-size: 1.4rem; line-height: 1.55; margin: 0 0 .75rem; }
.ah-quote cite { font-style: normal; font-size: .9rem; color: var(--text-soft); }
.ah-quote--plain { background: none; padding: 0; }

/* ---------- Kennzahlen ---------- */
.ah-stats { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: center; }
.ah-stat__label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.1rem; }
.ah-stat__value { font-family: var(--font-display); font-weight: 700; color: var(--text-accent); font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; margin: .25rem 0 .75rem; }
.ah-stat__text { font-size: .95rem; margin: 0; }

/* ---------- Footer ---------- */
.ah-footer { background: var(--bg-section); padding-block: var(--space-5) var(--space-4); font-size: .95rem; }
.ah-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ah-footer h4 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; }
.ah-footer ul { list-style: none; padding: 0; margin: 0; }
.ah-footer a { color: var(--text); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
