/*
 * Header navigation and footer, mirrored from https://www.libs.ch/
 * (t3master navigation.css / struktur.css / media.css).
 */

/* ───────────────────────── header ───────────────────────── */

body {
    padding-top: 20px; /* header is 100px tall on desktop; pages offset for 80px */
}

#libs-header.libs-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    height: 100px;
    background: #fff;
    font-family: Outfit, sans-serif;
    font-size: 19px;
    font-weight: 300;
    line-height: 26.6px;
    transition: none;
}

#libs-header .libs-header__inner {
    position: relative;
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

#libs-header .libs-header__inner::after {
    content: "";
    display: table;
    clear: both;
}

#libs-header .libs-logo {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 300;
    width: 300px;
    transform: translateY(-50%);
}

#libs-header .libs-logo a,
#libs-header .libs-logo img {
    display: block;
    width: 100%;
    height: auto;
}

#libs-header .libs-toplinks {
    float: right;
    margin: 15px 15px 0 0;
}

#libs-header .libs-toplinks__item {
    float: left;
    margin-left: 25px;
}

#libs-header .libs-toplinks__item a {
    color: #504f4f;
    font-size: 13px;
    font-weight: 700;
    line-height: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
}

#libs-header .libs-toplinks__item a:hover {
    color: #f28c00;
}

#libs-header .libs-nav {
    clear: both;
    float: right;
    display: flex;
    align-items: center;
    height: 50px;
    margin-top: 10px;
}

#libs-header .libs-nav__toggle {
    display: none;
}

#libs-header .libs-nav__list {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
}

#libs-header .libs-nav__item {
    position: relative;
    margin-right: 2rem;
}

#libs-header .libs-nav__item:nth-last-child(2),
#libs-header .libs-nav__item:last-child {
    margin-right: 0;
}

#libs-header .libs-nav__item--mobile-only {
    display: none;
}

#libs-header .libs-nav__link {
    position: relative;
    display: block;
    padding: 6px 15px;
    color: #003f89;
    font-weight: 400;
    text-decoration: none;
}

#libs-header .libs-nav__link:hover {
    color: #f28c00;
}

#libs-header .libs-nav__link::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 15px;
    width: 0;
    height: 3px;
    background: #f28c00;
    transition: width 0.3s ease-in-out;
}

#libs-header .libs-nav__link:hover::before,
#libs-header .libs-nav__item:hover > .libs-nav__link::before,
#libs-header .libs-nav__item:focus-within > .libs-nav__link::before,
#libs-header .libs-nav__link.is-active::before {
    width: calc(100% - 30px);
}

#libs-header .libs-nav__arrow {
    display: none;
}

#libs-header .libs-nav__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 16rem;
    max-width: 16rem;
    margin: 0 0 0 -0.5rem;
    padding: 0 1rem 1rem;
    background: #fff;
    color: #003f89;
    font-size: 1rem;
    list-style: none;
    text-align: left;
}

#libs-header .libs-nav__item--parent:hover > .libs-nav__sub,
#libs-header .libs-nav__item--parent:focus-within > .libs-nav__sub {
    display: block;
}

#libs-header .libs-nav__sub li {
    padding: 3px 0;
}

#libs-header .libs-nav__sub a {
    padding-left: 8px;
    color: #003f89;
    font-weight: 400;
    text-decoration: none;
}

#libs-header .libs-nav__sub a:hover {
    color: #f28c00;
}

@media screen and (max-width: 1080px) {
    #libs-header .libs-nav__item {
        margin-right: 0;
    }
}

