/* =========================================================
   EXTERN FOOTER
========================================================= */

body .extern-footer {
    position: relative;

    width: 100%;

    margin-top: 100px;

    padding: 95px 0 0;

    overflow: hidden;

    background: var(--palette-ink);

    color: var(--palette-paper);
}


/* =========================================================
   NACH OBEN
========================================================= */

body .extern-footer__top {
    position: absolute;

    top: -1px;
    left: 0;

    width: 100%;
    height: 82px;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    pointer-events: none;
}


/* helle Ausbuchtung */

body .extern-footer__top::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 300px;
    height: 72px;

    background: var(--palette-paper);

    border-radius: 0 0 150px 150px;

    transform: translateX(-50%);
}


body .extern-footer__backtop {
    position: relative;
    z-index: 2;

    height: 64px;

    display: flex;
    align-items: center;

    gap: 13px;

    font-family: "Inter", sans-serif;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    color: var(--palette-ink);

    text-decoration: none;

    pointer-events: auto;
}


body .extern-footer__backtop-circle {
    position: relative;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--palette-value-3b05d7df63);
    border-radius: 50%;

    font-size: 0;
    line-height: 0;

    transition:
        transform 220ms cubic-bezier(.22, 1, .36, 1),
        background 220ms ease,
        color 220ms ease,
        border-color 220ms ease;
}


/* SVG arrow up */

body .extern-footer__backtop-circle::before {
    content: "";

    width: 12px;
    height: 14px;

    display: block;

    background-color: var(--palette-ink);

    -webkit-mask:
        url("../images/icons/arrow-up.svg")
        center / contain no-repeat;

    mask:
        url("../images/icons/arrow-up.svg")
        center / contain no-repeat;

    transition:
        transform 220ms cubic-bezier(.22, 1, .36, 1),
        background-color 220ms ease;
}


body .extern-footer__backtop:hover
.extern-footer__backtop-circle {
    transform: translateY(-3px);

    background: var(--color-primary);

    border-color: var(--color-primary);
}


body .extern-footer__backtop:hover
.extern-footer__backtop-circle::before {
    background-color: var(--palette-paper);

    transform: translateY(-1px);
}


/* =========================================================
   WELLE
========================================================= */

body .extern-footer__wave {
    position: absolute;

    top: 50%;
    right: -140px;

    width: 900px;
    max-width: none;
    height: auto;

    transform: translateY(-50%);

    opacity: .03;

    pointer-events: none;
    user-select: none;
}


/* =========================================================
   HAUPTBEREICH
========================================================= */

body .extern-footer__inner {
    position: relative;
    z-index: 2;

    width: calc(100% - 96px);
    max-width: 1450px;
    min-height: 260px;

    margin: 0 auto;

    padding: 10px 0 55px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    box-sizing: border-box;
}


/* =========================================================
   LOGO / BRAND
========================================================= */

body .extern-footer__brand {
    display: flex;

    align-items: flex-start;
    justify-content: flex-start;
}


body .extern-footer__logo {
    display: block;

    width: 270px;
    max-width: 100%;
    height: auto;

    margin: 0;
    padding: 0;
}


/* =========================================================
   KONTAKT
========================================================= */

body .extern-footer__contact {
    width: 100%;
    max-width: 500px;

    justify-self: end;
}


body .extern-footer__eyebrow {
    margin: 0 0 10px;

    font-family: "Inter", sans-serif;

    font-size: 14px;
    font-weight: 700;

    color: var(--color-accent);

    text-transform: uppercase;

    letter-spacing: .08em;
}


body .extern-footer__headline {
    margin: 0 0 20px;

    font-family: "Inter", sans-serif;

    font-size: clamp(30px, 2.7vw, 44px);
    font-weight: 700;
    line-height: 1.05;

    color: var(--palette-paper);
}


body .extern-footer__contact-data {
    margin-bottom: 22px;

    font-family: "Inter", sans-serif;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;

    color: var(--palette-value-a967414bb3);
}


body .extern-footer__contact-data p {
    margin: 0 0 7px;
}


