/* Franz Schubert Chor Eisenach e. V. – Stylesheet (mobile-first) */

:root {
  --rot: #9E1B26;
  --rot-d: #6B0F17;
  --beige: #EFE6D3;
  --papier: #F8F4EA;
  --schwarz: #000;
  --grau: #5E5249;
  --linie: rgba(0, 0, 0, .16);
  --linie-hell: rgba(239, 230, 211, .22);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, "TeX Gyre Pagella", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rand: clamp(1.1rem, 4vw, 2.5rem);
  --kopf-h: 4rem;
  --tl-h: 4.5rem;
  --sa-unten: env(safe-area-inset-bottom, 0px);
  --weich: cubic-bezier(.2, .7, .2, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--kopf-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--beige);
  color: var(--schwarz);
  font: 1.0625rem/1.68 var(--serif);
  padding-bottom: calc(var(--tl-h) + var(--sa-unten));
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
.dunkel :focus-visible, .tl :focus-visible, .menue :focus-visible { outline-color: var(--beige); }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--rand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--schwarz); color: var(--beige); padding: .6rem 1rem; font-family: var(--sans); }
.skip:focus { top: 1rem; }
.leise { color: var(--grau); font-family: var(--sans); font-size: .875rem; }
.dunkel .leise, .tl .leise { color: rgba(239, 230, 211, .7); }
.leer { font-style: italic; color: var(--grau); }
.dunkel .leer { color: rgba(239, 230, 211, .75); }
.leer a { color: var(--rot); }
.dunkel .leer a { color: var(--beige); }

/* ------------------------------------------------------------ Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  padding: .8rem 1.25rem; border-radius: 3px; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--weich);
}
.btn:active { transform: translateY(1px); }
.btn-rot { background: var(--rot); color: var(--papier); }
.btn-rot:hover { background: var(--rot-d); }
.btn-linie { border-color: currentColor; background: transparent; }
.btn-linie:hover { background: var(--schwarz); color: var(--beige); border-color: var(--schwarz); }
.btn-linie-hell { border-color: var(--beige); color: var(--beige); background: transparent; }
.btn-linie-hell:hover { background: var(--beige); color: var(--schwarz); }
.btn-klein { padding: .45rem .8rem; font-size: .85rem; }
.aktionen { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.aktionen.mittig { justify-content: center; margin-top: 3rem; }
.linkknopf { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.mehr {
  font: 600 .95rem var(--sans); color: var(--rot); text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: .1rem; transition: color .2s;
}
.mehr:hover { color: var(--rot-d); }
.dunkel .mehr { color: var(--beige); }

/* Externe Links */
a.ext::after {
  content: ""; display: inline-block; width: .72em; height: .72em; margin-left: .3em; vertical-align: -.02em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9 1h6v6h-2V4.4L7.7 9.7 6.3 8.3 11.6 3H9V1zM2 3h5v2H4v7h7V9h2v5H2V3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9 1h6v6h-2V4.4L7.7 9.7 6.3 8.3 11.6 3H9V1zM2 3h5v2H4v7h7V9h2v5H2V3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ------------------------------------------------------------- Kopf */
.kopf {
  position: sticky; top: 0; z-index: 40; background: var(--beige);
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
  view-transition-name: kopf;
}
.kopf.gerollt { border-bottom-color: var(--linie); background: rgba(239, 230, 211, .96); }
.kopf-in { display: flex; align-items: center; gap: 1rem; height: var(--kopf-h); max-width: 80rem; margin-inline: auto; padding-inline: var(--rand); }
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; min-width: 0; }
.marke-logo { height: 2.8rem; width: auto; flex: none; }
.marke { transition: opacity .4s, transform .4s var(--weich); }
/* Auf der Startseite erscheint das kleine Logo erst, wenn das große aus dem Blick rollt */
.seite-start .kopf:not(.logo-zeigen) .marke { opacity: 0; transform: translateY(-.4rem); }
.seite-start .kopf:not(.logo-zeigen) .marke:focus-visible { opacity: 1; transform: none; }
@media (min-width: 1080px) { .marke-logo { height: 3.5rem; } }
.marke-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.marke-name { font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marke-ort { font: .78rem var(--sans); color: var(--grau); letter-spacing: .02em; }

.hauptnav { display: none; }
.hauptnav a {
  font: 500 .95rem var(--sans); text-decoration: none; padding: .4rem .1rem; position: relative;
}
.hauptnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1.5px; background: var(--rot);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--weich);
}
.hauptnav a:hover::after, .hauptnav a:focus-visible::after { transform: scaleX(1); }

