/* Öffentliche Website.
   Warmes Papier, Serifen-Überschriften (Fraunces), ruhiger Fließtext (Inter),
   weiße Karten mit Foto oben, ein Orange für alles, was man anklicken soll. */

:root {
  /* Schwarz mit Sonnengelb als Akzent */
  --bg: #f6f6f4;
  --surface: #ffffff;
  --ink: #0d0d0d;
  --muted: #5a5a57;
  --brand: #111111;
  --brand-ink: #ffffff;
  --accent: #f0b429;
  --accent-ink: #111111;
  --herz: #d64545;
  --line: #e2e2de;
  --soft: #ecece8;
  --fokus: #111111;
  --footer-bg: #0d0d0d;
  --footer-ink: #f4f4f2;
  --footer-muted: #a6a6a2;
  /* dunklere Varianten für Text auf hellen Flächen (Kontrast ≥ 4,5:1) */
  --brand-text: #111111;
  --accent-text: #7a5300;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px -8px rgb(0 0 0 / .16);
  --shadow-hover: 0 2px 4px rgb(0 0 0 / .08), 0 22px 44px -14px rgb(0 0 0 / .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --f-kopf: "Fraunces", Georgia, "Times New Roman", serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --surface: #161616;
    --ink: #f2f2f0;
    --muted: #a3a3a0;
    --brand: #f2f2f0;
    --brand-ink: #0a0a0a;
    --accent: #f5c04a;
    --accent-ink: #111111;
    --herz: #f07070;
    --line: #2a2a2a;
    --soft: #1a1a1a;
    --fokus: #f5c04a;
    --footer-bg: #000000;
    --footer-ink: #f2f2f0;
    --footer-muted: #a3a3a0;
    --brand-text: #ffffff;
    --accent-text: #f5c04a;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -8px rgb(0 0 0 / .7);
    --shadow-hover: 0 2px 4px rgb(0 0 0 / .5), 0 22px 44px -14px rgb(0 0 0 / .9);
    color-scheme: dark;
  }
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

::selection {
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--ink);
}

body {
  accent-color: var(--brand);
  caret-color: var(--brand);
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased;
  /* Fußzeile bleibt auch bei kurzen Seiten am unteren Rand */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3 {
  font-family: var(--f-kopf);
  font-weight: 560;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

.alt {
  background: var(--soft);
}

/* Kleine Zeile über einer Überschrift */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  flex: none;
}

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 44em;
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 1.2rem/1.2 var(--f-kopf);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-paw {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--brand);
  fill: var(--brand-ink);
  flex: none;
  transition: transform .4s var(--ease);
}

.wordmark:hover .wordmark-paw {
  transform: rotate(-14deg) scale(1.06);
}

.nav nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav nav a {
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: .93rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}

.nav nav a:hover {
  color: var(--ink);
  background: var(--soft);
}

.nav nav a[aria-current="page"] {
  color: var(--brand-ink);
  background: var(--brand);
  font-weight: 600;
}

/* ---------- Buttons und Links ---------- */

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-ink);
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 12px 26px;
  font: 600 .95rem var(--f-text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand) 80%, transparent);
  transition: background .15s ease, transform .2s var(--ease), box-shadow .2s var(--ease);
}

.btn:hover {
  background: color-mix(in srgb, var(--brand) 88%, black);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--brand) 90%, transparent);
}

.btn:active {
  transform: translateY(0);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
  box-shadow: none;
}

.btn.ghost:hover {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--ink) 40%, transparent);
  box-shadow: none;
}

.btn:disabled {
  opacity: .6;
  cursor: progress;
}

/* Textlink „mehr dazu“ */
.mehr {
  font-weight: 600;
  font-size: .95rem;
  color: var(--brand-text);
  text-decoration: none;
}

.mehr::after {
  content: " →";
  display: inline-block;
  margin-left: 2px;
  transition: transform .2s var(--ease);
}

