/* Icon Cards Grid — "Transparent & Planbar". Figma 262-155. Sits on the #efefef body. */
.sun-ic { display: block; }
.sun-ic__inner {
  box-sizing: border-box;
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
  padding-block: clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(24px, 3vw, 48px);
}

/* Two-tone heading (left aligned, 32/40) */
.sun-ic__heading {
  margin: 0;
  max-width: 30ch;
  font-family: var(--wp--preset--font-family--brand);
  font-weight: 500;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.16px;
}
.sun-ic__heading-main  { color: var(--sun-secondary); }   /* #132140 */
.sun-ic__heading-muted { color: var(--sun-bluegrey); }    /* #4f5563 */
.sun-ic__heading-muted--orange { color: var(--sun-primary); }

/* Large variant — Figma 1267-25707 "Drei gute Gründe": H2 48/56 + subhead 16/24. */
.sun-ic--large .sun-ic__heading {
  max-width: none;
  font-size: clamp(29px, 3.75vw, 48px);
  line-height: 1.1667;
  letter-spacing: -0.48px;
}
.sun-ic__subhead {
  margin: -8px 0 0;                                /* 16px under the heading */
  font-size: 16px;
  line-height: 24px;
  color: var(--sun-bluegrey);
}
.sun-ic--large .sun-ic__subhead + .sun-ic__grid { margin-top: 24px; }

/* Grid — 3 columns */
.sun-ic__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* Card — white, icon (orange) + text + image */
.sun-ic__card {
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  background: var(--sun-base);                    /* #fff */
  border-radius: 4px;
}
.sun-ic .sun-ic__icon {
  width: 32px;
  height: 32px;
  color: var(--sun-primary);                      /* orange default */
}
/* Per-card icon colors. Figma SECONDARY/Green + SECONDARY/Red — no theme.json
   preset / --sun-* alias exists for these yet, so raw hex from the styleguide. */
.sun-ic .sun-ic__icon--green { color: #48a15f; }
.sun-ic .sun-ic__icon--red   { color: #ed3636; }
.sun-ic__text { display: flex; flex-direction: column; gap: 8px; }
.sun-ic__text > .sun-btn--tertiary { align-self: flex-start; margin-top: 8px; }
.sun-ic__title {
  margin: 0;
  font-family: var(--wp--preset--font-family--brand);
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  color: var(--sun-secondary);                    /* #132140 */
}
.sun-ic__desc {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--sun-bluegrey);                     /* #4f5563 */
}
.sun-ic__media {
  margin-top: auto;                               /* pin image to the card bottom */
  aspect-ratio: 160 / 90;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sun-border);                  /* #efefef placeholder */
}
.sun-ic__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Responsive */
@media (max-width: 900px) {
  .sun-ic__grid { grid-template-columns: 1fr; }
  .sun-ic__heading { max-width: none; }
  .sun-ic__media { max-width: 480px; }
  .sun-ic__title { font-size: 20px; line-height: 28px; }   /* QA: 24px wrapped to 2 lines vs Figma rhythm */
}