.menue-knopf {
  display: inline-flex; align-items: center; gap: .55rem; background: none; cursor: pointer;
  border: 1.5px solid var(--schwarz); border-radius: 3px; padding: .5rem .8rem; font: 600 .9rem var(--sans);
}
.menue-striche { display: grid; gap: 3px; width: 1rem; }
.menue-striche i { display: block; height: 1.5px; background: currentColor; }
.menue-knopf:hover { background: var(--schwarz); color: var(--beige); }

@media (min-width: 1080px) {
  :root { --kopf-h: 4.75rem; }
  .hauptnav { display: flex; gap: 1.6rem; margin-right: 1rem; }
  .menue-label::after { content: " und mehr"; font-weight: 400; }
}

/* Menü-Overlay */
.menue {
  position: fixed; inset: 0; z-index: 80; background: var(--schwarz); color: var(--beige);
  overflow-y: auto; opacity: 0; transform: translateY(-1.5rem);
  transition: opacity .3s var(--weich), transform .4s var(--weich);
}
.menue.offen { opacity: 1; transform: none; }
.menue-in {
  max-width: 72rem; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 4.5rem) var(--rand) 3rem;
  display: grid; gap: 2.5rem;
}
.menue ul { list-style: none; margin: 0; padding: 0; }
.menue a { text-decoration: none; display: inline-block; padding: .25rem 0; transition: color .2s; }
.menue a:hover, .menue a[aria-current] { color: #E6A3A9; }
.menue-titel { font: .85rem var(--sans); color: rgba(239, 230, 211, .65); border-bottom: 1px solid var(--linie-hell); padding-bottom: .5rem; }
.menue-spalte:first-child a { font: 500 1.05rem var(--sans); }
.menue-gross a { font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.25; }
.menue-schliessen {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + .9rem); right: var(--rand);
  background: none; border: 1.5px solid var(--beige); color: var(--beige); border-radius: 3px;
  padding: .5rem .9rem; font: 600 .9rem var(--sans); cursor: pointer;
}
.menue-schliessen:hover { background: var(--beige); color: var(--schwarz); }
@media (min-width: 760px) { .menue-in { grid-template-columns: 1fr 2fr; padding-top: 7rem; } }
body.menue-offen { overflow: hidden; }

/* -------------------------------------------------------------- Held */
.held { position: relative; overflow: hidden; padding-block: clamp(1.75rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem); }
.held-raster { display: grid; gap: 2.5rem; align-items: end; }
.held-text { position: relative; }
.held-titel { margin: 0 0 1.75rem; line-height: 0; }
.held-titel img { width: min(100%, 34rem); height: auto; }
.held-claim { font-size: clamp(1.15rem, 2.4vw, 1.4rem); max-width: 36ch; }

.plakat {
  display: flex; flex-direction: column; text-decoration: none; background: var(--rot); color: var(--papier);
  padding: 1.5rem 1.6rem 1.7rem; border-radius: 4px; position: relative; overflow: hidden;
  transition: transform .35s var(--weich), box-shadow .35s var(--weich);
}
.plakat::before {
  content: ""; position: absolute; left: 0; right: 0; top: 3.5rem; height: 4.2rem;
  background: repeating-linear-gradient(to bottom, rgba(248, 244, 234, .18) 0 1px, transparent 1px 1.05rem);
}
.plakat:hover { transform: translateY(-4px); box-shadow: 0 1.2rem 2rem -1.2rem rgba(107, 15, 23, .7); }
.plakat > span { position: relative; }
.plakat-ueber { font: 600 .85rem var(--sans); opacity: .85; }
.plakat-tag { font-size: 6.5rem; line-height: .85; margin-top: .5rem; }
.plakat-monat { font: 600 1rem var(--sans); margin-bottom: 1.2rem; }
.plakat-titel { font-size: 1.65rem; line-height: 1.15; font-style: italic; margin-bottom: .6rem; }
.plakat-info { font: .95rem/1.45 var(--sans); }
.plakat-leitung { font: .85rem var(--sans); opacity: .85; margin-top: .5rem; }
@media (min-width: 900px) {
  .held-raster { grid-template-columns: minmax(0, 1.6fr) minmax(16rem, .75fr); }
}

