/**
 * Bibercare CMS - Footer und rechtliche Links (Hintergrundbild-Overlay)
 * Datei: assets/css/modules/footer.css
 * 
 * Funktionen:
 * - Footer-Layout mit Grid
 * - Kontakt-Bereich mit Icons
 * - Einzugsgebiet als Hintergrundbild mit Text-Overlay
 * - Klickbarer Container für Lightbox
 * - Responsive Anpassungen
 * 
 * HINWEIS: Lightbox-Styles sind in lightbox.css
 */

/* ==========================================
   FOOTER BASIS
   ========================================== */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.footer-section h3 i {
    color: var(--primary-color);
}

.footer-section p,
.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: #a0aec0;
}

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

.legal-links a {
    color: #a0aec0;
    text-decoration: none;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.legal-links a:hover {
    color: white;
}

/* =================================
   FOOTER LOGO ANPASSUNGEN
   ================================= */

.footer-logo svg,
.footer-logo .logo-image,
.footer .logo svg,
.footer .logo .logo-image {
    height: 35px;
    max-width: 200px;
}

/* =================================
   KONTAKT-BEREICH
   ================================= */

.footer-section a i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-contact-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #718096;
    font-style: italic;
}

.footer-contact-note i {
    color: var(--primary-color);
    margin-right: 0.25rem;
}

/* ==========================================
   SOCIAL MEDIA BEREICH
   ========================================== */

.footer-social {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #4a5568;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 1.15rem;
    line-height: 1;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    margin-bottom: 0;
}

.footer-social a i {
    color: inherit;
    margin: 0;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
}

/* =================================
   EINZUGSGEBIET MIT HINTERGRUNDBILD & OVERLAY
   ================================= */

.footer-map-preview {
    position: relative;
    margin-top: 1.5rem;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-image: url('/public/assets/images/einzugsgebiet_vorschau.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Dunkler Overlay für bessere Lesbarkeit */
.footer-map-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Hover-Effekt: Overlay wird dunkler, Zoom-Icon erscheint */
.footer-map-preview:hover::before {
    background: linear-gradient(
        to bottom,
        rgba(44, 90, 160, 0.5) 0%,
        rgba(44, 90, 160, 0.3) 50%,
        rgba(44, 90, 160, 0.6) 100%
    );
}

/* Zoom-Icon beim Hover */
.footer-map-preview::after {
    content: '\f00e';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2.5rem;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    z-index: 3;
}

.footer-map-preview:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Leichte Vergrößerung beim Hover */
.footer-map-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.5);
}

/* Label (Titel) - oben positioniert */
.footer-map-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.footer-map-label i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Hint (Zum Vergrößern) - unten positioniert */
.footer-map-hint {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    font-size: 0.8rem;
    color: white;
    text-align: center;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    backdrop-filter: blur(4px);
    font-style: normal;
    font-weight: 500;
}

.footer-map-hint i {
    color: var(--primary-color);
    margin-right: 0.35rem;
    font-size: 0.75rem;
   
}

/* Hover-Effekt für Text-Elemente */
.footer-map-preview:hover .footer-map-label,
.footer-map-preview:hover .footer-map-hint {
    background: rgba(44, 90, 160, 0.7);
}

/* =================================
   RESPONSIVE ANPASSUNGEN
   ================================= */

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .footer-map-preview {
        height: 200px;
    }
    
    .footer-map-preview::after {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo svg,
    .footer-logo .logo-image,
    .footer .logo svg,
    .footer .logo .logo-image {
        height: 30px;
        max-width: 150px;
    }

    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-map-preview {
        height: 200px;
        margin-top: 1rem;
    }
    
    .footer-map-label {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }
    
    .footer-map-hint {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }
    
    .footer-map-preview::after {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
    }

    .footer-map-preview {
        height: 200px;
    }
    
    .footer-map-label {
        font-size: 0.8rem;
    }
    
    .footer-map-label i {
        font-size: 0.85rem;
    }
    
    .footer-map-hint {
        font-size: 0.7rem;
    }
    
    .footer-map-preview::after {
        font-size: 1.5rem;
    }
}

/* =================================
   ACCESSIBILITY VERBESSERUNGEN
   ================================= */

.footer-map-preview:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.footer-map-preview:focus::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Keyboard Navigation Hint */
.footer-map-preview[tabindex]:focus .footer-map-hint::after {
    content: ' (Enter drücken)';
}


/* Print Styles */
@media print {
    .footer-map-preview {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .footer-map-preview,
    .footer-map-preview::before,
    .footer-map-preview::after {
        transition: none;
    }
    
    .footer-map-preview:hover {
        transform: none;
    }
    
    .footer-map-preview:hover::after {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Touch Devices - kein Hover-Zoom */
@media (hover: none) and (pointer: coarse) {
    .footer-map-preview:hover {
        transform: none;
    }
}