/* ==========================================================================
   TI C017 – Stats Carousel
   Strikt auf .ti-c017-stats-carousel gescoped, keine globalen Resets.

   ARCHITEKTUR (Nav-Pfeile außerhalb des Sliders):
   .ti-c017-stats-carousel           -> äußerer Wrapper, KEIN Overflow-Clip
   .ti-c017-stats-carousel__viewport -> innere Ebene, overflow:hidden, Swiper-Ziel
   .ti-c017-stats-carousel__nav      -> Geschwister der Viewport-Ebene, nicht geclippt

   Kein Card-Hintergrund/Schatten laut Design -- reiner Text in Spalten.
   Link nutzt globale ti-button / ti-button--link-light-bg Klassen.
   KEINE Scroll-Reveal-Animation -- rein statisch, immer sichtbar.
   ========================================================================== */

.ti-c017-stats-carousel {
  position: relative;
  width: 100%;
}

.ti-c017-stats-carousel__viewport {
  position: relative;
  width: 100%;
  overflow: visible;
  box-sizing: border-box;
}

.ti-c017-stats-carousel__slide {
  height: auto;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */

.ti-c017-stats-carousel__card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ti-c017-stats-carousel__number {
  color: var(--brand-night-blue-night-blue-500, #707989);

  /* Display-2/Display-2-dekstop */
  font-family: "Aeonik Extend", sans-serif;
  font-size: 120px;
  font-style: normal;
  font-weight: 500;
  line-height: 90%; /* 108px */
  letter-spacing: -2.4px;

  margin-bottom: 20px;
}

.ti-c017-stats-carousel__description {
  color: var(--brand-night-blue-night-blue-900, #10203a);

  /* Body-LG/Body-LG-regular-dektop */
  font-family: "Aeonik", sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 135%; /* 29.7px */
  color: #10203a;

  margin-bottom: 25px;
}

.ti-modul-stats-carousel .ti-button--link-light-bg .elementor-button {
  background: transparent;

  color: #10203a;
  padding: 0;
  transform: none;
  width: auto;
}

.ti-modul-stats-carousel
  .ti-button--link-light-bg
  .elementor-button
  .elementor-button-text {
  margin-right: 15px;

  color: var(--brand-night-blue-night-blue-900, #10203a);

  /* Body-SM/Body-SM-medium-desktop */
  font-family: "Aeonik", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 135%; /* 21.6px */
}

.ti-modul-stats-carousel
  .ti-button--link-light-bg
  .elementor-button
  .elementor-button-icon {
  right: 0;
}

.ti-modul-stats-carousel
  .ti-button--link-light-bg
  .elementor-button:hover
  .elementor-button-text {
  transform: translateX(15px);
}

.ti-modul-stats-carousel .ti-button--link-light-bg .elementor-button::before {
  left: 0;
}

/* --------------------------------------------------------------------------
   Navigation Pfeile -- Position direkt hier anpassen.
   -------------------------------------------------------------------------- */

.ti-c017-stats-carousel__nav {
  position: absolute;
  bottom: -154px;

  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: all 0.2s ease;
  overflow: hidden;
}

.ti-c017-stats-carousel__nav:hover {
  background-color: #fff998;
  color: #10203a;
}

.ti-c017-stats-carousel__nav:focus {
  background-color: #fff554;
  color: #10203a;
}

.ti-c017-stats-carousel__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-c017-stats-carousel__nav.swiper-button-disabled {
  background-color: #e3e5e6;
  color: #9fa6b0;
  cursor: not-allowed;
  pointer-events: none;
}

.ti-c017-stats-carousel__nav--prev {
  left: 0px;
}

.ti-c017-stats-carousel__nav--next {
  left: 56px;
}

.ti-c017-stats-carousel__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-c017-stats-carousel__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-c017-stats-carousel__nav--prev svg {
  transform: translateX(0);
  transition: all 0.2s ease;
}

.ti-c017-stats-carousel__nav--next svg {
  transform: translateX(0);
  transition: all 0.2s ease;
}

.ti-c017-stats-carousel__nav--prev:hover svg {
  transform: translateX(-35px);
}

.ti-c017-stats-carousel__nav--next:hover svg {
  transform: translateX(35px);
}

.ti-c017-stats-carousel__nav--prev:hover::before {
  transform: translateX(-35px);
}

.ti-c017-stats-carousel__nav--next:hover::before {
  transform: translateX(35px);
}

.ti-modul-stats-carousel .ti-c013-testimonials-carousel__divider {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.ti-c017-stats-carousel__pagination {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.ti-c017-stats-carousel__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #c8ccd4;
  opacity: 1;
  cursor: pointer;
}

.ti-c017-stats-carousel__pagination .swiper-pagination-bullet-active {
  background-color: #10203a;
  transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 1921px) {
  .ti-c017-stats-carousel__card {
    padding-right: 150px;
  }
}

@media (max-width: 1920px) {
  .ti-c017-stats-carousel__card {
    padding-right: 20px;
  }
}

@media (max-width: 1279px) {
  .ti-c017-stats-carousel__card {
    padding-right: 0px;
  }

  .ti-c017-stats-carousel__description {
    margin-bottom: 20px;
  }

  .ti-c017-stats-carousel__number {
    margin-bottom: 15px;
  }

  .ti-c017-stats-carousel__nav {
    bottom: -144px;
    width:48px;
    height:48px;
  }

  .ti-c017-stats-carousel__nav--next {
    left:54px;
  }
}

/* @media (max-width: 1023px) {
}

@media (max-width: 767px) {
} */

/* --------------------------------------------------------------------------
  Darkmode Styles
-------------------------------------------------------------------------- */
.ti-modul-stats-carousel:has(.ti-darkmode) {
  background-color: #0b1e3c;
}

.ti-modul-stats-carousel:has(.ti-darkmode)
  .ti-modul-stats-carousel__subtitle
  span.elementor-heading-title {
  color: white;
}

.ti-modul-stats-carousel:has(.ti-darkmode)
  .ti-modul-stats-carousel__title
  h2.elementor-heading-title {
  color: white;
}

.ti-modul-stats-carousel:has(.ti-darkmode) div.ti-c017-stats-carousel__number {
  color: white;
}

.ti-modul-stats-carousel:has(.ti-darkmode)
  .ti-c017-stats-carousel__description {
  color: #e4e6eb;
}

.ti-modul-stats-carousel:has(.ti-darkmode)
  .ti-c017-stats-carousel__link
  .elementor-button-text {
  color: white;
}

.ti-modul-stats-carousel:has(.ti-darkmode)
  .ti-c017-stats-carousel__nav.swiper-button-disabled {
  background-color: white;
}

.ti-modul-stats-carousel:has(.ti-darkmode)
  .ti-c017-stats-carousel__link
  .elementor-button-icon
  path {
  fill: white;
}

.ti-modul-stats-carousel:has(.ti-darkmode) .ti-c017-stats-carousel__link {
  position: relative;
}

.ti-modul-stats-carousel:has(.ti-darkmode)
  .ti-c017-stats-carousel__link
  .elementor-button::before {
  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 0.000118167C10.8013 0.800118 11.2013 1.52012 11.6013 2.16012C12.0279 2.80012 12.4546 3.37345 12.8813 3.88012L9.16191e-07 3.88012L6.78401e-07 5.24012L12.8813 5.24012C12.4546 5.74678 12.0279 6.32012 11.6013 6.96012C11.2013 7.60012 10.8013 8.32012 10.4013 9.12012L11.4812 9.12012C13.1346 7.22679 14.8813 5.78678 16.7213 4.80012L16.7213 4.32012C14.8813 3.36012 13.1346 1.92012 11.4813 0.000118356L10.4013 0.000118167Z' fill='white'/%3E%3C/svg%3E");
}
