/* ============================================
   Footer – CEFAMEX Solutions (2025)
   KORRIGIERT: Responsives Grid für 3, 2 und 1 Spalte
============================================ */

/* Hintergrund */
.site-footer {
    background: var(--gray-900);
    color: #ffffff;
    padding: 50px 20px 30px;
    margin-top: 60px;
}

/* Container – wie Header */
.footer-container {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   GRID DEFINITION
========================================================= */

/* Desktop (Standard: 3 Spalten, linke breiter) */
.footer-inner {
    display: grid;
    /* 3 Spalten: 1.5 Teile für links, 1 Teil für Mitte und rechts */
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Long-word fix */
.footer-nav a,
.footer-legal a {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* =========================================================
   TEXT-STILE
========================================================= */

.footer-left h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.footer-left p {
    color: var(--gray-200);
    line-height: 1.6;
    margin: 0;
    max-width: 420px;
}

/* Login link in left column: white text, no bullet */
.footer-left .footer-login {
    margin-top: 12px;
}
.footer-left .footer-login a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
}
.footer-left .footer-login a:hover{
    color: var(--blue-300);
    text-decoration: underline;
}

/* Icon-style login link */
.footer-left .footer-login {
    margin-top: 12px;
}
.footer-left .footer-login-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
}
.footer-left .footer-login-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}
.footer-left .footer-login-icon:hover {
    color: var(--blue-300);
    text-decoration: underline;
}

/* Accessibility helper */
.sr-only {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Visible label next to icon */
.footer-left .footer-login-text {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1;
}

.footer-nav h4,
.footer-legal h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--gray-100);
}

.footer-nav ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li,
.footer-legal li {
    margin-bottom: 6px;
}

.footer-nav a,
.footer-legal a {
    color: var(--gray-300);
    text-decoration: none;
    transition: 0.2s ease;
    font-size: 0.95rem;
}

/* Hover */
.footer-nav a:hover,
.footer-legal a:hover {
    color: var(--blue-300);
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px solid var(--gray-700);
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-400);
}

/* =========================================================
   RESPONSIVE ANPASSUNGEN
========================================================= */

/* Responsive: 3 → 2 Spalten (z.B. Tablet-Querformat/Zoom) */
@media (max-width: 1200px) {
    .footer-inner {
        /* Jetzt nur 2 Spalten: Linker Block nimmt die gesamte Breite ein,
          Navigation und Rechtliches teilen sich die Zeile darunter. */
        grid-template-columns: 1fr 1fr;
    }

    /* Left Block (Cefamex Solutions) */
    .footer-left {
        /* Nimmt die gesamte Breite der 2 Spalten ein (bricht sauber ab) */
        grid-column: 1 / -1;
        margin-bottom: 20px;
    }

    /* Navigation und Rechtliches kommen nebeneinander */
    .footer-nav {
        grid-column: 1 / 2;
        /* Spalte 1 */
    }

    .footer-legal {
        grid-column: 2 / 3;
        /* Spalte 2 */
        margin-top: 0;
    }
}

/* Responsive: 2 → 1 Spalte (Mobile/Starker Zoom) */
@media (max-width: 700px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-left,
    .footer-nav,
    .footer-legal {
        /* Alle Blöcke nehmen automatisch eine Spalte ein */
        grid-column: auto;
        margin-top: 0;
    }

    .footer-left p {
        margin: 0 auto;
    }
}