/* Modernes Mega-Menü Styling */

/* Seitenmenü Grundstruktur */
.side-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.side-menu.active {
  right: 0;
}

/* Seitenmenü Header */
.side-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
  position: relative;
}

.side-menu-header:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 90%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.side-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.side-menu-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Seitenmenü Navigation */
.side-menu-nav {
  padding: 20px 0;
  flex-grow: 1;
  overflow-y: auto;
}

.side-menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu-nav ul li {
  margin-bottom: 5px;
}

.side-menu-nav ul li a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0 50px 50px 0;
  margin-right: 20px;
  font-size: 0.9rem;
}

.side-menu-nav ul li a i {
  margin-right: 10px;
  font-size: 1rem;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.side-menu-nav ul li a:hover,
.side-menu-nav ul li a.active {
  background-color: var(--primary);
  color: var(--white);
  border-left: 3px solid var(--white);
}

.side-menu-nav ul li a:hover i,
.side-menu-nav ul li a.active i {
  transform: scale(1.2);
}

/* Seitenmenü Footer */
.side-menu-footer {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.side-menu-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.side-menu-social a {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.side-menu-social a:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

/* Overlay */
.side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.side-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Header Menu Toggle Button */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}