/* =========================================================
   Stadttauben Bochum e.V. – Styles
   Styling-Vorgabe: _projekt/Screendesign.png (mobil, 390 px)
   Headlines: Delicious Handrawn · Fließtext: Akatab (beide lokal, OFL)
   ========================================================= */

/* ---------- Schriften (lokal gehostet) ---------- */
@font-face {
  font-family: "Delicious Handrawn";
  src: url("../fonts/delicious-handrawn-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Akatab";
  src: url("../fonts/akatab-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Akatab";
  src: url("../fonts/akatab-latin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Akatab";
  src: url("../fonts/akatab-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #000000;           /* Headlines, Konturen */
  --text: #45527f;          /* Fließtext */
  --num: #4d6da0;           /* Kennzahlen */
  --teal: #157672;          /* Links, Eyebrows – mind. 4,5:1 auch auf --teal-tint */
  --brown: #9c5e27;         /* Notfall-Headline */

  --bg: #fbfaf7;
  --surface: #ffffff;
  --lila-tint: #efebf7;
  --teal-tint: #e3f3f1;
  --notfall-tint: #fdf0e7;
  --notfall-line: #f4cdb3;

  --fill-lila: #e5beff;     /* Primär-Button */
  --fill-notfall: #ffc6b6;  /* Notfall-Button */
  --fill-blue: #c0e0ff;     /* PayPal-Button */
  --fill-mint: #cbe7e3;     /* Menü-Button */

  --step-circle: #fffcfa;   /* Zahlenkreise Notfall */
  --tile-lila: #efebf7;     /* Kennzahl-Kacheln */
  --tile-rosa: #fae8f8;
  --tile-blau: #e8eff3;

  --line: 2px solid var(--ink);
  --radius: 1.25rem;
  --radius-sm: 1rem;

  --font-head: "Delicious Handrawn", "Comic Sans MS", cursive;
  --font: "Akatab", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 70rem;
  --gutter: clamp(1.125rem, 4vw, 2rem);
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;      /* 18px */
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.375rem, 2.6rem + 3vw, 4.75rem); }   /* 54 → 76px */
h2 { font-size: clamp(2.5rem, 2.1rem + 1.6vw, 3.25rem); }    /* 40 → 52px */
h3 { font-size: clamp(2.25rem, 2rem + 1vw, 2.5rem); }        /* 36 → 40px */

p { margin: 0 0 1.1em; text-wrap: pretty; }
strong { font-weight: 700; }

a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: .25rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute; left: 1rem; top: -6.25rem; z-index: 100;
  background: var(--surface); color: var(--ink); border: var(--line);
  padding: .6rem 1rem; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-fill: transparent;
  --btn-shadow: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9375rem;
  padding: .75rem 1.75rem;
  border: var(--line);
  border-radius: 999px;
  background: var(--btn-fill);
  box-shadow: 6px 4px 0 var(--btn-shadow);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform .12s, box-shadow .12s, background-color .12s;
}
.btn:hover { color: var(--ink); }
/* Der „Eindrück“-Effekt nur bei echter Maus, sonst bleibt er auf Touch-Geräten hängen */
@media (hover: hover) {
  .btn:hover { transform: translate(2px, 2px); box-shadow: 4px 2px 0 var(--btn-shadow); }
}
.btn:active { transform: translate(6px, 4px); box-shadow: 0 0 0 var(--btn-shadow); }

.btn-primary { --btn-fill: var(--fill-lila);    --btn-shadow: var(--fill-lila); }
.btn-notfall { --btn-fill: var(--fill-notfall); --btn-shadow: var(--fill-notfall); }
.btn-blue    { --btn-fill: var(--fill-blue);    --btn-shadow: var(--fill-blue); }
.btn-outline { box-shadow: none; }
.btn-outline:hover { transform: none; box-shadow: none; background: rgb(0 0 0 / .04); }

.btn-sm { min-height: 2.5rem; padding: .5rem 1.125rem; font-size: .95rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .875rem 1rem; margin-top: 1.5rem; }

@media (max-width: 40em) {
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
}

/* Weiterlesen-Link mit Pfeil */
.more {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 700; color: var(--teal); text-decoration: none;
}
.more::after {
  content: ""; width: 1.05em; height: 1.05em; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s;
}
.more:hover { color: var(--teal); text-decoration: underline; }
.more:hover::after { transform: translateX(3px); }

.eyebrow {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);   /* 28 → 36px */
  line-height: 1.15;
  color: var(--teal);
  margin: 0 0 .3em;
  text-wrap: balance;
}

/* ---------- Header ---------- */
/* Header: nicht sticky, gleicher Hintergrund wie der Hero darunter */
.site-header {
  position: relative; z-index: 50;
  background: var(--lila-tint);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 5.625rem;
}
.brand {
  display: flex; align-items: center; gap: .875rem;
  color: var(--ink); text-decoration: none;
  font-size: 1.25rem; line-height: 1.2; letter-spacing: .02em;
  text-transform: uppercase;
}
.brand:hover { color: var(--ink); }
.brand img { width: 4rem; height: 4rem; }
.brand-ev { text-transform: none; }

/* Navigation
   Ohne JS (und wenn die Links nicht in eine Zeile passen) ist das Menü ein
   natives Popover: Escape, Klick daneben und Fokus-Rückgabe macht der Browser.
   main.js misst, ob alles in eine Zeile passt, und setzt dann .is-wide. */
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.site-header.is-measuring * { transition: none !important; }

.main-nav { display: flex; align-items: center; }

.nav-toggle {
  display: block;
  anchor-name: --menu-button;
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: .625rem;
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: .625rem; width: 1.5rem; height: 2.5px; background: var(--ink);
  border-radius: 2px; transition: transform .2s, background-color .2s;
}
.nav-toggle-bar { top: 1.3125rem; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -.5rem; }
.nav-toggle-bar::after { top: .5rem; }
/* .menu-open setzt main.js beim toggle-Event des Popovers
   (robuster als :has(:popover-open), das ältere Browser nicht kennen) */
.site-header.menu-open .nav-toggle-bar { background: transparent; }
.site-header.menu-open .nav-toggle-bar::before { transform: translateY(.5rem) rotate(45deg); }
.site-header.menu-open .nav-toggle-bar::after { transform: translateY(-.5rem) rotate(-45deg); }

.main-menu ul { list-style: none; margin: 0; padding: 0; }
.main-menu ul a {
  color: var(--ink); text-decoration: none; font-weight: 600; padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.main-menu ul a:hover { border-bottom-color: var(--ink); }

/* Eingeklappt: Popover direkt unter dem Header, volle Breite */
.main-menu[popover] {
  position: fixed;
  inset: auto 0;
  /* Fallback ohne Anchor Positioning: ungefähr die Header-Höhe */
  inset-block-start: 5.625rem;
  /* Unterkante Button + halber Abstand bis zur Header-Unterkante */
  inset-block-start: calc(anchor(--menu-button bottom) + 1.4375rem);
  width: 100%; max-width: none;
  max-block-size: calc(100dvh - 5.625rem);
  overflow: auto;
  margin: 0;
  color: inherit;
  background: var(--surface);
  border: 0; border-block: var(--line);
  padding: .5rem var(--gutter) 1.5rem;
}
.main-menu:popover-open { display: flex; flex-direction: column; align-items: stretch; gap: 1.25rem; }
.main-menu[popover] ul a {
  display: block; padding: .85rem 0; font-size: 1.15rem;
  border-bottom: 1px solid var(--lila-tint);
}
.main-menu[popover] .btn { width: 100%; min-height: 2.9375rem; }

/* Ausgeklappt: alles passt in eine Zeile */
.site-header.is-wide .nav-toggle { display: none; }
.site-header.is-wide .main-menu { display: flex; align-items: center; gap: 1.75rem; }
.site-header.is-wide .main-menu ul { display: flex; gap: 1.4rem; }

@media (forced-colors: active) {
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { background: CanvasText; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--lila-tint);
  /* oben gleicher Abstand wie unten zwischen Buttons und Notfallbox (+70px Überlappung) */
  --hero-space: clamp(4rem, 9vw, 6.5rem);
  padding: var(--hero-space) 0 calc(var(--hero-space) + 4.375rem);
}
/* Mobil: Foto quer über der Headline. Ab 900 px: Text links, Foto hoch rechts.
   Zwei Illustrations-Tauben stehen am Fotorand und „besuchen“ die echte Taube. */
.hero-inner { display: grid; gap: clamp(2.5rem, 6vw, 3.5rem); }
.hero-art { position: relative; order: -1; margin-bottom: 1.5rem; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-flock { position: absolute; inset: auto 0 0; pointer-events: none; }
.hero-flock img { position: absolute; bottom: -2.2rem; height: auto; }
.hero-sticker-links  { left: -.375rem;  width: clamp(4.875rem, 24%, 8.125rem); }
.hero-sticker-rechts { right: 0; width: clamp(6rem, 30%, 10.625rem); bottom: -1.6rem !important; }

@media (min-width: 56.25em) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 26.25rem); align-items: center; gap: 4rem; }
  .hero-art { order: 0; margin: 0 0 1rem; }
  .hero-photo { aspect-ratio: 4 / 5; }
  .hero-sticker-links  { left: -4.375rem; width: 8.75rem; bottom: -2.5rem; }
  .hero-sticker-rechts { right: -1.25rem; width: 10.3125rem; }
}

