/* Kostenspalten block — centred header + text boxes with vertical rules.
   Figma PREISE 1267-24079. Sits on the page background (no own bg). */
.sun-cc { display: block; }
.sun-cc__inner {
  box-sizing: border-box;
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
  padding-block: 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ---- Header — centred, measure capped at the Figma 760px ---------------- */
.sun-cc__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.sun-cc__heading {
  margin: 0;
  max-width: 760px;
  text-align: center;
  font-family: var(--wp--preset--font-family--brand);
  font-size: clamp(32px, 3.75vw, 48px);
  font-weight: 500;
  line-height: 1.1667;                           /* 56/48 */
  letter-spacing: -0.01em;
  color: var(--sun-secondary);                   /* #132140 */
}
.sun-cc__accent { color: var(--sun-primary); }

.sun-cc__subhead { max-width: 760px; }
.sun-cc__subhead,
.sun-cc__subhead p {
  margin: 0;
  text-align: center;
  font-family: var(--wp--preset--font-family--brand);
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: var(--sun-bluegrey);                    /* #4f5563 */
}
/* Figma sets the paragraphs one blank line apart. */
.sun-cc__subhead p + p { margin-top: 24px; }

/* ---- Columns ----------------------------------------------------------- */
.sun-cc__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--sun-cc-cols, 4), minmax(0, 1fr));
  gap: 16px;
}
.sun-cc__col {
  box-sizing: border-box;
  min-width: 0;
  padding: 24px;
  /* The rule belongs to the box, trailing one included — that is how the
     Figma component is drawn (right-side stroke on every Texbox). */
  border-right: 1px solid var(--sun-muted);      /* #b6bac4 */
  border-radius: var(--sun-radius-card, 4px);
}

.sun-cc__icon {
  display: flex;                                 /* one icon or a row of them */
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  min-height: 32px;
  color: var(--sun-secondary);
}
/* Descendant selector beats the global `.sun-icon { width: 1em }` in
   tokens.css, which is enqueued after per-block CSS. */
.sun-cc__icon .sun-cc__icon-svg {
  display: block;
  width: 32px;
  height: 32px;
}

.sun-cc__title {
  margin: 0 0 16px;
  font-family: var(--wp--preset--font-family--brand);
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: var(--sun-secondary);
}
.sun-cc__text {
  margin: 0;
  font-family: var(--wp--preset--font-family--brand);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--sun-bluegrey);
}

/* ---- Check list (Figma „Aufzählung klein": 24px orange check, 10px gap, 8px rows) */
.sun-cc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sun-cc__text + .sun-cc__list { margin-top: 16px; }
.sun-cc__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-bluegrey);
}
.sun-cc .sun-cc__check {
  flex: 0 0 auto;
  display: block;
  width: 24px;
  height: 24px;
  color: var(--sun-primary);
  fill: currentColor;
}

/* ---- Accent background (Figma PRODUKT 2626-24044 „Flexibel & sicher") ----
   Blue band: heading, titles and icons white, copy in the light grey of the
   Figma frame. The last box has no trailing rule here. */
.sun-cc--bg-accent { background: var(--sun-accent); }
.sun-cc--bg-accent .sun-cc__heading,
.sun-cc--bg-accent .sun-cc__title,
.sun-cc--bg-accent .sun-cc__icon,
.sun-cc.sun-cc--bg-accent .sun-cc__check { color: var(--sun-base); }
.sun-cc--bg-accent .sun-cc__subhead,
.sun-cc--bg-accent .sun-cc__subhead p,
.sun-cc--bg-accent .sun-cc__text,
.sun-cc--bg-accent .sun-cc__item { color: var(--sun-border); }   /* #efefef */
.sun-cc--bg-accent .sun-cc__col:last-child { border-right: 0; }
/* Orange on blue is unreadable (1.8:1): the accent part goes white here. */
.sun-cc--bg-accent .sun-cc__accent { color: var(--sun-base); }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
  .sun-cc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  /* Two-up: only the left column keeps a rule, so the row stays symmetric. */
  .sun-cc__col:nth-child(2n) { border-right: 0; }
}
@media (max-width: 640px) {
  .sun-cc__inner { padding-block: 56px; gap: 32px; }
  .sun-cc__grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .sun-cc__col { border-right: 0; padding: 0; }
  .sun-cc__subhead p + p { margin-top: 16px; }
}
