/* RESET */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    line-height: 1.25;
    -webkit-text-size-adjust: 100%;
    color-scheme: light;
    scroll-behavior: smooth;
    text-rendering: geometricPrecision;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

abbr, label, summary, select {
    cursor: pointer;
}




/* FONTS */
@font-face {
  font-display: swap;
  font-family: 'Asap';
  font-style: normal;
  font-weight: 300;
  src: url('vendor/asap-v33-latin-300.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Asap';
  font-style: normal;
  font-weight: 400;
  src: url('vendor/asap-v33-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Asap';
  font-style: normal;
  font-weight: 600;
  src: url('vendor/asap-v33-latin-600.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Asap';
  font-style: normal;
  font-weight: 700;
  src: url('vendor/asap-v33-latin-700.woff2') format('woff2');
}


p, .txt li, time, figcaption, select {
    font-size: clamp(13px, 1.28vw, 1rem);
    font-size: clamp(13px, calc(11.588px + 0.353vw), 16px);
    line-height: 1.5;
}

.txt > :is(ol, ul, p, table, figure, h1, h2, h3, h4, h5) {
    margin-bottom: 1rem;
}

.txt > *:last-child {
    margin-bottom: 0;
}

.txt a {
    color: var(--color-primary);
    font-weight: 700;
    display: inline-block;
    position: relative;
}

.txt a:not(:has(img)):hover::after {
    content: '';
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--color-primary);
    bottom: 1px;
}

.txt ol {
    list-style-type: auto;
    margin-left: 1rem;
}
.txt ul {
    list-style-type: disc;
    margin-left: 1rem;
}



/* TOKENS (scoped) */
html {

    --font-family: 'Asap', system-ui, sans-serif;

    --unit-margin: .5rem;
    --unit-radius: 0;
    --unit-gap: .6rem;

    /* --spacing      : clamp(3rem, 9.2vw, 8.125rem); */
    --spacing: clamp(3rem, 9.2vw, 8.125rem);
    /* --spacing : 2.5rem; */
    --spacing-save : 1.5rem;

    --size-outline  : 1250px; /* clamp(1132px,93.5vw,1344px); */
    --size-large    : 1200px; /* hero-slider, raum, galerie-logos */
    --size-medium   : 954px; /* service, rec  clamp(910px,71vw,1040px); clamp(800px,62.8vw,902px); */
    --size-small    : 750px;  /* infi-centered, events */

    --color-text:       #434343;
    --color-primary-light:    #005ca9;
    --color-primary:    #004d8f;
    --color-primary-dark: #004077;
    --color-secondary:  #E3EDF6;

    /* --border-color: currentColor;
    --border-radius: calc( var(--unit-radius) * 1 );
    --border-width: 1px; */
}



main {

    section {
        padding-left: var(--spacing-save);
        padding-right: var(--spacing-save);
        margin: var(--spacing) 0;

        &:has(.bbb_text) {
            margin: 5rem 0;
        }

        & > div[id] {
            scroll-margin-top: 3rem; /* adjust to your fixed header height */
        }

        & > * {
            max-width: var(--size-outline);
            margin: 0 auto;
        }

        h1 {
            font-size: 40px;
            font-size: clamp(20px, calc(10.588px + 2.353vw), 40px);
            font-weight: 600;
            color: var(--color-primary);
        }

        h2 {
            font-size: 30px;
            font-weight: 600;
            color: var(--color-primary);
            margin-bottom: 1.5rem;
            margin-bottom: .9em;

            font-size: clamp(20px, 3.3vw, 40px);
            font-size: clamp(20px, calc(10.588px + 2.353vw), 40px);
            line-height: 1.3;
        }

        h3 {
            font-weight: 600;

        }

        p + h3,
        .bbb_text.banner h3 {
            margin-top: 2lh;
            color: var(--color-primary);
            font-size: 21px;
        }

        strong {
            font-weight: 600;
        }

    }

    section:has(.bbb_hero.toc.empty) {
        margin-bottom: 0;

        & + section {
            margin-top: 0;
        }
    }

    article {
        padding-left: var(--spacing-save);
        padding-right: var(--spacing-save);
        margin: var(--spacing) 0;



        & > * {
            max-width: var(--size-medium);
            margin: 0 auto;
        }
    }

}





/* BASE ELEMENTS */
html, input, textarea {
    font-family: var(--font-family);
    color: var(--color-text);
}

nav > ul {
    display: flex;
    gap: 1rem;
    color: var(--color-primary);

    /* .sub-menu {
        display: none;
    } */

    a {
        white-space: nowrap;
    }
}


header {

    section {
        padding-left: var(--spacing-save);
        padding-right: var(--spacing-save);
        padding-bottom: clamp(1rem, 1.5vw, 1.65rem);


        .wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;

            .logo {
                line-height: 0;
                width: clamp(80px, 10vw, 140px);
                opacity: 1;
                transition: opacity .15s ease;

                &:hover {
                    opacity: .8;
                }
            }
        }

        & > * {
            width: 100%;
            max-width: var(--size-outline);
            margin: 0 auto;
        }
    }

}


footer {
    color: #fff;

    width: 100%;
    max-width: var(--size-outline);
    margin: 0 auto;

    nav > ul {
        color: #fff;
    }


    #nav_bottom a:hover {
        text-decoration: underline;
        text-underline-position: under;
    }
    #nav_bottom > ul {
        display: block;
        text-align: end;
    }
    #nav_bottom > ul > li {
        display: inline;
        line-height: 1.5;
        margin-left: 0.2rem;
        &::before {
            content : '|';
            padding-right: .3rem;
        }
    }
    #nav_bottom > ul > li:nth-child(5) {
        margin-left: 0;
    }

    #nav_bottom > ul > li:first-child::before {
        content: '';
    }
    #nav_bottom > ul > li:nth-child(5)::before {
        content: '';
        display:block;              /* forces line break after 4th */
    }

    section {

        & > * {
            padding-left: var(--spacing-save);
            padding-right: var(--spacing-save);
        }
    }

    .wrapper {
        max-width: var(--size-medium);
        margin: 0 auto;
    }

    .newsletter {
        /* background-color: var(--color-primary); */
        background-color: #00559e;
        height: 123px;

        .wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
        }

        .link {
            font-size: 20px;
            font-weight: 600;
            position: relative;
            padding-right: 2.5rem;

            &:before {
                content: '';
                display: block;
                height: 1.5ch;
                width: 2rem;
                background-image: url('images/pfeil-rechts.svg');
                background-repeat: no-repeat;
                background-size: contain;
                background-position-x: right;
                position: absolute;
                right: 0;
                top: 50%;
                transform: translateY(-50%);
            }
        }
    }

    .navigation {
        background-color: var(--color-primary-dark);

        .wrapper {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: flex-start;
            padding: 3rem 0 2rem;
            gap: 2rem;

            ul {
                display: block;
                list-style: none;
                margin: 0;
            }

            .txt a {
                color: #fff;
                font-weight: 400;

                &:hover {
                    text-decoration: underline;
                    text-underline-position: under;
                }
            }

            #nav_footer_1 li a {
                font-size: clamp(15px, calc(13.588px + 0.353vw), 18px);
                font-weight: 600;
            }
        }



    }

    .bottom {
        background-color: var(--color-primary-dark);

        .wrapper {
            display: flex;
            justify-content: space-between;
            padding: 1.5rem 0;

            font-size: 12px;
        }
    }


    .logos {

        margin: 2rem 0 5rem;

        .wrapper {
            display: flex;
            gap: 8rem;
        }

        .logo_title {
            color: var(--color-text);
            font-size: 10px;
            margin-bottom: .75rem;
        }

        .galerie.--logos {
            display: flex;
            gap: 1.5rem;

            figure {
                overflow: visible;
                padding: .8rem 0;
                display: flex;
                justify-content: center;
                align-items: center;
                height: 100%;

                img {
                    display: block;
                    max-width: 100%;
                    width: 110px;
                    height: 38px;
                    object-fit: contain;
                }
            }
        }
    }



}


