/*
  Gestaltung der ganzen Website.
  Farben und Grundmaße stehen gleich hier oben als Variablen; danach folgen die
  allgemeinen Regeln und weiter unten je ein Abschnitt pro Baustein.
*/
:root {
  --rot: #d2060b; /* Vereinsrot */
  --text: #14171c;
  --ueberschrift: #00102e;
  --menue: #233452;
  --grau: #666;
  --linie: #e3e5e8;
  --hintergrund: #fff;
  --flaeche: #f5f6f8; /* helle Fläche, z. B. Fußzeile und Infokästen */
  --rund: 8px; /* Eckenrundung von Bildern, Kacheln und Knöpfen */
  --schatten: 0 1px 2px rgba(0, 16, 46, 0.06), 0 10px 24px -10px rgba(0, 16, 46, 0.22);
  --breite: 1170px; /* maximale Inhaltsbreite */
  --rand: 15px; /* Abstand zum Bildschirmrand */
  --schrift: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, 'Helvetica Neue', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* Sprungmarken nicht unter dem fixierten Menü verstecken */
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.68;
  color: var(--text);
  background: var(--hintergrund);
  overflow-wrap: break-word;
}

img,
video,
iframe {
  max-width: 100%;
}
img {
  height: auto;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ueberschrift);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 1.2em 0 0.5em;
  text-wrap: balance; /* mehrzeilige Überschriften gleichmäßig umbrechen */
}
h1 {
  font-size: 52px;
}
h2 {
  font-size: 42px;
}
h3 {
  font-size: 32px;
}
h4 {
  font-size: 24px;
}
h5 {
  font-size: 20px;
}
h6 {
  font-size: 18px;
}

p {
  margin: 0 0 20px;
}
ul,
ol {
  margin: 0 0 16px;
  padding-left: 40px;
}
hr {
  border: 0;
  border-top: 1px solid var(--linie);
  margin: 30px 0;
}
figure {
  margin: 0 0 20px;
}
figcaption {
  margin-top: 6px;
}

a {
  color: inherit;
}
/* Die graue Standard-Hervorhebung beim Antippen (Handy) abschalten: Knöpfe und
   Menüpunkte haben eigene Rückmeldungen. */
button,
.menue a,
.menue-schleier {
  -webkit-tap-highlight-color: transparent;
}
.inhalt a {
  text-decoration: underline;
  text-decoration-color: var(--rot);
  text-underline-offset: 0.15em;
}
.inhalt a:hover {
  color: var(--rot);
}
a,
button {
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}
/* Tastaturbedienung: gut sichtbarer Rahmen in Vereinsrot */
:focus-visible {
  outline: 3px solid var(--rot);
  outline-offset: 2px;
}
::selection {
  background: var(--rot);
  color: #fff;
}
/* Bilder im Inhalt: leicht abgerundete Ecken */
.inhalt img {
  border-radius: var(--rund);
}

/* Nur für Screenreader sichtbar */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Seitenrahmen ---------- */
.container {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
}
.seite {
  padding: 40px 0;
}
.seitentitel {
  margin: 0 0 30px;
}
/* Kurzer roter Strich unter der Hauptüberschrift */
.seitentitel::after,
.willkommen::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 0.35em;
  border-radius: 2px;
  background: var(--rot);
}
.inhalt > :first-child {
  margin-top: 0;
}

