/*
 * Gemeinsam für unsere Städte – Stylesheet
 * Lizenz: EUPL-1.2 (siehe LICENSE). Gilt für den Code, nicht für Texte und Bilder.
 *
 * Farben und Schrift sind von der bisherigen WordPress-Seite übernommen,
 * damit die Seite vertraut aussieht.
 */

/* Schrift lokal eingebunden: kein Abruf bei Google, keine IP-Weitergabe an Dritte */
@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("../schriften/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../schriften/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: italic; font-display: swap; src: url("../schriften/poppins-400i.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../schriften/poppins-600.woff2") format("woff2"); }

:root {
  --blau: #0e4d8b;
  --blau-dunkel: #0a3a69;
  --tuerkis: #44babc;
  --tuerkis-dunkel: #2f8f91; /* für Text auf Weiß, damit der Kontrast reicht */
  --hell: #f3f5f8;
  --grau: #c8d5dc;
  --text: #1c2b3a;
  --weiss: #ffffff;
  --breite: 1140px;
  --rund: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
}

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

a { color: var(--blau); }
a:hover { color: var(--tuerkis-dunkel); }

h1, h2, h3, h4 { font-weight: 600; color: var(--blau); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }

.inhalt { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 16px; }
.abschnitt { padding: 72px 0; }
.abschnitt--hell { background: var(--hell); }
.zentriert { text-align: center; }

.sprunglink { position: absolute; left: -9999px; }
.sprunglink:focus { left: 16px; top: 16px; z-index: 100; background: var(--weiss); padding: 8px 12px; }

/* ---------- Kopfbereich ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--weiss);
  box-shadow: 0 1px 0 rgba(14, 77, 139, 0.08);
}
.kopf .inhalt {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.kopf__logo img { width: 220px; }
.kopf__nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.kopf__nav a { text-decoration: none; font-weight: 400; font-size: 0.95rem; color: var(--blau); }
.kopf__nav a:hover, .kopf__nav a[aria-current="page"] { color: var(--tuerkis-dunkel); }
.kopf__nav a.knopf { color: var(--weiss); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-block;
  background: var(--tuerkis);
  color: var(--weiss);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 30px;
  border: 0;
  transition: background 0.2s;
}
.knopf:hover { background: var(--blau); color: var(--weiss); }
.knopf--eckig { border-radius: var(--rund); }
.knopf--gross { font-size: 1.15rem; padding: 14px 32px; }

/* ---------- Startseite: Einstieg ---------- */
.einstieg { padding: 96px 0 104px; }
.einstieg__dach {
  text-transform: uppercase; letter-spacing: 0.35em; font-size: 0.85rem;
  color: var(--tuerkis-dunkel); font-weight: 400; margin-bottom: 28px;
}
.einstieg h1 { border-left: 6px solid var(--blau); padding-left: 28px; max-width: 18ch; }
.einstieg__text { max-width: 60ch; font-size: 1.15rem; margin: 24px 0 0 34px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.einstieg__knoepfe { margin: 28px 0 0 34px; }
/* Zweiter Knopf: weniger auffällig, damit die Anmeldung im Vordergrund steht */
.knopf--zweitrangig { background: transparent; color: var(--blau); box-shadow: inset 0 0 0 2px var(--tuerkis); }
.knopf--zweitrangig:hover { background: var(--tuerkis); color: var(--weiss); }

/* ---------- Drei Säulen ---------- */
.saeulen { background: var(--blau); color: var(--weiss); padding: 64px 0; }
.saeulen ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px;
}
.saeulen li { text-align: center; }
.saeulen svg { width: 72px; height: 72px; margin: 0 auto 24px; fill: none; stroke: var(--weiss); stroke-width: 2.4; }
.saeulen span {
  display: block; padding-top: 22px; border-top: 3px solid var(--tuerkis);
  font-size: 1.8rem; font-weight: 600;
}
.saeulen p { margin: 12px auto 0; max-width: 32ch; font-size: 0.95rem; opacity: 0.92; }

/* ---------- Hinweis-Kasten (nächstes Treffen) ---------- */
.hinweis {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: var(--weiss); border-left: 6px solid var(--tuerkis);
  padding: 28px 32px; border-radius: var(--rund);
  box-shadow: 0 6px 24px rgba(14, 77, 139, 0.08);
}
.hinweis h2 { font-size: 1.5rem; margin-bottom: 0.3em; }
.hinweis p { margin: 0; }
@media (max-width: 700px) { .hinweis { grid-template-columns: 1fr; } }

/* ---------- Personen (Initiatoren) ---------- */
.personen {
  list-style: none; padding: 0; margin: 40px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
}
.personen li { text-align: center; }
.personen img {
  width: 150px; height: 150px; object-fit: cover; border-radius: 50%;
  margin: 0 auto 16px; border: 4px solid var(--hell);
}
.personen strong { display: block; color: var(--blau); }
.personen small { font-size: 0.9rem; }

/* ---------- Stimmen (Über uns) ---------- */
/*
 * Karten nebeneinander (Vorbild: gemeinsam-fuer-stuttgart.de/ueber-uns):
 * oben das Foto, darunter ein blaues Band mit Name und Rolle, darunter das Zitat.
 * Computer: 3 Karten pro Reihe, Tablet: 2, Handy: 1 (mittig).
 */
.stimmen {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 32px; max-width: 1000px;
}
.stimme {
  display: flex; flex-direction: column;
  background: var(--weiss); border-radius: var(--rund); overflow: hidden;
  box-shadow: 0 6px 24px rgba(14, 77, 139, 0.08);
}
/*
 * Einheitlicher Hintergrund für die Fotos „Ich bin dabei“ (Variante A):
 * Die Personen sind freigestellt (PNG mit transparentem Hintergrund).
 * Dahinter liegt das Netzwerk-Motiv der Website, weichgezeichnet und blau getönt.
 * Neue Person: Foto freistellen, als PNG nach bilder/personen/freigestellt/ legen.
 */
.stimme__bild {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  overflow: hidden; isolation: isolate;
}
.stimme__bild::before {
  content: ""; position: absolute; inset: -20px; z-index: -2;
  background: url("../bilder/netzwerk.jpg") center / cover; filter: blur(6px);
}
.stimme__bild::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(14, 77, 139, 0.55), rgba(68, 186, 188, 0.45));
}
/*
 * Kopfraum: Wenn eine Person zu nah am oberen Rand „klebt“, im HTML am Rahmen
 * style="--kopfraum: 10%" setzen. Das Bild rutscht dann nach unten, unten wird
 * entsprechend mehr abgeschnitten. Negative Werte (z. B. -8%) schieben das Bild
 * nach oben, wenn über dem Kopf zu viel Luft ist. Ohne Angabe: 0%.
 * Die Höhe gleicht den Versatz aus, damit unten nie eine Lücke entsteht.
 */
