/* Dorfgemeinschaft Bünzwangen e.V. – Gestaltung der Homepage
 *
 * Ein Stylesheet für alle Seiten. Werte übernommen aus dem Elementor-Kit (Beitrag 10623)
 * und an der Live-Seite gemessen am 29.10.2026 (werkzeuge/stile.js).
 * Neue Seiten setzen sich aus den Bausteinen unten zusammen, nicht aus Einzelstilen.
 */

@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("schrift/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 300; font-style: italic; font-display: swap; src: url("schrift/poppins-300-kursiv.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("schrift/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("schrift/poppins-600.woff2") format("woff2"); }

:root {
  /* Farben */
  --text: #324a6d;          /* Schrift und Überschriften (Kit „Text“) */
  --vereinsblau: #29235c;
  --rot: #8a1812;
  --gruen: #076633;
  --grund: #ffffff;
  --grund-hell: #f3f5f8;    /* abgesetzte Abschnitte, Fußbereich */
  --grund-heller: #f9fafd;  /* Textfläche in Beiträgen */
  --flaeche: #ffffff;       /* Karten, Kasten, Kopf, Menü */
  --linie: #e5e5e5;
  --feldrand: #d8dde5;
  --grau: #7c7c7c;
  --knopf: #324a6d;
  --knopf-hover: #29235c;
  --vereine: #222222;
  --schattenfarbe: 50, 74, 109;
  color-scheme: light;

  /* Schrift */
  --schrift: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --groesse-held: clamp(2.75rem, 1.4rem + 5.4vw, 5rem);       /* 80 px */
  --groesse-h1: clamp(2.125rem, 1.4rem + 2.9vw, 3.125rem);    /* 50 px */
  --groesse-h2: clamp(1.625rem, 1.25rem + 1.3vw, 2.125rem);   /* 26–34 px: Abschnittsüberschrift */
  --groesse-h3: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem);   /* 19–22 px: Zwischenüberschrift */
  --groesse-klein: .875rem;                                   /* 14 px: Bildunterschrift, Stand, Hinweis */
  --groesse-h4: 1.25rem;                                      /* 20 px */
  --groesse-einleitung: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); /* 22 px */

  /* Maße */
  --breite: 1140px;
  --rand: clamp(16px, 8vw, 102px);     /* Seitenrand wie Elementor: 8 % */
  --abstand: clamp(56px, 7vw, 100px);  /* oben/unten je Abschnitt der Startseite */
  --abschnitt: clamp(48px, 6vw, 88px); /* oben/unten je Abschnitt auf Seiten und in Beiträgen */
  --luft: 16px;                        /* Abstand zwischen Elementen in einer Spalte */
  --rund: 0px;            /* Gestaltung „Gerade“ (31.10.2026): klare Kanten wie auf den Plakaten */
  --rund-knopf: 2px;
  --schatten: 0 1px 2px rgba(var(--schattenfarbe), .08);
  --rahmen: 1px solid var(--linie);
  --kopfhoehe: 100px;
  --welle: clamp(26px, 4vw, 60px);
  --blau-grund: #26306a;
}

/* Dunkelmodus. Ein Skript im <head> setzt data-modus="hell"/"dunkel" (Umschalter im Kopf,
   sonst nach Geräteeinstellung). Die @media-Regel gilt nur, falls das Skript nicht läuft. */
@media (prefers-color-scheme: dark) {
  :root:not([data-modus]) {
    --blau-grund: #1a2150;
    --text: #d5deec;
    --grund: #111729;
    --grund-hell: #172036;
    --grund-heller: #141c30;
    --flaeche: #1c263e;
    --linie: #2b3653;
    --feldrand: #3a4766;
    --grau: #9aa6ba;
    --knopf: #3f6296;
    --knopf-hover: #4d74ad;
    --vereine: #e8edf5;
    --schattenfarbe: 0, 0, 0;
    --schatten: 0 2px 14px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-modus="dunkel"] {
  --blau-grund: #1a2150;
  --text: #d5deec;
  --grund: #111729;
  --grund-hell: #172036;
  --grund-heller: #141c30;
  --flaeche: #1c263e;
  --linie: #2b3653;
  --feldrand: #3a4766;
  --grau: #9aa6ba;
  --knopf: #3f6296;
  --knopf-hover: #4d74ad;
  --vereine: #e8edf5;
  --schattenfarbe: 0, 0, 0;
  --schatten: 0 2px 14px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
[data-modus="dunkel"] .bildband { filter: brightness(.9); }
.logo-dunkel, [data-modus="dunkel"] .logo-hell { display: none; }
[data-modus="dunkel"] .logo-dunkel { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--kopfhoehe); }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 300 1rem/1.6 var(--schrift);
  hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: break-word;
}
h1, h2, h3, h4, .knopf, .karte__titel, .mitmachen__text { hyphens: manual; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: var(--groesse-h1); }
h2 { font-size: var(--groesse-h2); }
h3 { font-size: var(--groesse-h3); }
h4 { font-size: var(--groesse-h4); }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }

