.footer-dark {
    --hm-footer-height: 72px;
    min-height: var(--hm-footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    box-sizing: border-box;
    background: var(--hm-page-footer-bg, #14161a);
    color: #f0f9ff;
    overflow: hidden;
}

body.hm-public-page {
    --hm-public-footer-height: 72px;
    --hm-page-footer-bg: #14161a;
}

.footer-dark,
.footer-dark * {
    box-sizing: border-box;
}

.footer-dark footer {
    width: 100%;
}

.hm-footer-container {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

.hm-footer-links {
    min-height: calc(var(--hm-footer-height) - 16px);
    display: grid;
    grid-template-columns: max-content max-content max-content;
    gap: 18px;
    align-items: center;
    justify-content: center;
    justify-items: center;
}

.hm-footer-link,
.hm-footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    color: #ffffff;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.hm-footer-link:hover,
.hm-footer-link:focus,
.hm-footer-brand:hover,
.hm-footer-brand:focus {
    color: #ffffff;
    text-decoration: none;
}

.hm-footer-link--impressum {
    justify-self: center;
}

.hm-footer-link--privacy {
    justify-self: center;
}

.hm-footer-brand img {
    display: block;
    width: auto;
    height: auto;
    max-width: 132px;
    max-height: 32px;
    object-fit: contain;
}

body.hm-public-page--trace {
    --hm-page-footer-bg: #14161a;
    --hm-trace-footer-height: 72px;
    --hm-public-footer-height: var(--hm-trace-footer-height);
    min-height: 100dvh;
    background: var(--hm-page-footer-bg);
}

body.hm-public-page--trace-customer {
    --hm-page-footer-bg: var(--hm-brand);
}

body.hm-public-page--trace .footer-dark {
    --hm-footer-height: var(--hm-trace-footer-height);
    background: var(--hm-page-footer-bg) !important;
}

@media (max-width: 767px) {
    .footer-dark {
        --hm-footer-height: 96px;
        padding: 10px 12px;
    }

    .hm-footer-container {
        width: 100%;
        padding: 0 12px;
    }

    .hm-footer-links {
        min-height: calc(var(--hm-footer-height) - 20px);
        grid-template-columns: max-content max-content;
        grid-template-areas:
            "brand brand"
            "imprint privacy";
        gap: 8px 22px;
        justify-content: center;
    }

    .hm-footer-brand {
        grid-area: brand;
    }

    .hm-footer-link--impressum {
        grid-area: imprint;
        justify-self: end;
    }

    .hm-footer-link--privacy {
        grid-area: privacy;
        justify-self: start;
    }

    .hm-footer-brand img {
        max-width: 118px;
        max-height: 30px;
    }

    body.hm-public-page--trace {
        --hm-trace-footer-height: 96px;
    }

    body.hm-public-page {
        --hm-public-footer-height: 96px;
    }
}

@media (max-width: 360px) {
    .hm-footer-links {
        gap: 8px 14px;
        font-size: 13px;
    }

    .hm-footer-brand img {
        max-width: 110px;
    }
}