.mehr:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mehr:hover::after {
  transform: translateX(4px);
}

/* ---------- Startseite: Auftakt ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0 96px;
  background:
    radial-gradient(55% 65% at 92% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--ink) 5%, transparent), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 64px;
  align-items: center;
}

.hero-grid.ohne-bild {
  grid-template-columns: 1fr;
}

.hero-grid.ohne-bild .hero-copy {
  max-width: 780px;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  line-height: 1.16;
  margin-bottom: .7em;
}

.hero h1 em {
  font-style: italic;
  color: var(--brand-text);
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 45%, transparent) 62%);
  padding: 0 .08em;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-figure {
  position: relative;
  margin: 0;
}

/* versetzte Fläche hinter dem Foto */
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 24px -18px -18px 24px;
  border-radius: calc(var(--radius) + 6px);
  background: var(--brand);
  z-index: -1;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius) + 6px);
  background: var(--soft);
  box-shadow: var(--shadow-hover);
}

/* Name und Link als schwebende Karte über dem Foto */
.hero-figure figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: .9rem;
  color: var(--muted);
}

.hero-figure figcaption strong {
  font: 600 1.1rem var(--f-kopf);
  color: var(--ink);
  margin-right: 8px;
}

/* ---------- Hunde / Karten ---------- */

.kopfzeile {
  margin-bottom: 34px;
}

.kopfzeile h1,
.kopfzeile h2 {
  margin-bottom: .45em;
}

.kopfzeile--reihe {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
}

.kopfzeile--reihe h2 {
  margin-bottom: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: auftauchen .5s var(--ease) both;
}

.card:nth-child(2) { animation-delay: .07s; }
.card:nth-child(3) { animation-delay: .14s; }
.card:nth-child(n+4) { animation-delay: .2s; }

