/**
 * Invictus Lead Generation Popup - Styles
 * Entwickelt von Christian Alber für Invictus Lead Generation GmbH
 */

.invictus-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: invictusPopupFadeIn 0.3s ease-in-out;
}

@keyframes invictusPopupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.invictus-popup-container {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: invictusPopupSlideIn 0.4s ease-out;
}

@keyframes invictusPopupSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.invictus-popup-container.invictus-popup-bottom-right {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 420px;
    animation: invictusPopupSlideInBottomRight 0.4s ease-out;
}

@keyframes invictusPopupSlideInBottomRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.invictus-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invictus-popup-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.invictus-popup-content {
    display: flex;
    align-items: stretch;
}

.invictus-popup-image {
    flex: 0 0 20%;
    min-height: 250px;
    overflow: hidden;
}

.invictus-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.invictus-popup-text {
    flex: 1;
    padding: 35px 30px;
}

.invictus-popup-headline {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}

.invictus-popup-description {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
    color: inherit;
}

.invictus-popup-button {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.invictus-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .invictus-popup-container {
        max-width: 95%;
        width: 95%;
    }
    
    .invictus-popup-container.invictus-popup-bottom-right {
        position: fixed;
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
    
    .invictus-popup-content {
        flex-direction: column;
    }
    
    .invictus-popup-image {
        flex: 0 0 auto;
        min-height: 150px;
        max-height: 150px;
    }
    
    .invictus-popup-text {
        padding: 25px 20px;
    }
    
    .invictus-popup-headline {
        font-size: 20px;
    }
    
    .invictus-popup-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .invictus-popup-text {
        padding: 20px 15px;
    }
    
    .invictus-popup-headline {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .invictus-popup-description {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .invictus-popup-button {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
        font-size: 14px;
    }
}