/* #PlatzFürDemokratie – Farbpalette Version 2 */
:root {
  --blau: #002FA7;        /* International Klein Blue – Basis / Flächen */
  --blau-tief: #00227A;
  --gold: #F0A400;        /* Signalgelb / Gold – Akzent 1 */
  --pink: #E0447F;        /* Knallpink / Beere – Akzent 2 */
  --gruen: #1E9C74;       /* Signalgrün – Akzent 3 */
  --terra: #E85426;       /* Vivid-Terrakotta – gebrochener Ton */
  --sand: #E3CB8E;        /* Sandbeige – neutral */

  --tinte: #0E1B45;
  --tinte-weich: #3A4466;
  --papier: #FBF8F1;
  --sand-hell: #F5ECD6;
  --weiss: #FFFFFF;
  --linie: rgba(14, 27, 69, 0.12);

  --schrift: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --breite: 1120px;
  --rand: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --schatten: 0 1px 2px rgba(14, 27, 69, 0.06), 0 12px 32px rgba(14, 27, 69, 0.08);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 140px;
}
@media (min-width: 900px) { html { scroll-padding-top: 90px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--papier);
  overflow-x: hidden;
}

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

a { color: var(--blau); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: var(--tinte);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--klein { padding: 0.5rem 1.05rem; font-size: 0.9375rem; }
.btn--voll { width: 100%; }
.btn--gold { background: var(--gold); color: var(--tinte); }
.btn--gold:hover { background: #FFB61A; }
.btn--hell { border-color: rgba(255, 255, 255, 0.75); color: var(--weiss); }
.btn--hell:hover { background: rgba(255, 255, 255, 0.12); }
.btn--blau { background: var(--blau); color: var(--weiss); }
.btn--blau:hover { background: var(--blau-tief); }
.btn--linie { border-color: var(--blau); color: var(--blau); background: transparent; }
.btn--linie:hover { background: var(--blau); color: var(--weiss); }

/* ---------- Kopfbereich ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linie);
}

.kopf__innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0.75rem var(--rand);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--blau);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
.marke img { width: 44px; height: 44px; border-radius: 50%; }

.kopf__aktion { display: flex; align-items: center; gap: 0.75rem; }
.kopf__aktion form { margin: 0; }
.kopf__nutzer { font-size: 0.9375rem; color: var(--tinte-weich); }

.hauptnav {
  order: 3;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--rand) * -1);
  padding: 0 var(--rand);
  width: calc(100% + 2 * var(--rand));
}
.hauptnav::-webkit-scrollbar { display: none; }
.hauptnav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.hauptnav a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--tinte);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.hauptnav a:hover { background: var(--sand-hell); }

@media (min-width: 900px) {
  .kopf__innen { flex-wrap: nowrap; }
  .hauptnav { order: 0; width: auto; margin: 0; padding: 0; overflow: visible; }
  .marke { margin-right: 0; }
  .hauptnav { margin-left: auto; }
}

@media (max-width: 420px) {
  .kopf__nutzer { display: none; }
  .marke span { font-size: 0.9375rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--blau);
  color: var(--weiss);
  isolation: isolate;
}

.hero__innen {
  position: relative;
  z-index: 1;
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 128px) var(--rand) clamp(64px, 11vw, 140px);
}

.hero__ort {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__ort span { white-space: nowrap; }
.hero__ort::before {
  content: "";
  display: inline-block;
  vertical-align: 0.1em;
  margin-right: 0.6rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terra);
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  max-width: 13ch;
  margin-bottom: 0.45em;
}
.hero h1 span { color: var(--gold); }

.hero__text { max-width: 36rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.hero__text p { color: rgba(255, 255, 255, 0.92); }

.hero__aktionen { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero :focus-visible { outline-color: var(--gold); }

/* Formen, angelehnt an das Logo */
.hero__formen span { position: absolute; border-radius: 50%; z-index: -1; }
.hero__formen span:nth-child(1) {
  width: 560px; height: 560px;
  right: -220px; bottom: -300px;
  background: var(--gold);
}
.hero__formen span:nth-child(2) {
  width: 340px; height: 340px;
  right: -120px; top: -150px;
  background: var(--pink);
}
.hero__formen span:nth-child(3) {
  width: 300px; height: 300px;
  right: 160px; top: 50%;
  transform: translateY(-40%);
  border: 28px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 899px) {
  .hero__formen span:nth-child(1) { width: 320px; height: 320px; right: -170px; bottom: -190px; }
  .hero__formen span:nth-child(2) { width: 200px; height: 200px; right: -110px; top: -100px; }
  .hero__formen span:nth-child(3) { display: none; }
}

/* ---------- Abschnitte ---------- */

.abschnitt { --akzent: var(--blau); position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.abschnitt--blau  { --akzent: var(--blau);  background: var(--papier); }
.abschnitt--gold  { --akzent: var(--gold);  background: var(--sand-hell); overflow: hidden; }
.abschnitt--gruen { --akzent: var(--gruen); background: var(--weiss); }
.abschnitt--pink  { --akzent: var(--pink);  background: var(--papier); }

.abschnitt__innen {
  position: relative;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .abschnitt__innen { grid-template-columns: 4fr 7fr; gap: 4rem; }
  .abschnitt__kopf { position: sticky; top: 120px; align-self: start; }
}

.abschnitt__nr {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--akzent);
  color: var(--weiss);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.abschnitt--gold .abschnitt__nr { color: var(--tinte); }

.abschnitt h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  color: var(--blau);
  margin: 0;
}
.abschnitt h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  margin-top: 1.1rem;
  border-radius: 3px;
  background: var(--akzent);
}

/* Die "Stunde des Miteinanders" als Herzstück hervorheben */
.abschnitt--gold::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -200px;
  bottom: -220px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
}
.abschnitt--gold .abschnitt__text {
  position: relative;
  background: var(--weiss);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--schatten);
}

