/* ==========================================================================
   1. BASIS & LAYOUT
   ========================================================================== */
* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    margin: 0;
    color: #1e293b;
    line-height: 1.5;
}

.search-page {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

/* ==========================================================================
   2. NAVIGATION (CATEGORY SWITCHER)
   ========================================================================== */
nav.category-switcher {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

nav.category-switcher ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 15px 20px;
    margin: 0;
}

nav.category-switcher a {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    transition: color 0.2s;
}

nav.category-switcher a.active {
    color: #034f75;
    border-bottom: 2px solid #034f75;
}

/* ==========================================================================
   3. SIDEBAR & FILTER-KOMPONENTEN
   ========================================================================== */
.filters {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #034f75;
}

.reset-all {
    font-size: 0.8rem;
    color: #ef4444;
    text-decoration: none;
    font-weight: bold;
}

.filter {
    margin-bottom: 25px;
}

.filter h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 5px;
}

/* Form-Elemente */
input[name="brand_search"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    outline: none;
}

input[name="brand_search"]::-webkit-calendar-picker-indicator {
    display: none !important;
}

.checkbox-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #f1f5f9;
    border-radius: 4px;
    background: #fff;
}

/* Scrollbar Styling */
.checkbox-list::-webkit-scrollbar { width: 6px; }
.checkbox-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

/* Checkbox Items */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
}

.brand-group { margin-bottom: 10px; }
.model-sub-list { margin-left: 20px; }

/* ==========================================================================
   4. ACTIVE TAGS
   ========================================================================== */
.selected-filters {
    margin-bottom: 15px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #034f75;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1;
}

hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 15px 0 20px 0;
}

/* ==========================================================================
   4.1 SCHNELLAUSWAHL (QUICK-TAGS)
   ========================================================================== */
/* ==========================================================================
   SCHNELLAUSWAHL (QUICK-TAGS & CHECKBOXEN)
   ========================================================================== */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Die Buttons für "Unter 10.000€" etc. */
.quick-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.quick-tag:hover {
    background: #e2e8f0;
    color: #034f75;
}

.quick-tag.active {
    background: #034f75;
    color: #fff;
    border-color: #034f75;
}

/* Styling für die "Nur mit Preis" Checkbox unter den Preis-Inputs */
.filter-extra-option {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.filter-extra-option label {
    font-size: 0.8rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.quick-filters a {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.quick-filters a:hover {
    background: #e2e8f0;
    color: #034f75;
    border-color: #cbd5e1;
}

/* Wenn ein Schnellauswahl-Filter aktiv ist */
.quick-filters a.active {
    background: #034f75;
    color: #fff;
    border-color: #034f75;
}

/* Abstandshalter für Preis/Tragkraft Inputs */
.range-wrapper {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.range-wrapper select {
    flex: 1;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
}

/* ==========================================================================
   5. RESULTATE & GRID
   ========================================================================== */
.results {
    flex-grow: 1;
}

.results h1 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}