/* ==========================================================
   FOOTER
========================================================== */

.site-footer {
    --footer-social-opacity: .72;
    --footer-social-hover-opacity: 1;
}

.site-footer {
    margin-top: auto;

    padding: 1.5rem 2rem;

    background:
        linear-gradient(135deg,
            rgba(24, 58, 60, 1),
            rgba(59, 145, 137, .88));

    border-top: 1px solid var(--border-soft);
}

.footer-inner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 2rem;
}

.footer-brand {
    justify-self: start;
}

.footer-center {
    justify-self: center;
}

.footer-social {
    justify-self: stretch;
    align-self: start;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin: 0;
    padding-top: 0;
    opacity: .72;
}

.footer-social:hover {
    opacity: 1;
}

.footer-social .wp-block-social-links {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.footer-inner,
.footer-bottom {
    width: min(100% - 2rem, var(--container-lg));
    margin-inline: auto;
}

.footer-bottom {
    position: relative;

    margin-top: 2rem;
    padding-top: 2rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;

    text-align: center;
}

@media (max-width: 900px) {
    .footer-social {
        justify-self: center;
        align-self: center;
        justify-content: center;
        padding-top: 0;
    }

    .footer-social .wp-block-social-links {
        justify-content: center;
    }
}

/* ==========================================================
   FOOTER NAVIGATION
========================================================== */

.footer-navigation .wp-block-navigation-item__content,
.footer-navigation-mobile .wp-block-navigation-item__content {
    color: var(--surface-text);

    font-size: .92rem;
    font-weight: 500;

    text-shadow: none;
}

.footer-navigation .wp-block-navigation-item__content::after,
.footer-navigation-mobile .wp-block-navigation-item__content::after {
    display: none;
}

.footer-navigation .wp-block-navigation-item__content:hover,
.footer-navigation-mobile .wp-block-navigation-item__content:hover {
    background: var(--nav-hover-bg);
    color: var(--nav-hover-text) !important;
}

.footer-navigation .current-menu-item>.wp-block-navigation-item__content,
.footer-navigation .current_page_item>.wp-block-navigation-item__content,
.footer-navigation-mobile .current-menu-item>.wp-block-navigation-item__content,
.footer-navigation-mobile .current_page_item>.wp-block-navigation-item__content {
    background: var(--nav-active-bg);
    color: var(--nav-active-text) !important;
}

.footer-navigation-mobile {
    display: none;
}

@media (max-width: 900px) {
    .footer-navigation {
        display: none;
    }

    .footer-navigation-mobile {
        display: flex;
        justify-content: center;
    }

    .footer-navigation-mobile .wp-block-navigation__container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: .75rem 1rem;
    }
}

/* ==========================================================
   FOOTER QUOTE
========================================================== */

.footer-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: .75rem;

    max-width: 80ch;
    margin-inline: auto;

    color: var(--quote-text-color);

    text-align: center;

    font-style: italic;
    line-height: 1.6;
    letter-spacing: .01em;

    flex-wrap: nowrap;
}

.footer-quote::before,
.footer-quote::after {
    content: "✦";

    color: var(--quote-symbol-color);

    flex-shrink: 0;

    opacity: .9;
}

.footer-copy {
    z-index: 2;
    color: var(--quote-text-color);
}

@media (max-width: 900px) {
    .footer-quote {
        max-width: 30ch;
    }
}

/* ==========================================================
   FOOTER DIVIDER
========================================================== */

.footer-bottom {
    position: relative;
    overflow: visible;
}

.footer-bottom::before {
    content: "" !important;

    position: absolute;
    top: 0;
    left: 50%;

    width: min(520px, 72%);
    height: 2px;

    transform: translateX(-50%);

    border-radius: 999px;

    background: var(--footer-divider-gradient, var(--divider-color));

    box-shadow: var(--footer-divider-shadow, none);

    z-index: 1;
}

.footer-bottom::after {
    content: "" !important;

    position: absolute;
    top: -5px;
    left: 50%;

    width: min(420px, 60%);
    height: 14px;

    transform: translateX(-50%);

    background: var(--footer-divider-glow, transparent);

    filter: blur(8px);
    opacity: .9;

    pointer-events: none;
    z-index: 0;
}

/* ==========================================================
   FOOTER: CREDITS FÜR ILLUSTRATIONEN
========================================================== */

.footer-artwork-credit {
    margin: 0;

    color: var(--credit-text-color);

    font-size: .9rem;
    line-height: 1.5;

    opacity: .82;
}

.footer-artwork-credit a {
    color: var(--credit-link-color);

    text-decoration: underline;
    text-decoration-color: color-mix(in srgb,
            var(--credit-link-color) 38%,
            transparent);
    text-underline-offset: .18em;
    text-decoration-thickness: 1px;

    transition:
        opacity var(--transition-fast),
        color var(--transition-fast),
        text-decoration-color var(--transition-fast);
}

.footer-artwork-credit a:hover {
    opacity: 1;

    color: var(--credit-link-hover-text);
    text-decoration-color: currentColor;
}

.footer-artwork-credit a:focus-visible {
    background: var(--credit-focus-bg);
    color: var(--credit-focus-text);

    outline: 2px solid var(--credit-focus-outline);
    outline-offset: 3px;

    border-radius: .35rem;
}

/* ==========================================================
   FOOTER DETAILS
========================================================== */

.site-footer .wp-block-social-links .wp-social-link {
    background: var(--social-bg);
    color: var(--social-text) !important;
}

.site-footer .wp-block-social-links .wp-social-link:hover {
    background: var(--social-hover-bg);
    color: var(--social-hover-text) !important;
}

.site-footer .wp-block-social-links .wp-social-link svg,
.site-footer .wp-block-social-links .wp-social-link svg path {
    fill: currentColor !important;
}

.site-footer hr,
.site-footer .footer-divider {
    border-color: var(--divider-color);
    background-color: var(--divider-color);
}

.footer-quote {
    color: var(--quote-text-color);
    font-style: italic;
    line-height: 1.6;
    letter-spacing: .01em;
}

.footer-quote-symbol,
.quote-symbol {
    color: var(--quote-symbol-color);
}

.footer-copyright {
    color: var(--copyright-text-color);
    font-size: .92rem;
    line-height: 1.4;
}

.footer-artwork-credit {
    color: var(--credit-text-color);
    font-size: .95rem;
    line-height: 1.5;
}

.footer-artwork-credit a {
    color: var(--credit-link-color);
    text-underline-offset: .15em;
}

.footer-artwork-credit a:hover {
    color: var(--credit-link-hover-text);
}

.footer-artwork-credit a:focus-visible {
    background: var(--credit-focus-bg);
    color: var(--credit-focus-text);

    outline: 2px solid var(--credit-focus-outline);
    outline-offset: 3px;

    border-radius: .35rem;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 900px) {

    .site-footer {
        padding: 2rem 1rem;
    }

    .footer-inner {
        display: flex !important;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 1.25rem;

        text-align: center;
    }

    .site-footer .wp-block-site-logo {
        display: none;
    }

    .footer-center {
        width: 100%;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        text-align: center;
    }

    .footer-navigation {
        justify-content: center;
    }

    .footer-navigation .wp-block-navigation__container {
        justify-content: center;
    }

    .footer-bottom {
        gap: .5rem;
    }

    .footer-inner>.wp-block-group:has(.wp-block-social-links) {
        justify-self: center;
    }

    .site-footer .wp-block-social-links {
        justify-content: center;
    }
}