/* Site 1: header + mega menu integration (desktop only) */
@media (min-width: 1025px) {
  .site-1 .aux-elementor-header {
    --cera-menu-gap: 20px;
    --cera-mega-top: 120px;
    --cera-mega-overlap: 20px;
    --cera-mega-shadow: 0 24px 42px -26px rgba(0, 0, 0, 0.32);
    --cera-mega-duration: 0.34s;
    --cera-mega-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --cera-mega-offset: 30px;
  }

  .site-1 .aux-elementor-header.aux-sticky {
    --cera-menu-gap: 0px;
    --cera-mega-overlap: 0px;
  }

  .site-1 .aux-elementor-header .newmenu {
    position: relative;
    isolation: isolate;
  }

  /* Prevent narrow wrappers from becoming the positioning context. */
  .site-1 .aux-elementor-header .desktopmenu,
  .site-1 .aux-elementor-header .desktopmenu > .elementor-widget-container,
  .site-1 .aux-elementor-header .desktopmenu .aux-elementor-header-menu,
  .site-1 .aux-elementor-header .desktopmenu nav.menu-header-menu-container,
  .site-1 .aux-elementor-header .elementor-element-7cdf920,
  .site-1 .aux-elementor-header .menu-header-menu-container,
  .site-1 .aux-elementor-header #menu-header-menu,
  .site-1 .aux-elementor-header #menu-header-menu > .aux-menu-item {
    position: static !important;
  }

  /* Kill hardcoded legacy submenu widths. */
  .site-1 .aux-master-menu.aux-horizontal.aux-skin-classic .aux-menu-depth-0 > .aux-submenu {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  /* Full-width mega panel aligned with header edges. */
  body.site-1 .aux-elementor-header #menu-header-menu > .aux-menu-depth-0.aux-fullwidth-sub > .aux-submenu.aux-megamenu {
    display: block !important;
    position: fixed !important;
    left: var(--cera-menu-gap) !important;
    right: var(--cera-menu-gap) !important;
    top: calc(var(--cera-mega-top) - var(--cera-mega-overlap)) !important;
    margin-top: 0 !important;
    width: auto !important;
    box-sizing: border-box;

    background: #fff !important;
    border-radius: 0 0 15px 15px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.98);
    box-shadow: var(--cera-mega-shadow);
    overflow: hidden;
    z-index: 10030;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
    transform: translate3d(0, calc(var(--cera-mega-offset) * -1), 0) !important;
    transition:
      opacity var(--cera-mega-duration) ease !important,
      transform var(--cera-mega-duration) var(--cera-mega-ease) !important,
      visibility 0s linear var(--cera-mega-duration) !important,
      top 0.2s linear,
      left 0.35s var(--cera-mega-ease),
      right 0.35s var(--cera-mega-ease);
    will-change: transform, opacity;
  }

  body.site-1 .aux-elementor-header #menu-header-menu > .aux-menu-depth-0.aux-fullwidth-sub > .aux-submenu.aux-megamenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 16px;
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0.96) 45%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 2;
  }

  body.site-1 .aux-elementor-header #menu-header-menu > .aux-menu-depth-0.aux-fullwidth-sub.aux-open > .aux-submenu.aux-megamenu,
  body.site-1 .aux-elementor-header #menu-header-menu > .aux-menu-depth-0.aux-fullwidth-sub.aux-hover > .aux-submenu.aux-megamenu,
  body.site-1 .aux-elementor-header #menu-header-menu > .aux-menu-depth-0.aux-fullwidth-sub.cera-keep-open > .aux-submenu.aux-megamenu,
  body.site-1 .aux-elementor-header #menu-header-menu > .aux-menu-depth-0.aux-fullwidth-sub:hover > .aux-submenu.aux-megamenu,
  body.site-1 .aux-elementor-header #menu-header-menu > .aux-menu-depth-0.aux-fullwidth-sub:focus-within > .aux-submenu.aux-megamenu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) !important;
    transition-delay: 0s !important;
  }

  /* Disable old top-jump animation from legacy rule set. */
  .site-1 .aux-master-menu.aux-horizontal .aux-menu-item > .aux-submenu,
  .site-1 .aux-master-menu.aux-horizontal .aux-menu-item.aux-open > .aux-submenu {
    top: calc(var(--cera-mega-top) - var(--cera-mega-overlap)) !important;
    margin-top: 0 !important;
  }

  /* Blend header and mega menu into one surface while open. */
  .site-1 .aux-elementor-header.cera-mega-open .newmenu::before,
  .site-1 .aux-elementor-header.cera-mega-open.aux-sticky .newmenu::before {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  /* Mega layout incl. intro column. */
  body.site-1 .aux-elementor-header .aux-submenu.aux-megamenu .aux-menu-columns {
    display: grid !important;
    grid-template-columns: minmax(270px, 1.35fr) repeat(4, minmax(0, 1fr));
    gap: 0 !important;
    align-items: start;
  }

  body.site-1 .aux-elementor-header .aux-submenu.aux-megamenu .aux-menu-column {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    padding: 36px 28px 30px !important;
  }

  body.site-1 .aux-elementor-header .aux-submenu.aux-megamenu .mega-intro > .aux-item-content {
    border-bottom: 0 !important;
    padding: 0 40px 0 0 !important;
    position: relative;
    min-height: 100%;
  }

  body.site-1 .aux-elementor-header .aux-submenu.aux-megamenu .mega-intro > .aux-item-content::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 0;
    bottom: 6px;
    width: 1px;
    background: #dddddd;
  }

  body.site-1 .aux-elementor-header .aux-submenu.aux-megamenu .mega-intro h3 {
    margin: 0 0 18px;
    font-size: clamp(22px, 1.8vw, 38px) !important;
    line-height: 1.12 !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em !important;
    color: #8f8f8f !important;
    text-transform: none !important;
  }

  body.site-1 .aux-elementor-header .aux-submenu.aux-megamenu .mega-intro p {
    margin: 0;
    font-size: clamp(13px, 1.02vw, 20px) !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    color: #7f7f7f !important;
    text-transform: none !important;
  }

  body.site-1 .aux-elementor-header .aux-submenu.aux-megamenu .megatitel > .aux-item-content {
    padding-bottom: 12px !important;
    margin-bottom: 12px;
    border-bottom: 1px solid #dadada !important;
  }

  /* ---------- Specific look for new "Massageliegen" mega menu ---------- */
  body.site-1 .aux-elementor-header #menu-item-7156 > .aux-submenu.aux-megamenu .aux-menu-columns {
    display: grid !important;
    grid-template-columns: minmax(320px, 380px) repeat(auto-fit, minmax(220px, 300px));
    justify-content: start;
    column-gap: 28px;
    row-gap: 0;
    align-items: stretch;
  }

  body.site-1 .aux-elementor-header #menu-item-7156 > .aux-submenu.aux-megamenu .aux-menu-column {
    padding: 26px 0 22px !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
  }

  body.site-1 .aux-elementor-header #menu-item-7156 > .aux-submenu.aux-megamenu .mega-intro {
    padding: 26px 38px 22px 28px !important;
    position: relative;
  }

  body.site-1 .aux-elementor-header #menu-item-7156 > .aux-submenu.aux-megamenu .mega-intro::after {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    right: 0;
    width: 1px;
    background: #d8d8d8;
  }

  body.site-1 .aux-elementor-header #menu-item-7156 > .aux-submenu.aux-megamenu .mega-intro > .aux-item-content {
    padding: 0 !important;
    border-bottom: 0 !important;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  body.site-1 .aux-elementor-header #menu-item-7156 > .aux-submenu.aux-megamenu .mega-intro > .aux-item-content::after {
    display: none !important;
  }

  body.site-1 .aux-elementor-header #menu-item-7156 > .aux-submenu.aux-megamenu .mega-intro .aux-menu-label h3 {
    margin: 0 0 14px !important;
    font-size: clamp(18px, 1.42vw, 30px) !important;
    line-height: 1.18 !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    color: #2f2f2f !important;
    text-transform: none !important;
  }

  body.site-1 .aux-elementor-header #menu-item-7156 > .aux-submenu.aux-megamenu .mega-intro .aux-menu-label p {
    margin: 0 !important;
    font-size: clamp(11px, 0.78vw, 14px) !important;
    line-height: 1.42 !important;
    font-weight: 500 !important;
    color: #5f5f5f !important;
    text-transform: none !important;
  }

  body.site-1 .aux-elementor-header #menu-item-7156 > .aux-submenu.aux-megamenu .aux-menu-column:not(.mega-intro) {
    max-width: 300px !important;
    padding-top: 0 !important;
    padding-bottom: 20px !important;
  }

  body.site-1 .aux-elementor-header #menu-item-7156 > .aux-submenu.aux-megamenu .aux-menu-column:not(.mega-intro) > .aux-item-content {
    border-bottom: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100%;
    max-width: 300px;
    display: block;
    text-align: center;
    color: #2f2f2f !important;
  }

  body.site-1 .aux-elementor-header #menu-item-7156 > .aux-submenu.aux-megamenu .aux-menu-column:not(.mega-intro) > .aux-item-content .aux-menu-label {
    display: block !important;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    font-size: clamp(13px, 0.95vw, 19px) !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    color: #2d2d2d !important;
    transition: color 0.25s ease;
  }

  body.site-1 .aux-elementor-header #menu-item-7156 > .aux-submenu.aux-megamenu .aux-menu-column:not(.mega-intro) > .aux-item-content .aux-menu-label img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 18px;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
  }

  body.site-1 .aux-elementor-header #menu-item-7156 > .aux-submenu.aux-megamenu .aux-menu-column:not(.mega-intro) > .aux-item-content .aux-menu-label > span {
    display: block;
    margin-top: 7px;
    font-size: clamp(11px, 0.78vw, 14px) !important;
    line-height: 1.34 !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #787878 !important;
    transition: color 0.25s ease;
  }

  body.site-1 .aux-elementor-header #menu-item-7156 > .aux-submenu.aux-megamenu .aux-menu-column:not(.mega-intro) > .aux-item-content:hover .aux-menu-label img {
    transform: scale(1.045);
  }

  body.site-1 .aux-elementor-header #menu-item-7156 > .aux-submenu.aux-megamenu .aux-menu-column:not(.mega-intro) > .aux-item-content:hover .aux-menu-label {
    color: #d00f2d !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-1 .aux-elementor-header #menu-header-menu > .aux-menu-depth-0.aux-fullwidth-sub > .aux-submenu.aux-megamenu {
    transition: none !important;
    transform: none !important;
  }
}