#nav_footer_3 ul {
    column-count: 2;
    column-gap: 6rem;
}
/* LAYOUT */



nav#nav_top > ul {
    justify-content: center;
    margin: .6rem 0 1.4rem;
    font-size: 15px;
    font-size: clamp(13px, calc(12.059px + 0.235vw), 15px);
}

#nav_header {
    width: 100%;
}

@media only screen and (max-width: 769px) {

    #nav_header {
        width: 100%;

        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease-out;

        &.menu-open {
            max-height: 1000px; /* Large enough to accommodate full menu */
            transition: max-height 0.5s ease-in;
        }
    }



    .sub-menu {
        list-style: none;
        padding-left: 1.25rem;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease-out;

        &.submenu-open {
            max-height: 500px; /* Large enough for submenu items */
            transition: max-height 0.4s ease-in;
        }

        /* li {
            position: relative;

            &::before {
            content: '–';
            }
        } */
    }



}

#menu_header {

    flex-direction: column;
    gap: 0;
    font-size: clamp(15px, calc(13.588px + 0.353vw), 18px);


    a {
        position: relative;
        display: block;
        font-weight: 700;
        padding: .7rem 0;
        border-bottom: 1px solid #e3e3e3;
    }

    li:last-of-type a {
        border-bottom: none;
    }

    li:has(.sub-menu) > a:before {
        content: "";
        display: block;
        height: 8px;
        width: 8px;
        opacity: .7;
        position: absolute;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%) rotate(-45deg);
        right: 22px;
        transition: transform .2s ease;
        border-bottom: 1.5px solid currentColor;
        border-right: 1.5px solid currentColor;
    }
}

#trigger {
    --hamburger-width: 24px;
    --stroke-height: 3px;
    --stroke-spacing: 4px;
    --stroke-color: var(--color-primary);
    width: var(--hamburger-width);
    height: var(--hamburger-width);
}

.hamburger {

    display: block;
    pointer-events: none;
    font-size: 0;

    width: var(--hamburger-width);
    height: var(--stroke-height);
    background-color: var(--stroke-color);
    transition: all .15s ease;

    &::before, &::after {
        content: "";
        display: block;
        position: absolute;

        width: var(--hamburger-width);
        height: var(--stroke-height);
        background-color: var(--stroke-color);
        transition: all .15s ease;
    }

    &::before {
        top: var(--stroke-spacing);
        transition: top .1s .14s ease, opacity .1s ease;
    }
    &::after {
        bottom: var(--stroke-spacing);
        transition: bottom .1s .14s ease, opacity .1s ease;
    }
}



/* LAYOUTS */

section:has(.hero) {

    margin-top: 0;
}

section:has(.hero) + section {
    padding-top: 5rem;
}



.single {

    padding-left: 0;
    padding-right: 0;

    .content {
        max-width: var(--size-small);
        margin: 5rem auto;
        margin: clamp(32px, calc(9.412px + 5.647vw), 80px) auto;
    }

    nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        color: var(--color-primary);
        font-weight: 600;

        margin-top: 4rem;
        padding-top: 1.5rem;
        border-top: 1px solid #DAE5EE;

        .nav-center {
            text-align: center;
        }
        .nav-next {
            text-align: end;
        }
    }

    header {
        time {
            display: inline-block;
            color: var(--color-primary);
            margin-bottom: .5rem;
        }
    }

}



.buttonlike,
form button,
form input[type="submit"],
form .cr_button
 {
    display: inline-block;
    color: #fff;
    background-color: var(--color-primary);
    padding: .875rem 1.875rem;
    border-radius: 50px;
    border: none;
    transition: background-color .25s ease;
    font-size: clamp(13px, calc(11.588px + 0.353vw), 16px);
}