.breite { max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.abschnitt { padding-block: var(--abstand); }
.abschnitt--hell { background: var(--grund-hell); }
.abschnitt-titel { font-size: var(--groesse-h1); margin-bottom: clamp(24px, 4vw, 56px); }
.abschnitt-titel--rechts { text-align: right; }
.sprung:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--flaeche); }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 40px; border: 0; border-radius: var(--rund-knopf);
  background: var(--knopf); color: #fff; font: 400 1rem/1.2 var(--schrift);
  text-decoration: none; cursor: pointer; transition: background .2s;
}
.knopf:hover { background: var(--knopf-hover); }
.knopf--gross { font-size: 1.25rem; padding: 16px 55px; }
.knopf--klein { padding: 10px 28px; font-size: .9375rem; }
.knopf--gruen { background: var(--gruen); }
.knopf--gruen:hover { background: #05502a; }
.knopf[disabled] { opacity: .5; cursor: not-allowed; }
.textlink { color: var(--text); font-weight: 400; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ Kopf */
.kopf { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--flaeche); box-shadow: 0 1px 0 rgba(var(--schattenfarbe), .08); }
.kopf__innen { display: flex; align-items: center; gap: 32px; height: var(--kopfhoehe); }
.kopf__logo { flex: none; }
.kopf__logo img { width: 108px; height: auto; }
.menue { margin-left: auto; margin-right: auto; }
.menue__liste { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.menue__punkt { position: relative; }
.menue__link {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; white-space: nowrap;
  font-weight: 400; text-decoration: none; color: var(--text); border-bottom: 1px solid transparent;
}
.menue__link:hover, .menue__link[aria-current] { border-bottom-color: var(--text); }
.menue__pfeil { width: 10px; height: 10px; fill: currentColor; }
.menue__unter {
  position: absolute; top: 100%; left: -20px; min-width: 260px; padding: 10px 0; margin: 0;
  list-style: none; background: var(--flaeche); box-shadow: var(--schatten); border-radius: 0 0 var(--rund) var(--rund);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.menue__punkt:hover .menue__unter, .menue__punkt:focus-within .menue__unter { opacity: 1; visibility: visible; transform: none; }
.menue__unter a { display: block; padding: 8px 20px; text-decoration: none; font-weight: 300; }
.menue__unter a:hover { background: var(--grund-hell); }
.menue-knopf { display: none; }
@media (max-width: 1200px) and (min-width: 1025px) { .kopf__innen { gap: 20px; } .menue__liste { gap: 20px; } }
.modus-knopf {
  order: 2; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--linie);
  border-radius: 50%; background: none; color: var(--text); cursor: pointer; transition: background .2s;
}
.modus-knopf:hover { background: var(--grund-hell); }
.modus-knopf svg { width: 20px; height: 20px; }
.modus-knopf__sonne, [data-modus="dunkel"] .modus-knopf__mond { display: none; }
[data-modus="dunkel"] .modus-knopf__sonne { display: block; }
/* Anmelden / Kontomenü (Aufbau wie der gemeinsame Vereinskopf scripts/dgb-kopf.*) */
.konto { order: 3; position: relative; flex: none; }
.konto__knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 9px; border: 1px solid var(--linie);
  border-radius: 999px; background: none; color: var(--text); font: 400 .9375rem var(--schrift); cursor: pointer; transition: background .2s;
}
.konto__knopf:hover, .konto__knopf[aria-expanded="true"] { background: var(--grund-hell); }
.konto__symbol { width: 20px; height: 20px; }
.konto__text { display: none; }  /* nur Symbol bzw. Initialen, spart Platz im Kopf */
.konto--an .konto__knopf { padding: 0 4px; }
.konto__kreis {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--vereinsblau); color: #fff; font-size: .8125rem; font-weight: 600;
}
[data-modus="dunkel"] .konto__kreis { background: var(--knopf); }
.konto__menue {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: min(310px, calc(100vw - 32px));
  padding: 6px 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: var(--schatten);
}
.konto__kopf { padding: 10px 18px 12px; border-bottom: 1px solid var(--linie); font-size: .8125rem; color: var(--grau); }
.konto__kopf b { display: block; font-size: 1rem; font-weight: 600; color: var(--text); }
.konto__menue a, .konto__menue button {
  display: block; width: 100%; padding: 10px 18px; border: 0; background: none; text-align: left; text-decoration: none;
  color: var(--text); font: 400 .9375rem/1.35 var(--schrift); cursor: pointer;
}
.konto__menue a:hover, .konto__menue button:hover { background: var(--grund-hell); }
.konto__menue small { display: block; font-size: .78rem; font-weight: 300; color: var(--grau); }
.konto__leer { padding: 10px 18px; font-size: .875rem; color: var(--grau); }
.konto__trenner { border-top: 1px solid var(--linie); margin-top: 6px; padding-top: 6px; }
.konto__menue .konto__abmelden { color: var(--rot); }
[data-modus="dunkel"] .konto__menue .konto__abmelden { color: #f08a80; }

@media (max-width: 1024px) {
  :root { --kopfhoehe: 72px; }
  .kopf__logo img { width: 84px; }
  .modus-knopf { order: 0; margin-left: auto; }
  .konto { order: 0; position: static; }
  .kopf__innen { gap: 10px; }
  .kopf__innen { position: relative; }
  .konto__menue { right: var(--rand); top: calc(100% - 4px); }
  .konto--an .konto__knopf { padding: 0 4px; border-color: transparent; }
  .menue-knopf {
    display: inline-flex; margin-left: 0; width: 48px; height: 48px; align-items: center; justify-content: center;
    background: none; border: 0; color: var(--text); cursor: pointer;
  }
  .menue-knopf svg { width: 28px; height: 28px; }
  .menue-knopf__zu, .kopf--offen .menue-knopf__auf { display: none; }
  .kopf--offen .menue-knopf__zu { display: block; }
  .menue {
    position: fixed; inset: calc(var(--kopfhoehe) + env(safe-area-inset-top, 0px)) 0 0 0; margin: 0;
    background: var(--flaeche); overflow-y: auto; padding: 8px var(--rand) calc(32px + env(safe-area-inset-bottom, 0px));
    display: none;
  }
  .kopf--offen .menue { display: block; }
  .menue__liste { flex-direction: column; gap: 0; }
  .menue__punkt { border-bottom: 1px solid var(--linie); }
  .menue__link { padding: 16px 0; font-size: 1.125rem; border: 0; width: 100%; justify-content: space-between; }
  .menue__unter {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; min-width: 0;
    padding: 0 0 12px 12px; display: none; border-radius: 0;
  }
  .menue__punkt--offen .menue__unter { display: block; }
  .menue__punkt--offen .menue__pfeil { transform: rotate(180deg); }
  .menue__unter a { padding: 10px 0; font-size: 1rem; }
}

/* ------------------------------------------------------------------ Glas und Bewegung */
/* Glas: halbdurchsichtig, dahinter unscharf. Nur auf Bildern oder Verläufen einsetzen, auf Weiß sieht man es nicht. */
.glas {
  background: linear-gradient(135deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .1));
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .7);
}
[data-modus="dunkel"] .glas {
  background: linear-gradient(135deg, rgba(40, 52, 82, .62), rgba(20, 28, 48, .38));
  border-color: rgba(255, 255, 255, .16); box-shadow: 0 10px 34px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
}
/* Einblenden beim Scrollen; ohne Skript (kein data-js) bleibt alles sichtbar */
[data-js] .erscheint { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-js] .erscheint.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-js] .erscheint { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ Übergänge */
/* Welle wie im Vereinslogo zwischen zwei Bereichen; zweite, blasse Welle dahinter für Tiefe.
   Über Bildern liegt sie mit negativem Rand auf dem Bild (bauen.py: uebergang()). */
/* 1 px Überlappung nach oben und unten: krumme Pixelhöhen ließen sonst eine Haarlinie durchblitzen */
.welle { display: block; height: calc(var(--welle) + 2px); margin-block: -1px; position: relative; z-index: 2; }
.welle svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* Die Fläche ragt 2–3 px über den Rand der Welle in den Nachbarabschnitt: Browser glätten die Unterkante sonst zu einer hellen Linie */
.welle { pointer-events: none; }
.welle--gespiegelt svg { transform: scaleX(-1); }
.welle--auf-naechstem { margin-bottom: calc(-1 * var(--welle) - 1px); }
.welle--auf-vorigem { margin-top: calc(-1 * var(--welle) - 1px); }

/* ------------------------------------------------------------------ Startseite: Held */
/* Startbild über die ganze Breite: Schrift oben im Himmel, oben ein Verlauf aus der Hintergrundfarbe,
   damit der Kopf nahtlos ins Bild übergeht; Dorf und Wiese bleiben frei. */
.held {
  position: relative; display: flex; flex-direction: column;
  min-height: clamp(560px, calc(100svh - var(--kopfhoehe)), 860px);
  background:
    /* Ränder nur noch leicht ausgeblendet, damit Himmel und Wolken sichtbar bleiben (Kevin, 31.10.2026) */
    linear-gradient(180deg, color-mix(in srgb, var(--grund) 55%, transparent) 0%,
      color-mix(in srgb, var(--grund) 20%, transparent) 14%, transparent 28%),
    /* unten lang und sanft auslaufend (Kurve statt Gerade), sonst sieht man die Kante */
    linear-gradient(0deg, var(--grund) 0%, color-mix(in srgb, var(--grund) 82%, transparent) 4%,
      color-mix(in srgb, var(--grund) 55%, transparent) 9%, color-mix(in srgb, var(--grund) 30%, transparent) 14%,
      color-mix(in srgb, var(--grund) 12%, transparent) 19%, color-mix(in srgb, var(--grund) 3%, transparent) 24%,
      transparent 28%),
    var(--bild) center 62% / cover no-repeat;
}
.held__text { padding: clamp(40px, 7vh, 88px) var(--rand) 24px; text-align: center; }
.held__titel { font-size: var(--groesse-held); line-height: 1.1; margin-bottom: .2em; text-wrap: balance; }
.held__untertitel { font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem); margin-bottom: 28px; }
.held__termin {
  /* im Fluss statt absolut: rutscht unter die Highlights, wenn der Platz nicht reicht (nie darüber) */
  order: 2; align-self: flex-end; margin: auto var(--rand) clamp(70px, 9vw, 120px); width: min(360px, calc(100% - 2 * var(--rand)));
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px;
  color: #fff; text-decoration: none;
  /* kein text-shadow: Chrome zeichnet Glasflächen mit Textschatten bei manchen Breiten leer (gefunden 29.10.2026) */
}
.held__termin.glas { background: linear-gradient(135deg, rgba(20, 28, 48, .5), rgba(20, 28, 48, .3)); }
.held__termin .datumblock { flex: none; }
.held__termin small { display: block; font-size: .75rem; font-weight: 400; opacity: .9; text-transform: uppercase; letter-spacing: .05em; }
.held__termin strong { display: block; font-size: 1.0625rem; line-height: 1.3; }
[data-modus="dunkel"] .held { filter: none; }
/* helle Schrift auf hellem Himmel: seit der schwächeren Ausblendung braucht sie im Dunkelmodus einen Schein */
[data-modus="dunkel"] .held__titel, [data-modus="dunkel"] .held__untertitel {
  text-shadow: 0 1px 3px rgba(10, 14, 30, .55), 0 2px 24px rgba(10, 14, 30, .7);
}
/* Ziehende Wolken (Kevin, 31.10.2026): zwei Schichten verschieden schnell, nur im Himmel. Die Maske liegt genauso
   wie das Bild (cover, gleiche Position), damit die Wolken hinter dem Baum laufen; der Verlauf blendet sie unter
   der Schrift aus wie die Farbe oben. Textur und Maske: werkzeuge/startbild_wolken.py */
