/* Basis-Theme für alle Tierheime. Farben und Schriften kommen aus den Tokens unten;
   ein Tierheim-Theme (z. B. themes/weissenfels/theme.css) überschreibt sie. */

:root {
  --primary: #2B4C7E;
  --primary-dark: #203A61;
  --secondary: #E0A33A;
  --on-secondary: #181717;
  --tertiary: #16243A;
  --tint: rgba(22, 36, 58, .6);
  --shade: #F5F4EF;
  --body: #5A5F5E;
  --head: #181717;
  --line: #E3E6E4;
  --white: #fff;

  --font-head: "Onest", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;

  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 14px 40px rgba(18, 47, 42, .08);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--head); margin: 0; line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--shade { background: var(--shade); }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--secondary); color: var(--on-secondary); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-hand); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px);
  color: var(--secondary); line-height: 1;
}
.eyebrow i { position: relative; width: 54px; height: 10px; background: linear-gradient(currentColor, currentColor) 0 50% / 44px 2px no-repeat; }
.eyebrow i::after { content: ""; position: absolute; right: 2px; top: 1px; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); }
.eyebrow i:last-child { transform: scaleX(-1); }
.h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; }
.h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 600; }
.h3 { font-size: 24px; font-weight: 600; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack--sm { gap: 12px; }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head.center { align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; }
.btn--gold { background: var(--secondary); color: var(--on-secondary); }
.btn--gold:hover { background: #e39a00; }
.btn--green { background: var(--primary); color: var(--white); }
.btn--green:hover { background: var(--primary-dark); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; color: var(--primary); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 15px; height: 15px; }

.badge { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 8px; font-family: var(--font-head); font-weight: 600; font-size: 13px; }
.badge--gold { background: var(--secondary); color: var(--on-secondary); }
.badge--green { background: var(--primary); color: var(--white); }
.badge--white { background: var(--white); color: var(--head); }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; display: flex; }
.site-header--solid { position: relative; }
.logo-tab {
  position: relative; z-index: 2; flex-shrink: 0;
  display: flex; align-items: center; padding-left: 32px; width: 400px; height: 112px;
  background: var(--primary); clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}
.lockup { display: flex; align-items: flex-end; gap: 14px; }
.lockup img { width: 96px; height: 48px; }
.lockup__text { display: flex; flex-direction: column; line-height: 1; }
.lockup__top { white-space: nowrap; font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8); padding-bottom: 5px; }
.lockup__main { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--white); }
.header-main { flex: 1; display: flex; flex-direction: column; margin-left: -46px; min-width: 0; }
.topbar { height: 42px; padding: 0 32px 0 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--shade); font-size: 14px; color: var(--head); }
.topbar a { font-weight: 700; }
.navbar { height: 70px; display: flex; align-items: stretch; padding-left: 90px; background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.nav { flex: 1; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a { font-family: var(--font-head); font-weight: 500; font-size: 16px; color: var(--head); }
.nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.nav a:hover { color: var(--primary); }
.donate-block { width: 200px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--secondary); color: var(--on-secondary); font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.donate-block svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 820px; display: flex; align-items: center; color: var(--white); overflow-x: clip; }
.hero__img, .banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after, .banner::after { content: ""; position: absolute; inset: 0; background: var(--tint); }
.hero__content { position: relative; z-index: 2; padding-top: 140px; max-width: 760px; }
.hero__content .h1 { color: var(--white); }
.hero__content .lead { color: rgba(255,255,255,.88); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 6px; }
.corner { position: absolute; right: 0; bottom: 0; width: 180px; height: 70px; background: var(--secondary); clip-path: polygon(100% 0, 100% 100%, 0 100%); z-index: 2; }
.doodle { position: absolute; z-index: 2; color: var(--secondary); pointer-events: none; }

/* ---------- Banner (Unterseiten) ---------- */
.banner { position: relative; height: 400px; display: flex; align-items: flex-end; justify-content: center; color: var(--white); }
.banner__content { position: relative; z-index: 2; text-align: center; padding-bottom: 64px; display: flex; flex-direction: column; gap: 12px; }
.banner__content h1, .banner__titel { color: var(--white); font-size: clamp(40px, 5vw, 60px); font-weight: 700; }
.breadcrumb { font-weight: 600; font-size: 16px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: .6; }
.breadcrumb [aria-current] { color: var(--secondary); }

/* ---------- Über uns ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 80px); align-items: center; }
.collage { position: relative; min-height: 600px; }
.collage__a { position: absolute; left: 0; top: 0; width: 62%; height: 78%; object-fit: cover; border-radius: 24px; }
.collage__b { position: absolute; right: 0; bottom: 0; width: 54%; height: 50%; object-fit: cover; border-radius: 24px; border: 10px solid var(--white); }
.stat-card { position: absolute; right: 4%; top: 8%; width: 200px; padding: 22px; border-radius: var(--radius); background: var(--primary); color: var(--white); box-shadow: 0 20px 40px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 6px; }
.stat-card strong { font-family: var(--font-head); font-size: 40px; line-height: 1; }
.feature { display: flex; gap: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; }
.feature__icon, .icon-circle { flex-shrink: 0; width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: var(--secondary); color: var(--on-secondary); }
.feature__icon svg, .icon-circle svg { width: 24px; height: 24px; }
.feature h3 { font-size: 20px; margin-bottom: 4px; }
.feature p { font-size: 15px; line-height: 1.55; }
/* Anruf: gefüllte Fläche, damit sie sich klar von den Schwerpunkten darüber absetzt */
.call { display: inline-flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 26px 12px 12px; border-radius: 999px; background: var(--primary); color: var(--white); box-shadow: var(--shadow); transition: background .2s ease, transform .2s ease; }
.call:hover { background: var(--primary-dark); transform: translateY(-2px); }
.call:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.call__icon { width: 50px; height: 50px; border-radius: 999px; background: var(--secondary); color: var(--on-secondary); display: grid; place-items: center; flex-shrink: 0; }
.call__icon svg { width: 22px; height: 22px; }
.call small { display: block; font-size: 14px; color: rgba(255,255,255,.85); }
.call strong { font-family: var(--font-head); font-size: 20px; color: var(--white); }
@media (prefers-reduced-motion: reduce) { .call, .call:hover { transition: none; transform: none; } }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 30px; }

