/* Freie Bürger Buchholz – Stylesheet
   CI: Rot #c0392b · Navy #0a1c3a · Creme #e8e2d9 · Source Sans 3 (lokal)
   Kontraste (WCAG): Navy/Creme 12,9:1 · Weiß/Rot 5,4:1 · Creme/Rot 4,2:1
   (Creme auf Rot deshalb nur für große Schrift, z. B. Namensbalken). */

/* ---------- Schriften (lokal, kein CDN) ---------- */
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-v19-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-v19-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-v19-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-v19-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-v19-latin-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens & Basis ---------- */
:root {
  --rot: #c0392b;
  --navy: #0a1c3a;
  --creme: #e8e2d9;
  --creme-hell: #f4f0ea;
  --weiss: #ffffff;
  --mass: 42rem;
}

* { box-sizing: border-box; }

html {
  font-size: 112.5%; /* 18px – gut lesbar, auch für ältere Augen */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--navy);
  background: var(--creme);
}

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 6.5vw, 2.8rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 4.5vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

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

.wrap { max-width: var(--mass); margin: 0 auto; padding: 0 1.1rem; }
.abschnitt { padding: 1.7rem 1.1rem; }
.abschnitt h2 { margin-bottom: 0.9rem; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--weiss);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Kopfbereich ---------- */
.topbar {
  background: var(--navy);
  color: var(--creme);
  text-align: center;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
}
.topbar p { margin: 0; }

