html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.luxury-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: #fff;
  padding: 15px 60px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-btn {
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.header-center .header-logo {
  height: 100px;
  width: auto;
}

/* ===== Mega Menü (Desktop) ===== */
.mega-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;          /* statt feste 800px */
  max-width: 800px;     /* auf großen Screens bleibt es bei max. 800px */  height: 100vh;
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  padding: 40px 50px;
  transition: left 0.5s ease;
  z-index: 1001;
}

.mega-menu.active {
  left: 0;
}

.menu-columns {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.main-menu {
  width: 40%;
  border-right: 1px solid #ccc;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-menu li {
  margin-bottom: 20px;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.3s;
}

.main-menu li:hover,
.main-menu li.active {
  color: #777;
}

/* Submenu-Container (rechter Teil, gleitet ein) */
.submenu-container {
  width: 60%;
  position: relative;
  overflow: hidden;
}

.submenu-panel {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.5s ease;
  padding-left: 40px;
}

.submenu-panel.active {
  left: 0;
  opacity: 1;
}

.submenu-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.submenu-panel ul {
  list-style: none;
  padding: 0;
}

.submenu-panel li {
  margin-bottom: 10px;
}

.submenu-panel a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: color 0.3s;
}

.submenu-panel a:hover {
  color: #777;
}

/* Schließen */
.close-btn {
  position: absolute;
  top: 25px;
  left: 25px;
  background: none;
  border: none;
  font-size: 16px;
  color: #000;
  cursor: pointer;
  letter-spacing: 1px;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* =========================================
   MOBILE VERSION
   ========================================= */
@media (max-width: 768px) {
  .luxury-header {
    padding: 10px 20px;
  }

  .header-center .header-logo {
    height: 70px;
  }

  /* Rechts etwas reduzieren */
  .header-right span {
    display: none;
  }

  /* Mega-Menü: full-screen, schwarz */
  .mega-menu {
    width: 100%;
    left: -100%;
    background: #000;
    color: #fff;
    padding: 80px 24px 40px;
    box-shadow: none;
  }

  .mega-menu.active {
    left: 0;
  }

  .menu-columns {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .main-menu {
    width: 100%;
    border-right: none;
  }

  .main-menu li {
    font-size: 1.1rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
  }

  .main-menu li.active {
    color: #999;
  }

  /* Submenus als Accordion unter dem Hauptmenü */
  .submenu-container {
    width: 100%;
    position: relative;
    overflow: visible;
    margin-top: 10px;
  }

  .submenu-panel {
    position: relative;
    top: auto;
    left: auto;
    opacity: 0;
    max-height: 0;
    padding-left: 0;
    margin-bottom: 5px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }

  .submenu-panel.active {
    opacity: 1;
    max-height: 300px; /* ggf. anpassen bei mehr Links */
  }

  .submenu-panel h3 {
    display: none; /* auf Mobile redundant */
  }

  .submenu-panel ul {
    padding: 0 0 10px 0;
  }

  .submenu-panel li {
    margin-bottom: 8px;
  }

  .submenu-panel a {
    color: #ddd;
    font-weight: 400;
    font-size: 0.95rem;
  }

  .submenu-panel a:hover {
    color: #fff;
  }

  /* Close-Button & Overlay */
  .close-btn {
    color: #fff;
    font-size: 24px;
    top: 20px;
    left: 20px;
  }

  .overlay {
    background: rgba(0,0,0,0.7);
  }
}
