/* Breadcrumbs (sunrise/breadcrumbs) — Figma 339:5089 "BREADCRUMBS".
   Full-width row above the hero: py 24px, horizontal padding matches the
   header chrome; Copy-S 14/20 in Middle BlueGrey, 8px gaps, orange slash. */

.sun-breadcrumbs {
  /* First block in flow on detail pages — clear the fixed header (~73px). */
  padding: calc(73px + 24px) clamp(16px, 3vw, 40px) 24px;
}

/* Let the first section's background fill behind the fixed header on detail
   pages. The header (position:fixed, transparent) is meant to overlay the first
   section — on the front page the hero is the top-most in-flow block, so its
   gradient paints behind the header. On detail pages the breadcrumb is injected
   as a real in-flow block BEFORE the hero, so it (transparent) sat behind the
   header and the page's gray background showed through.
   Fix: lift the breadcrumb out of flow so the hero becomes the top-most in-flow
   element again — its gradient starts at y=0 behind the header, exactly like the
   front page. The breadcrumb keeps its 73+24px top padding, so its text still
   sits below the header, now floating over the hero gradient. Gradient-agnostic
   (works for any first section, light or dark). Job detail pages
   (templates/single-stelle.html) place the crumb in <main class="sun-job-page">,
   reference pages (templates/single-referenz.html) in <main class="sun-ref-page">. */
.wp-block-post-content:has(> .sun-breadcrumbs),
.sun-job-page:has(> .sun-breadcrumbs),
.sun-ref-page:has(> .sun-breadcrumbs) { position: relative; }
.wp-block-post-content > .sun-breadcrumbs,
.sun-job-page > .sun-breadcrumbs,
.sun-ref-page > .sun-breadcrumbs {
  position: absolute;
  inset-block-start: 0;   /* top of the content box, which the admin bar already offsets */
  inset-inline: 0;
  z-index: 2;             /* above the hero gradient; below the fixed header (z-100) */
}
/* The out-of-flow crumb still counts as a sibling for the block gap: no gap
   above the content, so the first section starts at y=0 behind the header. */
.sun-ref-page > .sun-breadcrumbs ~ .wp-block-post-content { margin-block-start: 0; }   /* (a JSON-LD <script> sits in between) */
/* Same for the first block after the crumb inside the content (JSON-LD <script> in
   between). Blocks aligned „full" already have no gap; any other alignment (none /
   wide) got the 32px block gap — the grey page background showed as a band behind
   the transparent header (e.g. /support/ticket-system/, 2026-11-24). */
.wp-block-post-content > .sun-breadcrumbs + script + *,
.wp-block-post-content > .sun-breadcrumbs + :not(script),
.sun-job-page > .sun-breadcrumbs + script + *,
.sun-job-page > .sun-breadcrumbs + :not(script) { margin-block-start: 0; }

.sun-breadcrumbs__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--wp--preset--font-size--sm, 14px);
  line-height: 20px;
  color: var(--wp--preset--color--bluegrey, #4f5563);
}

.sun-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sun-breadcrumbs__link {
  color: inherit;
  text-decoration: none;
}

.sun-breadcrumbs__link:hover {
  color: var(--wp--preset--color--secondary, #132140);
  text-decoration: underline;
}

.sun-breadcrumbs__slash {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--wp--preset--color--primary, #ff710a);
}