/* ---------- Bausteine, die auf mehreren Seiten vorkommen ---------- */
.zentriert {
  text-align: center;
}
.bild-zentriert {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 0 20px;
}
.abstand {
  height: 1.68em;
}
.schmal {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.knopf {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--rot);
  color: #fff;
  border-radius: var(--rund);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 16, 46, 0.2);
  transition:
    filter 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.inhalt a.knopf {
  text-decoration: none;
  color: #fff;
}
.inhalt a.knopf:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(0, 16, 46, 0.45);
}
.knopf-grau {
  background: var(--menue);
}
.knopf-gruen {
  background: #1f5f3a;
}
/* Mehrere Knöpfe nebeneinander, mittig */
.knopfreihe {
  margin-top: 2rem;
  text-align: center;
}
/* Knopf mit erläuterndem Text darunter (z. B. Ansprechpartner) */
.knopf-kasten {
  display: inline-block;
  margin: 0.5rem;
  padding: 1rem;
  background: var(--flaeche);
  border-radius: var(--rund);
  text-align: center;
  vertical-align: top;
}
.knopf-kasten .knopf {
  margin: 0;
}
.knopf-kasten p {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}
.infobox {
  margin: 1em 0;
  padding: 12px 16px;
  border-left: 4px solid var(--rot);
  background: var(--flaeche);
  border-radius: 0 var(--rund) var(--rund) 0;
}
.infobox > :last-child {
  margin-bottom: 0;
}
/* Heller Kasten für einen hervorgehobenen Abschnitt */
.kasten {
  margin: 0 0 40px;
  padding: 30px;
  background: var(--flaeche);
  border-radius: var(--rund);
}
.kasten > :first-child {
  margin-top: 0;
}
.kasten > :last-child {
  margin-bottom: 0;
}
.textbreite {
  max-width: 800px; /* gut lesbare Zeilenlänge, linksbündig */
}
.gross {
  font-size: 1.15em;
}
/* Aufzählung mit roten Haken statt Punkten */
.haken {
  list-style: none;
  padding-left: 0;
}
.haken li {
  position: relative;
  padding-left: 1.6em;
}
.haken li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--rot);
}
.spalten {
  display: flex;
  gap: 2em;
  align-items: flex-start;
}
.spalten > * {
  min-width: 0;
}

/* Lange Rechtstexte (Datenschutzerklärung): kleinere Überschriften, gut lesbare Zeilenlänge */
.rechtstext h2 {
  font-size: 26px;
  margin-top: 1.8em;
}
.rechtstext h3 {
  font-size: 20px;
  margin-top: 1.5em;
}
.rechtstext li {
  margin-bottom: 0.3em;
}

@media (max-width: 991px) {
  h1 {
    font-size: 42px;
  }
  h2 {
    font-size: 32px;
  }
  h3 {
    font-size: 26px;
  }
}
@media (max-width: 767px) {
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 25px;
  }
  h3 {
    font-size: 22px;
  }
  h4 {
    font-size: 20px;
  }
  h5 {
    font-size: 18px;
  }
  .spalten {
    flex-direction: column;
  }
  .spalten > * {
    width: 100%;
    flex-basis: auto !important;
  }
}


/* ==================== Kopfzeile und Menü ==================== */
.kopf {
  border-top: 4px solid var(--rot); /* roter Streifen ganz oben */
}
.kopf-logo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 5px;
}
.logo-link {
  display: block;
  line-height: 0;
}
.logo-link img {
  width: 100px;
  height: 100px;
  transition: transform 0.2s ease;
}
.logo-link:hover img {
  transform: scale(1.05);
}

/* Menüzeile: bleibt beim Scrollen oben stehen (leicht durchscheinend) */
.menue {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid rgba(0, 16, 46, 0.08);
  box-shadow: 0 8px 16px -14px rgba(0, 16, 46, 0.35);
}
.menue ul {
  list-style: none;
  margin: 0 auto;
  padding: 5px var(--rand);
  max-width: var(--breite);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 35px;
}
.menue a {
  position: relative;
  display: block;
  padding: 10px 0;
  color: var(--menue);
  font-weight: 500;
  text-decoration: none;
}
.menue a:hover,
.menue a[aria-current='page'] {
  color: var(--rot);
}
/* Breite Bildschirme: roter Strich unter dem Menüpunkt (aktuelle Seite und beim Überfahren) */
@media (min-width: 1025px) {
  .menue a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    border-radius: 1px;
    background: var(--rot);
    transform: scaleX(0);
    transition: transform 0.2s ease;
  }
  .menue a:hover::after,
  .menue a[aria-current='page']::after {
    transform: scaleX(1);
  }
}
.menue-knopf,
.menue-schliessen {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  color: var(--menue);
  cursor: pointer;
  line-height: 0;
  touch-action: manipulation;
}
/* Eigene Rückmeldung beim Antippen statt der Standard-Hervorhebung des Handys
   (die blitzt sonst über dem hereingleitenden Menü auf). */
