/* Blog hero — Figma BLOGÜBERSICHT 1454-23257 ("FAQs Image" frame, 1920×976).
   Values extracted with dtc (out: scratchpad/dtc-bloghero). Navy band, orange
   H1, 600|600 columns (gap 80): copy + newsletter + socials | "Aktuell
   empfohlen" carousel of sticky posts. Cards reuse .sun-blog__card (blog-teaser). */
.sun-bh {
  /* The fixed 73px site header floats over the first section; Figma paints
     that strip white and starts the navy band at 84 (= header height). */
  --sun-bh-header: 73px;
  background: linear-gradient(to bottom, var(--sun-base) 0 var(--sun-bh-header), var(--sun-secondary) var(--sun-bh-header)); /* white strip, then #132140 */
  color: var(--sun-border);                         /* #efefef */
  padding: calc(var(--sun-bh-header) + clamp(48px, 5vw, 96px)) 0 clamp(48px, 5vw, 96px);
}
.sun-bh__inner {
  box-sizing: border-box;
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 2.9vw, 56px);
}

/* Head: fullcolor label + centred orange H1 (56/64, -0.56) */
.sun-bh__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sun-bh__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: 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.3333; color: #fff;
}
.sun-bh__heading {
  margin: 0; max-width: 800px;
  font-family: var(--wp--preset--font-family--brand);
  font-size: clamp(34px, 2.9vw, 56px); font-weight: 500; line-height: 1.1429; letter-spacing: -0.01em;
  color: var(--sun-primary);
}

/* Columns */
.sun-bh__cols { display: flex; gap: clamp(32px, 4.2vw, 80px); align-items: stretch; }
.sun-bh__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: clamp(24px, 2.1vw, 40px); }

.sun-bh__desc {
  margin: 0;
  font-family: var(--wp--preset--font-family--brand);
  font-size: clamp(24px, 2.1vw, 40px); font-weight: 500; line-height: 1.2; letter-spacing: -0.005em;
  color: var(--sun-border);
}

/* Newsletter box */
.sun-bh__nl {
  box-sizing: border-box;
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px;
  background: rgba(79, 85, 99, .2);
  border: 1px solid var(--sun-primary); border-radius: 16px;
}
.sun-bh__nl-title {
  margin: 0;
  font-family: var(--wp--preset--font-family--brand);
  font-size: clamp(22px, 1.7vw, 32px); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; /* Figma text (556) overflows its 552 box by design; -0.01em keeps one line */
  color: var(--sun-primary);
}
.sun-bh__nl-text { margin: 4px 0 0; font-size: 16px; line-height: 1.5; color: var(--sun-border); }
.sun-bh__nl-row { display: flex; gap: 12px; align-items: stretch; }
.sun-bh__nl-field {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 16px;
  background: rgba(79, 85, 99, .5);
  border: 0; border-bottom: 1px solid var(--sun-border); border-radius: 4px 4px 0 0;
}
.sun-bh__nl-field:focus-within { border-bottom-color: var(--sun-primary); }
.sun-bh__nl-icon { flex: none; width: 26px; height: 26px; color: var(--sun-border); }
.sun-bh__nl-input {
  flex: 1 1 0; min-width: 0; min-height: 30px;
  background: transparent; border: 0; outline: 0;
  font-family: var(--wp--preset--font-family--brand); font-size: 14px; line-height: 1.4286; color: #fff;
}
.sun-bh__nl-input::placeholder { color: var(--sun-border); opacity: 1; }
.sun-bh__nl-btn { flex: none; }
.sun-bh__nl-hp { position: absolute; left: -9999px; }
.sun-bh__nl-msg { margin: 0; font-size: 14px; line-height: 1.4286; color: var(--sun-border); }
.sun-bh__nl-msg--ok { color: #9be39b; }

/* Socials */
.sun-bh__social { display: flex; flex-direction: column; gap: 12px; }
.sun-bh__social-title {
  margin: 0;
  font-family: var(--wp--preset--font-family--brand);
  font-size: 18px; font-weight: 500; line-height: 1.3333; color: var(--sun-muted);   /* #b6bac4 */
}
.sun-bh__social-list { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sun-bh__social-link {
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: #fff; border: 1px solid var(--sun-border); border-radius: 4px;
  color: var(--sun-secondary);
  transition: background-color .2s ease, color .2s ease;
}
.sun-bh__social-link:hover, .sun-bh__social-link:focus-visible { background: var(--sun-primary); color: #fff; border-color: var(--sun-primary); }
.sun-bh__social-link .sun-icon { width: 26px; height: 26px; }

/* Carousel */
.sun-bh__col--slider { gap: 24px; }
.sun-bh__slider-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sun-bh__slider-title {
  margin: 0;
  font-family: var(--wp--preset--font-family--brand);
  font-size: clamp(18px, 1.25vw, 24px); font-weight: 500; line-height: 1.3333; text-transform: uppercase; color: #fff;
}
.sun-bh__arrows { display: flex; gap: 8px; }
.sun-bh__arrow {
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  background: rgba(79, 85, 99, .2); border: 1px solid var(--sun-bluegrey); border-radius: 4px;
  color: #fff; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.sun-bh__arrow--next { background: var(--sun-primary); border-color: var(--sun-primary); }
.sun-bh__arrow:hover { border-color: var(--sun-primary); }
.sun-bh__arrow--next:hover { background: var(--sun-primary-hover); border-color: var(--sun-primary-hover); }
.sun-bh__arrow:disabled { opacity: .35; cursor: default; }
.sun-bh__arrow .sun-icon { width: 32px; height: 32px; }
.sun-bh__arrow--prev .sun-icon { transform: scaleX(-1); }

.sun-bh__track {
  display: flex; gap: 24px;
  margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sun-bh__track::-webkit-scrollbar { display: none; }
.sun-bh__track { align-items: stretch; }
.sun-bh__slide { flex: 0 0 min(460px, 100%); display: flex; scroll-snap-align: start; }
/* Card on navy: white, 28px padding, radius 4, date as navy pill, 24px title. */
.sun-bh .sun-blog__card {
  width: 100%; padding: 28px; border-radius: 4px; background: #fff;
}
.sun-bh .sun-blog__date {
  display: inline-flex; align-items: center; min-height: 28px; padding: 3.5px 8px 4.5px;
  background: var(--sun-secondary); border-radius: 4px;
  font-size: 12px; font-weight: 500; line-height: 1.3333; color: #fff;
}
.sun-bh .sun-blog__title { font-size: 24px; line-height: 1.3333; letter-spacing: 0; }
.sun-bh .sun-blog__card--linked:hover { background: #fff; }

.sun-bh__dots { display: flex; gap: 8px; padding-top: 8px; margin: 0; list-style: none; }
.sun-bh__dot {
  width: 32px; height: 2px; padding: 0; border: 0; border-radius: 8px;
  background: var(--sun-bluegrey); cursor: pointer;
  transition: width .25s ease, background-color .25s ease;
}
.sun-bh__dot[aria-current="true"] { width: 95px; background: var(--sun-primary); }

@media (max-width: 1024px) {
  .sun-bh__cols { flex-direction: column; }
}
@media (max-width: 640px) {
  .sun-bh__nl-row { flex-direction: column; }
  .sun-bh__nl-btn { align-self: flex-start; }
  .sun-bh .sun-blog__card { padding: 20px; }
  .sun-bh .sun-blog__title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sun-bh__track { scroll-behavior: auto; }
}
