/* Poppins, selbst gehostet – keine Verbindung zu Google (DSGVO) */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/poppins-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 600; font-display: swap;
  src: url('../fonts/poppins-latin-600-italic.woff2') format('woff2'); }

/* ==========================================================================
   Wegweiser mit Herz e.V. — Stylesheet
   Aufbau: 1 Fundament · 2 Tokens · 3 Typografie · 4 Layout · 5 Komponenten
           6 Abschnitte · 7 Responsive · 8 Bewegung
   Alle Größen in rem. Die Wurzel-Schriftgröße skaliert mit der Viewportbreite.
   ========================================================================== */

/* 1 — FUNDAMENT: fluides rem-System ======================================= */

/* Über 1440px wächst die Wurzelgröße weiter mit (16px → 21px bei 2113px),
   damit die Seite große Bildschirme ausfüllt statt schmal stehen zu bleiben.
   Weil alles in rem gebaut ist, skalieren Schrift, Bilder, Abstände und
   Radien gemeinsam — das Layout bleibt in denselben Proportionen. */
:root {
  --font-from: 16;
  --font-to: 21;
  --vw-from: calc(1440 / 100);
  --vw-to: calc(2113 / 100);
  --coefficient: calc((var(--font-to) - var(--font-from)) / (var(--vw-to) - var(--vw-from)));
  --base: calc((var(--font-from) - var(--vw-from) * var(--coefficient)) / 16);
}
html { font-size: calc(var(--base) * 1rem + var(--coefficient) * 1vw); }

@media (max-width: 1440px) { :root { --font-from: 8.52;  --font-to: 16;    --vw-from: calc(767 / 100); --vw-to: calc(1440 / 100); } }
@media (max-width: 767px)  { :root { --font-from: 20.43; --font-to: 20.43; --vw-from: calc(479 / 100); --vw-to: calc(767 / 100);  } }
@media (max-width: 479px)  { :root { --font-from: 16;    --font-to: 20.43; --vw-from: calc(375 / 100); --vw-to: calc(479 / 100);  } }
@media (max-width: 375px)  { :root { --font-from: 13.65; --font-to: 16;    --vw-from: calc(320 / 100); --vw-to: calc(375 / 100);  } }

/* 2 — TOKENS ============================================================== */

