/* Gemeinsames Stylesheet für die NABU-Gruppenseiten (Mitgliederwerbeaktion) */
:root {
  --nabu-blau: #0069b4;
  --nabu-dunkel: #00477e;
  --nabu-gruen: #76b82a;
  --nabu-gruen-dunkel: #5a9210;
  --hell: #f4f8fb;
  --text: #1d2d3a;
  --grau: #5b6b78;
  --rand: #d8e4ee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--hell);
  line-height: 1.6;
}

/* Kopfbereich */
.kopfzeile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  max-width: 56rem;
  margin: 0 auto;
  text-align: left;
}
.kopftext .untertitel { margin-left: 0; }
.logo-header {
  display: block;
  width: 11.5rem;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 1rem;
}
@media (max-width: 640px) {
  .kopfzeile { flex-direction: column; gap: 1.2rem; text-align: center; }
  .logo-header { width: 10rem; max-width: 70%; }
}

header.seite {
  background: linear-gradient(135deg, var(--nabu-dunkel), var(--nabu-blau));
  color: #fff;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}
header.seite .vorzeile {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  opacity: 0.85;
  margin: 0 0 0.4rem;
}
header.seite h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.15;
}
header.seite .untertitel {
  margin: 0.7rem auto 0;
  max-width: 42rem;
  font-size: 1.1rem;
  opacity: 0.95;
}

nav.zurueck {
  background: var(--nabu-dunkel);
  padding: 0.4rem 1.5rem;
}
nav.zurueck a {
  color: #cfe6f7;
  text-decoration: none;
  font-size: 0.95rem;
}
nav.zurueck a:hover { color: #fff; text-decoration: underline; }

main {
  max-width: 62rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Einleitung */
.intro {
  font-size: 1.15rem;
  max-width: 46rem;
  margin: 0 auto 2rem;
  text-align: center;
}

/* Kennzahlen */
.zahlen {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}
.zahl {
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: 12px;
  padding: 1.2rem 1.6rem;
  text-align: center;
  min-width: 10rem;
  flex: 0 1 14rem;
}
.zahl .wert {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--nabu-blau);
  line-height: 1.1;
}
.zahl .label {
  display: block;
  margin-top: 0.3rem;
  color: var(--grau);
  font-size: 0.95rem;
}

/* Projektabschnitte */
h2.abschnitt {
  color: var(--nabu-dunkel);
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem;
  text-align: center;
}
.projekt {
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: 14px;
  overflow: hidden;
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
}
.projekt .bild, .projekt .text { flex: 1 1 20rem; }
.projekt .bild img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
  display: block;
}
.projekt .text { padding: 1.4rem 1.6rem; }
.projekt h3 {
  margin: 0 0 0.5rem;
  color: var(--nabu-blau);
  font-size: 1.3rem;
}
.projekt p { margin: 0.4rem 0; }
.projekt .quelle-bild {
  font-size: 0.8rem;
  color: var(--grau);
  margin-top: 0.8rem;
}

/* Kachel-Raster (für kurze Aktivitäten) */
.raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.kachel {
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.kachel img { width: 100%; height: 11rem; object-fit: cover; display: block; }
.kachel .inhalt { padding: 1rem 1.2rem 1.2rem; }
.kachel h3 { margin: 0 0 0.4rem; font-size: 1.1rem; color: var(--nabu-blau); }
.kachel p { margin: 0; font-size: 0.97rem; }

/* Bildergalerie */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.galerie figure { margin: 0; }
.galerie img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.galerie figcaption {
  font-size: 0.88rem;
  color: var(--grau);
  margin-top: 0.35rem;
}

/* Logos (z.B. Kinder-/Jugendgruppen) */
.logos {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.logos img { width: 8.5rem; height: 8.5rem; border-radius: 50%; object-fit: cover; }

/* Mitmach-Box */
.mitmachen {
  background: linear-gradient(135deg, var(--nabu-gruen-dunkel), var(--nabu-gruen));
  color: #fff;
  border-radius: 14px;
  padding: 1.8rem 2rem;
  margin: 2.5rem 0 1.5rem;
}
.mitmachen h2 { margin: 0 0 0.6rem; font-size: 1.5rem; }
.mitmachen p { margin: 0.4rem 0; }
.mitmachen a { color: #fff; font-weight: 600; }

/* Kontakt */
.kontakt {
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: 14px;
  padding: 1.4rem 2rem;
  margin: 1.5rem 0;
}
.kontakt h2 { margin: 0 0 0.5rem; color: var(--nabu-dunkel); font-size: 1.3rem; }
.kontakt p { margin: 0.25rem 0; }
.kontakt a { color: var(--nabu-blau); }

/* Hinweis (fehlendes Material o.ä.) */
.hinweis {
  background: #fff8e1;
  border: 1px solid #e6c860;
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

footer.seite {
  background: var(--nabu-dunkel);
  color: #b9d3e8;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.88rem;
}
footer.seite a { color: #dcecf9; }

/* Übersicht (index) */
.gruppen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.4rem;
  margin: 2rem 0;
}
.gruppe-karte {
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gruppe-karte:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 71, 126, 0.18);
}
.gruppe-karte img { width: 100%; height: 12rem; object-fit: cover; display: block; }
.gruppe-karte .inhalt { padding: 1.1rem 1.3rem 1.3rem; }
.gruppe-karte h2 { margin: 0 0 0.3rem; font-size: 1.25rem; color: var(--nabu-blau); }
.gruppe-karte p { margin: 0; font-size: 0.95rem; color: var(--grau); }

@media print {
  header.seite, .mitmachen { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  nav.zurueck { display: none; }
  .projekt, .kachel, .zahl { break-inside: avoid; }
}