.buttonlike:hover,
form button:hover,
form input[type="submit"]:hover,
form .cr_button:hover {
    background-color: var(--color-primary-light);
}

form .cr_button {
    font-family: var(--font-family);
    font-weight: normal;
    height: auto;
    margin: auto;
    padding: inherit;
    display: inline-block;
    color: #fff;
    background-color: var(--color-primary);
    padding: .875rem 1.875rem;
    border-radius: 50px;
    transition: background-color .25s ease;
}

/* a.pdf::before {
    content: '';
    width: 1em;
    height: 1em;
    display: block;
     */

.bbb_auflistung.publications {
    max-width: var(--size-small);

    article {
        border-bottom: 2px solid #DAE5EE;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
        margin-top: 2rem;
        padding-left: 0;
        padding-right: 0;

        h3 {
            color: var(--color-primary);
            font-size: clamp(13px, 1.28vw, 1rem);
            font-weight: 400;
            margin-bottom: .5rem;
        }

        h2 {

            font-size: 18px;
            font-size: clamp(15px, calc(13.588px + 0.353vw), 18px);
            margin-bottom: 0;
        }

        .txt {
            margin-top: 1rem;

            p {
                font-size: 14px;
                font-size: clamp(14px, calc(13.059px + 0.235vw), 16px);
            }
        }

    }
}



main a:where(.pdf, [href$=".pdf" i]):not(:has(figure)) {
    position: relative;
    margin-top: 2rem !important;
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    padding-left: 1.6rem;

    &::before {
        content: '';
        display: block;
        width: 1rem;
        height: 1rem;
        background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20fill='none'%3E%3Cpath%20stroke='%23005CA9'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='M19%2013v4a2%202%200%200%201-2%202H3a2%202%200%200%201-2-2v-4M5.002%208l5%205%205-5M10%2013V1'/%3E%3C/svg%3E");
        background-size: contain;
        position: absolute;
        left: 0;
    }
}

main .txt a:where(.pdf, [href$=".pdf" i]):not(:has(figure)) {
    margin-top: 0 !important;
}

main .txt.content a:where(.pdf, [href$=".pdf" i]) {
    margin-top: 0 !important;
    padding-left: 0;

    &::before {
        display: none;
    }
}


.bbb_auflistung.pages {
    max-width: var(--size-medium);

    .content {
        margin: 0 auto 2rem;
        max-width: var(--size-small);
        text-align: center;

        h2 {
            margin-bottom: 3rem;
        }
    }


    .wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;


        figure {
            position: relative;
            aspect-ratio: 1;

            .page_image {
                width: 100%;
                height: 100%;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }

            figcaption {
                position: absolute;
                width: 100%;
                height: 100%;
                top: 0;
                display: flex;
                align-items: center;
                justify-content: center;

                &::before {
                    content: '';
                    position: absolute;
                    left: 0;
                    top: 0;
                    width: 100%;
                    height: 100%;
                    background-color: rgba(0,0,0,.2);
                    transition: all .25s ease;
                }

                &:hover::before {
                    background-color: rgba(0,0,0,0);
                }

                &:hover h4 {
                    opacity: 0;
                }

                h4 {
                    font-size: clamp(16px, calc(14.118px + 0.471vw), 20px);
                    color: #fff;
                    font-weight: 600;
                    opacity: 1;
                    transition: opacity .25s ease;
                    z-index: 1;
                }
            }
        }
    }


    .more {

        text-align: center;

        h3 {
            position: relative;
            color: var(--color-primary);
            margin-bottom: 2rem;

            cursor: pointer;
            position: relative;
            /* padding-right: 2rem; */
            transition: color 0.3s ease;
            user-select: none;

            &:hover {
                color: var(--color-primary-light);
            }

            &::before {
                content: '';
                position: absolute;
                left: 50%;
                top: 2rem;
                width: .6em;
                height: .6em;
                transform: translateX(-50%);
                background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath fill='%23005ca9' fill-rule='nonzero' d='M.293.293A1 1 0 0 1 1.613.21l.094.083L6 4.585 10.293.293a1 1 0 0 1 1.32-.083l.094.083a1 1 0 0 1 .083 1.32l-.083.094-5 5a1 1 0 0 1-1.32.083l-.094-.083-5-5a1 1 0 0 1 0-1.414Z'/%3E%3C/svg%3E") no-repeat center;
                background-size: contain;
                transition: transform 0.3s ease;
                transform-origin: center;
            }

        }

        &.more-open h3::before {
            transform: translateX(-50%) rotate(-180deg);
        }

        .pages_more {
            grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));

            overflow: hidden;
            max-height: 0;
            opacity: 0;
            transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
        }

        .wrapper.pages_more.wrapper-open {
            max-height: 2000px; /* Adjust based on your content height */
            opacity: 1;
            transition: max-height 0.5s ease-in, opacity 0.4s ease-in;
        }


    }

}


