/**
 * JAROLE EASY CMS - Special Image Modal
 * CSS für vergrößerte Special-Bilder im Image-Modal-Design
 */

/* Modal Overlay */
.special-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.special-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

/* Image-Modal Container */
.special-modal-container {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5),
                0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    padding: 20px 20px 30px 20px;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close Button */
.special-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    color: #032133;
    border: 3px solid #fff;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.special-modal-close:hover {
    background: #032133;
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

.special-modal-close:focus-visible {
    outline: 2px solid #032133;
    outline-offset: 2px;
}

/* Bild-Container */
.special-modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.special-modal-image {
    max-width: 50vw;
    max-height: 50vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Content-Bereich (unter dem Bild) */
.special-modal-content {
    text-align: center;
    padding: 0 10px;
}

.special-modal-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.special-modal-description {
    font-size: 1rem;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.special-modal-button {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 10px;
    background: #032133;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.special-modal-button:hover {
    background: #f5f5f5;
    color: #032133;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.special-modal-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .special-modal-container {
        padding: 15px 15px 25px 15px;
        max-width: 95vw;
    }

    .special-modal-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: -12px;
        right: -12px;
    }

    .special-modal-image {
        max-width: 70vw;
        max-height: 45vh;
    }

    .special-modal-title {
        font-size: 1.4rem;
    }

    .special-modal-description {
        font-size: 0.9rem;
    }

    .special-modal-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .special-modal {
        padding: 10px;
    }

    .special-modal-container {
        padding: 10px 10px 20px 10px;
        max-width: 98vw;
    }

    .special-modal-image {
        max-width: 85vw;
        max-height: 40vh;
    }

    .special-modal-title {
        font-size: 1.2rem;
    }
}

/* Accessibility: Fokus-Styles */
*:focus-visible {
    outline: 2px solid var(--primary-color, #007bff);
    outline-offset: 2px;
}

/* Cursor-Pointer für Zoom-Trigger */
.special-zoom-trigger {
    cursor: zoom-in;
}

.special-zoom-trigger:hover {
    opacity: 0.9;
}