/* Die eine orchestrierte Animation: das Logo wird von links nach rechts „geschrieben“ */
@media (prefers-reduced-motion: no-preference) {
  .held-titel img { animation: schreiben 1.6s .1s cubic-bezier(.45, .05, .25, 1) both; }
  .held-claim, .held .aktionen { animation: auftritt .8s 1.1s var(--weich) both; }
  .plakat { animation: plakat .9s 1.25s var(--weich) both; }
}
@keyframes schreiben { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes auftritt { from { opacity: 0; transform: translateY(.35rem); } to { opacity: 1; transform: none; } }
@keyframes plakat { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------- Abschnitte */
.abschnitt { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.papier { background: var(--papier); }
.dunkel { background: var(--schwarz); color: var(--beige); }
.abschnitt-titel { font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -.012em; }
.abschnitt-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 2rem; }
.abschnitt-kopf .abschnitt-titel { margin: 0; }
.abschnitt-kopf .aktionen { margin: 0; }
.zwei { display: grid; gap: .5rem 3rem; }
@media (min-width: 860px) { .zwei { grid-template-columns: minmax(12rem, 1fr) 2fr; } }

/* Fließtext */
.prose { max-width: 68ch; }
.prose.gross { font-size: 1.18rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose h4 { font: 600 1rem var(--sans); margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--rot); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.dunkel .prose a { color: #F0B8BD; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 3px solid var(--rot); font-style: italic; font-size: 1.15em; }
.prose hr { border: 0; height: 1px; background: var(--linie); margin: 2em 0; }

/* ----------------------------------------------------------- Termine */
.termin { display: grid; grid-template-columns: 4.4rem 1fr; gap: 1.1rem; }
.termin-datum { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.td-wt, .td-mon { font: 600 .78rem var(--sans); }
.td-tag { font-size: 2.9rem; line-height: 1; color: var(--rot); margin: .1rem 0; }
.dunkel .td-tag, .tl .td-tag { color: #E8606B; }
.termin-art { font: 600 .8rem var(--sans); color: var(--rot); margin: .2rem 0 .2rem; }
.dunkel .termin-art, .tl .termin-art { color: #E8606B; }
.termin-titel { font-size: 1.5rem; margin-bottom: .6rem; }
.termin-titel a { text-decoration: none; }
.termin-titel a:hover { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.termin-daten { margin: 0; font: .95rem/1.45 var(--sans); display: grid; gap: .35rem; }
.termin-daten div { display: grid; grid-template-columns: 1fr; }
.termin-daten dt { font-size: .78rem; color: var(--grau); }
.dunkel .termin-daten dt, .tl .termin-daten dt { color: rgba(239, 230, 211, .62); }
.termin-daten dd { margin: 0; }
.termin-text { margin-top: 1rem; }
.termin-aktionen { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.termin-raster { display: grid; gap: 2rem; }
.termin-kompakt { border-top: 1px solid var(--linie-hell); padding-top: 1.4rem; }
.termin-kompakt .termin-daten div { grid-template-columns: 1fr; }
@media (min-width: 720px) { .termin-raster { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; } }
.termin-liste { display: grid; gap: 0; margin-top: 1rem; }
.termin-liste .termin { padding-block: 2rem; border-top: 1px solid var(--linie); }
.termin-liste .termin:target { background: var(--papier); box-shadow: 0 0 0 .75rem var(--papier); border-radius: 2px; }
@media (min-width: 720px) {
  .termin-liste .termin { grid-template-columns: 7rem 1fr; gap: 2rem; }
  .termin-liste .td-tag { font-size: 4rem; }
  .termin-liste .termin-daten div { grid-template-columns: 11rem 1fr; gap: 1rem; }
}

/* Flyer, Plakate, Programmhefte */
.anhaenge { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; }
.anhang { display: flex; text-decoration: none; font: 600 .85rem/1.3 var(--sans); }
.anhang-bild { flex-direction: column; gap: .35rem; width: 8.5rem; }
.anhang-bild img {
  width: 100%; height: auto; max-height: 12rem; object-fit: cover; object-position: top; border-radius: 3px;
  box-shadow: 0 .4rem 1rem -.5rem rgba(0, 0, 0, .45); transition: transform .3s var(--weich), box-shadow .3s var(--weich);
}
.anhang-bild:hover img { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 .8rem 1.4rem -.6rem rgba(0, 0, 0, .5); }
.anhang-pdf { align-items: center; gap: .6rem; border: 1.5px solid currentColor; border-radius: 3px; padding: .45rem .75rem .45rem .5rem; }
.anhang-pdf:hover { background: var(--schwarz); color: var(--beige); }
.dunkel .anhang-pdf:hover, .tl .anhang-pdf:hover { background: var(--beige); color: var(--schwarz); }
.anhang-typ { background: var(--rot); color: var(--papier); font: 700 .68rem var(--sans); padding: .3rem .35rem; border-radius: 2px; }
.anhang-text { display: flex; flex-direction: column; }
.anhang-text small { font-weight: 400; opacity: .75; }
.anhaenge-klein { margin-top: .7rem; gap: .5rem; }
.anhaenge-klein .anhang-bild { width: 4.2rem; }
.anhaenge-klein .anhang-bild img { max-height: 5.8rem; }
.anhaenge-klein .anhang-bild .anhang-text { font-size: .72rem; font-weight: 500; }
.anhaenge-klein .anhang-pdf { padding: .3rem .55rem .3rem .35rem; font-size: .78rem; }

/* Chronik (zeitliche Abfolge) */
.chronik { padding-block: 1rem 2rem; }
.jahre { display: grid; gap: .45rem; margin-bottom: 2.5rem; }
.jahre-zeile { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.jahrzehnt { font: 600 .8rem var(--sans); color: var(--grau); width: 3.4rem; }
.jahre small { font-size: .7rem; font-weight: 500; opacity: .65; margin-left: .3rem; }
.jahre a[aria-current] { background: var(--schwarz); color: var(--beige); border-color: var(--schwarz); }
.chronik-anzahl { font: 500 .9rem var(--sans); color: var(--grau); vertical-align: middle; margin-left: .4rem; }
.jahre a, .filter a {
  font: 600 .88rem var(--sans); text-decoration: none; padding: .35rem .8rem; border: 1.5px solid var(--linie);
  border-radius: 2rem; transition: border-color .2s, background-color .2s;
}
.jahre a:hover, .filter a:hover { border-color: var(--schwarz); }
.filter a[aria-current] { background: var(--schwarz); color: var(--beige); border-color: var(--schwarz); }
.chronik-jahr { margin-bottom: 3rem; }
.chronik-jahr h2 { font-size: clamp(2.6rem, 8vw, 4rem); color: var(--rot); margin-bottom: .2em; }
.chronik-jahr > ol { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--rot); }
.chronik-jahr > ol > li { position: relative; padding: 0 0 1.75rem; display: grid; gap: .1rem; }
.chronik-jahr > ol > li::before {
  content: ""; position: absolute; left: calc(-1.25rem - 6px); top: .55rem; width: 10px; height: 10px;
  border-radius: 50%; background: var(--beige); border: 2px solid var(--rot);
}
.chronik-jahr time { font: 600 .85rem var(--sans); color: var(--grau); }
.chronik-jahr h3 { font-size: 1.35rem; margin: 0 0 .2rem; }
.chronik-jahr p { margin: 0; }
details summary { cursor: pointer; font: 600 .88rem var(--sans); color: var(--rot); margin-top: .4rem; }
details[open] summary { margin-bottom: .5rem; }
@media (min-width: 720px) { .chronik-jahr > ol > li { grid-template-columns: 10rem 1fr; gap: 1.5rem; } }

/* ----------------------------------------------------------- Galerie */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .45rem; margin-bottom: 2.5rem; }
.galerie-start { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .galerie-start { grid-template-columns: repeat(3, 1fr); } .galerie { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); } }
.g-bild { display: block; overflow: hidden; background: var(--beige); border-radius: 2px; aspect-ratio: 4 / 3; }
.g-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--weich), opacity .4s; }
.g-bild:hover img { transform: scale(1.04); }
.album-titel { font-size: 1.6rem; margin-top: 1rem; display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }

.lb {
  position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .94); color: var(--beige);
  display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 3.5rem .5rem 1rem;
  opacity: 0; transition: opacity .25s;
}
.lb.offen { opacity: 1; }
.lb img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; object-fit: contain; transition: opacity .2s; }
.lb-text { font: .95rem var(--sans); text-align: center; padding: .75rem 1rem; min-height: 2.5rem; }
.lb button {
  position: absolute; background: rgba(0, 0, 0, .5); border: 1.5px solid rgba(239, 230, 211, .5); color: var(--beige);
  border-radius: 3px; cursor: pointer; font: 600 .9rem var(--sans); padding: .55rem .85rem;
}
.lb button:hover { background: var(--beige); color: var(--schwarz); }
.lb-zu { top: calc(env(safe-area-inset-top, 0px) + .75rem); right: .75rem; }
.lb-zurueck, .lb-vor { top: 50%; transform: translateY(-50%); font-size: 1.4rem !important; line-height: 1; padding: .7rem .9rem !important; }
.lb-zurueck { left: .5rem; }
.lb-vor { right: .5rem; }
.lb-zahl { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 1.25rem); left: 1rem; font: .85rem var(--sans); opacity: .8; }

/* ------------------------------------------------------------ Videos */
.video-raster { display: grid; gap: 2rem; }
@media (min-width: 760px) { .video-raster { grid-template-columns: 1fr 1fr; } }
.video { margin: 0; }
.yt {
  position: relative; aspect-ratio: 16 / 9; background-color: var(--schwarz); color: var(--beige); border-radius: 3px; overflow: hidden;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(50% - 2.6rem), rgba(239, 230, 211, .14) 0 calc(50% - 2.6rem + 1px), transparent 0 calc(50% - 1.3rem));
  background-size: cover; background-position: center;
}
.yt.mit-bild::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .75)); }
.yt-start {
  position: absolute; inset: 0; width: 100%; background: none; border: 0; cursor: pointer; color: var(--beige);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; font: 600 .95rem var(--sans);
}
.yt-icon {
  width: 4rem; height: 4rem; border-radius: 50%; background: var(--rot); position: relative;
  transition: transform .3s var(--weich), background-color .2s;
}
.yt-icon::after { content: ""; position: absolute; left: 1.55rem; top: 1.2rem; border: .8rem solid transparent; border-left: 1.25rem solid var(--papier); border-right: 0; }
.yt-start:hover .yt-icon { transform: scale(1.08); background: #B8222F; }
.yt-hinweis { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: .6rem .9rem; font: .78rem/1.35 var(--sans); color: rgba(239, 230, 211, .8); text-align: center; }
.yt-hinweis a { color: inherit; }
.yt-erlaubt .yt-h-frage, .yt:not(.yt-erlaubt) .yt-h-erlaubt { display: none; }
.yt-frage {
  position: absolute; inset: 0; z-index: 2; background: rgba(0, 0, 0, .93); color: var(--beige);
  display: flex; flex-direction: column; justify-content: center; gap: .4rem; padding: .9rem 1.1rem;
  font: .84rem/1.45 var(--sans); overflow-y: auto; animation: auftritt .3s var(--weich) both;
}
.yt-frage p { margin: 0; max-width: 34rem; }
.yt-frage a, .yt-frage .linkknopf { color: var(--beige); }
.yt-frage-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; margin-top: .5rem !important; }
@media (min-width: 500px) { .yt-frage { padding: 1.25rem 1.5rem; font-size: .9rem; } }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { display: grid; gap: .15rem; margin-top: .8rem; }
.video-titel { font-size: 1.25rem; }
.video-text { font: .95rem var(--sans); }
.video-link { font: 600 .88rem var(--sans); color: var(--rot); margin-top: .25rem; }

