/* topbar */
.akm-topbar {
  max-width: 100% !important;
  background: #fff !important;
  height: 55px !important;
  padding: 0 !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}

.akm-topbar .sub_menu,
.akm-topbar .sub_menu ul,
.akm-topbar .sub_menu ul li,
.akm-topbar .sub_menu ul li a {
  height: 55px;
  line-height: 55px;
  display: block;
  top: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.akm-topbar .sub_menu ul li a {
  padding: 0 1.5rem !important;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  color: #807d7d !important;
}
.akm-topbar .sub_menu ul li a:hover {
  color: #665eb0 !important;
  text-decoration: underline !important;
  transition: color 0.3s ease;
}

.akm-topbar .sub_menu ul li.topmenu-item-highlight a {
  padding: 0 5rem !important;
  background: #665eb0 !important;
  color: #fff !important;
  transition: background 0.3s ease;
}
.akm-topbar .sub_menu ul li.topmenu-item-highlight a:hover {
  background: #665eb0 !important;
  text-decoration: none !important;
  transition: background 0.3s ease;
}

/* header*/
#header_main {
  border-bottom: 0 !important;
  background: #fff;
  box-shadow: 0px 3px 8px #00000029;
}

#header .logo a {
  position: fixed !important;
  z-index: 1002;
  display: flex;
  width: 165px;
  height: 160px;
  max-height: 160px !important;
  justify-content: center;
  align-items: center;
  background: rgb(255, 255, 255);
  transition: all 0.3s linear;
}
#header .logo a img {
  max-width: 120px;
  height: auto;
  max-height: none !important;
  transition: all 0.3s linear;
}

#header .logo::after {
  content: "";
  position: fixed;
  width: 165px;
  height: 80px;
  margin-top: 80px;
  box-shadow: 0px 3px 8px #00000029;
  transition: all 0.3s linear;
}

#top #header.header-scrolled .logo a,
#top #header .container.av-logo-container.active-mega-menu .logo a {
  height: 80px !important;
  max-height: 80px !important;
  transition: all 0.3s linear;
}

#top #header.header-scrolled .logo a img,
#top #header .container.av-logo-container.active-mega-menu .logo a img {
  max-width: auto !important;
  max-height: 65px !important;
  transition: all 0.3s linear;
}

#top #header.header-scrolled .logo::after,
#top #header .container.av-logo-container.active-mega-menu .logo::after {
  display: none;
  transition: all 0.3s linear;
}

#top #header.header-scrolled #header_main > .container.av-logo-container,
#top #header .container.av-logo-container.active-mega-menu {
  height: 80px !important;
  line-height: 80px !important;
}

/* TODO: Menu ab 1260px wird es ugly... */
/* mega-menu */

.neo_main_menu {
  left: 0 !important;
  right: auto !important;
  margin-left: 165px !important;
}

.neo_main_menu ul.neo-main-nav {
  display: flex;
  flex-direction: row;
}

.neo_main_menu ul.neo-main-nav > li > a {
  font-size: 1.3rem;
  color: #910048 !important;
  font-weight: 600;
  padding: 0 3rem;
  height: 100%;
  display: block;
  transition: background 0.3s ease;
}

.neo_main_menu ul.neo-main-nav > li:hover > a,
.neo_main_menu ul.neo-main-nav > li.current-menu-item > a,
.neo_main_menu ul.neo-main-nav > li.current-menu-ancestor > a {
  background: #f0ebfa !important;
  transition: background 0.3s ease;
}

.neo_main_menu ul.neo-main-nav > li {
  position: relative;
  cursor: pointer;
}

.neo_main_menu ul.neo-main-nav > li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 0;
  height: 10px;
  display: flex;
  justify-content: center;
  white-space: nowrap;
  background: #665eb0;
  transition: width 0.3s ease;
}
.neo_main_menu ul.neo-main-nav > li:hover::after,
.neo_main_menu ul.neo-main-nav > li.current-menu-item::after,
.neo_main_menu ul.neo-main-nav > li.current-menu-ancestor::after {
  width: 100%;
  transition: width 0.3s ease;
}