.hero-text { max-width: 47.5rem; min-width: 0; }
.hero h1 { margin-bottom: .5em; }
.hero .lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); max-width: 34em; }

/* ---------- Notfall ----------
   Länglicher Störer: Grafik, Headline und Button in einer Zeile.
   Der Inhalt darunter klappt per Button auf (main.js). */
.notfall { margin-top: -4.375rem; position: relative; }
.notfall-box {
  background: var(--notfall-tint);
  border: 2px solid var(--notfall-line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.375rem) clamp(1.125rem, 3vw, 2rem);
  color: var(--brown);
}
.notfall-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: .75rem clamp(1rem, 3vw, 2rem);
}
.notfall-art { width: clamp(4.75rem, 10vw, 6.5rem); }
.notfall-box h2 { color: var(--brown); margin: 0; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); }
.notfall-teaser { margin: .2rem 0 0; font-size: 1rem; }
.notfall-box a:not(.btn) { color: var(--brown); overflow-wrap: anywhere; }
.notfall-box strong { font-weight: 700; }

/* Button: Pfeil dreht sich beim Aufklappen */
.notfall-toggle { cursor: pointer; white-space: nowrap; }
.notfall-toggle::after {
  content: ""; width: .9em; height: .9em; margin-left: .5em; flex: none;
  background: currentColor; transition: rotate .2s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.notfall-toggle[aria-expanded="true"]::after { rotate: 180deg; }

.notfall-body {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 2px dashed var(--notfall-line);
}
/* zugeklappt: hidden="until-found" behält sonst Rand und Abstände */
.notfall-body[hidden] { margin: 0; padding: 0; border: 0; }

/* Schritte: Zahlenkreis + Titel in einer Zeile, Text darunter */
.steps {
  list-style: none; counter-reset: step; padding: 0; margin: 0 0 clamp(2rem, 5vw, 3rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: auto 1fr; align-items: center; align-content: start; gap: 1rem 1.1rem;
}
.steps li::before {
  content: counter(step);
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--step-circle);
  font-family: var(--font-head); font-size: 2.1rem; line-height: 1;
  padding-bottom: .24em;   /* gleicht die tief sitzenden Ziffern der Handschrift aus */
  color: var(--brown);
}
.step-title { font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.steps li p { grid-column: 1 / -1; margin: 0; }

.notfall-hint {
  font-weight: 700; margin: 0 0 1.75rem;
  border: 2px solid var(--brown); border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
/* Tipps: ab 820 px zweispaltig */
.notfall-tips { display: grid; gap: 1.5rem 2.5rem; }
.notfall-tips h3 {
  font-family: var(--font); font-size: 1.15rem; font-weight: 700; line-height: 1.3;
  color: var(--brown); margin: 0 0 .35rem;
}
.notfall-tips p { margin: 0; }
@media (min-width: 51.3125em) {
  .notfall-tips { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 51.25em) {
  .steps { grid-template-columns: 1fr; gap: 2.25rem; }
}
@media (max-width: 40em) {
  .notfall-head { grid-template-columns: auto minmax(0, 1fr); }
  .notfall-toggle { grid-column: 1 / -1; width: 100%; }
}

/* ---------- Zahlen ---------- */
.facts { padding-block: clamp(3.5rem, 8vw, 5rem) 0; }
.facts-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.5rem, 1.5vw, 1rem);
  text-align: center;
}
.facts-list li {
  border-radius: var(--radius-sm);
  padding: clamp(1.375rem, 4vw, 2rem) .75rem;
  display: flex; flex-direction: column; justify-content: center;
}
.facts-list li:nth-child(1) { background: var(--tile-lila); }
.facts-list li:nth-child(2) { background: var(--tile-rosa); }
.facts-list li:nth-child(3) { background: var(--tile-blau); }
.facts-list li:nth-child(4) { background: var(--tile-lila); }
.fact-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(3.25rem, 2.8rem + 1.6vw, 4rem);
  line-height: 1.05;
  color: var(--num);
}
.fact-label { display: block; color: var(--text); }

@media (max-width: 40em) {
  .facts-list { grid-template-columns: repeat(2, 1fr); }
  .facts-list li { padding-inline: .375rem; }
  .fact-label { font-size: 1rem; }
}

/* ---------- Sektionen & Karten ---------- */
.section { --section-space: clamp(4rem, 9vw, 6rem); padding-block: var(--section-space); }
.section-tint { background: var(--teal-tint); }
.section-rosa { background: var(--tile-rosa); }

/* ---------- Geschwungene Kanten ----------
   Farbflächen enden nicht gerade, sondern mit einer weichen,
   leicht unregelmäßigen Welle wie die Konturen der Tauben.
   Umsetzung als Maske: Die Welle schneidet die Fläche zu, darunter
   scheint der Seitenhintergrund durch. Die SVGs werden mit
   preserveAspectRatio="none" auf volle Breite gezogen.
   .wave-alt tauscht die Kurven, damit sich die Wellen nicht wiederholen. */
:root {
  --wave-h: clamp(1.625rem, 5vw, 4.75rem);
  --wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V30C190 8 380 2 580 20S930 54 1150 32S1370 6 1440 18V60Z'/%3E%3C/svg%3E");
  --wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0V28C230 52 470 58 730 38S1170 4 1440 32V0Z'/%3E%3C/svg%3E");
  --wave-top-alt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V16C220 4 430 40 690 36S1150 4 1440 26V60Z'/%3E%3C/svg%3E");
  --wave-bottom-alt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0V40C160 56 400 50 600 30S1010 6 1210 26S1390 50 1440 44V0Z'/%3E%3C/svg%3E");
  --wave-fill: linear-gradient(#000 0 0);
}
.wave-alt { --wave-top: var(--wave-top-alt); --wave-bottom: var(--wave-bottom-alt); }

.wave-top, .wave-bottom, .wave-both {
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.wave-top {
  -webkit-mask-image: var(--wave-top), var(--wave-fill);
  mask-image: var(--wave-top), var(--wave-fill);
  -webkit-mask-size: 100% var(--wave-h), 100% calc(100% - var(--wave-h) + 1px);
  mask-size: 100% var(--wave-h), 100% calc(100% - var(--wave-h) + 1px);
  -webkit-mask-position: top, bottom;
  mask-position: top, bottom;
}
.wave-bottom {
  -webkit-mask-image: var(--wave-fill), var(--wave-bottom);
  mask-image: var(--wave-fill), var(--wave-bottom);
  -webkit-mask-size: 100% calc(100% - var(--wave-h) + 1px), 100% var(--wave-h);
  mask-size: 100% calc(100% - var(--wave-h) + 1px), 100% var(--wave-h);
  -webkit-mask-position: top, bottom;
  mask-position: top, bottom;
}
.wave-both {
  -webkit-mask-image: var(--wave-top), var(--wave-fill), var(--wave-bottom);
  mask-image: var(--wave-top), var(--wave-fill), var(--wave-bottom);
  -webkit-mask-size: 100% var(--wave-h), 100% calc(100% - 2 * var(--wave-h) + 2px), 100% var(--wave-h);
  mask-size: 100% var(--wave-h), 100% calc(100% - 2 * var(--wave-h) + 2px), 100% var(--wave-h);
  -webkit-mask-position: top, center, bottom;
  mask-position: top, center, bottom;
}
/* Die Welle frisst etwas Fläche: Innenabstand entsprechend ergänzen */
.section.wave-top, .section.wave-both { padding-top: calc(var(--section-space) + var(--wave-h) * .6); }
.section.wave-bottom, .section.wave-both { padding-bottom: calc(var(--section-space) + var(--wave-h) * .6); }

/* ---------- Zweispaltige Sektion (Mach mit, Spenden) ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split-main { display: flex; flex-direction: column; }
.split-main > p { max-width: 34em; }
.split-art { display: flex; align-items: flex-end; gap: .5rem; margin-bottom: 1.25rem; }
.split-art img { max-height: 11.875rem; width: auto; min-width: 0; }
.split-art-pair img { max-height: 10rem; }
.split .contact-block { margin-top: .75rem; }
.split-main .card-steps { margin-top: .5rem; }
.split-main > p + .card-subhead { margin-top: .75rem; }
@media (min-width: 56.25em) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
.split-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 2rem; }

/* Mobil (einspaltig): beide Spalten lösen sich auf, damit „Schreib uns“
   nach Foto und Chips ganz unten steht. Desktop bleibt zweispaltig. */
@media (max-width: 56.24em) {
  .split-reorder { gap: 0; }
  .split-reorder .split-main, .split-reorder .split-side { display: contents; }
  .split-reorder .split-photo { margin-top: 1rem; }
  .split-reorder .contact-block { order: 1; }
}

/* Auf Rosa heben sich weiße Chips und Zahlenkreise besser ab */
.section-rosa .chips li,
.section-rosa .card-steps li::before { background: var(--surface); }
.section-title { text-align: center; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-lead {
  max-width: 40em; margin: calc(-1 * clamp(.75rem, 2vw, 1.25rem)) auto clamp(2rem, 4vw, 2.75rem);
  text-align: center; text-wrap: balance;
  font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); color: var(--ink);
}
.section-note {
  max-width: 40em; margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
  text-align: center; text-wrap: balance;
}

/* ---------- Eiertausch ---------- */
/* gleiche Schritt-Optik wie im Notfall-Block, aber in den neutralen Farben */
/* Schritte als Karten, auf dem Desktop mit Pfeil dazwischen */
.steps-eier { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); gap: clamp(1.25rem, 3vw, 2.5rem); }
.steps-eier li {
  position: relative;
  background: var(--surface); border: var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
@media (min-width: 51.3125em) {
  .steps-eier li:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: calc(-1 * clamp(1.25rem, 3vw, 2.5rem) / 2 - .875rem);
    width: 1.75rem; height: 1.75rem; translate: 0 -50%; z-index: 1;
    background: var(--ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* Taubenhaus-Kasten: Illustration + kurzer Text */
.eier-haus {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--lila-tint); border-radius: var(--radius);
  padding: clamp(1.25rem, 3.5vw, 2rem) clamp(1.25rem, 4vw, 2.5rem);
}
.eier-haus img { width: clamp(8.125rem, 18vw, 12.5rem); }
.eier-haus h3 { font-family: var(--font); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 0 0 .35rem; }
.eier-haus p { margin: 0; max-width: 60ch; }
@media (max-width: 35em) {
  .eier-haus { grid-template-columns: 1fr; }
  .eier-haus img { justify-self: center; }
}
/* Zahlen als Eier: das Ei ist ein SVG-Hintergrund und kippt,
   die Ziffer davor bleibt gerade. */
.steps-eier li::before {
  width: 3.75rem; height: 3.75rem; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath transform='rotate(-16 30 30)' fill='%23efebf7' d='M30 3C42.5 3 51 22 51 35.5C51 48.5 41.5 57 30 57S9 48.5 9 35.5C9 22 17.5 3 30 3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--ink);
  padding-bottom: 0; padding-top: .05em;
}
.steps-eier li:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath transform='rotate(13 30 30)' fill='%23e3f3f1' d='M30 3C42.5 3 51 22 51 35.5C51 48.5 41.5 57 30 57S9 48.5 9 35.5C9 22 17.5 3 30 3Z'/%3E%3C/svg%3E"); }
.steps-eier li:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath transform='rotate(-7 30 30)' fill='%23fae8f8' d='M30 3C42.5 3 51 22 51 35.5C51 48.5 41.5 57 30 57S9 48.5 9 35.5C9 22 17.5 3 30 3Z'/%3E%3C/svg%3E"); }
.steps-eier .step-title { color: var(--ink); }

@media (max-width: 51.25em) {
  .steps-eier { grid-template-columns: 1fr; gap: 2rem; }
}

/* Sprungziele: etwas Luft nach oben */
[id] { scroll-margin-top: 1rem; }

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

.card {
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.375rem, 3.5vw, 1.875rem);
  display: flex; flex-direction: column;
}
.card-art {
  display: flex; justify-content: center; align-items: flex-end; gap: .5rem;
  min-height: 10.625rem; margin: .5rem 0 1.5rem;
}
.card-art img { max-height: 10.625rem; width: auto; }
.card-art-pair img { max-height: 10rem; min-width: 0; flex: 0 1 auto; }
.card-art-end { justify-content: flex-end; }
.card-art-end img { max-height: 13.125rem; }
.cards-2 .card-art { min-height: 13.125rem; }
.card .more { margin-top: auto; padding-top: .5rem; }

.card-feature .btn-row { margin-top: auto; padding-top: .5rem; }
.card-feature .btn-row:not(:last-child) { margin-top: 0; margin-bottom: 2rem; }

/* Listen in Karten */
.card-subhead {
  font-family: var(--font); font-size: 1.125rem; font-weight: 700; line-height: 1.5;
  text-wrap: wrap; color: var(--ink); margin: 0 0 .5rem;
}
.card-list { margin: 0 0 1.25rem; padding-left: 1.2em; }
.card-list li { margin-bottom: .45rem; padding-left: .2em; }
.card-list li::marker { color: var(--teal); }

/* Einstiegsschritte: kleine Zahlenkreise wie im Notfall-Block */
.card-steps { list-style: none; counter-reset: einstieg; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .6rem; }
.card-steps li { counter-increment: einstieg; display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; align-items: start; }
.card-steps li::before {
  content: counter(einstieg);
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lila-tint); color: var(--ink);
  font-family: var(--font-head); font-size: 1.4rem; line-height: 1; padding-bottom: .2em;
}

/* Icons (Lucide, ISC-Lizenz), Strichstärke passt zu den 2-px-Konturen */
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Schlagwörter statt langer Aufzählungen */
.chips { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  background: var(--lila-tint); color: var(--ink);
  border-radius: 999px; padding: .3rem .85rem;
  font-size: 1rem; line-height: 1.3;
}

/* Kontakt: Überschrift + Buttons mit Symbol */
.contact-block { margin-top: auto; padding-top: .5rem; }
.contact-hint { font-size: 1rem; margin: -.35rem 0 .9rem; }
.contact-row { display: flex; flex-wrap: wrap; gap: .75rem .875rem; }
.btn-icon { gap: .5rem; padding-inline: 1.25rem; }
@media (max-width: 40em) {
  .contact-row .btn { flex: 1 1 100%; }
}

/* Spendenwege als Kacheln */
.give-tiles {
  list-style: none; margin: 0 0 1.25rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11.875rem, 1fr)); gap: .75rem;
}
.give-tile {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: .85rem; row-gap: 2px; align-items: center; align-content: center;
  height: 100%;
  padding: .875rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  color: var(--ink); text-decoration: none;
  transition: border-color .15s;
}
.give-tile { position: relative; padding-right: 2.25rem; }
.give-tile:hover { color: var(--ink); border-color: var(--ink); }
.give-ext { position: absolute; top: .65rem; right: .65rem; width: 1rem; height: 1rem; opacity: .7; }
.give-tile-blau { background: var(--fill-blue); }
.give-tile-rosa { background: var(--tile-rosa); }
.give-tile-lila { background: var(--lila-tint); }
.give-tile-mint { background: var(--fill-mint); }
.give-icon {
  grid-row: 1 / span 2;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--surface); border: var(--line);
}
.give-icon .icon { width: 1.375rem; height: 1.375rem; }
.give-name { font-weight: 700; line-height: 1.25; }
.give-desc { font-size: .95rem; line-height: 1.3; color: var(--text); }