:root {
  /* Neutrale Flächen — tragen ~85 % der Seite */
  --white:        #FFFFFF;
  --paper:        #FBF7EE;
  --surface:      #F4F1E7;
  --line:         rgba(45, 62, 80, .12);

  /* Die eine dunkle Farbe */
  --ink:          #2D3E50;
  --ink-70:       rgba(45, 62, 80, .72);
  --ink-50:       rgba(45, 62, 80, .55);

  /* Kühler Akzent */
  --blue:         #6B90A3;
  --blue-deep:    #40657C;
  --blue-soft:    #E2EAEE;

  /* Warmer Akzent — ausschließlich Spenden. Schrift darauf immer --ink. */
  --accent:       #D3A574;
  --accent-hover: #C6935C;
  --accent-soft:  #F0DFC7;

  /* Die eine warme Fläche */
  --sand:         #F4E8D8;

  --focus:        #40657C;
  --error:        #C0392B;
  --success:      #2E7D5B;

  --r-lg: 1.5rem;
  --r-md: 1rem;
  --r-sm: .625rem;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(45,62,80,.04), 0 2px 8px rgba(45,62,80,.05);
  --shadow-md: 0 2px 4px rgba(45,62,80,.04), 0 12px 32px rgba(45,62,80,.08);
  --shadow-lg: 0 4px 8px rgba(45,62,80,.05), 0 24px 60px rgba(45,62,80,.12);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 3 — RESET & TYPOGRAFIE ================================================== */

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

html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.46;
  color: var(--ink-70);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

.h1        { font-size: 3.5rem;    line-height: 1.05; font-weight: 600; letter-spacing: -.015em; }
.h2        { font-size: 3rem;      line-height: 1.1;  font-weight: 600; letter-spacing: -.01em; }
.h2-small  { font-size: 2.25rem;   line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.h3        { font-size: 1.75rem;   line-height: 1.2;  font-weight: 600; }
.h5        { font-size: 1.25rem;   line-height: 1.3;  font-weight: 500; }
.h6        { font-size: 1.125rem;  line-height: 1.35; font-weight: 500; }

.p1 { font-size: 1.25rem;   line-height: 1.4;  font-weight: 300; }
.p2 { font-size: 1.125rem;  line-height: 1.45; font-weight: 300; }
.p3 { font-size: 1rem;      line-height: 1.46; font-weight: 300; }
.p4 { font-size: .9375rem;  line-height: 1.46; font-weight: 300; }
.p5 { font-size: .875rem;   line-height: 1.4;  font-weight: 300; }
.p6 { font-size: .8125rem;  line-height: 1.4;  font-weight: 400; }

.caption {
  font-size: .75rem; line-height: 1.2; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}

.text-ink   { color: var(--ink); }
.text-muted { color: var(--ink-70); }
.text-meta  { color: var(--ink-50); }
.w500 { font-weight: 500; }
.w600 { font-weight: 600; }

/* Textbreiten */
.mw-34 { max-width: 34ch; }
.mw-46 { max-width: 46ch; }
.mw-56 { max-width: 56ch; }
.mw-65 { max-width: 65ch; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Sprunglink für Tastaturnutzer */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--white); color: var(--ink);
  padding: .75rem 1.25rem; border-radius: var(--r-pill);
  font-size: .9375rem; font-weight: 500; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* 4 — LAYOUT ============================================================== */

.padding-global { padding-left: 2.5rem; padding-right: 2.5rem; }
.container { width: 100%; max-width: 82rem; margin-inline: auto; }
.section { padding-top: 3rem; padding-bottom: 3rem; }
.section--tight { padding-top: 2.25rem; padding-bottom: 2.25rem; }

.bg-white   { background: var(--white); }
.bg-paper   { background: var(--paper); }
.bg-sand    { background: var(--sand); }
.bg-ink     { background: var(--ink); color: rgba(255,255,255,.75); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4, .bg-ink h5, .bg-ink h6 { color: var(--white); }

.mb-05 { margin-bottom: .5rem; }
.mb-1  { margin-bottom: 1rem; }
.mb-125{ margin-bottom: 1.25rem; }
.mb-15 { margin-bottom: 1.5rem; }
.mb-2  { margin-bottom: 2rem; }
.mb-325{ margin-bottom: 2rem; }
.mb-4  { margin-bottom: 4rem; }
.mb-5  { margin-bottom: 5rem; }

.stack-05 > * + * { margin-top: .5rem; }
.stack-1  > * + * { margin-top: 1rem; }
.stack-125> * + * { margin-top: 1.25rem; }
.stack-15 > * + * { margin-top: 1.5rem; }
.stack-2  > * + * { margin-top: 2rem; }

.center { text-align: center; }
.center-x { margin-inline: auto; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 5 — KOMPONENTEN ========================================================= */

/* 5.1 Section-Tag */
.section-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--blue-deep);
}
.section-tag__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.section-tag--accent { color: var(--accent-hover); }
.section-tag--white  { color: rgba(255,255,255,.9); }

/* 5.2 Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: inherit; font-size: .9375rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; }

.btn--primary   { background: var(--blue-deep); color: var(--white); }
.btn--primary:hover { background: var(--ink); }

/* Spendenfarbe: Schrift IMMER --ink (Weiß auf #D3A574 wäre nur 2,2:1) */
.btn--donate    { background: var(--accent); color: var(--ink); }
.btn--donate:hover { background: var(--accent-hover); }

.btn--onphoto   { background: var(--white); color: var(--ink); }
.btn--onphoto:hover { background: var(--paper); }

.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); border-color: var(--white); }

.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--ink); background: rgba(45,62,80,.03); }

.textlink {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--blue-deep); font-size: .9375rem; font-weight: 500;
  text-decoration: none;
}
.textlink svg { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.textlink:hover { text-decoration: underline; }
.textlink:hover svg { transform: translateX(3px); }

/* 5.3 Glass-Card — nur auf Fotos */
.glass {
  position: relative;
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: var(--r-md);
  overflow: hidden;
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* 5.4 Bildmaske — jedes Foto sitzt hier drin */
.img-mask {
  position: relative; overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface);
}
.img-mask::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(270deg, rgba(107,144,163,.15) 0%, rgba(211,165,116,.15) 100%);
}
.img-mask img { width: 100%; height: 100%; object-fit: cover; }
.ar-4-3  { aspect-ratio: 4 / 3; }
.ar-3-2  { aspect-ratio: 3 / 2; }
.ar-16-10{ aspect-ratio: 16 / 10; }
.ar-16-9 { aspect-ratio: 16 / 9; }
.ar-1-1  { aspect-ratio: 1 / 1; }

