/*
==============================================================================
LUVEX THEME v2.3 - FOOTER (MIT LIGHT-EFFECT-ANIMATION)
==============================================================================

Description: Styling for the main site footer.
Dependencies: _variables.css
Last Update: 2025-08-24

==============================================================================
*/

/*
==============================================================================
1. MAIN FOOTER CONTAINER
==============================================================================
*/

.modern-footer {
    background: var(--luvex-dark-blue);
    color: var(--luvex-white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

/* --- 1.1 Background Grid Pattern --- */
.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="footer-grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(109, 213, 237, 0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23footer-grid)"/></svg>');
    opacity: 0.4; 
    pointer-events: none;
    z-index: 1;
}

/*
==============================================================================
2. FOOTER CONTENT LAYOUT
==============================================================================
*/

.footer-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
    max-width: 1800px;
    margin: 0 auto 3rem auto;
    padding: 0 3rem;
}

/* --- 2.1 Company Info Section --- */
.footer-company {
    max-width: 350px;
}


.footer-logo {
    margin-bottom: 0.9rem; /* Reduziert von vorher */
}

.footer-logo .custom-logo {
    max-height: 40px;
    width: auto;
    margin-bottom: 0; /* Entfernt */
}


.footer-tagline {
    color: var(--luvex-white);
    line-height: 1.3;
    margin: 0.2rem 0 1rem 0; /* Reduziert von 1.5rem auf 0.5rem */
    font-size: 1rem;
    font-weight: 400;
    max-width: 280px;
}



.footer-tagline strong::after {
    content: "\A";
    white-space: pre;
}


/*
==============================================================================
3. FOOTER WIDGETS & MENUS
==============================================================================
*/

.footer-section-title {
    color: var(--luvex-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--luvex-bright-cyan);
    border-radius: 1px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: var(--luvex-bright-cyan);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding-left: 0;
    letter-spacing: 0.5px;
}

.footer-menu a:hover {
    color: var(--luvex-white);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 1.8rem; /* Enger zusammen - war 1rem */
    margin: 0.5rem 1rem 0.5rem 1rem;
    width: fit-content; /* Nur so breit wie nötig */
}

.social-link {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--luvex-bright-cyan);
    color: var(--luvex-dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(109, 213, 237, 0.4);
}

.footer-description {
    color: #e9ecef;
    line-height: 1.5;
    margin: 0;
    font-size: 1rem;
}

/*
==============================================================================
4. FOOTER BOTTOM BAR
==============================================================================
*/

.footer-bottom {
    border-top: 1px solid rgba(109, 213, 237, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 3rem;
}

.footer-copyright,
.footer-location {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-location {
    text-align: right;
}

.footer-legal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-legal-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-nav a:hover {
    color: var(--luvex-bright-cyan);
}

/*
==============================================================================
5. NEU: LIGHT SWEEP ANIMATION
==============================================================================
*/

/* --- 5.1 Initial State (Before Animation) --- */
/* Alle Elemente, die animiert werden sollen, sind anfangs "unsichtbar" */
.footer-content-grid > *, .footer-bottom-content > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* --- 5.2 The Light Beam --- */
.modern-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -20%; /* Startet außerhalb des Bildschirms */
    width: 15%; /* Breite des Lichtstrahls */
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(109, 213, 237, 0.2) 50%, 
        transparent 100%
    );
    transform: skewX(-25deg); /* Schräger Winkel */
    filter: blur(30px);
    transition: left 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 3;
    opacity: 0;
}

/* --- 5.3 Triggering the Animation --- */
/* Wenn die Klasse .animation-triggered hinzugefügt wird... */
.modern-footer.animation-triggered::after {
    /* ...bewegt sich der Lichtstrahl über den Bildschirm. */
    left: 110%;
    opacity: 1;
}

/* ...und die Elemente werden nacheinander sichtbar. */
.modern-footer.animation-triggered .footer-content-grid > *,
.modern-footer.animation-triggered .footer-bottom-content > * {
    opacity: 1;
    transform: translateY(0);
}

/* Staffelung der Animation für einen schöneren Effekt */
.modern-footer.animation-triggered .footer-company { transition-delay: 0.2s; }
.modern-footer.animation-triggered .footer-section:nth-child(2) { transition-delay: 0.3s; }
.modern-footer.animation-triggered .footer-section:nth-child(3) { transition-delay: 0.4s; }
.modern-footer.animation-triggered .footer-section:nth-child(4) { transition-delay: 0.5s; }
.modern-footer.animation-triggered .footer-section:nth-child(5) { transition-delay: 0.6s; }
.modern-footer.animation-triggered .footer-bottom-content { transition-delay: 0.7s; }


/*
==============================================================================
6. RESPONSIVE STYLES
==============================================================================
*/

@media (max-width: 1024px) {
    .footer-content-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-section:nth-child(4),
    .footer-section:nth-child(5) {
        grid-column: span 3;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .modern-footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-content-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-company {
        max-width: none;
        margin: 0 auto;
    }
    
    .footer-social {
        justify-content: center;
    }

    .footer-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-location {
        text-align: center;
    }
    
    .footer-legal-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}