/* ------------------------------------------------------------ Kacheln */
.kacheln { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.5rem 2rem; }
@media (min-width: 640px) { .kacheln { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .kacheln { grid-template-columns: repeat(4, 1fr); } }
.kacheln a { display: grid; gap: .4rem; text-decoration: none; border-top: 2px solid var(--schwarz); padding-top: 1rem; transition: border-color .25s; }
.kacheln strong { font-weight: 400; font-size: 1.45rem; line-height: 1.15; transition: color .25s; }
.kacheln span { font: .95rem/1.5 var(--sans); color: var(--grau); }
.kacheln a:hover { border-color: var(--rot); }
.kacheln a:hover strong { color: var(--rot); }

/* Bildplätze (Ausschnitt per CSS-Variablen aus dem Backend) */
.bildplatz { margin: 0; }
.bp-rahmen { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--papier); }
.bp-rahmen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: var(--x, 50%) var(--y, 50%); transform: scale(var(--z, 1)); transform-origin: var(--x, 50%) var(--y, 50%);
}
.bildplatz figcaption { font: .88rem/1.5 var(--sans); color: var(--grau); padding-top: .6rem; }
.bildplatz-seite { margin-bottom: 2.5rem; }
.bildplatz-seite .bp-rahmen { border-radius: 4px; }
.bildplatz-seite figcaption { padding-inline: 0; }
@media (min-width: 900px) { .bp-rahmen { aspect-ratio: 16 / 7; } }

