html body.qm-global-header-active.page #main-header,
html body.qm-global-header-active.page #top-header,
html body.qm-global-header-active #main-header,
html body.qm-global-header-active #top-header {
  display: none !important;
}

body.qm-global-header-active #page-container {
  padding-top: 0 !important;
}

.qm-global-header-shell {
  width: min(1180px, calc(100% - 100px));
  margin: 24px auto 0;
  position: relative;
  z-index: 9999;
  overflow: visible;
}

body.qm-global-header-active .qm-site-header {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px;
  overflow: visible;
  font-family: Arial, Helvetica, sans-serif !important;
}

html[lang^="de"] .qm-global-header-shell {
  width: min(1280px, calc(100% - 48px));
}

body.qm-global-header-active .qm-site-header > img {
  display: block;
  width: min(300px, 42vw) !important;
  max-width: min(300px, 42vw) !important;
  height: auto !important;
}

body.qm-global-header-active .qm-site-header .qm-site-tools {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  width: auto !important;
  flex: 0 1 auto !important;
  min-width: 0;
  overflow: visible;
}

body.qm-global-header-active .qm-site-header .qm-nav {
  width: auto !important;
  position: relative !important;
  z-index: 2147483001 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

body.qm-global-header-active .qm-site-header .qm-nav > a {
  margin-left: 16px;
  color: #393631;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

body.qm-global-header-active .qm-site-header .qm-nav > a.qm-contact-link {
  padding: 14px 18px;
  background: #0d0d0d;
  color: #fff;
}

body.qm-global-header-active .qm-site-header .qm-custom-menu {
  position: relative !important;
  z-index: 2147483002 !important;
  display: inline-flex;
  align-items: center;
  margin-left: 16px;
  overflow: visible !important;
}

body.qm-global-header-active .qm-site-header .qm-custom-menu > a {
  color: #393631;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

body.qm-global-header-active .qm-site-header .qm-custom-menu > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #393631;
  vertical-align: middle;
}

body.qm-global-header-active .qm-site-header .qm-custom-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  padding: 8px 0;
  display: none !important;
  background: #f8f8f3 !important;
  border: 1px solid #dcded6 !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .12) !important;
  z-index: 2147483647 !important;
  overflow: visible !important;
}

body.qm-global-header-active .qm-site-header .qm-custom-menu:hover > .qm-custom-dropdown,
body.qm-global-header-active .qm-site-header .qm-custom-menu:focus-within > .qm-custom-dropdown,
body.qm-global-header-active .qm-site-header .qm-custom-menu.is-open > .qm-custom-dropdown {
  display: block !important;
}

body.qm-global-header-active .qm-site-header .qm-custom-dropdown > a {
  display: block !important;
  min-width: 190px !important;
  padding: 12px 15px !important;
  margin: 0 !important;
  color: #393631 !important;
  background: #f8f8f3 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body.qm-global-header-active .qm-site-header .qm-custom-dropdown > a:hover,
body.qm-global-header-active .qm-site-header .qm-custom-dropdown > a:focus {
  background: #0d0d0d !important;
  color: #fff !important;
}

body.qm-global-header-active .qm-site-header .qm-language-switcher {
  position: relative !important;
  z-index: 2147483002 !important;
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: 42px;
  margin-left: 14px;
  vertical-align: middle;
  overflow: visible !important;
}

body.qm-global-header-active .qm-site-header .qm-language-switcher .qm-lang-current,
body.qm-global-header-active .qm-site-header .qm-language-switcher .qm-lang-options a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 42px;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 8px !important;
  background: #f8f8f3 !important;
  border: 1px solid #dcded6 !important;
  color: #393631 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

body.qm-global-header-active .qm-site-header .qm-language-switcher .qm-lang-current {
  cursor: pointer;
}

body.qm-global-header-active .qm-site-header .qm-language-switcher .qm-lang-options {
  position: absolute;
  top: 100%;
  right: 0;
  display: none !important;
  flex-direction: column;
  width: 58px;
  background: #f8f8f3;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  z-index: 2147483647 !important;
}

body.qm-global-header-active .qm-site-header .qm-language-switcher:hover .qm-lang-options,
body.qm-global-header-active .qm-site-header .qm-language-switcher:focus-within .qm-lang-options,
body.qm-global-header-active .qm-site-header .qm-language-switcher.is-open .qm-lang-options {
  display: flex !important;
}

body.qm-global-header-active .qm-site-header .qm-language-switcher .qm-lang-options a {
  border-top: 0 !important;
}

@media (min-width: 981px) {
  body.qm-global-header-active .qm-site-header .qm-custom-lab-menu > .qm-custom-lab-dropdown {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
  }

  body.qm-global-header-active .qm-site-header .qm-site-mobile-language {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .qm-global-header-shell {
    width: calc(100% - 48px);
    margin-top: 20px;
  }

  body.qm-global-header-active .qm-site-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 12px 16px !important;
  }

  body.qm-global-header-active .qm-site-header > img {
    grid-area: 1 / 1 !important;
    width: min(240px, calc(100vw - 92px)) !important;
    max-width: min(240px, calc(100vw - 92px)) !important;
  }

  body.qm-global-header-active .qm-site-header .qm-mobile-toggle {
    grid-area: 1 / 2 !important;
    display: inline-flex !important;
  }

  body.qm-global-header-active .qm-site-header .qm-site-tools {
    grid-area: 2 / 1 / auto / -1 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }

  body.qm-global-header-active .qm-site-header .qm-nav {
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: none !important;
    white-space: normal !important;
  }

  body.qm-global-header-active .qm-site-header.qm-mobile-open .qm-nav {
    display: flex !important;
  }

  body.qm-global-header-active .qm-site-header .qm-nav > a,
  body.qm-global-header-active .qm-site-header .qm-custom-menu,
  body.qm-global-header-active .qm-site-header .qm-custom-menu > a {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  body.qm-global-header-active .qm-site-header .qm-nav > a,
  body.qm-global-header-active .qm-site-header .qm-custom-menu > a {
    margin: 0 !important;
    padding: 12px 0 !important;
    color: #393631 !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  body.qm-global-header-active .qm-site-header .qm-nav > a.qm-contact-link {
    padding: 12px 14px !important;
    background: #0d0d0d !important;
    color: #fff !important;
  }

  body.qm-global-header-active .qm-site-header .qm-custom-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    margin-left: 0 !important;
  }

  body.qm-global-header-active .qm-site-header .qm-custom-dropdown {
    display: none !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  body.qm-global-header-active .qm-site-header .qm-custom-menu.is-open > .qm-custom-dropdown {
    display: block !important;
  }

  body.qm-global-header-active .qm-site-header .qm-custom-dropdown > a {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  body.qm-global-header-active .qm-site-header .qm-language-switcher {
    width: 100% !important;
    height: 38px !important;
    margin: 0 !important;
  }

  body.qm-global-header-active .qm-site-header .qm-language-switcher .qm-lang-current,
  body.qm-global-header-active .qm-site-header .qm-language-switcher .qm-lang-options,
  body.qm-global-header-active .qm-site-header .qm-language-switcher .qm-lang-options a {
    width: 56px !important;
    min-width: 56px !important;
  }

  body.qm-global-header-active .qm-site-header .qm-language-switcher .qm-lang-current,
  body.qm-global-header-active .qm-site-header .qm-language-switcher .qm-lang-options a {
    height: 38px !important;
  }
}
