/* Header Grundstruktur mit Logo, Menü, CTA */
.mega-header {
  width: 100%;
  position: relative;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5vw;
  gap: 20px;
}

.header-logo {
  width: 120px;
}

.header-logo img {
  width: 120px;
}

.header-cta .cta-button {
  background: linear-gradient(45deg, hsla(336, 100%, 53%, 1) 0%, hsla(327, 100%, 69%, 1) 42%, hsla(304, 100%, 80%, 1) 77%, hsla(300, 100%, 90%, 1) 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
  display: inline-block;
  width: 120px;
  text-align: center;
  }

.header-cta {
  width: 120px;
}

.header-cta .cta-button:hover {
  background: linear-gradient(45deg, hsla(336, 100%, 43%, 1) 0%, hsla(327, 100%, 59%, 1) 42%, hsla(304, 100%, 70%, 1) 77%, hsla(300, 100%, 80%, 1) 100%);
}

/* Mega Menü */
.mega-menu {
  position: relative;
  background: transparent;
  padding: 10px 0;
  flex: 1;
}

.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.menu-item {
  padding: 10px 20px;
  cursor: pointer;
}

.menu-item a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.menu-item a:hover {
  color: #FF0E6E;
}

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  padding-top: 10px;
  z-index: 1000;
  width: 760px;
}

.mega-content {
  display: none;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  max-width: 1440px;
  margin: 0 auto;
  color: #000;
  position: relative;
}

.mega-content::before {
  content: "";
  position: absolute;
  top: -10px;
  left: var(--arrow-position, 50%);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid white;
  z-index: 1010;
  transition: left 0.2s ease;
}

.grid-container {
  display: flex;
  gap: 25px;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.grid-item {
  flex: 1 1 0;
  min-width: 240px;
}

.grid-header {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 10px;
}

.icon {
  font-size: 16px;
}

.grid-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.grid-item ul li {
  margin: 5px 0;
}

.grid-item ul li a {
  text-decoration: none;
  color: #000;
  font-size: 14px;
  display: block;
  transition: all 0.3s ease;
}

.grid-item ul li a:hover {
  color: #FF0E6E;
}

/* Dropdown anzeigen beim Hover */
.menu-item:hover .mega-dropdown,
.menu-item.active .mega-dropdown {
  display: block;
}

/* Elementor Editor Sichtbarkeit */
body.elementor-editor-active .mega-menu {
  position: relative !important;
  z-index: 1;
}

body.elementor-editor-active .mega-dropdown {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  padding-top: 0;
}

body.elementor-editor-active .mega-content {
  display: block !important;
}

.category-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding-top: 5px;
}

.cta-button .cta-icon {
  display: none;
}
.cta-button .cta-text {
  display: inline;
}









/* Mobile Optimierung */
@media (max-width: 767px) {

  /* 🟡 1. Elementor-Container auf volle Breite erzwingen */
  .elementor-section.elementor-section-boxed > .elementor-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    justify-content: center;
  }

  .elementor-column.elementor-col-100 {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 🔵 2. Plugin-Wrapper vollflächig und zentriert */
  .elementor-widget-lorem_media_megamenu_online_offline {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .elementor-widget-lorem_media_megamenu_online_offline > .elementor-widget-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* 🟢 3. Dein Header-Layout */
  .mega-header {
    width: 100%;
  }

  .mega-header .header-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .mega-header .header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
  }

  .mega-header .header-logo img {
    max-width: 140px;
    height: auto;
    display: block;
  }

  .mega-header .mega-menu {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 0;
    margin: 0;
  }

  .menu-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .menu-item a {
    color: white;
    text-decoration: none;
    font-size: 14px;
  }

  .menu-item a:hover {
    color: #FF0E6E;
  }

  .mega-dropdown {
    width: 100%;
    padding-top: 10px;
  }
  
  .mega-content {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    margin: 0 auto;
    color: #000;
    text-align: left;
    max-width: 325px;
  }

  /* 🟣 4. CTA Button mobil */
  .header-cta {
    position: fixed;
    bottom: 20px;
    right: -35px;
    z-index: 9999;
    margin: 0 !important;
    padding: 0 !important;
    transform: translate(0, 0);
  }

  .header-cta .cta-button {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    background: #FF0E6E;
    color: white;
    font-size: 26px;
    line-height: 56px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-cta .cta-button:hover {
    background: #cc0b59;
  }

  .cta-button .cta-icon {
    display: inline;
  }

  .cta-button .cta-text {
    display: none;
  }

  /* Mobile: Dropdown-Kategorien untereinander statt nebeneinander */
.grid-container {
  flex-direction: column;
  gap: 20px;
}

.grid-item {
  width: 100%;
}

body {
  overflow-x: hidden;
}

}
