/* --- Footer ------------------------------------------------------------------------------------ */
footer section.wp-block-group {
    padding: 2rem;
}

.footer_content {
    background-color: var(--color--secondary-1);
    border-radius: 1rem;
    padding-top: clamp(1rem, 2.5vw + 1rem, 4rem);
    padding-bottom: clamp(1rem, 2.5vw + 1rem, 4rem);
    padding-left: clamp(1rem, 2.5vw + 1rem, 5rem);
    padding-right: clamp(1rem, 2.5vw + 1rem, 5rem);
    color: var(--color--secondary-2);
    font-family: var(--font-family--primary);
}

footer .wp-block-columns.is-layout-flex {
    gap: 2rem;
}

.footer_content p,
footer span.wp-block-navigation-item__label {
    font-family: var(--font-family--primary);
    font-weight: 300;
    font-size: var(--font-size--x-small);
    line-height: 1.2em;
    letter-spacing: 0.04em;
}

.footer_content p strong {
    letter-spacing: 0.04em;
}

.footer-adresse p {
    line-height: 1.5em;
}

footer section .footer-adresse a {
    color: var(--color--secondary-2);
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    /* Unterstreichung entfernen, da wir einen animierten Hintergrund nutzen */
    text-decoration: none;
    list-style: none;
    position: relative;
    cursor: pointer;
    padding-bottom: 2px;
    /* Den Hover-Hintergrund als linearen Farbverlauf definieren */
    background-image: linear-gradient(var(--color--primary-1), var(--color--primary-1));
    /* Zunächst soll der Hintergrund 0% in der Höhe haben */
    background-size: 100% 0px;
    background-position: bottom;
    background-repeat: no-repeat;
    transition:
        background-size 0.3s ease-in-out,
        color 0.3s ease-in-out;
}

/* footer section .footer-adresse a:hover {
    background-size: 100% 100%;
    transition:
        background-size 0.3s ease-in-out,
        color 0.3s ease-in-out;
} */

footer .wp-block-group.is-nowrap.is-layout-flex:has(.rahmen) {
    gap: 2rem;
    justify-content: space-between;
}

.footer_content .rahmen {
    padding: clamp(1rem, 1vw + 0.5rem, 1.5rem);
    border-radius: 0.5rem;
    border: solid 2px var(--color--primary-1);
    gap: 1.5rem;
}

.footer_content .rahmen figure {
    width: 6rem;
}

.footer_content .rahmen figure img {
    height: auto;
    width: 6rem;
}

.footer_content p.headline {
    font-size: var(--font-size--x-large);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 125%;
}

.footer_content .wp-block-separator {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.footer_content .meta-nav {
    font-weight: 300;
    letter-spacing: 0.8px;
}

footer .wp-block-image img {
    border-radius: unset;
}

.wp-block-group.is-layout-flex.footer-adresse {
    gap: 2rem;
}

footer .wp-block-columns.is-layout-flex:first-child {
    margin-bottom: 4rem;
}

footer .is-style-button-circle-arrow-right .wp-element-button {
    rotate: -90deg;
    transition: background-color 0.3s ease;
}

.only-mobile,
.btt-button-m {
    display: none !important;
}

/* .wp-block-button__link.wp-element-button:hover {
    background-color: white;
}

.is-style-button-circle-arrow-right .wp-element-button:hover {
    background-image: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='15' viewBox='0 0 17 15' fill='%23EE7E04'%3E%3Cpath d='M16.667 7.5L10.0003 0.833336L9.06033 1.77334L14.1137 6.83334L0.666992 6.83333L0.666992 8.16667L14.1137 8.16667L9.06033 13.2267L10.0003 14.1667L16.667 7.5Z'/%3E%3C/svg%3E);
} */

footer .wp-block-button:not(.is-style-button-underline) .wp-block-button__link.wp-element-button:hover {
    background-color: white;
    border-radius: 0.5rem;
    color: var(--color--secondary-1);
    transition: background-color 0.3s ease;
}

footer .is-style-button-circle-arrow-right .wp-block-button__link.wp-element-button:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='15' viewBox='0 0 17 15' fill='%23000000'%3E%3Cpath d='M16.667 7.5L10.0003 0.833336L9.06033 1.77334L14.1137 6.83334L0.666992 6.83333L0.666992 8.16667L14.1137 8.16667L9.06033 13.2267L10.0003 14.1667L16.667 7.5Z'/%3E%3C/svg%3E");
    transition: background-color 0.3s ease;
}