@keyframes auftauchen {
  from { opacity: 0; transform: translateY(14px); }
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pic {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.pic svg.paw {
  width: 72px;
  height: 72px;
  fill: color-mix(in srgb, var(--ink) 22%, transparent);
}

/* Eigene Platzhalterfarbe aus dem Admin-Bereich ist immer hell */
.pic[style] svg.paw {
  fill: rgb(27 42 35 / .22);
}

.pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.card:hover .pic img {
  transform: scale(1.04);
}

.fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgb(0 0 0 / .15);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s var(--ease);
}

.fav:hover {
  transform: scale(1.08);
}

.fav.active svg {
  animation: herz .35s var(--ease);
}

@keyframes herz {
  50% { transform: scale(1.3); }
}

.fav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.fav.active svg {
  fill: var(--herz);
  stroke: var(--herz);
}

.card .body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card h2,
.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.card .meta {
  color: var(--muted);
  font-size: .88rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: var(--soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: .78rem;
  font-weight: 600;
}

.card .text {
  color: var(--muted);
  font-size: .95rem;
  overflow-wrap: break-word;
}

.card .body .btn {
  margin-top: auto;
}

/* ein wenig Luft, wenn der Knopf direkt auf den Text folgt */
.card .body > :nth-last-child(2) {
  margin-bottom: 8px;
}

.empty {
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.empty p {
  color: var(--muted);
  margin-bottom: 10px;
}

.empty strong {
  color: var(--ink);
  font: 600 1.15rem var(--f-kopf);
}

.empty .btn {
  margin-top: 12px;
}

.loading {
  color: var(--muted);
  padding: 24px 0;
}

/* ---------- Aktuelles ---------- */

.aktuelles {
  max-width: 860px;
}

.meldung {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px 40px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.meldung:last-child {
  border-bottom: 1px solid var(--line);
}

.meldung.ohne-bild {
  grid-template-columns: minmax(0, 1fr);
}

.meldung-bild img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.meldung h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: .5em;
}

/* Zeilenumbrüche aus dem Admin-Bereich bleiben erhalten */
.meldung-text {
  color: var(--muted);
  font-size: 1.05rem;
  white-space: pre-line;
  overflow-wrap: break-word;
}

.meldung .mehr {
  display: inline-block;
  margin-top: 12px;
}

/* ---------- Startseite: Mithelfen ---------- */

.helfen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 34px;
}

.kachel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.kachel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.kachel-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 6px;
}

.kachel-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.kachel--pflege .kachel-icon {
  background: color-mix(in srgb, var(--brand) 13%, transparent);
  color: var(--brand-text);
}

.kachel--spenden .kachel-icon {
  background: color-mix(in srgb, var(--herz) 14%, transparent);
  color: var(--herz);
}

.kachel h3 {
  margin: 0;
}

.kachel p {
  color: var(--muted);
}

.kachel .mehr {
  margin-top: auto;
  padding-top: 6px;
}

/* ---------- Fließtext-Seiten: Über uns, Adoption, Spenden ---------- */

.spalte {
  max-width: 720px;
}

.spalte > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.spalte > p + p {
  margin-top: 1.1em;
}

.spalte > p.gross {
  color: var(--ink);
  font: 500 1.4rem/1.45 var(--f-kopf);
  margin-bottom: 1.3em;
}

.spalte > h2 {
  font-size: 1.6rem;
  margin: 2.2em 0 .5em;
}

.spalte > .eyebrow + h2 {
  margin-top: 0;
}

.spalte a:not(.btn) {
  color: var(--brand-text);
  text-underline-offset: 3px;
}

/* Hervorgehobener Kasten im Fließtext */
.kasten {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 36px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.kasten {
  border-left: 4px solid var(--accent);
}

.kasten p {
  color: var(--ink);
  font-size: 1.05rem;
}

.spalte > p.erlaubnis {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}

/* Adoption: die Schritte nacheinander */
.schritte {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  counter-reset: schritt;
}

.schritte li {
  counter-increment: schritt;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  column-gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.schritte li:last-child {
  border-bottom: 1px solid var(--line);
}

.schritte li::before {
  content: counter(schritt);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--brand);
  font: 600 1.25rem/1 var(--f-kopf);
  color: var(--brand-ink);
}

.schritte h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.schritte p {
  color: var(--muted);
}

/* Häufige Fragen: Frage und Antwort offen untereinander */
.fragen {
  margin: 28px 0 0;
}

.fragen dt {
  font: 600 1.12rem/1.3 var(--f-kopf);
  margin-top: 26px;
}

.fragen dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.fragen a {
  color: var(--brand-text);
  text-underline-offset: 3px;
}

/* ---------- Spenden ---------- */

.spenden-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px 64px;
  align-items: start;
}

.spenden-grid .spalte > p:not(.eyebrow) {
  font-size: 1rem;
}

/* PayPal-Adresse zum Abtippen oder Kopieren */
.spalte > p.paypal {
  display: grid;
  gap: 2px;
  margin: 16px 0 28px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.paypal span {
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.paypal strong {
  font-size: 1.15rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  user-select: all;
}

.paypal small {
  font-size: .88rem;
  color: var(--muted);
}

.kosten {
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.kosten h2 {
  font-size: 1.4rem;
  margin-bottom: .3em;
}

.kosten > p {
  color: var(--muted);
  font-size: .93rem;
}

.posten {
  margin: 18px 0;
}

.posten > div {
  display: grid;
  grid-template-columns: 4.2em minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.posten > div:last-child {
  border-bottom: 1px solid var(--line);
}

.posten dt {
  font: 600 1.2rem/1.2 var(--f-kopf);
  color: var(--brand-text);
  white-space: nowrap;
}

.posten dd {
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
}

/* ---------- Kontakt / Formular ---------- */

.kontakt-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 40px 64px;
  align-items: start;
}

.besuch {
  margin-top: 26px;
  font-size: .98rem;
}

.besuch span {
  display: block;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.besuch a {
  color: var(--brand-text);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.form {
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: grid;
  gap: 7px;
  color: var(--muted);
}

input, select, textarea {
  font: 400 1rem var(--f-text);
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:hover, select:hover, textarea:hover {
  border-color: color-mix(in srgb, var(--ink) 30%, transparent);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--fokus);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fokus) 16%, transparent);
}

.btn:focus-visible, .fav:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form-status {
  font-weight: 600;
  font-size: .92rem;
  flex: 1 1 220px;
}

.form-status.erfolg {
  color: var(--accent-text);
}

.form-status.fehler {
  color: var(--brand-text);
}

.form-hinweis {
  font-size: .86rem;
  color: var(--muted);
}

.form-hinweis a {
  color: var(--ink);
}

/* Spam-Falle: für Menschen unsichtbar, für Bots ein normales Feld */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  padding: 56px 0 calc(56px + env(safe-area-inset-bottom));
  color: var(--footer-muted);
  font-size: .88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 16px 40px;
  align-items: start;
}

.footer-grid p + p {
  margin-top: 4px;
}

.footer-name {
  color: var(--footer-ink);
  font: 600 1.1rem/1.3 var(--f-kopf);
  margin-bottom: 4px;
}

.footer-claim {
  max-width: 30em;
  margin-bottom: 14px;
}

footer a {
  color: var(--footer-ink);
  overflow-wrap: anywhere;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* Fehlende Pflichtangabe aus verein.py – bitte ausfüllen */
mark.fehlt {
  background: #c62828;
  color: #fff;
  padding: 0 .4em;
  border-radius: 3px;
  font-weight: 600;
}

/* ---------- Impressum, Datenschutz, Fehlerseite ---------- */

.rechtstext {
  max-width: 760px;
}

.rechtstext h1 {
  margin-bottom: .6em;
}

.rechtstext h2 {
  font-size: 1.35rem;
  margin: 2em 0 .5em;
}

.rechtstext h3 {
  font-size: 1.05rem;
  margin: 1.4em 0 .4em;
}

.rechtstext p,
.rechtstext li {
  color: var(--muted);
  overflow-wrap: break-word;
}

.rechtstext p + p {
  margin-top: .8em;
}

.rechtstext ul {
  padding-left: 1.2em;
  margin: .6em 0;
}

.rechtstext strong {
  color: var(--ink);
}

.rechtstext a {
  color: var(--ink);
}

.stand {
  margin-top: 2.5em;
  font-size: .85rem;
}

.fehlerseite {
  text-align: center;
  padding: 120px 0;
}

.fehlerseite p {
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 32em;
}

/* ---------- Barrierefreiheit ---------- */

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 4px;
}

.skip:focus {
  top: 12px;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  section {
    padding: 52px 0;
  }

  .wrap {
    padding: 0 20px;
  }

  /* Navigation rutscht unter den Namen und bricht bei Bedarf um */
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 12px;
    padding-bottom: 8px;
  }

  /* Menü als eine wischbare Zeile statt mehrerer umbrechender Zeilen */
  .nav nav {
    margin: 0 -20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 28px), transparent);
  }

  .nav nav::-webkit-scrollbar {
    display: none;
  }

  .nav nav ul {
    padding: 0 20px;
    width: max-content;
  }

  .nav nav a {
    font-size: .9rem;
    padding: 6px 12px;
  }

  .hero-figure::before {
    inset: 16px -10px -10px 16px;
  }

  .hero {
    padding: 44px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-figure {
    max-width: 420px;
  }

  .helfen,
  .spenden-grid,
  .kontakt-grid {
    grid-template-columns: 1fr;
  }

  .meldung {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .meldung-bild {
    max-width: 240px;
  }

  .kachel {
    padding: 24px 22px;
  }

  .kasten,
  .kosten,
  .form {
    padding: 22px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
