.filter-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px 20px;
  font-family: sans-serif;
}

.filter-title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 8px;
}

.filter-subtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #555;
  margin-bottom: 24px;
}

.filter-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.filter-group label {
  font-weight: 600;
  margin-bottom: 8px;
}

.filter-select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  font-size: 14px;
  appearance: none; /* Standard-Pfeil entfernen */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath fill='%23666' d='M0 0l5 7 5-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center; /* << Pfeil leicht nach innen */
  padding-right: 36px; /* Platz für den Pfeil */
}

.filter-select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath fill='%23666' d='M0 7l5-7 5 7z'/%3E%3C/svg%3E"); /* Pfeil nach oben */
}

.filter-range {
  width: 160px;
  accent-color: #a259ff; /* purple */
}

.filter-input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  font-size: 14px;
}

/* Neue Preisbereichsgruppe */
.price-range-group {
  min-width: 220px;
}

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-range-inputs .filter-input {
  width: 150px;
}

.price-separator {
  font-weight: bold;
  color: #333;
}


.filter-btn {
  padding: 8px 16px;
  background-color: #1e90ff; /* schönes Blau */
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
  background-color: #1c86ee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.filter-btn:active {
  background-color: #1874cd;
  transform: scale(0.98);
}

.filter-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.filter-reset-link {
  background: none;
  border: none;
  color: #000000;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  font-weight: 500;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  .filter-title {
    font-size: 24px;
    text-align: center;
  }

  .filter-subtitle {
    font-size: 14px;
    text-align: center;
  }

  .filter-box {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .filter-group,
  .price-range-group {
    width: 100%;
    min-width: unset;
  }

  .price-range-inputs {
    flex-direction: row; /* 👈 wichtig: bleibt eine Zeile */
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .price-range-inputs .filter-input {
    width: 100px;
    flex: 1 1 auto;
  }

  .price-separator {
    font-size: 16px;
  }

  .filter-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-btn,
  .filter-reset-link {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .filter-container {
    padding: 20px 12px;
  }

  .filter-title {
    font-size: 20px;
  }

  .filter-subtitle {
    font-size: 13px;
  }

  .filter-box {
    padding: 16px;
  }

  .price-range-inputs .filter-input {
    width: 80px; /* ggf. anpassen je nach Platzbedarf */
  }

  .price-separator {
    font-size: 14px;
  }
}
