/**----------------------------------- IMP MENU (siehe Rustika)--------------------------------*/

a.impmenu-toggle:not(.active) {
  background: transparent;
  font-weight: 500;
  pointer-events: all;
  border-radius: 100px;
  transition: all 0.5s cubic-bezier(0.65, 0.05, 0.36, 1) 0s;
  display: flex;
  align-items: center;
  line-height: var(--header-icons-line-height);
  padding: var(--gap-xs) 2.15rem;
  font-size: var(--font-size-btn);
  gap: var(--gap-xxs, 8px);
  font-family: var(--mainfont);
  color: var(--ast-global-color-3);
  background-color: var(--ast-global-color-1);
  border: 1px solid var(--ast-global-color-0);
}

#header.fixed-header a.impmenu-toggle:not(.active),
#header.small .header-wrapper.not-home a.impmenu-toggle:not(.active) {
  padding: calc(var(--gap-xs) / 1.3) 2.15rem;
}

.impmenu-toggle.active {
  position: absolute;
  font-size: var(--font-size-btn);
  left: calc(var(--header-space-X-1) + 2.15rem);
  top: calc(var(--gap-xs) + var(--header-space-Y));
  z-index: 999999;
}

#nav-wrapper {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  transform: scale(0);
  pointer-events: none;
  transition: all 0.7s cubic-bezier(0.46, 0.03, 0.52, 0.96) 0s;
  z-index: 9999;
  clip-path: circle(0% at 50% 50%);
}

#nav-wrapper.impmenu-active {
  transform: scale(1);
  clip-path: circle(70.7% at 50% 50%);
}

#main-nav {
  z-index: 9999;
  transition: all 0.5s ease 0s;
  --menu-items-padding: 70px;
  padding: 0;
  transition: all 0.5s ease 0s !important;
  position: fixed;
  left: 0;
  width: 100%;
  height: 100%;
  top: 0;
  pointer-events: all;
  background-color: var(--ast-global-color-3);
}

#menu-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  flex-direction: column;
}

#menu-wrapper-2 {
  gap: var(--gap-s);
  display: grid;
}

.menu-inner-wrapper {
  gap: clamp(55px, 15vw, 259px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#menu-wrapper::after {
  content: "";
  display: block;
  position: absolute;
  --my-size: clamp(224px, 28vw, 459px);
  width: var(--my-size);
  height: calc(var(--my-size) / 1.987012987012987);
  background-image: url(/wp-content/themes/astra-impuls-child/img/grafik-einleitung-seasons);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
  right: 0;
  bottom: 0;
  opacity: 0.2;
}

#menu-wrapper ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav#main-nav li.menu-item a {
  text-decoration: none;
  position: relative;
}

.menu-hauptmenu-container {
  height: 100%;
  width: var(--menu-width);
}

@media (min-width: 1025px) {
  #menu-hauptmenu {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #menu-wrapper #theme-logo {
    display: none;
  }
}

#menu-hauptmenu > .menu-item > a {
  font-family: var(--mainfont);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ast-global-color-1);
  line-height: 2.76;
}

.menu-item.current-menu-item > a.menu-link {
  color: var(--ast-global-color-0) !important;
}

#menu-hauptmenu > .menu-item.imp-sub-active > .menu-link {
  color: var(--ast-global-color-0) !important;
}

.imp-nav-target {
  display: flex;
  justify-content: space-between;
  width: 100%;
  z-index: 9;
  align-items: center;
}

.dropdown-menu-toggle.ast-header-navigation-arrow {
  display: none;
}

#menu-wrapper ul.sub-menu {
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}

#menu-wrapper ul.sub-menu .menu-item {
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.46, 0.03, 0.52, 0.96) 0s;
}

#menu-wrapper .imp-sub-active ul.sub-menu .menu-item {
  max-height: 4rem;
  transition-delay: 0.85s;
}

.ast-icon.icon-arrow {
  display: none;
}

@media (min-width: 1025px) {
  #menu-wrapper ul.sub-menu {
    width: calc(100% - var(--menu-width));
    position: absolute;
    right: 0;
    height: 100%;
    top: 50%;
    transform: translateY(-50%);
    padding-left: min(10vw, 113px);
  }
}

#menu-hauptmenu .sub-menu a {
  font-weight: 400;
  color: var(--ast-global-color-4);
  letter-spacing: 0.08em;
  line-height: 2.5;
  font-size: 1.15rem;
}

.sub-menu .current_page_item {
  text-decoration: underline;
}

nav#main-nav .sub-menu li.menu-item.current-menu-item > a {
  color: #fff !important;
  z-index: 9;
}

