/* gemeinsam-gestalten.online – Jens Mämpel, Bürgermeisterwahl Plaue 2026 */

/* ---------- Schriften (lokal, SIL Open Font License) ---------- */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

/* ---------- Farben ---------- */
:root {
  --gruen: #1E4536;
  --gruen-dunkel: #173A2E;
  --gold: #C8A45A;
  --gold-dunkel: #B08D3E;
  --gold-text: #6B5320;
  --creme: #F3EBD8;
  --creme-gedaempft: #D9D0BA;
  --text: #1B2A24;
  --rot: #C8102E;
  --weiss: #FFFFFF;
  --breite: 1200px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--weiss); color: var(--text); font-family: var(--body); font-size: 18px; line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1; }
p { margin: 0; }
a { color: var(--gruen); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[id] { scroll-margin-top: 72px; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }
.gold-dunkel { color: var(--gold-dunkel); }
.nowrap { white-space: nowrap; }
.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; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--gruen); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--gruen); color: var(--creme); }
.nav .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.nav-name { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--creme); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; }
.nav-name svg { width: 30px; height: 30px; flex-shrink: 0; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; font-family: var(--display); font-weight: 600; font-size: 20px; }
.nav-links a { color: var(--creme); text-decoration: none; padding: 10px 0; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--gold); color: var(--gruen); font-weight: 700; }
.nav-links a.nav-cta:hover { background: var(--creme); color: var(--gruen); }
@media (max-width: 640px) {
  .nav .wrap { flex-wrap: nowrap; gap: 12px; padding-left: 16px; padding-right: 16px; }
  .nav-name { font-size: 22px; gap: 8px; }
  .nav-name svg { width: 26px; height: 26px; }
  .nav-links { flex-wrap: nowrap; font-size: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links a.nav-cta { padding: 0 12px; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--gruen); color: var(--creme); min-height: clamp(620px, 56vw, 800px); display: flex; flex-direction: column; justify-content: space-between; }
.hero-bild { position: absolute; inset: 0; }
.hero-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 44% 35%; }
.hero-kopf { position: relative; background: rgba(30, 69, 54, 0.92); }
.hero-kopf .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; padding-top: 14px; padding-bottom: 14px; }
.hero-wahl { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: 0.02em; }
.hero-datum { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.1; color: var(--gold); }
.namensbalken { position: relative; align-self: flex-end; margin-top: 200px; display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
.etikett { margin-left: 24px; background: var(--gold); color: var(--gruen); padding: 6px 12px; font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.8vw, 22px); letter-spacing: 0.03em; }
.namensbalken-innen { background: var(--gruen); padding: 12px clamp(24px, 6vw, 120px) 16px 20px; }
.name-zeile { display: flex; align-items: center; gap: 12px; }
.name-zeile svg { width: clamp(40px, 4.5vw, 64px); height: auto; flex-shrink: 0; }
.hero h1 { font-size: clamp(50px, 7vw, 92px); line-height: 0.95; color: var(--creme); }
.ortsteile { margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.15; color: var(--gold); }
.hero-fuss { position: relative; background: rgba(23, 58, 46, 0.92); }
.hero-fuss .wrap { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; padding-bottom: 22px; }
.bruecke-zeile { display: flex; align-items: center; gap: 14px; }
.bruecke-zeile svg { width: clamp(84px, 9vw, 130px); height: auto; flex-shrink: 0; }
.bruecken-bauen { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 5.5vw, 72px); line-height: 1; color: var(--gold); }
.gemeinsam { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.15; display: flex; flex-wrap: wrap; column-gap: 14px; }
.gemeinsam span { white-space: nowrap; }

