/* ===================================================================
   BASE STYLES – KLAR, MODERN, ÄHNLICH DEINEM ERSTEN SCREENSHOT
=================================================================== */

* {
    box-sizing: border-box;
}

:root {
    --c1: #0ea5e9;
    --c2: #e2e8f0;
    --c3: #f8fafc;
    --text: #0f172a;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
    margin: 0;
    color: var(--text);
    background: #ffffff;
}

/* ===============================================
   LAYOUT (3-Spaltig wie im Original)
================================================ */

.layout {
    display: grid;
    grid-template-columns: 280px 1fr 360px;
    gap: 16px;
    padding: 16px;
}

@media(max-width: 1200px) {
    .layout {
        grid-template-columns: 260px 1fr 320px;
    }
}

@media(max-width: 980px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

/* ===============================================
   PANES / BOXEN
================================================ */

.pane {
    background: #fff;
    border: 1px solid var(--c2);
    border-radius: 10px;
    padding: 14px;
    min-height: 120px;
}

.pane h2 {
    margin-top: 0;
    font-size: 20px;
}

/* ===============================================
   FORM ELEMENTE
================================================ */

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--c2);
    background: #fff;
}

/* ===============================================
   FAHRZEUG-SPECS
================================================ */

.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 10px 0;
    padding: 10px;
    background: var(--c3);
    border: 1px dashed var(--c2);
    border-radius: 8px;
}

/* ===============================================
   PRODUKT-KARTEN
================================================ */

.product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--c2);
    border-radius: 8px;
    background: white;
}

.product .name {
    font-weight: 600;
}

.product small {
    font-size: 12px;
    color: #64748b;
}

.product .price {
    min-width: 120px;
    text-align: right;
}

.product .qty {
    width: 80px;
    padding: 8px;
}

/* ===============================================
   BUTTONS
================================================ */

.btn {
    border: 1px solid var(--c2);
    background: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.btn.primary {
    background: var(--c1);
    border-color: var(--c1);
    color: white;
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ===============================================
   INFO-KREISE (die kleinen i-Icons)
================================================ */

.info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    border-radius: 50%;
    margin-left: 6px;
    cursor: pointer;
    position: relative;
}

.info-icon:hover::after {
    content: "";
    position: absolute;
    top: 22px;
    left: 0;
    width: 220px;
    height: 150px;
    background-size: cover;
    background-position: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-image: var(--img);
    z-index: 50;
}

/* ===============================================
   WARENKORB
================================================ */

.cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--c2);
    border-radius: 8px;
}

.cart-item .qty {
    width: 70px;
}

.cart-item .remove {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
}

/* ===============================================
   MOBILE-OPTIMIERUNG – DEZENT (nicht übertrieben)
================================================ */

@media (max-width: 768px) {

    .product {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "name name"
            "price qty"
            "button button";
    }

    .product .name {
        grid-area: name;
    }

    .product .price {
        grid-area: price;
        text-align: left;
        margin-top: 4px;
    }

    .product .qty {
        grid-area: qty;
        width: 100%;
    }

    .product .btn {
        grid-area: button;
        width: 100%;
    }

    .info-icon {
        width: 18px;
        height: 18px;
    }
}
/* ============================================================
   Moderner Preis-Toggle (Schieberegler + Text rechts daneben)
   ============================================================ */

.price-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    margin-top: 4px;
}

/* Wrapper für den Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

/* Checkbox unsichtbar */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider-Basis */
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}

/* Knopf */
.slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: .3s;
    border-radius: 50%;
}

/* Aktivierter Zustand */
.switch input:checked + .slider {
    background: #0ea5e9;
}

.switch input:checked + .slider::before {
    transform: translateX(20px);
}

/* Text rechts daneben */
#price-toggle-label {
    font-size: 15px;
    font-weight: 500;
}
/* ============================================================
   Warenkorb – schöner, luftiger, sauberer
   ============================================================ */

.cart {
    border-radius: 12px !important;
    padding: 20px !important;
}

/* Jede Cart-Item Box */
.cart-item {
    padding: 14px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff;
    gap: 14px !important;
}

/* Artikelname + Nummer */
.cart-item .name {
    font-size: 15px;
    font-weight: 600;
}

.cart-item small {
    color: #64748b;
}

/* Preis */
.cart-item .price {
    font-size: 15px;
    font-weight: 600;
    text-align: right;
}

/* Menge */
.cart-item .qty {
    width: 60px;
    padding: 6px;
}

/* Entfernen-X */
.cart-item .remove {
    font-size: 20px;
    color: #ef4444 !important;
}

/* Zusammenfassung */
.cart-summary {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

/* Buttons */
.cart .btn-col {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.cart button.btn {
    padding: 10px 14px !important;
}
/* --- Toggle-Text vertikal mittig am Schieberegler ausrichten --- */

.price-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#price-toggle-label {
    position: relative;
    top: -5px; /* leicht nach oben schieben */
    font-size: 15px;
    font-weight: 500;
}
/* --- Fahrzeugdaten im Warenkorb optisch absetzen --- */

.vehicle-summary {
    margin-top: 28px !important;      /* weiter runter */
    padding: 14px 16px !important;    /* Box-Abstand */
    background: #f8fafc;              /* dezenter hellgrauer Hintergrund */
    border: 1px solid #e2e8f0;        /* sanfter Rand */
    border-radius: 8px;               /* leichte Abrundung */
}

.vehicle-summary h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.vehicle-summary p {
    margin: 0;
    font-size: 14px;
}