body .extern-footer__contact-data a {
    color: inherit;

    text-decoration: none;

    transition: color 180ms ease;
}


body .extern-footer__contact-data a:hover {
    color: var(--color-accent);
}


/* =========================================================
   KONTAKT BUTTON
========================================================= */

body .extern-footer__contact-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 22px;

    min-height: 56px;

    padding: 0 28px;

    background: var(--color-primary);

    border-radius: 999px;

    font-family: "Inter", sans-serif;

    font-size: 14px;
    font-weight: 700;

    color: var(--palette-paper);

    text-decoration: none;

    transition:
        transform 220ms cubic-bezier(.22, 1, .36, 1),
        box-shadow 220ms ease;
}


/* vorhandenen Textpfeil unsichtbar machen */

body .extern-footer__contact-button span {
    position: relative;

    width: 12px;
    height: 14px;

    display: inline-block;
    flex: 0 0 12px;

    font-size: 0;
    line-height: 0;

    background: none;

    transition:
        transform 220ms cubic-bezier(.22, 1, .36, 1);
}


/* SVG arrow right */

body .extern-footer__contact-button span::before {
    content: "";

    position: absolute;

    inset: 0;

    display: block;

    background-color: var(--palette-paper);

    -webkit-mask:
        url("../images/icons/arrow-right.svg")
        center / contain no-repeat;

    mask:
        url("../images/icons/arrow-right.svg")
        center / contain no-repeat;
}


body .extern-footer__contact-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 26px rgba(var(--color-primary-rgb), 0.25);
}


body .extern-footer__contact-button:hover span {
    transform: translateX(4px);
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

body .extern-footer__bottom {
    position: relative;
    z-index: 2;

    width: calc(100% - 96px);
    max-width: 1450px;

    margin: 0 auto;

    padding: 20px 0 24px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border-top:
        1px solid var(--palette-value-0e51ab286b);

    box-sizing: border-box;
}


body .extern-footer__copyright {
    font-family: "Inter", sans-serif;

    font-size: 12px;
    font-weight: 400;

    color: var(--palette-value-8a81de6f49);
}


body .extern-footer__legal {
    display: flex;

    align-items: center;

    gap: 28px;
}


body .extern-footer__legal a {
    font-family: "Inter", sans-serif;

    font-size: 12px;
    font-weight: 500;

    color: var(--palette-value-8a81de6f49);

    text-decoration: none;

    transition: color 180ms ease;
}


body .extern-footer__legal a:hover {
    color: var(--color-accent);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    body .extern-footer {
        margin-top: 80px;

        padding-top: 115px;
    }


    body .extern-footer__top::before {
        width: 230px;
        height: 64px;

        border-radius:
            0 0 115px 115px;
    }


    body .extern-footer__backtop {
        height: 56px;

        font-size: 13px;
    }


    body .extern-footer__inner {
        width: calc(100% - 40px);

        min-height: 0;

        padding:
            20px
            0
            65px;

        grid-template-columns: 1fr;

        gap: 65px;
    }


    body .extern-footer__brand {
        justify-content: flex-start;
    }


    body .extern-footer__logo {
        width: 240px;
    }


    body .extern-footer__contact {
        max-width: none;

        justify-self: start;
    }


    body .extern-footer__headline {
        font-size: 38px;
    }


    body .extern-footer__contact-data {
        font-size: 15px;
    }


    body .extern-footer__wave {
        top: 45%;
        right: -250px;

        width: 850px;

        opacity: .03;
    }


    body .extern-footer__bottom {
        width: calc(100% - 40px);

        padding:
            25px
            0
            110px;

        flex-direction: column;

        align-items: flex-start;
    }


    body .extern-footer__legal {
        flex-wrap: wrap;

        gap:
            12px
            22px;
    }

}
/* Bisherige globale Footer-Overrides, in ursprünglicher Reihenfolge. */
/* =========================================================
   EXTERN FOOTER
========================================================= */

body .extern-footer {
    position: relative;

    width: 100%;

    margin-top: 100px;
    padding: 95px 0 0;

    overflow: hidden;

    background: var(--palette-ink);
    color: var(--palette-paper);
}


/* =========================================================
   NACH OBEN
========================================================= */

body .extern-footer__top {
    position: absolute;

    top: -1px;
    left: 0;

    width: 100%;
    height: 82px;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    pointer-events: none;
}


/* helle Ausbuchtung */

body .extern-footer__top::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 300px;
    height: 72px;

    background: var(--palette-paper);

    border-radius: 0 0 150px 150px;

    transform: translateX(-50%);
}