.give-note { font-size: 1rem; margin-bottom: 0; }
.give-note a { overflow-wrap: anywhere; }

.bank {
  background: var(--lila-tint);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.375rem;
  margin: 0 0 1.25rem;
  display: grid; gap: .85rem;
}
.bank dt { font-weight: 700; }
.bank dd { margin: 0; font-variant-numeric: tabular-nums; }

/* IBAN kopieren */
.bank-iban { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.copy { display: inline-flex; align-items: center; gap: .6rem; }
.copy-button {
  min-block-size: 2.25rem; padding: .25rem 1rem;
  border: var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: 700 .9rem/1.2 var(--font);
  cursor: pointer; touch-action: manipulation;
}
.copy-button:hover { background: var(--fill-lila); }
.copy-button[data-copied] { background: var(--fill-mint); }
.copy-tip {
  font-size: .95rem; font-weight: 600; color: var(--teal);
  opacity: 0; transition: opacity .2s;
}
.copy-button[data-copied] + .copy-tip,
.copy-button[data-failed] + .copy-tip { opacity: 1; }
.copy-button[data-failed] + .copy-tip { color: var(--brown); }

@media (max-width: 56.25em) {
  .cards, .cards-2 { grid-template-columns: 1fr; }
}

/* ---------- Fotos ----------
   Gleiche Sprache wie die Buttons: schwarze 2-px-Kontur, runde Ecken
   und ein versetzter Farbschatten ohne Unschärfe. */
.photo {
  display: block; max-width: 100%;
  border: var(--line); border-radius: var(--radius);
  background: var(--lila-tint);
  box-shadow: 10px 8px 0 var(--photo-shadow, var(--fill-lila));
}
.photo-lila { --photo-shadow: var(--fill-lila); }
.photo-blau { --photo-shadow: var(--fill-blue); }
.photo-mint { --photo-shadow: var(--fill-mint); }

/* ---------- Wissen ---------- */
.wissen { display: grid; gap: 1.5rem 3rem; max-width: 60rem; }
.wissen-head { text-align: center; }
.wissen-head h2 { margin-bottom: 0; }
/* Foto mit Illustration als „Aufkleber“ an der unteren Ecke */
.wissen-art { position: relative; width: min(20rem, 80vw); margin: 0 auto 3.5rem; }
.wissen-art .photo { width: 100%; height: auto; }
.wissen-sticker {
  position: absolute; width: 58%; height: auto;
  right: -8%; bottom: -3.5rem;   /* mobil nicht über den Bildschirmrand */
  pointer-events: none;
}
.wissen-text { color: var(--ink); }

@media (min-width: 47.5em) {
  .wissen { grid-template-columns: auto 1fr; align-items: center; }
  .wissen-head { grid-column: 1 / -1; margin-bottom: 1rem; }
  .wissen-art { margin: 0 4.5rem 3.5rem 0; }
  .wissen-sticker { right: -22%; }
}

/* ---------- 404 ---------- */
.error-page {
  background: var(--lila-tint);
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(4rem, 10vw, 7rem);
}
.error-inner { max-width: 47.5rem; text-align: center; }
.error-art { width: clamp(12.5rem, 40vw, 17.5rem); margin: 0 auto clamp(1.5rem, 4vw, 2.25rem); }
.error-page .lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); }
.error-hint { font-weight: 700; }
.error-page p { text-wrap: balance; }
.error-page .btn-row { justify-content: center; }
.error-page.wave-bottom { padding-bottom: calc(clamp(4rem, 10vw, 7rem) + var(--wave-h) * .6); }

