/* Offercarousel Optimized CSS */

/* Haupt-Carousel-Styling */
.offer-carousel {
    background-image: linear-gradient(90deg, #1d2e64 0%, #e5007d 100%) !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 5px !important;
    border-radius: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px !important; /* Verhindert Springen */
    overflow: hidden;
    margin: 0 20px;
}

.owl-nav {
    display: none;
}

/* Hintergrund für den Carousel-Container */
.offer-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    background-color: rgb(234, 225, 225);
    border-radius: 10px;
}

/* 🔹 Fix: NUR EIN DATENSATZ PRO SLIDE SICHTBAR */
.offer-owl-carousel {
    visibility: visible !important;
    height: auto !important;
    overflow: hidden;
    transition: visibility 0s, height 0s;
}

.offer-owl-carousel .owl-stage-outer {
    overflow: hidden;
}

.offer-owl-carousel .owl-stage {
    display: flex;
    overflow: hidden;
}

.offer-owl-carousel .owl-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    overflow: hidden;
}

/* Layout für größere Geräte: Bild links, Text rechts */
.offer-carousel-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: auto;
    overflow: hidden;
}

.offer-carousel-col-img {
    flex: 0 0 35%;
    max-width: 35%;
    padding-right: 40px;
    text-align: center;
    min-height: 250px !important; /* Verhindert das Springen */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0 !important;
    margin-top: 0 !important;
    transition: none !important;
}

/* Optimiertes Bild-Styling */
.offer-carousel-img {
    width: 100% !important;
    height: auto !important;
    max-height: 350px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Textbereich */
.offer-carousel-col-text {
    flex: 0 0 60%;
    max-width: 60%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.offer-carousel-col-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #202D64;
    margin-bottom: 10px;
}

.offer-carousel-col-text p {
    font-size: 2rem;
    font-weight: 400;
    color: #A3075C;
}

/* Preise */
.offer-carousel-price-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-left: 0;
}

.offer-carousel-price {
    font-size: 2.3rem;
    color: #28a745;
    font-weight: bold;
}

.offer-carousel-old-price {
    font-size: 2.5rem;
    color: #999;
    text-decoration: line-through;
}

.offer-carousel-special-price {
    font-size: 2.5rem;
    color: #dc3545;
    font-weight: bold;
}

/* 🔹 Android Firefox: Bild um 30% größer */
@supports (-moz-appearance:none) {
    .offer-carousel-img {
        width: 130% !important;
        max-width: none !important;
        min-height: 250px !important;
    }

    /* 🔹 Android Firefox: Titel um 20% größer */
    .offer-carousel-col-text h1 {
        font-size: 120% !important;
    }

    /* 🔹 Android Firefox: Beschreibung um 50% größer */
    .offer-carousel-col-text p {
        font-size: 150% !important;
    }

    /* 🔹 Preise nebeneinander ausrichten in Firefox */
    .offer-carousel-price-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
    }
}

/* Buttons */
.offer-carousel-button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px !important; /* Weniger Abstand unter dem Button */
}

.offer-carousel-btn {
    padding: 10px 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.offer-carousel-btn-blue {
    background-image: radial-gradient(circle farthest-corner at 10% 20%, rgba(105,105,236,1) 0.1%, rgba(31,31,112,1) 100.2%);
}

.offer-carousel-btn-green {
    background-color: #fdbb2d;
}

.offer-carousel-btn-red {
    background-image: linear-gradient(90deg, #1d2e64 0%, #e5007d 100%) !important;
}

.offer-carousel-btn:hover {
    opacity: 0.9;
}

/* 📌 Navigationspfeile */
.offer-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(251, 250, 250, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.offer-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 🔹 Positionierung der Navigationspfeile */
.offer-carousel-arrow.left {
    left: 50px; /* Linker Pfeil außerhalb des Sliders */
}

.offer-carousel-arrow.right {
    right: 50px; /* Rechter Pfeil außerhalb des Sliders */
}

/* Responsive Anpassungen */
@media (max-width: 576px) {
    .offer-carousel-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .offer-carousel-col-img {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        text-align: center;
        margin-bottom: 15px;
    }

    .offer-carousel-col-text {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Pfeile für Mobilgeräte nach innen setzen */
    .offer-carousel-arrow.left {
        left: 10px;
    }

    .offer-carousel-arrow.right {
        right: 10px;
    }
}
