/* Aitrachtaler Theatergruppe · style.css
   Aufbau: Tokens, Schriften, Basis, Komponenten, Sektionen, Unterseiten, Reduced Motion (immer zuletzt) */

/* ========== Tokens ========== */
:root {
  /* Logo-Farbe (Logo 2025, Pixelanalyse der Logodatei: #1c2c48) mit Abstufungen; Kontraste geprüft */
  --marke: #1c2c48;             /* Buttons, Links, Besetzungskarte – 13.4:1 auf Papier */
  --marke-700: #14203a;
  --marke-800: #0e1729;
  --marke-500: #2d4472;
  --marke-100: #dde4ef;
  --marke-050: #f0f3f8;
  --akzent: #2f6aa6;            /* zweites Blau (Plakat Männergrippe): Jahreszahlen, Rauten – 5.4:1 auf Papier */
  --strich: #c3cee0;            /* helle Linie und Nebentext auf Logo-Blau, 8.8:1 */

  --papier: #fafaf8;            /* Seitenhintergrund */
  --flaeche: #ffffff;
  --tint: #e6edf7;              /* Sektions-Tint Hellblau: Nebentext 5.1:1, Akzent 4.8:1 */
  --himmel: #dde7f4;            /* Verlauf oben in Hero und Seitenkopf */
  --linie: #dde2ea;
  --linie-stark: #bcc5d3;

  --tinte: #1c2c48;             /* Headlines in Logo-Blau */
  --text: #323a4a;              /* Fliesstext, 10.9:1 */
  --leise: #596377;             /* Nebentext, 5.8:1 auf Papier */

  --font-titel: "Weiss Rundgotisch", "Palatino Linotype", Palatino, Georgia, serif;
  --font-text: "Montserrat", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Radius-System: Buttons 4 / Karten 6 / Felder 4 / Fotos 0 */
  --r-button: 4px;
  --r-karte: 6px;
  --r-feld: 4px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dauer-ui: 180ms;
  --dauer-reveal: 560ms;

  --container: 1180px;
  --rand: clamp(1rem, 4vw, 2rem);
  --sektion: clamp(3.5rem, 8vw, 6rem);
  --folgeblock: clamp(2.5rem, 5vw, 4rem);
  --karte-pad: clamp(1.35rem, 2.5vw, 1.75rem);
  --gap: 1.25rem;

  --header-h: 72px;
  --z-sticky: 20;
  --z-mobilbar: 30;
  --z-menu: 40;
}

/* ========== Schriften (lokal, latin + Umlaute) ========== */
/* Logoschriften: Weiß-Rundgotisch für „Aitrachtaler“ (Lizenz FFC, frei auch für kommerzielle Nutzung;
   Datei vom Verein, 2026-10-16), Montserrat für „THEATERGRUPPE“ (Google Fonts, OFL). Beide lokal.
   Weiß-Rundgotisch hat nur einen Schnitt: für alle Gewichtungen angemeldet, damit kein Kunstfett entsteht. */
@font-face {
  font-family: "Weiss Rundgotisch";
  src: url("../fonts/weissrundgotisch-regular.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ========== Basis ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, 0.4vw + 0.98rem, 1.15rem);
  line-height: 1.62;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
/* Mobile: cut off any horizontal overflow. clip (not hidden) keeps position: sticky working. */
@media (max-width: 767px) { body { overflow-x: clip; } }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--marke); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--marke-800); }
:focus-visible { outline: 3px solid var(--marke-500); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { color: var(--tinte); margin: 0 0 0.6em; text-wrap: balance; }
h1, h2 { font-family: var(--font-titel); font-weight: 650; line-height: 1.02; letter-spacing: 0; }
h2 { font-size: clamp(2rem, 3.6vw + 0.6rem, 3.25rem); }
h3 { font-family: var(--font-text); font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
p, ul, ol, dl { margin: 0 0 1em; }
p { text-wrap: pretty; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); }
/*.prose { max-width: 68ch; }*/
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }
.leise { color: var(--leise); }
.klein { font-size: 0.92rem; }
p.wp-block-paragraph {max-width: 900px;}

  .skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--tinte); color: #fff; padding: 0.7rem 1rem; border-radius: var(--r-button); font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.7rem 1.35rem;
  border: 2px solid var(--marke); border-radius: var(--r-button);
  background: var(--marke); color: #fff;
  font: 700 1rem/1.1 var(--font-text); letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dauer-ui) var(--ease-out), border-color var(--dauer-ui) var(--ease-out), color var(--dauer-ui) var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--outline { background: transparent; color: var(--marke); }