.held { isolation: isolate; --wolken-pos: center 62%; }
.held__wolken {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask: url("himmelsmaske.png") var(--wolken-pos) / cover no-repeat,
    linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .8) 14%, #000 28%);
  -webkit-mask-composite: source-in;
  mask: url("himmelsmaske.png") var(--wolken-pos) / cover no-repeat,
    linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .8) 14%, #000 28%);
  mask-composite: intersect;
}
.held__wolken::before, .held__wolken::after {
  content: ""; position: absolute; top: 0; left: 0; height: 100%; width: calc(100% + var(--kachel));
  background: url("wolken.webp") 0 0 / var(--kachel) auto repeat;
  animation: wolken-ziehen var(--dauer) linear infinite; will-change: transform;
}
.held__wolken::before { --kachel: 1600px; --dauer: 80s; }
.held__wolken::after { --kachel: 2400px; --dauer: 150s; opacity: .8; background-position: 0 -180px; }
@keyframes wolken-ziehen { from { transform: translateX(calc(-1 * var(--kachel))); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .held__wolken::before, .held__wolken::after { animation: none; } }
@media (max-width: 767px) {
  .held { --wolken-pos: 58% 65%; }
  .held__wolken::before { --kachel: 1000px; --dauer: 60s; }
  .held__wolken::after { --kachel: 1500px; --dauer: 110s; }
}
@media (max-width: 767px) {
  .held { min-height: 0; aspect-ratio: auto; background-position: 0 0, 0 0, 58% 65%; }
  .held__text { padding-top: 36px; }
  .held__termin { align-self: stretch; width: auto; margin: 24px var(--rand) 56px; }
}

/* ------------------------------------------------------------------ Highlights im Startbild */
.highlights { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: clamp(32px, 6vh, 56px); }
.highlight {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 0 10px;
  width: min(260px, calc((100vw - 2 * var(--rand) - 32px) / 3)); overflow: hidden; border-radius: 16px;
  background: color-mix(in srgb, var(--flaeche) 95%, transparent);
  box-shadow: 0 8px 24px rgba(20, 28, 48, .18); text-decoration: none; text-align: left; transition: transform .2s, box-shadow .2s;
}
.highlight:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20, 28, 48, .26); }
/* Bild oben über die ganze Breite, damit man etwas erkennt */
.highlight__bild { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; transition: transform .4s; }
.highlight:hover .highlight__bild { transform: scale(1.04); }
.highlight__text { min-width: 0; padding: 10px 0 12px 14px; }
.highlight small {
  display: block; font-size: .6875rem; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--grau);
}
.highlight:nth-child(1) small { color: var(--gruen); }
.highlight:nth-child(2) small { color: var(--rot); }
.highlight:nth-child(3) small { color: var(--vereinsblau); }
[data-modus="dunkel"] .highlight small { color: var(--grau); }
.highlight__titel { display: block; font-weight: 600; font-size: 1rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.highlight__pfeil { padding-right: 14px; color: var(--grau); transition: transform .2s, color .2s; }
.highlight__pfeil svg { width: 16px; height: 16px; display: block; }
.highlight:hover .highlight__pfeil { transform: translateX(3px); color: var(--text); }
@media (max-width: 960px) { .highlight__titel { white-space: normal; } }
@media (max-width: 767px) {
  /* Handy: Bild links, aber groß genug zum Erkennen */
  .highlights { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 380px; margin-inline: auto; margin-top: 28px; }
  .highlight { width: auto; grid-template-columns: 112px 1fr auto; grid-template-rows: auto; }
  .highlight__bild { grid-column: auto; aspect-ratio: 4 / 3; }
  .highlight__text { padding: 8px 0 8px 2px; }
  .highlight__titel { white-space: normal; }
}

/* Schmaler Balken unter den Hinweisen: nächster Mittagstisch (Kevin, 31.10.2026) */
.mt-balken {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px;
  width: min(812px, 100%); margin: 16px auto 0; padding: 10px 16px; border-radius: 0; text-align: left;
  background: color-mix(in srgb, var(--flaeche) 95%, transparent); box-shadow: 0 8px 24px rgba(20, 28, 48, .18);
  color: var(--text); font-size: .9375rem; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.mt-balken:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20, 28, 48, .26); }
.mt-balken__aufruf { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gruen); white-space: nowrap; }
[data-modus="dunkel"] .mt-balken__aufruf { color: var(--text); }
.mt-balken__aufruf svg { width: 14px; height: 14px; }
@media (max-width: 767px) { .mt-balken { max-width: 380px; margin-top: 10px; font-size: .875rem; } }

/* ------------------------------------------------------------------ Beitragskarten */
.karten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.karte {
  display: flex; flex-direction: column; background: var(--flaeche); box-shadow: var(--schatten);
  border-radius: var(--rund); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.karte:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(var(--schattenfarbe), .2); }