/* ---------- Vorstellungsvideo ---------- */
.vorstellung { background: var(--creme); }
.vorstellung .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; padding-top: 56px; padding-bottom: 56px; }
.vorstellung-video { position: relative; flex: 0 1 480px; min-width: 0; width: 100%; }
.play-gross { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(72px, 20%, 96px); aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.play-gross svg { display: block; width: 100%; height: 100%; transition: transform .15s; }
.play-gross:hover svg { transform: scale(1.06); }
.play-gross[hidden] { display: none; }
.vorstellung-video video { width: 100%; height: auto; aspect-ratio: 1 / 1; background: var(--gruen); box-shadow: 0 0 0 6px var(--weiss), 0 0 0 9px var(--gold); }
.vorstellung-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.vorstellung-text h2 { font-size: clamp(38px, 4.5vw, 58px); line-height: 1; color: var(--gruen); }
.vorstellung-text h2 .gold { color: var(--gold); }
.vorstellung-text p { font-size: 20px; max-width: 520px; }
@media (max-width: 640px) {
  .vorstellung .wrap { padding-top: 32px; padding-bottom: 40px; }
  .vorstellung-video video { box-shadow: none; }
}

/* ---------- Abschnitte ---------- */
.titel { font-size: clamp(38px, 4.5vw, 58px); color: var(--gruen); }
.zwischen { font-size: 30px; color: var(--gruen); border-bottom: 3px solid var(--gold); padding-bottom: 6px; }
.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.liste li { position: relative; padding-left: 21px; }
.liste li::before { content: ""; position: absolute; left: 0; top: 10px; width: 9px; height: 9px; background: var(--gold); }
.block { display: flex; flex-direction: column; gap: 12px; }

.ueber { padding-top: 72px; }
.ueber .titel { margin-bottom: 32px; }
.ueber-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.ueber-text { display: flex; flex-direction: column; gap: 36px; }
.ueber-fotos { display: flex; flex-direction: column; gap: 16px; }
.ueber-fotos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ueber-fotos .foto-baum { object-position: 50% 55%; }
.ueber-fotos .foto-rathaus { object-position: 50% 36%; }

.werte { margin-top: 64px; background: var(--gruen); color: var(--creme); }
.werte .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.wert h3 { font-size: 34px; line-height: 1.1; color: var(--gold); }

.ziele-kopf { background: var(--gruen-dunkel); color: var(--creme); }
.ziele-kopf .wrap { display: flex; flex-direction: column; gap: 18px; padding-top: 64px; padding-bottom: 56px; }
.ziele-kopf .bruecke-zeile { flex-wrap: wrap; gap: 12px 20px; }
.ziele-kopf .bruecke-zeile svg { width: clamp(84px, 9vw, 120px); }
.ziele-kopf h2 { font-size: clamp(38px, 4.5vw, 58px); }
.ziele-kopf p { max-width: 860px; font-size: 20px; }
.ziele-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; padding-top: 56px; }
.ziele-raster .zwischen { font-size: 34px; }
.zitat-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; padding-top: 56px; padding-bottom: 80px; }
.zitat-zeile picture { flex: 1 1 320px; min-width: 0; }
.zitat-zeile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; }
.zitat-gross { flex: 1 1 360px; min-width: 0; margin: 0; border-left: 4px solid var(--gold); padding: 6px 0 6px 20px; display: flex; flex-direction: column; gap: 8px; }
.zitat-gross p { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12; color: var(--gruen); }
.zitat-gross footer { font-size: 17px; font-weight: 700; color: var(--gold-text); }

.stimmen { background: var(--gruen); color: var(--creme); }
.stimmen .wrap { display: flex; flex-direction: column; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.stimmen h2 { font-size: clamp(42px, 5vw, 64px); }
.unterzeile { margin-top: 6px; font-size: 19px; color: var(--creme-gedaempft); }
.stimmen-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 28px 48px; }
.stimme { margin: 0; border-left: 3px solid var(--gold); padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.stimme p { font-size: 20px; line-height: 1.45; font-style: italic; }
.stimme footer { font-size: 16px; font-weight: 700; color: var(--gold); }
.schluss { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.schluss p { flex: 1 1 320px; max-width: 560px; font-size: 20px; line-height: 1.45; }
.schluss img { width: 260px; max-width: 70%; flex-shrink: 0; }

/* ---------- Kontakt ---------- */
.kontakt { background: var(--creme); color: var(--gruen); border-top: 8px solid var(--gold); }
.kontakt .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.kontakt h2 { font-size: clamp(56px, 8vw, 112px); line-height: 0.95; }
.kontakt-text { font-size: clamp(20px, 1.8vw, 24px); color: var(--text); }
.telefon { font-family: var(--display); font-weight: 700; font-size: clamp(54px, 8vw, 112px); line-height: 1; letter-spacing: 0.02em; color: var(--gruen); text-decoration: none; white-space: nowrap; }
.telefon:hover { color: var(--gold-text); }
.knoepfe { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; min-width: 220px; padding: 0 32px; font-family: var(--display); font-weight: 700; font-size: 30px; text-decoration: none; }
.knopf svg { width: 26px; height: 26px; flex-shrink: 0; }
.knopf-gruen { background: var(--gruen); color: var(--creme); }
.knopf-gruen:hover { background: var(--gruen-dunkel); }
.knopf-gold { background: var(--gold); color: var(--gruen); }
.knopf-gold:hover { background: var(--gold-dunkel); }

/* ---------- Videos (erst sichtbar, wenn sie vorliegen) ---------- */
.videos .wrap { display: flex; flex-direction: column; gap: 28px; padding-top: 72px; padding-bottom: 72px; }
.videos .titel span { color: var(--gold-text); }
.video-gross { width: 100%; aspect-ratio: 16 / 9; background: var(--gruen); }
.video-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.video-raster figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.video-raster video { width: 100%; aspect-ratio: 16 / 10; background: var(--gruen-dunkel); object-fit: cover; }
.video-raster figcaption { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--gruen); }
video { display: block; width: 100%; }

/* ---------- Footer ---------- */
.fuss { background: var(--gruen-dunkel); color: var(--creme); }
.fuss .wrap { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; padding-bottom: 32px; }
.waehlen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.waehlen p { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; }
.waehlen-kreuz { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.waehlen svg { width: clamp(40px, 4vw, 54px); height: auto; flex-shrink: 0; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 8px 28px; border-top: 1px solid rgba(243, 235, 216, 0.25); padding-top: 20px; font-size: 15px; color: var(--creme-gedaempft); }
.fuss-links a { color: var(--creme); }
.fuss-links a:hover { color: var(--gold); }

/* ---------- Rechtstexte ---------- */
.recht { padding-top: 56px; padding-bottom: 72px; max-width: 820px; }
.recht h1 { font-size: clamp(42px, 5vw, 60px); color: var(--gruen); margin-bottom: 28px; }
.recht h2 { font-size: 28px; color: var(--gruen); margin: 36px 0 10px; border-bottom: 3px solid var(--gold); padding-bottom: 6px; }
.recht h3 { font-size: 22px; color: var(--gruen); margin: 22px 0 6px; }
.recht p, .recht ul { margin: 0 0 12px; }
.recht ul { padding-left: 22px; }
.recht address { font-style: normal; margin-bottom: 12px; }
.zurueck { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; font-weight: 700; }

/* ---------- Bewegung ---------- */
.nav { transition: box-shadow .3s ease; }
.nav.nav-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .28); }