.bbb_auflistung.news {
    max-width: var(--size-medium);

    .content {
        text-align: center;

        h2 {
            margin-bottom: 3rem;
        }
    }

    .button {
        color: var(--color-primary);
        font-weight: 600;
        display: flex;
        justify-self: flex-end;
        margin-top: 2rem;
        position: relative;
        padding-right: 1.5rem;

        &:before {
            content: '';
            display: block;
            height: 1.5ch;
            width: 2rem;
            background-image: url('images/pfeil-rechts-blau.svg');
            background-repeat: no-repeat;
            background-size: contain;
            background-position-x: right;
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
        }
    }

    .wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(16rem,1fr));
        column-gap: 3rem;
        row-gap: 4rem;
    }

    .card {
        display: contents; /* we use subgrid on > a */
        font-size: 14px;

        & > a {
            display: grid;
            grid-template-rows: subgrid;
            grid-row: span 4;
            row-gap: 0;
        }

        figure {
            position: relative;
            margin-bottom: 1rem;
            aspect-ratio: 8 / 5;
            border: 1px solid #eaeaea;

            figcaption {
                position: absolute;
                bottom: 8px;
                left: 8px;
                background: rgba(0, 0, 0, 0.4);
                color: #e6e6e6;
                padding: 0 10px;
                font-size: 10px;
                line-height: 26px;
                font-weight: 600;
            }

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }


        .title {
            font-size: 14px;
            font-size: clamp(13px, calc(12.529px + 0.118vw), 14px);
            margin-top: .5rem;
            margin-bottom: 1rem;
            /* min-height: 3.2rem; */
            font-weight: 600;
        }

        .pseudo_link {
            color: var(--color-primary);
            font-weight: 500;
            margin-top: 1.5rem;
            position: relative;
            width: fit-content;
            padding-right: 1.25rem;
            /* margin-bottom: 4rem; */

            &:before {
                content: '';
                display: block;
                height: 1.5ch;
                width: 2rem;
                background-image: url('images/pfeil-rechts-blau.svg');
                background-repeat: no-repeat;
                background-size: contain;
                background-position-x: right;
                position: absolute;
                right: 0;
                top: 50%;
                transform: translateY(-50%);
            }
        }

        time {
            font-size: 11px;
            color: #434343;
        }

        .text {
            min-height: 5.2em;
            hyphens: auto;
        }

        p {
            /* font-size: clamp(11.375px, 1.12vw, 0.875rem); */
            font-size: clamp(13px, calc(12.529px + 0.118vw), 14px);
        }
    }
}



