/* animations.css - Alle Animationen für die Website */

/* ===== HEADER ANIMATION ===== */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header {
    animation: slideDown 0.5s ease-out;
}

/* ===== FADE IN UP ANIMATION ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

/* ===== FEATURE CARDS SCROLL ANIMATION ===== */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.feature-card.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== CTA SECTION SCROLL ANIMATION ===== */
.cta-section {
    opacity: 0;
    transform: translateY(30px);
}

.cta-section.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

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

/* ===== HOVER ANIMATIONEN ===== */
.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(360deg) scale(1.1);
}

.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.footer-link {
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-copyright {
    color: #707070;
    font-size: 0.85rem;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}