/* ==========================================================================
   Hand hilft Pfote – Stylesheet
   Alle Schriften liegen lokal in /assets/fonts. Keine externen Ressourcen.
   ========================================================================== */

/* ---------- Schriften (lokal gehostet) ---------- */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-700italic.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Farben & Grundwerte ---------- */
:root {
  --rot: #a50d0d;          /* Kopfzeile, Akzente */
  --rot-dunkel: #7d0909;
  --text: #1b1b1b;
  --text-hell: #444444;
  --grau-bg: #f2f2f2;
  --weiss: #ffffff;
  --breite: 1100px;
  --radius-gross: 48px;
  --schrift: "Roboto", Arial, Helvetica, sans-serif;
  --schrift-titel: "Raleway", "Roboto", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
}

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

a { color: var(--rot); text-underline-offset: 2px; }
a:hover { color: var(--rot-dunkel); }

:focus-visible { outline: 3px solid #f2c200; outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--schrift-titel);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.06rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); }

p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--weiss); color: var(--text); padding: .6rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Kopfzeile ---------- */
.site-header { background: var(--rot); color: var(--weiss); position: relative; z-index: 10; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: .75rem;
}
.logo { display: block; line-height: 0; }
.logo img { width: 140px; height: auto; }

.nav-toggle {
  display: none;
  background: none; border: 0; color: var(--weiss); cursor: pointer;
  padding: .5rem; line-height: 0;
}
.nav-toggle svg { width: 32px; height: 32px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.main-nav a {
  color: var(--weiss); text-decoration: none; display: inline-block;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: rgba(255,255,255,.6); color: var(--weiss); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--weiss); }

@media (max-width: 860px) {
  .js .nav-toggle { display: block; }
  .js .main-nav { display: none; width: 100%; }
  .js .main-nav.offen { display: block; }
  .site-header .container { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; gap: 0; padding-bottom: .5rem; }
  .main-nav a { padding: .6rem 0; font-size: 1.1rem; }
  .logo img { width: 120px; }
}

/* ---------- Bühne (Titelbild mit schräger, abgerundeter Kante) ---------- */
.hero-wrap { background: linear-gradient(var(--rot) 0 30%, var(--weiss) 30% 100%); padding: 1rem 0 2rem; }
.hero {
  position: relative; color: var(--weiss);
  background-color: #444;
  background-size: cover; background-position: center;
  border-radius: var(--radius-gross) 0 var(--radius-gross) 0;
  transform: skewY(-3deg);
  margin: 0;
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.hero-inhalt {
  position: relative; transform: skewY(3deg);
  min-height: 420px; display: flex; flex-direction: column; justify-content: center;
  padding-block: 4.5rem;
}
.hero h1, .hero h2, .hero a { color: var(--weiss); }
.hero-inhalt.zweispaltig {
  display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem; align-items: center;
}
.hero .untertitel { font-family: var(--schrift); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.75rem); margin: 0; }
.hero-klein .hero-inhalt { min-height: 260px; }
@media (max-width: 760px) {
  .hero-inhalt.zweispaltig { grid-template-columns: 1fr; gap: 1rem; }
  .hero-inhalt { padding-block: 3.5rem; }
  .hero { border-radius: 32px 0 32px 0; }
}

/* Titelbilder je Seite (mobil kleinere Datei) */
.bg-startseite     { background-image: url("../../bilder/seiten/startseite-800.webp"); }
.bg-weihnachten    { background-image: url("../../bilder/seiten/weihnachten-katze-800.webp"); }
.bg-vergangene     { background-image: url("../../bilder/seiten/vergangene-aktionen-800.webp"); }
.bg-impressum      { background-image: url("../../bilder/seiten/impressum-800.webp"); }
.bg-datenschutz    { background-image: url("../../bilder/seiten/datenschutz-800.webp"); }
@media (min-width: 801px) {
  .bg-startseite   { background-image: url("../../bilder/seiten/startseite-1600.webp"); }
  .bg-weihnachten  { background-image: url("../../bilder/seiten/weihnachten-katze-1600.webp"); }
  .bg-vergangene   { background-image: url("../../bilder/seiten/vergangene-aktionen-1600.webp"); }
  .bg-impressum    { background-image: url("../../bilder/seiten/impressum-1600.webp"); }
  .bg-datenschutz  { background-image: url("../../bilder/seiten/datenschutz-1600.webp"); }
}

/* ---------- Spendenbox ---------- */
.spenden p { margin-bottom: .9em; }
.spenden strong { display: block; }
.iban { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: 3.5rem; }
.abschnitt-grau { background: var(--grau-bg); }