/* 5.5 Karten */
/* Bildblock statt Karte: kein Rahmen, kein Kasten, kein Schatten.
   Das Bild trägt, Überschrift und Text stehen darunter auf dem Hintergrund. */
.card {
  display: flex; flex-direction: column;
  background: transparent; border: 0; box-shadow: none;
  text-decoration: none;
}
.card__body { padding: 1.25rem 0 0; }
.card .img-mask { border-radius: var(--r-md); }
.img-mask img { transition: transform .7s var(--ease); }
.card:hover .img-mask img { transform: scale(1.035); }

/* 5.6 Meta-Chips und Badges */
.chip {
  display: inline-flex; align-items: center;
  padding: .3125rem .625rem; border-radius: var(--r-pill);
  background: var(--blue-soft); color: var(--ink);
  font-size: .75rem; font-weight: 500; letter-spacing: .02em;
}
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.badge-on-photo {
  position: absolute; top: .875rem; left: .875rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .375rem .75rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); font-size: .75rem; font-weight: 500;
}

/* 5.7 Icon-Felder */
.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: var(--r-sm); flex: none;
  background: var(--blue-soft); color: var(--blue-deep);
}
.icon-box svg { width: 1.375rem; height: 1.375rem; }
.icon-box--accent { background: var(--accent-soft); color: var(--accent-hover); }

/* 5.8 Häkchenliste */
.checklist li { display: flex; align-items: flex-start; gap: .75rem; }
.checklist svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--blue-deep); margin-top: .1rem; }

/* 5.9 Formular */
.field { display: block; }
.field__label {
  display: block; margin-bottom: .5rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-50);
}
.field__input,
.field__textarea {
  width: 100%; padding: .875rem 1rem;
  font-family: inherit; font-size: .9375rem; font-weight: 300; line-height: 1.4;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(45,62,80,.18); border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field__textarea { min-height: 8.5rem; resize: vertical; }
.field__input::placeholder, .field__textarea::placeholder { color: var(--ink-50); }
.field__input:focus, .field__textarea:focus {
  outline: none; border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(64,101,124,.15);
}
.field[data-invalid="true"] .field__input,
.field[data-invalid="true"] .field__textarea { border-color: var(--error); }
.field__error { display: none; margin-top: .375rem; font-size: .8125rem; color: var(--error); }
.field[data-invalid="true"] .field__error { display: block; }

.consent { display: flex; align-items: flex-start; gap: .625rem; font-size: .8125rem; color: var(--ink-70); }
.consent input { margin-top: .2rem; width: 1rem; height: 1rem; accent-color: var(--blue-deep); flex: none; }

.form-status { display: none; padding: .875rem 1rem; border-radius: var(--r-sm); font-size: .9375rem; }
.form-status[data-state="ok"]   { display: block; background: rgba(46,125,91,.10); color: var(--success); }
.form-status[data-state="fail"] { display: block; background: rgba(192,57,43,.10); color: var(--error); }

/* Honeypot — für Menschen unsichtbar, für Bots sichtbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 5.10 Kopier-Zeile (IBAN) */
.copy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .875rem 1rem; border-radius: var(--r-sm);
  background: rgba(255,255,255,.06);
}
.copy-row__label { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.copy-row__value { font-size: .9375rem; font-weight: 500; color: var(--white); letter-spacing: .01em; }
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; flex: none;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-sm);
  background: transparent; color: rgba(255,255,255,.8); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.copy-btn:hover { background: rgba(255,255,255,.12); color: var(--white); }
.copy-btn svg { width: 1rem; height: 1rem; }
.copy-btn[data-copied="true"] { color: var(--accent); border-color: var(--accent); }

/* 6 — ABSCHNITTE ========================================================== */

/* 6.1 Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
  transition: background-color .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav__brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
/* Das Vereinslogo ist weiß auf transparent. Auf einer dunklen Kachel trägt es
   sowohl über dem Hero-Foto als auch auf der weißen Navigation. */