/* Kontakt */
.kontakt { display: grid; gap: 1.5rem; }
.kontakt-daten { font: 1rem/1.55 var(--sans); }

/* ------------------------------------------------------- Unterseiten */
.seitenkopf { position: relative; padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(3rem, 8vw, 5rem); overflow: hidden; }
.seitenkopf h1 { font-size: clamp(2.6rem, 9vw, 5.2rem); letter-spacing: -.02em; margin-bottom: .25em; }
.seitenkopf-intro { font-size: 1.15rem; max-width: 50ch; color: var(--grau); margin: 0; }
.brot { font: .88rem var(--sans); margin-bottom: 1rem; }
.brot a { color: var(--rot); }
.notenlinien { position: absolute; left: 0; right: 0; bottom: 1.25rem; height: 2.1rem; display: flex; flex-direction: column; justify-content: space-between; }
.notenlinien i { display: block; height: 1px; background: rgba(0, 0, 0, .14); }
.textseite { padding-block: 1rem 3rem; }
.einleitung { margin-bottom: 2rem; }

/* Downloads */
.dl-login { background: var(--papier); padding: 1.5rem; border-radius: 4px; max-width: 32rem; margin-top: 1rem; }
.dl-login h2 { font-size: 1.5rem; }
.dl-login label { display: block; font: 600 .88rem var(--sans); margin-bottom: .35rem; }
.feld-zeile { display: flex; gap: .5rem; flex-wrap: wrap; }
.feld-zeile input { flex: 1 1 12rem; font: 1rem var(--sans); padding: .7rem .8rem; border: 1.5px solid var(--grau); border-radius: 3px; background: #fff; }
.fehler { color: var(--rot); font: 600 .95rem var(--sans); }
.dl-gruppe { margin-top: 2.5rem; }
.dl-gruppe h2 { font-size: 1.6rem; }
.dl-liste { list-style: none; margin: 0; padding: 0; }
.dl-liste li { display: grid; grid-template-columns: 3.4rem 1fr; gap: .4rem .9rem; align-items: center; padding: .9rem 0; border-top: 1px solid var(--linie); }
.dl-liste li .btn { grid-column: 2; justify-self: start; }
@media (min-width: 640px) { .dl-liste li { grid-template-columns: 3.4rem 1fr auto; } .dl-liste li .btn { grid-column: auto; } }
.dl-typ { font: 700 .72rem var(--sans); background: var(--schwarz); color: var(--beige); text-align: center; padding: .45rem 0; border-radius: 2px; letter-spacing: .03em; }
.dl-pdf { background: var(--rot); }
.dl-zip { background: var(--grau); }
.dl-text { display: grid; min-width: 0; }
.dl-text a { font-size: 1.12rem; text-decoration: none; overflow-wrap: anywhere; }
.dl-text a:hover { color: var(--rot); }

/* Links */
.link-gruppe { margin-top: 2.5rem; }
.link-gruppe h2 { font-size: 1.6rem; }
.link-liste { list-style: none; margin: 0; padding: 0; }
.link-liste li { padding: 1rem 0; border-top: 1px solid var(--linie); display: grid; gap: .1rem; }
.link-titel { font-size: 1.25rem; text-decoration: none; justify-self: start; }
.link-titel:hover { color: var(--rot); }
.link-liste p { margin: .2rem 0 0; font: .95rem var(--sans); }

/* Vorstand */
.personen { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 2.5rem 2rem; padding-block: 1rem 3rem; }
.person-bild { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; background: var(--rot-d); }
.person-initialen { display: grid; place-items: center; color: var(--beige); font-size: 3.5rem; background: var(--rot); }
.person-text { padding-top: .9rem; }
.person-text h3 { font-size: 1.4rem; margin-bottom: .1rem; }
.person-funktion { font: 600 .9rem var(--sans); color: var(--rot); }
.person-text a { color: var(--rot); font: .95rem var(--sans); }

/* Zwischenseite */
.weiter { padding-block: clamp(3rem, 10vw, 7rem); }
.weiter-box { max-width: 42rem; }
.weiter h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
.weiter-url { font: .9rem var(--sans); background: var(--papier); padding: .75rem 1rem; border-left: 3px solid var(--rot); overflow-wrap: anywhere; }

/* --------------------------------------------------------------- Fuß */
.fuss { background: var(--schwarz); color: var(--beige); padding-block: 3.5rem 3rem; font: .95rem/1.6 var(--sans); }
.fuss-raster { display: grid; gap: 2rem; }
@media (min-width: 800px) { .fuss-raster { grid-template-columns: 1.4fr 1fr 1fr; } }
.fuss-logo { width: 190px; height: auto; margin-bottom: 1.25rem; }
.fuss-name { font: 1.3rem var(--serif); }
.fuss-adresse { color: rgba(239, 230, 211, .75); }
.fuss-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.fuss a, .fuss .linkknopf { color: var(--beige); text-decoration: none; }
.fuss a:hover, .fuss .linkknopf:hover { text-decoration: underline; text-underline-offset: .2em; }
.fuss .linkknopf { font: inherit; }

/* ------------------------------------------------ Terminleiste (immer da) */
.tl { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; color: var(--beige); view-transition-name: tl; }
.tl-leiste {
  position: relative; z-index: 1; width: 100%; display: flex; align-items: center; gap: .85rem; text-align: left; cursor: pointer;
  background: var(--schwarz); border: 0; border-top: 3px solid var(--rot); color: var(--beige);
  padding: .55rem var(--rand) calc(.55rem + var(--sa-unten)); min-height: var(--tl-h);
}
.tl-datum {
  flex: none; width: 3.1rem; height: 3.1rem; background: var(--rot); border-radius: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font: 600 .68rem/1 var(--sans);
}
.tl-datum b { font: 400 1.45rem/1 var(--serif); margin-bottom: .1rem; }
.tl-datum-leer { background: var(--grau); }
.tl-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.tl-klein { font: 600 .72rem var(--sans); color: #E8606B; }
.tl-titel { font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-meta { font: .82rem var(--sans); color: rgba(239, 230, 211, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-pfeil { flex: none; width: .7rem; height: .7rem; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg) translate(2px, 2px); transition: transform .35s var(--weich); }
.tl.offen .tl-pfeil { transform: rotate(225deg) translate(2px, 2px); }
.tl-panel {
  position: absolute; left: 0; right: 0; bottom: 100%; background: var(--schwarz);
  border-radius: 10px 10px 0 0; max-height: min(72vh, 36rem); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 -1.5rem 2.5rem -1rem rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(1rem); transition: opacity .25s, transform .35s var(--weich);
}
.tl.offen .tl-panel { opacity: 1; transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5); border-top: 3px solid var(--rot); }
.tl-panel-in { padding: 1.4rem var(--rand) 1.25rem; }
.tl-ueber { font: 600 .8rem var(--sans); color: rgba(239, 230, 211, .65); border-bottom: 1px solid var(--linie-hell); padding-bottom: .4rem; margin: 0 0 1rem; }
.tl-ueber ~ .tl-ueber { margin-top: 1.5rem; }
.tl .termin-titel { font-size: 1.35rem; }
.tl .btn-linie { color: var(--beige); }
.tl .btn-linie:hover { background: var(--beige); color: var(--schwarz); }
.tl-liste { list-style: none; margin: 0; padding: 0; }
.tl-liste a { display: grid; grid-template-columns: 6rem 1fr; gap: 0 .75rem; text-decoration: none; padding: .55rem 0; border-bottom: 1px solid var(--linie-hell); }
.tl-liste a:hover .tl-l-titel { color: #F0B8BD; }
.tl-l-datum { font: 600 .82rem/1.6 var(--sans); color: #E8606B; grid-row: span 2; }
.tl-l-titel { font-size: 1.05rem; line-height: 1.3; }
.tl-l-ort { font: .82rem var(--sans); color: rgba(239, 230, 211, .7); }
.tl-aktionen { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .fuss { padding-bottom: 7.5rem; }
  .tl { left: auto; right: 1.25rem; bottom: calc(1.25rem + var(--sa-unten)); width: 24rem; }
  .tl-leiste { border-radius: 5px; border-top: 0; border-left: 4px solid var(--rot); padding: .7rem 1rem; box-shadow: 0 1rem 2rem -1rem rgba(0, 0, 0, .55), 0 0 0 1px rgba(239, 230, 211, .18); }
  .tl-panel { bottom: calc(100% + .5rem); border-radius: 5px; border: 1px solid rgba(239, 230, 211, .18); transform: translateY(.75rem) scale(.98); transform-origin: bottom right; }
  .tl-panel-in { padding: 1.4rem 1.4rem 1.25rem; }
}

/* ------------------------------------------------ Einwilligungs-Hinweis */
.ew {
  position: fixed; z-index: 70; left: .75rem; right: .75rem; bottom: calc(var(--tl-h) + var(--sa-unten) + .75rem);
  background: var(--papier); border: 1.5px solid var(--schwarz); border-radius: 4px; padding: 1.15rem 1.2rem .4rem;
  font: .92rem/1.5 var(--sans); box-shadow: 0 1rem 2.5rem -1rem rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(1rem); transition: opacity .3s, transform .4s var(--weich);
}
.ew.offen { opacity: 1; transform: none; }
.ew-titel { font: 1.2rem var(--serif); margin-bottom: .4rem; }
.ew a { color: var(--rot); }
.ew-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.ew-status { font-size: .85rem; color: var(--grau); border-left: 3px solid var(--rot); padding-left: .6rem; }
.ew-knoepfe .btn { flex: 1 1 auto; }
@media (min-width: 900px) { .ew { left: 1.25rem; right: auto; bottom: 1.25rem; max-width: 30rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .kopf, .tl, .ew, .menue, .fuss nav { display: none !important; }
  body { background: #fff; padding: 0; }
}