.menue-knopf:active,
.menue-schliessen:active {
  opacity: 0.5;
}
/* Fokusrahmen nur bei Tastaturbedienung zeigen, nicht nach dem Antippen. */
.menue-knopf:focus:not(:focus-visible),
.menue-schliessen:focus:not(:focus-visible) {
  outline: none;
}
/* Abdunklung der Seite hinter dem offenen Menü: blendet weich ein und aus. */
.menue-schleier {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s;
}
html.menue-offen .menue-schleier {
  opacity: 1;
  visibility: visible;
}

/* Schmale Bildschirme: Menü als einblendbare Leiste von links */
@media (max-width: 1024px) {
  .kopf-logo {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .logo-link img {
    width: 80px;
    height: 80px;
  }
  .menue-knopf {
    display: block;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  .menue {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: min(300px, 85vw);
    border: 0;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 15px 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 0.25s ease,
      visibility 0.25s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  }
  .menue.offen {
    transform: none;
    visibility: visible;
  }
  .menue ul {
    display: block;
    padding: 0;
  }
  .menue li + li {
    border-top: 1px solid var(--linie);
  }
  .menue a {
    padding: 12px 0;
  }
  .menue a[aria-current='page'] {
    font-weight: 700;
  }
  .menue-schliessen {
    display: block;
    margin: 0 0 10px auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menue,
  .menue-schleier,
  .menue a::after,
  .logo-link img,
  .knopf,
  .plakate img,
  .nach-oben {
    transition: none;
  }
  .logo-link:hover img,
  .inhalt a.knopf:hover,
  .plakate a:hover img,
  .nach-oben:hover {
    transform: none;
  }
}

html.menue-offen {
  overflow: hidden;
}


/* ==================== Fußzeile und Nach-oben-Knopf ==================== */
.fuss {
  margin-top: 20px;
  padding: 26px 0 30px;
  border-top: 1px solid var(--linie);
  background: var(--flaeche);
  text-align: center;
  font-size: 14px;
  color: var(--grau);
}
.fuss a {
  display: inline-block;
  margin: 0 10px;
  padding: 4px 0;
  color: var(--menue);
  text-decoration: none;
}
.fuss a:hover {
  color: var(--rot);
  text-decoration: underline;
}
.fuss-trenner {
  color: #c3c7cd;
}
.fuss-verein {
  margin: 10px 0 0;
  font-size: 13px;
}
/* Handy: Die Links brechen um, deshalb ohne Trennstriche */
@media (max-width: 480px) {
  .fuss-trenner {
    display: none;
  }
}
.nach-oben {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ueberschrift);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(0, 16, 46, 0.5);
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}
.nach-oben:hover {
  background: var(--rot);
  transform: translateY(-2px);
}
.nach-oben[hidden] {
  display: none;
}


/* ==================== Termine (Startseite) ==================== */
.tst {
  --tst-accent: var(--rot);
  --tst-accent-text: #ffffff;
  --tst-muted: #6b6f76;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 0.75rem; /* Abstand zum Bildschirmrand auf dem Handy */
  box-sizing: content-box;
}
.tst-title {
  text-align: center;
  margin: 0 0 0.25rem;
}
.tst-sub {
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--tst-accent);
  font-weight: 700;
  font-style: italic;
}
.tst-empty {
  text-align: center;
  margin: 0;
  color: var(--tst-muted);
}
.tst-empty[hidden] {
  display: none;
}
.tst-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tst-item {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  margin: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--linie);
  text-align: left;
}
.tst-item:first-child {
  padding-top: 0;
}
.tst-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Rote Datums-Kachel links */
.tst-date {
  flex: 0 0 168px;
  box-sizing: content-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  background: var(--tst-accent);
  color: var(--tst-accent-text);
  border-radius: var(--rund);
  line-height: 1.2;
}
.tst-weekday {
  font-size: 1rem;
  font-weight: 700;
}
.tst-day {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tst-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tst-time-range {
  font-size: 1rem; /* Zeitspanne, z. B. 15:00–22:00 */
}

/* Titel und Ort rechts */
.tst-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tst-name {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.tst-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--tst-accent);
  text-underline-offset: 0.15em;
}
.tst-link:hover {
  color: var(--tst-accent);
}
.tst-link:focus-visible {
  outline: 3px solid var(--tst-accent);
  outline-offset: 2px;
}
.tst-place {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  line-height: 1.3;
}
/* Lange Wörter wie „Gemeinschaftshaus“ dürfen auf sehr schmalen Handys getrennt werden,
   statt die Seite seitlich verschiebbar zu machen. */
