.eccl-widget .eccl-card {
  cursor: pointer;
  user-select: none;
}

.eccl-widget .eccl-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: var(--eccl-ratio, 16/9);
  overflow: hidden;
  border-radius: 0px;
  background: rgba(0,0,0,0.04);
}

.eccl-widget .eccl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}

.eccl-widget .eccl-thumb-placeholder {
  width: 100%;
  height: 100%;
}

.eccl-widget .eccl-title {
  margin: 10px 0 0 0;
  font-size: 16px;
  line-height: 1.25;
}

.eccl-widget .eccl-empty {
  padding: 12px;
}

/* Nav Buttons (minimal, ohne Icon-Library) */
.eccl-widget .eccl-nav {
  position: absolute;
  top: 45%;
  z-index: 5;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 0px;
  background: rgba(0,0,0,0.55);
  transform: translateY(-50%);
}
.eccl-widget .eccl-prev { left: 8px; }
.eccl-widget .eccl-next { right: 8px; }

.eccl-widget .eccl-nav::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  margin: 0 auto;
  transform: rotate(135deg);
}
.eccl-widget .eccl-next::before {
  transform: rotate(-45deg);
}

/* Modal */
.eccl-modal {
  display: none;
}
.eccl-modal.is-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.eccl-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.60);
}

.eccl-modal-dialog {
  position: relative;
  width: min(980px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  margin: 14px auto;
  background: #fff;
  border-radius: 0px;
  overflow: auto;
  padding: 18px;
}

.eccl-modal-loading {
  padding: 18px;
  font-size: 14px;
  opacity: 0.7;
}

.eccl-modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0,0,0,0.0);
  border-radius: 0px;
  font-size: 36px;
  line-height: 00px;
  cursor: pointer;
  color: #041750;
  padding: 0px 0px 5px 3px;
}
.eccl-modal-close:hover {
  background: transparent;
  color: #041750;
}

.eccl-modal-title {
  margin: 0 0 12px 0;
}

.eccl-modal-image img {
  width: 100%;
  height: auto;
  border-radius: 0px;
  display: block;
}

.eccl-modal-acf {
  margin: 0 0 0 0;
  padding: 12px;
  border-radius: 0px;
  background: transparent);
}

.eccl-acf-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.eccl-acf-row:last-child { border-bottom: none; }

.eccl-acf-label {
  font-weight: 600;
}

.eccl-modal-body {
  margin-top: 14px;
}

.eccl-modal-open {
  overflow: hidden;
}

/* --- Swiper Fallback (falls Swiper-CSS nicht geladen wird) --- */
.eccl-widget .swiper {
  position: relative;
  overflow: hidden;
}

.eccl-widget .swiper-wrapper {
  display: flex;
}

.eccl-widget .swiper-slide {
  flex-shrink: 0;
  width: auto;
}

/* Filter */
.eccl-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px 0;
}

.eccl-filter-btn {
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.02);
  padding: 8px 12px;
  border-radius: 0px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: #041750;
}

.eccl-filter-btn:hover {
  background: #04175045;
  color: #FFFFFF;
}

.eccl-filter-btn.is-active {
  background: #041750;
  border-color: #041750;
  color: #fff;
}

/* --- Weiche Dots / Pagination --- */
.eccl-widget .swiper-pagination-bullet {
  transition: transform 180ms ease, opacity 180ms ease;
  opacity: 0.5;
}

.eccl-widget .swiper-pagination-bullet-active {
  transform: scale(1.25);
  opacity: 1;
}

/* kleiner “Pulse” beim Klicken */
.eccl-widget .swiper-pagination-bullet.eccl-bullet-pulse {
  transform: scale(1.55);
}

/* --- Filter-Animation: ausfaden & weich zusammenschieben --- */
/* Standard: Cards sichtbar */
.eccl-widget .swiper-slide {
  transition: opacity 260ms ease, transform 260ms ease, max-width 260ms ease;
  opacity: 1;
  transform: translateY(0);
}

/* Während Filterwechsel */
.eccl-widget.eccl-is-filtering .swiper-slide {
  opacity: 0;
  transform: translateY(10px);
}

/* Optional: gesamte Track-Fläche minimal “soften” */
.eccl-widget.eccl-is-filtering .swiper-wrapper {
  transition: filter 260ms ease;
  filter: blur(0.6px);
}