/* Einblenden beim Scrollen (nur wenn JavaScript aktiv ist) */
.anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform; }
.anim .reveal.von-links { transform: translateX(-40px); }
.anim .reveal.von-rechts { transform: translateX(40px); }
.anim .reveal.zoom { transform: scale(.92); }
.anim .reveal.klein { transform: translateX(-16px); transition-duration: .55s; }
.anim .reveal.sichtbar { opacity: 1; transform: none; }

/* Knöpfe und Fotos */
.knopf, .nav-links a.nav-cta { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.knopf:hover, .nav-links a.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(23, 58, 46, .25); }
.ueber-fotos picture, .zitat-zeile picture { display: block; overflow: hidden; }
.ueber-fotos img, .zitat-zeile img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.ueber-fotos picture:hover img, .zitat-zeile picture:hover img { transform: scale(1.04); }
.telefon { transition: color .2s ease, transform .2s ease; display: inline-block; }
.telefon:hover { transform: scale(1.03); }

@media (prefers-reduced-motion: no-preference) {
  /* Titelbild: langsamer Zoom */
  .hero-bild img { animation: kenburns 24s ease-out both; transform-origin: 44% 35%; }
  @keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

  /* Kopfbereich nacheinander */
  .hero-kopf { animation: von-oben .8s ease-out both; }
  .etikett { animation: von-rechts-rein .7s .35s cubic-bezier(.2, .7, .2, 1) both; }
  .namensbalken-innen { animation: von-rechts-rein .9s .2s cubic-bezier(.2, .7, .2, 1) both; }
  .name-zeile svg path { stroke-dasharray: 70; stroke-dashoffset: 70; animation: kreuz .5s 1s ease-out forwards; }
  .hero-fuss { animation: von-unten .8s .5s ease-out both; }
  .hero-fuss .bruecke-zeile svg path:first-child { transform-origin: 50% 100%; transform-box: fill-box; animation: wachsen .9s .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-fuss .bruecke-zeile svg path:last-child { animation: einblenden .6s 1.5s ease-out both; }
  .bruecken-bauen { animation: einblenden-hoch .7s 1.1s ease-out both; }
  .gemeinsam span { animation: einblenden-hoch .6s ease-out both; }
  .gemeinsam span:nth-child(1) { animation-delay: 1.4s; }
  .gemeinsam span:nth-child(2) { animation-delay: 1.6s; }
  .gemeinsam span:nth-child(3) { animation-delay: 1.8s; }

  /* Play-Knopf pulsiert leicht */
  .play-gross svg circle { animation: puls 2.4s 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

  @keyframes von-oben { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes von-unten { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes von-rechts-rein { from { transform: translateX(110%); } to { transform: none; } }
  @keyframes wachsen { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
  @keyframes einblenden-hoch { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes kreuz { to { stroke-dashoffset: 0; } }
  @keyframes puls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
}