nav#main-nav
  .sub-menu
  li.menu-item.current-menu-item
  > a
  .imp-nav-target-txt::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  position: absolute;
  bottom: 0.6em;
}

#menu-wrapper ul.sub-menu {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 9;
}

.menu-item.sub-back-btn {
  margin-top: 4.2vh;
}

.menu-item.sub-back-btn span {
  display: flex;
  align-items: center;
}

.menu-item.sub-back-btn span::before {
  content: "";
  display: block;
  height: 1.1em;
  width: calc(1.1em / 2);
  background-image: url(/wp-content/themes/astra-impuls-child/img/nav-arrow.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  margin-right: 0.6em;
  margin-top: 0em;
  transition: all 0.5s ease 0s;
  rotate: 180deg;
}

/**jahreszeiten menu*/
span#nav-txt {
  color: #fff;
  font-family: var(--headlinefont);
  font-size: 2rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
}

span#nav-txt strong {
  color: var(--ast-global-color-0);
}

#menu-jahreszeiten-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-xs);
}

#menu-jahreszeiten-menu .menu-item {
  background-color: #fff;
  display: flex;
  border-radius: 20px;
  border: 3px solid #fff;
}

#menu-jahreszeiten-menu > .menu-item.current-menu-item,
#menu-jahreszeiten-menu > .menu-item.current-page-parent {
  border: 3px solid var(--ast-global-color-0);
}

#menu-jahreszeiten-menu .menu-link {
  font-family: var(--headlinefont);
  font-size: 2rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.06;
  color: var(--ast-global-color-0);
  text-align: center;
  padding: var(--gap-m) !important;
  gap: var(--gap-s);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#menu-jahreszeiten-menu .menu-link::before {
  content: "";
  display: block;
  --my-size: 3em;
  height: var(--my-size);
  width: calc(var(--my-size) * 1.052961290322581);
  background-size: contain;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

#menu-jahreszeiten-menu .fruehling .menu-link::before {
  background-image: url("/wp-content/uploads/icon-fruehling.svg");
}

#menu-jahreszeiten-menu .sommer .menu-link::before {
  background-image: url("/wp-content/uploads/icon-sommer.svg");
}

#menu-jahreszeiten-menu .herbst .menu-link::before {
  background-image: url("/wp-content/uploads/icon-herbst.svg");
}

#menu-jahreszeiten-menu .winter .menu-link::before {
  background-image: url("/wp-content/uploads/icon-winter.svg");
}

#menu-jahreszeiten-menu .imp-nav-target {
  text-align: center;
  justify-content: center;
}

/**animation*/
/*
#menu-hauptmenu>.menu-item {
    transition: all .5s cubic-bezier(.45, .05, .55, .95) 0s;
    transition-property: max-height, transform;
    transition-delay: 0s, 0.5s;
    transform: translateX(0);
}
*/

/*
#menu-hauptmenu.menu-child-sub-active>.menu-item:not(.imp-sub-active) {
    transform: translateX(-100%);
    max-height: 0;
    pointer-events: none;
    transition-delay: 0s, 0s;
}
*/

@media (min-width: 1025px) {
  #menu-hauptmenu > .menu-item {
    max-height: 100vh;
    display: flex;
  }

  #menu-wrapper ul.sub-menu {
    max-height: 0;
    transition: all 0.6s ease-in-out 0s;
    overflow: hidden;
    transition-delay: 0.5s, 0.5s;
    transition-property: transform, max-height;
  }

  #menu-wrapper .imp-sub-active ul.sub-menu {
    max-height: 100%;
    transition-property: transform, max-height;
  }
}

/**animation burger menu*/

#nav-icon3 {
  width: var(--nav-icon-width);
  height: var(--nav-icon-height);
  position: relative;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  cursor: pointer;
}

.impmenu-toggle.active #nav-icon3 {
  width: calc(var(--nav-icon-width) * 1.2);
  height: calc(var(--nav-icon-height) * 1.3);
}

.impmenu-toggle.active #nav-icon3 span {
  background-color: #fff;
}

.impmenu-toggle.active #nav-icon3 span:nth-child(1) {
  width: 100%;
  rotate: 45deg;
  top: calc(50% - (var(--burger-line-height) / 2));
}

.impmenu-toggle.active #nav-icon3 span:nth-child(2) {
  width: 100%;
  rotate: -45deg;
  top: calc(50% - (var(--burger-line-height) / 2));
  transform: unset;
  background-color: #fff !important;
}

#nav-icon3 span {
  display: block;
  position: absolute;
  height: var(--burger-line-height);
  width: 100%;
  background: var(--ast-global-color-3);
  border-radius: 0;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

#nav-icon3 span:nth-child(1) {
  top: 0;
}