.karte__bildrahmen { position: relative; aspect-ratio: 2 / 1; background: var(--grund-hell); }
.karte__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.karte__bild--logo { object-fit: contain; padding: 22px 28px 10px; background: #fff; }
.karte__marke {
  position: absolute; z-index: 1; top: 10px; right: 10px; max-width: calc(100% - 20px);
  padding: 3px 10px; border-radius: 999px; background: rgba(50, 74, 109, .85); color: #fff;
  font-size: .6875rem; font-weight: 400; text-transform: uppercase; letter-spacing: .03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.karte__titel { margin: 16px 16px 18px; padding: 0; font-size: 1rem; font-weight: 400; line-height: 1.45; text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; max-height: calc(3 * 1.45em); }
.karte__datum { margin-top: auto;  padding: 10px 16px; border-top: 1px solid var(--linie); font-size: .8125rem; color: var(--grau); text-align: center; }
.mehr { display: flex; justify-content: center; margin-top: 36px; }
@media (max-width: 1024px) { .karten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Startseite: am Tablet schon drei Spalten, dafür nur sechs Artikel (zwei volle Reihen) (Kevin, 31.10.2026) */
@media (min-width: 521px) and (max-width: 1024px) {
  .karten--start { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .karten--start > :nth-child(n+7) { display: none; }
}
@media (max-width: 520px) {
  /* Handy: zwei Spalten, kompaktere Karten (Kevin, 29.10.2026) */
  .karten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .karte__titel { margin: 10px 10px 12px; font-size: .875rem; line-height: 1.35; max-height: calc(3 * 1.35em); }
  .karte__datum { padding: 7px 8px; font-size: .6875rem; }
  .karte__marke { top: 6px; right: 6px; padding: 2px 7px; font-size: .5625rem; }
  .karte__bild--logo { padding: 14px 10px 6px; }
}

/* ------------------------------------------------------------------ Termine (kurze Liste und große Liste) */
.kalender { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.terminzeile {
  display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; align-items: center; padding: 8px; margin-inline: -8px;
  border-radius: var(--rund); text-decoration: none; transition: background .2s, transform .2s;
}
.terminzeile:hover { background: var(--flaeche); transform: translateX(4px); }
.terminzeile .datumblock, .held__termin .datumblock {
  width: 56px; overflow: hidden; border-radius: 10px; background: var(--flaeche); box-shadow: var(--schatten); color: var(--text);
}
.terminzeile .datumblock__oben, .held__termin .datumblock__oben { background: var(--knopf); color: #fff; padding: 3px 0; font-size: .625rem; }
.terminzeile .datumblock__tag, .held__termin .datumblock__tag { padding: 4px 0 6px; font-size: 1.375rem; }
.held__termin .datumblock { text-shadow: none; }
.datumblock { text-align: center; line-height: 1.1; }
.datumblock__oben { display: block; font-size: .6875rem; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
.datumblock__tag { display: block; font-size: 1.5rem; font-weight: 600; }
.terminzeile__zeit { font-size: .8125rem; font-weight: 400; }
.terminzeile__titel { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.kalender__link { display: inline-block; margin-top: 16px; }
@media (max-width: 860px) { .kalender { grid-template-columns: 1fr; } }

/* Bildwechsler */
.folien { position: relative; border-radius: var(--rund); overflow: hidden; aspect-ratio: 3 / 2; background: #000; }
.folien__band { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.folien__band::-webkit-scrollbar { display: none; }
.folie {
  flex: 0 0 100%; scroll-snap-align: start; position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; padding: 32px 64px; text-align: center; color: #fff;
  background: center / cover no-repeat;
}
.folie::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.folie > * { position: relative; margin: 0; }
.folie__titel { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1875rem); }
.folie__text { max-width: 30ch; font-weight: 400; }
.folie .knopf { background: transparent; border: 2px solid #fff; padding: 10px 24px; }
.folie .knopf:hover { background: #fff; color: var(--text); }
.folien__pfeil {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.folien__pfeil:hover { background: rgba(255, 255, 255, .3); }
.folien__pfeil--zurueck { left: 10px; }
.folien__pfeil--vor { right: 10px; }
.folien__pfeil svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .folie { padding: 24px 52px; } }

/* ------------------------------------------------------------------ Mach mit! und Projekte */
.zweispaltig { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.zweispaltig--projekte { grid-template-columns: 2fr 3fr; align-items: start; }
/* Die Textspalte neben einem langen Bildraster bleibt beim Scrollen stehen (Kevin, 29.10.2026: „das ist toll“) */
.haftet { position: sticky; top: calc(var(--kopfhoehe) + 40px); align-self: start; }
/* Bilder ganz zeigen, nicht beschneiden: Schriftzüge bleiben lesbar, unterschiedliche Formate
   ergeben ein gemischtes Raster wie auf der alten Seite */
.bildraster { columns: 2; column-gap: 14px; }
.bildraster--viele { columns: 3; }
.bildraster a {
  display: block; break-inside: avoid; margin-bottom: 14px; border-radius: 10px; overflow: hidden;
  box-shadow: var(--schatten); transition: transform .2s, box-shadow .2s;
}
.bildraster a:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(var(--schattenfarbe), .24); }
.bildraster img { width: 100%; height: auto; }
.mitmachen__text { text-align: right; }
.mitmachen__text h2 { font-size: var(--groesse-h1); }
@media (max-width: 860px) {
  .zweispaltig, .zweispaltig--projekte { grid-template-columns: 1fr; }
  .haftet { position: static; }
  .mitmachen__text { order: -1; text-align: left; }
}
@media (max-width: 520px) { .bildraster--viele { columns: 2; } }

/* ------------------------------------------------------------------ Zahlen */
.zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; align-items: start; }
.zahlen__kopf { grid-column: 1 / -1; text-align: left; margin-bottom: clamp(28px, 4vw, 48px); }
.zahlen__kopf h2 { font-size: var(--groesse-h1); margin: 0; }
.zahlen__kopf p { font-size: var(--groesse-einleitung); margin: 0; }
.zahl { display: flex; flex-direction: column; align-items: center; padding: 4px 16px; }
.zahl + .zahl { border-left: 1px solid var(--linie); }
.zahl__wert { display: block; font-size: clamp(2.5rem, 1.9rem + 2.2vw, 3.75rem); font-weight: 600; line-height: 1.1; white-space: nowrap; }
.zahl__einheit { font-size: .5em; }
.zahl__text { display: block; font-size: 1.0625rem; margin: 4px 0 12px; }
@media (max-width: 860px) {
  .zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .zahlen__kopf { text-align: center; }
  .zahl:nth-child(4) { border-left: 0; }
}
@media (max-width: 520px) { .zahl { padding: 4px 8px; } .zahl__wert { font-size: 2.125rem; white-space: normal; } }

/* ------------------------------------------------------------------ Bildband */
.bildband { position: relative; height: calc(clamp(180px, 23vw, 296px) + 2 * var(--welle)); background: center / cover no-repeat; }
.bildband__nachweis { position: absolute; z-index: 3; right: 10px; bottom: calc(var(--welle) + 6px); margin: 0; font-size: .75rem; font-weight: 400; color: #f3f5f8; text-shadow: 0 1px 2px rgba(0,0,0,.6); }

/* ------------------------------------------------------------------ Beitrag */
.beitragskopf { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.beitragskopf__text { text-align: right; }
.beitragskopf__datum { font-style: italic; color: var(--grau); margin-bottom: 8px; }
.beitragskopf h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); hyphens: auto; }
.beitragskopf__untertitel { font-size: var(--groesse-einleitung); margin: 0; }
.beitragskopf--ohne-bild { grid-template-columns: 1fr; padding-bottom: 0; }
.beitragskopf--ohne-bild + .abschnitt--seite { padding-top: clamp(16px, 2vw, 28px); }
.beitragskopf__einleitung { margin-top: 18px; font-size: 1.0625rem; line-height: 1.65; }
.beitragskopf__einleitung p { margin: 0 0 .8em; }
.beitragskopf__einleitung p:last-child { margin-bottom: 0; }
.beitragskopf--ohne-bild .beitragskopf__text { text-align: left; }
.beitragskopf__text .knopfreihe { justify-content: flex-end; margin-top: 20px; }
.beitragskopf--ohne-bild .knopfreihe { justify-content: flex-start; }
.beitragskopf__zusatz { margin: 12px 0 0; font-weight: 600; font-size: .9375rem; }
/* Titelbilder (Beiträge und erstes Bild jeder Seite): weiche Form wie die Hügel im Logo, farbige Fläche dahinter */
.kopfbild { position: relative; margin: 0; padding: 0 22px 22px 0; isolation: isolate; }
.kopfbild::before {
  content: ""; position: absolute; inset: 22px 0 0 22px; z-index: -1; border-radius: 40px 120px 40px 40px;
  background: var(--kopf-farbe, var(--gruen)); opacity: .9;
}
.kopfbild--rot { --kopf-farbe: var(--rot); }
.kopfbild--blau { --kopf-farbe: var(--vereinsblau); }
[data-modus="dunkel"] .kopfbild--blau { --kopf-farbe: #4a43a0; }
.kopfbild__bild {
  display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 440px; object-fit: cover;
  border-radius: 40px 120px 40px 40px; box-shadow: 0 18px 40px rgba(20, 28, 48, .22);
}
.kopfbild--logo .kopfbild__bild { object-fit: contain; background: #fff; padding: 6% 10%; }
[data-modus="dunkel"] .kopfbild--logo .kopfbild__bild { background: #f3f5f8; }
.kopfbild--gruen [data-modus="dunkel"] .kopfbild--gruen /* Bild neben Text: bis an den Bildschirmrand, nur die innere Seite gerundet wie die Hügel im Logo */
html { overflow-x: clip; }
:root { --aussen: max(var(--rand), (100vw - var(--breite)) / 2); }
.spalte--raus { align-self: stretch; }
.spalte--raus img { width: 100%; height: 100%; min-height: 300px; max-height: 560px; object-fit: cover; box-shadow: var(--schatten); }
.spalte--raus-rechts { margin-right: calc(-1 * var(--aussen)); }
.spalte--raus-rechts img { border-radius: 120px 0 0 40px; }
.spalte--raus-links { margin-left: calc(-1 * var(--aussen)); }
.spalte--raus-links img { border-radius: 0 120px 40px 0; }
.kopfbild--raus { margin-right: calc(-1 * var(--aussen)); padding: 0; align-self: stretch; }
.kopfbild--raus::before { display: none; }
.kopfbild--raus .kopfbild__bild { height: 100%; min-height: 340px; max-height: 520px; aspect-ratio: auto; border-radius: 120px 0 0 40px; }
.kopfbild--raus .beitragstext { background: var(--grund-heller); padding-block: clamp(32px, 5vw, 56px); }
.fliesstext { max-width: 760px; }
.fliesstext img { border-radius: var(--rund); margin-block: 1.5em; }
.fliesstext em:last-child { color: var(--grau); }
.fliesstext a { font-weight: 400; text-underline-offset: 3px; }
.beitragsrumpf { background: var(--grund-heller); }
.zurueck-zeile { margin: 0; padding-block: 8px 40px; }
.beitragsrumpf .abschnitt--seite:first-of-type { padding-top: clamp(28px, 4vw, 48px); }
.beitrag > .breite:last-child { padding-bottom: var(--abstand); }
.terminliste { display: flex; flex-direction: column; }
.zurueck { display: inline-block; margin-top: 32px; font-weight: 400; text-decoration: none; }
.zurueck:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .beitragskopf { grid-template-columns: 1fr; }
  .beitragskopf__text { text-align: left; }
  .kopfbild { order: -1; padding: 0 14px 14px 0; }
  .kopfbild::before { inset: 14px 0 0 14px; }
  .kopfbild__bild { max-height: 300px; }
  .spalte--raus-rechts, .spalte--raus-links, .kopfbild--raus { margin-inline: calc(-1 * var(--rand)); }
  .spalte--raus img, .kopfbild--raus .kopfbild__bild { min-height: 0; max-height: 300px; height: auto; aspect-ratio: 16 / 10; border-radius: 0 0 48px 48px; }
  .kopfbild--raus }

/* ------------------------------------------------------------------ Veranstaltungen */
.seitenkopf { padding-block: clamp(40px, 6vw, 72px) 0; }
.seitenkopf p { font-size: var(--groesse-einleitung); max-width: 46ch; }
.ansicht { display: flex; gap: 24px; border-bottom: 1px solid var(--linie); margin-bottom: 8px; }
.ansicht a { padding: 10px 0; text-decoration: none; font-weight: 400; border-bottom: 2px solid transparent; }
.ansicht a[aria-current] { border-bottom-color: var(--text); font-weight: 600; }
.monat { display: flex; align-items: center; gap: 16px; margin: 40px 0 8px; font-size: 1.125rem; font-weight: 600; }
.monat::after { content: ""; flex: 1; border-top: 1px solid var(--linie); }
.termin { display: grid; grid-template-columns: 64px minmax(0, 1fr) 260px; gap: 0 28px; padding: 24px 0; border-bottom: 1px solid var(--linie); }
.termin:last-child { border-bottom: 0; }
.termin .datumblock__tag { font-size: 1.75rem; }
.termin__zeit { font-size: .9375rem; font-weight: 400; margin-bottom: 4px; }
.termin__titel { font-size: 1.5rem; margin-bottom: 6px; }
.termin__titel a { text-decoration: none; }
.termin__titel a:hover { text-decoration: underline; text-underline-offset: 4px; }
.termin__ort { font-size: .9375rem; margin-bottom: 8px; }
.termin__ort b { font-weight: 600; }
.termin__auszug { margin-bottom: 8px; }
.termin__bild { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rund); }
.preis { display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 999px; background: var(--grund-hell); font-size: .8125rem; font-weight: 600; }
@media (max-width: 767px) {
  .termin { grid-template-columns: 52px minmax(0, 1fr); }
  .termin__bild { grid-column: 2; grid-row: 1; margin-bottom: 14px; aspect-ratio: 2 / 1; }
  .termin__text { grid-column: 2; }
  .termin .datumblock { grid-row: 1 / span 2; align-self: start; }
}

/* Einzelner Termin */
.terminkopf { padding-block: clamp(32px, 5vw, 56px) 24px; }
.terminkopf h1 { margin-block: 16px 12px; }
.terminkopf__zeit { font-size: 1.125rem; font-weight: 400; }
.terminbild { width: 100%; border-radius: var(--rund); margin-bottom: 32px; }
.terminraster { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-bottom: var(--abstand); }
.terminraster__seite { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--kopfhoehe) + 24px); }
@media (max-width: 960px) { .terminraster { grid-template-columns: 1fr; } .terminraster__seite { position: static; } }

.kasten { background: var(--grund-hell); border-radius: var(--rund); padding: 24px 28px; }
.kasten h2 { font-size: 1.375rem; margin-bottom: 16px; }
.kasten dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.kasten dt { font-weight: 600; }
.kasten dd { margin: 0; hyphens: manual; overflow-wrap: anywhere; }
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.ticket__name { font-weight: 600; }
.ticket__preis { font-weight: 600; text-align: right; }
.ticket__frei { font-size: .8125rem; color: var(--grau); }
.menge { display: inline-flex; align-items: center; gap: 4px; justify-self: end; }
.menge button { width: 36px; height: 36px; border: 1px solid var(--feldrand); background: var(--flaeche); border-radius: 50%; color: var(--text); font: 400 1.125rem/1 var(--schrift); cursor: pointer; }
.menge output { min-width: 28px; text-align: center; font-weight: 600; font-size: 1.125rem; }
.kasten .knopf { width: 100%; margin-top: 20px; }
.hinweis { font-size: .8125rem; color: var(--grau); margin: 10px 0 0; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }
.blaettern { display: flex; justify-content: space-between; gap: 24px; padding-block: 24px; border-top: 1px solid var(--linie); }
.blaettern a { text-decoration: none; font-weight: 400; }
.blaettern a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ Seiten (aus WordPress übernommen) */
/* NORM für Seiten und Beiträge (Homepage-Neu/SEITEN-ANLEGEN.md):
   – jeder Abschnitt hat dieselben Abstände (--abschnitt), Elemente in Spalten --luft
   – Überschriften: h1 nur im Kopf, h2 = Abschnitt, h3 = Zwischenüberschrift, Kästen eigene Größe
   – Ausrichtung im Inhalt immer links; nur der Kopf (erster Abschnitt) darf rechts/mittig stehen
   – Fließtext höchstens 68 Zeichen breit, in zwei Spalten so breit wie die Spalte */
.abschnitt--seite { padding-block: var(--abschnitt); }
main > .abschnitt--seite:first-child, .beitragsrumpf > .abschnitt--seite:first-child { padding-top: clamp(40px, 5vw, 72px); }
.abschnitt--bild { background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .25)), var(--bild) center / cover no-repeat; color: #fff; }
.abschnitt--bild h1, .abschnitt--bild h2, .abschnitt--bild h3 { color: #fff; }
.spalten { display: grid; grid-template-columns: var(--raster); gap: clamp(32px, 5vw, 72px); align-items: start; }
.spalten:has(> .spalte--raus) { align-items: center; }
.spalten--eine { grid-template-columns: minmax(0, 1fr); }
.spalten > .spalte { min-width: 0; display: flex; flex-direction: column; gap: var(--luft); }
.spalte .spalten { margin-block: 8px; }
.spalte--kaesten { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.spalte .spalten:has(> .spalte--kaesten) { margin-top: 8px; }
.spalten:not(.spalten--eine) .karten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spalten:not(.spalten--eine) .logos { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.spalten:not(.spalten--eine) > .spalte--kaesten { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
/* im Raster: Kästen ohne Symbol bekommen den Platz des Symbols, damit die Titel auf einer Höhe stehen */
.spalte--kaesten:has(.kasten__symbol) .infokasten:not(:has(.kasten__symbol))::before { content: ""; display: block; height: 48px; }
.abschnitt--seite h1 { font-size: var(--groesse-h1); margin: 0; }
.abschnitt--seite h2:not([class*="__"]) { font-size: var(--groesse-h2); margin: 0; }
.abschnitt--seite h3:not([class*="__"]) { font-size: var(--groesse-h3); margin: 0; }
.spalte > :is(h2, h3):not(:first-child) { margin-top: calc(1.5 * var(--luft)); }
.spalte > :is(h2, h3) + .fliesstext { margin-top: -6px; }
.ausrichtung-center { text-align: center; }
.ausrichtung-right { text-align: right; }
/* Elementor-Ausrichtungen nur im Kopf übernehmen */
/* Inhalt steht links – überall außer im Kopf (der ist ein <header>, kein Abschnitt) */
.abschnitt--seite .ausrichtung-center, .abschnitt--seite .ausrichtung-right { text-align: left; margin-inline: 0; }
/* Förderhinweis: „gefördert durch …“ + Logo, mittig, kleine Überschrift */
.foerderung { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.foerderung h2 { font-size: var(--groesse-h3) !important; font-weight: 400; margin: 0; }
.foerderung .abbildung--logo { width: min(280px, 80vw); max-width: none; }
.abschnitt--seite .untertitel { font-size: var(--groesse-einleitung); line-height: 1.5; max-width: 34ch; }
.abschnitt--seite .untertitel.ausrichtung-right { margin-left: auto; }
.abschnitt--seite .untertitel.ausrichtung-center { margin-inline: auto; }
.abschnitt--seite .fliesstext { max-width: 68ch; line-height: 1.7; }
.abschnitt--seite .fliesstext p:last-child, .abschnitt--seite .fliesstext ul:last-child { margin-bottom: 0; }
main > .abschnitt--seite:first-child .ausrichtung-center.fliesstext { margin-inline: auto; }
main > .abschnitt--seite:first-child .ausrichtung-right.fliesstext { margin-left: auto; }
.spalten:not(.spalten--eine) .fliesstext { max-width: none; }
.abbildung--logo { max-width: 200px; }
.abbildung--logo img { border-radius: 0; box-shadow: none !important; }
.abbildung figcaption, .stand { font-size: var(--groesse-klein); }
.abschnitt--seite .einleitung { font-size: 1.125rem; line-height: 1.6; }
.zitate { display: grid; gap: var(--luft); }
.zitat { margin: 0; padding: 22px 26px; border-left: 4px solid var(--gruen); border-radius: 0 var(--rund) var(--rund) 0; background: var(--grund-hell); }
.zitat h1, .zitat h2, .zitat h3 { font-size: 1.1875rem !important; font-weight: 400; font-style: italic; line-height: 1.5; margin: 0 0 8px !important; text-align: left; }
.zitat h4, .zitat p { font-size: .9375rem; font-weight: 600; margin: 0; text-align: left; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.logos > * { display: grid; place-items: center; height: 120px; min-height: 0; overflow: hidden; padding: 16px; border-radius: var(--rund); background: #fff; box-shadow: var(--schatten); transition: transform .2s; }
.logos a:hover { transform: translateY(-3px); }
.logos img { width: 100%; height: 100%; max-height: 88px; object-fit: contain; }
.fliesstext ul, .fliesstext ol { padding-left: 1.3em; }
.fliesstext li { margin-bottom: .3em; }
.fliesstext table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.fliesstext td, .fliesstext th { padding: 6px 10px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.fliesstext a { color: var(--text); font-weight: 400; text-underline-offset: 3px; }
.abbildung { margin: 0; }
.abbildung img { width: 100%; border-radius: var(--rund); }
.abbildung figcaption { margin-top: 8px; font-size: .875rem; color: var(--grau); }
.spaltenbild { height: 100%; min-height: 280px; border-radius: var(--rund); overflow: hidden; }
.spaltenbild img { width: 100%; height: 100%; object-fit: cover; }
.knopfzeile { margin: 6px 0; }
.knopf__symbol { width: 18px; height: 18px; }

.infokasten, .bildkasten {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; border-radius: var(--rund);
  background: var(--flaeche); box-shadow: var(--schatten); color: var(--text); text-decoration: none; height: 100%;
}
.abschnitt--hell .infokasten, .abschnitt--hell .bildkasten { background: var(--flaeche); }
.infokasten h3, .bildkasten h3 { font-size: 1.0625rem !important; line-height: 1.35; margin: 0 !important; }
.kasten__text { font-size: .9375rem; line-height: 1.55; }
.kasten__text :last-child { margin-bottom: 0; }
.kasten__text p { margin: 0 0 .5em; }
.kasten__symbol { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grund-hell); color: var(--vereinsblau); margin-bottom: 4px; }
.kasten__symbol .symbol { width: 24px; height: 24px; }
[data-modus="dunkel"] .kasten__symbol { color: var(--text); }
.infokasten--link, .bildkasten[href] { transition: transform .2s, box-shadow .2s; }
.infokasten--link:hover, .bildkasten[href]:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(var(--schattenfarbe), .2); }
.bildkasten { align-items: center; text-align: center; }
.bildkasten__bild { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; margin-bottom: 8px; }

.akkordeon { display: flex; flex-direction: column; gap: 8px; }
.akkordeon details { background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten); }
.akkordeon summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.akkordeon summary::-webkit-details-marker { display: none; }
.akkordeon summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.akkordeon details[open] summary::after { content: "–"; }
.akkordeon .fliesstext { padding: 0 18px 14px; }

.symbolliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.symbolliste a, .symbolliste li > span { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 400; }
.symbolliste a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.symbolliste .symbol { width: 22px; height: 22px; flex: none; }
.adresskarte, .platzhalter {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; border-radius: var(--rund); background: var(--grund-hell);
}
.adresskarte__symbol, .platzhalter .symbol { width: 32px; height: 32px; color: var(--vereinsblau); }
.adresskarte p, .platzhalter p { margin: 0; }
.hinweis-leer { color: var(--grau); font-style: italic; }
.bildraster.galerie { columns: 5; column-gap: 10px; }
.galerie a, .galerie figure { margin: 0 0 10px; }
.galerie figure {
  position: relative; display: block; break-inside: avoid; border-radius: 10px; overflow: hidden; box-shadow: var(--schatten); cursor: default;
}
.galerie figure img { width: 100%; height: auto; transition: transform .3s; }
.galerie__text {
  position: absolute; inset: auto 0 0 0; padding: 28px 12px 10px; color: #fff; font-size: .875rem; font-weight: 600; line-height: 1.3;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72)); opacity: 0; transition: opacity .2s; hyphens: manual;
}
.galerie figure:hover .galerie__text, .galerie figure:focus .galerie__text { opacity: 1; }
.galerie figure:hover img { transform: scale(1.04); }
@media (hover: none) { .galerie__text { opacity: 1; padding-top: 18px; font-size: .75rem; } }
@media (max-width: 1024px) { .bildraster.galerie { columns: 4; } }
@media (max-width: 680px) { .bildraster.galerie { columns: 3; } }
@media (max-width: 420px) { .bildraster.galerie { columns: 2; } }
/* Kurze Kästen (Dokumente, Vorstand) am Handy zweispaltig (Kevin, 31.10.2026) */
@media (max-width: 600px) {
  .spalte--kaesten-kurz, .spalten:not(.spalten--eine) > .spalte--kaesten-kurz { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .spalte--kaesten-kurz .infokasten, .spalte--kaesten-kurz .bildkasten { padding: 16px 12px 14px; }
  .spalte--kaesten-kurz .bildkasten__bild { width: 96px; height: 96px; }
  .spalte--kaesten-kurz h3 { font-size: .9375rem !important; overflow-wrap: anywhere; hyphens: auto; }
  .spalte--kaesten-kurz .kasten__text { font-size: .8125rem; overflow-wrap: anywhere; }
}
.kapitel__liste { display: flex; flex-wrap: wrap; gap: 8px; }
.kapitel__liste a, .kapitel__liste span {
  padding: 8px 16px; border: 1px solid var(--text); border-radius: 999px; font-size: .9375rem; font-weight: 400;
  color: var(--text); text-decoration: none; transition: background .2s, color .2s;
}
.kapitel__liste a:hover { background: var(--grund-hell); }
.kapitel__liste span { background: var(--text); color: var(--grund); font-weight: 600; }
.kapitel--unten { margin-top: 16px; padding-top: 18px; border-top: 2px solid var(--linie); }
.kapitel__kopf { margin: 0 0 10px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--grau); }
.kartenrahmen { border-radius: var(--rund); overflow: hidden; box-shadow: var(--schatten); }
.leaflet-karte { width: 100%; max-height: 75vh; }
.kartenmarker { background: none; border: 0; }
.leaflet-container { font-family: var(--schrift); }
@media (max-width: 860px) {
  .spalten { grid-template-columns: minmax(0, 1fr); }
  /* Überschrift steht am Handy immer über ihrem Inhalt, auch wenn sie am Rechner rechts daneben steht */
  .spalten > .spalte.haftet { order: -1; }
  .ausrichtung-right { text-align: left; }
  .abschnitt--seite .ausrichtung-right.fliesstext { margin-left: 0; }
}

/* ------------------------------------------------------------------ Suche und Filter (Alle Artikel, Veranstaltungen) */
.filter { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 28px; }
.filter__suche { position: relative; max-width: 460px; }
.filter__suche input { width: 100%; min-height: 48px; padding: 10px 14px 10px 44px; border: 1px solid var(--feldrand); border-radius: 999px;
  background: var(--flaeche); color: var(--text); font: 300 1rem var(--schrift); }
.filter__suche input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(var(--schattenfarbe), .15); }
.filter__lupe { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--grau); pointer-events: none; }
.filter__knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.filter__knopf { padding: 7px 14px; border: 1px solid var(--feldrand); border-radius: 999px; background: var(--flaeche); color: var(--text);
  font: 400 .875rem var(--schrift); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter__knopf:hover { border-color: var(--text); }
.filter__knopf[aria-pressed="true"] { background: var(--knopf); border-color: var(--knopf); color: #fff; }
.filter__ergebnis { margin: 0; font-size: .875rem; color: var(--grau); min-height: 1.2em; }
.filterbar .monat[hidden] { display: none; }
.rueckblick { margin-top: 32px; }
/* Kalender abonnieren */
.abo { margin: 8px 0 20px; }
.abo summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 400;
  padding: 8px 16px; border: 1px solid var(--feldrand); border-radius: 999px; background: var(--flaeche); }
.abo summary::-webkit-details-marker { display: none; }
.abo[open] summary { background: var(--grund-hell); }
.abo__inhalt { margin-top: 12px; padding: 18px 20px; border-radius: var(--rund); background: var(--grund-hell); max-width: 640px; }
.seitenkopf .abo__inhalt p { margin: 0 0 12px; font-size: .9375rem; max-width: none; }
.seitenkopf .abo__inhalt .hinweis { font-size: .8125rem; }
.abo code { font-size: .8125rem; word-break: break-all; }
.knopf--hell { background: var(--flaeche); color: var(--text); border: 1px solid var(--feldrand); }
.knopf--hell:hover { background: var(--grund-hell); color: var(--text); }
/* Monatsansicht */
.monate__steuer { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px; }
[data-js] .monatsblatt:not(.monatsblatt--zu-sehen) { display: none; }
.monatsblatt { margin-bottom: 40px; }
.monatsblatt__titel { margin-top: -52px; font-size: 1.5rem; }
.mraster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--linie); border-left: 1px solid var(--linie); }
.mraster__wt { padding: 8px; font-size: .75rem; font-weight: 600; text-transform: uppercase; color: var(--grau); border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); background: var(--grund-hell); }
.mtag { min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); min-width: 0; }
.mtag--anders { background: var(--grund-heller); }
.mtag--anders .mtag__nr { opacity: .45; }
.mtag__nr { font-size: .8125rem; font-weight: 600; }
.mtag--heute .mtag__nr { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--knopf); color: #fff; }
.mtermin { display: block; padding: 2px 6px; border-radius: 5px; font-size: .75rem; line-height: 1.3; font-weight: 400; text-decoration: none;
  background: var(--grund-hell); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--grau); }
.mtermin:hover { background: var(--linie); }
.mtermin--dorfgemeinschaft { border-left-color: var(--gruen); }
.mtermin--andere { border-left-color: var(--vereinsblau); }
.mtermin--besen { border-left-color: var(--rot); }
[data-modus="dunkel"] .mtermin--andere { border-left-color: #6f68c9; }
.mtermin__mehr { font-size: .6875rem; color: var(--grau); padding-left: 6px; }
@media (max-width: 767px) {
  /* Handy: nur Tage mit Terminen, als Liste */
  .monatsblatt__titel { margin-top: 0; }
  .mraster { display: block; border: 0; }
  .mraster__wt, .mtag:not(.mtag--voll), .mtag--anders { display: none; }
  .mtag { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--linie); }
  .mtag__nr { min-width: 28px; font-size: 1rem; }
  .mtermin { white-space: normal; font-size: .875rem; flex: 1 1 100%; margin-left: 38px; }
}
.rueckblick summary { cursor: pointer; font-weight: 600; padding: 12px 0; border-top: 1px solid var(--linie); }

/* ------------------------------------------------------------------ Fuß */
.newsletter { background: var(--grund-hell); padding-block: 40px 32px; }
.newsletter h2 { margin-bottom: 24px; }
.newsletter__form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; max-width: 932px; margin-inline: auto; }
.feld {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--feldrand); border-radius: var(--rund-knopf);
  background: var(--flaeche); color: var(--text); font: 300 1rem var(--schrift);
}
.newsletter__zustimmung { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 10px; font-weight: 400; font-size: .9375rem; }
.newsletter__zustimmung input { width: 18px; height: 18px; accent-color: var(--knopf); }
.newsletter__zustimmung span { hyphens: manual; }
.dorfvereine { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.dorfvereine__liste { font-weight: 600; color: var(--vereine); hyphens: manual; }
.dorfvereine__liste a { text-decoration: none; }
.dorfvereine__liste a:hover { text-decoration: underline; }
.instagram svg { width: 24px; height: 24px; display: block; }
.instagram__innen { stroke: var(--grund-hell); }
.instagram__punkt { fill: var(--grund-hell); }
.fussleiste { padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.fussleiste__innen { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 48px; }
.fussleiste p { margin: 0; }
.fussleiste__macher {
  flex-basis: 100%; display: flex; justify-content: center; align-items: center; gap: 8px;
  margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--linie); font-size: .875rem; color: var(--grau);
}
.fussleiste__macher { flex-wrap: wrap; column-gap: 28px; row-gap: 6px; }
.fussleiste__macher > span { display: inline-flex; align-items: center; gap: 7px; }
.fussleiste__macher a { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; letter-spacing: -.01em; }
.fussleiste__macher img { width: auto; height: 22px; transition: transform .2s; }
.fussleiste__macher a:hover img { transform: rotate(-8deg) scale(1.08); }
.fussleiste nav { display: flex; flex-wrap: wrap; gap: 8px 48px; }
.fussleiste a { text-decoration: none; font-weight: 400; }
.fussleiste a:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .newsletter__form { grid-template-columns: 1fr; }
  .newsletter__zustimmung { justify-content: flex-start; }
  .dorfvereine { flex-direction: column-reverse; align-items: flex-start; }
  .fussleiste nav { gap: 8px 24px; }
}

/* Prototyp-Hinweis */
.prototyp { background: var(--rot); color: #fff; text-align: center; font-size: .875rem; font-weight: 400; padding: 6px var(--rand); }

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


/* ==================================================================
   Gestaltung „Gerade“ (Kevin, 31.10.2026): keine Wellen, keine runden Ecken, flache Flächen
   wie auf den Plakaten. Kanten gerade, Karten mit feinem Rahmen statt Schatten, Farbe als Akzent:
   ein kurzer Balken in den Vereinsfarben über jeder Abschnittsüberschrift.
   ================================================================== */
.karte, .kachel, .highlight, .infokasten, .bildkasten, .logos > *, .akkordeon details, .zitat, .kasten,
.galerie figure, .bildraster a, .folien, .kartenrahmen, .abo__inhalt, .adresskarte, .platzhalter, .termin__bild,
.terminbild, .abbildung img, .spaltenbild, .beitragskopf__bild, .monatsblatt .mtermin, .feld, .filter__suche input,
.filter__knopf, .abo summary, .preis, .karte__marke, .terminzeile, .held__termin, .konto__menue, .menue__unter,
.modus-knopf, .konto__knopf, .kapitel__liste a, .kapitel__liste span, .datumblock, .folien__pfeil, .mtermin {
  border-radius: 0 !important;
}
.karte, .infokasten, .bildkasten, .logos > *, .akkordeon details, .highlight, .kachel {
  box-shadow: none !important; border: var(--rahmen);
}
.karte:hover, .infokasten--link:hover, .bildkasten[href]:hover, .logos a:hover, .highlight:hover, .bildraster a:hover {
  transform: none !important; box-shadow: none !important; border-color: var(--text);
}
/* Artikel- und Kacheltexte beim Drüberfahren nicht unterstreichen (Kevin, 31.10.2026) */
.bildraster a, .galerie figure { box-shadow: none; }
.karte__datum { border-top: var(--rahmen); }
.zitat { border-left-width: 6px; }

/* Abschnittsüberschriften: kurzer Farbbalken darüber (grün, im hellen Abschnitt blau) */
.abschnitt--seite h2:not([class*="__"]):not(.monat)::before,
.abschnitt-titel::before, .zahlen__kopf h2::before, .mitmachen__text h2::before {
  content: ""; display: block; width: 48px; height: 5px; margin-bottom: 14px; background: var(--gruen);
}
.abschnitt--hell h2:not([class*="__"])::before, .abschnitt--hell .abschnitt-titel::before { background: var(--vereinsblau); }
[data-modus="dunkel"] .abschnitt--hell h2:not([class*="__"])::before { background: #6f68c9; }
.abschnitt-titel--rechts::before, .mitmachen__text h2::before { margin-left: auto; }
.foerderung h2::before { margin-inline: auto; }
.untertitel::before { display: none; }

/* Kopfbild: Rechteck bis an den Rand, darunter eine flache Farbkante in der Vereinsfarbe */
.kopfbild--raus .kopfbild__bild, .spalte--raus img { border-radius: 0 !important; box-shadow: none; }
.kopfbild--raus { padding-bottom: 10px !important; background: linear-gradient(var(--kopf-farbe, var(--gruen)), var(--kopf-farbe, var(--gruen))) bottom left / 38% 10px no-repeat; }
.kopfbild--raus .kopfbild__bild { display: block; }
.spalte--raus { padding-bottom: 10px; background: linear-gradient(var(--gruen), var(--gruen)) bottom / 38% 10px no-repeat; }
.spalte--raus-rechts { background-position: bottom left; }
.spalte--raus-links { background-position: bottom right; }
.abschnitt--hell .spalte--raus { background-image: linear-gradient(var(--vereinsblau), var(--vereinsblau)); }
.kopfbild--logo .kopfbild__bild { border: var(--rahmen); }

/* Personen: quadratische Fotos statt Kreis */
.bildkasten__bild { border-radius: 0 !important; width: 100%; height: auto; aspect-ratio: 1; max-width: 200px; }

/* Knöpfe kantig, Startbild-Knopf als klare Fläche */
.knopf { border-radius: var(--rund-knopf); }
.held__titel { letter-spacing: -.01em; }

/* Datumskachel wie auf den Plakaten: Monat als farbige Leiste, Tag groß */
.terminzeile .datumblock, .held__termin .datumblock { box-shadow: none; border: var(--rahmen); }
.terminzeile:hover { background: var(--grund); transform: none; }

/* Hochsitz-Band ohne Platz für Wellen */
.bildband { height: clamp(180px, 23vw, 296px); }
.bildband__nachweis { bottom: 6px; }
.held { margin-bottom: 0; }

@media (max-width: 767px) {
  .kopfbild--raus .kopfbild__bild, .spalte--raus img { border-radius: 0 !important; }
}

.held { --bild: var(--bild-gross); }
@media (max-width: 800px) { .held { --bild: var(--bild-klein); } }

/* Kopfbilder überall gleich hoch (Kevin, 31.10.2026): fest 420 px, am Handy 240 px, Ausschnitt mittig */
.kopfbild--raus .kopfbild__bild { height: 420px !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; object-fit: cover; }
.kopfbild--raus.kopfbild--logo .kopfbild__bild { object-fit: contain; }
.beitragskopf { min-height: 0; }
@media (max-width: 767px) { .kopfbild--raus .kopfbild__bild { height: 240px !important; } }

/* Ideensammlung: Ideen, die es schon gibt oder die laufen (Kevin, 31.10.2026) */
.galerie__projekt { position: relative; display: block; break-inside: avoid; margin: 0 0 10px; outline: 3px solid var(--gruen); outline-offset: -3px; }
.galerie__projekt .galerie__text { opacity: 1; }
.galerie__projekt img { width: 100%; height: auto; min-height: 96px; object-fit: cover; }
.galerie__hinweis { position: absolute; top: 0; left: 0; z-index: 1; padding: 3px 8px; background: var(--gruen); color: #fff;
  font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.galerie__projekt:hover .galerie__text { text-decoration: underline; }
.galerie__projekt--blau { outline-color: var(--vereinsblau); } .galerie__projekt--blau .galerie__hinweis { background: var(--vereinsblau); }
.galerie__projekt--rot { outline-color: var(--rot); } .galerie__projekt--rot .galerie__hinweis { background: var(--rot); }
[data-modus="dunkel"] .galerie__projekt--blau { outline-color: #6f68c9; } [data-modus="dunkel"] .galerie__projekt--blau .galerie__hinweis { background: #6f68c9; }

/* Vereine und Einrichtungen (Abschnittsart „einrichtungen“, 31.10.2026): Logo oben eingepasst, Text darunter */
.einrichtungen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--luft); }
.einrichtung { display: flex; flex-direction: column; background: var(--flaeche); border: var(--rahmen); color: inherit; text-decoration: none; }
.einrichtung__bild { height: 150px; display: block; box-sizing: border-box; background: #fff; border-bottom: var(--rahmen); padding: 18px 24px; }
.einrichtung__bild { overflow: hidden; }
.einrichtung__bild img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.einrichtung__bild--foto { padding: 0; }
.einrichtung__bild--foto img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.einrichtung__text { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.einrichtung h3 { font-size: 1.0625rem !important; line-height: 1.35; margin: 0 !important; hyphens: manual; }
.einrichtung p { margin: 0; font-size: .9375rem; line-height: 1.6; }
.einrichtung .textlink { margin-top: auto; padding-top: 4px; font-size: .875rem; }
a.einrichtung:hover { border-color: var(--grau); }
a.einrichtung:hover h3 { text-decoration: underline; }

/* Hochformat (Flyer, Plakate): ganz zeigen, nicht an den Rand ziehen, Klick vergrößert (31.10.2026) */
.spalte--raus:has(.abbildung--hoch) { margin-inline: 0; }
.abbildung--hoch img, .spalte--raus .abbildung--hoch img { width: auto; max-width: 100%; height: auto; max-height: 640px; min-height: 0;
  aspect-ratio: auto; object-fit: contain; margin-inline: auto; border: var(--rahmen); }

/* Mailadresse unter Personen (Vorstand, 31.10.2026) */
.bildkasten__mail { font-size: .8125rem; color: var(--grau); word-break: break-all; margin-top: 2px; }
a.bildkasten:hover .bildkasten__mail { text-decoration: underline; }

/* Galerien gerade (31.10.2026): gleich große Kacheln statt Mauerwerk; Klick vergrößert */
.bildraster.galerie { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr)); gap: 10px; }
.bildraster.galerie > * { margin: 0; }
.galerie figure img, .galerie a.vergroessern img, .galerie__projekt img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; min-height: 0; }
.galerie a.vergroessern { display: block; overflow: hidden; }
.galerie a.vergroessern img { transition: transform .3s; }
.galerie a.vergroessern:hover img { transform: scale(1.04); }
.galerie__video video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; display: block; }

/* Bildbetrachter */
.betrachter { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.betrachter::backdrop { background: rgba(10, 12, 20, .9); }
.betrachter img { position: absolute; inset: 0; margin: auto; max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); object-fit: contain; }
.betrachter button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; font-size: 28px; line-height: 1; cursor: pointer; }
.betrachter button:hover { background: rgba(255,255,255,.25); }
.betrachter__zu { top: 16px; right: 16px; }
.betrachter__zurueck { left: 16px; top: calc(50% - 24px); }
.betrachter__weiter { right: 16px; top: calc(50% - 24px); }
@media (max-width: 600px) { .betrachter img { max-width: 100vw; } .betrachter__zurueck, .betrachter__weiter { top: auto; bottom: 16px; } }

/* Links im Text immer unterstrichen (Kevin, 31.10.2026) */
.fliesstext a, .kasten__text a, .textlink, .zurueck, .blaettern a, .symbolliste a span,
.untertitel a, .einleitung a { text-decoration: underline; text-underline-offset: 3px; }

/* Kopf ohne Bild (Impressum, Datenschutz, AGB): gleicher Abstand nach unten wie oben (31.10.2026) */
.beitragskopf--ohne-bild { padding-bottom: clamp(40px, 6vw, 72px); }

/* Ticketkauf (hp, 31.10.2026) */
.ticket__angaben { grid-column: 1 / -1; }
.ticket__angaben fieldset { border: var(--rahmen); margin: 8px 0 0; padding: 8px 12px 0; }
.ticket__angaben legend { font-size: .8125rem; font-weight: 600; padding: 0 4px; }
.kauf label { display: block; margin: 10px 0; font-size: .875rem; font-weight: 600; }
.kauf label small { font-weight: 400; color: var(--grau); }
.kauf input:not([type=checkbox]) { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; font: inherit; font-size: 16px;
  border: 1px solid var(--feldrand); background: var(--flaeche); color: var(--text); border-radius: 0; }
.kauf__agb { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.kauf__fehler { color: var(--vereinsrot, #8a1812); font-weight: 600; }
.kauf .knopf { width: 100%; justify-content: center; margin-top: 8px; }
.menge button:disabled { opacity: .35; cursor: default; }
.hinweis--warn { color: var(--vereinsrot, #8a1812); font-weight: 600; }
.unsichtbar { position: absolute !important; left: -9999px !important; }
.menge button { border-radius: 0; }

/* Logos im Dunkelmodus (Kevin, 31.10.2026): Logos sind freigestellt (bauen.py logo_zuschneiden) – sie stehen direkt
   auf der Fläche, ohne weißes Rechteck; Weiß innerhalb des Logos bleibt. Gilt für Artikelkarten, Einrichtungen, Logoraster. */
[data-modus="dunkel"] :is(.karte__bildrahmen:has(.karte__bild--logo), .einrichtung__bild:not(.einrichtung__bild--foto), .logos > *) {
  background: var(--flaeche); }
[data-modus="dunkel"] .karte__bild--logo { background: transparent; }
[data-modus="dunkel"] .karte__bild--logo.logo--weiss { inset: 0; margin: auto; width: auto; height: auto; max-width: 70%; max-height: 74%;
  padding: 8px 12px; background: #fff; }
[data-modus="dunkel"] .einrichtung__bild .logo--weiss { position: absolute; inset: 0; margin: auto; width: auto; height: auto;
  max-width: calc(100% - 48px); max-height: calc(100% - 36px); padding: 6px 10px; background: #fff; }
[data-modus="dunkel"] .einrichtung__bild:has(.logo--weiss) { position: relative; }

/* Dunkelmodus Startbild (Kevin, 31.10.2026: „Dorfgemeinschaft Bünzwangen e.V. sieht man kaum“): reines Weiß, kräftigere
   Unterzeile und ein weicher dunkler Schein hinter der Schrift statt nur Schatten an den Buchstaben */
[data-modus="dunkel"] .held__titel, [data-modus="dunkel"] .held__untertitel { color: #fff; }
[data-modus="dunkel"] .held__untertitel { font-weight: 500; text-shadow: 0 1px 2px rgba(10, 14, 30, .9), 0 0 18px rgba(10, 14, 30, .8); }
[data-modus="dunkel"] .held__text { background: radial-gradient(ellipse 46% 60% at 50% 45%, rgba(10, 14, 30, .42), transparent 75%); }

/* Videos anderer Anbieter: Platzhalter, Player erst nach Klick (31.10.2026) */
.videorahmen { margin: 1.2em 0; }
.videorahmen__start { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%;
  aspect-ratio: 16 / 9; border: var(--rahmen); background: var(--blau-grund, #29235c); color: #fff; font: 600 1.0625rem var(--schrift); cursor: pointer; }
.videorahmen__symbol { display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid #fff; font-size: 26px; padding-left: 4px; }
.videorahmen__start:hover .videorahmen__symbol { background: rgba(255,255,255,.15); }
.videorahmen__hinweis { font-size: .875rem; color: var(--grau); margin-top: 8px; }
.videorahmen iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.kauf select { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; font: inherit; font-size: 16px; border: 1px solid var(--feldrand); background: var(--flaeche); color: var(--text); border-radius: 0; }

/* Formulare (Pizza, Beitritt; 31.10.2026) */
.formular__form { display: grid; gap: 14px; max-width: 640px; }
.formular__feld { display: grid; gap: 4px; font-weight: 600; font-size: .9375rem; }
.formular__feld input, .formular__feld select, .formular__feld textarea, .formular__zeit select {
  width: 100%; padding: 10px 12px; font: inherit; font-weight: 400; font-size: 16px; border: 1px solid var(--feldrand); background: var(--flaeche); color: var(--text); border-radius: 0; }
.formular__zeit { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.formular__zeit select { width: auto; }
.formular__hinweis { font-weight: 400; color: var(--grau); font-size: .8125rem; line-height: 1.5; }
.formular__wahl { border: 1px solid var(--linie); padding: 10px 14px; margin: 0; }
.formular__wahl legend { font-weight: 600; font-size: .9375rem; padding: 0 4px; }
.formular__wahl label { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.formular__haken { display: flex; gap: 10px; align-items: flex-start; }
.formular__haken input { margin-top: 4px; }
.formular__ueberschrift { margin: 18px 0 0; }
.formular__gruppe { display: grid; gap: 10px; }
.formular__eintrag { border: 1px solid var(--linie); padding: 14px; display: grid; gap: 12px; background: var(--grund-hell); }
.formular__fehler { color: var(--vereinsrot, #8a1812); font-weight: 600; }
.formular__erfolg { border-left: 4px solid var(--gruen, #076633); padding: 14px 18px; background: var(--grund-hell); font-size: 1.0625rem; }
.newsletter__meldung { grid-column: 1 / -1; margin: 6px 0 0; font-weight: 600; }

/* ------------------------------------------------------------------ Bewegung beim Drüberfahren (Kevin, 31.10.2026)
   Nichts bewegt sich von selbst: Kacheln und Karten bekommen beim Drüberfahren einen Schatten, Bilder zoomen leicht.
   Schatten mit !important, weil die „Gerade“-Regel oben box-shadow: none setzt. Bei „Bewegung reduzieren“ kein Zoom. */
.highlight, .mt-balken, .karte, .infokasten--link, .bildkasten[href], a.einrichtung, .bildraster a {
  transition: box-shadow .25s ease, border-color .2s;
}
.highlight:hover, .mt-balken:hover, .karte:hover, .infokasten--link:hover, .bildkasten[href]:hover, a.einrichtung:hover, .bildraster a:hover {
  box-shadow: 0 12px 28px rgba(20, 28, 48, .22) !important;
}
[data-modus="dunkel"] :is(.highlight, .mt-balken, .karte, .infokasten--link, .bildkasten[href], a.einrichtung, .bildraster a):hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, .55) !important;
}
.karte__bildrahmen, .bildraster a { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .karte__bild, .highlight__bild, .bildraster img { transition: scale .6s ease; }
  .karte:hover .karte__bild, .highlight:hover .highlight__bild, .bildraster a:hover img { scale: 1.07; }
  .karte:hover .karte__bild--logo { scale: 1.04; }
}

/* Startseite, Dorfkalender: am Tablet Termine und Hinweis-Folien nebeneinander statt der Folie in voller Breite (Kevin, 31.10.2026) */
@media (min-width: 600px) and (max-width: 860px) {
  .kalender { grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
  .kalender .folien { aspect-ratio: auto; height: 100%; min-height: 320px; }
  .kalender .folie { padding: 20px 44px; }
  .kalender .folie__titel { font-size: 1.375rem; }
}

/* Mach mit! am Tablet und Handy wie die anderen Abschnitte: Strich links, Überschrift, dann Satz und Knopf (Kevin, 31.10.2026) */
@media (max-width: 860px) {
  .mitmachen__text { display: flex; flex-direction: column; align-items: flex-start; }
  .mitmachen__text h2 { order: -1; }
  .mitmachen__text h2::before { margin-left: 0; }
}
