/* =========================
   Allgemeine Detailansicht
   ========================= */

.detail-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%);
}

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

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

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

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

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

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

.detail-kopf-kachel::before,
.detail-inhalt-kachel::before,
.detail-kontakt-kachel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 34%);
}

.detail-kopf-kachel > *,
.detail-inhalt-kachel > *,
.detail-kontakt-kachel > * {
    position: relative;
    z-index: 1;
}

.button-marke {
    border: 0;
    background: linear-gradient(135deg, #ff7300 0%, #ff8a2b 100%);
    color: #ffffff;
    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: #ffffff;
    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;
}

/* =========================
   Kopfbereich
   ========================= */

.detail-kopf-inhalt {
    max-width: 52rem;
}

.detail-kopf-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.detail-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);
}

.detail-titel {
    color: #0f172a;
    line-height: 1.05;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.detail-meta {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.8;
}

.detail-preis-panel {
    padding: 1.35rem;
    border-radius: 1.35rem;
    background:
        linear-gradient(180deg, rgba(255, 115, 0, 0.06) 0%, rgba(255, 115, 0, 0.03) 100%);
    border: 1px solid rgba(255, 115, 0, 0.10);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 24px rgba(15, 23, 42, 0.04);
}

.detail-preis {
    color: #ff7300;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-shadow: 0 0 16px rgba(255, 115, 0, 0.08);
}

.detail-preis-hinweis {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
}

.detail-preis-aktionen {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.detail-datenpunkt-zusatz {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background-color: rgba(255, 115, 0, 0.10);
    border: 1px solid rgba(255, 115, 0, 0.12);
    color: #ff7300;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

/* =========================
   Sektionsköpfe
   ========================= */

.detail-sektionskopf {
    display: grid;
    gap: 0.55rem;
}

.detail-sektionskicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 0.4rem 0.78rem;
    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;
}

/* =========================
   Galerie
   ========================= */

.detail-galerie-rahmen {
    border-radius: 1.25rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.96) 0%, rgba(238, 241, 244, 0.94) 100%);
}

.detail-galerie-bild {
    width: 100%;
    height: clamp(300px, 52vw, 760px);
    object-fit: contain;
    display: block;
    border-radius: 1.25rem;
}

.detail-galerie-platzhalter {
    width: 100%;
    height: clamp(300px, 52vw, 760px);
    display: grid;
    place-items: center;
    padding: 2rem;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #eef1f4 100%);
    color: #64748b;
    font-weight: 600;
    text-align: center;
}

#inseratGalerie .carousel-inner {
    border-radius: 1.25rem;
}

#inseratGalerie .carousel-indicators {
    margin-bottom: 1rem;
    gap: 0.45rem;
}

#inseratGalerie .carousel-indicators button {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    border: 0;
    opacity: 0.8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
}

#inseratGalerie .carousel-control-prev,
#inseratGalerie .carousel-control-next {
    width: 10%;
}

#inseratGalerie .carousel-control-prev-icon,
#inseratGalerie .carousel-control-next-icon {
    background-color: rgba(15, 23, 42, 0.42);
    border-radius: 999px;
    padding: 1.2rem;
    background-size: 54% 54%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 991.98px) {
    .detail-galerie-bild,
    .detail-galerie-platzhalter {
        height: clamp(260px, 60vw, 560px);
    }
}

@media (max-width: 575.98px) {
    .detail-galerie-bild,
    .detail-galerie-platzhalter {
        height: clamp(220px, 66vw, 360px);
    }

    #inseratGalerie .carousel-control-prev,
    #inseratGalerie .carousel-control-next {
        width: 16%;
    }

    #inseratGalerie .carousel-control-prev-icon,
    #inseratGalerie .carousel-control-next-icon {
        padding: 0.95rem;
        background-size: 50% 50%;
    }
}

/* =========================
   Fahrzeugdaten
   ========================= */

.detail-daten-liste {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .detail-daten-liste {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-datenpunkt {
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    background:
        linear-gradient(180deg, rgba(250, 251, 252, 0.95) 0%, rgba(248, 249, 250, 1) 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 6px 14px rgba(15, 23, 42, 0.03);
}

.detail-datenpunkt-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.01em;
}

.detail-datenpunkt-wert {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
}

/* =========================
   Merkmale
   ========================= */

.detail-merkmale {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

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

/* =========================
   Beschreibung
   ========================= */

.detail-beschreibung-intro {
    margin-bottom: 1.25rem;
    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);
    color: #334155;
}

.detail-beschreibungsliste {
    margin-bottom: 0;
    padding-left: 1.25rem;
    column-count: 1;
    column-gap: 2rem;
}

@media (min-width: 992px) {
    .detail-beschreibungsliste {
        column-count: 3;
    }
}

.detail-beschreibungsliste li {
    break-inside: avoid;
    margin-bottom: 0.7rem;
    color: #334155;
    line-height: 1.7;
}

.detail-beschreibungsliste li:last-child {
    margin-bottom: 0;
}

/* =========================
   Kontaktformular
   ========================= */

.detail-kontakt-einleitung {
    max-width: 48rem;
    line-height: 1.8;
}

.detail-kontakt-kachel .form-label {
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.55rem;
}

.detail-kontakt-kachel .form-control,
.detail-kontakt-kachel .form-select,
.detail-kontakt-kachel textarea {
    min-height: 3.2rem;
    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);
}

.detail-kontakt-kachel textarea {
    min-height: 10rem;
    resize: vertical;
}

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

.detail-kontakt-kachel .form-control:focus,
.detail-kontakt-kachel .form-select:focus,
.detail-kontakt-kachel textarea: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);
}

.detail-kontakt-kachel .form-check {
    padding: 1rem 1rem 1rem 2rem;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(250, 251, 252, 0.94) 0%, rgba(248, 249, 250, 1) 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.detail-kontakt-kachel .form-check-input {
    margin-top: 0.2rem;
}

.detail-kontakt-kachel .form-check-input:checked {
    background-color: #ff7300;
    border-color: #ff7300;
}

.detail-kontakt-kachel .form-check-input:focus {
    border-color: rgba(255, 115, 0, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(255, 115, 0, 0.14);
}

.detail-hinweisbox {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(250, 251, 252, 0.94) 0%, rgba(248, 249, 250, 1) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: #475569;
}

.detail-hinweisbox a {
    color: #ff7300;
    text-decoration: underline;
    text-decoration-color: rgba(255, 115, 0, 0.35);
    text-underline-offset: 0.14em;
}

.detail-hinweisbox a:hover,
.detail-hinweisbox a:focus {
    color: #e56600;
    text-decoration-color: rgba(255, 115, 0, 0.8);
}

.detail-formular-button {
    min-width: 220px;
}

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

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

    .detail-preis-panel {
        padding: 1.15rem;
    }
}

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

    .detail-kopf-kachel,
    .detail-inhalt-kachel,
    .detail-kontakt-kachel {
        border-radius: 1.3rem;
    }

    .detail-preis-aktionen .btn,
    .detail-formular-button {
        width: 100%;
        min-width: 0;
    }

    .detail-beschreibungsliste {
        padding-left: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .detail-preis {
        font-size: 1.85rem;
    }

    .detail-datenpunkt {
        padding: 0.9rem 1rem;
    }
}