/* e-dirtbikes.css - Spezifische Styles für die Dirtbike Kacheln */

.dirtbike-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    margin-top: 0px; /* Wird jetzt über das Padding von cbp-item geregelt */
    display: block;
}

.dirtbike-card:hover {
    /* Dezenter Premium Glow ohne harte Kante */
    box-shadow:
        0 0 25px rgba(204, 255, 0, 0.4),
        0 12px 35px rgba(0, 0, 0, 0.06);
    transform: translateY(-8px);
    filter: none;
}

/* Kombinierter Fix: overflow:visible auf allen CubePortfolio-Ebenen */
.dirtbike-section .cbp,
.dirtbike-section .cbp-wrapper {
    overflow: visible !important;
}

/* Der sicherste Weg: Dem Grid-Element ein internes Padding geben.
   Dadurch ist die eigentliche Karte kleiner als die Grid-Zelle und
   der Glow-Effekt bleibt komplett INNERHALB der Grid-Zelle.
   Kein Parent-Container (row, container, body) kann ihn mehr abschneiden! */
.dirtbike-section .cbp-item {
    overflow: visible !important;
    padding: 12px !important;
}

.dirtbike-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #fff;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dirtbike-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

/* Smooth zoom on hover */
.dirtbike-card:hover .dirtbike-image-wrapper img {
    transform: scale(1.08);
}

.dirtbike-content {
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.03);
    background: #ffffff;
}

.dirtbike-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #212331;
    min-height: 5.4rem; /* Platz für 3 Zeilen à 1.5rem * 1.2 line-height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.dirtbike-price {
    font-size: 1.35rem;
    color: #ccff00; /* VOLTWHEELS Theme Green */
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.8); /* Slight shadow to pop on white */
}

/* A nice action button that appears or changes style on hover */
.dirtbike-action {
    display: inline-block;
    padding: 10px 28px;
    background: transparent;
    color: #212331;
    border: 2px solid #212331;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.dirtbike-card:hover .dirtbike-action {
    background: #ccff00;
    color: #212331;
    border-color: #ccff00;
}

/* Filter Tags auf den Kacheln */
.dirtbike-tags {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.dirtbike-tag {
    background-color: #f1f2f6;
    color: #555;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.dirtbike-card:hover .dirtbike-tag {
    background-color: #ccff00; /* VOLTWHEELS Neon Green */
    color: #222;
}

/* Fix für CubePortfolio Filterung: Verhindert, dass WOW.js Animationen 
   versteckte Kacheln wieder sichtbar machen */
.cbp-item-hidden {
    visibility: hidden !important;
    opacity: 0 !important;
}

.cbp-item-hidden .wow {
    visibility: hidden !important;
    animation: none !important;
}

/* Center grid items via wrapper translation when there are fewer items */
@media (min-width: 601px) {
    /* 3 Columns Layout (from 601px upwards) */
    .dirtbike-section .cbp.cbp-1-item .cbp-wrapper {
        transform: translateX(33.3333%) !important;
        transition: transform 0.4s ease;
    }
    .dirtbike-section .cbp.cbp-2-items .cbp-wrapper {
        transform: translateX(16.6666%) !important;
        transition: transform 0.4s ease;
    }
}
@media (max-width: 600px) {
    /* 1 Column Layout (up to 600px): Keine seitliche Verschiebung nötig */
    .dirtbike-section .cbp.cbp-1-item .cbp-wrapper {
        transform: none !important;
    }
}

/* ── Technische Kurzdaten-Leiste auf den Kacheln ── */
.dirtbike-specs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 0 18px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 14px;
}

.dirtbike-spec-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0 6px;
    border-right: 1px solid rgba(0,0,0,0.07);
}

.dirtbike-spec-item:last-child {
    border-right: none;
}

.dirtbike-spec-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #212331;
    line-height: 1.1;
    letter-spacing: 0.2px;
}

.dirtbike-spec-label {
    font-size: 0.62rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.2;
}

/* Sternchen an den Labels (z. B. "Motor*") – Grund-Regel, bold via .dirtbike-spec-label-bold */
.dirtbike-spec-label:has(>span.dirtbike-spec-asterisk) {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #333;
}

.dirtbike-spec-asterisk {
    color: #555;
    font-size: 16px;
    line-height: 0;
    vertical-align: middle;
    margin-left: 2px;
}

.dirtbike-spec-asterisk.dirtbike-spec-label-bold {
    font-weight: bold;
}

/* Hover: Werte leicht hervorheben */
.dirtbike-card:hover .dirtbike-spec-value {
    color: #111;
}

/* Anpassungen für Smartphone-Bildschirme (1 Kachel zentriert & großzügig lesbar) */
@media (max-width: 767px) {
    /* Abstand um die einzelne Kachel */
    .dirtbike-section .cbp-item {
        padding: 8px 12px !important;
    }
    .dirtbike-card {
        margin-top: 10px;
        border-radius: 14px;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .dirtbike-image-wrapper {
        height: 220px;
        padding: 12px;
    }
    .dirtbike-content {
        padding: 20px 15px;
    }
    .dirtbike-title {
        font-size: 1.25rem;
        line-height: 1.3;
        min-height: auto;
        margin-bottom: 12px;
    }
    .dirtbike-price {
        font-size: 1.55rem;
        font-weight: 800;
        margin-bottom: 14px;
        letter-spacing: -0.3px;
    }
    /* "Details ansehen" Button */
    .dirtbike-action {
        padding: 9px 24px;
        font-size: 12.5px;
        letter-spacing: 0.5px;
        border-width: 1.5px;
        border-radius: 25px;
        display: inline-block;
    }
    .dirtbike-tags {
        margin-bottom: 10px;
        gap: 6px;
    }
    .dirtbike-tag {
        font-size: 0.72rem;
        padding: 3px 10px;
    }
    /* Specs: Hervorragend lesbar in voller Breite */
    .dirtbike-specs {
        margin: 0 0 16px 0;
        padding-top: 12px;
        gap: 0;
    }
    .dirtbike-spec-item {
        padding: 0 8px;
        gap: 3px;
    }
    .dirtbike-spec-value {
        font-size: 0.92rem;
        font-weight: 800;
        color: #111827;
        white-space: nowrap;
    }
    .dirtbike-spec-label {
        font-size: 0.65rem;
        font-weight: 600;
        color: #4b5563;
        line-height: 1.2;
    }
    .dirtbike-spec-label:has(>span.dirtbike-spec-asterisk) {
        font-weight: 600;
        color: #4b5563;
    }
    .dirtbike-spec-asterisk {
        font-size: 14px;
        color: #374151;
    }

    /* Filter-Buttons auf Smartphones: Kompakt, sauber zentriert & ergonomisch */
    .dirtbike-section .cbp-l-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 25px;
        padding: 0 4px;
    }
    .dirtbike-section .cbp-l-filters .cbp-filter-item {
        margin: 0 !important;
    }
    .dirtbike-section .cbp-l-filters .cbp-filter-item span {
        padding: 6px 14px;
        font-size: 12.5px;
        letter-spacing: 0.2px;
        border-radius: 20px;
    }
}
