
/* -------------------------------------------------------------------
 * FOOTER STYLING (DESKTOP FIXIERT, MOBIL IM SEITENFLUSS)
 * ------------------------------------------------------------------- */
footer {
    /* Desktop-Fußzeile; mobile Darstellung siehe Media Query. */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: 100vw;
    z-index: 90;
    box-sizing: border-box; 
    overflow: hidden;
    
    /* BASIS STYLES */
    font-size: 13px;
    
    /* KORREKTUR: Dezentere Abtrennung */
    border-top: none; 
    box-shadow: 0 -2px 14px rgba(36, 31, 31, 0.18);

    /* === DER WICHTIGE FIX FÜR DIE KLICKBARKEIT DES COOKIE-BANNERS === */
    /* Der gesamte Footer fängt keine Klicks mehr ab */
    pointer-events: none; 
}

/* --- CSS für den CONTENT STATUS (Drei-Spalten) Footer --- */
.content-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 20px; 
    align-items: center;
    text-align: center;
    padding: 8px 20px; /* Einheitliches Padding für Höhe */
    
    /* Harmonischer Look 1 */
    color: rgba(255, 253, 248, 0.86);
    background-color: var(--nsa-wine, #5b1625);
    border-top: 1px solid var(--nsa-wine-strong, #3f0e19);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.content-footer .footer-left, 
.content-footer .footer-center, 
.content-footer .footer-right {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}
.content-footer .footer-left { text-align: left; }
.content-footer .footer-center { text-align: center; }
.content-footer .footer-right { text-align: right; overflow: visible; white-space: normal; }
.content-footer .footer-center { padding: 0; }

/* * Spezifisches Styling für Links im Legal Footer 
 * MUSS pointer-events: auto; haben, damit Links klickbar sind
 */
.legal-links a, 
.content-footer a { /* Auf alle Links im Footer ausweiten */
    color: #fffdf8;
    text-decoration: none;
    margin-left: 10px; /* Abstand zwischen den Links */
    pointer-events: auto; /* WICHTIG: Erlaubt Klicks wieder für Links */
}
.legal-links a:hover,
.content-footer a:hover { 
    color: #fffdf8;
    text-decoration: underline; 
}

.content-footer .footer-center {
    color: #fffdf8;
    font-weight: 600;
}

@media (max-width: 850px) {
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow-y: auto !important;
    }

    /* Seiten mit eigenem Scrollbereich scrollen mobil als ganzes Dokument. */
    #scroll-area,
    #galerie-scroll-content,
    #galeriesuche-scroll-content,
    #rotblau-scroll-content,
    #vergleich-scroll-content {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin-top: var(--header-height, 66px) !important;
    }

    footer.content-footer {
        position: static !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 20px;
        box-shadow: none;
    }


    .content-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3px;
        justify-items: center;
        padding: 7px 12px;
        line-height: 1.25;
        width: 100%;
        max-width: 100vw;
    }

    .content-footer .footer-left {
        display: none;
    }

    .content-footer .footer-center,
    .content-footer .footer-right {
        flex-basis: auto;
        width: 100%;
        max-width: calc(100vw - 24px);
        text-align: center;
        min-width: 0;
    }

    .content-footer .footer-center {
        font-size: 12px;
        white-space: nowrap;
    }

    .content-footer .footer-right {
        font-size: 11px;
        color: rgba(255, 253, 248, 0.74);
    }


    .legal-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2px 8px;
        white-space: normal;
    }

    .legal-links a,
    .content-footer a {
        margin-left: 0;
    }
}
