/* =========================
   Grundlayout Inserate
   ========================= */

.inserate-abschnitt {
    position: relative;
    overflow: hidden;
    padding: 4.75rem 0 5.5rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 100%);
}

.inserate-hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.inserate-hero-glow-eins {
    top: 2rem;
    right: -6rem;
    width: 18rem;
    height: 18rem;
    background: rgba(255, 115, 0, 0.16);
}

.inserate-hero-glow-zwei {
    top: 12rem;
    left: -7rem;
    width: 16rem;
    height: 16rem;
    background: rgba(59, 130, 246, 0.05);
}

.inserate-abschnitt .container-xxl {
    position: relative;
    z-index: 1;
}

.inserate-kopf-kachel,
.inserate-filter-kachel,
.inserate-leer-kachel {
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 1.6rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.96) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

.inserate-kopf-kachel {
    position: relative;
    overflow: hidden;
}

.inserate-kopf-kachel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(255, 115, 0, 0.10), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 35%);
}

.inserate-kopf-kachel::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0),
        rgba(255, 115, 0, 0.24),
        rgba(255, 255, 255, 0)
    );
}

.inserate-kopf-inhalt {
    position: relative;
    z-index: 1;
}

.inserate-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 115, 0, 0.16) 0%, rgba(255, 115, 0, 0.10) 100%);
    color: #ff7300;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 8px 20px rgba(255, 115, 0, 0.08);
}

.inserate-titel {
    color: #0f172a;
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.inserate-einleitung {
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #64748b !important;
}

.inserate-inhalt-shell {
    position: relative;
    z-index: 1;
}

.inserate-ergebnisleiste {
    color: #64748b;
    font-size: 0.96rem;
    line-height: 1.6;
}

.inserate-ergebnis-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.92) 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 8px 16px rgba(15, 23, 42, 0.04);
}

.inserate-ergebnis-chip-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 115, 0, 0.10);
    color: #ff7300;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.inserate-ergebnis-chip-wert {
    color: #334155;
    font-weight: 600;
}

/* =========================
   Filterbereich
   ========================= */

.inserate-filter-kachel {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
}

.inserate-filter-kachel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 30%);
}

.inserate-filter-kachel > * {
    position: relative;
    z-index: 1;
}

.inserate-filter-kopf {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.inserate-filter-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.inserate-filter-titel {
    color: #0f172a;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.2;
}

.inserate-filter-einleitung {
    max-width: 52rem;
    color: #64748b;
    line-height: 1.7;
}

.inserate-filter-kachel label,
.inserate-filter-kachel .form-label {
    color: #334155;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.55rem;
}

.inserate-filter-kachel .form-control,
.inserate-filter-kachel .form-select {
    min-height: 3.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.94) 100%);
    color: #0f172a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 4px 10px rgba(15, 23, 42, 0.02);
}

.inserate-filter-kachel .form-control::placeholder {
    color: #94a3b8;
}

.inserate-filter-kachel .form-control:hover,
.inserate-filter-kachel .form-select:hover {
    border-color: rgba(255, 115, 0, 0.18);
}