.btn--hell { background: #fff; border-color: #fff; color: var(--marke-700); }
.btn--klein { min-height: 42px; padding: 0.5rem 1rem; font-size: 0.95rem; }
@media (hover: hover) {
  .btn:hover { background: var(--marke-700); border-color: var(--marke-700); color: #fff; }
  .btn--outline:hover { background: var(--marke-050); color: var(--marke-800); border-color: var(--marke-700); }
  .btn--hell:hover { background: var(--marke-050); border-color: var(--marke-050); color: var(--marke-800); }
}
.btn-reihe { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* Small screens: buttons never exceed their container – smaller, and long labels wrap. */
@media (max-width: 600px) {
  .btn { max-width: 100%; min-width: 0; padding-inline: 1rem; font-size: 0.95rem; white-space: normal; text-align: center; }
}
.textlink { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; text-decoration: none; }
.textlink .icon { transition: transform var(--dauer-ui) var(--ease-out); }
@media (hover: hover) { .textlink:hover .icon { transform: translateX(3px); } }

/* ========== Hinweisleiste ========== */
.hinweis {
  background: var(--marke-700); color: #fff; font-size: 0.95rem;
}
.hinweis[hidden] { display: none; }
.hinweis__inner { display: flex; align-items: center; gap: 1rem; min-height: 44px; padding-block: 0.45rem; }
.hinweis p { margin: 0; flex: 1; }
.hinweis a { color: #fff; font-weight: 700; }
.hinweis__zu {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border: 0; border-radius: var(--r-button); background: transparent; color: #fff; cursor: pointer;
}
.hinweis__zu:hover { background: var(--marke-800); }
html:not(.js) .hinweis__zu { display: none; }

/* ========== Header mit haengendem Wimpel ========== */
#top-sentinel { height: 1px; }
.kopf {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(250, 250, 248, 0.96);
  border-bottom: 1px solid var(--linie);
  transition: box-shadow var(--dauer-ui) var(--ease-out);
}
.kopf.is-stuck { box-shadow: 0 6px 24px -14px rgba(28, 44, 72, 0.35); }
.kopf__inner { position: relative; display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
/* Logo 2025 rund auf weißer Scheibe, ragt wie früher der Wimpel über die Kopfleiste; daneben der Name. */
.kopf__logo {
  position: relative; z-index: 1; align-self: flex-start; flex: none; display: grid; place-items: center;
  width: 100px; height: 100px; margin-top: 6px; margin-right: 0.25rem; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px var(--marke), 0 12px 26px -12px rgba(20, 32, 58, 0.55);
  transition: width 260ms var(--ease-out), height 260ms var(--ease-out);
}
.kopf__logo img { width: 78%; height: auto; }
.kopf.is-stuck .kopf__logo { width: 68px; height: 68px; }
.kopf__name { display: none; font-family: var(--font-titel); font-size: 1.6rem; line-height: 1; color: var(--marke); text-decoration: none; white-space: nowrap; }
.kopf__name small { display: block; font-family: var(--font-text); font-size: 0.78rem; font-weight: 600; color: var(--leise); margin-top: 0.3rem; letter-spacing: 0.02em; }
/* Feste Umbruchpunkte (Nutzer 2026-10-22, statt Messung per Skript), gemessen mit Männergrippe,
   Stücke, Verein, Aktuelles: Name ab 1180 px (passt ab 1140), Menü-Knopf bis 900 px (Leiste passt ab 901). */
@media (min-width: 1180px) { .kopf__name { display: block; } }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.8rem;
  color: var(--tinte); font-weight: 600; text-decoration: none; border-radius: var(--r-button);
  white-space: nowrap; /* lange Titel bekommen im Backend eine kurze Navigations-Beschriftung */
}
.nav a:not(.btn)[aria-current="page"] { color: var(--marke); box-shadow: inset 0 -2px 0 var(--marke); border-radius: 0; }
@media (hover: hover) { .nav a:not(.btn):hover { color: var(--marke); background: var(--marke-050); } }
.nav .btn { margin-left: 0.6rem; }
.menu-knopf {
  display: none; margin-left: auto; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 0.9rem;
  border: 2px solid var(--tinte); border-radius: var(--r-button); background: transparent; color: var(--tinte);
  font: 700 0.95rem/1 var(--font-text); cursor: pointer;
}
@media (max-width: 900px) {
  .kopf__logo { width: 84px; height: 84px; }
  .kopf.is-stuck .kopf__logo { width: 62px; height: 62px; }
  html:not(.js) .kopf__inner { height: auto; flex-wrap: wrap; padding-block: 0.5rem; }
  html:not(.js) .nav ul { flex-wrap: wrap; }
  /* Menü-Knopf statt Leiste (ohne JavaScript bricht die Leiste um, oben). */
  .js .menu-knopf { display: inline-flex; }
  .js .kopf .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-menu);
    background: var(--papier); padding: 3rem var(--rand) 2rem; overflow-y: auto; /* oben Platz für die überstehende Logo-Scheibe */
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--dauer-ui) var(--ease-out), transform var(--dauer-ui) var(--ease-out), visibility 0s linear var(--dauer-ui);
  }
  .js .kopf .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  /* Die Logo-Scheibe ragt über die Leiste – sie bleibt auch über dem offenen Menü ganz sichtbar. */
  .js .kopf .kopf__logo { z-index: calc(var(--z-menu) + 1); }
  .js .kopf .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .kopf .nav li { border-bottom: 1px solid var(--linie); }
  .js .kopf .nav a:not(.btn) { width: 100%; min-height: 56px; font-family: var(--font-titel); font-size: 1.6rem; font-weight: 600; padding-inline: 0; white-space: normal; }
  .js .kopf .nav a:not(.btn)[aria-current="page"] { box-shadow: none; }
  .js .kopf .nav li:last-child { border: 0; padding-top: 1.25rem; }
  .js .kopf .nav .btn { margin: 0; width: 100%; }
  body.menu-open { overflow: hidden; }
}

/* ========== Rauten (Termine wie auf dem Plakat 2023) ========== */
.raute {
  --s: 7.25rem;
  position: relative; display: grid; place-items: center; width: var(--s); height: var(--s);
  text-align: center; line-height: 1;
}
.raute::before {
  content: ""; position: absolute; inset: 14.6%; background: #fff; border: 2px solid var(--akzent);
  transform: rotate(45deg); border-radius: 3px; box-shadow: 0 10px 24px -12px rgba(20, 32, 58, 0.45);
}
.raute > * { position: relative; }
.raute__klein { display: block; font: 700 0.72rem/1 var(--font-text); letter-spacing: 0.04em; color: var(--akzent); margin-bottom: 0.2rem; }
.raute__gross { display: block; font-family: var(--font-titel); font-weight: 700; font-size: 1.75rem; color: var(--tinte); }

/* ========== Hero (Startseite) ========== */
.hero, .seitenkopf { background: linear-gradient(180deg, var(--himmel) 0%, var(--papier) 100%); }
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.h1-vor { display: block; font-size: clamp(1.35rem, 1.2vw + 1rem, 1.85rem); font-weight: 550; color: var(--tinte); margin-bottom: 0.35rem; }
.h1-titel { display: block; font-size: clamp(3.4rem, 8.5vw, 6rem); font-weight: 750; color: var(--marke); line-height: 0.92; }
.lead { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); max-width: 40ch; margin-bottom: 1.75rem; }
.lead__frage { display: block; font-family: var(--font-titel); font-size: 1.32em; font-weight: 550; color: var(--tinte); line-height: 1.15; margin-bottom: 0.35rem; }
.hero__bild { position: relative; margin: 0; }
.hero__bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 64%; }
.rahmen { position: relative; }
.hero__bild .raute { position: absolute; left: -2.6rem; bottom: 1.25rem; }
.hero__bild figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--leise); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__bild { max-width: 460px; margin-left: 2rem; }
  .hero__bild img { aspect-ratio: 4 / 4.4; }
  .hero__bild .raute { left: -2rem; --s: 6.25rem; }
  .raute__gross { font-size: 1.5rem; }
}

