/* Grundstyle für Sidebar */
.sidebar {
  width: 270px;
  padding: 1rem;
  background: #000;
  background-size: cover;  color: white;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar.left {
  order: 0;
}

.sidebar.right {
  order: 2;
}

/* Mobile Buttons - sichtbar nur mobil */
.mobile-btn {
  color: #000000;
  padding: 0px 0px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0px;
  margin: 5px; /* Abstand zwischen den Buttons */
}

/* Optional: Wenn du Links und Rechts unterschiedliche Klassen hast */
.mobile-btn.left {
  /* keine spezielle Position nötig */
  background: transparent;
}

.mobile-btn.right {
  /* keine spezielle Position nötig */
  background: transparent;
}

/* === Mobil === */
@media (max-width: 767px) {

  .sidebar {
    position: fixed;
    top: 0;
  width: 280px;
  overflow-y: auto;  /* scrollen wenn nötig */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;  
    height: 100vh;
    z-index: 1000;
  }

  .sidebar.left {
    left: 0;
    transform: translateX(-100%);
  }

  .sidebar.right {
    right: 0;
    transform: translateX(100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }
}

/* === Desktop: Buttons verstecken === */
@media (min-width: 768px) {
  .mobile-btn {
    display: none !important;
  }

  .sidebar {
    position: static;
    height: auto;
  }
}
