/* ===========================================================
   Ready for Paddy – Grundgerüst (ohne WordPress)
   =========================================================== */

/* Keltische Schrift, lokal gehostet (DSGVO: kein Google-Server).
   Datei: fonts/uncial-antiqua.woff2 – Bezugsquelle siehe Anleitung. */
@font-face {
  font-family: "Uncial Antiqua";
  src: url("../fonts/uncial-antiqua.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Hintergrund wie bisher: grün an den Rändern, hellgrau in der Mitte */
  --hintergrund-bild: linear-gradient(to right,
      rgba(64,147,48,0.75) 0%,
      rgba(217,217,217,0.75) 25%,
      rgba(217,217,217,0.75) 75%,
      rgba(64,147,48,0.75) 100%);
  --hintergrund-farbe: #ffffff;      /* scheint durch die 75 % Deckkraft durch */

  /* Grau der Original-Leiste */
  --leiste-farbe: #adadad;
  --leiste-text: #1e1e1e;            /* dunkle Schrift, auf hellem Grau gut lesbar */
  --leiste-hover: rgba(0, 0, 0, 0.1);
  --akzent: #1f7a3c;                 /* Grün wie im Logo */

  --leiste-hoehe: 56px;
  --leiste-abstand: 14px;            /* Abstand der Leiste vom oberen Rand */
  --radius: 14px;                    /* Rundung Leiste/Boxen */
  --inhalt-breite: 80%;
  --inhalt-max: none;                /* z. B. 1200px, falls auf Riesen-Bildschirmen begrenzt werden soll */

  --text: #222222;
  --box: rgba(255, 255, 255, 0.6);   /* halbtransparente Inhaltsboxen */

  --schrift-keltisch: "Uncial Antiqua", "Luminari", Georgia, serif;
  --schrift-text: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  /* Anker landen unter der schwebenden Leiste, nicht dahinter */
  scroll-padding-top: calc(var(--leiste-abstand) + var(--leiste-hoehe) + 16px);
}

body {
  margin: 0;
  font-family: var(--schrift-text);
  color: var(--text);
  line-height: 1.6;
  background-color: var(--hintergrund-farbe);
  background-image: var(--hintergrund-bild);
  background-attachment: fixed;
  min-height: 100vh;
  padding-top: calc(var(--leiste-abstand) + var(--leiste-hoehe));
}

/* ---------- Menüleiste (schwebend, abgerundet) ---------- */
.hauptmenu {
  position: fixed;
  top: var(--leiste-abstand);
  left: 50%;
  transform: translateX(-50%);
  width: var(--inhalt-breite);
  max-width: var(--inhalt-max);
  height: var(--leiste-hoehe);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 22px;
  background: var(--leiste-farbe);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.menu-logo {
  color: var(--leiste-text);
  text-decoration: none;
  font-family: var(--schrift-keltisch);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hauptmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hauptmenu li a {
  position: relative;
  display: block;
  padding: 8px 16px;
  color: var(--leiste-text);
  text-decoration: none;
  font-family: var(--schrift-keltisch);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  border-radius: 10px;
  transition: background 0.2s;
}

.hauptmenu li a:hover { background: var(--leiste-hover); }

/* aktiver Menüpunkt: grüner Strich unter dem Wort */
.hauptmenu li a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--akzent);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.hauptmenu li a.aktiv::after { transform: scaleX(1); }

/* Burger-Button (nur mobil sichtbar) */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--leiste-text);
}

/* ---------- Inhalt ---------- */
.inhalt {
  width: var(--inhalt-breite);
  max-width: var(--inhalt-max);
  margin: 0 auto;
}

.abschnitt {
  margin: 28px 0;
  padding: 32px;
  background: var(--box);
  border-radius: var(--radius);
  min-height: 40vh;
}
.abschnitt-klein { min-height: 0; }

.abschnitt h2,
.seitenkopf h1 {
  font-family: var(--schrift-keltisch);
  font-weight: 400;
  margin-top: 0;
}
.abschnitt h2 { font-size: 1.9rem; }

/* ---------- Home: Logo + Kurztext ---------- */
.nur-screenreader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.home-logo img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
}

