/*
 * Footer on smartphones (below 768px) after the designer's layout: logo, social links, newsletter and the footer
 * links stacked and centred (on desktop the three columns are side by side, main.css).
 */
@media (max-width: 767.98px) {
    /* more space at the bottom: the scroll-to-top button must not cover the footer links */
    .footer-section-content {
        padding: 2.5rem 0 5.5rem;
    }

    footer .section-row {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        text-align: center;
    }

    footer .footer-section-content-column {
        width: 100%;
    }

    footer .footer-section-content-column-left .gallery-row {
        justify-content: center;
    }

    footer .footer-section-content-column-left img {
        width: 147px;
        max-width: 100%;
        margin: 0 auto;
    }

    /* social links: LinkedIn, Instagram, Facebook, YouTube */
    footer .sociallinks-list {
        justify-content: center;
        margin-top: 1.5rem;
    }

    footer .sociallinks-item-linkedin { order: 1; }
    footer .sociallinks-item-instagram { order: 2; }
    footer .sociallinks-item-facebook { order: 3; }
    footer .sociallinks-item-youtube { order: 4; }

    /* newsletter: red title above the button */
    footer .footer-section-content-column-middle p strong {
        display: inline-block;
        margin-bottom: .75rem;
        font-size: 1.125rem;
    }

    footer .footer-section-content-column-middle .btn {
        padding: .625rem 1.75rem;
        font-size: 1rem;
    }

    /* footer links: Events and Employer Services only on desktop */
    footer .footer-section-content-column-right li:has(> a[href$="/events"], > a[href$="/employer-services"], > a[href$="/service-fuer-unternehmen"]) {
        display: none;
    }

    /* footer links: two columns, centred as a block */
    footer .footer-section-content-column-right ul {
        display: inline-block;
        text-align: left;
    }
}