/* ========== Theaterzettel-Faktenleiste ========== */
.zettel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  border-top: 4px double var(--tinte); border-bottom: 1px solid var(--tinte);
  margin: 0;
}
.zettel > div { padding: 1.1rem 1.25rem 1.2rem 0; }
.zettel > div + div { padding-left: 1.25rem; border-left: 1px solid var(--linie-stark); }
.zettel dt { font: 700 0.8rem/1.2 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--marke-700); margin-bottom: 0.35rem; }
.zettel dd { margin: 0; color: var(--tinte); font-weight: 600; line-height: 1.4; }
.zettel dd a { font-weight: 700; }
@media (max-width: 1023px) {
  .zettel > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--linie); }
}

/* ========== Sektionen ========== */
.sektion { padding-block: var(--sektion); }
.sektion--tint { background: var(--tint); }
.sektion-followup { margin-top: var(--folgeblock); }
.sektion__kopf { max-width: 62ch; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.sektion__kopf p { color: var(--text); }
.trenner { border: 0; border-top: 4px double var(--linie-stark); margin: 0; }

.zwei { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .zwei { grid-template-columns: 1fr; } }

/* Theaterzettel-Karte (Personen der Handlung) */
.besetzung {
  background: var(--marke-700); color: #fff; border-radius: var(--r-karte);
  padding: var(--karte-pad); padding-top: calc(var(--karte-pad) + 0.25rem);
  box-shadow: inset 0 0 0 6px var(--marke-700), inset 0 0 0 7px var(--strich);
}
.besetzung h2, .besetzung h3 { color: #fff; font-family: var(--font-titel); font-size: clamp(1.7rem, 2vw + 1rem, 2.2rem); font-weight: 650; margin-bottom: 0.25rem; }
.besetzung__unter { color: var(--strich); font-size: 0.95rem; margin-bottom: 1.1rem; }
.personen { list-style: none; margin: 0; padding: 0; }
.personen li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.42rem 0; }
.personen .rolle { font-weight: 700; color: #fff; white-space: nowrap; }
.personen .punkte { flex: 1; min-width: 1.5rem; border-bottom: 2px dotted rgba(195, 206, 224, 0.7); transform: translateY(-0.3em); }
.personen .info { color: var(--strich); text-align: right; font-size: 0.95rem; }
.besetzung__fuss { margin: 1.1rem 0 0; padding-top: 0.9rem; border-top: 1px solid rgba(195, 206, 224, 0.45); color: #fff; font-size: 0.95rem; }
.besetzung a { color: #fff; }
.prose .personen { padding-left: 0; }
.besetzung > h2:first-child, .besetzung > h3:first-child { margin-top: 0; }
@media (max-width: 480px) {
  .personen li { display: block; padding: 0.5rem 0; border-bottom: 1px dotted rgba(195, 206, 224, 0.45); }
  .personen li:last-child { border-bottom: 0; }
  .personen .rolle, .personen .info { display: block; text-align: left; }
  .personen .punkte { display: none; }
  .personen .info { font-size: 0.92rem; line-height: 1.35; }
}

.zitat {
  margin: 1.75rem 0 0; padding: 0;
  font-family: var(--font-titel); font-size: clamp(1.6rem, 2vw + 1rem, 2.15rem); font-weight: 600; line-height: 1.12; color: var(--marke);
}
.zitat footer { margin-top: 0.5rem; font: 600 0.92rem/1.4 var(--font-text); color: var(--leise); }

/* ========== Bild-Band mit dezentem Parallax ========== */
.band { position: relative; overflow: hidden; min-height: clamp(420px, 62vw, 640px); display: flex; align-items: flex-end; background: var(--tinte); }
.band__bild { position: absolute; inset: -9% 0; }
.band__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; will-change: transform; }
.band__inhalt { position: relative; width: 100%; padding-block: clamp(2rem, 5vw, 3.5rem); }
.band__panel {
  max-width: 34rem; padding: var(--karte-pad);
  background: rgba(250, 250, 248, 0.92); border-radius: var(--r-karte);
  margin-left: calc(-1 * var(--karte-pad));
}
@supports (backdrop-filter: blur(8px)) { .band__panel { background: rgba(250, 250, 248, 0.86); backdrop-filter: blur(8px); } }
.band__panel h2 { font-size: clamp(2rem, 3vw + 0.8rem, 3rem); }
.band__panel p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .band__panel { margin-left: 0; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band__bild img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes drift { from { transform: translateY(-7%); } to { transform: translateY(7%); } }
  }
}

/* ========== Spielplan (Liste der Jahre) ========== */
.spielplan { list-style: none; margin: 0; padding: 0; border-top: 4px double var(--tinte); }
.spielplan li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: 0.95rem 0; border-bottom: 1px solid var(--linie-stark); }
.spielplan .jahr { font-family: var(--font-titel); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--akzent); }
.spielplan .titel { font-family: var(--font-titel); font-weight: 600; font-size: clamp(1.35rem, 1vw + 1rem, 1.7rem); line-height: 1.1; color: var(--tinte); }
.spielplan .titel a { color: inherit; text-decoration: none; }
.spielplan .titel a:hover { color: var(--marke); text-decoration: underline; }
.spielplan .meta { display: block; font-size: 0.95rem; color: var(--leise); margin-top: 0.2rem; }
.spielplan .marke { font: 700 0.78rem/1 var(--font-text); letter-spacing: 0.05em; text-transform: uppercase; color: #fff; background: var(--marke); padding: 0.4rem 0.55rem; border-radius: 3px; white-space: nowrap; }
.spielplan li.aktuell { background: linear-gradient(90deg, var(--marke-050), transparent 70%); }
@media (max-width: 600px) { .spielplan li { grid-template-columns: 4.6rem minmax(0, 1fr); } .spielplan .jahr { font-size: 1.6rem; } .spielplan .marke { grid-column: 2; justify-self: start; } }

/* ========== Bento (Mitmachen) ========== */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.bento > * { border-radius: var(--r-karte); }
.bento__foto { grid-column: span 7; grid-row: span 2; position: relative; overflow: hidden; margin: 0; min-height: 320px; background: var(--tinte); }
.bento__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.bento__foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem 0.9rem; color: #fff; font-size: 0.9rem; background: linear-gradient(transparent, rgba(30, 20, 18, 0.78)); }
.bento__karte { grid-column: span 5; padding: var(--karte-pad); background: var(--flaeche); border: 1px solid var(--linie); }
.bento__karte--rot { background: var(--marke-700); border-color: var(--marke-700); color: #fff; }
.bento__karte--rot h3 { color: #fff; }
.bento__karte--rot p { color: #fff; }
.bento__karte--rot .preis { color: #fff; }
.bento__karte h3 { font-family: var(--font-titel); font-size: 1.85rem; font-weight: 650; line-height: 1.05; }
.bento__karte p:last-child { margin-bottom: 0; }
.preis { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.25rem 0 1rem; font-family: var(--font-titel); font-weight: 700; font-size: 3rem; line-height: 1; }
.preis small { font: 600 1rem/1.3 var(--font-text); color: var(--strich); }
.freunde { list-style: none; padding: 0; margin: 0 0 1rem; }
.freunde li { padding: 0.55rem 0; border-bottom: 1px dotted var(--linie-stark); font-weight: 600; color: var(--tinte); }
.freunde li:last-child { border-bottom: 0; }
.freunde a { color: var(--tinte); }
@media (max-width: 900px) { .bento__foto, .bento__karte { grid-column: 1 / -1; grid-row: auto; } .bento__foto { min-height: 0; aspect-ratio: 4 / 3; } }

/* ========== FAQ ========== */
.faq { border-top: 4px double var(--tinte); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--linie-stark); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: 1rem 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.1rem; color: var(--tinte);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 1.4rem; height: 1.4rem; color: var(--marke); transition: transform var(--dauer-ui) var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .antwort { padding: 0 0 1.25rem; max-width: 68ch; }
.faq .antwort p:last-child { margin-bottom: 0; }
@media (hover: hover) { .faq summary:hover { color: var(--marke); } }

/* ========== Abschluss-Streifen ========== */
.schluss { background: var(--marke); color: #fff; }
.schluss .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.schluss h2 { color: #fff; margin: 0 0 0.25rem; font-size: clamp(1.9rem, 2.5vw + 1rem, 2.6rem); }
.schluss p { margin: 0; max-width: 46ch; }
.schluss a:not(.btn) { color: #fff; font-weight: 700; }

/* ========== Footer ========== */
.fuss { background: var(--marke); color: var(--strich); padding-block: clamp(2.75rem, 6vw, 4rem) 1.5rem; font-size: 0.98rem; }
.fuss__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 0.8fr); gap: 2rem; }
.fuss__marke { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.fuss__logo { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; background: #fff; }
.fuss__logo img { width: 78%; height: auto; }
.fuss__marke strong { display: block; font-family: var(--font-titel); font-size: 1.45rem; font-weight: 650; line-height: 1.05; color: var(--tinte); margin-bottom: 0.4rem; }
.fuss h2 { font: 700 0.82rem/1.2 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 0.8rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 0.45rem; }
.fuss a { color: #fff; }
.fuss a:hover { color: var(--strich); }
.fuss .mit-icon { display: inline-flex; align-items: center; gap: 0.45rem; }
.fuss__unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(195, 206, 224, 0.35); color: var(--strich); font-size: 0.9rem; }
.fuss__unten ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.fuss__unten a { color: var(--strich); }
@media (max-width: 900px) { .fuss__grid { grid-template-columns: 1fr 1fr; } .fuss__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .fuss__grid { grid-template-columns: 1fr; } }

/* ========== Mobile Sticky-Leiste ========== */
.mobilbar { display: none; }
@media (max-width: 767px) {
  .mobilbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobilbar);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0.6rem;
    padding: 0.6rem var(--rand) calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(250, 250, 248, 0.97); border-top: 1px solid var(--linie);
    box-shadow: 0 -8px 24px -16px rgba(28, 44, 72, 0.4);
    transition: transform 240ms var(--ease-out);
  }
  .mobilbar .btn { width: 100%; min-width: 0; padding-inline: 0.75rem; white-space: normal; text-align: center; }
  .mobilbar.is-hidden { transform: translateY(110%); }
}

/* ========== Reveals (nur mit JS) ========== */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--dauer-reveal) var(--ease-out), transform var(--dauer-reveal) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ========== Unterseiten: Seitenkopf, Brotkrumen ========== */
.brot { padding-top: clamp(1.25rem, 3vw, 2rem); font-size: 0.92rem; color: var(--leise); }
/* Brotkrumen auf dem Hellblau des folgenden Seitenkopfs, über die ganze Breite (der Container ist schmaler). */
.brot { background: var(--himmel); box-shadow: 0 0 0 100vmax var(--himmel); clip-path: inset(0 -100vmax); }
/* Platz für die Logo-Scheibe, die über die Kopfleiste ragt */
@media (min-width: 901px) { .brot { padding-left: 120px; } }
.brot ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; }
.brot li + li::before { content: "/"; margin-right: 0.35rem; color: var(--linie-stark); }
.brot a { color: var(--leise); }
.seitenkopf { padding-block: clamp(1.25rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem); }
.seitenkopf h1 { font-size: clamp(2.5rem, 4.6vw + 0.5rem, 4.1rem); font-weight: 700; margin-bottom: 0.9rem; max-width: 24ch; }
.seitenkopf .lead { max-width: 52ch; margin-bottom: 0; }

/* Stueck-Seite: Prosa + Sidebar */
.mit-aside { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.aside { position: sticky; top: calc(var(--header-h) + 1.25rem); display: grid; gap: var(--gap); }
.aside__karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); padding: var(--karte-pad); }
.aside__karte h2 { font-size: 1.7rem; margin-bottom: 0.75rem; }
.aside__karte dl { margin: 0 0 1.25rem; }
.aside__karte dt { font: 700 0.8rem/1.2 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--marke-700); margin-top: 0.9rem; }
.aside__karte dt:first-child { margin-top: 0; }
.aside__karte dd { margin: 0.2rem 0 0; color: var(--tinte); font-weight: 600; }
.aside__karte .btn { width: 100%; }
.aside__karte .btn + .btn { margin-top: 0.6rem; }
@media (max-width: 980px) { .mit-aside { grid-template-columns: 1fr; } .aside { position: static; } }

.stueck-kopf { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.stueck-kopf figure { margin: 0; position: relative; }
.stueck-kopf figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; }
.stueck-kopf .raute { position: absolute; left: -2.4rem; bottom: 1.25rem; }
.stueck-kopf figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--leise); }
@media (max-width: 860px) { .stueck-kopf { grid-template-columns: 1fr; } .stueck-kopf figure { max-width: 420px; margin-left: 2rem; } }

