/* GHZ Radstadt: project-specific header and footer layout. */
@media only screen and (min-width: 1000px) {
  #header-outer #top nav > ul > li > a .ghz-menu-line {
    display: block;
    white-space: nowrap;
    line-height: 1.25;
  }

  /* Keep the image column full-height; center the adjacent link columns. */
  #header-outer #top nav > ul > .megamenu.nectar-megamenu-menu-item > .sub-menu > li.menu-item-has-children {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Use the whole header height so the indicator meets its bottom edge. */
  #header-outer #top nav > ul.sf-menu > li > a {
    height: 100%;
    display: flex;
    align-items: center;
  }
  #header-outer #top nav > ul.sf-menu > li > a > .menu-title-text::after {
    display: none;
  }
  #header-outer #top nav > ul.sf-menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    border: 0;
    background: #a1c854;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }
  #header-outer #top nav > ul.sf-menu > li:is(:hover, .sfHover, .current-menu-item, .current-menu-parent, .current-menu-ancestor) > a,
  #header-outer #top nav > ul.sf-menu > li > a:is(:focus-visible, [aria-current="page"]) {
    color: #a1c854 !important;
  }
  #header-outer #top nav > ul.sf-menu > li:is(:hover, .sfHover, .current-menu-item, .current-menu-parent, .current-menu-ancestor) > a::after,
  #header-outer #top nav > ul.sf-menu > li > a:is(:focus-visible, [aria-current="page"])::after {
    transform: scaleX(1);
  }

  /* Native image columns: edge-to-edge photo and optional overlapping icon. */
  #header-outer #top nav > ul > .nectar-megamenu-menu-item > .sub-menu {
    border-top: 0;
  }
  #header-outer #top .nectar-megamenu-menu-item > .sub-menu > li:first-child.menu-item-hidden-text:has(.image-layer) {
    padding: 0;
    display: flex;
    z-index: 2;
  }
  #header-outer #top .nectar-megamenu-menu-item > .sub-menu > li:first-child.menu-item-hidden-text:has(.image-layer) > a {
    padding: 0;
    width: 100%;
    display: flex;
  }
  #header-outer #top .nectar-megamenu-menu-item > .sub-menu > li:first-child.menu-item-hidden-text .nectar-ext-menu-item {
    position: relative;
    width: 100%;
    min-height: 320px;
  }
  #header-outer #top .nectar-megamenu-menu-item > .sub-menu > li:first-child.menu-item-hidden-text.menu-item-has-icon .inner-content {
    position: absolute;
    top: 25%;
    right: 0;
    width: auto;
    transform: translate(50%, -50%);
  }
  #header-outer #top .nectar-megamenu-menu-item > .sub-menu > li:first-child.menu-item-hidden-text .nectar-menu-icon-img,
  #header-outer #top .nectar-megamenu-menu-item > .sub-menu > li:first-child.menu-item-hidden-text .nectar-menu-icon {
    display: block;
    margin: 0;
    width: 64px;
    height: 64px;
    font-size: 64px;
    line-height: 1;
  }
  #header-outer #top .nectar-megamenu-menu-item > .sub-menu > li:first-child.menu-item-hidden-text.menu-item-has-icon + li {
    padding-left: 56px;
  }

  #header-outer[data-format="menu-left-aligned"][data-full-width="true"] #top > .container {
    padding-right: 0;
  }
  #header-outer[data-format="menu-left-aligned"] #top .right-aligned-menu-items {
    background-color: #384967;
    padding-right: 40px;
    padding-left: 28px;
    margin-left: auto;
  }
  /* Right-side dropdowns must not alternate alignment with Salient's edge check. */
  #header-outer #top .right-aligned-menu-items nav > ul > li.menu-item-has-children:not(.megamenu):not(.nectar-megamenu-menu-item) > .sub-menu {
    left: auto;
    right: 0;
    max-width: calc(100vw - 32px);
  }
  #header-outer #top .right-aligned-menu-items > nav > ul > li > a,
  #header-outer #top .right-aligned-menu-items #search-btn > div > a,
  #header-outer #top .right-aligned-menu-items #search-btn a span,
  #header-outer #top .right-aligned-menu-items #social-in-menu a,
  #header-outer #top .right-aligned-menu-items #social-in-menu i {
    color: #f1f4f5 !important; /* Salient's generated header color is important. */
  }
  #header-outer #top .right-aligned-menu-items > nav > ul > li > a:hover,
  #header-outer #top .right-aligned-menu-items > nav > ul > li > a:focus-visible,
  #header-outer #top .right-aligned-menu-items #search-btn > div > a:hover,
  #header-outer #top .right-aligned-menu-items #social-in-menu a:hover i,
  #header-outer #top .right-aligned-menu-items #social-in-menu a:focus-visible i {
    color: #a1c854 !important;
  }
}

/* Fit every action before Salient switches to its mobile navigation. */
@media only screen and (min-width: 1000px) and (max-width: 1250px) {
  #header-outer #top nav > ul.sf-menu > li > a {
    margin-left: 12px;
    margin-right: 12px;
  }
  #header-outer[data-format="menu-left-aligned"] #top .right-aligned-menu-items {
    padding-left: 20px;
    padding-right: 24px;
  }
  #header-outer #top .right-aligned-menu-items .buttons {
    margin-left: 14px;
  }
}

#gg #menu-footer-kontakt,
#gg #menu-footer-bottom-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
#gg #menu-footer-kontakt > li,
#gg #menu-footer-bottom-menu > li {
  list-style: none;
  margin: 0;
  padding: 0;
}
#gg #menu-footer-kontakt > li + li {
  border-top: 1px solid #91bbc4;
}
#gg #menu-footer-kontakt > li > a {
  display: block;
  padding: 0.65em 0 !important; /* Override the native menu widget's reset. */
}
#gg #menu-footer-kontakt > li:first-child > a {
  padding-top: 0 !important;
}
#gg #menu-footer-kontakt a:hover,
#gg #menu-footer-kontakt a:focus-visible,
#gg #menu-footer-bottom-menu a:hover,
#gg #menu-footer-bottom-menu a:focus-visible {
  color: #a1c854;
}
#gg #menu-footer-kontakt a:focus-visible,
#gg #menu-footer-bottom-menu a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
#gg #menu-footer-bottom-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5em 1.25em;
}
@media only screen and (max-width: 690px) {
  #gg #menu-footer-bottom-menu {
    justify-content: center;
  }
}