body .extern-footer__backtop {
    position: relative;

    z-index: 2;

    height: 64px;

    display: flex;
    align-items: center;

    gap: 13px;

    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    color: var(--palette-ink);

    text-decoration: none;

    pointer-events: auto;
}


body .extern-footer__backtop-circle {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--palette-value-3b05d7df63);
    border-radius: 50%;

    font-size: 17px;

    transition:
        transform 220ms cubic-bezier(.22, 1, .36, 1),
        background 220ms ease,
        color 220ms ease,
        border-color 220ms ease;
}


body .extern-footer__backtop:hover .extern-footer__backtop-circle {
    transform: translateY(-3px);

    background: var(--color-primary);
    border-color: var(--color-primary);

    color: var(--palette-paper);
}


/* =========================================================
   WELLE
========================================================= */

body .extern-footer__wave {
    position: absolute;

    top: 50%;
    right: -140px;

    width: 900px;
    max-width: none;
    height: auto;

    transform: translateY(-50%);

    opacity: .03;

    pointer-events: none;
    user-select: none;
}


/* =========================================================
   HAUPTBEREICH
========================================================= */

body .extern-footer__inner {
    position: relative;

    z-index: 2;

    width: calc(100% - 96px);
    max-width: 1450px;

    min-height: 260px;

    margin: 0 auto;

    padding: 10px 0 55px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    box-sizing: border-box;
}


/* =========================================================
   LOGO / BRAND
========================================================= */

body .extern-footer__brand {
    display: flex;

    align-items: flex-start;
    justify-content: flex-start;
}


body .extern-footer__logo {
    display: block;

    width: 270px;
    max-width: 100%;
    height: auto;

    margin: 0;
    padding: 0;
}


/* =========================================================
   KONTAKT
========================================================= */

body .extern-footer__contact {
    width: 100%;
    max-width: 500px;

    justify-self: end;
}


body .extern-footer__eyebrow {
    margin: 0 0 10px;

    font-family: "Inter", sans-serif;

    font-size: 14px;
    font-weight: 700;

    color: var(--color-accent);

    text-transform: uppercase;

    letter-spacing: .08em;
}


body .extern-footer__headline {
    margin: 0 0 20px;

    font-family: "Inter", sans-serif;

    font-size: clamp(30px, 2.7vw, 44px);
    font-weight: 700;

    line-height: 1.05;

    color: var(--palette-paper);
}


body .extern-footer__contact-data {
    margin-bottom: 22px;

    font-family: "Inter", sans-serif;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.5;

    color: var(--palette-value-a967414bb3);
}


body .extern-footer__contact-data p {
    margin: 0 0 7px;
}


body .extern-footer__contact-data a {
    color: inherit;

    text-decoration: none;

    transition:
        color 180ms ease;
}


body .extern-footer__contact-data a:hover {
    color: var(--color-accent);
}


/* =========================================================
   KONTAKT BUTTON
========================================================= */

body .extern-footer__contact-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 22px;

    min-height: 56px;

    padding: 0 28px;

    background: var(--color-primary);

    border-radius: 999px;

    font-family: "Inter", sans-serif;

    font-size: 14px;
    font-weight: 700;

    color: var(--palette-paper);

    text-decoration: none;

    transition:
        transform 220ms cubic-bezier(.22, 1, .36, 1),
        box-shadow 220ms ease;
}


body .extern-footer__contact-button span {
    font-size: 20px;

    transition:
        transform 220ms cubic-bezier(.22, 1, .36, 1);
}


