/* =========================================
   NAV – allgemein
   ========================================= */

/* jQuery UI draggable deaktivieren */
#footerNav .menu.ui-draggable {
  cursor: default !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  margin-top: 0px;
}

.nav {
  display: block;
  margin-left: auto;
  position: relative;
}

.menu {
 /* margin-bottom: 10px; */
  position: relative;
}

.menu a {
  display: block;
  box-shadow: none;
  padding: 15px;
}

.menu-item {
  list-style: none;
  position: relative;
  text-align:  center;
}

.menu-item.active a {
  color: var(--main-txt-color);
}

.menu-item.hasSub {
  position: static;
}

.menu-item.hasSub > a {
  text-align: right;
}


/* =========================================
   FOOTER NAV – Desktop
   ========================================= */

#footerNav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  z-index: 999;
  display: flex;
  justify-content: center;
}

#footerNav ul.imprint {
  display: none;
}

#footerNav .menu a {
  background: var(--c-red);
  white-space: nowrap;
}

#footerNav .menu a:hover,
#footerNav .menu .active > a {
  background: var(--c-blue);
}


/* =========================================
   SUBMENU – Mega-Menü
   ========================================= */

/*
 * FIX: .menu bekommt position: relative, damit .submenu
 * sich auf die Breite der Haupt-Nav bezieht und nicht
 * auf den #footerNav (position: fixed = volle Breite).
 */
#footerNav .menu {
  position: relative;
}

.submenu {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: 100%;
  z-index: 100;
  background: var(--c-red);
  width: 1006px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  /* Verstecken über visibility + opacity statt display */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.submenu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.submenu .sub img {
  max-height: 60px;
  display: block;
  max-width: 80px;
  margin: 0 auto;
}

.submenu .menu-item a {
  color: #444;
}

.submenu .menu-item a:hover,
.submenu .menu-item.active a {
  color: #cc3300;
}


/* =========================================
   PULLDOWN (Hamburger)
   ========================================= */

#pulldown {
  text-align: center;
  color: #222;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.2s ease-in-out;
  position: fixed;
  right: 0;
  top: 10px;
}

#pulldown div {
  margin: auto;
  padding: 20px 14px;
  transition: all 0.2s ease-in-out;
}

#pulldown span {
  display: block;
  height: 2px;
  width: 28px;
  margin: auto;
  margin-top: 7px;
  background: #222;
  transition: all 0.2s ease-in-out;
}

#pulldown span:first-child {
  margin-top: 0;
}

#pulldown .open span {
  background: #333;
  position: relative;
}

#pulldown .open span:first-child {
  transform: rotate(45deg);
  top: 9px;
}

#pulldown .open span:nth-child(2) {
  opacity: 0;
}

#pulldown .open span:last-child {
  transform: rotate(-45deg);
  top: -9px;
}


/* =========================================
   LANGUAGE & CART
   ========================================= */

.language li {
  list-style: none;
  display: inline;
  font-size: 12px;
  color: #333;
  margin-right: 10px;
}

.language li:first-child {
  padding-right: 5px;
}


/* =========================================
   RESPONSIVE – Portrait / ≤ 1024px
   ========================================= */