.tst-name,
.tst-place > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.tst-icon {
  flex: none;
  width: 1.1em;
  height: 1.1em;
}
.tst-icon-pin {
  color: var(--tst-accent);
}
/* „In Kalender eintragen“ unter dem Termin */
.tst-cal {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.3;
}
.tst-cal a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 2px 0;
  color: var(--tst-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.15em;
}
.inhalt .tst-cal a:hover {
  color: var(--tst-accent);
  text-decoration-color: currentColor;
}

@media (max-width: 480px) {
  .tst-item {
    gap: 0.75rem;
  }
  .tst-date {
    flex-basis: 124px;
    padding: 0.5rem 0.6rem;
  }
  .tst-weekday {
    font-size: 0.85rem;
  }
  .tst-day {
    font-size: 1.1rem;
  }
  .tst-time {
    font-size: 0.95rem;
  }
  .tst-time-range {
    font-size: 0.8rem;
    gap: 0.3rem;
  }
  .tst-name {
    font-size: 1.05rem;
  }
  .tst-place {
    font-size: 0.9rem;
  }
}


/* ==================== News (Startseite) ==================== */
.tsn {
  --tsn-accent: #1f5f3a; /* Farbe der Datums-Kacheln und des Knopfs */
  --tsn-accent-text: #ffffff;
  --tsn-muted: #6b6f76;
  --tsn-line: #e3e5e8;
  --tsn-hover: #f5f7f6;
  max-width: 640px;
  margin: 0 auto;
}
.tsn-title {
  text-align: center;
  margin: 0 0 1rem;
}
.tsn-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tsn-item {
  border-bottom: 1px solid var(--tsn-line);
}
.tsn-item:first-child {
  border-top: 1px solid var(--tsn-line);
}
.tsn-item[hidden] {
  display: none;
}
.tsn-link {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0.5rem;
  color: inherit;
  text-decoration: none !important;
  border-radius: var(--rund);
}
.inhalt .tsn-link:hover {
  background: var(--tsn-hover);
  color: inherit;
}
.tsn-link:hover .tsn-headline {
  text-decoration: underline;
}
.tsn-link:focus-visible {
  outline: 3px solid var(--tsn-accent);
  outline-offset: 2px;
}
.tsn-thumb {
  position: relative;
  flex: 0 0 112px;
  aspect-ratio: 4 / 3;
  border-radius: var(--rund);
  overflow: hidden;
  background: var(--tsn-accent);
}
.tsn-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0; /* die Kachel selbst ist schon abgerundet */
}

