/* Scoped block CSS — plain CSS, served as-is, no Tailwind rebuild needed.
   Visual reference: `whySection()` in the Karriere prototype
   (Documentation/Generated/karriere.html on prototype/karriere-page).

   Kicker, heading, body text and the highlight list on the left, one 3:2
   photo on the right. Below lg the two stack in source order (copy, then
   photo); from lg (1024px) they sit side by side. The split and the highlight
   row are written here rather than with Tailwind utilities because the
   compiled bundle carries neither `lg:grid-cols-2` nor `sm:grid-cols-3`.

   Without a photo the copy spans both columns from lg, capped to a readable
   measure, instead of leaving the right half empty.

   Pages come in two layouts (Templates/Page/Default.html): navy with white
   text — the Karriere page — or light with black text. Heading, body and
   highlight titles therefore inherit the page colour instead of pinning the
   prototype's navy, which would vanish on the navy layout. The green left
   border is the one fixed colour. */

.highlights {
  max-width: 80rem;
  /* Not `margin: 0 auto`: the shorthand would zero margin-top and beat the
     page rhythm rule (`:where(.frontend-content) > :not(:first-child)`), which
     is what spaces this block from its neighbours. */
  margin-inline: auto;
}

/* "An Inhaltsbreite ausrichten": no cap, the page wrapper's padding is the
   edge, as for the containers above and below. */
.highlights--content-width {
  max-width: none;
}

.highlights__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.highlights__copy {
  min-width: 0;
}

.highlights__copy:only-child {
  grid-column: 1 / -1;
  max-width: 65ch;
}

.highlights__heading {
  margin: 0 0 1rem;
  color: inherit;
  font-weight: 300;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  text-wrap: balance;
}

.highlights__heading-highlight {
  font-weight: 500;
}

.highlights__body {
  color: inherit;
  opacity: 0.85;
  line-height: 1.6;
}

.highlights__body > :last-child {
  margin-bottom: 0;
}

/* One column by default; from sm the highlights line up with as many per
   row as fit at 10rem minimum, wrapping the rest onto further rows. */
.highlights__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.highlight {
  margin: 0;
  min-width: 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--theme-tertiary, #00b388);
}

.highlight__title {
  margin: 0;
  font-weight: 500;
  line-height: 1.3;
  color: inherit;
}

.highlight__text {
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: inherit;
  opacity: 0.75;
}

.highlights__media {
  min-width: 0;
}

.highlights__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 20px 50px rgba(3, 48, 93, 0.2);
}

/* "Bild nicht zuschneiden": the image arrives in its own proportions. */
.highlights__image--uncropped {
  aspect-ratio: auto;
}

@media (min-width: 640px) {
  .highlights__list {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  }
}

@media (min-width: 1024px) {
  .highlights__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