/* ---------- Fließtext ---------- */

.prosa > *:first-child { margin-top: 0; }
.prosa > *:last-child { margin-bottom: 0; }
.prosa p, .prosa ul, .prosa ol { margin: 0 0 1.1em; max-width: 68ch; }
.prosa h2 { font-size: 1.5rem; margin-top: 2em; color: var(--blau); }
.prosa h3 { font-size: 1.25rem; margin-top: 1.75em; }
.prosa ul, .prosa ol { padding-left: 1.25em; }
.prosa li { margin-bottom: 0.4em; }
.prosa li::marker { color: var(--terra); }
.abschnitt .prosa { font-size: 1.125rem; }

/* Linkkarte für externe Artikel – ohne fremde Bilder, damit keine Drittanbieter geladen werden */
.linkkarte {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 68ch;
  margin: 0 0 1.1em;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--linie);
  border-left: 6px solid var(--akzent, var(--blau));
  border-radius: 12px;
  background: var(--weiss);
  color: var(--tinte);
  text-decoration: none;
  box-shadow: var(--schatten);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.linkkarte:hover { transform: translateY(-2px); }
.linkkarte__quelle { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tinte-weich); }
.linkkarte__titel { font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--blau); }
.linkkarte__text { font-size: 1rem; color: var(--tinte-weich); }
.linkkarte__mehr { margin-top: 0.25rem; font-size: 0.9375rem; font-weight: 600; color: var(--blau); }
.linkkarte:hover .linkkarte__titel { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .linkkarte { transition: none; } .linkkarte:hover { transform: none; } }

/* Termine als Datums-Kacheln */
.prosa ul.termine { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; list-style: none; }
.termine li {
  margin: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--akzent, var(--blau));
  color: var(--tinte);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Gesprächsfragen als hervorgehobene Zitate */
.prosa ul.fragen { padding: 0; list-style: none; }
.fragen li {
  margin: 0 0 0.6rem;
  padding: 0.7rem 1rem;
  border-left: 4px solid var(--akzent, var(--blau));
  border-radius: 0 10px 10px 0;
  background: var(--sand-hell);
  font-style: italic;
}

/* PDF-Vorschau mit Schaltflächen; auf schmalen Bildschirmen nur die Schaltflächen,
   weil Handy-Browser PDFs in iframes kaum darstellen */
