/* --- ABSOLUTER FIX FÜR DIE LARGE-CARD --- */

/* 1. Die Karte selbst */
.large-card {
    height: 600px !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 25px !important;
    overflow: hidden !important;
    background: white !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    /* NUR Bewegung und Schatten animieren */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    transform: scale(1) !important; /* Verhindert jegliche Standard-Skalierung */
}

/* 2. Hover-Effekt: NUR hochgleiten, KEIN Scale */
.large-card:hover {
    transform: translateY(-10px) scale(1) !important; 
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}

/* 3. Bild-Container (Der Rahmen) - FESTE GRÖSSE */
.large-card .card-img-container {
    height: 75% !important;
    padding: 10px !important; /* Hier den Wert eintragen, der dir beim Hovern gefiel */
    background-color: white !important;
    flex-shrink: 0 !important;
    display: block !important;
}

/* 4. Das Bild selbst - DARF SICH NICHT BEWEGEN */
.large-card .card-img-top {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 18px !important;
    transition: none !important; /* Verhindert Zappeln beim Hover */
    transform: none !important;
}

/* 5. Text-Bereich */
.large-card .card-body {
    height: 25% !important;
    padding: 10px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: white !important;
}

/* min-height = 2 Zeilen bei 1.5rem/line-height 1.2 → Button bleibt bei 1 oder 2 Zeilen immer gleich */
.large-card .product-title {
    min-height: 3.6rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

/* --- MOBILE: feste 600px-Höhe aufheben, Karte wächst mit Inhalt --- */
@media (max-width: 767.98px) {
    .large-card {
        height: auto !important;
    }
    /* Bild bekommt ein festes Seitenverhältnis statt fixer 75%-Höhe */
    .large-card .card-img-container {
        height: auto !important;
        aspect-ratio: 4 / 5;
        padding: 8px !important;
    }
    .large-card .card-body {
        height: auto !important;
        padding: 12px 12px 16px !important;
    }
    .large-card .product-title {
        min-height: auto !important;
        font-size: 1.05rem !important;
    }
}
