/* AquaFun adaptation of MA5 mobile menu 4.0.0 */
.mobile-menu-source,
.ma5menu,
.ma5menu__tools {
  display: none;
}

.ma5menu__container {
  --menu-width: min(390px, calc(100vw - 20px));
  position: fixed;
  z-index: 10002;
  top: 0;
  right: 0;
  width: var(--menu-width);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: #24202c;
  background:
    radial-gradient(circle at 105% -5%, rgba(65, 190, 221, 0.22), transparent 34%),
    linear-gradient(180deg, #fff 0%, #fbf8f1 100%);
  border-left: 1px solid rgba(var(--accent-rgb), 0.18);
  box-shadow: -24px 0 64px rgba(24, 16, 28, 0.22);
  transform: translate3d(105%, 0, 0);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
}

.ma5menu--active .ma5menu__container {
  transform: translate3d(0, 0, 0);
  visibility: visible;
}

html::after {
  content: "";
  position: fixed;
  z-index: 10001;
  inset: 0;
  background: rgba(12, 9, 16, 0.52);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
}

html.ma5menu--active::after {
  opacity: 1;
  visibility: visible;
}

html.ma5menu--active,
html.ma5menu--active body {
  overflow: hidden;
}

.ma5menu__head {
  position: relative;
  z-index: 4;
  height: 86px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.14);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
}

.ma5menu__header {
  position: relative;
  height: 100%;
}

.ma5menu__home {
  position: absolute;
  top: 50%;
  left: 24px;
  display: block;
  width: 116px;
  height: 60px;
  transform: translateY(-50%);
}

.ma5menu__logo {
  display: block;
  width: 100%;
  height: 100%;
  background: url("../../img/startseite-wasserwelt/logo.png") left center / contain no-repeat;
}

body.page-layout--saunawelt .ma5menu__container .ma5menu__home {
  width: 98px;
}

body.page-layout--saunawelt .ma5menu__container .ma5menu__logo {
  background-image: url("../../img/corporate/A4-00.11.02_AquaSpa_Responsive_Logo_RGB.svg");
}

.ma5menu__head .ma5menu__toggle {
  position: absolute;
  top: 20px;
  right: 18px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.ma5menu__head .ma5menu__toggle:hover,
.ma5menu__head .ma5menu__toggle:focus-visible {
  background: var(--accent-hover);
  transform: rotate(4deg);
}

.ma5menu__close::before,
.ma5menu__close::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 13px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.ma5menu__close::before {
  transform: rotate(45deg);
}

.ma5menu__close::after {
  transform: rotate(-45deg);
}

.ma5menu__panel {
  position: absolute;
  z-index: 1;
  top: 86px;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.35) transparent;
  background: transparent;
}

.ma5menu__panel--active,
.ma5menu__panel--active-enter,
.ma5menu__panel--active-leave,
.ma5menu__panel--parent-enter,
.ma5menu__panel--parent-leave {
  display: block;
}

.ma5menu__panel:not(.ma5menu__panel--active) {
  pointer-events: none;
}

.ma5menu__panel--active {
  pointer-events: auto;
}

