.lte-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin: 20px 0;
  padding: 16px 18px;
  background: #f6f7f8;
  border-radius: 12px;
}
.lte-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #444;
}
.lte-filter-field span {
  font-weight: 600;
}
.lte-filter-field select,
.lte-filter-field input[type="search"],
.lte-filter-field input[type="number"] {
  padding: 8px 10px;
  border: 1px solid #d5d8dc;
  border-radius: 8px;
  font-size: 14px;
  min-width: 180px;
}
/* Jahr wird jetzt frei eingegeben statt aus einem Dropdown gewählt - das
   Feld darf entsprechend schmal bleiben (nur 4 Ziffern), damit mehr Platz
   fürs breitere Titel-Suchfeld übrig bleibt. */
.lte-filter-field--year input[type="number"] {
  min-width: 100px;
  max-width: 120px;
}
.lte-filter-field--search {
  flex: 1 1 260px;
}
.lte-filter-field--search input[type="search"] {
  width: 100%;
  min-width: 220px;
}
.lte-filter-submit {
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  background: #1e293b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.lte-filter-submit:hover {
  background: #0f172a;
}
.lte-filter-reset {
  font-size: 13px;
  color: var(--lte-muted-color, #595959);
  text-decoration: underline;
  align-self: center;
}
/* Filter lösen per JavaScript automatisch aus (siehe gallery-filters.js) -
   der Button wird dann überflüssig und ausgeblendet. Ohne JavaScript bleibt
   er sichtbar (progressive enhancement, klassischer Formular-Reload). */
.lte-gallery-wrap.lte-js-auto .lte-filter-submit {
  display: none;
}
/* Kategorie-Filter als Buttons statt Auswahlmenü
   (kategorie_darstellung="buttons", Standard "auswahl"/Auswahlmenü, siehe
   includes/shortcode.php) - echte Links (?lte_kategorie=<slug>, "Alle
   Kategorien" ohne diesen Parameter), funktionieren auch ohne JavaScript.
   Zielgröße mind. 44x44px, Abstand mind. 8px, Umbruch auf mehrere Zeilen
   statt seitlichem Scrollen (auch bei 200% Zoom), Schrift 16px. Farben nur
   über CSS-Variablen mit geprüften Rückfallwerten (WCAG 2.2 AA). */
.lte-category-filter-buttons {
  /* Kein Ausgleich des .lte-filters-Innenmaßes (mehr) - die Buttons sollen
     auf einer Linie mit den Feldern "Jahr"/"Titel durchsuchen" im selben
     Bereich beginnen, also am Innenabstand des Filterbereichs, nicht an
     dessen Außenkante (siehe 0.42.3; 0.42.2 hatte das noch bündig mit der
     Kachel-Übersicht darunter ausgerichtet). */
  width: auto;
  margin: 0 0 4px;
}
/* Höhere Spezifität (zwei Klassenebenen, wie beim Margin-Fix in 0.35.0) als
   der Standard-Einzug von Listen im Theme (padding-left, oft ca. 34px) -
   sonst erbt die Liste diesen Einzug und beginnt nicht an der linken Kante. */
.lte-filters .lte-category-filter-buttons ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lte-filters .lte-category-filter-buttons li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lte-category-filter-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  border: 2px solid var(--lte-muted-color, #595959);
  border-radius: var(--lte-radius, 12px);
  font-size: 16px;
  line-height: 1.3;
  color: #1a1a1a;
  background: #fff;
  text-decoration: none;
}
/* Aktive Kategorie: nicht nur über Farbe erkennbar, sondern auch über eine
   deutlich stärkere Umrandung und Fettschrift (WCAG 2.2, "Use of Color"). */
.lte-category-filter-buttons a.is-active,
.lte-category-filter-buttons a[aria-current="true"] {
  border-width: 3px;
  border-color: var(--lte-accent-color, #0a6f66);
  color: var(--lte-accent-color, #0a6f66);
  font-weight: 700;
}
.lte-category-filter-buttons a:focus-visible {
  outline: 3px solid var(--lte-accent-color, #0a6f66);
  outline-offset: 2px;
}
/* Statusmeldung beim Nachladen (siehe assets/gallery-filters.js) - für
   Screenreader vorhanden, aber nicht sichtbar (Standard-Technik für
   visuell verstecktes, aber zugängliches Element - kein display:none,
   das würde auch Screenreader ausschließen). */
.lte-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .lte-category-filter-buttons a {
    flex: 1 1 auto;
  }
}
.lte-gallery-results {
  transition: opacity 0.15s ease;
}
.lte-gallery-results.lte-loading {
  opacity: 0.45;
}
@media (max-width: 560px) {
  .lte-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .lte-filter-field select,
  .lte-filter-field input[type="search"],
  .lte-filter-field input[type="number"],
  .lte-filter-field--year input[type="number"] {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

.lte-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin: 30px 0 14px;
}
.lte-gallery--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.lte-gallery--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lte-gallery--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .lte-gallery--cols-4,
  .lte-gallery--cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .lte-gallery--cols-4,
  .lte-gallery--cols-3,
  .lte-gallery--cols-2 {
    grid-template-columns: 1fr;
  }
}
.lte-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 10px 24px -16px rgba(0,0,0,0.2);
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.lte-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 16px 30px -16px rgba(0,0,0,0.28);
  color: inherit;
}
.lte-card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #f1f2f4;
}
/* Statt Hintergrundbild jetzt ein echtes <img>: so greifen die
   WordPress-Bildgrößen (srcset/sizes), Lazy Loading und der Alt-Text. */
.lte-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lte-ig-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  letter-spacing: 0.03em;
}
.lte-card-body {
  padding: 16px 18px;
}
/* Optionales Datum über dem Titel ("Datum in der Kachel anzeigen", siehe
   includes/admin-settings.php) - zwei Klassenebenen wie beim Margin-Fix
   in 0.35.0, damit Theme-Stile (z. B. Kadence) den Abstand nicht
   überschreiben. */