/* Archiv-Eintraege */
.archiv { display: grid; gap: 0; }
.eintrag { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); padding-block: clamp(2.25rem, 5vw, 3.5rem); border-top: 1px solid var(--linie-stark); }
.eintrag:first-child { border-top: 4px double var(--tinte); }
.eintrag__jahr { font-family: var(--font-titel); font-weight: 700; font-size: clamp(2.6rem, 3vw + 1rem, 3.6rem); line-height: 0.9; color: var(--akzent); position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; }
.eintrag h2 { font-size: clamp(2rem, 2.6vw + 1rem, 2.9rem); margin-bottom: 0.4rem; }
.eintrag__meta { color: var(--leise); font-weight: 600; margin-bottom: 1.1rem; }
/* Mauerwerk (Nutzerwunsch 2026-10-22): Spalten statt Raster, Hoch- und Querformate rücken lückenlos
   zusammen. 2 Spalten am Handy, höchstens 3; Reihenfolge läuft spaltenweise von oben nach unten. */
.eintrag__bilder { columns: 3 10rem; column-gap: 0.75rem; margin-top: 1.5rem; }
.eintrag__bilder figure { margin: 0 0 0.75rem; break-inside: avoid; }
/* Mit JavaScript zeilenweise gefüllt (assets/js/mauerwerk.js): Spalten als Flex-Kinder, die
   columns-Angaben oben bleiben stehen und liefern dem Skript die Spaltenzahl. */