/* ---------- Unterseiten-Kopf ---------- */
.page-head {
  background: var(--lila-tint);
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.page-head-inner { max-width: 47.5rem; text-align: center; }
.page-head p { text-wrap: balance; }
.page-head .lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); margin-bottom: 0; }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal { max-width: 70ch; }
.legal h2 { font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem); margin: 2.25rem 0 .5rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--font); font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin: 1.5rem 0 .35rem; }
.legal ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.legal li { margin-bottom: .35rem; }
.legal a { overflow-wrap: anywhere; }
.legal-meta { font-size: 1rem; margin-top: 2.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--lila-tint);
  padding-block: clamp(3.5rem, 7vw, 4.5rem) 2.5rem;
  color: var(--text);
}
.site-footer.wave-top { padding-top: calc(clamp(3.5rem, 7vw, 4.5rem) + var(--wave-h) * .6); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 2rem; align-items: start;
}
.footer-inner strong, .footer-head { font-weight: 700; }
.footer-head { margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--text); overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--ink); }
.footer-art { width: 9.375rem; align-self: end; }
.footer-credit { margin-top: 2rem; font-size: .9rem; }
.footer-credit p { margin: 0; padding-top: 1.25rem; border-top: 1px solid rgb(0 0 0 / .1); }
/* Logo steht auf der Grundlinie des Textes (die Buchstaben im SVG enden unten bündig) */
.credit-logo { margin-left: .3rem; }
.credit-logo img { display: inline; height: .85rem; width: auto; vertical-align: baseline; }

