/* ===== FOOTER STYLES - Digital im Alter Bremen-Nord ===== */

/* Section Divider vor Footer */
.section-divider {
    background: linear-gradient(90deg, 
                transparent 0%, 
                var(--warmes-orange) 30%, 
                var(--warmes-orange) 70%, 
                transparent 100%);
    height: 3px;
    width: 100%;
    margin-bottom: 0;
}

/* Hauptfooter */
.footer {
    background: #0f172a;
    color: white;
    padding: 60px 0 40px 0;
    margin-top: 0;
    font-size: 16px;
    line-height: 1.6;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Top Grid */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #374151;
}

/* Footer About Section */
.footer-about h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fbbf24;
    font-weight: 600;
}

.footer-about p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #d1d5db;
}

/* Footer Links */
.footer-links h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links ul li a:hover,
.footer-links ul li a:focus {
    color: #fbbf24;
    outline: none;
}

/* Footer Contact */
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.footer-contact p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #d1d5db;
}

.footer-contact address {
    font-style: normal;
}

.footer-contact a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-contact a:focus {
    color: #fbbf24;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 16px;
    color: #d1d5db;
}

.footer-copyright a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover,
.footer-copyright a:focus {
    color: #fbbf24;
}

/* Footer Legal Links */
.footer-legal {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-legal a:hover,
.footer-legal a:focus {
    color: #fbbf24;
}

/* Focus Styles für Barrierefreiheit - WCAG 2.1 AA konform */
.footer a:focus,
.footer button:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Skip-Link für Footer */
.skip-to-footer {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #fbbf24;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    font-weight: bold;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-to-footer:focus {
    top: 0;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-about {
        grid-column: 1 / -1; /* Über volle Breite */
        margin-bottom: 20px;
    }
    
    .footer-legal {
        gap: 20px;
    }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
    .footer {
        padding: 40px 0 30px 0;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
        padding-bottom: 30px;
        text-align: center;
    }
    
    .footer-about h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .footer-about p {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 17px;
        margin-bottom: 12px;
    }
    
    .footer-links ul li,
    .footer-contact p {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
        gap: 15px;
    }
    
    .footer-copyright {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .footer-legal a {
        font-size: 15px;
        justify-content: center;
    }
}

/* Sehr kleine Screens (max 480px) */
@media (max-width: 480px) {
    .footer {
        padding: 30px 0 25px 0;
    }
    
    .footer-content {
        padding: 0 10px;
    }
    
    .footer-top {
        gap: 25px;
        margin-bottom: 25px;
        padding-bottom: 25px;
    }
    
    .footer-about h3 {
        font-size: 20px;
    }
    
    .footer-about p,
    .footer-links ul li a,
    .footer-contact p {
        font-size: 14px;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 16px;
    }
    
    .footer-copyright {
        font-size: 13px;
    }
    
    .footer-legal a {
        font-size: 14px;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
        min-height: 44px; /* Touch-freundlich */
        align-items: center;
        justify-content: center;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .footer {
        background: #000000;
        color: #ffffff;
    }
    
    .footer-about h3,
    .footer-copyright a:hover,
    .footer-legal a:hover,
    .footer-links a:hover,
    .footer-contact a:hover {
        color: #ffff00;
    }
    
    .footer-top,
    .footer-bottom {
        border-color: #ffffff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .footer a {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .footer {
        background: white !important;
        color: black !important;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .footer a {
        color: black !important;
        text-decoration: underline;
    }
    
    .section-divider {
        background: black !important;
    }
}