/* ═══════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════ */

.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links li {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.footer-links a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════
   Legal Modal (Impressum / Datenschutz)
   ═══════════════════════════════════════════════ */

.legal-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.legal-modal.active {
    display: flex;
}

.legal-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.legal-modal-content {
    position: relative;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    max-width: 720px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1;
}

.legal-modal-content h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.legal-subtitle {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2xl);
}

.legal-modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.legal-modal-close:hover {
    color: var(--color-text);
    border-color: var(--color-text-secondary);
}

.legal-section {
    margin-bottom: var(--space-xl);
}

.legal-section h3 {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.legal-section p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.legal-section a {
    color: var(--color-primary);
    transition: opacity var(--transition-fast);
}

.legal-section a:hover {
    opacity: 0.8;
}

/* ═══════════════════════════════════════════════
   Cookie Banner
   ═══════════════════════════════════════════════ */

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-banner.active {
    display: block;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.cookie-banner-text h3 {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cookie-banner-text p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .legal-modal-content {
        padding: var(--space-xl);
        width: 95%;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