/* Ohne Bild: Datums-Kachel */
.tsn-datetile {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--tsn-accent-text);
  line-height: 1;
}
.tsn-datetile-day {
  font-size: 2rem;
  font-weight: 700;
}
.tsn-datetile-month {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.tsn-body {
  min-width: 0;
}
.tsn-meta {
  font-size: 0.85rem;
  color: var(--tsn-muted);
  margin: 0 0 0.2rem;
}
.tsn-headline {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.tsn-ext {
  font-size: 0.8em;
  color: var(--tsn-muted);
  white-space: nowrap;
}
.tsn-extra {
  margin: -0.4rem 0 0.75rem calc(112px + 1.5rem);
  font-size: 0.9rem;
}
.tsn-extra a {
  color: var(--tsn-accent);
  font-weight: 600;
  text-decoration-color: currentColor;
}
.tsn-actions {
  text-align: center;
}
.tsn-toggle {
  margin-top: 1.25rem;
  padding: 0.6rem 1.4rem;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid var(--tsn-accent);
  background: transparent;
  color: var(--tsn-accent);
  font-weight: 600;
  border-radius: var(--rund);
}
.tsn-toggle:hover {
  background: var(--tsn-accent);
  color: var(--tsn-accent-text);
}
.tsn-toggle:focus-visible {
  outline: 3px solid var(--tsn-accent);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .tsn-thumb {
    flex-basis: 80px;
  }
  .tsn-datetile-day {
    font-size: 1.5rem;
  }
  .tsn-extra {
    margin-left: calc(80px + 1.5rem);
  }
}


/* ==================== Karte ==================== */
.karte {
  width: 100%;
  max-height: 80vh;
  background: #eef1f4;
  border-radius: var(--rund);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.karte iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.karte-hinweis {
  padding: 20px;
  text-align: center;
  color: var(--menue);
}
.karte-hinweis svg {
  color: var(--rot);
}
.karte-hinweis p {
  margin: 0.5em 0;
}
.karte-laden {
  padding: 0.6rem 1.4rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--rot);
  border: 0;
  border-radius: var(--rund);
  cursor: pointer;
}
.karte-laden:hover {
  filter: brightness(1.1);
}
.karte-klein {
  font-size: 0.85rem;
  color: var(--grau);
}


/* ==================== BFV-Widget ==================== */
.bfv {
  width: 100%;
}
.bfv iframe {
  width: 100%;
  border: 0;
}


/* ==================== Diashow ==================== */
.diashow {
  max-width: 1000px;
  position: relative;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: var(--rund);
  background: #111;
  box-shadow: var(--schatten);
}
.dia {
  display: none;
}
.dia.aktiv {
  display: block;
  animation: einblenden 0.8s;
}
.dia img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}
.diashow-zaehler {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 5px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-bottom-right-radius: 5px;
}
.dia-pfeil {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  padding: 16px;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
}
.dia-pfeil:hover {
  background: rgba(0, 0, 0, 0.8);
}
.weiter {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.zurueck {
  left: 0;
  border-radius: 0 3px 3px 0;
}
@keyframes einblenden {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dia.aktiv {
    animation: none;
  }
}


/* ==================== Galerie (Bilderreihe) ==================== */
.galerie {
  display: flex;
  gap: 4px;
  margin: 0 0 20px;
  border-radius: var(--rund);
  overflow: hidden;
}
.galerie a {
  display: block;
  min-width: 0;
  line-height: 0;
}
.galerie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; /* abgerundet ist die ganze Reihe */
  transition: filter 0.15s ease;
}
.galerie a:hover img {
  filter: brightness(1.08);
}
@media (max-width: 600px) {
  .galerie {
    flex-wrap: wrap;
  }
  .galerie a {
    flex-basis: 40% !important;
  }
}


/* ==================== Startseite ==================== */
.willkommen {
  font-size: 42px;
  text-align: center;
  margin: 0.4em 0 1.2em;
}
.willkommen::after {
  margin-left: auto;
  margin-right: auto;
}
/* Abschnittsüberschriften etwas kleiner als die Begrüßung */
.tst-title,
.tsn-title {
  font-size: 34px;
}
.plakate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
  margin: 2.5em 0;
}
.plakate > a,
.plakat > a:first-child {
  display: block;
  line-height: 0;
  border-radius: var(--rund);
}
/* Links, die das Plakat groß öffnen: Lupe als Mauszeiger */
.plakate a[href$='.jpg'],
.plakate a[href$='.jpeg'],
.plakate a[href$='.png'],
.plakate a[href$='.webp'] {
  cursor: zoom-in;
}
/* Plakat mit Knopf darunter */
.plakat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9em;
}
.plakat .knopf {
  margin: 0;
}
.plakate img {
  box-shadow: var(--schatten);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
/* Anklickbare Plakate heben sich beim Überfahren leicht an */
.plakate a:hover img {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(0, 16, 46, 0.08), 0 18px 32px -12px rgba(0, 16, 46, 0.35);
}
/* Breite Bildschirme: zwei Plakate nebeneinander. Ein Block mit class="breit"
   (Banner im Querformat) geht über beide Spalten; die Lücke daneben füllt das
   nächste Plakat auf. Bleibt am Ende ein einzelnes Plakat übrig, steht es mittig. */
@media (min-width: 920px) {
  .plakate {
    display: grid;
    grid-template-columns: repeat(2, 420px);
    grid-auto-flow: dense;
    justify-content: center;
    align-items: start;
    justify-items: center;
  }
  .plakate > .breit {
    grid-column: 1 / -1;
  }
  .plakate > a.breit,
  .plakate > img.breit,
  .plakate > a.breit img {
    width: 100%;
  }
  .plakate > :nth-child(odd of :not(.breit)):nth-last-child(1 of :not(.breit)) {
    grid-column: 1 / -1;
  }
}
.luftbild {
  margin: 2.5em 0;
}
.luftbild img {
  box-shadow: var(--schatten);
}
@media (max-width: 991px) {
  .willkommen {
    font-size: 32px;
  }
  .tst-title,
  .tsn-title {
    font-size: 28px;
  }
}
@media (max-width: 767px) {
  .willkommen {
    font-size: 25px;
  }
  .tst-title,
  .tsn-title {
    font-size: 23px;
  }
}


/* ==================== Seite Verein: Chronik als Zeitleiste ==================== */
.chronik-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  margin: 3.5em 0 2rem;
  text-align: center;
}
.chronik-kopf img {
  width: auto;
  height: 80px;
}
.chronik-kopf h2 {
  margin: 0;
}
.zeitleiste {
  position: relative;
  isolation: isolate; /* die beiden Linien liegen hinter den Einträgen, aber vor dem Seitenhintergrund */
  max-width: 1200px;
  margin: 0 auto 3em;
  padding: 20px 0;
}
/* Senkrechte Linie in der Mitte: grau, darüber eine rote, die beim Scrollen mitwächst
   (den Anteil --fortschritt setzt js/seite.js; ohne JavaScript bleibt sie grau). */