/* ── mobile / tablet ── */
@media screen and (max-width: 980px) {
    body {
        padding-top: 0;
    }

    #libs-header.libs-header {
        height: 80px;
    }

    #libs-header .libs-nav {
        height: 50px;
        margin-top: 0;
    }

    #libs-header .libs-nav__toggle {
        display: block;
        padding: 0 0.25rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        outline: none;
        cursor: pointer;
    }

    #libs-header .libs-nav__toggle-icon {
        display: block;
        width: 30px;
        height: 30px;
        background: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 63, 137, 1)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") center / 100% 100% no-repeat;
    }

    #libs-header .libs-nav__toggle[aria-expanded="true"] .libs-nav__toggle-icon {
        background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 63, 137, 1)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M6 6 24 24 M24 6 6 24'/%3e%3c/svg%3e");
        animation: libs-close-btn 0.4s forwards;
    }

    @keyframes libs-close-btn {
        from { transform: rotate(0deg); }
        to { transform: rotate(180deg); }
    }

    #libs-header .libs-nav__collapse {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 80px);
        padding: 0.5rem;
        background: #fff;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #libs-header .libs-nav__collapse.is-open {
        display: block;
    }

    body.libs-nav-open {
        overflow: hidden;
    }

    #libs-header .libs-nav__list {
        display: block;
        width: 100%;
        min-height: calc(100vh - 102px);
        padding: 0.5rem 0;
    }

    #libs-header .libs-nav__item,
    #libs-header .libs-nav__item:nth-last-child(2),
    #libs-header .libs-nav__item:last-child {
        margin-right: 0;
    }

    #libs-header .libs-nav__item:last-child {
        margin-bottom: 150px;
        margin-right: 0.15rem;
    }

    #libs-header .libs-nav__item--mobile-only {
        display: block;
    }

    #libs-header .libs-nav__link {
        padding: 0.9rem 40px 0.9rem 10px;
        color: #281700;
        font-size: 1.6rem;
        font-weight: 600;
    }

    #libs-header .libs-nav__link:hover {
        color: #281700;
    }

    #libs-header .libs-nav__link::before {
        content: none;
    }

    #libs-header .libs-nav__arrow {
        display: block;
        position: absolute;
        top: 0.9rem;
        right: 8px;
        width: 40px;
        color: #281700;
        font-size: 2.25rem;
        font-weight: 400;
        line-height: 26.6px;
        text-align: center;
    }

    #libs-header .libs-nav__arrow::before {
        content: "+";
    }

    #libs-header .libs-nav__item.is-open > .libs-nav__link .libs-nav__arrow::before {
        content: "\2212";
    }

    #libs-header .libs-nav__sub,
    #libs-header .libs-nav__item--parent:hover > .libs-nav__sub,
    #libs-header .libs-nav__item--parent:focus-within > .libs-nav__sub {
        display: none;
        position: static;
        min-width: auto;
        max-width: none;
        margin: 0;
        padding: 0 0 8px;
        border: 0;
    }

    #libs-header .libs-nav__item.is-open > .libs-nav__sub {
        display: block;
    }

    #libs-header .libs-nav__sub li {
        padding: 6px 0 0 8px;
    }

    #libs-header .libs-nav__sub a {
        padding-left: 0;
        color: #281700;
        font-size: 1.3em;
        line-height: 1.5em;
    }

    #libs-header .libs-nav__sub a:hover {
        color: #281700;
    }
}

@media screen and (max-width: 1300px) {
    #libs-header .libs-header__inner {
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 767px) {
    #libs-header .libs-logo {
        width: 250px;
    }
}

@media screen and (max-width: 576px) {
    #libs-header .libs-logo {
        width: 230px;
    }

    #libs-header .libs-toplinks {
        display: none;
    }

    #libs-header .libs-nav {
        margin-top: 16px;
    }
}

/* ───────────────────────── footer ───────────────────────── */

#libs-footer.libs-footer {
    position: relative;
    z-index: 5;
    width: 100%;
    margin-top: 0;
    padding-top: 40px;
    background: #003f89;
    color: #fff;
    font-family: Outfit, sans-serif;
    font-size: 19px;
    font-weight: 300;
    line-height: 26.6px;
}

#libs-footer h3 {
    margin: 0 0 10px;
    color: #fff;
    font-family: Outfit, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 21.6px;
}

#libs-footer p {
    margin: 0 0 20px;
    color: #fff;
    font-size: 17px;
    font-weight: 400;
    line-height: 25.5px;
}

#libs-footer p strong,
#libs-footer p b {
    font-weight: 700;
}

#libs-footer a {
    color: #fff;
    text-decoration: none;
}

#libs-footer a:hover {
    color: #f28c00;
    text-decoration: none;
}

#libs-footer .libs-footer__container {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

#libs-footer .libs-footer__row {
    padding: 30px 0;
}

#libs-footer .libs-footer__row--2 {
    background: #175196;
    border-top: 2px solid #f28c00;
    border-bottom: 2px solid #f28c00;
}

#libs-footer .libs-footer__row--3 p {
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 300;
    line-height: 22.5px;
}

#libs-footer .libs-footer__spacer {
    height: 15.6px;
    overflow: hidden;
}

#libs-footer .libs-footer__center {
    display: flex;
    align-items: center;
}

#libs-footer .libs-footer__social {
    display: flex;
}

#libs-footer .libs-footer__social a {
    display: block;
    width: 38px;
    height: 38px;
    margin-right: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    line-height: 0;
}

#libs-footer .libs-footer__social a:hover {
    border-color: #f28c00;
}

#libs-footer .libs-footer__social svg {
    width: 100%;
    height: 100%;
    padding: 4px;
}

#libs-footer .libs-footer__button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 25px;
    border: 2px solid #fff;
    border-radius: 18px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 19px;
}

#libs-footer .libs-footer__button:hover {
    background: #fff;
    color: #003f89;
}

@media screen and (max-width: 767px) {
    #libs-footer .libs-footer__row--1 .col-12 {
        margin-bottom: 20px;
    }

    #libs-footer .libs-footer__row--2 {
        margin-top: 10px;
    }

    #libs-footer .libs-footer__row--2 .row > [class*="col-"] {
        margin-bottom: 25px;
    }

    #libs-footer .libs-footer__spacer {
        height: 5px;
    }

    #libs-footer .libs-footer__center + .libs-footer__center .libs-footer__button {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 576px) {
    #libs-footer .libs-footer__row--1 {
        padding: 5px 0;
    }

    #libs-footer .libs-footer__row--1 .col-12 {
        margin-bottom: 30px;
    }

}