#nav-icon3 span:nth-child(2),
#nav-icon3 span:nth-child(3) {
  top: calc(50% - (var(--burger-line-height) / 2));
  right: 0;
  left: unset;
}

#nav-icon3 span:nth-child(4) {
  bottom: 0;
}

.impmenu-active .impmenu-toggle:not(.active) #nav-icon3 span:nth-child(1) {
  top: 50%;
  width: 0%;
  left: 50%;
  transform: translateY(50%);
}

.impmenu-active .impmenu-toggle:not(.active) #nav-icon3 span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  background-color: var(--ast-global-color-0) !important;
}

.impmenu-active .impmenu-toggle:not(.active) #nav-icon3 span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  background-color: var(--ast-global-color-0) !important;
}

.impmenu-active .impmenu-toggle:not(.active) #nav-icon3 span:nth-child(4) {
  bottom: 50%;
  transform: translateY(-50%);
  width: 0%;
  left: 50%;
}

@media (min-width: 1920px) {
}

@media (max-width: 1024px) and (max-height: 900px) and (orientation: landscape) {
  #menu-jahreszeiten-menu .menu-link {
    font-size: 1.6rem;
  }

  #menu-hauptmenu > .menu-item > a {
    line-height: 2.46;
    font-size: 1.1rem;
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  #menu-jahreszeiten-menu .menu-link {
    font-size: 1.6rem;
  }

  #menu-hauptmenu > .menu-item > a {
    line-height: 2.46;
    font-size: 1.1rem;
  }

  #menu-wrapper-2 {
    display: grid;
    width: 100%;
    padding-bottom: 100px;
  }

  #nav-txt {
    width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  .menu-inner-wrapper {
    flex-direction: column;
    width: 100%;
    gap: var(--gap-m);
  }

  .menu-col.col-menu-1 {
    width: 100%;
  }

  #menu-jahreszeiten-menu .menu-item {
    border-radius: 0;
  }

  .imp-nav-target {
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 1024px) and (max-width: 1600px) {
  /*----------------- ELEMENT -------------*/

  /*----------------- END ELEMENT ---------*/
}

@media (max-width: 1500px) {
  /*----------------- ELEMENT -------------*/

  /*----------------- END ELEMENT ---------*/
}

@media (max-width: 990px) {
  #menu-jahreszeiten-menu .menu-link::before {
    --my-size: 2.3em;
  }

  #menu-jahreszeiten-menu .menu-link {
    gap: var(--gap-xs);
  }
}

@media (max-width: 767px) {
  a.impmenu-toggle:not(.active) {
    padding: 0;
    height: calc(var(--nav-icon-height) * 5.5);
    width: calc(var(--nav-icon-height) * 5.5);
    justify-content: center;
  }

  #header.fixed-header a.impmenu-toggle:not(.active) {
    padding: 0;
    height: calc(var(--nav-icon-height) * 5);
    width: calc(var(--nav-icon-height) * 5);
  }

  #header.fixed-header a.impmenu-toggle:not(.active),
  #header.small .header-wrapper.not-home a.impmenu-toggle:not(.active) {
    padding: calc(var(--gap-xs) / 1.3) 0;
  }

  .impmenu-toggle > span {
    display: none;
  }
}

@media (max-width: 576px) {
  #menu-wrapper {
    justify-content: flex-start;
    padding-top: calc(40px + 5vh);
  }

  #menu-hauptmenu > .menu-item > a {
    font-size: 1rem;
  }

  #menu-jahreszeiten-menu {
    gap: 1px;
  }

  #menu-jahreszeiten-menu .menu-link {
    gap: var(--gap-xs);
    padding: 12px 0 !important;
    font-size: 1.267rem;
    flex-direction: revert;
    justify-content: center;
  }

  span#nav-txt {
    font-size: 1.7rem;
  }

  #menu-jahreszeiten-menu .imp-nav-target {
    width: auto;
  }

  #menu-jahreszeiten-menu .menu-link::before {
    --my-size: 1.6em;
  }

  #menu-jahreszeiten-menu > .menu-item.current-menu-item,
  #menu-jahreszeiten-menu > .menu-item.current-page-parent {
    border: 2px solid var(--ast-global-color-0);
  }
}

@media (max-width: 460px) {
  a.impmenu-toggle:not(.active) {
    height: calc(var(--nav-icon-height) * 5);
    width: calc(var(--nav-icon-height) * 5);
  }

  #header.fixed-header a.impmenu-toggle:not(.active) {
    padding: 0;
    height: calc(var(--nav-icon-height) * 4.5);
    width: calc(var(--nav-icon-height) * 4.5);
  }
}
