/* =====================================================================
   Site footer — light surface, matched to the new navigation:
   FIT-navy text, muted-slate secondary, FIT-yellow hover/accents,
   sharp corners, hairline divider. (Replaces the old flat mid-grey footer.)

   NOTE: the GLOBAL `.link-white` rule below is kept verbatim — several
   non-footer pages (carousels, customer pages on dark media) rely on it
   and `css/modules/footer.css` is the only place it's defined. The footer
   re-colours its OWN links via the scoped `.footer .link-white` rule.
   ===================================================================== */

.footer {
    margin-top: 120px;
    width: 100%;
    padding-bottom: 0;
    color: var(--fitblue);
    /* Kein harter Cut: das Footer-Blau (#eef1f5) blendet oben weich aus Weiß ein
       (statt Trennlinie + abrupter Farbwechsel). #eef1f5 = Ton des Nav-Suchfelds. */
    background-color: #eef1f5;          /* Fallback / unterer Vollton */
    background-image: linear-gradient(to bottom, #ffffff 0%, #eef1f5 160px);
    font-size: 14px;
    line-height: 1.7;
}

.footer .container {
    min-height: 270px;
}

.footerRow {
    padding: 56px 30px 28px 30px;
}

.footer-box {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* kept GLOBAL on purpose (used by carousels / customer pages on dark media) — do NOT scope */
.link-white {
    color: white;
    text-decoration: auto;
}

/* footer links: navy -> FIT-yellow on hover, no underline (like the nav) */
.footer .link-white {
    color: var(--fitblue);
    font-weight: 500;
    text-decoration: none;
    transition: color .15s ease;
}

.footer .link-white:hover,
.footer .link-white:focus {
    color: var(--fityellow);
    text-decoration: none;
}

/* address block — muted slate, like the nav's secondary links */
.footer-address {
    color: #5b6b82;   /* = module secondary grey (was #5a6b86, unified 2026-07-10) */
}

.link-social-media {
    text-align: center;
}

/* ---- social icons: recolour the white glyph PNGs to navy via CSS mask
        (the PNGs are RGBA white-on-transparent, so the alpha channel = glyph shape) ---- */
.footer .footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.footer .footer-social__icon {
    display: block;
    width: 24px;
    height: 24px;
    background-color: var(--fitblue);
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center;  mask-position: center;
    -webkit-mask-size: contain;     mask-size: contain;
    transition: background-color .15s ease, transform .15s ease;
}

.footer .footer-social:hover .footer-social__icon,
.footer .footer-social:focus .footer-social__icon {
    background-color: var(--fityellow);
    transform: translateY(-1px);
}

#facebook  .footer-social__icon { -webkit-mask-image: url('../../assets/img/footer/facebook.png');  mask-image: url('../../assets/img/footer/facebook.png');  }
#linkedIn  .footer-social__icon { -webkit-mask-image: url('../../assets/img/footer/linkedin.png');   mask-image: url('../../assets/img/footer/linkedin.png');   }
#instagram .footer-social__icon { -webkit-mask-image: url('../../assets/img/footer/instagram.png');  mask-image: url('../../assets/img/footer/instagram.png');  }
#youtube   .footer-social__icon { -webkit-mask-image: url('../../assets/img/footer/youtube.png');    mask-image: url('../../assets/img/footer/youtube.png');    }

/* Socials-Spalte: mobil ZUERST (oben), auf Desktop ganz LINKS -> die übrigen
   Blöcke rutschen dadurch nach ganz rechts. Nur der Haupt-Footer
   (.footer-grid--lead), NICHT der wanted-footer der Azubi-Landingpage. */
.footer-grid--lead { order: -1; }
@media (min-width: 768px) {
    /* Socials-Spalte inhaltsbreit (NICHT auf col-md-2 fixiert, das ist zu schmal
       und führt zum 3+1-Umbruch) -> die 4 Icons bleiben in EINER Reihe.
       margin-right:auto schiebt die übrigen Blöcke nach ganz rechts. */
    .footer-grid--lead {
        flex: 0 0 auto;
        width: auto;
        flex-wrap: nowrap;
        margin-right: auto;
    }
    .footer-grid--lead > div {
        flex: 0 0 auto;
        width: auto;
    }
}

#copyright-tag {
    font-size: 11px;
    line-height: 14px;
    letter-spacing: .04em;
    text-align: center;
    color: #5b6b82;   /* unified secondary grey (2026-07-10) */
    padding: 8px 0 14px;
}

/* brand accent lines (slimmed from 10px) */
#yellow-line {
    height: 6px;
    background-color: var(--fityellow);
}

#blue-line {
    height: 6px;
    background-color: var(--fitblue);
}

@media (max-width: 767px) {   /* was 768 — off-by-one overlap with the min-width:768 block above (2026-07-10) */
    .footer {
        margin-top: 80px;
    }

    .footer .container {
        padding: 30px;
    }

    .footerRow {
        padding: 36px 0 20px 0;
    }

    #footer-grid {
        padding: 0;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    /* Socials mobil: alle 4 Icons in EINER Zeile (kein 3+1-Umbruch), linksbündig.
       Nur der Haupt-Footer (.footer-grid--lead). */
    .footer-grid--lead {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
    }

    .footer-grid--lead > div {
        flex: 0 0 auto;
        width: auto;
    }
}
