/* ============================================
   LANGUAGE SWITCHER
   Sprachauswahl für DE/EN
   ============================================ */

.language-switch {
  position: absolute;
  top: 20px;
  left: 20px;  /* Von right nach left geändert */
  display: flex;
  gap: 10px;
  z-index: 100;
}

.language-switch a {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-switch a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.language-switch a.active {
  background: #4CAF50;
  border-color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* Fixed variant - immer sichtbar */
.language-switch.fixed {
  position: fixed;
  top: 20px;
  left: 20px;  /* Von right nach left geändert */
}

/* Dark theme variant */
.language-switch.dark a {
  background: rgba(0, 0, 0, 0.3);
  color: white;
}

.language-switch.dark a:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Light theme variant */
.language-switch.light a {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

.language-switch.light a:hover {
  background: rgba(255, 255, 255, 1);
}

.language-switch.light a.active {
  background: #4CAF50;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .language-switch {
    top: 10px;
    left: 10px;  /* Von right nach left geändert */
    gap: 8px;
  }
  
  .language-switch a {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .language-switch {
    flex-direction: column;
    gap: 5px;
  }
  
  .language-switch a {
    padding: 5px 10px;
    font-size: 11px;
  }
}

/* Animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.language-switch {
  animation: slideIn 0.5s ease;
}

/* Dropdown variant (optional) */
.language-switch.dropdown {
  position: relative;
}

.language-switch.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;  /* Von right nach left geändert */
  margin-top: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  overflow: hidden;
}

.language-switch.dropdown:hover .dropdown-menu {
  display: flex;
  flex-direction: column;
}
