/* ==========================================================================
   TI Loop Slider – Basis-Styling
   Strikt auf .ti-loop-slider gescoped, keine globalen Resets.
   ========================================================================== */

.ti-loop-slider {
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ti-loop-slider__viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: visible;
  box-sizing: border-box;
}

.ti-loop-slider__viewport .swiper-wrapper {
  min-width: 0;
}

.ti-loop-slider__viewport .swiper-slide {
  height: auto;
  min-width: 0;
  box-sizing: border-box;
}

.ti-loop-slider__media {
  border-radius:8px;
  overflow:hidden;
}

.ti-loop-slider__media img, .ti-loop-slider__media video  {
  transition: all 0.5s ease-in-out;
}

.ti-loop-slider__media:hover img, .ti-loop-slider__media:focus-within img  {
  transform: scale(1.1);
}
.ti-loop-slider__media:hover video, .ti-loop-slider__media:focus-within video {
  transform: scale(1.1);
}

.ti-loop-slider__media--4to5 .e-hosted-video {
  aspect-ratio: 4/5 !important;
}

/* --------------------------------------------------------------------------
   Navigation Pfeile
   Positioniert relativ zum äußeren, ungeclippten .ti-loop-slider Wrapper.
   Werte hier direkt nach Bedarf anpassen (z. B. -60px für "außerhalb").
   -------------------------------------------------------------------------- */

.ti-loop-slider__nav {
  position: absolute;
  bottom: -140px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #fff554;
  color: #10203a;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;

  overflow: hidden;
}

.ti-loop-slider__nav:hover {
  background-color: #fff998;
}

.ti-loop-slider__nav:focus {
  background-color: #fff554;
  color: #10203a; 
}

.ti-loop-slider__nav:focus-visible {
  background-color: #fff554;
  box-shadow:
    0 0 0 2px var(--brand-night-blue-night-blue-900, #10203a),
    0 0 0 6px var(--brand-night-blue-night-blue-550, #646e7f) !important;
  color: #10203a; 
}

/* .ti-loop-slider__nav:focus-visible {
  outline: 2px solid #10203a;
  outline-offset: 2px;
} */

.ti-loop-slider__nav--prev::before {
  content: "";
  position: absolute;
  right: -18px;
  z-index: 2;
  width: 18px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='10' viewBox='0 0 17 10' fill='none'%3E%3Cpath d='M6.32,0c-.4.8-.8,1.52-1.2,2.16-.43.64-.85,1.21-1.28,1.72h12.88v1.36H3.84c.43.51.85,1.08,1.28,1.72.4.64.8,1.36,1.2,2.16h-1.08C3.59,7.23,1.84,5.79,0,4.8v-.48C1.84,3.36,3.59,1.92,5.24,0h1.08Z' fill='%2310203A'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: translateX(0px);
  transition: all 0.2s ease;
}

.ti-loop-slider__nav--next::before {
  content: "";
  position: absolute;
  left: -18px;
  z-index: 2;
  width: 18px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='10' viewBox='0 0 17 10' fill='none'%3E%3Cpath d='M10.4013 0C10.8013 0.8 11.2013 1.52 11.6013 2.16C12.0279 2.8 12.4546 3.37333 12.8813 3.88L0 3.87999L0 5.23999L12.8813 5.24C12.4546 5.74666 12.0279 6.32 11.6013 6.96C11.2013 7.6 10.8013 8.32 10.4013 9.12L11.4812 9.12C13.1346 7.22666 14.8813 5.78666 16.7213 4.8L16.7213 4.32C14.8813 3.36 13.1346 1.92 11.4813 0L10.4013 0Z' fill='%2310203A'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: translateX(0px);
  transition: all 0.2s ease;
}

.ti-loop-slider__nav--prev svg {
  transform: translateX(0);
  transition: all 0.2s ease;
}

.ti-loop-slider__nav--next svg {
  transform: translateX(0);
  transition: all 0.2s ease;
}

.ti-loop-slider__nav--prev:hover svg {
  transform: translateX(-33px);
}

.ti-loop-slider__nav--next:hover svg {
  transform: translateX(33px);
}

.ti-loop-slider__nav--prev:hover::before {
  transform: translateX(-33px);
}

.ti-loop-slider__nav--next:hover::before {
  transform: translateX(33px);
}

.ti-loop-slider__nav.swiper-button-disabled {
  background-color: #e3e5e6;
  color: #9fa6b0;
  cursor: not-allowed;
  pointer-events: none;
}

.ti-loop-slider__nav--prev {
  left: 60px;
}

.ti-loop-slider__nav--next {
  left: 116px;
}

/* --------------------------------------------------------------------------
   Pagination -- bleibt innerhalb der Viewport-Ebene, braucht keinen Overflow.
   -------------------------------------------------------------------------- */

.ti-loop-slider__pagination {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.ti-loop-slider__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #c8ccd4;
  opacity: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.ti-loop-slider__pagination .swiper-pagination-bullet-active {
  background-color: #10203a;
  transform: scale(1.2);
}

.ti-loop-slider__pagination .swiper-pagination-progressbar {
  background-color: #e4e6eb;
}

.ti-loop-slider__pagination .swiper-pagination-progressbar-fill {
  background-color: #10203a;
}


@media (min-width: 1921px) {
  .ti-loop-slider__nav--prev {
    left: 120px;
  }
  .ti-loop-slider__nav--next {
    left: 176px;
  }
}

@media (max-width: 1023px) {
  .ti-loop-slider__nav--prev {
    left: 40px;
  }
  .ti-loop-slider__nav--next {
    left: 96px;
  }
}

@media (max-width: 743px) {
  .ti-loop-slider__nav {
    width: 48px;
    height: 48px;
    bottom: -130px;
  }

  .ti-loop-slider__nav--prev {
    left: 0px;
  }
  .ti-loop-slider__nav--next {
    left: 56px;
  }
}

/* ==========================================================================
   Generic Hover Trigger -> Card Link Animation
   Trigger: .ti-hover--card-link-trigger
   Ziel: .ti-button.ti-button--link-light-bg .elementor-button
   ========================================================================== */

/* Rechter Pfeil raus */
.e-con-inner:has(> .ti-hover--card-link-trigger:hover) > .e-con .ti-button.ti-button--link-light-bg .elementor-button .elementor-button-icon,
.e-con-inner:has(> .ti-hover--card-link-trigger:focus-within) > .e-con .ti-button.ti-button--link-light-bg .elementor-button .elementor-button-icon {
  opacity: 0;
  transform: translate(70px, -50%);
}

/* Linker Pfeil rein */
.e-con-inner:has(> .ti-hover--card-link-trigger:hover) > .e-con .ti-button.ti-button--link-light-bg .elementor-button::before,
.e-con-inner:has(> .ti-hover--card-link-trigger:focus-within) > .e-con .ti-button.ti-button--link-light-bg .elementor-button::before {
  opacity: 1;
  transform: translate(0, -50%);
}

/* Label schieben */
.e-con-inner:has(> .ti-hover--card-link-trigger:hover) > .e-con .ti-button.ti-button--link-light-bg .elementor-button .elementor-button-text,
.e-con-inner:has(> .ti-hover--card-link-trigger:focus-within) > .e-con .ti-button.ti-button--link-light-bg .elementor-button .elementor-button-text {
  transform: translateX(15px);
}