/* =========================================================================
   SERVICES #services · Filter-Panel (Kategorie, Geschlecht, Ort)
   Passt visuell zu navbar-modern: Glas, orange Akzent, kompakte Pills.
   Wird nach styles.css geladen und überschreibt Legacy-Chip-Styles.
   ========================================================================= */

.services-filters-panel {
    background: rgba(20, 20, 24, 0.6);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 165, 0, 0.18);
    border-radius: 16px;
    padding: 1rem 1.25rem 1.125rem;
    margin-bottom: 1.25rem;
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.services-filters-panel .service-filters-compact,
.services-filters-panel .gender-filters {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.services-filters-panel .location-search {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Kleine Überschriften statt großer „Kategorien:“-Labels */
.services-filter-heading {
    display: block;
    width: 100%;
    margin: 0 0 0.5rem 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.services-filter-heading--inline {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Filter-Gruppe linksbündig, volle Breite */
.services-filters-panel .filter-group {
    align-items: flex-start;
    width: 100%;
    max-width: none;
}

/* Kategorie-Chips */
.services-filters-panel .category-chips {
    justify-content: flex-start;
    max-width: none;
    width: 100%;
    gap: 6px;
}

.services-filters-panel .category-chip {
    padding: 8px 14px;
    min-height: 40px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.93);
    box-shadow: none;
    transform: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
    font-family: inherit;
}

.services-filters-panel .category-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 165, 0, 0.35);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.services-filters-panel .category-chip:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.55);
}

.services-filters-panel .category-chip.active {
    background: linear-gradient(135deg, #ffa500, #e8890a);
    border-color: rgba(255, 165, 0, 0.75);
    color: #1a1a1a;
    font-weight: 600;
    transform: none;
    box-shadow: 0 4px 16px rgba(255, 165, 0, 0.28);
}

/* Geschlecht: ein Block mit Überschrift + Chip-Zeile */
.services-filters-panel .gender-filters {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
}

.services-filters-panel .gender-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    justify-content: flex-start;
}

.services-filters-panel .gender-filter-btn {
    padding: 8px 14px;
    min-height: 40px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.93);
    box-shadow: none;
    transform: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
    font-family: inherit;
}

.services-filters-panel .gender-filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 165, 0, 0.35);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.services-filters-panel .gender-filter-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.55);
}

/* Aktiv wie Primärbutton — gut lesbar (Kontrast) */
.services-filters-panel .gender-filter-btn.active {
    background: linear-gradient(135deg, #ffa500, #e8890a);
    border-color: rgba(255, 165, 0, 0.75);
    color: #1a1a1a;
    font-weight: 600;
    transform: none;
    box-shadow: 0 4px 16px rgba(255, 165, 0, 0.28);
}

/* Ortssuche */
.services-filters-panel .location-input-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-bottom: 0;
    justify-content: flex-start;
}

.services-filters-panel .location-field-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.services-filters-panel .location-search-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
}

.services-filters-panel .location-search-row input {
    flex: 1 1 160px;
    min-width: 0;
    width: auto;
    max-width: none;
    text-align: left;
    padding: 11px 14px;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.22);
    background: rgba(14, 14, 18, 0.75);
    color: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.services-filters-panel .location-search-row input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.services-filters-panel .location-search-row input:focus {
    outline: none;
    border-color: rgba(255, 165, 0, 0.55);
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.2);
}

.services-filters-panel .location-search-submit {
    flex: 0 0 auto;
    padding: 11px 18px;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.55);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transform: none;
    box-shadow: 0 4px 14px rgba(255, 165, 0, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    cursor: pointer;
    transition: filter 0.18s ease, box-shadow 0.18s ease;
}

.services-filters-panel .location-search-submit:hover {
    transform: none;
    filter: brightness(1.06);
    box-shadow: 0 6px 18px rgba(255, 165, 0, 0.35);
}

.services-filters-panel .location-search-submit:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(255, 165, 0, 0.45),
        0 4px 14px rgba(255, 165, 0, 0.22);
}

/* Aktive Suche: kompakter Hinweis */
.services-filters-panel .location-info {
    margin-top: 0.875rem;
    padding: 0.65rem 0.85rem;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: rgba(255, 165, 0, 0.08);
    border: 1px solid rgba(255, 165, 0, 0.22);
    border-radius: 10px;
}

.services-filters-panel .location-info button {
    font-family: inherit;
}

/* Mobile: keine erzwungenen 200px-Breiten, Touch bleibt groß genug */
@media (max-width: 768px) {
    .services-filters-panel {
        padding: 0.875rem 1rem 1rem;
        border-radius: 14px;
    }

    .services-filters-panel .gender-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .services-filters-panel .gender-filter-btn,
    .services-filters-panel .category-chip {
        width: auto;
        min-height: 44px;
        padding: 10px 14px;
        font-size: 0.875rem;
        font-weight: 500;
    }

    .services-filters-panel .location-search-row {
        flex-direction: column;
    }

    .services-filters-panel .location-search-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-filters-panel .category-chip,
    .services-filters-panel .gender-filter-btn,
    .services-filters-panel .location-search-row input,
    .services-filters-panel .location-search-submit {
        transition: none;
    }
}
