/* ================================================
   PREMIUM PROAKTIVES CHAT WIDGET
   Professional Design mit Shop-Farben
   ================================================ */

.sk24-proactive-widget {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 260px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    z-index: 9999;
    display: block !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sk24-proactive-widget:hover {
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.14),
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.sk24-proactive-widget.dismissed {
    animation: slideOutProactive 0.3s ease-in forwards;
}

@keyframes slideInProactive {
    from {
        transform: translateY(60px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutProactive {
    to {
        transform: translateY(60px) scale(0.95);
        opacity: 0;
    }
}

/* ================================================
   HEADER - Premium Design
   ================================================ */
.sk24-proactive-header {
    background: linear-gradient(135deg, #111318 0%, #1a1d24 100%);
    color: #fff;
    padding: 12px 14px;
    position: relative;
    overflow: hidden;
}

.sk24-proactive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd600 0%, #ffc107 100%);
}

.sk24-proactive-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 214, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.sk24-proactive-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
}

/* ================================================
   CONTENT - Mitarbeiter Profil
   ================================================ */
.sk24-proactive-content {
    background: #f8f9fa;
    padding: 14px;
    position: relative;
}

/* Mitarbeiter-Profil Container */
.sk24-proactive-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Mitarbeiter Avatar - Premium Design */
.sk24-proactive-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    position: relative;
}

.sk24-proactive-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 2px;
    object-fit: cover;
    border: 2px solid #ffd600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sk24-proactive-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #28a745;
    border: 2px solid #f8f9fa;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(40, 167, 69, 0.3);
}

/* Mitarbeiter Info */
.sk24-proactive-info {
    flex: 1;
    min-width: 0;
}

.sk24-proactive-name {
    font-size: 13px;
    font-weight: 600;
    color: #111318;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.sk24-proactive-role {
    font-size: 11px;
    color: #666;
    margin: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sk24-proactive-role .material-icons {
    font-size: 14px;
    color: #28a745;
}

/* Message Text */
.sk24-proactive-text {
    color: #333;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    background: #fff;
    padding: 10px;
    border-radius: 2px;
    border-left: 3px solid #ffd600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Chat Icon - Dezent */
.sk24-proactive-chat-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ffd600 0%, #ffc107 100%);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #111318;
    box-shadow: 0 2px 6px rgba(255, 214, 0, 0.3);
}

/* ================================================
   ACTIONS - Premium Buttons
   ================================================ */
.sk24-proactive-cta {
    width: 100%;
    background: linear-gradient(135deg, #ffd600 0%, #ffc107 100%);
    color: #111318;
    border: none;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border-radius: 0 0 3px 3px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.sk24-proactive-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.sk24-proactive-cta:hover::before {
    left: 100%;
}

.sk24-proactive-cta:hover {
    background: linear-gradient(135deg, #ffde00 0%, #ffb700 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.4);
}

.sk24-proactive-cta:active {
    transform: translateY(0);
}

/* Dismiss Button - Professional */
.sk24-proactive-dismiss {
    background: transparent;
    border: none;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 0;
    font-weight: 500;
}

.sk24-proactive-dismiss:hover {
    background: #f8f9fa;
    color: #333;
    text-decoration: underline;
}

/* ================================================
   SUPPORT INFO - Optional
   ================================================ */
.sk24-proactive-support-info {
    padding: 12px 20px;
    background: #fff;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: #888;
}

.sk24-proactive-support-info .material-icons {
    font-size: 14px;
    color: #28a745;
}

/* ================================================
   RUNDER BUTTON AUSBLENDEN
   ================================================ */
#sk24-support-chat-toggle-12345 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 768px) {
    .sk24-proactive-widget {
        width: calc(100% - 32px);
        max-width: 360px;
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .sk24-proactive-widget {
        width: calc(100% - 24px);
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    
    .sk24-proactive-header {
        padding: 14px 16px;
    }
    
    .sk24-proactive-content {
        padding: 16px;
    }
    
    .sk24-proactive-avatar {
        width: 48px;
        height: 48px;
    }
    
    .sk24-proactive-text {
        font-size: 13px;
        padding: 12px;
    }
}

/* ================================================
   DARK MODE SUPPORT (optional)
   ================================================ */
@media (prefers-color-scheme: dark) {
    .sk24-proactive-widget {
        background: #1a1d24;
        box-shadow: 
            0 8px 24px rgba(0, 0, 0, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.08);
    }
    
    .sk24-proactive-content {
        background: #111318;
    }
    
    .sk24-proactive-text {
        background: #1a1d24;
        color: #e9ecef;
    }
    
    .sk24-proactive-name {
        color: #fff;
    }
    
    .sk24-proactive-role {
        color: #adb5bd;
    }
    
    .sk24-proactive-avatar img {
        border-color: #ffd600;
    }
    
    .sk24-proactive-status {
        border-color: #111318;
    }
}
