/* Fundament block — pill badge + left header + 2×2 white function cards + tertiary CTA.
   Figma 415-6790. Sits on the page background (no own bg). */
.sun-fund { display: block; }
.sun-fund__inner {
  box-sizing: border-box;
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
  padding-block: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}

/* Header — left-aligned, right ~third of the row stays empty (Figma: 928 of 1280) */
.sun-fund__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 928px;
}

/* Pill badge (LABEL Fullcolor: orange fill + border, white text) */
.sun-fund__badge {
  margin: 0 0 16px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 8px;
  background: var(--sun-primary);
  border: 1px solid var(--sun-primary);
  border-radius: 4px;
  font-family: var(--wp--preset--font-family--brand);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--wp--preset--color--base);
}

.sun-fund__heading {
  margin: 0;
  font-family: var(--wp--preset--font-family--brand);
  font-size: clamp(32px, 3.75vw, 48px);
  font-weight: 500;
  line-height: 1.1667;
  letter-spacing: -0.48px;
  color: var(--sun-secondary);
}

.sun-fund__subhead { margin-top: 16px; }
.sun-fund__subhead,
.sun-fund__subhead p {
  margin: 0;
  font-family: var(--wp--preset--font-family--brand);
  font-size: clamp(16px, 1.41vw, 18px);
  font-weight: 400;
  line-height: 1.3333;
  color: var(--sun-bluegrey);
}
.sun-fund__subhead p + p { margin-top: 12px; }

/* 2×2 grid of white function cards */
.sun-fund__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(316px, 1fr));
  gap: 16px;
  align-items: stretch;
}
/* Exactly 3 cards → 3-across (Figma 339-5860 / 326-5665), not 2+1.
   Desktop only — :has() would out-specify the mobile 1fr rule below. */
@media (min-width: 901px) {
  .sun-fund__grid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.sun-fund__card {
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  background: var(--sun-base);                    /* #fff */
  border-radius: 4px;
}
.sun-fund .sun-fund__card-icon {
  width: 32px;
  height: 32px;
  color: var(--sun-primary);
}
.sun-fund__card-title {
  margin: 24px 0 0;
  font-family: var(--wp--preset--font-family--brand);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3333;
  color: var(--sun-secondary);
}
.sun-fund__card-text { margin-top: 8px; }
.sun-fund__card-text,
.sun-fund__card-text p {
  margin: 0;
  font-family: var(--wp--preset--font-family--brand);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--sun-bluegrey);
}

/* Tertiary pill CTA — 1px navy border, full pill, arrow-right icon */
/* Card checklist — Branchen Function Box (Figma 1411-16027): 24px orange
   checks, 10px gap, 8px between rows, 24px above the list. */
.sun-fund__check {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sun-fund__check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--wp--preset--font-family--brand);
  font-size: 16px;
  line-height: 24px;
  color: var(--sun-secondary);
}
.sun-fund .sun-fund__check-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--sun-primary);
}

/* Note bar under the grid (Figma 1411-16032): white, 28px padding, H3 24px
   + orange primary button. Sits 16px under the cards. */
.sun-fund__note {
  box-sizing: border-box;
  width: 100%;
  margin-top: -32px;                               /* 48px section gap → 16px */
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 28px;
  background: var(--sun-base);
  border-radius: 4px;
}
.sun-fund__note-text {
  flex: 1 1 auto;
  margin: 0;
  font-family: var(--wp--preset--font-family--brand);
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  color: var(--sun-secondary);
}
.sun-fund__note-cta { flex: 0 0 auto; white-space: nowrap; }
.sun-fund .sun-fund__note-icon { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .sun-fund__note { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; }
  .sun-fund__note-text { font-size: 20px; line-height: 28px; }
  .sun-fund__note-cta { white-space: normal; }
}

.sun-fund__cta-row { margin: 0; }
.sun-fund__cta {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--sun-secondary);
  border-radius: 999px;
  background: transparent;
  font-family: var(--wp--preset--font-family--brand);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4286;
  color: var(--sun-secondary);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.sun-fund__cta:hover,
.sun-fund__cta:focus-visible {
  background: var(--sun-secondary);
  color: var(--wp--preset--color--base);
  text-decoration: none;
}
.sun-fund .sun-fund__cta-icon { width: 16px; height: 16px; }

/* Responsive: 2 → 1 column */
@media (max-width: 900px) {
  .sun-fund__inner { padding-block: 56px; gap: 32px; }
  .sun-fund__grid { grid-template-columns: 1fr; }
  .sun-fund__card-title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sun-fund__cta { transition: none; }
}