@media screen and (orientation: portrait),
       screen and (max-width: 1023px) {

  html.noscroll {
    overflow: hidden;
  }

  body.noscroll {
    overflow: visible;
    height: 100%;
  }

  .nav {
    position: fixed;
    z-index: 99;
    top: 0;
    display: none;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .8);
    opacity: 0;
    transition: opacity .3s ease;
    text-align: center;
    pointer-events: none;  /* ← hinzufügen */
  }

  .menu {
    margin: 0 0 80px;
  }

  .menu-item {
    font-size: 22px;
    font-weight: 300;
    border: 1px solid rgba(255, 255, 255, .2);
  }

  .menu-item a {
    padding: 10px 0;
    text-decoration: none;
  }

  .open {
    top: 82px;
    opacity: 1;
    right: 0;
  }

  #footerNav.open {
    background: var(--c-red);
    display: block;
    overflow: scroll;
    left: 0;
    transform: none;
    width: 100%;
    pointer-events: auto;  /* ← hinzufügen */
  }

  #footerNav.open ul.imprint {
    display: block;
    margin-bottom: 140px;
  }

  #footerNav.open ul.imprint a {
    font-size: 16px;
  }

  .open .menu a {
    text-align: center;
  }

  .nav__container {
    position: absolute;
    padding: 80px 20px 30px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navH {
    display: none;
  }

  /* Submenu mobile */
  .submenu {
    display: flex;
    position: relative;
    top: 0;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.3s ease, visibility 0.2s ease;
  }

  .submenu.open {
    visibility: visible;
    opacity: 1;
    max-height: 1000px;
    position: relative;
    top: 0;
    flex-wrap: wrap;
  }

  .submenu.open .menu-item {
    font-size: 20px;
    width: 25%;
    flex-grow: 1;
  }

  .nav .menu .submenu a {
    font-size: 12px;
  }

  #footerNav .menu .submenu.open a {
    background: #a06c76;
  }

  /* Mobile Header */
  #mainHeader {
    position: fixed !important;
    background: rgba(255, 255, 255, 1) !important;
    height: 82px;
  }

  #mainContent {
    margin-top: 80px;
  }

  #mainHeader .inner {
    justify-content: center !important;
  }

  #logo {
    max-width: 150px !important;
    position: absolute;
    top: 6%;
    left: 2%;
  }

  nav.language ul {
    margin-left: 12px;
  }

  nav.language li:first-child {
    display: none;
  }

  nav.language img {
    border-radius: 50%;
    object-fit: cover;
    height: 28px;
    width: 28px;
    border: 1px solid #eee;
  }

  nav.language {
    margin-top: 8px;
  }

  nav.cart {
    margin-top: 12px;
  }

  .cart-preview-content img {
    width: 30px;
    height: auto;
  }

  .mobile,
  .mobileSearch {
    display: block;
  }

  .hSearch.mobileNone {
    display: none;
  }

  .hSearch.mobileSearch {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hSearch.mobileSearch form {
    padding: 10px 10px 5px;
    border: 0.5px solid #fff;
    width: 100%;
    margin: 15px;
  }

  .hSearch.mobileSearch input,
  .hSearch.mobileSearch input:focus,
  .hSearch.mobileSearch input[type="search"],
  .hSearch.mobileSearch input:autofill,
  .hSearch.mobileSearch input:-internal-autofill-selected {
    background-color: transparent !important;
    box-shadow: none;
    color: #fff !important;
  }

  .hSearch.mobileSearch input::placeholder {
    font-family: "Myriad";
    font-size: 22px;
    color: #fff;
    text-align: center;
    padding-top: 4px;
  }

  .hSearch.mobileSearch form a {
    right: 25px;
    top: 20px;
    opacity: 1;
    font-size: 20px;
  }
}


/* =========================================
   RESPONSIVE – Desktop (≥ 1024px)
   ========================================= */

@media (min-width: 1024px) {
  .menu {
    display: flex;
    align-items: flex-end;
    margin-left: auto;
  }

  .mobile,
  .mobileSearch {
    display: none;
  }
}

@media (max-width: 1024px) {
  .pulldown__container {
    position: relative;
    z-index: 9999;
    background: var(--sub-bg-color);
  }
}


/* =========================================
   RESPONSIVE – kleinere Breakpoints
   ========================================= */

@media (max-width: 1200px) {
  .language li {
    margin-right: 5px;
  }

  .menu a {
    padding: 15px 7px;
  }
}

@media (max-width: 599px) {
  .nav .menu .submenu a {
    font-size: 9px;
  }
}

@media (max-width: 499px) {
  #mainHeader .inner {
    justify-content: right !important;
  }

  nav.language {
    margin-right: 50px;
  }

  #logo {
    max-width: 30vw !important;
    top: 10%;
  }
}

@media (max-width: 399px) {
  #logo {
    max-width: 35vw !important;
  }
}

@media (max-width: 330px) {
  #logo {
    max-width: 20vw !important;
  }
}

@media screen and (orientation: portrait),
       screen and (max-width: 1024px) {

  .submenu {
    width: 100%;
  }
}