/* dmi Redesign - about-Modul (Paket 6, UE-A: Team-Karten-Raster + Vertrauens-Band).
   Nur fuer about/indexSuccess geladen (apps/dmi/modules/about/config/view.yml).
   Markenwerte aus style.css / dmi-main-modern.css uebernommen; Klassennamen sind BEM-eindeutig,
   daher kein zusaetzlicher Scope-Wrapper noetig. */

.dmi-trustband,
.dmi-team {
  --dmi-blue: #165b97;
  --dmi-accent: #127aa8;
  --dmi-text: #2e2e2e;
  --dmi-text-muted: #5c5c5c;
}

/* ---- Vertrauens-Band --------------------------------------------------- */

.dmi-trustband {
  list-style: none;
  margin: 1.8rem 0 .3rem;
  padding: 1.3rem 0 0;
  border-top: 1px solid #e3e3e3;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.dmi-trustband li {
  flex: 1 1 120px;
  text-align: center;
  position: relative;
}

.dmi-trustband li + li::before {
  content: '';
  position: absolute;
  left: -.5rem;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: #e3e3e3;
}

.dmi-trustband strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--dmi-blue);
}

.dmi-trustband span {
  display: block;
  margin-top: .25rem;
  font-size: .85rem;
  color: var(--dmi-text-muted);
}

/* ---- Team-Raster ------------------------------------------------------- */

.dmi-team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.dmi-team__card {
  text-align: center;
}

.dmi-team__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f6;
  margin-bottom: .7rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.dmi-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* nur-100x120-Fotos: hochskaliert und dadurch weich - leichtes Glaetten statt harter Pixel */
.dmi-team__photo img.dmi-team__photo--lowres {
  image-rendering: auto;
  filter: saturate(1.02);
}

.dmi-team__name {
  display: block;
  font-size: 1rem;
  color: var(--dmi-blue);
  line-height: 1.25;
}

.dmi-team__role {
  display: block;
  margin-top: .15rem;
  font-size: .82rem;
  color: var(--dmi-text-muted);
}

/* ---- Responsiv --------------------------------------------------------- */

@media (max-width: 991px) {
  .dmi-team {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 575px) {
  .dmi-team {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .dmi-trustband {
    gap: .6rem;
  }
  .dmi-trustband strong {
    font-size: 1.2rem;
  }
}

/* ---- Testimonial-Karussell (Paket 6 UE-A Teil 2) ----------------------- */
/* owl.carousel wird generisch in custom.js initialisiert (1/2/3 Items je Breite).
   Karten via flex auf gleiche Hoehe pro Reihe. */

.dmi-testimonials {
  margin-top: 1.2rem;
  position: relative;
}

.dmi-testimonials .owl-stage {
  display: flex;
}

.dmi-testimonials .owl-item {
  display: flex;
}

.dmi-testimonial {
  width: 100%;
  background: #f4f8fb;
  border-radius: 8px;
  padding: 1.6rem 1.5rem 1.7rem;
  border-bottom: 3px solid #127aa8;
}

.dmi-testimonial__quote {
  width: 30px;
  height: 30px;
  color: #127aa8;
  margin-bottom: .5rem;
}

.dmi-testimonial h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #165b97;
  margin: 0 0 .6rem;
  padding: 0;
}

.dmi-testimonial h3::before {
  display: none;
}

.dmi-testimonial p {
  margin: 0;
  line-height: 1.6;
  color: #2e2e2e;
}

/* Navigations-Pfeile: dezent, ober-rechts ueber dem Karussell */
.dmi-testimonials .owl-nav {
  position: absolute;
  top: -3.2rem;
  right: 0;
  margin: 0;
  display: flex;
  gap: .5rem;
}

.dmi-testimonials .owl-nav button.owl-prev,
.dmi-testimonials .owl-nav button.owl-next {
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid #cddced !important;
  border-radius: 50%;
  background: #fff !important;
  color: #165b97 !important;
  font-size: 20px !important;
  line-height: 34px;
  transition: background .15s, color .15s;
}

.dmi-testimonials .owl-nav button.owl-prev:hover,
.dmi-testimonials .owl-nav button.owl-next:hover {
  background: #165b97 !important;
  color: #fff !important;
  border-color: #165b97 !important;
}

.dmi-testimonials .owl-nav button.owl-prev span,
.dmi-testimonials .owl-nav button.owl-next span {
  display: block;
  margin-top: -2px;
}

.dmi-testimonials .owl-dots {
  display: none;
}

@media (max-width: 575px) {
  .dmi-testimonials .owl-nav {
    top: -2.9rem;
  }
}
