.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: #666;
  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;
}
.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;
}
.lte-card-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.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 {
  color: #777;
}

/* 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: #555;
}
.lte-termine-title {
  color: inherit;
}
.lte-termine-ort {
  color: #777;
}
@media (max-width: 560px) {
  .lte-termine-date {
    display: block;
    min-width: 0;
    margin-bottom: 2px;
  }
}

/* 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: #777;
  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;
}
.lte-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0f9c92;
  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;
}
.lte-detail-date {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0f9c92;
  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; }
}

/* Einfache Lightbox für die Galeriebilder */
.lte-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 43, 54, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 30px;
}
.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 - 140px);
  border-radius: 10px;
  object-fit: contain;
}
.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;
}
.lte-lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  /* Mindestens ~44x44px Klickfläche (Touch-Target-Empfehlung), das × selbst
     bleibt optisch gleich groß wie zuvor. */
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
}
.lte-lightbox-prev, .lte-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 16px;
}
.lte-lightbox-prev { left: 6px; }
.lte-lightbox-next { right: 6px; }

@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;
  }
}
