/* ==========================================================================
   Plasser & Theurer Corporate Design — Site Footer
   ========================================================================== */

.site-foot {
    background: var(--blue, #003576);
    color: var(--white, #FFFFFF);
}

.site-foot .wrap {
    max-width: var(--section-max-width, var(--maxw, 1240px));
    margin-inline: auto;
    padding-inline-start: var(--gut-l, max(16px, env(safe-area-inset-left, 0px)));
    padding-inline-end: var(--gut-r, max(16px, env(safe-area-inset-right, 0px)));
}

.site-foot :focus-visible {
    outline: 2px solid var(--yellow, #FFCC00);
    outline-offset: 3px;
}

/* ---------- Polygon Divider Band & Optional Newsletter Slot ---------- */

.nl-band {
    position: relative;
    overflow: hidden;
    min-height: clamp(350px, calc(17vw + 180px), 430px);
    padding-block: clamp(170px, 17vw, 250px) 64px;
}

.nl-band--empty {
    padding-block: 0;
}

.foot-poly {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    pointer-events: none;
}

.nl-band .wrap {
    position: relative;
    z-index: 1;
}

/* ---------- Main 4-Column Footer ---------- */

.foot-main {
    padding-block: 72px 64px;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 32px;
    font-size: 17px;
    font-weight: 400;
}

.foot-cols h4 {
    margin: 0 0 22px;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
    color: var(--white, #FFFFFF);
}

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

.ico-list {
    display: grid;
    gap: 26px;
}

.ico-list a {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: var(--white, #FFFFFF);
    transition: color 0.2s;
}

.ico-list img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex: none;
    display: block;
}

.ico-list a:hover {
    color: var(--yellow, #FFCC00);
}

.social {
    display: grid;
    grid-template-columns: repeat(2, 54px);
    gap: 26px 62px;
}

.social a {
    display: block;
    width: 54px;
    height: 54px;
    color: var(--white, #FFFFFF);
    transition: color 0.2s;
}

.social a:hover {
    color: var(--yellow, #FFCC00);
}

.social svg {
    width: 100%;
    height: 100%;
    display: block;
}

.where p {
    font-size: 17px;
    line-height: 1.5;
}

.where p + p {
    margin-top: 14px;
}

.where b {
    font-weight: 700;
    font-size: 15px;
}

/* ---------- Legal Bar & Back-to-Top Anchor ---------- */

.foot-legal {
    position: relative;
    padding-block: 22px calc(26px + env(safe-area-inset-bottom, 0px));
}

.foot-legal nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 36px;
    font-size: 17px;
    font-weight: 400;
}

.foot-legal a {
    color: var(--white, #FFFFFF);
    text-decoration: none;
}

.foot-legal nav a:hover {
    text-decoration: underline;
}

.foot-legal .to-top {
    position: absolute;
    right: calc(28px + env(safe-area-inset-right, 0px));
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white, #FFFFFF);
    color: var(--blue, #003576);
    display: grid;
    place-items: center;
    border: 3px solid var(--blue, #003576);
    box-shadow: 0 0 0 2px var(--white, #FFFFFF);
    transition: background-color 0.2s, color 0.2s;
}

.foot-legal .to-top:hover {
    background: var(--yellow, #FFCC00);
    color: var(--blue, #003576);
}

.to-top svg {
    width: 30px;
    height: 30px;
}

/* ---------- Responsive (<= 860px) ---------- */

@media (max-width: 860px) {
    .foot-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .where {
        grid-column: 1 / -1;
    }

    .foot-legal {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .foot-legal nav {
        justify-content: flex-start;
        padding-right: 72px;
    }

    .foot-legal .to-top {
        top: 22px;
        transform: none;
        right: calc(16px + env(safe-area-inset-right, 0px));
    }

    .social {
        grid-template-columns: repeat(4, 44px);
        gap: 20px;
    }

    .social a {
        width: 44px;
        height: 44px;
    }
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ico-list a,
    .social a,
    .foot-legal .to-top {
        transition: none !important;
    }
}