body .extern-footer__contact-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 26px rgba(var(--color-primary-rgb), 0.25);
}


body .extern-footer__contact-button:hover span {
    transform: translateX(4px);
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

body .extern-footer__bottom {
    position: relative;

    z-index: 2;

    width: calc(100% - 96px);
    max-width: 1450px;

    margin: 0 auto;

    padding: 20px 0 24px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border-top:
        1px solid var(--palette-value-0e51ab286b);

    box-sizing: border-box;
}


body .extern-footer__copyright {
    font-family: "Inter", sans-serif;

    font-size: 12px;
    font-weight: 400;

    color: var(--palette-value-8a81de6f49);
}


body .extern-footer__legal {
    display: flex;

    align-items: center;

    gap: 28px;
}


body .extern-footer__legal a {
    font-family: "Inter", sans-serif;

    font-size: 12px;
    font-weight: 500;

    color: var(--palette-value-8a81de6f49);

    text-decoration: none;

    transition:
        color 180ms ease;
}


body .extern-footer__legal a:hover {
    color: var(--color-accent);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    body .extern-footer {
        margin-top: 80px;
        padding-top: 115px;
    }


    body .extern-footer__top::before {
        width: 230px;
        height: 64px;

        border-radius:
            0 0 115px 115px;
    }


    body .extern-footer__backtop {
        height: 56px;

        font-size: 13px;
    }


    body .extern-footer__inner {
        width: calc(100% - 40px);

        min-height: 0;

        padding:
            20px
            0
            65px;

        grid-template-columns: 1fr;

        gap: 65px;
    }


    body .extern-footer__brand {
        justify-content: flex-start;
    }


    body .extern-footer__logo {
        width: 240px;
    }


    body .extern-footer__contact {
        max-width: none;

        justify-self: start;
    }


    body .extern-footer__headline {
        font-size: 38px;
    }


    body .extern-footer__contact-data {
        font-size: 15px;
    }


    /* Welle mobil wieder größer und mittiger */

    body .extern-footer__wave {
        top: 45%;
        right: -250px;

        width: 850px;

        opacity: .03;
    }


    body .extern-footer__bottom {
        width: calc(100% - 40px);

        padding:
            25px
            0
            110px;

        flex-direction: column;

        align-items: flex-start;
    }


    body .extern-footer__legal {
        flex-wrap: wrap;

        gap:
            12px
            22px;
    }

}
/* Helle Footer-Schrift unabhängig von globalen Text- und Markenregeln. */
body .extern-footer .extern-footer__headline,
body .extern-footer .extern-footer__contact-data,
body .extern-footer .extern-footer__contact-data p,
body .extern-footer .extern-footer__contact-data a,
body .extern-footer .extern-footer__copyright,
body .extern-footer .extern-footer__legal a {
    color: var(--palette-paper, #FAFAF8) !important;
}

body .extern-footer .extern-footer__contact-data a:hover,
body .extern-footer .extern-footer__legal a:hover {
    color: var(--color-accent) !important;
}

body[data-site="hanug"] .extern-footer .extern-footer__contact-data a:hover,
body[data-site="hanug"] .extern-footer .extern-footer__legal a:hover {
    color: var(--color-primary) !important;
}


/* Footer-Links mit Abstand über der AppBar */
body .extern-footer__bottom {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
}

/* ==========================================
   FOOTER ALS EIGENSTÄNDIGE IFRAME-SEITE
========================================== */

html:has(body.page-footer-embed),
body.page-footer-embed {
    margin: 0;
    padding: 0;
    min-height: 0;
}

body.page-footer-embed #start {
    margin: 0;
    padding: 0;
    min-height: 0;
}

body.page-footer-embed .extern-footer {
    margin-top: 0 !important;
}

/* Keine zusätzlichen Abstände unter dem Footer */
body.page-footer-embed {
    padding-bottom: 0 !important;
}

/* Auf der Footer-Seite keine App-Bar */
body.page-footer-embed .app-bar {
    display: none !important;
}