.lte-card-body .lte-card-date {
  display: block;
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--lte-muted-color, #595959);
}
/* Wählbare Überschriftenebene bei [sim-gallery] (ueberschrift="h2"/"h3"/
   "h4", Standard h3, siehe includes/shortcode.php) - Stil hängt an der
   Klasse .lte-card-title, nicht am Elementnamen, damit h2/h4 die Kachel
   nicht größer/kleiner machen als h3. .lte-card-body h3 bleibt zusätzlich
   bestehen für die Ankündigungs-Kacheln (includes/announcements.php),
   die weiterhin immer ein festes <h3> ohne diese Klasse ausgeben. Zwei
   Klassenebenen wie beim Margin-Fix in 0.35.0, damit Theme-Stile für
   h2/h4 (z. B. Kadence) nichts überschreiben. */
.lte-card-body h3,
.lte-card-body .lte-card-title {
  display: block;
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.lte-card-body p {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}
/* Ankündigungen ([sim-announcements]): die Kachel selbst ist kein Link
   (anders als bei der Event-Galerie/dem Blog-Teaser) - der optionale
   Button verlinkt gezielt, ohne den ganzen Text anklickbar zu machen. */
.lte-card--static {
  cursor: default;
}
.lte-card--static:hover {
  transform: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 10px 24px -16px rgba(0,0,0,0.2);
}
.lte-card-text {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}
.lte-card-text p {
  margin: 0 0 8px;
}
.lte-card-text p:last-child {
  margin-bottom: 0;
}
.lte-card-cta {
  display: inline-flex;
  align-items: center;
  /* Mindestens ~44px Höhe (Touch-Target-Empfehlung). */
  min-height: 44px;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #0d2b36;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.lte-card-cta:hover {
  background: #16414f;
  color: #fff;
}
/* Ankündigungen: Flexbox mit justify-content:center statt starrem Grid, damit
   weniger Karten als die Spaltenzahl zentriert stehen (nicht gestreckt
   werden) - z. B. eine einzelne Ankündigung in einem 3-Spalten-Raster. */
.lte-announcements.lte-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.lte-announcements .lte-card {
  flex: 0 1 300px;
  max-width: 340px;
}
/* Ankündigungsbilder sind oft grafisch gestaltete Sujets mit eigenem Text
   (z. B. eine Termin-Grafik) statt Fotos - eine feste 200px-Kachelhöhe mit
   object-fit:cover (wie bei der Foto-Galerie) würde solche Bilder oben/
   unten beschneiden. Die Bildhöhe richtet sich hier deshalb nach dem Bild
   selbst, ohne Beschnitt. */
.lte-announcements .lte-card-image {
  height: auto;
}
.lte-announcements .lte-card-image img {
  height: auto;
  object-fit: contain;
}
.lte-announcements.lte-gallery--cols-2 .lte-card {
  flex-basis: calc(50% - 11px);
  max-width: calc(50% - 11px);
}
.lte-announcements.lte-gallery--cols-3 .lte-card {
  flex-basis: calc(33.333% - 15px);
  max-width: calc(33.333% - 15px);
}
.lte-announcements.lte-gallery--cols-4 .lte-card {
  flex-basis: calc(25% - 17px);
  max-width: calc(25% - 17px);
}
@media (max-width: 900px) {
  .lte-announcements.lte-gallery--cols-3 .lte-card,
  .lte-announcements.lte-gallery--cols-4 .lte-card {
    flex-basis: calc(50% - 11px);
    max-width: calc(50% - 11px);
  }
}
@media (max-width: 560px) {
  .lte-announcements .lte-card,
  .lte-announcements.lte-gallery--cols-2 .lte-card,
  .lte-announcements.lte-gallery--cols-3 .lte-card,
  .lte-announcements.lte-gallery--cols-4 .lte-card {
    flex-basis: 100%;
    max-width: 100%;
  }
}
/* .lte-empty UND .lte-termine-empty treten im Markup immer gemeinsam auf
   (siehe lte_termine_shortcode()), die Regel gilt also für beide - helle
   Grautöne (z. B. das vorherige #777, Kontrast 4,48:1) unterschreiten bei
   kleiner Schrift WCAG 1.4.3 (mind. 4,5:1); #595959 erreicht auf weißem
   Hintergrund 7,0:1. Bewusst über eine feste Textfarbe statt opacity:
   Transparenz würde den Hintergrund durchscheinen lassen und den Kontrast
   je nach Seite unvorhersehbar weiter verschlechtern. */
.lte-empty, .lte-termine-empty {
  color: var(--lte-muted-color, #595959);
}

/* Termine ([sim-termine]): saubere Liste statt Kachel-Optik, an den
   Grundstil der anderen Module angeglichen (gleiche Textfarben wie
   .lte-card-body). */
.lte-termine-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.lte-termine-item {
  padding: 0.7em 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.lte-termine-item:last-child {
  border-bottom: none;
}
.lte-termine-date {
  display: inline-block;
  min-width: 12em;
  color: var(--lte-muted-color, #595959);
}
.lte-termine-title {
  color: inherit;
}
.lte-termine-ort {
  color: var(--lte-muted-color, #595959);
}
/* Kategorie-Etikett - wie .lte-category-chip auf der Event-Detailseite,
   damit beide Module optisch zusammenpassen (8,86:1 Kontrast, unverändert
   übernommen). Keine beliebige Markenfarbe: neutrale CSS-Variablen mit
   festen, geprüften Rückfallwerten. */
.lte-termine-kat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lte-chip-background, #eef2f4);
  color: var(--lte-chip-color, #33454f);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
}
.lte-termine-text {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: inherit;
  white-space: pre-line;
}
@media (max-width: 560px) {
  .lte-termine-date {
    display: block;
    min-width: 0;
    margin-bottom: 2px;
  }
}

/* Kategorie-Navigation ([sim-termine filter="ja"]) - normale Links mit
   Query-Parameter, kein JavaScript nötig. Die aktive Kategorie ist sowohl
   über aria-current="true" (siehe lte_termine_render_filter_nav()) als
   auch optisch über Unterstreichung + Fettschrift erkennbar, nicht nur
   über Farbe. */
.lte-termine-filter ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 16px;
  padding: 0;
}
.lte-termine-filter a {
  color: var(--lte-muted-color, #595959);
  text-decoration: underline;
  font-size: 14px;
}
.lte-termine-filter a[aria-current="true"] {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 2px;
}
.lte-termine-filter a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Kalender-Export: "Zum Kalender hinzufügen"-Link je Termin sowie der
   Abo-Block darunter ([sim-termine abo="ja"]) - dieselbe Akzentfarbe wie
   "← Zurück zu den Events" (6,0:1 Kontrast auf Weiß), über eine
   CSS-Variable mit festem, geprüftem Rückfallwert statt einer beliebigen
   Markenfarbe. */
.lte-termine-ics {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--lte-accent-color, #0a6f66);
  text-decoration: underline;
}
.lte-termine-abo {
  margin: 16px 0 0;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.lte-termine-abo a {
  color: var(--lte-accent-color, #0a6f66);
  text-decoration: underline;
}
.lte-termine-ics:focus-visible,
.lte-termine-abo a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Monatsüberschrift ([sim-termine monate="ja"]) - Heading-Element/-Ebene
   kommt aus dem "ueberschrift"-Attribut (siehe
   lte_termine_validate_heading_level()), hier nur die Optik. */
.lte-termine-monat {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 700;
}
.lte-termine-monat:first-child {
  margin-top: 0;
}

/* Kartenansicht ([sim-termine design="karten"]): dieselbe <ul
   class="lte-termine-list">/<li class="lte-termine-item"> wie bisher, nur
   mit zusätzlicher Klasse "lte-termine-karte" - die Standardansicht bleibt
   davon unberührt. Trennung zwischen Karten läuft über Rahmen + Abstand,
   NICHT nur über die abwechselnde Hintergrundfarbe (die bleibt rein
   dekorativ) - Rahmen/Abstand sind immer sichtbar, unabhängig von Zebra. */
.lte-termine-karte {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 20px;
  padding: var(--lte-card-padding, 14px 16px);
  margin-bottom: 14px;
  border: 1px solid var(--lte-border-color, #d5d8dc);
  border-left: 4px solid var(--lte-accent-color, #0a6f66);
  border-radius: var(--lte-radius, 12px);
  background: var(--lte-card-bg, #fff);
}
.lte-termine-karte:last-child {
  margin-bottom: 0;
}
.lte-termine-karte:nth-of-type(even) {
  background: var(--lte-card-alt-bg, #f6f7f8);
}
.lte-termine-karte-datum {
  flex: 0 0 150px;
}
.lte-termine-karte-datum .lte-termine-date,
.lte-termine-karte-datum time {
  display: block;
  min-width: 0;
  color: var(--lte-muted-color, #595959);
}
/* Mehrtägiger Termin: beide <time>-Elemente + Gedankenstrich stehen
   gestapelt übereinander statt in einer Zeile - so bricht der Bereich nie
   mitten in einem Datum um, und der Gedankenstrich landet nie allein auf
   einer Zeile, sondern bleibt gezielt zwischen den beiden Daten. */
.lte-termine-when {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lte-termine-karte-inhalt {
  flex: 1 1 260px;
  min-width: 0;
}
.lte-termine-karte-inhalt .lte-termine-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
}
.lte-termine-karte-inhalt .lte-termine-ort {
  display: inline-block;
  margin-top: 2px;
  color: var(--lte-muted-color, #595959);
}
.lte-termine-karte-inhalt .lte-termine-kat {
  margin-top: 6px;
}
/* Volles margin-Shorthand statt nur margin-top, über drei Klassenebenen
   (.lte-termine-karte .lte-termine-karte-inhalt .lte-termine-text):
   Theme-Regeln wie Kadence' .single-content p { margin-bottom: ... }
   (eine Klasse + Element, also niedrigere Spezifität als hier) setzen sonst
   nur margin-bottom durch, weil die Kaskade jede Margin-Seite einzeln pro
   Eigenschaft auflöst - margin-top allein reicht nicht, um margin-bottom
   mitzubestimmen. */
.lte-termine-karte .lte-termine-karte-inhalt .lte-termine-text {
  margin: 6px 0 0;
}
.lte-termine-karte .lte-termine-karte-inhalt .lte-termine-ics--karte {
  display: block;
  /* Gleicher Abstand wie zwischen den übrigen Inhaltselementen (Kategorie,
     Beschreibung) - vorher 10px, ein unbegründeter Ausreißer gegenüber den
     restlichen 6px. Ebenfalls volles Shorthand + dieselbe höhere
     Spezifität wie bei .lte-termine-text, aus denselben Gründen. */
  margin: 6px 0 0;
}
@media (max-width: 560px) {
  .lte-termine-karte {
    flex-direction: column;
  }
  /* flex-basis greift in flex-direction:column als HÖHEN-Vorgabe statt
     einer Breite - die festen 150px/260px aus der zweispaltigen
     Desktop-Ansicht hätten die einspaltige Karte sonst künstlich auf
     mindestens diese Höhe aufgeblasen (der live beobachtete Leerraum am
     Kartenende). Beide Spalten bekommen ihre Höhe stattdessen einfach aus
     ihrem eigenen Inhalt. */
  .lte-termine-karte-datum,
  .lte-termine-karte-inhalt {
    flex: 0 1 auto;
  }
}

/* Seitennavigation der Übersicht */
.lte-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 26px 0 10px;
}
.lte-pagination .page-numbers {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid #d5d8dc;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  text-decoration: none;
  line-height: 1.2;
}
.lte-pagination a.page-numbers:hover {
  border-color: #1e293b;
}
.lte-pagination .page-numbers.current {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
  font-weight: 600;
}
.lte-pagination .page-numbers.dots {
  border: none;
  padding: 7px 4px;
}
.lte-pagination-info {
  font-size: 13px;
  color: var(--lte-muted-color, #595959);
  margin-left: auto;
}
@media (max-width: 560px) {
  .lte-pagination-info {
    margin-left: 0;
    width: 100%;
  }
}

/* Detailseite eines einzelnen Events */
.lte-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 6% 90px;
}
/* Vorher #0f9c92 (Kontrast 3,39:1 auf Weiß, unterschreitet WCAG 1.4.3) -
   --lte-accent-color ist derselbe Farbton, nur abgedunkelt (6,04:1). */
.lte-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lte-accent-color, #0a6f66);
  text-decoration: none;
  margin-bottom: 18px;
}
.lte-detail-back:hover { color: #0d2b36; }
.lte-detail-back--bottom {
  margin-top: 30px;
  margin-bottom: 0;
}
.lte-hidden-notice {
  background: #fff7e6;
  border-left: 4px solid #e8b84b;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #6b4e00;
  margin-bottom: 22px;
}
.lte-detail-hero {
  width: 100%;
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 26px;
  position: relative;
  background: #f1f2f4;
}
.lte-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Kopfbild als eigener Button (öffnet die Lightbox, siehe
   includes/single-event.php) statt eines reinen Bildes - per Tastatur
   erreichbar, Button-Grundstile zurückgesetzt, damit es optisch wie
   bisher nur ein Foto bleibt. */
.lte-detail-hero-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.lte-detail-hero-trigger:focus-visible {
  outline: 3px solid var(--lte-accent-color, #0a6f66);
  outline-offset: 2px;
}
/* Vorher #0f9c92 (Kontrast 3,39:1 auf Weiß, unterschreitet WCAG 1.4.3) -
   --lte-accent-color ist derselbe Farbton, nur abgedunkelt (6,04:1). */
.lte-detail-date {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--lte-accent-color, #0a6f66);
  margin-bottom: 6px;
}
.lte-detail h1 {
  font-size: 32px;
  margin: 0 0 20px;
  color: #0d2b36;
}
.lte-detail-text {
  font-size: 16px;
  line-height: 1.7;
  color: #3c4a58;
  white-space: pre-line;
  margin-bottom: 36px;
}
/* Enthält die Langbeschreibung HTML, übernehmen dessen Absätze die
   Zeilenumbrüche - pre-line würde dann doppelte Abstände erzeugen. */
.lte-detail-text--html {
  white-space: normal;
}
.lte-detail-gallery {
  --lte-cols: 4;
  --lte-row-height: 220px;
}
.lte-gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #f1f2f4;
}
.lte-gallery-item img {
  display: block;
  cursor: zoom-in;
  transition: opacity .15s ease, transform .3s ease;
}
.lte-gallery-item:hover img { opacity: .9; }

/* Video-Kacheln: Poster-Bild wie ein Foto, plus Play-Symbol zur
   Erkennung - Klick öffnet das Video in der Lightbox statt es nur zu
   vergrößern (siehe Lightbox-Skript). */
.lte-gallery-video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding-left: 3px;
  pointer-events: none;
}

/* Bildunterschrift: liegt als Streifen über dem unteren Bildrand und
   erscheint beim Überfahren; in der Lightbox steht sie immer. */
.lte-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 12px 9px;
  font-size: 13px;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.lte-gallery-item:hover .lte-gallery-caption,
.lte-gallery-item:focus-within .lte-gallery-caption { opacity: 1; }
@media (hover: none) {
  /* Touchgeräte kennen kein Hover - dort dauerhaft einblenden. */
  .lte-gallery-caption { opacity: 1; }
}

/* --- Layout 1: Raster (gleich große Kacheln, zugeschnitten) --- */
.lte-layout-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.lte-layout-raster .lte-gallery-item { height: 150px; }
.lte-layout-raster .lte-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Layout 2: Masonry (Spalten, Originalseitenverhältnis) --- */
.lte-layout-masonry {
  column-count: var(--lte-cols);
  column-gap: 12px;
}
.lte-layout-masonry .lte-gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  display: inline-block;
  width: 100%;
}
.lte-layout-masonry .lte-gallery-item img {
  width: 100%;
  height: auto;
}

/* --- Layout 3: Justified (Zeilen gleicher Höhe, per JS berechnet) --- */
.lte-layout-justified {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lte-layout-justified .lte-gallery-item {
  /* Vor der JS-Berechnung ein brauchbarer Fallback über das
     Seitenverhältnis, damit nichts springt. */
  height: var(--lte-row-height);
  width: calc(var(--lte-ratio) * var(--lte-row-height));
  flex: 0 0 auto;
}
.lte-layout-justified .lte-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Layout 4: Mosaik (großes Leitbild + kleine Kacheln) --- */
.lte-layout-mosaik {
  display: grid;
  grid-template-columns: repeat(var(--lte-cols), minmax(0, 1fr));
  grid-auto-rows: calc(var(--lte-row-height) / 2);
  grid-auto-flow: dense;
  gap: 12px;
}
.lte-layout-mosaik .lte-gallery-item {
  grid-column: span 1;
  grid-row: span 2;
}
/* Erstes Bild und danach jedes siebte als großes Leitbild über 2x2 Felder -
   daraus entsteht das gemischte Mosaik statt einer gleichförmigen Reihe. */
.lte-layout-mosaik .lte-gallery-item:nth-child(7n+1) {
  grid-column: span 2;
  grid-row: span 4;
}
.lte-layout-mosaik .lte-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .lte-layout-masonry { column-count: 2; }
  .lte-layout-mosaik { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .lte-layout-masonry { column-count: 1; }
  .lte-layout-mosaik {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 90px;
  }
  .lte-layout-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lte-layout-raster .lte-gallery-item { height: 120px; }
}

/* Optionaler Foto-Hinweis unter der Galerie der Event-Detailseite
   (standardmäßig aus, siehe includes/admin-settings.php) - Selektor mit
   zwei Klassenebenen (wie beim Margin-Fix in 0.35.0), damit z. B. Kadence'
   .single-content p { margin-bottom: … } den Abstand nicht überschreibt. */
.lte-detail .lte-foto-hinweis {
  margin: var(--lte-foto-hinweis-spacing, 16px) 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--lte-muted-color, #595959);
}
.lte-foto-hinweis a {
  color: var(--lte-accent-color, #0a6f66);
  text-decoration: underline;
}
.lte-foto-hinweis a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Einfache Lightbox für die Galeriebilder */
.lte-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  /* Oben Platz für den Toolbar (Schließen/Vollbild, siehe
     .lte-lightbox-toolbar), unten Platz für Bildunterschrift + Zähler
     (.lte-lightbox-caption/-counter) - sonst reicht .lte-lightbox-media
     bei Hochformatfotos bis in deren Bereich hinein und überlappt sie
     (live beobachteter Bug). */
  padding: 64px 30px;
}
/* Im Vollbild (Fullscreen-API) füllt die Lightbox den ganzen Bildschirm -
   der Browser liefert hier keine Scrollbars/Ränder an den Seiten mehr,
   oben/unten bleibt trotzdem derselbe Platz für Toolbar bzw.
   Bildunterschrift/Zähler reserviert. */
.lte-lightbox:fullscreen,
.lte-lightbox:-webkit-full-screen {
  padding: 64px 0;
}
.lte-lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  touch-action: pan-y;
  cursor: grab;
  will-change: transform;
}
.lte-lightbox-figure:active { cursor: grabbing; }
.lte-lightbox-media {
  max-width: 100%;
  max-height: calc(100vh - 168px);
  border-radius: 10px;
  object-fit: contain;
}
/* 100dvh (dynamic viewport height) statt 100vh, wo verfügbar - auf dem
   Handy ändert sich 100vh nicht, wenn die Adressleiste ein-/ausblendet,
   100dvh dagegen schon. Ohne @supports würden ältere Browser die ganze
   Regel verwerfen, nicht nur diese eine Eigenschaft. */
@supports (height: 100dvh) {
  .lte-lightbox-media {
    max-height: calc(100dvh - 168px);
  }
}
.lte-lightbox-caption {
  color: #e7eef1;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  max-width: 760px;
}
.lte-lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  letter-spacing: .04em;
}
/* Knöpfe der Lightbox (Schließen, Vollbild, Vorheriges/Nächstes Bild):
   das aktive Theme gibt <button>-Elementen oft eigene Innenabstände,
   Mindestbreiten und Schriftgrößen (z. B. Kadence) - ohne Zurücksetzen
   werden die Lightbox-Knöpfe dadurch unterschiedlich groß und können sich
   überlappen (siehe Bug-Report). "all: unset" kappt jeden Theme-Einfluss,
   das gewünschte Aussehen wird direkt danach wieder gesetzt. !important
   stellt sicher, dass auch spezifischere Theme-Selektoren nicht mehr
   durchschlagen - die Regel gilt ausschließlich innerhalb von
   .lte-lightbox, andere Knöpfe auf der Seite sind nicht betroffen. */
.lte-lightbox button {
  all: unset !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
.lte-lightbox button:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 2px !important;
}
/* Höhere Spezifität (Element + 2 Klassen) als ".lte-lightbox button" nötig,
   damit "position"/"top"/"transform" (auch die werden von "all: unset"
   oben auf "initial" zurückgesetzt) und die größere Schrift der Pfeil-
   Symbole zuverlässig überschreiben - die Klickfläche selbst bleibt bei
   44x44px, nur Position und Zeichengröße unterscheiden sich. */
.lte-lightbox button.lte-lightbox-prev,
.lte-lightbox button.lte-lightbox-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 28px !important;
}
.lte-lightbox button.lte-lightbox-prev { left: 10px !important; }
.lte-lightbox button.lte-lightbox-next { right: 10px !important; }

/* Schließen- und Vollbild-Knopf stehen in einem gemeinsamen Container statt
   einzeln mit "right:" positioniert zu sein - so können sie unabhängig von
   ihrer tatsächlichen Breite nie übereinanderliegen. Die Buttons selbst
   brauchen hier kein eigenes "position", sie folgen dem Flex-Container. */
.lte-lightbox-toolbar {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 1;
}

@media (max-width: 640px) {
  .lte-detail-hero { height: 220px; }
  .lte-detail h1 { font-size: 24px; }
}

/* Kategorie-Chips auf der Detailseite */
.lte-detail-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.lte-category-chip {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: #eef2f4;
  color: #33454f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* ZIP-Download-Button auf der Detailseite */
.lte-zip-download {
  margin: 0 0 20px;
}
.lte-zip-download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #eef2f4;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.lte-zip-download-link:hover {
  background: #dde3e6;
  color: #1e293b;
}
.lte-zip-download-link::before {
  content: "⬇";
}

/* Video-Badge auf den Übersichts-Kacheln (unten links, damit es sich mit
   dem Instagram-Badge oben rechts nicht überschneidet). */
.lte-video-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(13, 43, 54, 0.75);
  color: #fff;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Video-Einbettung auf der Detailseite: responsives 16:9-Format für
   YouTube/Vimeo, eigenes Format für direkt eingebundene Videodateien. */
.lte-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  margin: 0 0 30px;
}
.lte-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lte-video-embed--file {
  padding-bottom: 0;
  height: auto;
}
.lte-video-embed--file video {
  position: static;
  width: 100%;
  max-height: 70vh;
  display: block;
  background: #000;
}
.lte-video-fallback {
  margin: 0 0 30px;
}

/* Einwilligungs-Vorschaltseite für YouTube/Vimeo (DSGVO-Zwei-Klick-Lösung).
   Zeigt nur ein Vorschaubild/eine dunkle Fläche mit Hinweistext und
   Button - erst nach Klick lädt assets/video-consent.js das eigentliche
   iframe nach. */
.lte-video-consent {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  background-color: #0d2b36;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0 0 30px;
  cursor: pointer;
}
.lte-video-consent.is-active {
  cursor: default;
}
.lte-video-consent-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(rgba(13, 43, 54, 0.35), rgba(13, 43, 54, 0.8));
}
.lte-video-consent-heading {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  max-width: 480px;
}
.lte-video-consent-button {
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #0d2b36;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.lte-video-consent-button:hover {
  background: #e8eef1;
}
.lte-video-consent-text {
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  max-width: 480px;
  margin: 0;
}
.lte-video-consent-text a {
  color: #cfe8ff;
  text-decoration: underline;
}
.lte-video-consent.is-active .lte-video-consent-overlay {
  display: none;
}
.lte-video-consent iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 560px) {
  .lte-video-consent-text {
    font-size: 11px;
  }
}

/* Admin-Warnkasten zu unbekannten Shortcode-Attributwerten (0.44.0, siehe
   lte_shortcode_attr_warning_box() in includes/helpers.php) - nur für
   Administratorinnen/Administratoren sichtbar (PHP-seitig geprüft, hier nur
   noch die Optik). Farben bewusst fest statt über --lte-accent-color/
   --lte-muted-color, da dieser Hinweis unabhängig vom Theme/den sonstigen
   Plugin-Farben immer klar als Warnung erkennbar sein soll (an WordPress'
   eigene "notice-warning"-Farbgebung angelehnt, Kontrast gegen den
   hellen Hintergrund weit über 4,5:1). */
.lte-shortcode-attr-warning {
  margin: 16px 0;
  padding: 12px 16px;
  border: 1px solid #c69500;
  border-left-width: 4px;
  border-radius: 4px;
  background: #fff8e5;
  color: #1d2327;
  font-size: 14px;
  line-height: 1.5;
}
.lte-shortcode-attr-warning strong {
  display: block;
  margin-bottom: 4px;
}
.lte-shortcode-attr-warning ul {
  margin: 4px 0 0;
  padding-left: 20px;
}