.drei-spalten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.drei-spalten h3 { min-height: 1.2em; }
.akzent h3, .akzent p { color: var(--rot); }
@media (max-width: 860px) { .drei-spalten { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; margin-top: 2.5rem; }
.person { display: grid; grid-template-columns: 130px 1fr; gap: 0 1.25rem; align-items: start; }
.person img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; grid-row: span 2; }
.person h3 { margin: .6rem 0 .1rem; }
.person .rolle { font-weight: 700; font-size: .9rem; color: var(--text-hell); margin: 0 0 1rem; }
.person .beschreibung { grid-column: 2; }
@media (max-width: 760px) {
  .team { grid-template-columns: 1fr; }
  .person { grid-template-columns: 96px 1fr; }
  .person img { width: 96px; height: 96px; }
  .person .beschreibung { grid-column: 1 / -1; margin-top: 1rem; }
}

/* ---------- Jahreschronik (Vergangene Aktionen) ---------- */
.chronik { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
.chronik li { text-align: center; }
.chronik img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 50% / 34%; }
.chronik h2 { color: var(--rot); font-family: var(--schrift); font-size: 1.6rem; margin: 1.2rem 0 .8rem; }
.chronik p { font-size: .95rem; max-width: 28rem; margin-inline: auto; }
.chronik .ohne-bild { aspect-ratio: 3 / 2; border-radius: 50% / 34%; background: var(--grau-bg); display: grid; place-items: center; }
.chronik .ohne-bild img { width: 45%; aspect-ratio: auto; border-radius: 0; opacity: .6; }
@media (max-width: 640px) { .chronik { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */
.galerie-bereich {
  background-color: var(--grau-bg);
  background-image: linear-gradient(rgba(242,242,242,.86), rgba(242,242,242,.86)), url("../../bilder/seiten/winterwald-1600.webp");
  background-size: cover; background-position: center; background-attachment: scroll;
}
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.galerie a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.galerie img { width: 100%; aspect-ratio: 600 / 340; object-fit: cover; }
@media (max-width: 640px) { .galerie { grid-template-columns: 1fr; gap: 1rem; } }

/* Großansicht (nur mit JavaScript; ohne JS öffnet der Link das Bild direkt) */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh;
}
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; margin: auto; border-radius: 6px; }
.lightbox-leiste { display: flex; justify-content: center; gap: .75rem; margin-top: .75rem; }
.lightbox button {
  font: inherit; font-size: 1rem; cursor: pointer;
  background: var(--weiss); color: var(--text); border: 0; border-radius: 999px; padding: .5rem 1.1rem;
}

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */
.textseite { max-width: 52rem; }
.textseite h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.textseite h3 { margin-top: 1.6rem; font-size: 1.25rem; font-family: var(--schrift); font-weight: 700; }
.textseite address { font-style: normal; margin-bottom: 1em; }
.textseite ul { padding-left: 1.25rem; }
.textseite li { margin-bottom: .4em; }
.stand { color: var(--text-hell); font-size: .9rem; }
.bildnachweise { columns: 2 16rem; font-size: .9rem; padding-left: 1.25rem; }

/* Platzhalter, die noch ausgefüllt werden müssen – fallen bewusst auf */
.platzhalter { background: #fff3a8; color: #000; padding: 0 .25em; border-radius: 3px; outline: 1px dashed #b38f00; }

/* ---------- Fußzeile ---------- */
.site-footer { padding: 2.5rem 0 2rem; text-align: center; border-top: 1px solid #e5e5e5; }
.site-footer nav ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; }
.site-footer nav a { color: var(--text-hell); text-decoration: none; padding: .3rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { color: var(--rot); border-bottom-color: var(--rot); }
.kontakt-zeile { margin: 0 0 1rem; color: var(--text-hell); font-size: .95rem; }
.social { display: flex; justify-content: center; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.social a {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--rot); color: var(--weiss);
}
.social a:hover { background: var(--rot-dunkel); color: var(--weiss); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Fehlerseite ---------- */
.fehler { text-align: center; padding-block: 4rem; }
.fehler .gross { font-size: 5rem; font-family: var(--schrift-titel); color: var(--rot); margin: 0; line-height: 1; }

@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  .hero { transform: none; color: #000; background: none !important; }
  .hero::before { display: none; }
  .hero-inhalt { transform: none; }
  .hero h1, .hero h2, .hero a { color: #000; }
}