.kopf {
  background: var(--creme);
  border-bottom: 3px solid var(--rot);
}
.kopf-innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.marke {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.marke img { flex: none; }
.wortmarke {
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.kopf nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  margin: 0;
  padding: 0;
}
.kopf nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.4rem 0;
  display: inline-block;
}
.kopf nav a[aria-current="page"] {
  border-bottom: 3px solid var(--rot);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--rot);
  color: var(--weiss);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  min-height: 44px;
}
.btn:hover { background: #a53125; color: var(--weiss); }
.btn-umriss {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-umriss:hover { background: var(--navy); color: var(--weiss); }

/* ---------- Startseite ---------- */
.hero { text-align: center; padding: 2.6rem 1.1rem 2.2rem; }
.hero .blatt { margin: 0 auto 1rem; width: 56px; }
.hero h1 { margin-bottom: 0.4rem; }
.hero .untertitel {
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  max-width: 34rem;
  margin: 0 auto 1.4rem;
}
.hero .claim {
  color: var(--rot);
  font-weight: 900;
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  margin-bottom: 1.4rem;
}
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

.band { padding: 2.2rem 0; }
.band-navy { background: var(--navy); color: var(--creme); }
.band-navy h2 { color: var(--weiss); }
.band-navy a { color: var(--creme); }
.band-navy a:hover { color: var(--weiss); }
.band-navy .btn { background: var(--rot); color: var(--weiss); }

.karte {
  background: var(--creme-hell);
  border-left: 6px solid var(--rot);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.karte h3 { margin-bottom: 0.3rem; }
.karte p:last-child { margin-bottom: 0; }

.kernpunkte { list-style: none; margin: 0; padding: 0; }

/* ---------- Kandidaten-Kacheln (Mini-Plakat) ---------- */
.kacheln {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 700px) {
  .kacheln { grid-template-columns: repeat(4, 1fr); }
}
.kachel {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--weiss);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(10, 28, 58, 0.18);
}
.kachel picture { display: block; }
.kachel-name { flex: 1; }
.kachel img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.kachel-name {
  display: block;
  background: var(--rot);
  color: var(--creme);
  font-weight: 900;
  font-size: 1.05rem; /* ≥ 18,7 px fett = „großer Text“, Creme/Rot 4,2:1 genügt (AA: 3:1) */
  line-height: 1.2;
  padding: 0.45rem 0.6rem;
}
.kachel-meta {
  display: block;
  background: var(--navy);
  color: var(--creme);
  font-size: 0.82rem;
  padding: 0.35rem 0.6rem 0.45rem;
}
.kachel:hover .kachel-name { background: #a53125; }

/* Kompakte Variante („Die anderen Kandidaten“) */
.kacheln-mini { list-style: none; margin: 0 0 0.8rem; padding: 0; }
.kacheln-mini li { margin-bottom: 0.55rem; }
.kacheln-mini a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  background: var(--creme-hell);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  line-height: 1.3;
}
.kacheln-mini a:hover strong { color: var(--rot); }
.kacheln-mini .mini-foto,
.kacheln-mini img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  flex: none;
}
.kacheln-mini span { font-size: 0.92rem; }

/* ---------- Kandidaten-Einzelseite (Plakat-Look) ---------- */
.plakat {
  background: var(--creme);
  padding-top: 1.6rem;
}
.plakat-foto {
  max-width: 21rem;
  margin: 0 auto;
  padding: 0 1.1rem;
}
.plakat-name {
  background: var(--rot);
  margin: -2.2rem 0 0;
  padding: 0.55rem 0;
  position: relative;
}
.plakat-name span {
  display: block;
  max-width: var(--mass);
  margin: 0 auto;
  padding: 0 1.1rem;
  color: var(--creme);
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
}
.plakat-navy {
  background: var(--navy);
  color: var(--creme);
  padding: 1rem 0 1.4rem;
}
.plakat-navy p {
  max-width: var(--mass);
  margin: 0 auto;
  padding: 0 1.1rem;
}
.plakat-zeile { font-weight: 600; font-size: 0.98rem; margin-bottom: 0.5rem !important; }
.plakat-slogan {
  font-weight: 900;
  font-size: clamp(1.25rem, 5vw, 1.7rem);
  line-height: 1.25;
}

.themen { list-style: none; margin: 0; padding: 0; }
.themen li {
  background: var(--creme-hell);
  border-left: 6px solid var(--rot);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.8rem;
}
.themen h3 { margin-bottom: 0.3rem; }
.themen p { margin-bottom: 0.4rem; }
.themen p:last-child { margin-bottom: 0; }

/* ---------- Programmseite ---------- */
.programm-kopf { text-align: center; padding: 2.4rem 1.1rem 1.4rem; }
.programm-kopf .obertitel {
  color: var(--rot);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.inhaltsverzeichnis {
  background: var(--creme-hell);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.6rem;
}
.inhaltsverzeichnis h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.inhaltsverzeichnis ol {
  margin: 0;
  padding-left: 1.3rem;
}
.inhaltsverzeichnis li { margin-bottom: 0.25rem; }

.kapitel { padding-top: 0.5rem; margin-bottom: 2.4rem; }
.kapitel h2 {
  border-left: 6px solid var(--rot);
  padding-left: 0.7rem;
  scroll-margin-top: 1rem;
}
.kapitel em:first-child { font-size: 1.05rem; }
.kapitel h3 {
  font-size: 1.05rem;
  color: var(--rot);
  margin-top: 1.4rem;
}
.kapitel ul { padding-left: 1.2rem; }
.kapitel li { margin-bottom: 0.5rem; }
.nach-oben { font-size: 0.9rem; }

/* ---------- Treffen / Presse / Rechtliches ---------- */
.seite { padding-top: 1.8rem; padding-bottom: 2.4rem; }
.seite h1 { margin-bottom: 1rem; }

.download-liste { list-style: none; margin: 0; padding: 0; }
.download-liste li { margin-bottom: 0.5rem; }

/* ---------- Fußbereich ---------- */
.fuss {
  background: var(--navy);
  color: var(--creme);
  padding: 2rem 0 2.4rem;
  margin-top: 2rem;
}
.fuss a { color: var(--creme); }
.fuss a:hover { color: var(--weiss); }
.fuss-marke {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.fuss-claim { font-weight: 700; color: var(--weiss); }
.fuss-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  margin: 0 0 1rem;
  padding: 0;
}
.fuss-hinweis { font-size: 0.85rem; opacity: 0.85; margin: 0; }

/* ---------- Video (Zwei-Klick-YouTube) ---------- */
.video { max-width: 480px; margin: 0 auto; }
.video-facade,
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
}
.video-facade { display: block; padding: 0; border: 0; cursor: pointer; }
.video-facade picture,
.video-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.video-facade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 58, 0.28);
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--rot);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}
.video-facade:hover .video-play,
.video-facade:focus-visible .video-play { background: #a53125; }
.video-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  text-align: center;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-hinweis {
  max-width: 480px;
  margin: 0.5rem auto 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--navy);
  text-align: center;
}

/* ---------- Persönlicher-Wahlaufruf-Link (nur auf verlinkter Kandidatenseite) ---------- */
.wahlaufruf-cta { text-align: center; padding: 0 1.1rem; margin-bottom: 0.4rem; }

/* ---------- Sonstiges ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .topbar, .kopf nav, .fuss, .skip, .hero-aktionen, .nach-oben { display: none; }
  body { background: #fff; color: #000; }
}
