/* ============================================
   APP PROMOTION - SUPER SICHTBAR!
   Floating Buttons, Banner, Call-to-Actions
   ============================================ */

/* ====== FLOATING APP BUTTONS (Immer sichtbar) ====== */

.floating-app-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .floating-app-buttons {
        right: 10px;
        gap: 8px;
    }
}

.floating-app-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid white;
    animation: pulse-app 2s ease-in-out infinite;
    position: relative;
}

.floating-app-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

/* Kunden-App = Blau */
.floating-app-btn.kunden {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Unternehmer-App = Orange */
.floating-app-btn.unternehmer {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* Tooltip */
.floating-app-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.floating-app-btn:hover::before {
    opacity: 1;
}

/* Badge "NEU" */
.floating-app-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
}

/* Pulse Animation */
@keyframes pulse-app {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.8), 0 0 0 10px rgba(102, 126, 234, 0.1);
    }
}

/* Mobile anpassen - VERSTECKEN wenn Tastatur aktiv! */
@media (max-width: 768px) {
    .floating-app-buttons {
        /* Verstecke auf Mobile komplett - stört beim Tippen! */
        display: none !important;
    }
    
    .floating-app-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .floating-app-btn::before {
        font-size: 12px;
        padding: 6px 10px;
        right: 60px;
    }
}

/* ====== TOP BANNER (Optional) ====== */

.app-top-banner {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f97316 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.app-top-banner a {
    color: white;
    text-decoration: underline;
    margin: 0 10px;
}

.app-top-banner a:hover {
    opacity: 0.8;
}

.app-top-banner .close-banner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    opacity: 0.8;
}

.app-top-banner .close-banner:hover {
    opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
    .app-top-banner {
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .app-top-banner a {
        display: block;
        margin: 5px 0;
    }
}

/* ====== STICKY BOTTOM BAR (Mobile) ====== */

.app-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px 15px;
    z-index: 40;
    display: none;
}

@media (max-width: 768px) {
    .app-bottom-bar {
        display: flex;
        gap: 10px;
        justify-content: space-between;
        align-items: center;
    }
}

.app-bottom-bar .app-btn {
    flex: 1;
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.app-bottom-bar .app-btn.kunden {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.app-bottom-bar .app-btn.unternehmer {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.app-bottom-bar .app-btn:active {
    transform: scale(0.95);
}

/* ====== IN-CONTENT APP CARDS ====== */

.app-card-inline {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.app-card-inline h3 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.app-card-inline p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.app-card-inline .app-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.app-card-inline .app-button {
    background: white;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.app-card-inline .app-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.app-card-inline .app-button i {
    font-size: 24px;
}

/* Mobile */
@media (max-width: 768px) {
    .app-card-inline {
        padding: 25px 20px;
        margin: 30px 0;
    }
    
    .app-card-inline h3 {
        font-size: 22px;
    }
    
    .app-card-inline p {
        font-size: 14px;
    }
    
    .app-card-inline .app-buttons {
        flex-direction: column;
    }
    
    .app-card-inline .app-button {
        width: 100%;
        justify-content: center;
    }
}

/* ====== HIDE ON SPECIFIC PAGES ====== */

/* Verstecke auf App-Seiten selbst */
body[data-page="mobile-app-kunden"] .floating-app-buttons,
body[data-page="mobile-app-unternehmer"] .floating-app-buttons {
    display: none;
}
