/* Bürger helfen Bürgern – Iserlohn e.V. – gemeinsames Stylesheet.
   Systemschriften, keine externen Ressourcen. */

:root {
  --gruen-dunkel: #1d4d2f;
  --gruen: #236b3d;
  --gruen-hell: #eef6f0;
  --text: #1f2420;
  --text-leise: #4a524c;
  --rand: #d5ddd7;
  --hintergrund: #ffffff;
  --paypal: #ffc439;
  --platzhalter: #fff3cd;
  --platzhalter-rand: #b58100;
  --max: 68rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--gruen); text-underline-offset: 0.15em; }
a:hover { color: var(--gruen-dunkel); }
a:focus-visible, .knopf:focus-visible, summary:focus-visible {
  outline: 3px solid #f2a900;
  outline-offset: 2px;
}

h1, h2, h3, h4 { line-height: 1.25; color: var(--gruen-dunkel); overflow-wrap: break-word; }
.rechtstext h2, .rechtstext h3 { hyphens: auto; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
h4 { font-size: 1.05rem; margin: 1.25rem 0 0.4rem; }

.springen {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--text); padding: 0.5rem 1rem; z-index: 10;
}
.springen:focus { left: 1rem; top: 1rem; }

.inhalt-breite { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* Kopf */
.kopf { background: var(--gruen-dunkel); color: #fff; }
.kopf .inhalt-breite {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.5rem 1.5rem;
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.marke { display: flex; align-items: center; gap: 0.75rem; color: #fff; text-decoration: none; }
.marke:hover { color: #fff; }
.marke img { width: 56px; height: 56px; }
.marke span { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.marke small { display: block; font-weight: 400; font-size: 0.85rem; }

.navigation ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.25rem; align-items: center;
}
.navigation a {
  display: inline-block; padding: 0.4rem 0.6rem; color: #fff;
  text-decoration: none; border-radius: 4px;
}
.navigation a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.navigation a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
.navigation a.nav-spenden { background: var(--paypal); color: #1b1b1b; font-weight: 700; }
.navigation a.nav-spenden:hover { background: #ffd466; color: #1b1b1b; }

main { display: block; padding: 2rem 0 3rem; }

/* Knöpfe */
.knopf {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: 6px;
  font-weight: 700; text-decoration: none; text-align: center;
  border: 2px solid transparent;
}
.knopf-paypal { background: var(--paypal); color: #1b1b1b; font-size: 1.1rem; }
.knopf-paypal:hover { background: #ffd466; color: #1b1b1b; }
.knopf-zweit { background: #fff; color: var(--gruen-dunkel); border-color: var(--gruen-dunkel); }
.knopf-zweit:hover { background: var(--gruen-hell); }

/* Startseite: Einstieg mit Spenden */
.einstieg {
  display: grid; gap: 1.5rem; align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 52rem) {
  .einstieg { grid-template-columns: 1.1fr 1fr; gap: 2.5rem; }
}
.einstieg .leitsatz { font-size: 1.2rem; color: var(--text-leise); margin: 0 0 1rem; }

.spenden-kasten {
  background: var(--gruen-hell); border: 2px solid var(--gruen);
  border-radius: 10px; padding: 1.25rem;
}
.spenden-kasten h2 { margin-top: 0; }
.spenden-kasten .knopf-paypal { width: 100%; }
.spenden-kasten .hinweis { font-size: 0.95rem; color: var(--text-leise); margin: 0.5rem 0 0; }

.konto { margin: 1rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.75rem; }
.konto dt { font-weight: 700; }
.konto dd { margin: 0; overflow-wrap: anywhere; }
.iban { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.02em; }

/* Raster und Karten */
.raster { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .raster-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 52rem) { .raster-4 { grid-template-columns: repeat(4, 1fr); } .raster-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) and (max-width: 51.99rem) { .raster-4, .raster-3 { grid-template-columns: 1fr 1fr; } }

.karte { border: 1px solid var(--rand); border-radius: 8px; padding: 1rem 1.1rem; background: #fff; }
.karte h3 { margin-top: 0; }
.karte p:last-child { margin-bottom: 0; }

.bild-text { display: grid; gap: 1rem 2rem; grid-template-columns: 1fr; margin: 2rem 0; }
@media (min-width: 52rem) { .bild-text { grid-template-columns: 1fr 1fr; align-items: center; } }
.bild-text img, .bild-breit { border-radius: 8px; }
.bild-text h2, .bild-text h3 { margin-top: 0; }

figure { margin: 0; }

/* Team */
.team { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.team li { text-align: left; }
.team img { border-radius: 8px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.team h2 { margin: 0.75rem 0 0; font-size: 1.2rem; }
.team .rolle { margin: 0 0 0.4rem; color: var(--text-leise); font-weight: 600; }

/* Infozeilen */
.infobox { background: var(--gruen-hell); border-left: 4px solid var(--gruen); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.infobox p { margin: 0.25rem 0; }

.platzhalter {
  background: var(--platzhalter); border: 1px dashed var(--platzhalter-rand);
  padding: 0 0.3em; border-radius: 3px; font-weight: 700;
}
.pruefhinweis {
  background: var(--platzhalter); border: 1px solid var(--platzhalter-rand);
  padding: 0.75rem 1rem; border-radius: 6px; margin: 0 0 1.5rem;
}

.rechtstext { max-width: 48rem; }
.rechtstext h2 { font-size: 1.4rem; }
.rechtstext h3 { font-size: 1.15rem; }
.rechtstext p, .rechtstext li { overflow-wrap: anywhere; }

/* Fuß */
.fuss { background: var(--gruen-dunkel); color: #fff; padding: 2rem 0 1.25rem; }
.fuss a { color: #fff; }
.fuss h2 { color: #fff; font-size: 1.15rem; margin: 0 0 0.5rem; }
.fuss .raster { gap: 1.5rem; }
.fuss p { margin: 0.2rem 0; }
.fuss .konto { margin-top: 0; }
.fuss-unten {
  border-top: 1px solid rgba(255,255,255,0.3); margin-top: 1.5rem; padding-top: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.95rem;
}
.fuss-unten ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; }

.text-abschnitt { margin: 2rem 0; }
.text-abschnitt h2 { margin-top: 0; }
