/* B5 only. Colors and UI typography continue to come from B1/B2/B4. */
.lg-header { background: #FFFDFC; padding: 24px 48px; position: relative; }
.lg-header[data-offer-open="true"] { background: #FBFAFC; padding-bottom: 96px; }
.lg-header-inner { max-width: 1200px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.lg-logo { display: block; width: 280px; flex-shrink: 0; cursor: pointer; }
.lg-logo picture, .lg-logo img { display: block; width: 100%; height: auto; }
.lg-header .lg-nav { font-size: 16px; line-height: 1.5; }
.lg-header .lg-menu, .lg-header .sub-menu { list-style: none; margin: 0; padding: 0; }
.lg-header .lg-menu { display: flex; align-items: center; gap: 32px; }
.lg-header .lg-menu > li { position: relative; }
.lg-header .lg-nav a, .lg-header .lg-angebot-toggle { display: block; white-space: nowrap; }
.lg-header .lg-angebot-toggle, .lg-header .lg-menu-toggle { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; cursor: pointer; font-size: inherit; line-height: inherit; }
.lg-header .lg-angebot-toggle:hover, .lg-header .lg-angebot-toggle:focus { background: transparent; }
.lg-header .sub-menu { position: absolute; left: 0; top: 100%; padding-top: 24px; min-width: max-content; }
.lg-header .sub-menu a { padding-block: 6px; }
.lg-header [hidden] { display: none !important; }
.lg-header .lg-menu-toggle { width: 36px; height: 36px; color: #3F4850; }
.lg-menu-toggle span, .lg-menu-toggle span::before, .lg-menu-toggle span::after { display: block; height: 2px; width: 24px; background: currentColor; position: relative; margin: auto; }
.lg-menu-toggle span::before, .lg-menu-toggle span::after { content: ""; position: absolute; left: 0; }
.lg-menu-toggle span::before { top: -7px; }
.lg-menu-toggle span::after { top: 7px; }
@media (max-width: 1024px) {
  .lg-header, .lg-header[data-offer-open="true"] { padding: 24px 32px; }
  .lg-header-inner { flex-wrap: wrap; gap: 24px; }
  .lg-header .lg-nav { flex-basis: 100%; }
  .lg-header .lg-menu { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .lg-header .sub-menu { position: static; padding: 12px 0 0 20px; min-width: 0; }
  .lg-header .lg-nav a, .lg-header .lg-angebot-toggle { white-space: normal; }
}
@media (max-width: 767px) {
  .lg-header, .lg-header[data-offer-open="true"] { padding: 20px; }
  .lg-logo { width: min(220px, calc(100vw - 100px)); }
}

/* B5.1: optical alignment compensates transparent margins in unchanged logo files. */
.lg-header { padding-block: 27px; }
.lg-logo { --lg-logo-width: 315px; width: var(--lg-logo-width); margin-left: calc(var(--lg-logo-width) * -0.08821); }
.lg-header .lg-nav { display: flex; align-items: center; gap: 36px; font-size: 18px; }
.lg-header .lg-menu { gap: 36px; }
.lg-header .lg-header-phone { display: flex; align-items: center; justify-content: center; width: 48px; min-height: 44px; flex-shrink: 0; }
.lg-header-phone img { display: block; width: 48px; height: 32px; object-fit: contain; }
.lg-header .lg-menu-toggle { width: 40.5px; height: 40.5px; }
@media (max-width: 1024px) {
  .lg-header, .lg-header[data-offer-open="true"] { padding-block: 27px; }
  .lg-header .lg-nav { flex-direction: column; align-items: flex-start; gap: 22.5px; }
  .lg-header .lg-menu { gap: 22.5px; }
}
@media (max-width: 767px) {
  .lg-header, .lg-header[data-offer-open="true"] { padding-block: 22.5px; }
  .lg-logo { --lg-logo-width: min(247.5px, calc(100vw - 90px)); margin-left: calc(var(--lg-logo-width) * -0.085625); }
}