/* ---------- Tierkarten ---------- */
.animal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.animal-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 10px 10px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.animal-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(18,47,42,.14); }
.animal-card__media { position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--radius-sm); overflow: hidden; }
.animal-card__media img { width: 100%; height: 100%; object-fit: cover; }
.animal-card__media .badge { position: absolute; top: 12px; left: 12px; }
.animal-card__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px; }
.animal-card h3 { font-size: 24px; }
.animal-card__meta { font-size: 15px; }
.animal-card__go { width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; background: var(--primary); color: var(--white); display: grid; place-items: center; }
.animal-card__go svg { width: 16px; height: 16px; }
.animal-card a::after { content: ""; position: absolute; inset: 0; }   /* ganze Karte klickbar */
.info-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 32px 28px; border-radius: var(--radius); }
.info-card--green { background: var(--primary); color: var(--white); }
.info-card--green h3 { color: var(--white); }
.info-card--shade { background: var(--shade); }
.info-card > span svg { width: 48px; height: 48px; }

.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter button { min-height: 48px; padding: 0 10px 0 20px; border-radius: 999px; border: 1.5px solid #DCE0DE; background: var(--white); color: var(--head); display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; cursor: pointer; }
.filter button span { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; background: var(--shade); display: grid; place-items: center; font-size: 13px; }
.filter button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--white); }
.filter button[aria-pressed="true"] span { background: rgba(255,255,255,.2); }

