/* Media Teaser block — CTA banner with diagonally-cut photo.
 * Figma 415-8540 (light, media left) + 339-22271 (navy, media right).
 * Exact desktop values; stacks ≤900px. */
.sun-mtz {
  --mtz-slant: 88px;                              /* horizontal run of the diagonal cut */
  padding: clamp(48px, 6vw, 96px) 0;
}
.sun-mtz__inner {
  box-sizing: border-box;
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
}

/* One rounded panel: photo one side, content the other. */
.sun-mtz__card {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border-radius: 4px;
}
.sun-mtz--light .sun-mtz__card { background: var(--sun-base); }        /* #ffffff */
.sun-mtz--navy  .sun-mtz__card { background: var(--sun-secondary); }   /* #132140 */

/* ---- Media (diagonal cut via clip-path, flipped per orientation) ---- */
.sun-mtz__media {
  position: relative;
  align-self: stretch;
  flex: 1 1 50%;
  min-height: 320px;
}
.sun-mtz--media-left  .sun-mtz__media {
  clip-path: polygon(0 0, calc(100% - var(--mtz-slant)) 0, 100% 100%, 0 100%);
}
.sun-mtz--media-right .sun-mtz__media {
  order: 2;
  clip-path: polygon(var(--mtz-slant) 0, 100% 0, 100% 100%, 0 100%);
}
.sun-mtz__media--empty { background: #edf0fb; }   /* PRIMARY/Blue/Light placeholder */
.sun-mtz__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---- Content column ---- */
.sun-mtz__content {
  box-sizing: border-box;
  flex: 1 1 50%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
}
.sun-mtz--media-right .sun-mtz__content { order: 1; }

.sun-mtz__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Outline pill (Figma LABEL 339-3968) */
.sun-mtz__badge {
  box-sizing: border-box;                          /* 28px TOTAL height incl. padding+border */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  height: 28px;
  padding: 3.5px 10px 4.5px 8px;
  border: 1px solid var(--sun-accent);             /* #4a67d2 */
  border-radius: 4px;
  background: #edf0fb;                             /* PRIMARY/Blue/Light */
  color: #212e5e;                                  /* PRIMARY/Blue/Dark */
  font-family: var(--wp--preset--font-family--brand);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sun-mtz__heading {
  margin: 0;
  font-family: var(--wp--preset--font-family--brand);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1667;                             /* 56/48 */
  letter-spacing: -0.48px;
  hyphens: auto;                                   /* „Spundbohlenvermietung“ must not overflow the card on mobile */
  overflow-wrap: break-word;
}
.sun-mtz--light .sun-mtz__heading { color: var(--sun-secondary); }
.sun-mtz--navy  .sun-mtz__heading { color: var(--sun-base); }

.sun-mtz__text {
  font-family: var(--wp--preset--font-family--brand);
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
}
.sun-mtz__text p { margin: 0; }
.sun-mtz__text p + p { margin-top: 8px; }
.sun-mtz--light .sun-mtz__text { color: var(--sun-bluegrey); }         /* #4f5563 */
.sun-mtz--navy  .sun-mtz__text { color: var(--sun-border); }           /* #efefef */

/* Checklist — orange sprite checks */
.sun-mtz__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sun-mtz__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--wp--preset--font-family--brand);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}
.sun-mtz--light .sun-mtz__item { color: var(--sun-secondary); }
.sun-mtz--navy  .sun-mtz__item { color: var(--sun-base); }
.sun-mtz__check {
  font-size: 24px;                                 /* .sun-icon is 1em square */
  color: var(--sun-primary);                       /* #ff710a */
}

.sun-mtz__cta { margin: 16px 0 0; }
.sun-mtz__cta-icon { font-size: 16px; }

/* ---- Responsive: stack, image on top, natural ratio (no crop) ---- */
@media (max-width: 900px) {
  .sun-mtz__card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .sun-mtz__media,
  .sun-mtz--media-left .sun-mtz__media,
  .sun-mtz--media-right .sun-mtz__media {
    order: 1;
    flex-basis: auto;
    align-self: auto;
    min-height: 0;
    clip-path: none;                               /* straight edge when stacked */
  }
  .sun-mtz__media--empty { min-height: 200px; }
  /* No fixed height / no cover-crop: subjects stay fully visible. */
  .sun-mtz__img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
  }
  .sun-mtz__content,
  .sun-mtz--media-right .sun-mtz__content {
    order: 2;
    max-width: none;
    padding: clamp(24px, 6vw, 40px);
  }
}
