.carousel-container {
    width: 100%;
    text-align: center;
    font-family: sans-serif;
    margin-top: 2rem;
}

.detail-table-container {
    margin-top: 3.88rem;
}

.lastorder-container {
    margin-top: 1.5rem;
}

.bildwrapper {
    object-fit: contain;
    min-height: 0;
}

.modal-body p b {
    font-weight: var(--font_weight-bold)
}

#div_bildwrapper {
    width: 100%;
    max-width: 100%;
    height: 18rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#photoSwipeMainLink {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#mainImage,
.bildwrapper {
    display: block;
    max-width: 85%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* =========================================================
   2. Größere Smartphones
   ========================================================= */
@media (min-width: 481px) {
    .carousel-container {
        margin-top: 4rem;
    }

    #div_bildwrapper {
        height: 22rem;
    }

    .thumbnails img {
        width: 85px;
        height: 60px;
    }
}

/* =========================================================
   3. Tablets (Portrait)
   ========================================================= */
@media (min-width: 769px) {
    .carousel-container {
        margin-top: 3rem;
    }

    .detail-table-container {
        margin-top: 3.88rem;
    }

    #div_bildwrapper {
        max-width: 40rem;
        height: 28rem;
    }

    .thumbnails img {
        width: 100px;
        height: 70px;
    }
}

/* =========================================================
   4. Tablets (Landscape) / kleine Desktops
   ========================================================= */
@media (min-width: 1025px) {
    .carousel-container {
        margin-top: 0.1rem;
    }

    .detail-table-container {
        margin-top: 3.88rem;
    }
}

/* =========================================================
   5. Große Displays
   ========================================================= */
@media (min-width: 1281px) {
    .carousel-container {
        margin-top: 0.1rem;
    }

    .detail-table-container {
        margin-top: 3.88rem;
    }

    .lastorder-container {
        margin-top: 1.5rem;
    }
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    text-align: center;
}

.main-image-wrapper img {
    width: 80%;

}

.prev_klein {
    left: 1.25rem;
}

.next_klein {
    right: 1.25rem;
}

.thumbnails {
    display: inline-block;
}

.thumbnails img {
    width: 100px;
    height: 70px;
    object-fit: contain;
    cursor: pointer;
    border: 2px solid transparent;

    transition: 0.3s;
}

.thumbnails img.active {
    border: 2px solid var(--color_accent_surface);
    border-radius: 0.9rem;
}


.close {
    position: absolute;
    top: 10px;
    right: 30px;
    font-size: 30px;
    color: #2658EB;
    cursor: pointer;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border: 0 solid #fff;
}