.eintrag__bilder[data-mauerwerk] { display: flex; gap: 0.75rem; align-items: flex-start; }
.mauerwerk__spalte { flex: 1 1 0; min-width: 0; }
.eintrag__bilder img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.eintrag__bilder .hoch img { aspect-ratio: 4 / 5; }
.eintrag__bilder figcaption { font-size: 0.85rem; color: var(--leise); margin-top: 0.4rem; }
.plakat-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: clamp(1.25rem, 3vw, 2.25rem); align-items: start; }
.plakat { margin: 0; }
.plakat img { width: 100%; box-shadow: 0 14px 30px -18px rgba(28, 44, 72, 0.55); border: 1px solid var(--linie); }
.plakat figcaption { font-size: 0.85rem; color: var(--leise); margin-top: 0.5rem; }
.termine-liste { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; }
.termine-liste li { padding: 0.3rem 0.6rem; border: 1px solid var(--linie-stark); border-radius: 3px; font-size: 0.92rem; font-weight: 600; color: var(--tinte); background: var(--flaeche); }
.fruehere { columns: 2 16rem; column-gap: 2rem; list-style: none; padding: 0; margin: 0; }
.fruehere li { break-inside: avoid; padding: 0.5rem 0; border-bottom: 1px dotted var(--linie-stark); }
.fruehere b { font-family: var(--font-titel); font-size: 1.3rem; color: var(--akzent); margin-right: 0.5rem; }
@media (max-width: 760px) {
  .eintrag { grid-template-columns: 1fr; gap: 0.25rem; }
  .eintrag__jahr { position: static; }
  .plakat-zeile { grid-template-columns: 1fr; }
  .plakat { max-width: 260px; }
}
.video { margin: 1.5rem 0 0; }
.video video { width: 100%; background: #000; aspect-ratio: 16 / 9; }
.video figcaption { font-size: 0.85rem; color: var(--leise); margin-top: 0.5rem; }

/* Verein: Zeitleiste */
.zeitleiste { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--marke); }
.zeitleiste li { position: relative; padding: 0 0 1.5rem 1.6rem; }
.zeitleiste li::before { content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; background: var(--papier); border: 2px solid var(--marke); transform: rotate(45deg); }
.zeitleiste b { display: block; font-family: var(--font-titel); font-size: 1.55rem; line-height: 1.1; color: var(--akzent); }
.zeitleiste li:last-child { padding-bottom: 0; }
.fotoreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--gap); }
.fotoreihe figure { margin: 0; }
.fotoreihe img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fotoreihe .hoch img { aspect-ratio: 3 / 4; }
.zwei .fotoreihe { grid-template-columns: 1fr 1fr; }
.zwei > .bento__karte { grid-column: auto; }
.fotoreihe figcaption { font-size: 0.85rem; color: var(--leise); margin-top: 0.45rem; }
.breitfoto { margin: 0; }
.breitfoto img { width: 100%; }
.breitfoto figcaption { font-size: 0.85rem; color: var(--leise); margin-top: 0.5rem; }