.inserate-filter-kachel .form-control:focus,
.inserate-filter-kachel .form-select:focus {
    border-color: rgba(255, 115, 0, 0.42);
    box-shadow:
        0 0 0 0.22rem rgba(255, 115, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.inserate-filter-kachel .form-text,
.inserate-filter-kachel small {
    color: #64748b;
}

.inserate-filter-kachel hr,
.inserate-filter-kachel .dropdown-divider {
    border-color: rgba(15, 23, 42, 0.08);
    opacity: 1;
}

.inserate-filter-aktionsleiste {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.inserate-filter-hinweis {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .inserate-filter-aktionsleiste {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* =========================
   Buttons
   ========================= */

.button-marke {
    border: 0;
    background: linear-gradient(135deg, #ff7300 0%, #ff8a2b 100%);
    color: white;
    box-shadow:
        0 12px 24px rgba(255, 115, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button-marke:hover,
.button-marke:focus {
    background: linear-gradient(135deg, #e56600 0%, #ff7300 100%);
    color: white;
    box-shadow:
        0 16px 30px rgba(255, 115, 0, 0.24),
        0 0 0 1px rgba(255, 115, 0, 0.10);
}

.button-marke:active {
    background: linear-gradient(135deg, #d85f00 0%, #ef6b00 100%) !important;
    color: #ffffff !important;
}

.inserate-filter-button,
.inserate-filter-kachel .btn,
.inserate-filter-kachel button[type="submit"],
.inserate-filter-kachel button[type="reset"] {
    min-height: 3.1rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    min-width: 210px;
}

/* =========================
   Fahrzeugkarten
   ========================= */

.fahrzeug-kachel {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 1.4rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.96) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.fahrzeug-kachel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 34%);
    z-index: 1;
}

.fahrzeug-kachel:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 115, 0, 0.20);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow:
        0 26px 46px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255, 115, 0, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.fahrzeug-bild-rahmen {
    position: relative;
    height: 235px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.96) 0%, rgba(238, 241, 244, 0.94) 100%);
}

.fahrzeug-bild-link {
    display: block;
    width: 100%;
    height: 100%;
}

.fahrzeug-bild-rahmen::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 72px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.52) 100%);
}

.fahrzeug-bild {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fahrzeug-kachel:hover .fahrzeug-bild {
    transform: scale(1.03);
}

.fahrzeug-bild-platzhalter {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
    color: #64748b;
    font-weight: 600;
    text-align: center;
}

.fahrzeug-kachel .card-body {
    position: relative;
    z-index: 2;
    padding: 1.35rem;
}

.fahrzeug-titel {
    min-height: 3.2rem;
    color: #0f172a;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.fahrzeug-titel-link:hover,
.fahrzeug-titel-link:focus,
.fahrzeug-titel a:hover,
.fahrzeug-titel a:focus {
    color: #ff7300;
}

.fahrzeug-meta {
    font-size: 0.95rem;
    line-height: 1.6;
}

.fahrzeug-preisbereich {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 115, 0, 0.05) 0%, rgba(255, 115, 0, 0.03) 100%);
    border: 1px solid rgba(255, 115, 0, 0.08);
}

.fahrzeug-preis {
    color: #ff7300;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 0 12px rgba(255, 115, 0, 0.08);
}

.fahrzeug-features {
    min-height: 92px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-content: flex-start;
}

.fahrzeug-feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.76rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.88) 0%, rgba(255, 255, 255, 0.98) 100%);
    color: #334155;
    font-size: 0.84rem;
    line-height: 1.2;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        0 4px 10px rgba(15, 23, 42, 0.04);
}

.fahrzeug-zusatzinfo {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.fahrzeug-preis-hinweis {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.4;
}

.fahrzeug-button {
    padding-block: 0.9rem;
}

/* =========================
   Paginierung
   ========================= */

.pagination {
    gap: 0.35rem;
    flex-wrap: wrap;
}

.pagination .page-link {
    min-width: 2.8rem;
    min-height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.96) 100%);
    color: #334155;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 6px 12px rgba(15, 23, 42, 0.03);
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    color: #ff7300;
    border-color: rgba(255, 115, 0, 0.28);
    box-shadow:
        0 0 0 0.2rem rgba(255, 115, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #ff7300 0%, #ff8a2b 100%);
    border-color: #ff7300;
    color: white;
    box-shadow:
        0 12px 24px rgba(255, 115, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* =========================
   Leerkachel
   ========================= */

.inserate-leer-kachel {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    text-align: center;
}

.inserate-leer-kachel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 34%);
}

/* =========================
   Ladezustand
   ========================= */

#inserate-ergebnisse {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#inserate-ergebnisse.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transform: translateY(2px);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 991.98px) {
    .inserate-abschnitt {
        padding: 4rem 0 4.75rem;
    }

    .fahrzeug-bild-rahmen {
        height: 225px;
    }
}

@media (max-width: 767.98px) {
    .inserate-abschnitt {
        padding: 3.5rem 0 4.25rem;
    }

    .inserate-kopf-kachel,
    .inserate-filter-kachel,
    .inserate-leer-kachel {
        border-radius: 1.3rem;
    }

    .inserate-filter-kachel {
        padding: 1rem;
    }

    .inserate-filter-button,
    .inserate-filter-kachel .btn,
    .inserate-filter-kachel button[type="submit"],
    .inserate-filter-kachel button[type="reset"] {
        min-width: 0;
        width: 100%;
    }

    .fahrzeug-kachel .card-body {
        padding: 1.2rem;
    }

    .fahrzeug-features {
        min-height: auto;
    }

    .inserate-ergebnis-chip {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .fahrzeug-bild-rahmen {
        height: 210px;
    }

    .pagination .page-link {
        min-width: 2.55rem;
        min-height: 2.55rem;
        border-radius: 0.85rem;
    }
}