/*
 * ATC 3.5.73 - one navigation typography and one neutral default appearance.
 * Only the PUBLIC site header is affected; the private management and member
 * workspaces, their navigation and all their data are deliberately untouched.
 */
body .atc-approved-design .shell > .head {
  --atc-nav-type: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --atc-nav-size: 14px;
  --atc-nav-weight: 700;
  --atc-nav-color: #193b57;
}

/* The desktop links, mobile links and account links use the SAME type settings.
   This deliberately includes Baufortschritt, rather than relying on its URL. */
body .atc-approved-design .shell > .head .atc-desktop-nav > a,
body .atc-approved-design .shell > .head .atc-mobile-menu-links a,
body .atc-approved-design .shell > .head .atc-mobile-menu > summary {
  font-family: var(--atc-nav-type) !important;
  font-size: var(--atc-nav-size) !important;
  font-weight: var(--atc-nav-weight) !important;
  font-style: normal !important;
  font-variant: normal !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

/* Ordinary menu items do not become badges, bold outliers or separate CTAs.
   The active page has only a fine underline in the same text colour. */
body .atc-approved-design .shell > .head .atc-desktop-nav > a.atc-nav-main,
body .atc-approved-design .shell > .head .atc-desktop-nav > a.atc-session-logout,
body .atc-approved-design .shell > .head .atc-mobile-menu-links > a,
body .atc-approved-design .shell > .head .atc-mobile-menu-account > a:not(.atc-mobile-primary) {
  color: var(--atc-nav-color) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  opacity: 1 !important;
}
body .atc-approved-design .shell > .head .atc-desktop-nav > a.atc-nav-main[aria-current="page"],
body .atc-approved-design .shell > .head .atc-mobile-menu-links a[aria-current="page"] {
  color: var(--atc-nav-color) !important;
  border: 0 !important;
  background: transparent !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 5px !important;
}
body .atc-approved-design .shell > .head .atc-desktop-nav > a.atc-nav-main:hover,
body .atc-approved-design .shell > .head .atc-mobile-menu-links > a:hover,
body .atc-approved-design .shell > .head .atc-desktop-nav > a.atc-session-logout:hover {
  color: var(--atc-nav-color) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 5px !important;
}
body .atc-approved-design .shell > .head .atc-mobile-menu-links a > span[aria-hidden="true"] {
  color: #64869f !important;
  font-size: 18px !important;
  font-weight: 400 !important;
}

/* "Anmelden" and "Mein Clubbereich" are account ACTIONS, not ordinary
   editorial menu items. Keep their button treatment consistent on both sizes. */
body .atc-approved-design .shell > .head .atc-desktop-nav > a.atc-home-portal,
body .atc-approved-design .shell > .head .atc-mobile-menu-account > a.atc-mobile-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 10px 14px !important;
  color: #fff !important;
  background: #1767a7 !important;
  border: 1px solid #1767a7 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
body .atc-approved-design .shell > .head .atc-desktop-nav > a.atc-home-portal:hover,
body .atc-approved-design .shell > .head .atc-mobile-menu-account > a.atc-mobile-primary:hover {
  background: #125588 !important;
  border-color: #125588 !important;
  color: #fff !important;
}
/* Preserve the mobile grid's full-width action and its independent login state. */
@media (max-width: 1300px) {
  body .atc-approved-design .shell > .head .atc-mobile-menu-account > a.atc-mobile-primary {
    display: flex !important;
    justify-content: space-between !important;
  }
  body .atc-approved-design .shell > .head .atc-mobile-menu-links a[aria-current="page"] {
    background: transparent !important;
  }
}

/* The legacy Kadence / Gutenberg header may appear on pages outside the
   standalone public templates. Normalize ONLY its main navigation, too. */
body :is(#masthead, .site-header, .wp-site-blocks > header) nav.atc-refined-nav a,
body :is(#masthead, .site-header, .wp-site-blocks > header) :is(.header-navigation, .mobile-navigation, .wp-block-navigation) a {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-variant: normal !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
body :is(#masthead, .site-header, .wp-site-blocks > header) nav.atc-refined-nav a.atc-nav-join,
body :is(#masthead, .site-header, .wp-site-blocks > header) nav.atc-refined-nav a.atc-nav-build-progress,
body :is(#masthead, .site-header, .wp-site-blocks > header) nav.atc-refined-nav .atc-build-nav-item > a {
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}
/* Decorative chevrons on account actions remain readable on the blue surface. */
body .atc-approved-design .shell > .head .atc-mobile-menu-account > a.atc-mobile-primary > span[aria-hidden="true"] {
  color: #fff !important;
}
