/* Shared production palette for existing Moveo navigation and footers.
   Load after page and palette CSS. Keep the original DOM, menu visibility,
   breakpoints, CMS hooks, footer content and mobile-action positioning intact. */
:is(.moveo-subpage, .moveo-home) .site-header {
  top: 0 !important;
  height: 92px !important;
  padding-top: 0 !important;
  color: #303536 !important;
  background: rgb(255 255 255 / 98%) !important;
  border-bottom: 1px solid #d3e4ee !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
:is(.moveo-subpage, .moveo-home) .site-header .header-inner {
  width: min(1320px, calc(100% - 48px)) !important;
  height: 100% !important;
  min-height: 92px !important;
  margin-inline: auto;
}
:is(.moveo-subpage, .moveo-home) .site-header a.brand {
  width: 110px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}
:is(.moveo-subpage, .moveo-home) .site-header .brand img {
  display: block;
  width: 110px !important;
  height: 70px !important;
  padding: 0 !important;
  object-fit: contain;
  filter: none !important;
}

/* Explicit link and hover colors prevent old white-on-dark scoped rules leaking
   into the new white header. Do not change nav display or hamburger transforms. */
:is(.moveo-subpage, .moveo-home) .site-header :is(.desktop-nav, .main-nav, .nav),
:is(.moveo-subpage, .moveo-home) .site-header :is(.desktop-nav, .main-nav, .nav) a,
:is(.moveo-subpage, .moveo-home) .site-header :is(.nav-link, .member-link, .back) {
  color: #303536 !important;
  font-size: 14px !important;
}
:is(.moveo-subpage, .moveo-home) .site-header :is(.desktop-nav, .main-nav, .nav) a {
  font-weight: 650;
}
:is(.moveo-subpage, .moveo-home) .site-header :is(.desktop-nav, .main-nav, .nav) a:is(:hover, .active, [aria-current]),
:is(.moveo-subpage, .moveo-home) .site-header :is(.nav-link, .member-link, .back):hover {
  color: #0876ae !important;
}
:is(.moveo-subpage, .moveo-home) .site-header :is(.desktop-nav a, .nav-link)::after {
  background: #0876ae !important;
}
:is(.moveo-subpage, .moveo-home) .site-header .back {
  min-height: 44px;
  border: 1px solid #c9dfe9 !important;
  border-radius: 12px !important;
  background: #fff !important;
}
:is(.moveo-subpage, .moveo-home) .site-header :is(.menu-button, .menu-toggle) {
  color: #0876ae !important;
  background: #fff !important;
  border: 1px solid #d3e4ee !important;
  border-radius: 10px !important;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

/* Open/closed state continues to be controlled by each page's original script. */
:is(.moveo-subpage, .moveo-home) :is(.mobile-nav, .mobile-menu) {
  top: 92px !important;
  max-height: calc(100dvh - 92px);
  overflow-y: auto !important;
  overscroll-behavior: contain;
  color: #303536 !important;
  background: #fff !important;
  border-top: 1px solid #d3e4ee !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
:is(.moveo-subpage, .moveo-home) :is(.mobile-nav, .mobile-menu)[hidden] { display: none !important; }
:is(.moveo-subpage, .moveo-home) :is(.mobile-nav, .mobile-menu) a {
  color: #303536 !important;
  border-color: #d8e5ed !important;
}
:is(.moveo-subpage, .moveo-home) :is(.mobile-nav, .mobile-menu) a:is(:hover, .active, [aria-current]) {
  color: #0876ae !important;
}

/* Only shell actions are covered here; content buttons belong to page palettes. */
:is(.moveo-subpage, .moveo-home) :is(.site-header, .mobile-nav, .mobile-menu, .mobile-sticky, footer) .btn,
:is(.moveo-subpage, .moveo-home) .mobile-sticky-cta {
  color: #fff !important;
  background: #0876ae !important;
  border-color: #0876ae !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
:is(.moveo-subpage, .moveo-home) :is(.site-header, .mobile-nav, .mobile-menu, .mobile-sticky, footer) .btn:hover,
:is(.moveo-subpage, .moveo-home) .mobile-sticky-cta:hover {
  color: #fff !important;
  background: #075e8b !important;
  border-color: #075e8b !important;
}
:is(.moveo-subpage, .moveo-home) .site-header .btn {
  min-height: 46px;
  font-size: 14px !important;
  line-height: 1.4;
}
:is(.moveo-subpage, .moveo-home) :is(.site-header, .mobile-nav, .mobile-menu, .mobile-sticky) :is(a, button):focus-visible,
:is(.moveo-subpage, .moveo-home) .mobile-sticky-cta:focus-visible {
  outline: 3px solid #0876ae !important;
  outline-offset: 4px !important;
}

/* Preserve every footer column, contact link and staffed/unattended-hours row. */
:is(.moveo-subpage, .moveo-home) footer {
  color: #eef2f3 !important;
  background: #303536 !important;
}
:is(.moveo-subpage, .moveo-home) footer :is(p, address, span, li),
:is(.moveo-subpage, .moveo-home) footer a:not(.btn) {
  color: #eef2f3 !important;
}
:is(.moveo-subpage, .moveo-home) footer :is(h2, h3, strong, .footer-title) { color: #fff !important; }
:is(.moveo-subpage, .moveo-home) footer :is(.footer-copy, .footer-links, .footer-col a, .footer-bottom) {
  font-size: 14px !important;
}
:is(.moveo-subpage, .moveo-home) footer .footer-bottom {
  color: #eef2f3 !important;
  border-color: #646b6c !important;
}
:is(.moveo-subpage, .moveo-home) footer a:not(.btn):hover {
  color: #a8d9f2 !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}
:is(.moveo-subpage, .moveo-home) footer :is(a, button):focus-visible {
  outline: 3px solid #a8d9f2 !important;
  outline-offset: 4px !important;
}
/* The official blue/black footer logo needs its existing light plaque. */
:is(.moveo-subpage, .moveo-home) footer :is(img.footer-brand, .footer-brand > img) {
  box-sizing: border-box;
  width: 146px !important;
  max-width: 100%;
  height: auto !important;
  padding: 6px 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  filter: none !important;
}

/* AGB/privacy use a relative header. Do not turn it into a fixed one or count
   that header twice in the hero padding ported from the fixed-header preview. */
.moveo-subpage:is([data-moveo-page="agb"], [data-moveo-page="datenschutz"]) .site-header {
  position: relative !important;
  height: auto !important;
}
.moveo-subpage:is([data-moveo-page="agb"], [data-moveo-page="datenschutz"]) .header-inner {
  height: auto !important;
}
.moveo-subpage:is([data-moveo-page="agb"], [data-moveo-page="datenschutz"]) .hero {
  min-height: 0 !important;
  padding: 56px 0 64px !important;
}

@media (max-width: 760px) {
  :is(.moveo-subpage, .moveo-home) .site-header { height: 82px !important; }
  :is(.moveo-subpage, .moveo-home) .site-header .header-inner {
    width: calc(100% - 36px) !important;
    min-height: 82px !important;
  }
  :is(.moveo-subpage, .moveo-home) .site-header a.brand,
  :is(.moveo-subpage, .moveo-home) .site-header .brand img { width: 92px !important; }
  :is(.moveo-subpage, .moveo-home) .site-header .brand img { height: 60px !important; }
  :is(.moveo-subpage, .moveo-home) :is(.mobile-nav, .mobile-menu) {
    top: 82px !important;
    max-height: calc(100dvh - 82px);
  }
  .moveo-subpage:is([data-moveo-page="agb"], [data-moveo-page="datenschutz"]) .site-header { height: auto !important; }
  .moveo-subpage:is([data-moveo-page="agb"], [data-moveo-page="datenschutz"]) .hero { padding: 36px 0 48px !important; }
}
