/* Bembé – bembe-produktfinder.css · erzeugt 2026-10-14 aus style.css + responsive.css · ersetzt die alte style.css + responsive.css */
/* === Produktfinder: Filter-Redesign =======================================
   Karten-Checkboxen, Preisklasse-Pills mit Euro-Indikator, Options-Zaehler,
   orangener noUi-Slider, Suchfeld in der Filterspalte, aktive Filter-Chips. */
/* ---------- Suchfeld: in die Filterspalte integriert ---------- */
#top :is(#search-filter-form-19859, #search-filter-form-20093) ul > li.sf-field-search {
    position: static;
    padding: 0;
    margin: 0 0 10px;
    background-color: transparent;
    z-index: auto;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) ul > li.sf-field-search input[type="text"] {
    width: 100%;
    line-height: 40px;
    padding: 0 40px 0 12px;
    background-color: #fff;
    border: 1px solid var(--pf-line);
    border-radius: 8px;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) ul > li.sf-field-search input[type="text"]:focus {
    width: 100%;
    border-color: var(--pf-orange);
}
/* ---------- Aktive Filter als Chips + Zuruecksetzen (JS-generiert) ---------- */
#top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-active-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) button.sf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--pf-tint);
    border: 1px solid var(--pf-orange);
    color: var(--pf-orange-dark);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: .85rem;
    line-height: 1.5;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .3s, color .3s;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) button.sf-chip:hover {
    background-color: var(--pf-orange);
    color: #fff;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-chip-x {
    font-size: 1.1em;
    line-height: 1;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) a.sf-chips-reset {
    margin-left: auto;
    font-size: .85rem;
    color: var(--pf-muted);
    text-decoration: underline;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) a.sf-chips-reset:hover {
    color: var(--pf-orange-dark);
}
/* ---------- Options-Zeilen als weisse Karten (Checkboxen und Radios) ---------- */
/* Options-Zaehler von S&F Pro ("(3)") rechtsbuendig */
#top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-count {
    margin-left: auto;
    font-size: .85em;
    color: var(--pf-muted);
}
/* ---------- Preisklasse: Pill-Grid mit Euro-Indikator ---------- */
#top :is(#search-filter-form-19859, #search-filter-form-20093) li[data-sf-field-name*="preisklasse"] .sf-count,
#top :is(#search-filter-form-19859, #search-filter-form-20093) li[class*="preisklasse"] .sf-count {
    margin-left: 0;
}
/* ---------- Selects (Format, Sortierung) ---------- */
#top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-input-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    background: #fff none;
    border: 1px solid var(--pf-line);
    border-radius: 8px;
    padding: 0 40px 0 12px;
    height: 42px;
    line-height: 40px;
    color: var(--pf-ink);
    cursor: pointer;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-input-select:focus {
    border-color: var(--pf-orange);
    outline: none;
}
/* ---------- Staerke: noUi-Slider in CI-Orange, Wert-Pills ---------- */
#top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-meta-range-slider label input[type="number"] {
    background-color: #fff;
    border: 1px solid var(--pf-line);
    border-radius: 8px;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) .meta-slider.noUi-target {
    background: var(--pf-line);
    border-radius: 3px;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) .noUi-connect {
    background-color: var(--pf-orange);
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) .noUi-horizontal .noUi-handle {
    width: 20px;
    height: 20px;
    right: -10px;
    top: -8px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid var(--pf-orange);
    box-shadow: none;
    cursor: grab;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) .noUi-horizontal .noUi-handle.noUi-handle-lower::before,