.zeitleiste::before,
.zeitleiste::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
}
.zeitleiste::before {
  background: var(--linie);
}
.zeitleiste::after {
  background: var(--rot);
  transform: scaleY(var(--fortschritt, 0));
  transform-origin: top;
  transition: transform 0.15s linear;
}
.zeitleiste-eintrag {
  position: relative;
  width: 50%;
  padding: 10px 40px;
}
.zeitleiste-eintrag.rechts {
  left: 50%;
}
/* Punkt auf der Linie */
.zeitleiste-eintrag::after {
  content: '';
  position: absolute;
  top: 34px;
  right: -9px;
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 3px solid var(--rot);
  border-radius: 50%;
  background: #fff;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
.zeitleiste-eintrag.rechts::after {
  right: auto;
  left: -9px;
}
/* Jahreszahl groß auf der freien Seite gegenüber (steht als data-jahr="…" am Eintrag) */
.zeitleiste-eintrag[data-jahr]::before {
  content: attr(data-jahr);
  position: absolute;
  top: 10px;
  left: 100%;
  margin-left: 40px;
  color: var(--rot);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  transition:
    color 0.5s ease,
    opacity 0.6s ease,
    transform 0.6s ease;
}
.zeitleiste-eintrag.rechts[data-jahr]::before {
  left: auto;
  right: 100%;
  margin: 0 40px 0 0;
}
.zeitleiste-inhalt {
  padding: 20px 30px;
  background: var(--flaeche);
  border-radius: var(--rund);
  box-shadow: var(--schatten);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.zeitleiste-eintrag.links .zeitleiste-inhalt {
  border-left: 3px solid var(--rot);
}
.zeitleiste-eintrag.rechts .zeitleiste-inhalt {
  border-right: 3px solid var(--rot);
}
.zeitleiste-inhalt h3 {
  margin-top: 0;
  font-size: 24px;
}
.zeitleiste-inhalt > :last-child {
  margin-bottom: 0;
}
.zeitleiste-inhalt figure {
  margin-top: 15px;
}

/* Bewegung (die Klasse "animiert" setzt js/seite.js – ohne JavaScript oder bei
   „Bewegung reduzieren“ ist einfach alles sofort sichtbar):
   - "sichtbar": Der Eintrag ist ins Bild gescrollt; der Kasten gleitet von seiner Seite herein.
   - "erreicht": Die rote Linie ist am Punkt angekommen; Punkt und Jahreszahl werden rot. */
.zeitleiste.animiert .zeitleiste-inhalt {
  opacity: 0;
  transform: translateX(-48px);
}
.zeitleiste.animiert .rechts .zeitleiste-inhalt {
  transform: translateX(48px);
}
.zeitleiste.animiert .zeitleiste-eintrag::before {
  opacity: 0;
  transform: translateY(16px);
}
.zeitleiste.animiert .sichtbar .zeitleiste-inhalt,
.zeitleiste.animiert .sichtbar::before {
  opacity: 1;
  transform: none;
}
.zeitleiste.animiert .zeitleiste-eintrag:not(.erreicht)::before {
  color: var(--linie);
}
.zeitleiste.animiert .zeitleiste-eintrag:not(.erreicht)::after {
  border-color: #c3c7cd;
}
.zeitleiste.animiert .erreicht::after {
  background: var(--rot);
  box-shadow: 0 0 0 5px rgba(210, 6, 11, 0.18);
  transform: scale(1.1);
}

/* Schmale Bildschirme: Linie links, alle Einträge untereinander, Jahreszahl über dem Kasten */
@media (max-width: 768px) {
  .zeitleiste::before,
  .zeitleiste::after {
    left: 15px;
  }
  .zeitleiste-eintrag,
  .zeitleiste-eintrag.rechts {
    left: 0;
    width: 100%;
    padding: 10px 0 10px 40px;
  }
  .zeitleiste-eintrag::after,
  .zeitleiste-eintrag.rechts::after {
    top: 16px;
    right: auto;
    left: 6px;
  }
  .zeitleiste-eintrag[data-jahr]::before,
  .zeitleiste-eintrag.rechts[data-jahr]::before {
    position: static;
    display: block;
    margin: 0 0 8px;
    font-size: 30px;
  }
  .zeitleiste-eintrag.links .zeitleiste-inhalt,
  .zeitleiste-eintrag.rechts .zeitleiste-inhalt {
    border-left: 0;
    border-right: 0;
    border-top: 3px solid var(--rot);
    padding: 16px 18px;
  }
  /* von unten statt von der Seite, damit auf dem Handy nichts über den Rand ragt */
  .zeitleiste.animiert .zeitleiste-inhalt,
  .zeitleiste.animiert .rechts .zeitleiste-inhalt {
    transform: translateY(28px);
  }
  .zeitleiste.animiert .sichtbar .zeitleiste-inhalt {
    transform: none;
  }
  .zeitleiste-inhalt h3 {
    font-size: 20px;
  }
}


/* ==================== Seite Dodgeball ==================== */
.ergebnisse {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ergebnisse li {
  padding: 24px 0;
  border-bottom: 1px solid var(--linie);
  color: var(--ueberschrift);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}
.ergebnisse li:first-child {
  padding-top: 0;
}
.ergebnisse li:last-child {
  border-bottom: 0;
}
@media (max-width: 767px) {
  .ergebnisse li {
    font-size: 20px;
  }
}


/* ==================== Seite Malerforum (PDF-Vorschau) ==================== */
.pdf {
  display: block;
  width: 100%;
  height: 80vh;
  margin: 0 0 20px;
  border: 1px solid var(--linie);
}