/* ========== Kontakt: Karte, Funnel ========== */
.kontaktkarte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); padding: var(--karte-pad); }
.kontaktkarte h2 { font-size: 1.8rem; }
.kontaktkarte p:last-child { margin-bottom: 0; }
.kontaktkarte .gross { font-size: 1.15rem; font-weight: 700; word-break: break-word; }

.funnel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); padding: var(--karte-pad); }
.funnel__schritte { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: s; }
.funnel__schritte li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem 0.4rem 0.45rem; border-radius: 999px; border: 1px solid var(--linie-stark); font-size: 0.9rem; font-weight: 600; color: var(--leise); }
.funnel__schritte li span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--tint); color: var(--tinte); font-weight: 700; font-size: 0.85rem; }
.funnel__schritte li[aria-current="step"] { border-color: var(--marke); color: var(--marke-800); background: var(--marke-050); }
.funnel__schritte li[aria-current="step"] span, .funnel__schritte li.is-done span { background: var(--marke); color: #fff; }
.schritt[hidden] { display: none; }
.schritt h3 { font-family: var(--font-titel); font-size: 1.85rem; font-weight: 650; margin-bottom: 1rem; }
.schritt h3:focus { outline: none; }
fieldset { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
legend { font-weight: 700; color: var(--tinte); margin-bottom: 0.6rem; padding: 0; }
.wahl { display: grid; gap: 0.55rem; }
.wahl label { display: flex; align-items: center; gap: 0.75rem; min-height: 52px; padding: 0.7rem 0.9rem; border: 1px solid var(--linie-stark); border-radius: var(--r-feld); cursor: pointer; font-weight: 600; color: var(--tinte); background: var(--papier); transition: border-color var(--dauer-ui) var(--ease-out), background-color var(--dauer-ui) var(--ease-out); }
.wahl input { width: 1.2rem; height: 1.2rem; accent-color: var(--marke); flex: none; }
.wahl label:has(input:checked) { border-color: var(--marke); background: var(--marke-050); }
.feld { margin-bottom: 1rem; }
.feld label { display: block; font-weight: 700; color: var(--tinte); margin-bottom: 0.35rem; }
.feld .opt { font-weight: 500; color: var(--leise); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 0.85rem;
  border: 1px solid var(--linie-stark); border-radius: var(--r-feld); background: #fff;
  font: inherit; color: var(--tinte);
}
textarea { min-height: 150px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--marke-500); outline-offset: 1px; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--marke); flex: none; }
.feld-fehler { display: none; color: var(--marke-700); font-weight: 700; font-size: 0.92rem; margin-top: 0.35rem; }
.has-error .feld-fehler { display: block; }
.has-error input, .has-error textarea { border-color: var(--marke); }
.funnel__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 1.25rem; }
.funnel__hinweis { padding: 0.9rem 1rem; background: var(--marke-050); border-radius: var(--r-feld); color: var(--tinte); font-size: 0.96rem; margin-bottom: 1rem; }
.funnel__hinweis[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.funnel__fertig { text-align: left; }
.funnel__fertig[hidden] { display: none; }
html:not(.js) .funnel form { display: none; }
.nojs-hinweis { display: none; }
html:not(.js) .nojs-hinweis { display: block; }

/* Eigener Stapelkontext: Leaflet setzt z-index bis 1000 (Ebenen, Knöpfe, Popup), ohne ihn lägen
   Karte und Popup über dem klebenden Kopf (z-index 20). */
.map-wrap { position: relative; z-index: 0; isolation: isolate; border-radius: var(--r-karte); overflow: hidden; border: 1px solid var(--linie); background: var(--tint); }
.map-consent { padding: var(--karte-pad); }
.map-consent p { font-size: 0.95rem; }
#map { height: 380px; }
#map[hidden] { display: none; }
.map-fehler { color: var(--marke-700); font-weight: 700; }

/* Rechtstexte */
mark { background: var(--marke-100); color: var(--marke-800); padding: 0 0.25em; border-radius: 2px; font-weight: 600; }
.recht h2 { font-size: clamp(1.7rem, 2vw + 0.9rem, 2.2rem); margin-top: 1.8em; }
.recht h3 { margin-top: 1.4em; }

/* ========== Reduced Motion (immer zuletzt, nie entfernen) ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .band__bild img { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .band__panel, .kopf, .mobilbar { background: var(--papier); backdrop-filter: none; }
}