.arrow {
    position: absolute;

    border: 0; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer;
    width: 54px;
    width: clamp(40px, calc(33.412px + 1.647vw), 54px);
    aspect-ratio: 1;
    background-image: url('images/pfeil-rechts-blau.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #E3EDF6;
    border-radius: 50%;
    background-size: 30%;
    z-index: 2;

    &.prev { left: 0; transform: rotate(-180deg); }
    &.next { right: 0; }
}



.bbb_auflistung.events {

    position: relative;
    max-width: var(--size-medium);

    .arrow {
        top: 8%;
    }


    h2 {
        text-align: center;
        margin-bottom: .2em;


    }

    .month-title {
        text-align: center;
        font-size: 28px;
        font-size: clamp(17px, calc(11.824px + 1.294vw), 28px);
        font-weight: normal;
        color: var(--color-primary);
        padding-bottom: 3em;
    }

    .termin {
        padding: 2em 0;
        border-bottom: 1px solid #DAE5EE;
        font-size: 14px;
        font-size: clamp(13px, calc(12.529px + 0.118vw), 14px);

        &:last-of-type {
            border-bottom: none;
            padding-bottom: 0;
        }

        h3 {
            font-size: 18px;
            font-size: clamp(15px, calc(13.588px + 0.353vw), 18px);
            color: var(--color-primary);
        }

        .termin-meta {
            padding: 1em 0;


            .date::before {
                content: '';
                display: inline-block;
                width: 1em;
                height: 1em;
                margin-right: .5em;
                background-image: url('images/icon-kalender.svg');
                background-size: contain;
                background-repeat: no-repeat;
                background-position: center;
                position: relative;
                top: 1px;
            }

            .city::before {
                content: '';
                display: inline-block;
                width: 1em;
                height: 1em;
                margin-right: .5em;
                background-image: url('images/icon-location.svg');
                background-size: contain;
                background-repeat: no-repeat;
                background-position: center;
                position: relative;
                top: 1px;
            }
        }

        .termin-links a {
            color: var(--color-primary);
            text-decoration: underline;
            margin-top: 0 !important;
            font-weight: 400;
        }

        .sep {
            padding: 0 .5em;
        }
    }

}



.bbb_auflistung.accordeon {
    max-width: var(--size-small);


    details {
            user-select: none;
            margin: 1rem 0;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        /* details:hover {
            box-shadow: 0 1px 5px #0b30414a;
        } */

        summary {
            user-select: none;
            padding: 0;
            cursor: pointer;
            font-weight: 600;
            font-size: 24px;
            font-size: clamp(16px, calc(12.235px + 0.941vw), 24px);
            list-style: none;
            transition: all 0.3s ease;
            display: flex;
            gap: 1rem;
            align-items: baseline;
            color: var(--color-primary);
        }

        summary::-webkit-details-marker {
            display: none;
        }

        summary::before {
            content: '+';
            font-size: 35px;
            font-weight: 400;
        }


        details[open] summary::before {
            content: '−';
        }

        .txt {
            h4, h5 {
                font-size: 18px;
                font-size: clamp(15px, calc(13.588px + 0.353vw), 18px);
                font-weight: 600;
                color: var(--color-primary);
                line-height: 1.3;
            }

            p:first-child::before,
            h4:first-child::before,
            h5:first-child::before {
                content: '';
                display: block;
                border-top: 1px solid #DAE5EE;
                margin: 2rem 0;
            }

            p:last-child::after {
                content: '';
                display: block;
                border-top: 1px solid #DAE5EE;
                margin: 2rem 0;
            }

            hr {
                display: block;
                height: 1px;
                border: 0;
                margin-bottom: 2rem;
                margin-top: 2rem;
                border-bottom: 1px solid #DAE5EE;
            }
        }

}


.institutionen {
    max-width: var(--size-medium);

    .wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 7rem;
        row-gap: 5rem;

        .title {
            color: var(--color-primary);
            margin-bottom: .8rem;
        }

        .terms {
            color: #A8B3BC;
            margin-bottom: .4rem;

            .term {
                &:not(:first-of-type)::before {
                    content: ', ';
                }
            }

        }

        .contact {
            .website {
                color: var(--color-primary);
                text-decoration: underline;
                margin-top: .4rem;
            }
        }
    }
}


@media only screen and (max-width: 769px) {

    .institutionen .wrapper {
            grid-template-columns: 1fr;
            row-gap: 3.5rem;
        }

}


.bbb_info {

    max-width: var(--size-outline);

    .content {
        max-width: var(--size-small);
        margin: 0 auto;
        text-align:center;

    }

    .wrapper {
        margin-top: 8rem;
        background-color: #e3edf6;
        padding: 0 1rem;

        .inner {
            max-width: var(--size-medium);
            margin: 0 auto;

            display: grid;
            grid-template-columns: .85fr 1fr;
            align-items: start;
            gap: 4rem;
            padding: 2rem 0;


            p:first-child {
                font-size: 18px;
                font-size: clamp(15px, calc(13.588px + 0.353vw), 18px);
                margin-bottom: .25rem;
                /* color: var(--color-primary); */
            }

            h3:first-of-type {
                margin: 0 0 2rem;
                font-size: 22px;
                font-size: clamp(18px, calc(16.118px + 0.471vw), 22px);
            }

            h3 {
                font-size: 18px;
                font-size: clamp(15px, calc(13.588px + 0.353vw), 18px);
                margin-top: 2rem;
                margin-bottom: .25rem;
            }

            .bild {
                position: relative;
                top: -7rem;
                width: 100%;

                img {
                    width: 100%;
                }
            }

            img {
                box-shadow: 0px 0px 17px 0px #0000001A;
            }

            .buttonlike {
                margin-top: 2rem;
            }

        }
    }

    &.--small {
        max-width: var(--size-medium);

        .wrapper {
            .inner {
                max-width: var(--size-small);
            }
        }
    }
}


section:has(.bbb_info.--small) {
    margin-bottom: 0;
}

section:has(.bbb_info.--small) + section:has(.bbb_auflistung) {
    margin-top: 0;
    margin-bottom: calc( 1.5 * var(--spacing) );
}



.bbb_info.single {


    .wrapper {

        background-color: transparent;
        position: relative;

        &::after {
            content: '';
            display: block;
            width: 100%;
            height: calc(100% - 5rem);
            background-color: #e3edf6;
            position: absolute;
            top: 0;
            left: 0;
            z-index: -1;
        }
    }

    .inner {
        padding-top: 4rem;
    }
}

.bbb_info.multiple {

    .content {
        margin-bottom: 14rem;
    }

    .wrapper {

        background-color: transparent;
        position: relative;

        &::after {
            content: '';
            display: block;
            width: 100%;
            height: calc(100% - 7rem);
            background-color: #e3edf6;
            position: absolute;
            top: 0;
            left: 0;
            z-index: -1;
        }

        .inner {

            display: grid;
            grid-template-columns: 1fr 1fr 1fr;

            .info_item {
                position: relative;
                top: -10rem;



                h3 {
                    margin: 2rem 0 1rem;
                    font-size: 22px;
                    font-size: clamp(18px, calc(16.118px + 0.471vw), 22px);
                    color: var(--color-primary);
                }

                .button {
                    margin-top: 2rem;
                }

            }
        }
    }
}

@media only screen and (max-width: 749px) {

    .bbb_info.multiple .content {
        margin-bottom: 0;
    }

    .bbb_info.multiple .wrapper {
        margin-top: 4rem;
    }

    .bbb_info.multiple .wrapper::after {
        display: none;
    }

    .bbb_info.multiple .wrapper .inner {
        grid-template-columns: 1fr;
        gap: 7rem;
    }

    .bbb_info.multiple .wrapper .inner img {
        width: 60%;
        max-width: 280px;
        margin: 0 auto;
    }

    .bbb_info.multiple .wrapper .inner .info_item {
        padding: 0 1rem 0;
        top: 0;
        text-align: center;
    }

    .bbb_info.multiple .wrapper .inner .info_item > * {
        top: -3rem;
        position: relative;
    }

    .bbb_info.multiple .info_item::after {
        content: '';
        display: block;
        width: 100%;
        height: 100%;
        /* height: calc(100% - 7rem); */
        background-color: #e3edf6;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }

}

@media only screen and (max-width: 899px) {

    .bbb_info.single .wrapper::after {
        height: 100%;
    }

}


@media only screen and (max-width: 449px) {

    .bbb_info.single .wrapper .inner {
        display: block;
    }

    .bbb_info.single .wrapper .inner img {
        width: 60%;
        margin: 0 auto;
    }

    .bbb_info.single .wrapper .inner .info_content {
        top: -3rem;
        position: relative;
    }
}



.bbb_hero.hero {

    background-position: center top;
    background-image: url('images/bags-background.png');
    background-repeat: no-repeat;
    background-size: auto;
    text-align: center;
    padding: 0 1rem;

    .content {
        max-width: var(--size-small);
        margin: 0 auto;
        padding-top: 5rem;

        h1 {
            margin-bottom: 1rem;
            font-size: clamp(20px, 3.3vw, 40px);
            font-size: clamp(20px, calc(10.588px + 2.353vw), 40px);
            font-weight: 700;
            line-height: 1.3;
        }
    }


    .hero_jump_wrapper {
        position: relative;
        max-width: var(--size-medium);
        margin: 0 auto;
        display: grid;
        grid-column-gap: 2rem;
        grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
        grid-row-gap: 2rem;
        top: 5rem;

        & > * {
            background-color: var(--color-primary);
            border-radius: 13px;
            color: #fff;
            text-decoration: none;
            transition: background-color 0.3s ease;
            padding: 2em 1.5em 4em 1.5em;
            position: relative;
            font-size: clamp(13px, calc(11.588px + 0.353vw), 16px);
        }

        & > *:hover {
            background-color: #025397;
        }

        & > *:active {
            color: #fff;
            background-color: #004680;
        }

        &  > *::before {
            content: '';
            position: absolute;
            bottom: 1rem;
            width: .8em;
            height: .8em;
            transform: translateY(-50%);
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath fill='%23FFF' fill-rule='nonzero' d='M.293.293A1 1 0 0 1 1.613.21l.094.083L6 4.585 10.293.293a1 1 0 0 1 1.32-.083l.094.083a1 1 0 0 1 .083 1.32l-.083.094-5 5a1 1 0 0 1-1.32.083l-.094-.083-5-5a1 1 0 0 1 0-1.414Z'/%3E%3C/svg%3E") no-repeat center;
            background-size: contain;
            transition: transform 0.3s ease;
        }

        & > *:hover::before {
          transform: translateY(0%);
        }

        h2 {
            font-size: 22px;
            font-size: clamp(18px, calc(16.118px + 0.471vw), 22px);
            font-weight: 700;
            text-transform: none;
            margin-bottom: 1rem;
            color: #fff;
        }
    }

}



.bbb_hero.toc {

    max-width: var(--size-medium);

    .content {
        color: var(--color-primary);
        margin-bottom: 3rem;

        h1 {
            margin-bottom: .25rem;
        }
        .txt {
            max-width: 660px;
        }
    }

    .toc_wrapper {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 2rem 2rem;
        gap: 5rem;
        gap: clamp(16px, calc(-14.118px + 7.529vw), 80px);

        &::before {
            content: '';
            display: block;
            background-color: var(--color-secondary);
            position: absolute;
            width: 100%;
            height: 100%;
            z-index: -1;
            right: 0;
            top: 0;
        }

        &.contact {
            display: flex;
            align-items: center;

            h2 {
                font-size: 24px;
                font-size: clamp(16px, calc(12.235px + 0.941vw), 24px);
            }
        }

        figure {
            align-self: center;
            position: relative;
            max-width: 425px;
            max-width: clamp(210px, calc(108.824px + 25.294vw), 425px);
            aspect-ratio: 1;
            margin-bottom: -1rem;

            img {
                object-fit: cover;
                height: 100%;

                position: relative;
                top: -2rem;
            }

            &:has(iframe) { width: 60%;}

            iframe {
                width: 100%;
                height: 100%;
                aspect-ratio: 1;

                & + small { display: none; }
            }
        }

        .toc_nav {
            align-self: center;
        }

        .toc {
            font-size: 24px;
            font-size: clamp(16px, calc(12.235px + 0.941vw), 24px);
            color: var(--color-primary);
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            gap: clamp(16px, calc(12.235px + 0.941vw), 24px);

            li {
                position: relative;
                padding-left: 1.6em;
                width: fit-content;

                &::before {
                    content: '';
                    position: absolute;
                    left: 0;
                    top: 50%;
                    width: .6em;
                    height: .6em;
                    transform: translateY(-50%);
                    /* background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath fill='%23005ca9' fill-rule='nonzero' d='M.293.293A1 1 0 0 1 1.613.21l.094.083L6 4.585 10.293.293a1 1 0 0 1 1.32-.083l.094.083a1 1 0 0 1 .083 1.32l-.083.094-5 5a1 1 0 0 1-1.32.083l-.094-.083-5-5a1 1 0 0 1 0-1.414Z'/%3E%3C/svg%3E") no-repeat center; */
                    /* background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='35'%20height='35'%3E%3Ccircle%20cx='17.5'%20cy='17.5'%20r='16.75'%20fill='none'%20fill-rule='evenodd'%20stroke='%23005CA9'%20stroke-width='1.5'%20transform='rotate(-90%2017.5%2017.5)'/%3E%3C/svg%3E"); */
                    background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%3E%3Cpath%20fill='%23005CA9'%20fill-rule='evenodd'%20d='M6.502.983v9.621L2.086%206.188.982%207.292%207.291%2013.6%2013.6%207.292l-1.104-1.104-4.416%204.416V.983z'/%3E%3C/svg%3E");

                    background-size: 55%;
                    background-position: center;
                    background-repeat: no-repeat;

                    border: 1.5px solid;
                    padding: 0.5em;
                    border-radius: 50%;

                    transition: background-position-y 0.2s ease;

                    /* animation-name: zwosch;
                    animation-duration: 0.8s;
                    animation-iteration-count: 1;
                    animation-fill-mode: forwards;
                    animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1); */
                }

                &:hover {
                    color: var(--color-primary-light);
                }

                &:hover::before {
                  /* transform: translateY(-20%); */
                  background-position-y: 8px;
                }
            }
        }
    }
}


@media only screen and (min-width: 600px) {

    .bbb_hero.toc {


        .toc_wrapper {

            flex-direction: row;
            padding: 2rem 2rem 2rem 0;

            &::before {
                width: 90%;
            }

            figure {
                align-self: auto;
                position: none;
                margin-bottom: 0;

                img {
                    position: none;
                    top: auto;
                }
            }
        }

    }

}


.pagination {
    max-width: var(--size-medium);
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;

    .page-numbers {
        background-color: white;
        border-radius: 50%;
        aspect-ratio: 1;
        width: 1.75rem;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color .15s ease;

        &:hover {
            background-color: #E3EDF6;
        }

        &.current {
            color: #fff;
            background-color: var(--color-primary);
        }
    }

}

.bbb_element.search {
    max-width: var(--size-medium);

    .content {
        margin: 0 auto 2rem;
        /* max-width: var(--size-small);
        text-align: center; */
    }

}

.home .bbb_element.search {

    .content {
        margin: 0 auto 2rem;
        max-width: var(--size-small);
        text-align: center;
    }

}


.nothing {

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2em;

    p {
        border: 1px dashed var(--color-primary);
        border-radius: 0.8rem;
        padding: 1rem 4rem;
    }
}


.bbb_element.filter {
    max-width: var(--size-medium);

    .content {
        margin: 0 auto 2rem;
        /* max-width: var(--size-small); */
    }

}


.bbb_element.newsletter {
    max-width: var(--size-medium);
    background-color: var(--color-secondary);
    border-radius: 13px;
    padding: 2rem 3rem;
    gap: 1.5em;

    display: grid;
    align-items: center;

    .text {
        font-size: 27px;
        font-size: clamp(17px, calc(11.824px + 1.294vw), 28px);
        color: var(--color-primary);
        line-height: 1.48;

        strong {
            font-weight: 700;
        }
    }

    .text + div {
        display: flex;
        justify-content: center;
    }

    .button {
        display: flex;
        justify-self: end;
        /* margin-right: 12%; */
    }

}

@media only screen and (min-width: 600px) {

    .bbb_element.newsletter {
        padding: 3rem 4rem;
        grid-template-columns: 1fr 1fr;
    }

}


.bbb_galerie {
    max-width: var(--size-small);


    .slider_wrapper {
        position: relative;

        figure {
            text-align: center;
            img {
                display: inline-block;
            }
            figcaption {
                max-width: 80%;
                margin: 1rem auto 0;
            }

        }

        .arrow {
            top: 50%;
            transform: translateY(-50%);

            &.next {
                right: -1rem;
            }
            &.prev {
                left: -1rem;
                transform: translateY(-50%) rotate(-180deg);

            }
        }
    }



    .galerie.--gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
        gap: 1.5rem;
    }

}


@media only screen and (min-width: 900px) {

    .bbb_galerie {

        .slider_wrapper {
            .arrow {

                &.next {
                    right: -4rem;
                }
                &.prev {
                    left: -4rem;
                }
            }
        }

    }

}


.bbb_galerie.logos {

    .galerie {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
        gap: 2rem;

        &.--logos {

            grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
            grid-row-gap: 3.5rem;

            figure {
                overflow: visible;
                padding: .8rem 0;
                /* display: flex;
                justify-content: center;
                align-items: center; */
                height: 100%;

                img {
                    display: block;
                    max-width: 100%;
                    width: 200px;
                    height: 50px;
                    object-fit: contain;
                    object-position: left;
                }
            }

            figcaption {
                margin-top: 1rem;
            }
        }
    }
}




.bbb_text {
    max-width: var(--size-small);

    .flex {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-wrap: wrap;
        font-size: clamp(13px, calc(11.588px + 0.353vw), 16px);
        gap: 1.5rem;
    }

    &.--center {
        text-align: center;

        form {
            text-align: left;
        }
    }
}


@media only screen and (min-width: 600px) {

    .bbb_text {
        .flex {
            flex-direction: row;
        }
    }

}

.bbb_text.paragraph {

    .buttonlike {
        color: #fff;
        font-weight: 400;
        &:hover {
            text-decoration: none;
            &::after {
                display: none;
            }
        }
    }

    h2 {
        font-size: 30px;
        font-size: clamp(18px, calc(12.353px + 1.412vw), 30px);
    }

    h3 {
        font-size: clamp(16px, calc(12.235px + 0.941vw), 24px);
    }
}



@media only screen and (min-width: 900px) {

    section:has(> .bbb_text.paragraph:first-child .button.bestellen) {
        margin-top: calc(-1 * var(--spacing));
    }

}



section:has(.bbb_info.multiple) {
    margin-bottom: calc(-1 * var(--spacing));
}

.bbb_text.banner {
    max-width: var(--size-medium);
    background-color: var(--color-secondary);
    border-radius: 13px;
    /* padding: 4rem 0 3.5rem; */
    padding: 2.5rem 2rem 2.5rem;

    & > * {
        max-width: var(--size-small);
        margin: 0 auto;
    }

    h2 {
        margin-bottom: 1.5rem;
    }
}


@media only screen and (min-width: 600px) {

    .bbb_text.banner {
        padding: 3.5rem 3rem 3.5rem;
    }
}

.bbb_text.banner:has(form) {
    padding: 4rem var(--spacing) 3.5rem;
}


.cr_form {
    .cr_ipe_item {
        margin: 0;
        padding: 0;
    }

    .cr_form-component--email {
        /* display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
        "col1 col2"
        "col3 col3";
        gap: 1rem;

        & > div:nth-child(1) { grid-area: col1; }
        & > div:nth-child(3) { grid-area: col2; }
        & > div:nth-child(2) { grid-area: col3; } */
    }
}



@media only screen and (min-width: 600px) {

    .cr_form {

        .cr_form-component--email {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-areas:
            "col1 col2"
            "col3 col3";
            gap: 1rem;

            & > div:nth-child(1) { grid-area: col1; }
            & > div:nth-child(3) { grid-area: col2; }
            & > div:nth-child(2) { grid-area: col3; }
        }
    }

}


.swpm-partial-protection-icon,
.swpm-partial-protection-msg + .swpm-login-widget-form { display: none; }

.swpm-partial-protection-msg,
.swpm-partial-protection,
.swpm-partial-protection-text { display: contents !important; }

.swpm-partial-protection-text .bbb_hero { margin: 0 auto; }

.swpm-pw-reset-widget-form,
.swpm-login-widget-form {

    input[type="text"], input[type="password"] {
        background: none repeat scroll 0 0 #ffffff;
        border-radius: 3px;
        border: 1px solid #ccc;
        padding: 12px;
        width: 100%;
    }

    a {
        display: inline-block;
        color: var(--color-primary);
        text-decoration: underline;
        padding-bottom: .5em;
        &:hover {
            /* color:  */
        }
    }
    input[type="submit"] {
        border: none;
        cursor: pointer;
        width: 100%;
        margin: 1rem 0;
    }
}


.wpcf7 {
    input[type="text"], input[type="number"], input[type="email"], textarea {
        background: none repeat scroll 0 0 #ffffff;
        border-radius: 3px;
        border: 1px solid transparent;
        padding: 12px;
        width: 100%;
    }

    ::placeholder {
        color: #A8B3BC;
    }

    .center {
        display: flex;
        justify-content: center;
        flex-direction: column;
        margin: 3rem 0 -1rem;
        align-items: center;
    }

    .wpcf7-list-item-label a {
        margin-top: 0 !important;
        text-indent: initial;
    }


    .select {
       background: none repeat scroll 0 0 #ffffff;
       border-radius: 3px;
       border: 1px solid transparent;

       width: 100%;
       position: relative;

   }

    .select::after {
        content: "";
        width: 0.8em;
        height: 0.5em;
        background-color: black;
        clip-path: polygon(100% 0%, 0 0%, 50% 100%);
        display: block;

        justify-self: end;
        align-self: center;
        top: 14px;
        right: 10px;
        position: absolute;
        pointer-events: none;
    }

    .select select {
        appearance: none;
        background-color: transparent;
        border: none;
        margin: 0;
        width: 100%;
        font-family: inherit;
        font-size: inherit;
        cursor: inherit;
        line-height: 1.03;
        outline: none;
        color: var(--color-text);
        padding: 12px 38px 12px 12px;
    }

    .wpcf7-list-item {
        margin: 1em 0 0 0em;
        text-indent: -16px;
    }

    hr {
        margin: 1em 0 .5em;
    }

}


.search-form {
    display: grid;
    gap: 1rem;
    background: #E3EDF6;
    padding: 2rem 1.5rem;
    border-radius: 0.8rem;
    /* max-width: 800px; */
    margin: auto;

    .search-row {
        display: grid;
        gap: 1rem;
    }



    input, select, button {
        color: var(--color-text);
        padding: 0.75rem;
        font-size: 14px;
        border: 1px solid #fff;
        border-radius: 0.2rem;
    }

    input, select {
        width: 100%;
        box-sizing: border-box;
    }

    select {
        appearance: none;
        -webkit-appearance: none;
        padding-right: 2rem;

        &:has(option:disabled:checked) {
            color: #A8B3BC;  /* or any color you want */
        }
    }

    /* select:hover,
    input:hover {
        border-color: #b3cce2;
    } */

    .select {
        position: relative;

        &::before {
            content: '';
            display: block;
            width: 10px;
            height: 5px;
            background-size: contain;
            background-repeat: no-repeat;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 5 5 5-5'/%3E%3C/svg%3E");

            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
        }

        .select-clear {
  position: absolute;
  right: 35px; /* Adjust based on your dropdown arrow width */
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;

  /* &::before {
      content: 'x';
  } */
}

.select-clear::before,
.select-clear::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background-color: #666;
  transition: background-color 0.2s ease;
}

.select-clear::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.select-clear::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.select-clear:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #333;
}

.select-clear:active {
  transform: translateY(-50%) scale(0.95);
}
    }


    input::placeholder {
        color: #A8B3BC;
    }

    button[type="submit"] {
        background: var(--color-primary);
        color: #fff;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        /* aspect-ratio: 6/5; */
        background-image: url('images/search.svg');
        background-repeat: no-repeat;
        background-size: 1rem;
        background-position: center;
    }

}