.pdf { max-width: 68ch; margin: 0 0 1.1em; }
.pdf__vorschau {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.414;
  max-height: 80vh;
  border: 1px solid var(--linie);
  border-radius: 12px;
  background: var(--weiss);
  box-shadow: var(--schatten);
}
.pdf__aktionen { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
@media (max-width: 700px) { .pdf__vorschau { display: none; } .pdf__aktionen { margin-top: 0; } }

.btn--gruen { background: var(--gruen); color: var(--weiss); }
.btn--gruen:hover { background: #17805F; }

/* Logo-Bild der Unterstützenden */
.logoteppich { max-width: 68ch; margin: 0 0 1.1em; }
.logoteppich img {
  display: block;
  width: 100%;
  height: auto;
  padding: clamp(12px, 2vw, 24px);
  border-radius: 12px;
  background: var(--weiss);
  box-shadow: var(--schatten);
}

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

.platzhalter {
  padding: 0.9rem 1.1rem;
  border: 2px dashed rgba(232, 84, 38, 0.55);
  border-radius: 12px;
  background: rgba(232, 84, 38, 0.06);
  color: var(--tinte-weich);
  font-style: italic;
}
span.platzhalter { display: inline; padding: 0.1rem 0.35rem; border-width: 1px; border-radius: 6px; }

.hilfe { font-size: 0.9375rem; color: var(--tinte-weich); }

/* ---------- Einfache Seiten ---------- */

.seite__innen {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--rand);
}
.seite h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--blau); }
.fehler__code {
  font-size: 1rem;
  font-weight: 800;
  color: var(--terra);
  letter-spacing: 0.1em;
}

/* ---------- Anmeldung & Formulare ---------- */

.karte-seite {
  display: grid;
  place-items: center;
  padding: clamp(40px, 8vw, 96px) var(--rand);
  min-height: 70vh;
}

.karte {
  width: 100%;
  max-width: 460px;
  padding: clamp(28px, 5vw, 44px);
  background: var(--weiss);
  border-radius: 22px;
  box-shadow: var(--schatten);
  border-top: 8px solid var(--blau);
}
.karte h1 { font-size: 1.85rem; color: var(--blau); margin-bottom: 0.4em; }
.karte__logo { width: 88px; height: 88px; border-radius: 50%; margin: 0 0 1.25rem; }
.karte__intro { color: var(--tinte-weich); margin: 0 0 1.5rem; }
.karte__fuss { margin: 1.5rem 0 0; font-size: 0.875rem; color: var(--tinte-weich); }

.formular { display: grid; gap: 0.4rem; }
.formular label { font-weight: 700; font-size: 0.9375rem; margin-top: 0.75rem; }
.formular input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font: inherit;
  color: var(--tinte);
  background: var(--papier);
  border: 2px solid #C9CEDD;
  border-radius: 12px;
}
.formular input:hover { border-color: #9AA2BC; }
.formular input:focus-visible { outline: 3px solid var(--blau); outline-offset: 1px; border-color: var(--blau); }
.formular .hilfe { margin: 0.1rem 0 0; }
.formular button { margin-top: 1.5rem; }

.meldung {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border-left: 6px solid;
  font-size: 0.9375rem;
}
.meldung--fehler { background: #FCE8EF; border-color: var(--pink); }
.meldung--erfolg { background: #E3F4EE; border-color: var(--gruen); }
.meldung--info   { background: var(--sand-hell); border-color: var(--gold); }

/* ---------- Interner Bereich ---------- */

.kopf--intern { border-bottom: 4px solid var(--blau); }

.intern__innen {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) var(--rand);
}
.intern__gruss { margin: 0 0 0.4rem; font-weight: 700; color: var(--terra); }
.intern h1 { font-size: clamp(2rem, 5vw, 2.75rem); color: var(--blau); margin-bottom: 1.25em; }

/* ---------- Fußbereich ---------- */

.fuss { background: var(--blau); color: var(--weiss); }
.fuss :focus-visible { outline-color: var(--gold); }
.fuss__innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 56px var(--rand) 40px;
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .fuss__innen { grid-template-columns: 1fr auto; align-items: start; }
  .fuss__hinweis { grid-column: 1 / -1; }
}
.fuss__marke { display: flex; gap: 1rem; align-items: center; }
.fuss__marke img { width: 56px; height: 56px; border-radius: 50%; }
.fuss__marke p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.fuss__marke .fuss__titel { font-weight: 800; font-size: 1.25rem; color: var(--weiss); }
.fuss__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.fuss__links a { color: var(--weiss); font-weight: 600; }
.fuss__hinweis {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
}

body.schlicht main { min-height: 60vh; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