@media (max-width: 53.75em) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-address { grid-column: 1 / -1; }
  .footer-art { grid-column: 1 / -1; justify-self: end; width: 9.375rem; }
}
@media (max-width: 30em) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Schnellkontakt ----------
   Mobil: runder Button unten rechts, Panel darüber.
   Ab 760 px: senkrechte Lasche am rechten Rand, Panel daneben. */
.quick-tab {
  position: fixed; z-index: 40;
  right: .875rem; bottom: calc(.875rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 3.125rem; padding: .625rem 1.125rem .625rem 1rem;
  border: var(--line); border-radius: 999px;
  background: var(--fill-lila); color: var(--ink);
  box-shadow: 4px 3px 0 var(--ink);
  font-family: var(--font-head); font-size: 1.35rem; line-height: 1;
  cursor: pointer; touch-action: manipulation;
  transition: transform .12s, box-shadow .12s;
}
.quick-tab .icon { width: 1.375rem; height: 1.375rem; }
.quick-tab-more { display: none; }
@media (hover: hover) {
  .quick-tab:hover { transform: translate(2px, 2px); box-shadow: 2px 1px 0 var(--ink); }
}
.quick-tab:active { transform: translate(4px, 3px); box-shadow: 0 0 0 var(--ink); }

.quick-panel {
  position: fixed; inset: auto .875rem calc(5rem + env(safe-area-inset-bottom, 0px)) auto;
  width: min(23.75rem, calc(100vw - 1.75rem));
  max-height: calc(100dvh - 6.875rem); overflow: auto;
  margin: 0; padding: 1.5rem 1.4rem 1.4rem;
  border: var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
}
.quick-panel::backdrop { background: rgb(0 0 0 / .08); }

.quick-close {
  position: absolute; top: .625rem; right: .625rem;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer;
}
.quick-close:hover { background: var(--lila-tint); }

.quick-title {
  font-family: var(--font-head); font-size: 1.9rem; line-height: 1.05;
  color: var(--ink); margin: 0 2.5rem .25rem 0;
}
.quick-intro { margin: 0 0 1.1rem; font-size: 1rem; }
.quick-group { padding: .9rem 0; border-top: 1px solid var(--lila-tint); }
.quick-group-notfall {
  background: var(--notfall-tint); border: 0; border-radius: var(--radius-sm);
  padding: .9rem 1rem; margin-bottom: .4rem;
}
.quick-label { font-weight: 700; color: var(--ink); margin: 0 0 .3rem; font-size: 1rem; }
.quick-mail {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; padding-block: .25rem;
}
.quick-group-notfall .quick-mail { color: var(--brown); }
.quick-link { display: block; font-size: 1rem; margin-top: .2rem; color: var(--brown); }
.quick-social { display: flex; flex-wrap: wrap; gap: .625rem; padding-top: 1rem; border-top: 1px solid var(--lila-tint); }

/* Unten etwas Platz, damit der Button nichts im Footer verdeckt */
.site-footer { padding-bottom: 5.5rem; }

@media (min-width: 47.5em) {
  .quick-tab {
    right: 0; bottom: auto; top: 50%;
    translate: 0 -50%;
    writing-mode: vertical-rl;
    white-space: nowrap;
    /* 1.5rem über den Rand hinaus: beim Hover-Versatz und am Schatten bleibt keine Lücke */
    right: -1.5rem;
    padding: 1.25rem 2.125rem 1.375rem .75rem; min-height: 0;
    border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    box-shadow: -4px 4px 0 var(--ink);
  }
  .quick-tab-more { display: inline; }
  @media (hover: hover) {
    .quick-tab:hover { transform: translateX(-4px); box-shadow: -6px 4px 0 var(--ink); }
  }
  .quick-tab:active { transform: none; box-shadow: -2px 2px 0 var(--ink); }

  .quick-panel { inset: 50% 4.5rem auto auto; translate: 0 -50%; max-height: calc(100dvh - 2.5rem); }
  .site-footer { padding-bottom: 2.5rem; }
}

@media (forced-colors: active) {
  .quick-tab, .quick-panel { border-color: CanvasText; }
}
@media print {
  .quick-tab, .quick-panel { display: none; }
}

/* =========================================================
   Bewegung: nur der Hero-Einstieg, in einer Abfolge:
   1. Headline, Text und Buttons gleiten nacheinander herein
   2. dazwischen das Foto
   3. zum Schluss hüpfen die beiden Tauben an den Fotorand
   Die Klasse .js-motion setzt main.js, nur wenn „Bewegung reduzieren“ aus ist.
   ========================================================= */
.js-motion .hero-flock img,
.js-motion .hero-photo,
.js-motion .hero-text > * { opacity: 0; }

.js-motion .hero.is-visible .hero-text > * {
  animation: fade-up .7s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 150ms + 150ms);
}
.js-motion .hero.is-visible .hero-photo {
  animation: fade-up .8s cubic-bezier(.2, .7, .2, 1) 350ms forwards;
}
.js-motion .hero.is-visible .hero-flock img {
  animation: hop-in .65s cubic-bezier(.3, 1.6, .5, 1) forwards;
  animation-delay: calc(var(--i, 0) * 150ms + 900ms);
}

@keyframes hop-in {
  0%   { opacity: 0; transform: translateY(1.5rem); }
  60%  { opacity: 1; transform: translateY(-.375rem); }
  100% { opacity: 1; transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: none; }
}