/* Responsive */

@media only screen and (min-width: 600px) {

    .search-form {

        .search-row {

            &.row2 {
                grid-template-columns: 1fr 1fr auto;
            }
        }

        &.filter .search-row {
            grid-template-columns: 1fr 1fr 1fr auto;
        }

        button {
            aspect-ratio: 6/5;
        }

    }


}

@media only screen and (min-width: 770px) {

    nav#nav_top > ul {
        justify-content: flex-end;
    }



    header section .wrapper {
        flex-direction: row;
        justify-content: space-between;
        /* align-items: end; */

        #trigger {
            display: none;
        }
    }


    #nav_header {
        width: auto;
    }

    #menu_header {

        flex-direction: row;
        gap: clamp(30px, 3vw, 40px);

        li {
            position: relative;

            a {
                padding-bottom: .4rem;
                border-bottom: 3px solid transparent;
                transition: border-color .15s ease;

                &:only-child:hover {
                    border-color: var(--color-primary);
                }
            }
        }

        li:has(ul) .sub-menu {
            position: absolute;
            background-color: var(--color-primary);
            color: #fff;
            left: 0;
            top: 100% ;
            margin-left: -1px;
            padding-left: 0;
            font-weight: normal;
            box-shadow: 0 2px 12px 4px rgba(205, 205, 205, .5);
            z-index: 555;
            display: none;


            a {
                font-weight: 400;
                padding: .5rem 1.5rem;
                display: inline-block;
                width: 100%;

                &:hover {
                    text-decoration: underline;
                    text-underline-position: under;
                }
            }

            li:first-of-type a {
                padding-top: 1.5rem;
            }

            li:last-of-type a {
                padding-bottom: 1.5rem;
            }

        }
        li:has(ul):hover .sub-menu {
            display: inline-block;


        }

        li:last-child:has(ul):hover .sub-menu {
            left: auto;
            right: 0;
        }


        li:has(.sub-menu) > a:before {
            display: none;
        }

    }


}


@media only screen and (max-width: 769px) {

    header section .wrapper {
        position: relative;
    }

    #trigger {
        position: absolute;
        right: 0;
        top: 0;
    }

    footer .newsletter .wrapper {
        flex-direction: column;
        justify-content: space-evenly;
    }

    footer .navigation .wrapper {
        flex-direction: column;
    }

    footer .bottom .wrapper {
        flex-direction: column;
        gap:1rem;
    }

    footer .logos .wrapper {
        gap: 6rem;
    }

    footer .logos .galerie.--logos {
        flex-direction: column;
        gap: .75rem;
    }

    footer .logos .galerie.--logos figure {
        padding-top: 0;
    }

    footer .logos .galerie.--logos figure img {
        object-position: left;
    }

}

@media only screen and (max-width: 440px) {

    #nav_footer_3 ul {
        columns: 1;
    }

    footer .bottom .wrapper .copy {
        max-width: 280px;
        line-height: 1.5;
    }

    footer .logos .wrapper {
        gap: 4rem;
    }

    footer .logos .partner img {
        max-width: 120px;
    }
}


@media only screen and (max-width: 350px) {

    #nav_bottom ul {
        flex-direction: column;
        gap: .75rem;
    }
}