.stimme__bild img {
  position: absolute; left: 0; top: var(--kopfraum, 0%);
  width: 100%; height: calc(100% - var(--kopfraum, 0%));
  object-fit: cover; object-position: center top;
}
/*
 * Ganzes Foto zeigen: Ist ein Foto sehr eng geschnitten (Kinn fehlt im Quadrat),
 * am Rahmen zusätzlich die Klasse stimme__bild--ganz setzen. Das Foto wird dann
 * vollständig und etwas kleiner gezeigt, unten bündig; seitlich bleibt Hintergrund.
 */
.stimme__bild--ganz img { object-fit: contain; object-position: center bottom; }
.stimme__name { background: var(--blau); color: var(--weiss); padding: 14px 20px; }
.stimme__name h3 { color: var(--weiss); font-size: 1.15rem; margin: 0; }
.stimme__rolle { color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; font-weight: 400; margin: 2px 0 0; }
.stimme blockquote {
  margin: 0; padding: 18px 20px 22px;
  font-style: italic; font-weight: 400; font-size: 0.98rem;
}
@media (max-width: 900px) {
  .stimmen { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stimmen { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
}

/* ---------- Seitenkopf mit Bild ---------- */
.seitenkopf {
  position: relative; color: var(--weiss);
  background: var(--blau) center / cover no-repeat;
  padding: 120px 0 72px;
}
.seitenkopf::before { content: ""; position: absolute; inset: 0; background: rgba(10, 58, 105, 0.72); }
.seitenkopf .inhalt { position: relative; }
.seitenkopf h1 { color: var(--weiss); margin: 0; }
.seitenkopf p { font-size: 1.2rem; margin: 12px 0 0; }

/* ---------- Partner (Netzwerk) ---------- */
.partner {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.partner a {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 150px;
  padding: 24px; border-radius: var(--rund); text-decoration: none;
  background: var(--blau); color: var(--weiss); transition: background 0.2s, transform 0.2s;
}
.partner a:hover { background: var(--tuerkis-dunkel); transform: translateY(-3px); color: var(--weiss); }
.partner strong { font-size: 1.25rem; line-height: 1.3; }
.partner span { font-size: 0.9rem; opacity: 0.85; }

/* ---------- Beitragsliste (Aktuelles) ---------- */
.beitraege {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px;
}
.karte {
  display: flex; flex-direction: column; height: 100%;
  background: var(--weiss); border-radius: var(--rund); overflow: hidden;
  box-shadow: 0 6px 24px rgba(14, 77, 139, 0.08);
  text-decoration: none; color: var(--text); transition: transform 0.2s;
}
.karte:hover { transform: translateY(-4px); color: var(--text); }
.karte img, .karte__ersatzbild { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* Für Beiträge ohne eigenes Foto: farbige Fläche mit Text */
.karte__ersatzbild {
  display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center;
  background: linear-gradient(135deg, var(--blau), var(--tuerkis));
  color: var(--weiss); font-weight: 600; font-size: 1.6rem;
}
.karte__text { padding: 20px 24px 24px; }
.karte h2 { font-size: 1.2rem; margin-bottom: 0.4em; }
.karte time, .beitrag__meta { font-size: 0.85rem; color: #5a6b7c; }
.karte p { margin: 0.5em 0 0; }
.marke {
  display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--blau); background: var(--hell);
  padding: 2px 10px; border-radius: 20px; margin-right: 6px;
}

/* ---------- Ressourcen ---------- */
.ressourcen { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 32px; }
.ressource {
  display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 32px; align-items: center;
  background: var(--weiss); border-radius: var(--rund); overflow: hidden;
  box-shadow: 0 6px 24px rgba(14, 77, 139, 0.08);
}
.ressource img { width: 100%; height: 100%; object-fit: cover; }
.ressource__text { padding: 28px 28px 28px 0; }
.ressource__text h2 { font-size: 1.5rem; margin: 10px 0 0.5em; }
.ressource__info { font-size: 0.85rem; color: #5a6b7c; }
.ressourcen__mehr { max-width: 780px; }
@media (max-width: 700px) {
  .ressource { grid-template-columns: 1fr; gap: 0; }
  /* height: auto ist nötig: Sonst übernimmt Safari auf dem iPhone die Höhe 100 % aus
     der Desktop-Regel, das Bild wird zu hoch und schiebt sich unter den Text. */
  .ressource img { height: auto; aspect-ratio: 16 / 9; }
  .ressource__text { padding: 24px; }
}

/* ---------- Einzelner Beitrag / Textseiten ---------- */
.beitrag > * { max-width: 780px; }
.beitrag__bild { border-radius: var(--rund); margin: 24px 0 32px; }
.beitrag h2 { font-size: 1.5rem; margin-top: 1.5em; }
.eckdaten { background: var(--hell); border-radius: var(--rund); padding: 20px 24px 20px 44px; }
.eckdaten li { margin: 0.3em 0; }
.zurueck { display: inline-block; margin-top: 32px; }
/* Lange Texte: links bündig mit dem Raster, aber mit angenehmer Zeilenlänge */
.textseite > * { max-width: 780px; }
.textseite h2 { font-size: 1.4rem; margin-top: 1.8em; }
.textseite h3 { font-size: 1.1rem; margin-top: 1.4em; }
.entwurf {
  background: #fff6db; border-left: 6px solid #e0b400; padding: 16px 20px;
  border-radius: var(--rund); margin-bottom: 32px;
}

/* Hinweis in Beiträgen, z. B. „Dieses Treffen hat bereits stattgefunden" */
.notiz {
  background: var(--hell); border-left: 6px solid var(--tuerkis); padding: 14px 20px;
  border-radius: var(--rund); font-weight: 400;
}

/* ---------- Fußbereich ---------- */
.fuss { background: var(--blau); color: var(--weiss); padding: 64px 0 24px; margin-top: 0; }
.fuss a { color: var(--weiss); }
.fuss a:hover { color: var(--tuerkis); }
.fuss__raster { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.fuss h2 { color: var(--weiss); font-size: 1.3rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: 0.9rem; }
.fuss svg {
  width: 18px; height: 18px; flex: none; margin-top: 3px;
  fill: none; stroke: var(--tuerkis); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.fuss__ruf { font-weight: 600; font-size: 1.1rem; }
.fuss__unten {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.85rem;
}
.fuss__unten nav { display: flex; gap: 24px; }
.fuss__unten nav a { color: var(--tuerkis); text-decoration: none; }
@media (max-width: 700px) { .fuss__raster { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .abschnitt { padding: 48px 0; }
  .einstieg { padding: 56px 0 64px; }
  .einstieg h1 { padding-left: 18px; }
  .einstieg__text, .einstieg__knoepfe { margin-left: 24px; }
  .kopf { position: static; } /* auf dem Handy nicht mitscrollen, spart Platz */
  .kopf .inhalt { justify-content: center; }
  .kopf__logo img { width: 190px; }
  .kopf__nav { gap: 18px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Karte und Partnerliste nebeneinander (auf schmalen Bildschirmen untereinander) */
.netzwerk__raster {
  display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 40px; align-items: start; margin-top: 24px;
}
.netzwerk__raster .partner { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 800px) { .netzwerk__raster { grid-template-columns: 1fr; } .landkarte { max-width: 380px; margin: 0 auto; } }

/* Deutschlandkarte mit Partner-Standorten (SVG in netzwerk.html) */
.landkarte { width: 100%; height: auto; display: block; }
.landkarte__land { fill: var(--hell); stroke: var(--blau); stroke-width: 1.5; stroke-linejoin: round; }
/* Ländernamen: hell und gesperrt, damit sie hinter den Partnern zurücktreten */
.landkarte__staat {
  font-family: "Poppins", sans-serif; font-size: 11px; font-weight: 400; letter-spacing: 0.25em;
  fill: var(--blau); opacity: 0.35; pointer-events: none;
}
.landkarte circle { fill: var(--tuerkis); stroke: var(--weiss); stroke-width: 1.5; transition: r 0.15s; }
.landkarte text { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 13px; fill: var(--blau); }
.landkarte a:hover circle, .landkarte a:focus circle { fill: var(--blau); r: 6.5; }
.landkarte a:hover text, .landkarte a:focus text { fill: var(--tuerkis-dunkel); text-decoration: underline; }
.landkarte a:focus { outline: none; }
.landkarte a:focus-visible circle { stroke: var(--blau); stroke-width: 3; }

/* ---------- Geben ---------- */
/* Zweiter Knopf im Menü („Geben“): umrandet, mit Münz-Symbol */
.kopf__nav a.knopf--zweitrangig { color: var(--blau); }
.kopf__nav a.knopf--zweitrangig:hover,
.kopf__nav a.knopf--zweitrangig[aria-current="page"] { background: var(--tuerkis); color: var(--weiss); }
.knopf--symbol { display: inline-flex; align-items: center; gap: 8px; }
.knopf--symbol svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
/* Kasten mit der Bankverbindung auf geben.html */
.bankverbindung {
  background: var(--hell); border-left: 6px solid var(--tuerkis);
  border-radius: var(--rund); padding: 24px 28px; margin: 32px 0;
}
.bankverbindung h2 { font-size: 1.3rem; margin: 0 0 12px; }
.bankverbindung dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.bankverbindung dt { color: #5a6b7c; }
.bankverbindung dd { margin: 0; font-weight: 600; color: var(--blau); }
@media (max-width: 560px) {
  .bankverbindung dl { grid-template-columns: 1fr; gap: 0; }
  .bankverbindung dd { margin-bottom: 10px; }
}
