/* Styles for Keksformen page */

/* Mehr lesen/Weniger lesen Funktionalität für mobile Geräte */
@media (max-width: 768px) {
    .artikel-description {
        position: relative;
    }
    
    .artikel-description.collapsed {
        max-height: 200px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .artikel-description.expanded {
        max-height: none;
        transition: max-height 0.3s ease;
    }
    
    .read-more-btn {
        background: linear-gradient(to bottom, transparent 0%, lightgray 70%, lightgray 100%);
        border: none;
        color: #ef770b;
        font-weight: bold;
        padding: 15px 10px 10px 10px;
        cursor: pointer;
        width: 100%;
        text-align: center;
        margin-top: -20px;
        position: relative;
        z-index: 1;
        font-size: 14px;
        transition: all 0.3s ease;
    }
    
    .read-more-btn:hover {
        color: #d65f00;
    }
    
    .read-more-btn.hidden {
        display: none;
    }
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
}

.carousel img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel img:hover {
    transform: scale(1.05);
}

/* Overlay for zoomed images */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.zoomed {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Close button for overlay */
.overlay-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
}

.overlay-close:hover {
    color: #bbb;
}

/* Navigation buttons for overlay */
.overlay-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 80px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1005;
}

.overlay-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.overlay-prev {
    left: 30px;
    border-radius: 0 5px 5px 0;
}

.overlay-next {
    right: 30px;
    border-radius: 5px 0 0 5px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 1200px;
    height: 80vh;
    max-height: 90vh;
}

#modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1010;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 30px;
    font-weight: bold;
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    z-index: 1010;
    display: block !important;
}

.modal-nav:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.prev-modal-btn {
    left: 30px;
}

.next-modal-btn {
    right: 30px;
}

/* Product Variant Styles */
.product-variant {
    margin-bottom: 20px;
}

.product-variant label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.product-variant select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

/* Modal Styles for Image Zoom */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 80%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Color indicators in dropdown */
.color-black {
    background-color: #000;
}

.color-gray {
    background-color: #888;
}

.color-transparent {
    background-color: transparent;
    border: 1px dashed #ccc;
}

.color-lightblue {
    background-color: #add8e6;
}

.color-orange {
    background-color: #ffa500;
}

.color-red {
    background-color: #ff0000;
}

.color-green {
    background-color: #00ff00;
}

.color-blue {
    background-color: #0000ff;
}

.color-yellow {
    background-color: #ffff00;
}

.color-pink {
    background-color: #ffc0cb;
}

.color-purple {
    background-color: #800080;
}

/* Toast-Benachrichtigung */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ef770b;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification img {
    height: 24px;
    margin-right: 10px;
}

.toast-notification-message {
    font-size: 16px;
    font-weight: 500;
}
