/* ==============================================
   ERWEITERTE HEADER STYLES FÜR INSTALL BUTTON
   ============================================== */

.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative; /* Für absolute positionierte Banner */
}

.header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.header img {
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    padding: 0px;
}

.header-text {
    flex: 1;
    text-align: left;
}

.header h1 {
    color: white;
    font-size: 2.5em;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1.2em;
}

/* ==============================================
   INSTALL BUTTON CONTAINER ERWEITERT
   ============================================== */

#install-button-container {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
}

/* Verbesserter Install Button */
.install-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(79, 172, 254, 0.4),
        0 0 0 0 rgba(79, 172, 254, 0.7);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(10px);
}

.install-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(79, 172, 254, 0.6),
        0 0 0 8px rgba(79, 172, 254, 0.1);
}

.install-btn.swing {
    animation: swingAnimation 4s infinite, pulseGlow 3s infinite;
}

@keyframes swingAnimation {
    0%, 75% { transform: rotate(0deg); }
    78% { transform: rotate(-8deg); }
    82% { transform: rotate(8deg); }
    86% { transform: rotate(-6deg); }
    90% { transform: rotate(4deg); }
    94% { transform: rotate(-2deg); }
    97%, 100% { transform: rotate(0deg); }
}

@keyframes pulseGlow {
    0%, 70% { 
        box-shadow: 
            0 4px 15px rgba(79, 172, 254, 0.4),
            0 0 0 0 rgba(79, 172, 254, 0.7);
    }
    85% { 
        box-shadow: 
            0 6px 25px rgba(79, 172, 254, 0.6),
            0 0 0 10px rgba(79, 172, 254, 0.2);
    }
    100% { 
        box-shadow: 
            0 4px 15px rgba(79, 172, 254, 0.4),
            0 0 0 0 rgba(79, 172, 254, 0.7);
    }
}

/* Install Badge */
.install-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
    animation: badgeBounce 2s infinite;
}

@keyframes badgeBounce {
    0%, 80%, 100% { transform: scale(1); }
    40% { transform: scale(1.1); }
}

/* ==============================================
   SMART INSTALL BANNER
   ============================================== */

.smart-install-banner {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.95) 0%, rgba(0, 242, 254, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 0 15px 15px;
    padding: 15px 20px;
    color: white;
    display: none;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
    animation: slideDown 0.4s ease-out;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.smart-install-banner.show {
    display: flex;
}

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

.banner-icon {
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

.banner-content {
    flex: 1;
}

.banner-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.banner-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.banner-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.banner-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.banner-btn.primary {
    background: white;
    color: #4facfe;
}

.banner-btn.primary:hover {
    background: #f8f9fa;
}

.banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 4px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* ==============================================
   FLOATING INSTALL BUTTON (für späteren Gebrauch)
   ============================================== */

.floating-install {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(79, 172, 254, 0.4);
    animation: floatingPulse 3s infinite;
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-install.show {
    display: flex;
}

@keyframes floatingPulse {
    0%, 70% { 
        transform: scale(1); 
        box-shadow: 0 4px 20px rgba(79, 172, 254, 0.4); 
    }
    85% { 
        transform: scale(1.05); 
        box-shadow: 0 6px 25px rgba(79, 172, 254, 0.6); 
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 4px 20px rgba(79, 172, 254, 0.4); 
    }
}

/* ==============================================
   RESPONSIVE ANPASSUNGEN
   ============================================== */

@media (max-width: 768px) {
    .header {
        padding: 20px;
        gap: 15px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .header p {
        font-size: 1em;
    }
    
    .install-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .smart-install-banner {
        padding: 12px 15px;
    }
    
    .banner-title {
        font-size: 14px;
    }
    
    .banner-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .banner-actions {
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
    }
    
    .banner-btn {
        text-align: center;
        padding: 6px 12px;
        font-size: 13px;
    }
}