
.testimonial-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap;
}
.testimonial-image img {
    width: 80px;
    height: 80px;
}
.testimonial-text h5 {
    margin: 0;
    font-weight: bold;
}
.testimonial-position {
    font-style: italic;
    margin: 0 0 1rem 0;
}
.ts-controls {
    margin-top: 1rem;
    text-align: center;
}
/* Container für das maskierte Bild */
.testimonial-image{
  /* Größe nach Bedarf – aspect-ratio hält es quadratisch */
  inline-size: 140px;                 /* Breite */
  aspect-ratio: 1 / 1;                /* Höhe automatisch */
  position: relative;
  display: inline-block;
}

/* farbiger Hinterleger (optional): etwas größer als das Bild */
.testimonial-image::before{
  content:"";
  position:absolute;
  inset:-6%;                          /* größer = „Randbreite“ */
  background:#e31e24;                 /* deine Markenfarbe */
  z-index:0;
  -webkit-mask: var(--ts-mask) center / 100% 100% no-repeat;
          mask: var(--ts-mask) center / 100% 100% no-repeat;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.18));
  pointer-events:none;
}

/* das eigentliche Bild wird mit derselben Maske zugeschnitten */
.testimonial-image .ts-portrait{
  display:block;
  inline-size:100%;
  block-size:100%;
  object-fit: cover;
  position: relative;
  z-index:1;
  -webkit-mask: var(--ts-mask) center / 100% 100% no-repeat;
          mask: var(--ts-mask) center / 100% 100% no-repeat;
  border-radius: 0 !important;        /* Sicherheit gegen Theme-Styles */
}

/* Fallback, falls mask() nicht unterstützt (sehr alte Browser):
   Wir nähern die Form über clip-path an und lassen den Hinterleger weg. */
@supports not ((-webkit-mask: url("")) or (mask: url(""))){
  .testimonial-image::before{ content:none; }
  .testimonial-image .ts-portrait{
    clip-path: polygon(
      50% 0%, 100% 38%, 82% 100%,
      18% 100%, 0% 38%
    );
  }
}
