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

.footer-grid {
    width: 100%;
    margin: 0;
    color: var(--color-bg);
    background-color: var(--color-primary);
}

/* =========================================
   FOOTER GRID
   RESPONSIV OHNE MEDIA QUERIES
========================================= */

.footerGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 2rem;
    width: min(calc(100% - 24px), var(--max-width));
    margin: 0 auto;
    padding: 2rem 0;
    align-items: start;
}

.footerGrid_item {
    width: 100%;
    min-width: 0;
}

/* =========================================
   GEMEINSAME TITEL
========================================= */

.footer-title {
    display: block;
    margin-bottom: 1rem;
    color: var(--color-bg);
    font-family: var(--font-text);
    font-size: 1.1rem;
    font-weight: 700;
}

/* =========================================
   WAPPEN UND MARKE
========================================= */

.footerwappen {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    column-gap: 1.25rem;
    width: 100%;
    min-width: 0;
    text-align: left;
}

.footerwappen .stickybar__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    min-width: 0;
}

.footerwappen .stickybar__crest {
    width: auto;
    height: 120px;
}

.footer_brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.footer_brand_name {
    display: block;
    width: 100%;
}

.footer_brand_name .stickybar__wordmark {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0;
}

.footer_brand-subtitle_slogan {
    display: block;
    width: 100%;
    margin: 0;
    color: var(--color-bg);
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.35;
    text-align: left;
    margin-left: 40px;
    margin-top: 0.3rem;
}

.footer_brand-subtitle_slogan:first-of-type {
    margin-top: 0.65rem;
}

/* =========================================
   KONTAKT
========================================= */

.footer-contact {
    text-align: left;
}

.footer-contact ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact li {
    margin-bottom: 0.35rem;
    color: var(--color-bg);
}

/* =========================================
   FOOTER NAVIGATION
========================================= */

.footerNav {
    text-align: left;
}

.footerNav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footerNav li {
    margin-bottom: 0.4rem;
}

.footerNav a {
    color: var(--color-bg);
    text-decoration: none;
}

.footerNav a:hover {
    text-decoration: underline;
}

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

.footer-social {
    text-align: left;
}

.footer-social__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-social__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-bg);
    text-decoration: none;
}

.footer-social__link img {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: contain;
}

.footer-social__link span {
    color: var(--color-bg);
    font-family: var(--font-text);
}

.footer-social__link:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* =========================================
   COPYRIGHT
========================================= */

.footer-copy {
    width: min(calc(100% - 24px), var(--max-width));
    margin: 0 auto;
    padding: 1rem 0;
    color: var(--color-bg);
    text-align: center;
    border-top: 1px solid var(--color-muted);
}


/* =========================================
   FOOTER TABLET
   2 BEREICHE PRO ZEILE
========================================= */

@media (min-width: 701px) and (max-width: 1023px) {

     /* etwas mehr Ruhe zwischen den beiden Footer-Zeilen */

    .footer-menu,
    .footerNav,
    .footer-social,
    .footer-social__links {
        padding-top: 1.25rem;
        border-top: 1px solid var(--color-muted);
    }

    /* Überschriften der zweiten Zeile auf gleicher Höhe */

    .footer-menu h3,
    .footerNav h3,
    .footer-social h3 {
        margin-top: 0;
    }

    /* Wasserzeichen auf Tablet etwas dezenter und weiter nach rechts */

    .footer-grid::before {
        right: -2rem;
        bottom: 1.5rem;
        width: 270px;
        height: 320px;
        opacity: 0.035;
    }

    .footerGrid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 3rem;
        width: min(calc(100% - 40px), var(--max-width));
        margin: 0 auto;
        padding: 2.5rem 0;
        align-items: start;
    }

/* =========================================
   ZEILE 1 LINKS
   WAPPEN + MARKE
========================================= */

.footerwappen {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    align-items: center;
    min-width: 0;
    text-align: center;
}

.footerwappen .stickybar__logo {
    width: auto;
    margin: 0 0 1rem;
}

.footerwappen .stickybar__crest {
    display: block;
    width: auto;
    height: 120px;
}

.footer_brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.footer_brand_name {
    display: block;
    width: 100%;
}

.footer_brand_name .stickybar__wordmark {
    display: block;
    width: min(100%, 300px);
    height: auto;
    margin: 0 auto;
}

.footer_brand-subtitle_slogan {
    margin: 0.3rem 0 0;
    font-size: 1rem;
    line-height: 1.35;
    text-align: center;
}

    /* =========================================
       ZEILE 1 RECHTS
       KONTAKT
    ========================================= */

    .footer-contact {
        grid-column: 2;
        padding-left: 0;
    }

    /* =========================================
       ZEILE 2 LINKS
       INFORMATIONEN
    ========================================= */

    .footer-menu,
    .footerNav {
        grid-column: 1;
        padding-left: 4rem;
    }

    /* =========================================
       ZEILE 2 RECHTS
       SOCIAL MEDIA
    ========================================= */

    .footer-social {
        grid-column: 2;
        width: 100%;
        text-align: left;
    }

    .footer-social h3 {
        text-align: left;
    }
}

/* =========================================
   FOOTER DESKTOP
========================================= */

@media (min-width: 1024px) {
    .footerGrid {
        grid-template-columns: 1.5fr 1fr 1fr;
        column-gap: 3rem;
        row-gap: 2.5rem;
        align-items: start;
    }

    /* Marke größer */
    .footerwappen {
        grid-template-columns: 150px minmax(0, 1fr);
        column-gap: 1.5rem;
    }

    .footerwappen .stickybar__logo {
        width: 150px;
    }

    .footerwappen .stickybar__crest {
        height: 150px;
    }

    .footer_brand_name .stickybar__wordmark {
        max-width: 390px;
    }

    .footer_brand-subtitle_slogan {
        font-size: 1.05rem;
        margin-left: 40px;
    }

    /* Kontakt und Navigation */
    .footer-contact,
    .footerNav {
        padding-left: 1rem;
    }

    /* Social Media bekommt eigene Zeile */
    .footer-social {
        grid-column: 1 / -1;
        padding: 1.5rem 0 0;
        border-top: 1px solid var(--color-muted);
        text-align: center;
    }

    .footer-social .footer-title {
        text-align: center;
    }

    .footer-social__links {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 3rem;
    }


    .footer_brand-subtitle_slogan {
        margin-left: 60px;
}
}

/* =========================================
   FOOTER WASSERZEICHEN
========================================= */

.footer-grid {
    position: relative;
    overflow: hidden;
}

.footer-grid::before {
    content: "";
    position: absolute;
    right: 3rem;
    bottom: 2rem;
    width: 320px;
    height: 380px;
    background-image: url('../img/img/bic-wappen-rgb.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.05;
    filter: grayscale(1) brightness(2.5);
    pointer-events: none;
    z-index: 0;
}

.footerGrid,
.footer-copy {
    position: relative;
    z-index: 1;
}