/* Section Header block — pill + two-tone H2 + subhead. Figma 215-5272. */
.sun-sh { display: block; }
.sun-sh__inner {
  box-sizing: border-box;
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 80px) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.25vw, 16px);
}
.sun-sh__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 0.94vw, 12px);
}

/* Pill label (filled peach) */
.sun-sh__label {
  margin: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3.5px 8px 4.5px;
  background: #fff1e7;
  border: 1px solid var(--sun-primary);          /* #ff710a */
  border-radius: 4px;
  font-family: var(--wp--preset--font-family--brand);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3333;
  color: #733305;
}

/* Two-tone heading */
.sun-sh__heading {
  margin: 0;
  max-width: 800px;
  text-align: center;
  font-family: var(--wp--preset--font-family--brand);
  font-size: clamp(29px, 3.75vw, 48px);
  font-weight: 500;
  line-height: 1.1667;
  letter-spacing: -0.48px;
  color: var(--sun-secondary);                   /* #132140 */
}
.sun-sh__accent { color: var(--sun-primary); }

/* Subhead */
.sun-sh__subhead { max-width: 800px; }
.sun-sh__subhead,
.sun-sh__subhead p {
  margin: 0;
  text-align: center;
  font-family: var(--wp--preset--font-family--brand);
  font-size: clamp(14px, 1.41vw, 18px);
  font-weight: 500;
  line-height: 1.3333;
  color: var(--sun-bluegrey);                    /* #4f5563 */
}

/* Optional CTA — centered primary button, 32px below the subhead. The inner
   flex gap already contributes, so subtract it to land on exactly 32px. */
.sun-sh__cta {
  margin: calc(32px - clamp(8px, 1.25vw, 16px)) 0 0;
  display: flex;
  justify-content: center;
}
.sun-sh__cta-btn .sun-sh__cta-icon { width: 16px; height: 16px; }

/* ---- Accent background variant (white on blue; pairs with accent textmedia) */
.sun-sh--bg-accent    { background: var(--sun-accent); }
.sun-sh--bg-secondary { background: var(--sun-secondary); }
.sun-sh--inverted .sun-sh__inner { padding-bottom: clamp(24px, 3vw, 40px); }
.sun-sh--inverted .sun-sh__heading,
.sun-sh--inverted .sun-sh__subhead,
.sun-sh--inverted .sun-sh__subhead p { color: var(--sun-base); }
.sun-sh--inverted .sun-sh__accent { color: var(--sun-base); }   /* orange reads muddy on blue */

/* ---- Page-header variant (H1). Figma PREISE 1267-20971: the page title is a
   step up from a section title — 56/64 instead of 48/56, a wider measure, and
   the standfirst in navy rather than bluegrey. Opt-in via the "H1" heading
   level so existing section-header instances are untouched. */
/* The breadcrumb block is position:absolute (breadcrumbs.css lifts it out of
   flow so the first section's background paints behind the fixed header), so it
   reserves no space and the page title has to clear it itself. 141px is exactly
   the breadcrumb box: 73px fixed header + 24px + 20px line + 24px — which puts
   the title flush under the breadcrumb row, as in Figma. */
.sun-sh--page .sun-sh__inner {
  padding-top: calc(73px + 24px + 20px + 24px);
  gap: 12px;
}
/* Technologie (Figma 1267-25532) adds 96px of air between breadcrumb and title;
   Preise (1267-20971) stays flush. Opt-in per instance via "Abstand oben". */
.sun-sh--page-space .sun-sh__inner {
  padding-top: calc(73px + 24px + 20px + 24px + clamp(48px, 5vw, 96px));
}

/* Figma paints the header band white and fades it into the page grey. The
   breadcrumb floats over this, which is what breadcrumbs.css expects of the
   first in-flow section. */
.sun-sh--page {
  background: linear-gradient(180deg, var(--sun-base) 0%, var(--sun-border) 100%);
}
.sun-sh--page .sun-sh__heading {
  max-width: 840px;
  font-size: clamp(32px, 4.38vw, 56px);
  line-height: 1.1429;                           /* 64/56 */
  letter-spacing: -0.01em;                       /* -0.56px @ 56px */
}
.sun-sh--page .sun-sh__subhead { max-width: 840px; }
.sun-sh--page .sun-sh__subhead,
.sun-sh--page .sun-sh__subhead p { color: var(--sun-secondary); }

/* Navy variant: Figma UMSTIEG 1432-18410 fills the pill orange with white text
   (LABEL Fullcolor) and drops the standfirst to #efefef. Scoped to the navy
   background so the blue accent variant on /produkt/ is untouched. */
.sun-sh--bg-secondary .sun-sh__label {
  background: var(--sun-primary);
  border-color: var(--sun-primary);
  color: var(--sun-base);
}
.sun-sh--bg-secondary .sun-sh__subhead,
.sun-sh--bg-secondary .sun-sh__subhead p { color: var(--sun-border); }   /* #efefef */
