body {
  background-color: #f8f9fa;
  color: #212529;
}

/* Responsive Fix: Auf kleinen Bildschirmen Submenu unterhalb öffnen */
@media (min-width: 992px) {
  .dropdown-submenu {
    position: relative;
  }
	/* Position für das Subdropdown */
	.dropdown-submenu {
	  position: relative;
	}

	.dropdown-submenu > .dropdown-menu {
	  top: 0;
	  left: 100%;
	  margin-top: -1px;
	  display: none;
	  position: absolute;
	}
	.dropdown-submenu.show > .dropdown-menu {
	  display: block;
	}
}

/* Mobile: Sub-Sub-Menü als normales Dropdown */
@media (max-width: 991.98px) {
  .dropdown-submenu > .dropdown-menu {
    position: static;
    margin-left: 1rem;
    display: none;
  }
  .dropdown-submenu.open > .dropdown-menu {
    display: block;
  }
}




.hero {
  background: #f2f2f2;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
}

.service-box i {
  color: #0d6efd;
}



.main-header {
  background-color: #0a6a2b;
}

.hero-section {
  height: 80vh;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  padding: 60px 20px;
  color: #ffffff;
}

.hero-section h1,
.hero-section p {
  color: #ffffff;
}

.navbar-nav .nav-link {
  color: #ffffff !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-menu a:hover {
  color: #ffc107 !important;
}

.dropdown-menu {
  background-color: #ffffff;
  border-radius: 0;
}

.btn-outline-light:hover {
  background-color: #ffffff;
  color: #0d6efd;
}


}

.services-section h2 {
  color: #0d6efd;
}

.service-box:hover {
  background-color: #ffffff;
  transition: 0.3s ease;
  transform: translateY(-5px);
}

.facts-section {
  background-color: #ffffff;
}

.fact-box i {
  display: block;
  margin-bottom: 0.5rem;
  color: #0d6efd;
}

.fact-box h5 {
  margin-bottom: 0.5rem;
}

.fact-box:hover {
  background-color: #f8f9fa;
  transition: 0.3s ease;
  transform: translateY(-3px);
}


/* Mega Menü - Desktop */
.mega-menu .dropdown-header {
    font-size: 1.5rem;  /* größer als Standard */
    /*margin-bottom: 0.75rem; /* mehr Abstand unter der Überschrift */
  }
/* Mobile Mega-Menü */
/* Mobile Mega-Menü */
@media (max-width: 991px) {
  .mega-menu {
    position: static !important;
    transform: none;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border-top: none;
    padding: 1rem 0.5rem; /* Innenabstand oben/unten */
  }

  .mega-menu .row {
    display: flex;
    flex-direction: column; 
    gap: 1rem; /* Abstand zwischen Kategorien */
  }

  .mega-menu .col-md-3 {
    margin-bottom: 0.5rem; 
    border-bottom: 1px solid #eee; /* optische Trennung */
    padding-bottom: 0.5rem;
  }

  .mega-menu .col-md-3:last-child {
    border-bottom: none; /* kein extra Abstand nach der letzten Kategorie */
  }

  .mega-menu .dropdown-item {
    padding-left: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .mega-menu .dropdown-header {
    font-size: 1.3rem; /* etwas größer auf Mobile */
    margin-bottom: 0.5rem;
  }

  /* Navbar Buttons + Warenkorb auf Mobile nebeneinander */
  .navbar .d-flex.ms-auto {
    flex-direction: row; /* nebeneinander */
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem; /* etwas Abstand zum Menü */
  }

  .navbar .d-flex.ms-auto a,
  .navbar .d-flex.ms-auto span {
    width: auto;
    text-align: center;
  }

  /* Einkaufswagen Badge anpassen */
  #cartLink {
    position: relative;
  }

  #cartCount {
    top: -0.3rem;
    right: -0.5rem;
  }

  .mobile-separator {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 0.75rem 0;
  }
}


#cartLink {
  position: relative;
  display: inline-block;
}

#cartCount {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%); /* zentriert den Badge */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;   /* feste Größe */
  height: 1.25rem;  /* gleiche Höhe wie Breite */
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  background-color: #dc3545;
  border-radius: 50%;
}





#langSelector {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-weight: 500;
  cursor: pointer;
}

#langSelector:hover {
  border-color: #888;
  background-color: #f9f9f9;
}

