/* TwoPixels Exit-Intent Popup Styles */

.tp-exit-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tp-exit-overlay.tp-exit-visible {
    display: flex;
    opacity: 1;
}

.tp-exit-popup {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    padding: 40px;
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tp-exit-overlay.tp-exit-visible .tp-exit-popup {
    transform: scale(1);
    opacity: 1;
}

.tp-exit-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-exit-close:hover {
    background: #e0e0e0;
    color: #333;
}

.tp-exit-headline {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    text-align: center;
}

.tp-exit-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 25px 0;
    text-align: center;
}

.tp-exit-code {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    margin: 0 0 25px 0;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

.tp-exit-code:hover {
    transform: scale(1.02);
}

.tp-exit-code::after {
    content: 'Klicken zum Kopieren';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    color: #999;
}

.tp-exit-code.tp-exit-copied::after {
    content: 'Kopiert!';
    color: #4CAF50;
}

.tp-exit-newsletter {
    margin: 0 0 20px 0;
}

.tp-exit-newsletter-input {
    display: flex;
    gap: 10px;
}

.tp-exit-newsletter input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.tp-exit-newsletter input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
}

.tp-exit-newsletter input[type="email"]::placeholder {
    color: #aaa;
}

.tp-exit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.tp-exit-newsletter .tp-exit-button {
    width: auto;
    white-space: nowrap;
}

.tp-exit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.tp-exit-success {
    background: #4CAF50;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    display: none;
}

.tp-exit-success.tp-exit-show {
    display: block;
}

.tp-exit-dismiss {
    display: block;
    text-align: center;
    color: #999;
    font-size: 13px;
    text-decoration: none;
    margin-top: 15px;
    transition: color 0.2s;
}

.tp-exit-dismiss:hover {
    color: #666;
}

/* Responsive */
@media (max-width: 600px) {
    .tp-exit-popup {
        width: 95%;
        padding: 30px 20px;
        margin: 10px;
    }

    .tp-exit-headline {
        font-size: 22px;
    }

    .tp-exit-text {
        font-size: 14px;
    }

    .tp-exit-code {
        font-size: 18px;
        letter-spacing: 2px;
        padding: 12px 20px;
    }

    .tp-exit-newsletter-input {
        flex-direction: column;
    }

    .tp-exit-newsletter .tp-exit-button {
        width: 100%;
    }
}
