/* Überschrift und Kategorien linksbündig */

#filter-equipment h4 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 8px;
  /* Abstand zwischen Icon und Text bei Überschrift */
  margin-bottom: 8px;
}

#filter-equipment .section-title{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 8px;
  /* Abstand zwischen Icon und Text bei Überschrift */
  margin-bottom: 16px;
}

/* Icon bei Überschrift */
#filter-equipment .section-title .icon-left,
#filter-equipment h4 .icon-left {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Container für alle Buttons einer Kategorie */
.equipment-category {
  margin-bottom: 16px;
   flex-wrap: wrap; 
  display: flex;
  flex-direction: row;   /* Stellt sicher: erst Titel, dann Buttons */
  align-items: flex;  /* Buttons linksbündig */
  gap: 8px;                 /* Abstand zwischen Titel und Buttons */
}

.equipment-category > h4 {
  width: 100%;
  margin-bottom: 8px;
}


/* Buttons als flex-Container, um Icon und Text inline auszurichten */
.equipment-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .equipment-btn {
  border-color: var(--border-dark);
  color: var(--text-dark);
}

.equipment-btn:hover {
  background-color: var(--bg-light);
  color: var(--text-light);
  border-color: var(--border-light);
  box-shadow: 0 8px 16px rgba(95, 74, 114, 0.3);
}

body.dark-mode .equipment-btn:hover {
  background-color: var(--bg-dark);
  color: var(--text-dark);
  border-color: var(--border-dark);
  box-shadow: 0 8px 16px rgba(95, 74, 114, 0.3);
}

.equipment-btn.selected {
  border-color: #8964ef;
  color: #8964ef;
  box-shadow: 0 8px 16px rgba(137, 100, 239, 0.3);
  background-color: transparent;
}

body.dark-mode .equipment-btn.selected {
  border-color: #8964ef;
  color: #8964ef;
  background-color: transparent;
  box-shadow: 0 8px 16px rgba(137, 100, 239, 0.3);
}

/* Fokus-Styling */
.equipment-btn:focus {
  outline: none;
}

.keyboard-focus .equipment-btn:focus {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

/* Icon in Buttons */
.equipment-btn i.icon-left {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}

.equipment-content {
  overflow: hidden;
  max-height: 100%;
  transition: max-height 0.3s ease;
}

.equipment-content.collapsed {
  max-height: 0;
  transition: max-height 0.3s ease;
}

.toggle-equipment {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-arrow {
  transition: transform 0.3s ease;
}

.toggle-equipment .toggle-arrow {
  transform: rotate(0deg); /* Standard: nach unten */
  transition: transform 0.3s ease;
}

.toggle-equipment.collapsed .toggle-arrow {
  transform: rotate(-180deg); /* eingeklappt: Pfeil nach oben */
}


/* ====== Responsive: Ausstattung unter 457px ====== */
@media (max-width: 457px) {
  /* ====== Wrapper für alle Kategorien ====== */
  .equipment-category-container {
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .equipment-category-container.expanded {
    max-height: 2000px;
    padding-bottom: 10px;
  }

  .equipment-category {
    margin-bottom: 12px;
  }

  /* ====== Ausstattung-Buttons - mobil optimiert & zentriert ====== */
  .equipment-btn {
    flex: 1 1 100%;
    padding: 10px;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