footer a.wp-block-navigation-item__content {
    border-bottom: unset;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

footer a.wp-block-navigation-item__content:hover {
    opacity: 0.9;
}

footer .footer-logo-linkedin,
footer .footer-logo-facebook,
footer .footer-logo-insta,
footer .footer-logo-zewo {
    display: inline-block;
    border: none;
    line-height: 1em;
    vertical-align: middle;
    position: relative;
}

/* footer .footer-logo-zewo {
    margin-top: 2rem;
} */
footer .footer-logo-zewo svg {
    height: 100px;
}

footer .footer-logo-linkedin svg,
footer .footer-logo-facebook svg,
footer .footer-logo-insta svg {
    height: 28px;
}

footer .wp-block-group.is-layout-flex:has(nav.meta-nav) {
    justify-content: space-between;
    align-items: center;
    margin: 0 !important;
    max-width: 100%;
}

footer .wp-block-group.is-layout-flex:has(nav.meta-nav) > div {
    gap: 1.25rem;
}

footer .spenden-footer .wp-block-buttons.is-layout-flex {
    margin-top: 0.5rem;
}

footer section p > a {
    border: none;
}


/*----------------------------------------------------------------------------------------------------------------------------------------*/

@media screen and (max-width: 1024px) {
    footer .wp-block-columns.is-layout-flex:has(.rahmen) {
        flex-direction: column;
        gap: 1rem;
    }

    footer .wp-block-group.is-nowrap.is-layout-flex:has(.rahmen) {
        gap: 2rem;
        justify-content: unset;
    }

    .wp-block-group.is-layout-flex.footer-adresse {
        justify-content: flex-end;
    }

    footer .footer-logo-zewo {
        display: inline-flex;
        width: 100%;
        justify-content: right;
        /* margin-top: -2.75rem; */
        margin-bottom: 1rem;
        right: -0.5rem;
    }
}

@media screen and (max-width: 850px) {
    .wp-block-group.is-layout-flex.footer-adresse {
        justify-content: unset;
        flex-direction: column;
        align-items: unset;
        gap: 0.5rem;
        margin-top: 0.75rem;
        width: fit-content;
    }

    .wp-block-column.is-vertically-aligned-bottom:has(> .footer-adresse) {
        display: flex;
        justify-content: flex-end;
    }

    footer .wp-block-group.is-content-justification-space-between:has(> .footer-adresse) {
        justify-content: flex-end;
        align-items: flex-start;
        gap: 4rem;
    }
}

@media screen and (max-width: 781px) {
    .wp-block-column.is-vertically-aligned-bottom:has(> .footer-adresse) {
        display: flex;
        justify-content: flex-start;
    }

    footer .wp-block-columns.is-layout-flex:first-child {
        margin-bottom: 2rem;
    }

    footer .wp-block-group.is-nowrap.is-layout-flex:has(.rahmen) {
        gap: 1rem;
        justify-content: unset;
        flex-direction: column;
    }

    .footer_content .rahmen figure {
        width: 4rem;
    }

    footer .wp-block-group.is-content-justification-space-between:has(> .footer-adresse) {
        justify-content: space-between;
        gap: 4rem;
        align-items: flex-start;
    }

    .btt-button-m {
        display: block !important;
    }

    .btt-button-d {
        display: none !important;
    }

    .wp-block-column.is-layout-flow:has(.btt-button-m) {
        display: flex;
        justify-content: space-between;
    }
}

@media screen and (max-width: 600px) {
    footer .wp-block-group.is-nowrap.is-layout-flex:has(.rahmen) {
        display: none;
    }

    .only-mobile {
        display: block !important;
    }

    .footer_content p.headline {
        margin-bottom: 1rem;
    }

    footer .wp-block-columns.is-layout-flex:has(.rahmen) {
        gap: 0;
    }

    .wp-block-column.is-layout-flow:has(.btt-button-m) img {
        width: 10rem;
    }

    footer section.wp-block-group {
        padding: 1rem;
    }

    footer .footer-logo-zewo {
        margin-top: 0;
        margin-bottom: 0;
    }

    /* footer .footer-logo-zewo svg {
        position: absolute;
        top: 0.2rem;
        right: -0.2rem;
    } */

    footer .footer-logo-zewo svg {
        height: 72px;
    }

    footer .wp-block-group.is-layout-flex:has(nav.meta-nav) > div {
        gap: 0.75rem;
    }
}