.home-text {
  max-width: 720px;
  margin: 28px auto 0;
  font-size: 1.08rem;
}
.home-text h2 {
  text-align: center;
  color: #1f7a3c;                    /* Grün wie im Logo-Schriftzug */
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.home-text p { margin: 0 0 14px; }

.platzhalter {
  border: 2px dashed rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 48px 16px;
  text-align: center;
  opacity: 0.75;
}

/* ---------- Band ---------- */
.band-gruppenfoto {
  margin: 0 0 28px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.band-gruppenfoto img { display: block; width: 100%; height: auto; }

/* Mitglieder: grüne Karten wie die Album-Kacheln, 6 nebeneinander */
.band-mitglieder {
  display: grid;
  grid-template-columns: repeat(var(--band-anzahl, 6), minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.band-karte {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px 8px 12px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: #00703c;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.band-karte:hover { transform: scale(1.04); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); }
.band-karte:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.band-karte-bild {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}
.band-karte-bild img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.band-karte-name {
  margin-top: 10px;
  font-family: var(--schrift-keltisch);
  font-size: 1.1rem;
  line-height: 1.25;
  word-break: break-word;
}
.band-karte-rolle { margin-top: 2px; font-size: 0.85rem; opacity: 0.85; }

/* Platzhalter, solange kein Foto da ist: einfache Silhouette */
.band-ohne-foto {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.55) 0 17%, transparent 17.5%),
    radial-gradient(ellipse 42% 30% at 50% 88%, rgba(255, 255, 255, 0.55) 0 99%, transparent 100%),
    rgba(0, 0, 0, 0.18);
}

.band-history-knopf { margin: 30px 0 0; text-align: center; }
.band-knopf {
  display: inline-block;
  padding: 10px 28px;
  color: #fff;
  font-family: var(--schrift-keltisch);
  font-size: 1.2rem;
  text-decoration: none;
  background: var(--akzent);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.band-knopf:hover { transform: scale(1.04); filter: brightness(1.1); }

/* Detailansicht (Mitglied / History) */
.band-detail { margin-top: 36px; }
.band-detail + .band-detail { padding-top: 28px; border-top: 1px solid rgba(0, 0, 0, 0.15); }
.band-zurueck {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 14px;
  color: var(--akzent);
  font-weight: bold;
  text-decoration: none;
  border: 1px solid var(--akzent);
  border-radius: 8px;
}
.band-zurueck:hover { color: #fff; background: var(--akzent); }

.band-detail-raster {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 32px;
  align-items: start;
}
.band-detail-foto {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.band-detail-foto img { display: block; width: 100%; height: auto; }
.band-detail-foto .band-ohne-foto { aspect-ratio: 4 / 5; }

.band-detail h3 {
  margin: 0;
  font-family: var(--schrift-keltisch);
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1.2;
  color: var(--akzent);
}
.band-detail-rolle { margin: 4px 0 0; font-weight: bold; opacity: 0.8; }
.band-detail-text p, .band-history-text p { margin: 0 0 14px; }
.band-detail-text h4, .band-history-text h4 { margin: 22px 0 6px; font-size: 1.1rem; }

.band-steckbrief {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 16px 0 20px;
  padding: 12px 16px;
  font-size: 0.95rem;
  background: rgba(31, 122, 60, 0.08);
  border-left: 4px solid var(--akzent);
  border-radius: 6px;
}
.band-steckbrief dt { font-weight: bold; }
.band-steckbrief dd { margin: 0; }
.band-detail-text a, .band-history-text a { color: var(--akzent); font-weight: bold; text-underline-offset: 2px; word-break: break-word; }
.band-detail-text a:hover, .band-history-text a:hover { text-decoration-thickness: 2px; }

.band-history { max-width: 75ch; }
.band-history h3 { margin-bottom: 8px; }
.band-history-text h4:first-child { margin-top: 10px; }

.band-blaettern {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.band-blaettern a { color: var(--akzent); font-weight: bold; text-decoration: none; }
.band-blaettern a:hover { text-decoration: underline; }
.band-nach { margin-left: auto; }
.band-leer { font-style: italic; opacity: 0.8; }

/* Mit JavaScript: immer nur eine Ansicht sichtbar */
.band.band-js .band-detail { display: none; margin-top: 0; padding-top: 0; border-top: 0; }
.band.band-js.zeigt-detail .band-uebersicht { display: none; }
.band.band-js .band-detail.aktiv { display: block; animation: band-ein 0.25s ease; }
@keyframes band-ein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .band-mitglieder { grid-template-columns: repeat(min(var(--band-anzahl, 6), 3), minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .band-detail-raster { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .band-detail-foto { max-width: 420px; }
}
@media (max-width: 640px) {
  .band-mitglieder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .band-karte { padding: 6px 6px 10px; }
  .band-karte-name { font-size: 1rem; margin-top: 8px; }
  .band-gruppenfoto { margin-bottom: 18px; border-radius: 8px; }
  .band-steckbrief { grid-template-columns: 1fr; }
  .band-steckbrief dd { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .band.band-js .band-detail.aktiv { animation: none; }
}

/* ---------- Impressum ---------- */
.impressum { max-width: 75ch; }
.impressum h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.impressum h3:first-child { margin-top: 0; }
.impressum-kontakt { margin: 0; line-height: 1.6; }
.impressum-kontakt a { color: var(--akzent); }
.impressum-recht { font-size: 0.9rem; line-height: 1.55; opacity: 0.85; }
.impressum-recht h4 { font-size: 0.95rem; margin: 16px 0 4px; }
.impressum-recht p { margin: 0; hyphens: auto; }
.impressum-recht p + p { margin-top: 8px; }
.impressum-recht a { color: var(--akzent); }
.impressum-stand { margin-top: 18px !important; font-style: italic; }

/* aufklappbarer Container: Haftungsausschluss + Datenschutz */
.rechtliches { margin-top: 22px; }
.rechtliches summary {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--akzent);
  border-radius: 8px;
  color: var(--akzent);
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}
.rechtliches summary::-webkit-details-marker { display: none; }
.rechtliches summary::after { content: " ▾"; }
.rechtliches summary:hover { background: rgba(31, 122, 60, 0.08); }
.rechtliches[open] summary { background: var(--akzent); color: #fff; }
.rechtliches[open] summary::after { content: " ▴"; }
.rechtliches .impressum-recht { margin-top: 18px; }
.rechtliches h3 { scroll-margin-top: calc(var(--leiste-hoehe) + var(--leiste-abstand) + 16px); }

/* ---------- Fußzeile ---------- */
.fusszeile {
  width: var(--inhalt-breite);
  max-width: var(--inhalt-max);
  margin: 0 auto 28px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  background: var(--leiste-farbe);
  color: var(--leiste-text);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.fusszeile a { color: var(--leiste-text); }

/* ---------- Mobil ---------- */
@media (max-width: 800px) {
  :root {
    --inhalt-breite: calc(100% - 16px);  /* auf dem Handy fast volle Breite */
    --leiste-abstand: 8px;
  }

  .menu-toggle { display: block; }

  .hauptmenu ul {
    display: none;
    position: absolute;
    top: calc(var(--leiste-hoehe) + 6px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    background: var(--leiste-farbe);
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  }
  .hauptmenu.offen ul { display: flex; }
  .hauptmenu li a { padding: 12px 16px; }

  .abschnitt { padding: 20px 16px; margin: 16px 0; }
}

/* ---------- Live: Terminliste ---------- */
.live-leer { font-style: italic; opacity: 0.8; }

.live-monat {
  font-family: var(--schrift-keltisch);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--akzent);
  margin: 26px 0 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--akzent);
}
.live-monat:first-child { margin-top: 0; }

.live-termin {
  display: flex;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.live-datum {
  flex: 0 0 64px;
  align-self: flex-start;
  padding: 8px 0;
  text-align: center;
  color: #fff;
  background: var(--akzent);
  border-radius: 10px;
}
.live-datum .tag-zahl { display: block; font-size: 1.6rem; font-weight: bold; line-height: 1.1; }
.live-datum .wochentag { font-size: 0.85rem; text-transform: uppercase; }

.live-inhalt { flex: 1; min-width: 0; }

.live-meta { display: flex; gap: 10px; align-items: center; font-size: 0.9rem; opacity: 0.8; }

.live-titel {
  margin: 6px 0 2px;
  font-family: var(--schrift-keltisch);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
}
.live-ort { font-weight: bold; }

.live-link {
  display: inline-block;
  margin-top: 2px;
  color: var(--akzent);
  font-weight: bold;
  text-decoration: none;
}
.live-link::after { content: " →"; }
.live-link:hover { text-decoration: underline; }

.live-details { margin-top: 10px; }
.live-details summary {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--akzent);
  border-radius: 8px;
  color: var(--akzent);
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}
.live-details summary::-webkit-details-marker { display: none; }
.live-details summary:hover { background: rgba(31, 122, 60, 0.08); }
.live-details[open] summary { background: var(--akzent); color: #fff; }
.live-details[open] summary::after { content: " ▴"; }
.live-text { margin-top: 12px; }

/* Bildergalerie (Termine) */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.galerie-bild img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.15s;
}
.galerie-bild img:hover { opacity: 0.85; }

/* Großansicht (Termine + Bildergalerie) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 72px;
  background: rgba(10, 12, 10, 0.96);
  cursor: zoom-out;
  user-select: none;
  touch-action: pan-y pinch-zoom;
}
.lightbox[hidden] { display: none; }
.lightbox:fullscreen { padding: 24px 72px; background: #000; }
.lb-bild {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  cursor: default;
}
body.lb-offen { overflow: hidden; }

.lb-nav,
.lb-knopf {
  position: absolute;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lb-nav:hover,
.lb-knopf:hover { background: var(--akzent); }
.lb-nav:focus-visible,
.lb-knopf:focus-visible { outline: 2px solid #a3ffd6; outline-offset: 2px; }
.lb-nav[hidden],
.lb-knopf[hidden] { display: none; }

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  font-size: 2.6rem;
  line-height: 1;
}
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.lb-knopf {
  top: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-knopf svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lb-zu { right: 12px; }
.lb-vollbild { right: 64px; }
.lb-vollbild .vb-aus,
.lb-vollbild.ist-vollbild .vb-an { display: none; }
.lb-vollbild.ist-vollbild .vb-aus { display: block; }

.lb-zaehler {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  pointer-events: none;
}

@media (max-width: 640px) {
  .lightbox { padding: 64px 8px; }
  .lightbox:fullscreen { padding: 56px 8px; }
  .lb-nav { width: 40px; height: 56px; font-size: 2.2rem; background: rgba(0, 0, 0, 0.45); }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
}

/* ---------- Bilder: Albenübersicht + Album ---------- */
.galerie-leer { font-style: italic; opacity: 0.8; }

.galerie-alben {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
}

/* Album-Kachel: grüne Karte, Bild quadratisch, Titel + Untertitel fett in Weiß */
.galerie-album {
  display: flex;
  flex-direction: column;
  padding: 9px 9px 16px;
  color: #fff;
  text-decoration: none;
  background: #00703c;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.galerie-album:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.galerie-album:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

.galerie-album-bild {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.galerie-album-bild img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galerie-album-titel,
.galerie-album-untertitel {
  font-family: var(--schrift-text);
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  word-break: break-word;
}
.galerie-album-untertitel { font-weight: normal; opacity: 0.85; }
/* Titel in der keltischen Schrift wie die Überschriften der Homepage */
.galerie-album-titel {
  margin-top: 14px;
  font-family: var(--schrift-keltisch);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
}

.galerie-zurueck {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  color: var(--akzent);
  font-weight: bold;
  text-decoration: none;
  border: 1px solid var(--akzent);
  border-radius: 8px;
}
.galerie-zurueck:hover { color: #fff; background: var(--akzent); }

.galerie-titel {
  margin: 8px 0 0;
  font-family: var(--schrift-keltisch);
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--akzent);
}
.galerie-alben + .galerie-titel { margin-top: 32px; }
.galerie-untertitel { margin: 2px 0 0; font-size: 0.95rem; font-weight: bold; opacity: 0.75; }
.galerie-anzahl {
  font-family: var(--schrift-text);
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.7;
}

/* Raster im Album: quadratische Thumbnails wie im Plugin */
.galerie.galerie-raster { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.galerie-raster .galerie-bild img {
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s, opacity 0.15s;
}
.galerie-raster .galerie-bild:hover img { transform: scale(1.04); opacity: 1; }
.galerie-bild:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; border-radius: 8px; }

#galerie-bereich.laedt { opacity: 0.5; transition: opacity 0.15s; }

@media (max-width: 640px) {
  .galerie-alben { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .galerie-album { padding: 6px 6px 10px; border-radius: 10px; }
  .galerie-album-titel { font-size: 0.95rem; }
  .galerie-album-untertitel { font-size: 0.8rem; }
  .galerie-album-titel { margin-top: 8px; }
  .galerie.galerie-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
}

@media (max-width: 640px) {
  .live-termin { gap: 12px; padding: 12px; }
  .live-datum { flex-basis: 52px; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
}

.live-diagnose {
  margin-bottom: 16px;
  padding: 12px 16px;
  font: 0.85rem/1.5 monospace;
  background: #fff4c2;
  border: 1px solid #e0c34a;
  border-radius: 8px;
}

/* ---------- Live: Filtermenü ---------- */
.live-filter { margin-bottom: 20px; }

.live-suche { display: flex; gap: 8px; max-width: 460px; margin-bottom: 14px; }
.live-suche input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  font: inherit;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
}
.live-suche input:focus { outline: 2px solid var(--akzent); outline-offset: -1px; }
.live-suche button {
  padding: 8px 18px;
  font: inherit;
  font-weight: bold;
  color: #fff;
  background: var(--akzent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.live-suche button:hover { filter: brightness(0.9); }

.live-filter-zeile { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; }
.live-filter-label {
  flex: 0 0 84px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.live-pillen { display: flex; flex-wrap: wrap; gap: 8px; }
.live-pillen a {
  padding: 4px 14px;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}
.live-pillen a:hover { border-color: var(--akzent); }
.live-pillen a.aktiv { color: #fff; background: var(--akzent); border-color: var(--akzent); }

.live-segment {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--akzent);
  border-radius: 8px;
}
.live-segment a {
  padding: 4px 16px;
  font-size: 0.9rem;
  color: var(--akzent);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
  border-left: 1px solid var(--akzent);
}
.live-segment a:first-child { border-left: 0; }
.live-segment a.aktiv { color: #fff; background: var(--akzent); }

.live-such-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  background: rgba(31, 122, 60, 0.1);
  border-radius: 8px;
}
.live-such-info a { color: var(--akzent); font-size: 0.9rem; }

/* vergangene Termine */
.live-termin.vergangen .live-datum { background: #8a8a8a; }
.live-termin.vergangen { opacity: 0.85; }

#live-bereich.laedt { opacity: 0.5; transition: opacity 0.15s; }

@media (max-width: 640px) {
  .live-filter-label { flex-basis: 100%; }
  .live-suche { max-width: none; }
}

/* ---------- Musik: MP3-Player (wie Plugin "Ordner MP3-Player, Irish Green Edition") ---------- */
.player-leer { font-style: italic; opacity: 0.8; }

.player-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 450px));
  gap: 24px;
}

.player {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  color: #fff;
  background: #00703c;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.player-titel {
  margin: 0 0 12px;
  font-family: var(--schrift-keltisch);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.3;
}
.player-untertitel { margin: -8px 0 12px; font-size: 0.9rem; opacity: 0.85; }

.player-audio {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  border-radius: 8px;
}

.player-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 250px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.player-song {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.player-song:hover { background: rgba(0, 0, 0, 0.15); }
.player-song:focus-visible { outline: 2px solid #a3ffd6; outline-offset: -2px; }
.player-song.aktiv { color: #a3ffd6; font-weight: bold; }

.player-nr {
  flex: 0 0 22px;
  text-align: right;
  font-size: 13px;
  font-weight: normal;
  opacity: 0.6;
}
.player-name { flex: 1; min-width: 0; word-break: break-word; }

/* kleiner Equalizer statt der Nummer, solange der aktive Song läuft */
.player.spielt .player-song.aktiv .player-nr {
  font-size: 0;
  height: 12px;
  align-self: center;
  background:
    linear-gradient(currentColor, currentColor) right 10px bottom / 3px 40% no-repeat,
    linear-gradient(currentColor, currentColor) right 5px bottom / 3px 100% no-repeat,
    linear-gradient(currentColor, currentColor) right 0 bottom / 3px 60% no-repeat;
  animation: player-eq 0.9s ease-in-out infinite alternate;
  opacity: 1;
}
@keyframes player-eq {
  0%   { background-size: 3px 40%, 3px 100%, 3px 60%; }
  50%  { background-size: 3px 100%, 3px 45%, 3px 90%; }
  100% { background-size: 3px 60%, 3px 75%, 3px 35%; }
}
@media (prefers-reduced-motion: reduce) {
  .player.spielt .player-song.aktiv .player-nr { animation: none; }
}

@media (max-width: 640px) {
  .player-raster { grid-template-columns: 1fr; gap: 16px; }
  .player { padding: 16px; }
}

/* ---------- Video: YouTube-Playlist als Vorschaubild-Raster (wie Plugin "YT Playlist Lightbox") ---------- */
.video-leer { font-style: italic; opacity: 0.8; }
.video-mehr { margin: 30px 0 0; text-align: center; }
.video-mehr-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  background: var(--akzent);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.video-mehr-link:hover { transform: scale(1.04); filter: brightness(1.1); }
.video-mehr-link:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
@media (max-width: 640px) {
  .video-mehr { margin-top: 22px; }
  .video-mehr-link { padding: 10px 16px; font-size: 0.92rem; line-height: 1.3; text-align: left; }
}
/* kleines Play-Symbol (weißes Rechteck mit grünem Dreieck) */
.video-mehr-symbol {
  position: relative;
  flex: none;
  width: 26px;
  height: 18px;
  background: #fff;
  border-radius: 5px;
}
.video-mehr-symbol::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--akzent);
  transform: translate(-35%, -50%);
}

.video-ueberschrift {
  margin: 0 0 14px;
  font-family: var(--schrift-keltisch);
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--akzent);
}
.video-raster + .video-ueberschrift { margin-top: 32px; }

.video-raster {
  display: grid;
  grid-template-columns: repeat(var(--video-spalten, 4), minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1100px) { .video-raster { grid-template-columns: repeat(min(var(--video-spalten, 4), 3), minmax(0, 1fr)); } }
@media (max-width: 800px)  { .video-raster { grid-template-columns: repeat(min(var(--video-spalten, 4), 2), minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 420px)  { .video-raster { grid-template-columns: minmax(0, 1fr); } }

.video-item {
  display: block;
  color: inherit;
  text-decoration: none;
}
.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  transition: background 0.2s ease, transform 0.2s ease;
}
.video-play::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 17px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.video-item:hover .video-thumb img,
.video-item:focus-visible .video-thumb img { transform: scale(1.04); opacity: 0.9; }
.video-item:hover .video-play,
.video-item:focus-visible .video-play { background: var(--akzent); transform: scale(1.08); }
.video-item:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 8px; }

.video-titel {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Großansicht für Videos – gleiche Optik wie die Bilder-Lightbox */
.video-lightbox { cursor: default; }
.vl-inhalt {
  width: min(100%, calc((100vh - 170px) * 16 / 9));
  max-width: 1400px;
}
.vl-rahmen iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 4px;
  background: #000;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}
.vl-titel {
  margin: 12px 0 0;
  color: #fff;
  text-align: center;
  font-size: 1rem;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .video-lightbox { padding: 64px 8px; }
  .vl-inhalt { width: 100%; }
}
@media (max-width: 900px) {
  /* Pfeile oben, damit sie nicht über den YouTube-Bedienelementen liegen */
  .video-lightbox .lb-nav { top: 12px; transform: none; width: 44px; height: 44px; font-size: 2rem; }
  .video-lightbox .lb-prev { left: 12px; }
  .video-lightbox .lb-next { left: 64px; right: auto; }
}
