/* Wahlkampf-Orga: eine Seite, Bänder in voller Breite, Inhalt in .wrap (max. 1120px).
   Schriften liegen auf dem eigenen Server (fonts/), kein Google Fonts, keine Cookies. */
@font-face { font-family: "Rubik"; src: url("fonts/rubik-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/publicsans-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --bg: #f3f6f2;        /* Papier mit grünem Stich */
  --surface: #fbfbf8;
  --ink: #14231f;
  --muted: #4f625b;
  --line: #d3ded8;
  --green: #1f5c4a;     /* Hauptfarbe */
  --green-ink: #fbfbf8;
  --sun: #f2c94c;       /* Akzent, nur sparsam */
  --sun-ink: #14231f;
  --open: #a4501f;      /* „fehlen“ */
  --open-bg: #f7e6d8;
  --ok: #2f7d4f;
  --ok-bg: #e2f0e7;
  --band: #1f5c4a;      /* dunkles Band (Datenschutz) */
  --band-ink: #fbfbf8;
  --band-muted: #c9dcd3;
  --display: "Rubik", "Segoe UI", system-ui, sans-serif;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1a17; --surface: #16241f; --ink: #e6efea; --muted: #a3b8ae; --line: #2a3d36;
  --green: #7cc4a8; --green-ink: #0f1a17; --sun: #f2c94c; --sun-ink: #14231f;
  --open: #f0a271; --open-bg: #3a2618; --ok: #6cc596; --ok-bg: #18311f;
  --band: #16241f; --band-ink: #e6efea; --band-muted: #a3b8ae; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0f1a17; --surface: #16241f; --ink: #e6efea; --muted: #a3b8ae; --line: #2a3d36;
  --green: #7cc4a8; --green-ink: #0f1a17; --sun: #f2c94c; --sun-ink: #14231f;
  --open: #f0a271; --open-bg: #3a2618; --ok: #6cc596; --ok-bg: #18311f;
  --band: #16241f; --band-ink: #e6efea; --band-muted: #a3b8ae; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; font-weight: 700; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Kopfzeile */
.bar { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.1rem/1 var(--display); color: var(--ink); text-decoration: none; }
.mark { width: 34px; height: 34px; border-radius: 9px; background: var(--green); color: var(--green-ink); display: grid; place-items: center; font-size: 0.85rem; }
.bar-link { font-weight: 600; font-size: 0.95rem; }

/* Einstieg: Frage + Termin-Tafel */
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(48px, 8vw, 96px); }
@media (max-width: 860px) { .hero-in { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-cta { margin-top: 8px; }
.btn { display: inline-block; background: var(--green); color: var(--green-ink); text-decoration: none; font-weight: 700; padding: 14px 22px; border-radius: 10px; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: color-mix(in srgb, var(--green) 88%, var(--ink)); } }

.board { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px color-mix(in srgb, var(--ink) 10%, transparent); min-width: 0; }
.board-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.board-h span { grid-row: span 2; font: 700 0.8rem/1.2 var(--text); text-transform: uppercase; letter-spacing: 0.08em; background: var(--sun); color: var(--sun-ink); padding: 6px 9px; border-radius: 7px; align-self: center; }
.board-h b { font: 700 1.15rem/1.2 var(--display); }
.board-h small { color: var(--muted); font-size: 0.9rem; }
.slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.slots li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto 5.6rem; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.slots li:first-child { border-top: 0; }
.slots .t { color: var(--muted); font-size: 0.92rem; }
.slots .n { font-weight: 600; min-width: 0; }
.seats { display: inline-flex; gap: 4px; }
.seats i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--green); display: block; }
.seats i.on { background: var(--green); }
.st { font-size: 0.82rem; font-weight: 700; text-align: center; padding: 3px 8px; border-radius: 999px; }
.st.ok { background: var(--ok-bg); color: var(--ok); }
.st.open { background: var(--open-bg); color: var(--open); }
.board figcaption { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 420px) { .slots li { grid-template-columns: 2.8rem minmax(0, 1fr) 5.2rem; } .seats { display: none; } }

/* Rollen */
.roles-in { display: flex; flex-direction: column; gap: 32px; padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .role-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.role { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.role h3 { padding-top: 14px; border-top: 3px solid var(--green); }
.role ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }

/* Screenshots */
.shots-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: 0 clamp(48px, 7vw, 88px); }
@media (max-width: 760px) { .shots-in { grid-template-columns: minmax(0, 1fr); } .shot-helfer { max-width: 280px; } }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shot-kreis img { border-radius: 12px; border: 1px solid var(--line); background: #f2f5f4; box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 8%, transparent); }
.shot-helfer img { border-radius: 24px; }
.shots figcaption { font-size: 0.88rem; color: var(--muted); }

/* Datenschutz-Band */
.privacy { background: var(--band); color: var(--band-ink); }
.privacy .wrap { padding-block: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 14px; }
.privacy .lead { color: var(--band-muted); }
.facts { margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.facts div { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 2px solid var(--sun); min-width: 0; }
.facts dt { font: 700 1.05rem/1.3 var(--display); }
.facts dd { margin: 0; color: var(--band-muted); font-size: 0.97rem; }

/* Pilot */
.pilot { scroll-margin-top: 16px; }
.pilot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: clamp(56px, 8vw, 96px); }
@media (max-width: 860px) { .pilot-in { grid-template-columns: minmax(0, 1fr); } }
.pilot-in > div:first-child { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.contact-l { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.mail { font: 700 clamp(1.1rem, 2.4vw, 1.45rem)/1.3 var(--display); overflow-wrap: anywhere; }

/* Fußzeile und Unterseiten */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); font-size: 0.92rem; color: var(--muted); }
.foot nav { display: flex; gap: 20px; }
.legal .wrap { max-width: 760px; padding-block: 48px 72px; display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.25rem; margin-top: 18px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0; padding-left: 1.2em; }
.ph { background: var(--open-bg); color: var(--open); padding: 0 4px; border-radius: 4px; }

/* Beispieltermin: ein Platz füllt sich einmal beim Laden (erklärt die Bildunterschrift) */
.st.swap { display: inline-grid; }
.st.swap > span { grid-area: 1 / 1; }
.seats i.fill { animation: seat-fill 300ms var(--ease-out) 1.2s both; }
.st.swap .a { animation: swap-out 220ms ease 1.25s both; }
.st.swap .b { animation: swap-in 260ms var(--ease-out) 1.3s both; }
@keyframes seat-fill { from { background: transparent; transform: scale(0.6); opacity: 0.4; } to { background: var(--green); transform: scale(1); opacity: 1; } }
@keyframes swap-out { from { opacity: 1; filter: blur(0); } to { opacity: 0; filter: blur(2px); } }
@keyframes swap-in { from { opacity: 0; filter: blur(2px); transform: translateY(3px); } to { opacity: 1; filter: blur(0); transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: background-color 200ms ease; }
  .btn:active { transform: none; }
  .seats i.fill { animation: none; background: var(--green); }
  .st.swap .a { animation: none; opacity: 0; }
  .st.swap .b { animation: none; }
}
