/* ============================= */
/* BASE */
/* ============================= */

.testimonial--2-spalten {
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  background: var(--section-bg, transparent);
}

/* ============================= */
/* INNER GRID (wie grid--2-spalten) */
/* ============================= */

.testimonial--2-spalten__inner {
  display: grid;
  row-gap: var(--space-l);
  justify-items: start;

  grid-template-areas:
    "header"
    "figure"
    "content";
}
/*==========================
HEADER
=============================*/
.testimonial--2-spalten__header {
  grid-area: header;
}
/* ============================= */
/* IMAGE */
/* ============================= */

.testimonial--2-spalten__figure {
  grid-area: figure;
  inline-size: clamp(200px, 100%, 500px);
  justify-self: center;
  aspect-ratio: 2/3;
  overflow: visible;
  position: relative;
}

:root {
  --offset: clamp(15px, 2vw, 30px);
}

.testimonial--2-spalten__figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary-light);
  transform: translate(var(--offset), calc(var(--offset) * -1));
  z-index: -1;
}

.testimonial--2-spalten--reverse .testimonial--2-spalten__figure::before {
  transform: translate(calc(var(--offset) * -1), calc(var(--offset) * -1));
}

.testimonial--2-spalten__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================= */
/* CONTENT */
/* ============================= */

.testimonial--2-spalten__content {
  grid-area: content;
  width: 100%;
}

/* Label */
.testimonial--2-spalten__label {
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: 400;
  margin-bottom: calc(var(--space-xs) / 2);
  letter-spacing: 0.08em;
}

/* Highlight (Pullquote) */
.testimonial--2-spalten__highlight {
  font-size: var(--heading-m);
  font-weight: 600;
  font-family: var(--font-heading);
  margin: 0;
  margin-bottom: var(--space-l);
}

/* Quote */
.testimonial--2-spalten__quote {
  margin-bottom: var(--space-l);
}

/* Rating */
.testimonial--2-spalten__rating {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-s);
}

.testimonial--2-spalten__star {
  font-size: var(--text-m);
}

/* Author */
.testimonial--2-spalten__author {
  font-weight: 600;
  font-size: var(--text-m);
  margin-left: auto;
  text-align: right;
}

.testimonial--2-spalten__author-meta {
  display: block;
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--text-dark-muted);
  margin-top: 2px;
  margin-left: auto;
  text-align: right;
}

/* ============================= */
/* DESKTOP */
/* ============================= */

@container (min-width: 750px) {
  .testimonial--2-spalten__inner {
    grid-template-columns: 1.3fr 1fr;
    row-gap: 0;
    column-gap: var(--space-l);
    grid-template-areas:
      "header figure"
      "content figure";

    align-items: start;
  }

  .testimonial--2-spalten--reverse .testimonial--2-spalten__inner {
    grid-template-columns: 1fr 1.3fr;

    grid-template-areas:
      "figure header"
      "figure content";
  }

  .testimonial--2-spalten__header {
    align-self: end;
    margin: 0;
  }

  .testimonial--2-spalten__figure {
    justify-self: end;
  }

  .testimonial--2-spalten--reverse .testimonial--2-spalten__figure {
    justify-self: start;
  }
}