.ma5menu__panel--active-enter {
  animation: aquafun-menu-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ma5menu__panel--parent-enter {
  animation: aquafun-menu-out-left 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ma5menu__panel--active-leave {
  animation: aquafun-menu-out-right 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ma5menu__panel--parent-leave {
  animation: aquafun-menu-in-left 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ma5menu__panel > ul {
  margin: 0;
  padding: 22px 18px 6px;
  list-style: none;
}

.ma5menu__panel > ul > li {
  position: relative;
  margin: 0;
  border-bottom: 1px solid rgba(76, 64, 76, 0.11);
  list-style: none;
}

.ma5menu__panel > ul > li > a,
.ma5menu__panel > ul > li > .ma5menu__category {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  color: #29232d;
  font-size: clamp(1.08rem, 4.4vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.ma5menu__panel > ul > li > .ma5menu__btn--enter + a {
  padding-right: 66px;
}

.ma5menu__panel > ul > li > a:hover,
.ma5menu__panel > ul > li > a:focus-visible,
.ma5menu__panel > ul > li > .ma5menu__category:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.ma5menu__btn--enter {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 0;
  width: 52px;
  height: 46px;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.09);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.ma5menu__btn--enter::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 19px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}

.ma5menu__btn--enter:hover {
  background: rgba(var(--accent-rgb), 0.17);
  transform: translateX(2px);
}

.ma5menu__leave {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  margin: 0 0 8px;
  padding: 11px 18px 11px 52px;
  border: 0;
  border-radius: 14px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.09);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.ma5menu__btn--leave {
  position: absolute;
  inset: 0;
}

.ma5menu__btn--leave::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 22px;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transform: rotate(45deg);
}

.ma5menu__footer {
  padding: 20px 34px max(28px, env(safe-area-inset-bottom));
}

.ma5menu__footer .ma5menu__tools {
  display: block;
}

.mobile-menu-worlds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid #e9e0df;
  border-radius: 999px;
  background: #fff;
}

.mobile-menu-world {
  padding: 9px 10px;
  border-radius: 999px;
  color: #554c58;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.mobile-menu-world.is-active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.2);
}

.mobile-menu-world--sauna.is-active {
  background: var(--sauna);
  box-shadow: 0 8px 20px rgba(125, 155, 44, 0.2);
}

:is(.page-layout--startseite, .page-layout--site-shell) .mobile-menu-ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  padding: 15px 54px 15px 18px;
  border-radius: 16px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 30px rgba(var(--accent-rgb), 0.22);
  text-decoration: none;
}

:is(.page-layout--startseite, .page-layout--site-shell) .mobile-menu-ticket:hover,
:is(.page-layout--startseite, .page-layout--site-shell) .mobile-menu-ticket:focus-visible {
  color: #fff;
  background: var(--accent-hover);
}

.mobile-menu-ticket::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 19px;
  font-size: 1.55rem;
  transform: translateY(-50%);
}

.mobile-menu-ticket span {
  font-size: 1.05rem;
  font-weight: 700;
}

.mobile-menu-ticket small {
  margin-top: 2px;
  font-size: 0.76rem;
  opacity: 0.82;
}

.mobile-menu-meta,
.mobile-menu-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-menu-meta {
  margin-bottom: 13px;
}

.mobile-menu-meta a {
  color: #645a67;
  font-size: 0.8rem;
  text-decoration: none;
}

:is(.page-layout--startseite, .page-layout--site-shell) .mobile-menu-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 50%;
  color: var(--accent);
  background: #fff;
  box-shadow: 0 7px 18px rgba(42, 30, 43, 0.07);
  text-decoration: none;
  transition: color 170ms ease, background 170ms ease, border-color 170ms ease, transform 170ms ease;
}

:is(.page-layout--startseite, .page-layout--site-shell) .mobile-menu-social a:hover,
:is(.page-layout--startseite, .page-layout--site-shell) .mobile-menu-social a:focus-visible {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  transform: translateY(-2px);
}

.mobile-menu-social svg {
  width: 19px;
  height: 19px;
}

.mobile-menu-social .instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.mobile-menu-social .facebook svg,
.mobile-menu-social .tiktok svg {
  fill: currentColor;
  stroke: none;
}

.ma5menu__alert,
.ma5menu__icon-up {
  display: none;
}

@keyframes aquafun-menu-in {
  from { opacity: 0; transform: translateX(28%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes aquafun-menu-out-left {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-18%); }
}

@keyframes aquafun-menu-out-right {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(28%); }
}

@keyframes aquafun-menu-in-left {
  from { opacity: 0; transform: translateX(-18%); }
  to { opacity: 1; transform: translateX(0); }
}

@media (min-width: 1081px) {
  .ma5menu__container,
  html::after {
    display: none;
  }
}

@media (max-width: 720px) {
  :is(.page-layout--startseite, .page-layout--site-shell) .preheader,
  :is(.page-layout--startseite, .page-layout--site-shell) .nav-row > .world-switch,
  :is(.page-layout--startseite, .page-layout--site-shell) .nav-row > .ticket-pill {
    display: none;
  }

  :is(.page-layout--startseite, .page-layout--site-shell) #header.site-header .nav-row {
    min-height: 74px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  :is(.page-layout--startseite, .page-layout--site-shell) #header.site-header .brand img {
    width: 112px;
  }

  .mobile-nav-toggle {
    order: initial;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ma5menu__container,
  html::after,
  .ma5menu__panel {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
