/* ==========================================================================
   TI C013 – Testimonials Carousel
   Strikt auf .ti-c013-testimonials-carousel gescoped, keine globalen Resets.

   ARCHITEKTUR (Nav-Pfeile außerhalb des Sliders):
   .ti-c013-testimonials-carousel           -> äußerer Wrapper, KEIN Overflow-Clip
   .ti-c013-testimonials-carousel__viewport -> innere Ebene, overflow:hidden, Swiper-Ziel
   .ti-c013-testimonials-carousel__nav      -> Geschwister der Viewport-Ebene, nicht geclippt
   ========================================================================== */

.ti-c013-testimonials-carousel {
  position: relative;
  width: 100%;
}

.ti-c013-testimonials-carousel__viewport {
  position: relative;
  width: 100%;
  overflow: visible;
  box-sizing: border-box;
}

.ti-c013-testimonials-carousel__slide {
  height: auto;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Card -- weißer, abgerundeter Container. Höhe wird ausschließlich durch
   den Quote-Block-Inhalt bestimmt (Swiper stretcht .swiper-slide auf den
   höchsten Inhalt aller sichtbaren Slides -- align-items: stretch ist
   Swiper-Standard). Die Media-Box füllt diese Höhe einfach aus, diktiert
   sie aber nicht selbst.
   -------------------------------------------------------------------------- */

.ti-c013-testimonials-carousel__card {
  display: flex;
  align-items: stretch;
  height: 100%;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  min-height: 462px;
}

/* --------------------------------------------------------------------------
   Quote-Block
   -------------------------------------------------------------------------- */

.ti-c013-testimonials-carousel__quote-block {
  width: 70%;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  padding-right: 0;
  min-width: 0;
}

.ti-c013-testimonials-carousel__quote {
  margin: 0 0 24px 0;
}

.ti-c013-testimonials-carousel__quote-text {
  margin: 0;

  color: #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 */
}

.ti-c013-testimonials-carousel__quote-text::before {
  content: "\201E";
}

.ti-c013-testimonials-carousel__quote-text::after {
  content: "\201C";
}

.ti-c013-testimonials-carousel__author {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.ti-c013-testimonials-carousel__author-name {
  margin: 0;

  color: #10203a;
  /* Body-Base/Body-Base-bold-desktop */
  font-family: "Aeonik", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 135%; /* 24.3px */
}

.ti-c013-testimonials-carousel__author-role {
  color: #10203a;
  margin: 0;

  /* Body-Base/Body-Base-regular-desktop */
  font-family: "Aeonik", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 135%; /* 24.3px */
}

.ti-c013-testimonials-carousel__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  color: #10203a;
  text-decoration: none;

  margin-top: 10px;
}

.ti-c013-testimonials-carousel__social svg,
.ti-c013-testimonials-carousel__social i {
  width: auto;
  height: auto;
}

.ti-c013-testimonials-carousel__media {
  width: 30%;
  height: 100%;
  display: flex;
  margin-top: auto;
}

.ti-c013-testimonials-carousel__media-inner {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-top: auto;
  display: flex;
}

.ti-c013-testimonials-carousel__media-inner img,
.ti-c013-testimonials-carousel__media-inner video {
position: static;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.ti-c013-testimonials-carousel__media-inner picture {
  position: static;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.ti-c013-testimonials-carousel__media-img,
.ti-c013-testimonials-carousel__media-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
	object-position: var(--ti-focus-position, center center);
}

picture.ti-c013-testimonials-carousel__media-img {
  aspect-ratio: 4/5;
  margin-top: auto;
}

img.ti-c013-testimonials-carousel__media-img {
  aspect-ratio: 4/5;
  margin-top: auto;
}

.ti-c013-testimonials-carousel__media-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ti-c013-testimonials-carousel__media-overlay--none {
  background-color: transparent;
}

.ti-c013-testimonials-carousel__media-overlay--dark {
  background-color: rgba(0, 0, 0, 0.6);
}

.ti-c013-testimonials-carousel__media-overlay--medium {
  background-color: rgba(0, 0, 0, 0.4);
}

.ti-c013-testimonials-carousel__media-overlay--light {
  background-color: rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   Navigation Pfeile -- Position direkt hier anpassen.
   -------------------------------------------------------------------------- */

.ti-c013-testimonials-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-c013-testimonials-carousel__nav:hover {
  background-color: #fff998;
  color: #10203a;
}

.ti-c013-testimonials-carousel__nav:focus {
  background-color: #fff554;
  color: #10203a; 
}

.ti-c013-testimonials-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-c013-testimonials-carousel__nav.swiper-button-disabled {
  background-color: #e3e5e6;
  color: #9fa6b0;
  cursor: not-allowed;
  pointer-events: none;
}

.ti-c013-testimonials-carousel__nav--prev {
  left: 0px;
}

.ti-c013-testimonials-carousel__nav--next {
  left: 56px;
}

.ti-c013-testimonials-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-c013-testimonials-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-c013-testimonials-carousel__nav--prev svg {
  transform: translateX(0);
  transition: all 0.2s ease;
}

.ti-c013-testimonials-carousel__nav--next svg {
  transform: translateX(0);
  transition: all 0.2s ease;
}

.ti-c013-testimonials-carousel__nav--prev:hover svg {
  transform: translateX(-35px);
}

.ti-c013-testimonials-carousel__nav--next:hover svg {
  transform: translateX(35px);
}

.ti-c013-testimonials-carousel__nav--prev:hover::before {
  transform: translateX(-35px);
}

.ti-c013-testimonials-carousel__nav--next:hover::before {
  transform: translateX(35px);
}

.ti-modul-testimonials-carousel .ti-c013-testimonials-carousel__divider {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.ti-c013-testimonials-carousel__pagination {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.ti-c013-testimonials-carousel__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #c8ccd4;
  opacity: 1;
  cursor: pointer;
}

.ti-c013-testimonials-carousel__pagination .swiper-pagination-bullet-active {
  background-color: #10203a;
  transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   Responsive -- Card stapelt auf Tablet/Mobile. Auf Mobile ist die Breite
   der Media-Box zuerst bekannt (100% der Card-Breite), daher ist
   aspect-ratio hier UNPROBLEMATISCH (Höhe wird sauber aus der bekannten
   Breite abgeleitet, keine Zirkularität wie im Desktop-Fall).
   -------------------------------------------------------------------------- */

@media (max-width:1279px) {
  
  .ti-c013-testimonials-carousel__nav {
    width: 48px;
    height: 48px;
  }
  .ti-c013-testimonials-carousel__nav--next {
  left: 54px;
  }
}


@media (max-width: 743px) {
  .ti-c013-testimonials-carousel__card {
    flex-direction: row;
    display: flex;
    min-height: 414px;
  }

  .ti-c013-testimonials-carousel__quote-block {
    padding: 20px;
    width: 100%;
  }

  .ti-c013-testimonials-carousel__author {
    width: 80%;
  }

  .ti-c013-testimonials-carousel__media {
    width: auto;
    height: auto;
    position: absolute;
    bottom: 0;
    right: 0;
  }

  picture.ti-c013-testimonials-carousel__media-img {
    max-height: 153px;
    max-width: 122px;
  }

  .ti-c013-testimonials-carousel__media-inner {
    width: 100%;
    height: auto;
  }

}