#top :is(#search-filter-form-19859, #search-filter-form-20093) .noUi-horizontal .noUi-handle.noUi-handle-lower::after,
#top :is(#search-filter-form-19859, #search-filter-form-20093) .noUi-horizontal .noUi-handle.noUi-handle-upper::before,
#top :is(#search-filter-form-19859, #search-filter-form-20093) .noUi-horizontal .noUi-handle.noUi-handle-upper::after {
    content: none;
}
/* ---------- Reset-Button: dezente Outline-Variante, Hover in CI-Orange ---------- */
#top :is(#search-filter-form-19859, #search-filter-form-20093) ul li.sf-field-reset {
    background-color: transparent;
    padding: 0;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) ul li.sf-field-reset .search-filter-reset {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #fff !important;
    color: var(--pf-ink);
    border: 1px solid var(--pf-line);
    border-radius: 8px;
    padding: 11px 20px;
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 600;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) ul li.sf-field-reset .search-filter-reset:hover {
    background-color: var(--pf-orange) !important;
    border-color: var(--pf-orange);
    color: #fff;
}
/* ---------- Mobil: ein Filter-Button klappt die gesamte Filterung auf ---------- */
#top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-filter-toggle {
    display: none;
}
@media only screen and (max-width: 767px) {
    #top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        background-color: #fff;
        border: 1px solid var(--pf-line);
        border-radius: 8px;
        padding: 11px 16px;
        margin: 0 0 10px;
        font-size: 15px;
        font-weight: 600;
        color: var(--pf-ink);
        cursor: pointer;
    }
    #top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-filter-toggle::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--pf-orange);
        border-bottom: 2px solid var(--pf-orange);
        transform: translateY(-2px) rotate(45deg);
        transition: transform .3s;
    }
    #top :is(#search-filter-form-19859, #search-filter-form-20093).sf-filters-open .sf-filter-toggle {
        border-color: var(--pf-orange);
    }
    #top :is(#search-filter-form-19859, #search-filter-form-20093).sf-filters-open .sf-filter-toggle::after {
        transform: translateY(2px) rotate(225deg);
    }
    #top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-toggle-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 8px;
        background-color: var(--pf-orange);
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
    }
    /* Zugeklappt: komplette Feldliste ausblenden, Chips bleiben sichtbar.
       Greift nur, wenn der JS-Button existiert (~) - laeuft das JS (noch)
       nicht, z. B. wegen WP-Rocket-Delay/Cache, bleiben die Felder sichtbar. */
    /* Doppeltes "Filter": Enfold-Ueberschrift ueber dem Formular mobil ausblenden,
       der Button uebernimmt die Beschriftung */
    #top .flex_column:has(.searchandfilter[data-sf-form-id="19859"]) > .av-special-heading,
    #top .flex_column:has(.searchandfilter[data-sf-form-id="20093"]) > .av-special-heading {
        display: none;
    }
}
/* ---------- Feld-Ueberschriften: h3 und h4 identisch stylen ----------
   S&F Pro rendert Ueberschriften nach AJAX-Filterung als h4 statt h3. */
/* ---------- Staerke: saubere Wertezeile (Inputs, mm-Postfix, Trenner) ---------- */
#top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-meta-range-slider {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-meta-range-slider label {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    margin: 0;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-meta-range-slider label input[type="number"] {
    width: 100%;
    height: 40px;
    line-height: 38px;
    padding: 0 36px 0 10px;
    text-align: center;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-meta-range-slider span.sf-range-postfix {
    flex: none;
    width: 34px;
    margin-left: -34px;
    position: relative;
    z-index: 1;
    pointer-events: none;
    text-align: left;
    font-size: .85rem;
    color: var(--pf-muted);
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-meta-range-slider span.sf-range-values-seperator {
    flex: none;
    display: block;
    width: 14px;
    height: 1px;
    margin: 0 10px;
    background: var(--pf-line);
    color: transparent;
}
#top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-meta-range-slider .meta-slider.noUi-target {
    flex: 0 0 100%;
    margin-top: 26px;
}
/* ---------- Dropdown-Liste: abgerundet, Hover/Auswahl in CI-Orange ----------
   Nutzt das anpassbare <select> (appearance: base-select, Chrome/Edge ab v135).
   Firefox/Safari fallen sauber auf das native Dropdown zurueck; dort greifen
   nur die option-Farben, soweit der Browser sie zulaesst. */
@supports selector(::picker(select)) {
    #top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-input-select,
    #top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-input-select::picker(select) {
        -webkit-appearance: base-select;
        appearance: base-select;
    }
    #top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-input-select::picker-icon {
        display: none;
    }
    #top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-input-select::picker(select) {
        margin-top: 4px;
        background-color: #fff;
        border: 1px solid var(--pf-line);
        border-radius: 8px;
        padding: 4px;
        box-shadow: var(--bembe-shadow);
    }
    #top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-input-select option {
        padding: 6px 12px;
        min-height: 0;
        line-height: 1.4;
        border-radius: 8px;
        cursor: pointer;
        color: var(--pf-ink);
    }
    #top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-input-select option::checkmark {
        display: none;
    }
    #top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-input-select option:hover,
    #top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-input-select option:focus {
        background-color: var(--pf-orange);
        color: #fff;
    }
    #top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-input-select option:checked {
        background-color: var(--pf-tint);
        color: var(--pf-orange-dark);
        font-weight: 600;
    }
}
/* Fallback fuer Browser ohne anpassbares Select (nur teilweise wirksam) */
#top :is(#search-filter-form-19859, #search-filter-form-20093) .sf-input-select option:checked {
    background-color: var(--pf-tint);
    color: var(--pf-orange-dark);
}