.nav__brand-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.875rem; height: 2.875rem; padding: .25rem;
  border-radius: .6875rem; background: var(--white);
  box-shadow: 0 1px 3px rgba(45,62,80,.12);
  transition: background-color .4s var(--ease);
}
.nav__brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav__brand-name { font-size: 1rem; font-weight: 600; color: var(--white); transition: color .4s var(--ease); }
.nav__brand-sub  { font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); transition: color .4s var(--ease); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-size: .9375rem; font-weight: 500; color: rgba(255,255,255,.92);
  text-decoration: none; transition: color .4s var(--ease), opacity .2s var(--ease);
}
.nav__link:hover { opacity: .7; }

.nav.is-scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(45,62,80,.06);
  padding-top: .875rem; padding-bottom: .875rem;
}
.nav.is-scrolled .nav__brand-name { color: var(--ink); }
.nav.is-scrolled .nav__brand-sub  { color: var(--ink-50); }
.nav.is-scrolled .nav__link       { color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: .75rem; }

.nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: var(--r-sm);
  background: rgba(255,255,255,.15); color: var(--white); cursor: pointer;
}
.nav.is-scrolled .nav__toggle { background: var(--surface); color: var(--ink); }
.nav__toggle svg { width: 1.25rem; height: 1.25rem; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  display: none; flex-direction: column; justify-content: center;
  padding: 6rem 2rem 2rem;
  background: var(--white);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  display: block; padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-size: 1.375rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.mobile-menu .btn { margin-top: 2rem; width: 100%; }
body.no-scroll { overflow: hidden; }

/* 6.2 Hero — randlos über die volle Bildschirmbreite und -höhe */
.hero { padding: 0; background: var(--white); }
.hero__frame {
  position: relative; overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;   /* zieht die Adressleiste mobiler Browser mit ein */
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* Zwei Ebenen: flächiger Schleier + Verlauf für die Lesbarkeit */
.hero__frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(45,62,80,.22);
}
.hero__frame::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top right,
    rgba(45,62,80,.72) 0%, rgba(45,62,80,.35) 42%, rgba(45,62,80,0) 70%);
}
.hero__content { padding: 0 0 3rem; color: rgba(255,255,255,.9); }
.hero__title { color: var(--white); max-width: 18ch; }
.hero__title em { font-style: italic; color: var(--accent-soft); }
.hero__sub { color: rgba(255,255,255,.88); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__content .stack-15 > .hero__actions { margin-top: 2.75rem; }
.hero__title { line-height: 1.12; padding-bottom: .06em; }

.hero__bar {
  margin: 0 0 3rem;
  padding: 1.25rem 1.75rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.hero__stat { display: flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.85); }
.hero__stat svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--white); }
.hero__stat-text { font-size: .875rem; line-height: 1.3; }
.hero__stat-text strong { display: block; font-weight: 600; color: var(--white); font-size: 1rem; }

/* 6.3 Einstiegskarten — auf gleicher Höhe, gleich hoch */
.entry-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: stretch; }
.entry-cards > .card { display: flex; flex-direction: column; }
.entry-cards .card__body { flex: 1; display: flex; flex-direction: column; }
.entry-cards .card__body > .textlink { margin-top: auto; padding-top: .5rem; }

/* 6.4 Wer wir sind — zwei Spalten mit Trennlinie */
.about-intro { display: grid; grid-template-columns: 1fr auto; gap: 3.25rem; align-items: center; }
.about-intro__logo { width: 11rem; height: auto; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3.25rem; }
.about-cols > * + * { border-left: 1px solid var(--line); padding-left: 3.25rem; }

/* 6.5 Freizeiten */
.trip-card { display: flex; flex-direction: column; height: 100%; }

/* Projektkarten: vier nebeneinander im Hochformat – zeigt alle Projekte
   auf einen Blick, statt zwei riesige Reihen zu stapeln. */