/* ---------- Spendenband ---------- */
.cta-band { position: relative; padding-block: clamp(80px, 10vw, 130px); text-align: center; color: var(--white); overflow: hidden; }
.cta-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: var(--tertiary); opacity: .86; }
.cta-band .container { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta-band h2 { color: var(--white); max-width: 760px; }

/* ---------- Zahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 60px; }
.stats div { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.stats div + div { border-left: 1px solid rgba(0,0,0,.12); }
.stats strong { font-family: var(--font-head); font-weight: 600; font-size: clamp(34px, 4vw, 48px); line-height: 1; color: var(--primary); }
.stats div:nth-child(even) strong { color: var(--secondary); }
.stats span { color: var(--head); }

/* ---------- Helfen ---------- */
.help-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.help-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 26px 34px; text-align: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.help-card .icon-circle { width: 76px; height: 76px; background: var(--primary); color: var(--white); box-shadow: 0 0 0 8px var(--shade); margin-bottom: 6px; }
.help-card .icon-circle svg { width: 30px; height: 30px; }
.help-card p { font-size: 16px; line-height: 1.6; flex: 1; }

.marquee { overflow: hidden; padding-block: 40px; }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; font-family: var(--font-head); font-weight: 600; font-size: clamp(56px, 8vw, 96px); line-height: 1; color: var(--head); animation: marquee 40s linear infinite; }
.marquee__track .outline { color: transparent; -webkit-text-stroke: 2px var(--secondary); }
.marquee__track .dot { width: 18px; height: 18px; border-radius: 99px; background: var(--secondary); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Happy End ---------- */
.progress { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border-radius: 16px; background: var(--shade); }
.progress__head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-head); font-weight: 600; color: var(--head); }
.progress__bar { height: 10px; border-radius: 99px; background: #E1E4E2; overflow: hidden; }
.progress__bar span { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.quote { font-size: 19px; line-height: 1.7; color: var(--head); }
.photo-pair { position: relative; min-height: 600px; }
.photo-pair img:first-child { position: absolute; left: 0; top: 0; width: 48%; height: 55%; object-fit: cover; border-radius: 24px; }
.photo-pair img:nth-child(2) { position: absolute; right: 0; top: 12%; width: 50%; height: 70%; object-fit: cover; border-radius: 24px; }
.float-card { position: absolute; left: 6%; bottom: 4%; padding: 20px 26px; border-radius: 18px; background: var(--white); box-shadow: 0 20px 40px rgba(0,0,0,.12); display: flex; align-items: center; gap: 16px; }
.float-card strong { font-family: var(--font-head); font-size: 52px; line-height: 1; color: var(--primary); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; gap: 28px; }
.news-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-card__media { position: relative; aspect-ratio: 16 / 10; }
.news-card__media { overflow: hidden; }
.news-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card__media .badge { position: absolute; top: 16px; left: 16px; }
.news-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.news-card h3 { font-size: 22px; line-height: 1.3; }
.news-card a::after { content: ""; position: absolute; inset: 0; }

/* ---------- Tier-Detail ---------- */
.detail { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: stretch; }
.gallery { display: flex; flex-direction: column; }
.profile { padding: 34px; border-radius: 24px; background: var(--white); box-shadow: 0 14px 40px rgba(18,47,42,.1); position: sticky; top: 24px; }
.profile__badges { display: flex; gap: 8px; margin-bottom: 14px; }
.profile h1 { font-size: 48px; font-weight: 700; }
.profile__sub { margin: 6px 0 18px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts .icon-circle { width: 44px; height: 44px; background: var(--shade); color: var(--primary); }
.facts .icon-circle svg { width: 20px; height: 20px; }
.facts strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--head); }
.facts a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.profile__actions { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
/* Hauptbild füllt die Höhe der Profilspalte daneben; es selbst bestimmt die Zeilenhöhe nicht */
.gallery__main { width: 100%; flex: 1 1 0; height: 0; min-height: 340px; object-fit: cover; border-radius: 24px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.gallery__thumbs button { padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 1 / .85; background: none; }
.gallery__thumbs button[aria-pressed="true"] { outline: 3px solid var(--secondary); outline-offset: 2px; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.story { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: start; }
.story p { font-size: 18px; line-height: 1.75; }
.summary { padding: 32px 34px; border-radius: 24px; background: var(--shade); }
.summary dl { margin: 12px 0 0; }
.summary dl div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; }
.summary dt { font-family: var(--font-head); font-weight: 600; color: var(--head); }
.summary dd { margin: 0; }
.summary .stamp, .stamp { font-size: 11px; line-height: 1.4; margin-top: 10px; text-align: right; opacity: .6; letter-spacing: .01em; }

.inquiry { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--primary); }
.inquiry__intro { color: var(--white); display: flex; flex-direction: column; gap: 18px; }
.inquiry__intro h2 { color: var(--white); font-size: clamp(28px, 3vw, 38px); }
.inquiry__intro p { color: rgba(255,255,255,.85); }
.form { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: var(--white); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--head); }
.field input, .field textarea, .field select { min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid #DCE0DE; font-family: var(--font-body); font-size: 16px; font-weight: 400; color: var(--head); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(27,105,92,.15); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; }
.check input { flex-shrink: 0; margin-top: 1px; }
.check input { width: 22px; height: 22px; accent-color: var(--primary); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 44px 56px; border-radius: 24px; background: var(--shade); }
.steps > div { display: flex; gap: 16px; }
.steps .num { flex-shrink: 0; width: 52px; height: 52px; border-radius: 99px; background: var(--secondary); color: var(--on-secondary); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.steps h3 { font-size: 20px; margin-bottom: 4px; }
.steps p { font-size: 15px; line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--tertiary); color: rgba(255,255,255,.78); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 50px; font-size: 16px; line-height: 1.7; }
.footer-grid h2 { font-size: 20px; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid a:hover { color: var(--secondary); }
.footer-grid .lockup { margin-bottom: 18px; gap: 10px; }
.footer-grid .lockup img { width: 64px; height: 32px; }
.footer-grid .lockup__top { font-size: 9.5px; padding-bottom: 3px; }
.footer-grid .lockup__main { font-size: 21px; }
.footer-bottom { margin-top: 50px; border-top: 1px solid rgba(255,255,255,.14); }
.footer-bottom .container { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.footer-bottom nav { display: flex; gap: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .animal-grid, .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 1024px) {
  .logo-tab { width: 300px; height: 80px; padding-left: 18px; }
  .lockup img { width: 72px; height: 36px; }
  .lockup__main { font-size: 22px; }
  .lockup__top { font-size: 10px; }
  .header-main { margin-left: -36px; }
  .topbar { display: none; }
  .navbar { height: 80px; padding-left: 60px; justify-content: flex-end; box-shadow: none; }
  .nav { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 80px; border: 0; background: var(--white); color: var(--head); cursor: pointer; }
  .menu-toggle svg { width: 26px; height: 26px; }
  .donate-block { width: 80px; }
  .donate-block span { display: none; }
  .nav.is-open { display: flex; position: absolute; left: 0; right: 0; top: 80px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--white); box-shadow: 0 20px 40px rgba(0,0,0,.12); }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .split, .detail, .story, .inquiry { grid-template-columns: 1fr; }
  .profile { position: static; }
  .gallery__main { flex: none; height: auto; min-height: 0; aspect-ratio: 4 / 3.3; }
  .collage, .photo-pair { min-height: 480px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .stats div:nth-child(3) { border-left: 0; }
  .steps { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .logo-tab { width: 250px; height: 72px; }
  .lockup { gap: 10px; }
  .lockup img { width: 58px; height: 29px; }
  .lockup__main { font-size: 19px; }
  .lockup__top { font-size: 9px; padding-bottom: 3px; }
  .navbar { height: 72px; }
  .nav.is-open { top: 72px; }
  .menu-toggle, .donate-block { width: 64px; }
  .hero { min-height: 640px; align-items: flex-end; padding-bottom: 60px; }
  .hero__content { padding-top: 120px; }
  .doodle { display: none; }
  .banner { height: 300px; }
  .banner__content { padding-bottom: 40px; }
  .animal-grid, .help-grid, .news-grid, .footer-grid, .form { grid-template-columns: 1fr; }
  .collage, .photo-pair { min-height: 380px; }
  .stat-card { width: 160px; padding: 16px; }
  .stat-card strong { font-size: 30px; }
  .summary dl div { grid-template-columns: 1fr; gap: 2px; }
  .gallery__thumbs { gap: 8px; }
  .corner { width: 110px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Ergänzungen für die Live-Seite ---------- */
.flash { padding: 14px 18px; border-radius: 14px; background: #E8F2EF; color: var(--primary); font-weight: 700; margin-bottom: 20px; }
.errors { padding: 14px 18px; border-radius: 14px; background: #FDECEA; color: #8A1C12; margin-bottom: 20px; font-size: 15px; }
.errors ul { margin: 6px 0 0; padding-left: 18px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.empty { padding: 40px; border-radius: var(--radius); background: var(--shade); text-align: center; }
.prose { max-width: 760px; }
.prose p + p { margin-top: 16px; }
.prose h2 { font-size: 26px; margin: 32px 0 12px; }
.filter a { min-height: 48px; padding: 0 10px 0 20px; border-radius: 999px; border: 1.5px solid #DCE0DE; background: var(--white); color: var(--head); display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; }
.filter a span { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; background: var(--shade); display: grid; place-items: center; font-size: 13px; }
.filter a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--white); }
.filter a[aria-current="page"] span { background: rgba(255,255,255,.2); }

/* ---------- Redaktionelle Seiten: Fließtext und Blöcke ---------- */
.prose { max-width: 820px; }
.prose--breit { max-width: var(--container); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.4em; }
.prose h3 { font-size: 22px; margin-top: 1.3em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose a:not(.btn):not(.download):not(.link-arrow) { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--secondary); font-size: 19px; color: var(--head); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.lead-text { font-size: 20px; line-height: 1.6; color: var(--head); }

.bloecke { padding-block: clamp(48px, 7vw, 96px); }
.block + .block { margin-top: clamp(40px, 6vw, 72px); }
.block--flaeche { padding-block: clamp(48px, 6vw, 80px); background: var(--shade); }
.block--flaeche:first-child { margin-top: calc(-1 * clamp(48px, 7vw, 96px)); }
.block--flaeche:last-child { margin-bottom: calc(-1 * clamp(48px, 7vw, 96px)); }
/* Vollflächige Blöcke (Fläche, Spendenband) stoßen direkt aneinander, ohne weißen Streifen dazwischen */
:is(.block--flaeche, .cta-band) + :is(.block--flaeche, .cta-band) { margin-top: 0; }
.bloecke > .cta-band:first-child { margin-top: calc(-1 * clamp(48px, 7vw, 96px)); }
.bloecke > .cta-band:last-child { margin-bottom: calc(-1 * clamp(48px, 7vw, 96px)); }

.block-bild { margin-block: 0; max-width: 820px; }
.block-bild--breit { max-width: var(--container); }
.block-bild img { width: 100%; height: auto; border-radius: var(--radius); }
.block-bild figcaption { margin-top: 10px; font-size: 15px; color: var(--body); }

.bild-text__bild img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 24px; }
.bild-text--rechts .bild-text__bild { order: 2; }

.hinweis { display: flex; gap: 20px; padding: 26px 28px; border-radius: var(--radius); background: var(--shade); }
.hinweis--gruen { background: var(--primary); color: rgba(255,255,255,.9); }
.hinweis--gruen h3, .hinweis--gruen a, .prose .hinweis--gruen a:not(.btn):not(.download):not(.link-arrow) { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.hinweis--gruen .icon-circle { background: var(--secondary); }
.hinweis--gold { background: #FFF4DA; border: 1px solid var(--secondary); }
.hinweis > div > * + * { margin-top: .6em; }

.knoepfe { display: flex; flex-wrap: wrap; gap: 14px; }
.knoepfe--mitte { justify-content: center; margin-inline: auto; }

.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--shade); color: var(--primary); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; }
.faq details > div > * + * { margin-top: .8em; }

.spendenkasten { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--shade); }
.spendenkasten__konto { margin: 0; display: flex; flex-direction: column; gap: 0; padding: 26px 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.spendenkasten__konto > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.spendenkasten__konto > div:first-child { border-top: 0; }
.spendenkasten__konto dt { font-family: var(--font-head); font-weight: 600; color: var(--head); }
.spendenkasten__konto dd { margin: 0; }
.spendenkasten__knoepfe { display: flex !important; flex-wrap: wrap; gap: 12px; grid-template-columns: none !important; padding-top: 18px !important; }
.iban { font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--head); font-weight: 700; }
.kopieren { margin-left: 8px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font: inherit; font-size: 13px; cursor: pointer; }
.kopieren:hover { border-color: var(--primary); color: var(--primary); }

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.galerie a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.galerie a:hover img { transform: scale(1.04); }

.download { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--head); transition: border-color .2s ease; }
.download:hover { border-color: var(--primary); }
.download strong { display: block; font-family: var(--font-head); }
.download small { font-size: 14px; color: var(--body); }

.seiten-nav { display: flex; justify-content: center; gap: 14px; margin-top: 40px; }

/* Leiste über der Live-Vorschau */
.vorschau-leiste { position: sticky; top: 0; z-index: 1000; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 8px 16px; background: var(--secondary); color: var(--on-secondary); font-size: 14px; text-align: center; }

@media (max-width: 1024px) {
  .spendenkasten { grid-template-columns: 1fr; }
  .bild-text--rechts .bild-text__bild { order: 0; }
}
@media (max-width: 640px) {
  .hinweis { flex-direction: column; }
  .spendenkasten__konto > div { grid-template-columns: 1fr; gap: 2px; }
  .galerie { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.help-grid--frei { display: flex; flex-wrap: wrap; justify-content: center; }
.help-grid--frei > * { flex: 1 1 210px; max-width: 280px; }

/* Anlaufstellen mit Telefon */
.adressen__einleitung { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.adressen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.adresse { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.adresse__tierart { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--shade); color: var(--head); font-family: var(--font-head); font-weight: 600; font-size: 13px; }
.adresse__meta { font-size: 15px; }
.adresse__hinweis { font-size: 15px; line-height: 1.55; }
.adresse__aktionen { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.adresse__telefon { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--head); }
.adresse__telefon .call__icon { width: 40px; height: 40px; }
.adresse__telefon .call__icon svg { width: 18px; height: 18px; }
.adresse__telefon:hover { color: var(--primary); }

/* Aktuelle Meldungen: gelbes Band direkt unter dem Einstieg */
.meldungen { padding-block: 22px; background: var(--secondary); color: var(--on-secondary); }
.bloecke > .meldungen:first-child { margin-top: calc(-1 * clamp(48px, 7vw, 96px)); }
.meldungen + .block { margin-top: clamp(48px, 7vw, 96px); }
.meldungen .container { display: grid; gap: 12px; }
.meldung { display: flex; align-items: center; gap: 22px; padding: 16px 22px; border-radius: var(--radius-sm); background: rgba(255,255,255,.55); color: var(--on-secondary); transition: background .2s ease, transform .2s ease; }
.meldung:hover { background: rgba(255,255,255,.85); transform: translateY(-1px); }
.meldung:focus-visible { outline: 3px solid var(--tertiary); outline-offset: 3px; }
.meldung__etikett { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--tertiary); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.meldung__etikett svg { width: 16px; height: 16px; }
.meldung__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.meldung__text small { font-size: 13px; font-weight: 600; opacity: .75; }
.meldung__text strong { font-family: var(--font-head); font-size: clamp(18px, 2vw, 22px); line-height: 1.25; color: var(--head); }
.meldung__auszug { font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meldung__pfeil { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 15px; white-space: nowrap; }
.meldung__pfeil svg { width: 16px; height: 16px; }
@media (max-width: 700px) {
  .meldung { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .meldung, .meldung:hover { transition: none; transform: none; } }

/* Sponsoren & Partner */
.sponsoren__text { max-width: 680px; margin: 0 auto 32px; text-align: center; }
.sponsoren__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.sponsor { display: grid; place-items: center; width: 240px; height: 130px; padding: 24px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s ease, transform .2s ease; }
a.sponsor:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
a.sponsor:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.sponsor img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sponsor strong { font-family: var(--font-head); font-size: 18px; color: var(--head); text-align: center; }
@media (max-width: 560px) { .sponsor { width: 100%; max-width: 320px; } }
@media (prefers-reduced-motion: reduce) { .sponsor, a.sponsor:hover { transition: none; transform: none; } }

/* ffmedia-Standard: Copyright, Credit-Zeile, Scroll-to-Top */
.footer-copy { margin: 0; }
.footer-credit { margin: 0 auto; padding: 14px var(--gutter) 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: rgba(255,255,255,.55); text-align: center; }
.footer-credit a { color: rgba(255,255,255,.8); font-weight: 600; }
.footer-credit a:hover { color: var(--secondary); }
.footer-credit .heart { color: var(--secondary); }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 999px; cursor: pointer; background: var(--secondary); color: var(--on-secondary); box-shadow: 0 4px 16px rgba(0,0,0,.28); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
@media (max-width: 40rem) { .footer-bottom { padding-bottom: 4.5rem; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Mitmach-Formular: Auswahl als anklickbare Chips */
.mitmachen__eyebrow { font-family: var(--font-hand); font-size: 26px; color: var(--secondary); line-height: 1; }
.chips { margin: 0; padding: 0; border: 0; min-width: 0; min-inline-size: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { width: 100%; margin-bottom: 10px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--head); }
.chips legend small, .field small { font-weight: 400; color: var(--body); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font-size: 15px; color: var(--head); transition: background .15s ease, border-color .15s ease, color .15s ease; }
.chip:hover span { border-color: var(--primary); }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--white); }
.chip input:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--secondary); outline-offset: 2px; }
.mitmachen__hinweis { margin: -8px 0 0; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .chip span { transition: none; } }
.field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23181717' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 44px; cursor: pointer; }

/* Patenschaft */
.patenschaft__konto { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); font-size: 15px; }
.patenschaft__konto strong { color: var(--white); font-family: var(--font-head); margin-bottom: 4px; }
.patenschaft__konto small { margin-top: 6px; opacity: .8; }
.patenschaft__klein { margin: 0; font-size: 14px; }
.chip--eigen span { gap: 6px; }
.chip__betrag { width: 72px; min-height: 30px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--head); background: var(--white); }
.chip input:checked + span .chip__betrag { color: var(--head); }
.chips__hinweis { width: 100%; font-size: 14px; color: var(--body); }
.pate-link { font-weight: 700; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* „hidden“ muss immer gewinnen (sonst überschreibt z. B. .field { display: flex } das Attribut) */
[hidden] { display: none !important; }
/* Formulare dürfen nie breiter als ihr Platz werden: Auswahlfelder sind sonst so breit wie ihr längster Eintrag */
.inquiry > *, .form > *, .field { min-width: 0; }
.field select, .field input, .field textarea { width: 100%; max-width: 100%; }
.chip__betrag { width: 72px !important; }

/* Vermisst */
.badge--rot { background: #B3261E; color: #fff; }