li.neo-mega-menu > .sub-menu {
  position: fixed;
  top: 132px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  z-index: 1001;
  width: 1310px;
  padding: 50px;
  min-height: 200px;
  background: transparent;
  display: flex !important;
  box-sizing: border-box;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out;
}
li.neo-mega-menu > .sub-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw + 100px);
  height: 100%;
  z-index: -1;
  background: #fff;
  box-shadow: 0px 3px 8px #00000029;
  box-sizing: border-box;
  cursor: auto;
}

li.neo-mega-menu > .sub-menu.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in;
}

/* Untermenü unter den Strich andocken, Abstand 30 px */
li.neo-mega-menu > .sub-menu {
  top: 164px !important;
}

/* lvl 2 */

li.neo-mega-menu .sub-menu .neo-mega-menu-column {
  width: calc(50% - 2.5rem);
  margin-bottom: 0;
  box-sizing: border-box;
}

li.neo-mega-menu .sub-menu .neo-mega-menu-column > a {
  padding: 15px 10px;
  border-top: 1px solid #665eb0;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.5;
  color: #910048;
  display: block;
  width: 100%;
  transition: background 0.3s ease;
}
li.neo-mega-menu .sub-menu .neo-mega-menu-column > a:hover {
  background: #f0ebfa !important;
  transition: background 0.3s ease;
}

li.neo-mega-menu .sub-menu .neo-mega-menu-column > .sub-menu {
  margin: 0;
}

li.neo-mega-menu .sub-menu .neo-mega-menu-column > .sub-menu li {
  margin: 0;
}

li.neo-mega-menu .sub-menu .neo-mega-menu-column > .sub-menu li > a {
  padding: 15px 20px;
  border-top: 1px solid #665eb0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #910048;
  display: block;
  width: 100%;
}

li.neo-mega-menu
  .sub-menu
  .neo-mega-menu-column
  > .sub-menu
  li.neo-mega-menu-column-style
  a {
  padding: 15px 10px;
  font-size: 1.3rem;
  font-weight: 600;
}

li.neo-mega-menu .sub-menu .neo-mega-menu-column > .sub-menu li > a:hover,
li.neo-mega-menu
  .sub-menu
  .neo-mega-menu-column
  > .sub-menu
  li.current-menu-item
  > a {
  background: #f0ebfa !important;
}

li.neo-mega-menu .sub-menu .neo-mega-menu-column > .sub-menu li:last-child > a {
  border-bottom: 1px solid #665eb0;
}

/* lvl 3 */

li.neo-mega-menu
  .sub-menu.active
  .neo-mega-menu-column
  > .sub-menu
  li.neo-mega-menu-submenu-toggle
  > a.active {
  /* background: #f0ebfa !important; */
  font-weight: 700;
}

li.neo-mega-menu
  .sub-menu
  .neo-mega-menu-column
  > .sub-menu
  li.neo-mega-menu-submenu-toggle
  > a::after {
  content: "";
  float: right;
  border-radius: 100%;
  color: #665eb0;
  border: 2px solid #665eb0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  font-family: "entypo-fontello";
  margin-left: 30px;
  width: 25px;
  height: 25px;
  transition: transform 0.3s ease;
}
li.neo-mega-menu
  .sub-menu.active
  .neo-mega-menu-column
  > .sub-menu
  li.neo-mega-menu-submenu-toggle
  > a.active::after {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

li.neo-mega-menu .sub-menu .neo-mega-menu-column > .sub-menu li > .sub-menu {
  display: flex;
  width: 100%;
  margin: 0;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  height: 0;
  transition: opacity 0.3s ease-out;
}

li.neo-mega-menu
  .sub-menu.active
  .neo-mega-menu-column
  > .sub-menu
  li
  > .sub-menu.active {
  /* background: #f0ebfa !important; */
  opacity: 1;
  visibility: visible;
  height: auto;
  transition: opacity 0.3s ease-in;
}

li.neo-mega-menu
  .sub-menu
  .neo-mega-menu-column
  > .sub-menu
  li
  > .sub-menu
  li
  a {
  border: 0 !important;
  padding: 15px 30px;
}

/* responsive */

@media only screen and (max-width: 1260px) {
  #header_meta {
    display: none;
  }
  .main_menu {
    left: auto !important;
    right: 0 !important;
    margin-left: 0 !important;
  }

  .neo_main_menu ul.neo-main-nav > li {
    display: none;
  }
  .neo_main_menu ul.neo-main-nav > li.av-burger-menu-main {
    display: block;
  }
}