.grid-projekte { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.grid-projekte .img-mask { aspect-ratio: 4 / 5; }
.grid-projekte .h3 { font-size: 1.375rem; line-height: 1.2; }
.grid-projekte .card__body { padding-top: 1rem; }
.grid-projekte .chip-row { gap: .375rem; }
.trip-card .img-mask { position: relative; }
.trip-card .card__body > .textlink { margin-top: auto; padding-top: .75rem; }

/* 6.6 Werkstatt */
.workshop { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.workshop--seite { align-items: start; }
.workshop__aktionen { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .5rem; }
.workshop--flach .workshop__collage .ar-1-1 { aspect-ratio: 4 / 3; }
.workshop__logo { width: 9.5rem; height: auto; margin-top: 2.25rem; }
.workshop__collage { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; position: relative; }
.workshop__collage > :first-child { grid-column: 1 / -1; }
.workshop__note {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 3;
  display: flex; align-items: center; gap: .625rem;
  padding: .75rem 1rem; color: var(--white); font-size: .8125rem; line-height: 1.25;
}
.workshop__note svg { width: 1.25rem; height: 1.25rem; flex: none; }

/* 6.7 Spenden */
.donate { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.donate__card { border-radius: var(--r-md); padding: 2rem; }
.donate__card--light { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.donate__card--dark  { background: var(--ink); color: rgba(255,255,255,.75); }
/* Überschriften erben sonst die dunkle Textfarbe und verschwinden auf der
   dunklen Karte. */
.donate__card--dark h1, .donate__card--dark h2, .donate__card--dark h3,
.donate__card--dark h4, .donate__card--dark h5, .donate__card--dark h6 { color: var(--white); }
.amounts { display: flex; flex-wrap: wrap; gap: .625rem; }
.amount {
  padding: .625rem 1.125rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--white);
  color: var(--ink); font-size: .9375rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.amount:hover, .amount--suggested { background: var(--accent-soft); border-color: var(--accent); }

/* 6.8 Kontakt */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; align-items: start; }
.contact__form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 2rem; }
.contact__cards { display: grid; gap: 1rem; }
.contact__card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem; border-radius: var(--r-md);
  background: var(--white); border: 1px solid var(--line);
}
.contact__card a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact__card a:hover { text-decoration: underline; }

/* 6.9 Footer */
.footer { padding-top: 3.5rem; padding-bottom: 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
/* Im Footer steht das vollständige Logo — auf weißer Kachel, weil die
   Logodatei einen weißen Hintergrund mitbringt. */
.footer__logo {
  display: inline-block; margin-bottom: 1.5rem;
  padding: .875rem; border-radius: var(--r-md); background: var(--white);
  line-height: 0;
}
.footer__logo img { width: 8rem; height: auto; }
.footer__col-title { color: rgba(255,255,255,.55); margin-bottom: 1.25rem; }
.footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__links li + li { margin-top: .625rem; }
.footer__bottom {
  margin-top: 3.25rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .8125rem; color: rgba(255,255,255,.6);
}
.footer__legal { display: flex; gap: 1.5rem; }

/* 7 — RESPONSIVE ========================================================== */

@media (max-width: 991px) {
  .section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-projekte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-projekte .img-mask { aspect-ratio: 4 / 3; }
  .workshop { grid-template-columns: 1fr; gap: 2.5rem; }
  .workshop__logo { width: 7.5rem; margin-top: 1.75rem; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__bar { grid-template-columns: repeat(2, 1fr); }
  .hero__content { padding: 3rem; }
}

@media (max-width: 767px) {
  .padding-global { padding-left: 1.25rem; padding-right: 1.25rem; }
  .section { padding-top: 2rem; padding-bottom: 2rem; }

  .h1 { font-size: 2.25rem; }
  .h2 { font-size: 2rem; }
  .h2-small { font-size: 1.75rem; }
  .h3 { font-size: 1.375rem; }

  .nav__links { display: none; }
  .nav__cta { display: none; }          /* liegt auf Mobil im Menü */
  .nav__toggle { display: inline-flex; }
  .nav__brand img { width: 2.125rem; height: 2.125rem; }
  .nav__brand-name { font-size: .875rem; }
  .nav__brand-sub { font-size: .5625rem; }

  /* Hero darf auf kleinen Geräten über die Bildschirmhöhe hinauswachsen,
     damit der Text nie abgeschnitten wird. */
  .hero__frame { padding-top: 6.5rem; }
  .hero__content { padding: 0 0 1.5rem; }
  .hero__title { max-width: none; }
  .hero__sub { max-width: none; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__bar { margin: 0 0 1.5rem; padding: 1rem; gap: .875rem; }
  .hero__stat svg { width: 1.125rem; height: 1.125rem; }
  .hero__stat-text { font-size: .75rem; }
  .hero__stat-text strong { font-size: .875rem; }

  .grid-2, .grid-3, .grid-4, .grid-projekte, .entry-cards, .donate { grid-template-columns: 1fr; }
  .grid-projekte .img-mask { aspect-ratio: 4 / 3; }
  .about-intro { grid-template-columns: 1fr; gap: 1.75rem; }
  .about-intro__logo { width: 7rem; order: -1; }
  .about-cols { grid-template-columns: 1fr; gap: 2rem; }
  .about-cols > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 2rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bottom { flex-direction: column; }

  /* Karten-Reihen werden auf Mobil zu Slidern */
  .scroll-row {
    display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
    gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -1.25rem; padding-inline: 1.25rem;
    scrollbar-width: none;
  }
  .scroll-row::-webkit-scrollbar { display: none; }
  .scroll-row > * { scroll-snap-align: start; }
}

/* 8 — BEWEGUNG ============================================================ */

/* Elemente, die animiert werden, starten unsichtbar — aber nur solange JS
   läuft und der Nutzer keine reduzierte Bewegung wünscht. */
html.js-anim [data-anim] { opacity: 0; }
html.js-anim [data-anim="up"] { transform: translateY(1.25rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-anim [data-anim] { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .nav, .mobile-menu, .hero__bar { display: none; }
  body { color: #000; }
}

/* ==========================================================================
   9 — UNTERSEITEN: Seitenkopf, Galerie, Lightbox, Feature-Block
   ========================================================================== */

/* 9.1 Feature-Block auf der Startseite: großes Bild, Text darunter */
.feature { display: block; }
.feature__media { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.feature__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(270deg, rgba(107,144,163,.12) 0%, rgba(211,165,116,.12) 100%);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature__media { aspect-ratio: 21 / 9; }
.feature__body {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem;
  align-items: end; padding-top: 1.75rem;
}

/* 9.2 Seitenkopf der Unterseiten */
.page-hero { position: relative; overflow: hidden; min-height: 52vh; min-height: 52svh;
  display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(45,62,80,.28); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(45,62,80,.78) 0%, rgba(45,62,80,.30) 45%, rgba(45,62,80,0) 75%); }
.page-hero__content { padding: 0 0 2.75rem; color: rgba(255,255,255,.9); }
.page-hero__content h1 { color: var(--white); }
.breadcrumb { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.75); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* 9.3 Galerie
   Gleichmäßiges Raster mit festen Kachelgrößen. Vorher: CSS-Spalten – dort
   sortiert der Browser die Bilder neu, sobald eines nachlädt, und alles
   springt. Mit festem Seitenverhältnis steht jede Kachel ab dem ersten
   Bild still. */
.gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.gallery__item {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  border: 0; padding: 0; margin: 0; background: var(--blue-soft);
  cursor: zoom-in; border-radius: var(--r-md);
  overflow: hidden; position: relative; line-height: 0;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  transition: transform .7s var(--ease);
}
.gallery__item:hover img { transform: scale(1.035); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(270deg, rgba(107,144,163,.12) 0%, rgba(211,165,116,.12) 100%);
}

/* 9.4 Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 3rem 1.5rem;
  background: rgba(30,42,55,.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 76rem); max-height: 86vh; border-radius: var(--r-md); object-fit: contain; }
.lightbox__btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff;
  transition: background-color .2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.24); }
.lightbox__btn svg { width: 1.25rem; height: 1.25rem; }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.75); font-size: .875rem; }

/* 9.5 Projektliste */
.project-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

@media (max-width: 991px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .feature__media { aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .feature__media { aspect-ratio: 4 / 3; }
  .feature__body { grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
  .page-hero { min-height: 46vh; min-height: 46svh; padding-top: 6.5rem; }
  .page-hero__content { padding: 0 0 2rem; }
  .lightbox__prev { left: .5rem; } .lightbox__next { right: .5rem; }
}


/* ==========================================================================
   Textmasken der Einblend-Animation
   Die Masken schneiden sonst Unterlängen (g, j) und die rechte Kante
   kursiver Buchstaben ab. Etwas Innenabstand, per Minus-Rand ausgeglichen,
   damit sich das Schriftbild nicht verschiebt.
   ========================================================================== */
.split-word-mask, .split-line-mask {
  padding: 0 .12em .2em .04em;
  margin: 0 -.12em -.2em -.04em;
}


/* Anklickbare Projektbilder und -titel */
a.img-mask, a.feature__media { display: block; cursor: pointer; }
a.feature__media img { transition: transform .7s var(--ease); }
a.feature__media:hover img { transform: scale(1.025); }
.card__titellink { color: inherit; text-decoration: none; }
.card__titellink:hover { color: var(--blue-deep); }
.card__titellink:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; border-radius: 4px; }

/* Zurück-Link im Seitenkopf der Unterseiten */
.zurueck-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.zurueck-link svg { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.zurueck-link:hover svg { transform: translateX(-3px); }
.breadcrumb__trenner { width: 1px; height: .9em; background: rgba(255,255,255,.45); margin: 0 .35rem; }

/* Textseiten: Impressum, Datenschutz, Danke, 404 */
.textseite { padding-top: 8.5rem; }
.rechtstext { max-width: 46rem; }
.rechtstext > * + * { margin-top: 1rem; }
.rechtstext h1 { margin-top: .75rem; margin-bottom: 1.5rem; }
.rechtstext h2 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; margin-top: 2rem; color: var(--ink); }
.rechtstext p, .rechtstext li { font-size: 1rem; line-height: 1.6; font-weight: 300; color: var(--ink-70); }
.rechtstext a:not(.btn) { color: var(--blue-deep); text-underline-offset: .2em; }
.rechtstext__stand { font-size: .875rem !important; color: var(--ink-50) !important; }
@media (max-width: 767px) { .textseite { padding-top: 7rem; } }


/* ==========================================================================
   HANDY: mittige Ausrichtung und Projekte untereinander
   Überschriften, Logos, Knöpfe und Karten stehen mittig. Formulare und
   Rechtstexte bleiben linksbündig – dort ist das besser lesbar.
   ========================================================================== */
@media (max-width: 767px) {
  /* Projekte: kein Wischband mehr, sondern alle untereinander */
  .scroll-row {
    grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr;
    overflow: visible; scroll-snap-type: none; margin-inline: 0; padding-inline: 0;
    gap: 2.25rem;
  }
  .scroll-row > * { scroll-snap-align: none; }

  /* Titelbereich */
  .hero__content, .page-hero__content { text-align: center; }
  .hero__title, .hero__sub { margin-inline: auto; }
  .page-hero__content .breadcrumb { justify-content: center; flex-wrap: wrap; }
  .page-hero__content .mw-56 { margin-inline: auto; }

  /* Abschnittsköpfe */
  .about-intro { justify-items: center; text-align: center; }
  .about-intro .mw-56 { margin-inline: auto; }
  .about-intro__logo { margin-inline: auto; }
  .about-cols > * { text-align: center; }
  .about-cols .chip-row { justify-content: center; }
  .about-cols .checklist { display: inline-grid; text-align: left; margin-inline: auto; }
  #projekte .mb-325 { flex-direction: column; align-items: center !important; text-align: center; }
  #projekte .mb-325 .mw-34 { margin-inline: auto; }
  .stack-125 > .section-tag, .stack-15 > .section-tag, .stack-1 > .section-tag { margin-inline: auto; }

  /* Feature „Unsere Herzensarbeit“ */
  .feature__body { justify-items: center; text-align: center; }
  .feature__body .mw-65 { margin-inline: auto; }

  /* Projektkarten */
  .trip-card .card__body { align-items: center; text-align: center; }
  .trip-card .chip-row { justify-content: center; }

  /* Fahrradwerkstatt */
  .workshop > .stack-15 { text-align: center; }
  .workshop > .stack-15 .mw-56 { margin-inline: auto; }
  .workshop .checklist { display: inline-grid; text-align: left; margin-inline: auto; }
  .workshop > .stack-15 > div[style], .workshop__aktionen { justify-content: center; }
  .workshop__logo { display: block; margin-inline: auto; }

  /* Spenden */
  .donate__card { text-align: center; }
  .donate__card .icon-box { margin-inline: auto; }
  .donate__card .amounts { justify-content: center; }
  .donate__card .copy-row { text-align: left; }

  /* Fußbereich */
  .footer__grid > * { text-align: center; }
  .footer__logo { display: inline-block; }
  .footer__grid .mw-46 { margin-inline: auto; }
  .footer__bottom { align-items: center; text-align: center; }
  .footer__legal { justify-content: center; }
}
