/* IceCreamCMS Werbung Modal Styles */

/* Backdrop */
.icecreamcms-werbung-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.icecreamcms-werbung-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.icecreamcms-werbung-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 90vw;
    max-height: 90vh;
    width: 500px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.icecreamcms-werbung-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Header */
.icecreamcms-werbung-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.icecreamcms-werbung-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.icecreamcms-werbung-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.icecreamcms-werbung-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.icecreamcms-werbung-close:active {
    transform: scale(0.95);
}

/* Modal Body */
.icecreamcms-werbung-modal-body {
    padding: 30px 25px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Werbungsinhalt */
.icecreamcms-werbung-content {
    text-align: center;
}

.icecreamcms-werbung-content img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.icecreamcms-werbung-content div {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
}

/* Werbungsbutton */
.icecreamcms-werbung-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.icecreamcms-werbung-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}

.icecreamcms-werbung-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .icecreamcms-werbung-modal {
        width: 95vw;
        margin: 20px;
    }
    
    .icecreamcms-werbung-modal-header {
        padding: 15px 20px;
    }
    
    .icecreamcms-werbung-modal-header h3 {
        font-size: 18px;
    }
    
    .icecreamcms-werbung-modal-body {
        padding: 20px;
    }
    
    .icecreamcms-werbung-content img {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .icecreamcms-werbung-modal {
        width: 98vw;
        margin: 10px;
    }
    
    .icecreamcms-werbung-modal-header {
        padding: 12px 15px;
    }
    
    .icecreamcms-werbung-modal-body {
        padding: 15px;
    }
}

/* Animationen */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
        visibility: hidden;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

/* Scrollbar Styling */
.icecreamcms-werbung-modal-body::-webkit-scrollbar {
    width: 6px;
}

.icecreamcms-werbung-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.icecreamcms-werbung-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.icecreamcms-werbung-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 