/* ===== HERO SECTION ===== */
.hero-modern {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.hero-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 99, 111, 0.4) 0%, rgba(108, 171, 131, 0.3) 100%);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(80px);
}

.hero-shape.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
}

.hero-shape.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
}

.hero-shape.shape-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-title {
    color: white;
}

.hero-lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 2;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    min-height: 48px;
    border: none;
    cursor: pointer;
}

.btn-hero-primary {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--color-primary);
}

.hero-icon {
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
    line-height: 1;
    position: relative;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .hero-modern {
        min-height: 400px;
        padding: 3rem 0;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(108, 171, 131, 0.15);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-badge.badge-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* H2 mit text-cap Klasse (Standard auf allen Seiten) */
h2.text-cap {
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h2.text-cap.text-white {
    color: white !important;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(245, 248, 250, 1) 0%, rgba(250, 252, 253, 1) 100%);
}

.cta-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.cta-card::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.cta-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-text {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    min-height: 48px;
    border: none;
    cursor: pointer;
}

.btn-cta-primary {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--color-primary);
}

.cta-illustration {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
}

@media (max-width: 992px) {
    .cta-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-illustration {
        display: none;
    }

    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    padding: 2rem 0 5rem 0;
    background: var(--color-bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
}

.benefit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    opacity: 0;
    transition: var(--transition-smooth);
}

.benefit-card:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.benefit-text {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SERVICE SECTION ===== */
.service-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #054a56 50%, #033d47 100%);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08);
}

.service-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 171, 131, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.service-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(180, 213, 148, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.service-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(/img/shapes/blurs/blur-3.svg) right top no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
    transition: var(--transition-smooth);
    border: 1px solid rgba(6, 99, 111, 0.08);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    border-color: var(--color-secondary);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(6, 99, 111, 0.2);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 28px rgba(6, 99, 111, 0.3);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    margin-top: 0;
}

.service-text {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LEISTUNG SECTION ===== */
.leistung-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #5a9b73 50%, #4a8b63 100%);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.leistung-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.leistung-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -150px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.leistung-section h2 {
    color: white;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.leistung-text {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.leistung-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--color-secondary);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 700;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.leistung-cta:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
    .benefits-section,
    .service-section {
        padding: 3rem 0;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .cta-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.25rem;
    }
}

/* ===== MODERN CHECKMARK LISTS ===== */
.anzeigenpakete-checkmark-list > .d-flex > span[style*="font-size: 1.5rem"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    flex-shrink: 0;
    color: white !important;
    font-size: 1.1rem !important;
    box-shadow: 0 4px 12px rgba(6, 99, 111, 0.2);
    transition: var(--transition-smooth);
}

.anzeigenpakete-checkmark-list > .d-flex:hover > span[style*="font-size: 1.5rem"] {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(6, 99, 111, 0.3);
}

.anzeigenpakete-checkmark-list > .d-flex > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.anzeigenpakete-checkmark-list > .d-flex strong {
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.6;
}

/* ===== MOBILE UX: KATEGORIE CHIP-FILTER ===== */

.filter-container-modern {
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 12px;
    margin: 8px 0;
}

.filter-header {
    margin-bottom: 8px;
}

.filter-header h2 {
    margin-bottom: 8px;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

/* Aktiver Filter Badge */
.active-filter-badge-wrapper {
    margin-top: 6px;
    margin-bottom: 8px;
}

.active-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.active-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: linear-gradient(135deg, rgba(6, 99, 111, 0.08) 0%, rgba(108, 171, 131, 0.06) 100%);
    border: 1.5px solid var(--color-secondary, #6CAB83);
    border-radius: var(--radius-full, 50px);
    color: var(--color-primary, #06636F);
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(6, 99, 111, 0.06),
                inset 0 1px 2px rgba(108, 171, 131, 0.1);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.active-filter-badge:hover {
    background: linear-gradient(135deg, rgba(6, 99, 111, 0.12) 0%, rgba(108, 171, 131, 0.1) 100%);
    border-color: var(--color-primary, #06636F);
    box-shadow: 0 3px 10px rgba(6, 99, 111, 0.12),
                inset 0 1px 2px rgba(108, 171, 131, 0.15);
}

.active-filter-badge i {
    font-size: 0.75rem;
    opacity: 0.9;
    color: var(--color-secondary, #6CAB83);
    transition: color 0.15s ease;
}

.active-filter-badge:hover i {
    opacity: 1;
    color: var(--color-primary, #06636F);
}

/* Mobile Optimization für Badge */
@media (max-width: 480px) {
    .active-filter-badge {
        gap: clamp(0.3rem, 0.8vw, 0.4rem);
        padding: 0.4rem clamp(0.6rem, 1.5vw, 0.9rem);
        font-size: 0.75rem;
    }

    .active-filter-badge i {
        font-size: 0.7rem;
    }
}

/* Kategorie Chips: Horizontal Scrollable */
.category-chips-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.category-chips-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-width: 0;
    padding-bottom: 0;
}

.category-chips-scroll::-webkit-scrollbar {
    display: none;
}

.chip-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--color-bg-light, #f8f9fa);
    color: var(--color-text-secondary, #6c757d);
    border: 2px solid transparent;
    border-radius: var(--radius-full, 50px);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
    scroll-snap-align: start;
    flex-shrink: 0;
    min-height: 32px;
    touch-action: manipulation;
}

.chip-filter:hover {
    background: rgba(108, 171, 131, 0.12);
    color: var(--color-primary, #06636F);
    border-color: var(--color-secondary, #6CAB83);
}

.chip-filter.active {
    background: linear-gradient(135deg, var(--color-primary, #06636F) 0%, var(--color-secondary, #6CAB83) 100%);
    color: white;
    border-color: var(--color-secondary, #6CAB83);
}

.chip-filter i {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* Reset Chip - Visuelle Unterscheidung */
.chip-reset {
    background: rgba(220, 53, 69, 0.1);
    color: #c82333;
    border-color: #dc3545;
    transition: all 0.3s ease;
}

.chip-reset:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #a71d2a;
    border-color: #a71d2a;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.chip-reset:active {
    background: rgba(220, 53, 69, 0.25);
    color: #8b1538;
}

/* Reset-Button (Icon-Only, Performance-Optimiert) */
.chip-reset-icon {
    flex-shrink: 0;
    width: 44px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #c82333;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 1.1rem;
    padding: 0;
    margin: 0;
    visibility: hidden;
    opacity: 0;
}

.chip-reset-icon:hover:not(:disabled) {
    background: rgba(220, 53, 69, 0.08);
    color: #a71d2a;
    border-color: #dc3545;
}

.chip-reset-icon:active:not(:disabled) {
    color: #8b1538;
}

.chip-reset-icon.is-active {
    visibility: visible;
    opacity: 1;
}

/* Mobile & Tablet */
@media (max-width: 1024px) {
    .category-chips-wrapper {
        flex-direction: row;
        gap: 8px;
    }

    .category-chips-scroll {
        flex: 1;
        min-width: 0;
    }

    .chip-reset-icon {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Desktop (1025px+): Reset-Button inline mit Chips */
@media (min-width: 1025px) {
    .chip-reset-icon {
        width: 44px;
        height: 36px;
    }
}

/* Mobile - sehr klein */
@media (max-width: 480px) {
    .chip-reset {
        min-height: 34px;
        padding: clamp(0.45rem, 1vw, 0.55rem) clamp(0.5rem, 1.2vw, 0.7rem) !important;
    }

    .chip-reset i {
        font-size: 0.9rem;
    }

    .reset-label-short {
        font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    }
}

/* ===== ERWEITERTE FILTER: COLLAPSIBLE ===== */

.advanced-filters-wrapper {
    margin-top: 12px;
    border-top: 1px solid var(--color-border, #e9ecef);
    padding-top: 12px;
}

.advanced-filters-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--color-bg-light, #f8f9fa);
    border: 2px solid var(--color-border, #e9ecef);
    border-radius: var(--radius-md, 8px);
    font-weight: 600;
    color: var(--color-primary, #06636F);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.95rem;
    min-height: 44px;
    text-transform: none;
}

.advanced-filters-toggle:hover {
    background: rgba(108, 171, 131, 0.08);
    border-color: var(--color-secondary, #6CAB83);
}

.advanced-filters-toggle:focus-visible {
    outline: 2px solid var(--color-primary, #06636F);
    outline-offset: 2px;
}

.advanced-filters-toggle .toggle-icon {
    margin-left: auto;
    transition: transform 0.15s ease;
    font-size: 0.85rem;
}

.advanced-filters-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Collapsible Content (Mobile: 0-280px, Desktop: auto) */
.advanced-filters-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.advanced-filters-inner {
    padding: 12px 0;
}

.advanced-filters-content[data-max-height] {
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.advanced-filters-content.expanded {
    max-height: var(--expanded-height, 500px);
}

/* Desktop: Erweiterte Filter immer sichtbar */
@media (min-width: 769px) {
    .advanced-filters-toggle {
        display: none;
    }

    .advanced-filters-content {
        max-height: none;
        overflow: visible;
        transition: none;
    }

    .advanced-filters-inner {
        padding: 0;
    }

    .advanced-filters-wrapper {
        margin-top: 0;
        border-top: none;
        padding-top: 0;
    }
}

/* Tablet (576px - 768px) */
@media (min-width: 576px) and (max-width: 768px) {
    .advanced-filters-toggle {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .advanced-filters-inner {
        padding: 8px 0;
    }
}

/* ===== FILTER CTA ===== */

.filter-cta {
    margin-top: 12px;
    padding-top: 12px;
}

.filter-cta h3 {
    margin: 0;
    font-size: 0.95rem;
}

.filter-cta a {
    color: var(--color-primary, #06636F);
    font-weight: 600;
    transition: color 0.15s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.filter-cta a:hover {
    color: var(--color-secondary, #6CAB83);
}

/* ===== LOADING STATE ===== */

#resultlist.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

#resultlist.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-border, #e9ecef);
    border-top-color: var(--color-primary, #06636F);
    border-radius: 50%;
    animation: spin-loader 0.8s linear infinite;
    z-index: 10;
}

@keyframes spin-loader {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ===== RESPONSIVE: TABLET & DESKTOP ===== */

/* Tablet (576px - 768px) */
@media (min-width: 576px) and (max-width: 768px) {
    .category-chips-scroll {
        gap: 6px;
    }

    .chip-filter {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .category-chips-wrapper {
        gap: 6px;
    }
}

/* Tablet-Large (769px - 1024px): Horizontales Scrolling mit kompakteren Chips */
@media (min-width: 769px) and (max-width: 1024px) {
    .category-chips-scroll {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .chip-filter {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .category-chips-wrapper {
        margin-bottom: 8px;
        gap: 6px;
    }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
    .category-chips-scroll {
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 8px;
    }

    .chip-filter {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .category-chips-wrapper {
        margin-bottom: 12px;
        gap: 8px;
    }
}

.chip-filter:focus-visible {
    outline: 2px solid var(--color-primary, #06636F);
    outline-offset: 2px;
}

.advanced-filters-toggle:focus-visible {
    outline: 2px solid var(--color-primary, #06636F);
    outline-offset: 2px;
}

/* ===== FORM ELEMENTS IN ADVANCED FILTERS ===== */
.advanced-filters-inner .form-floating {
    position: relative;
    margin-bottom: 0;
}

.advanced-filters-inner .form-floating > .form-control,
.advanced-filters-inner .form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
    font-size: 0.9rem;
}

.advanced-filters-inner .form-floating > label {
    padding: 1rem 0.75rem;
    color: var(--color-text-secondary, #6c757d);
    font-size: 0.85rem;
}

.advanced-filters-inner .form-floating > .form-control:focus ~ label,
.advanced-filters-inner .form-floating > .form-select:focus ~ label,
.advanced-filters-inner .form-floating > .form-control:not(:placeholder-shown) ~ label,
.advanced-filters-inner .form-floating > .form-select:not(:placeholder-shown) ~ label {
    opacity: 0.65;
}

.advanced-filters-inner .row {
    margin: 0;
}

.advanced-filters-inner .col-lg-6 {
    padding: 0 6px;
    margin-bottom: 0;
}

.advanced-filters-inner .col-lg-6:first-child {
    padding-left: 0;
}

.advanced-filters-inner .col-lg-6:last-child {
    padding-right: 0;
}

/* Mobile: Full-width stacking */
@media (max-width: 768px) {
    .advanced-filters-inner .col-lg-6 {
        padding: 0;
        margin-bottom: 12px;
    }

    .advanced-filters-inner .col-lg-6:last-child {
        margin-bottom: 0;
    }
}
