/* Container für den Toggle im Theme-Bereich */
.theme-toggle {
  display: flex;
  flex-direction: column; /* Text unter dem Switch */
  align-items: center;
  margin-top: 2px;  /* Abstand nach oben */
  gap: 1px;         /* sehr kleiner Abstand zwischen Switch und Text */
}

/* Der Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 30px;  
  height: 16px; 
}

/* Unsichtbare Checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 16px; 
}

/* Knopf */
.slider:before {
  position: absolute;
  content: "";
  height: 12px;  
  width: 12px;   
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Eingeschaltet */
input:checked + .slider {
  background-color: #4caf50; 
}

/* Knopf bewegt sich */
input:checked + .slider:before {
  transform: translateX(14px); 
}

/* Text unter dem Switch */
.label-text {
  font-size: 15px;
  margin-top: 0; /* minimaler Abstand */
  user-select: none;
  text-align: center;
}
