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

html {
    line-height: 1.25;
    -webkit-text-size-adjust: 100%;
    color-scheme: light;
}

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;
}



.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: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;
}

/* FONTS */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('vendor/inter-v19-latin-regular.woff2') format('woff2');
}

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





/* TOKENS (scoped) */
html {

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

    --unit-margin: .5rem;
    --unit-radius: 10px;
    --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: #333;
    --color-primary: #1770c0;
    --color-secondary: #FFB511;

    --color-green: #238b2f;

    --header-heigth: 80px;
}

main {


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

form {
    /* FORM */
    --form-padding: 0;
    --form-border: none;
    --form-border-radius: calc( var(--unit-radius) * 2.2 );
    --form-background: transparent;
    --form-box-shadow: none;


    .entity {

        /* INPUT FIELDS */
        --input-background: #fbfbfb;
        --input-background-hover: #fff;
        --input-border: var(--border-width) solid var(--border-color);
        --input-padding: .5rem 2rem .5rem 1rem;
        --input-placeholder-color: silver;

        /* ENTITY */
        --entity-margin: 0 0 calc( var(--unit-margin) * 3) 0;
    }

    .select {
        --select-arrow: #666;
        --select-background: #fff;
        --select-border: #ccc;
        --select-border-hover: #999;
    }

    .progress {
        --progress-color: var(--color-primary);
        --progress-height: 8px;
        --progress-border-radius: 0;
        --progress-padding: 0;
    }


}

/* Dark Theme */
html[data-theme="dark"] {
    color-scheme: dark;
    --form-background-color: #666;


    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;


    --color-text: #fff;

}




/* BASE ELEMENTS */
html {
    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 {

    top: 0;
    width: 100%;
    height: var(--header-heigth);
    position: sticky;
    background-color: #fff;
    z-index: 100;

    background: rgba(255, 255, 255, 0.39);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.5px);
    -webkit-backdrop-filter: blur(7.5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.56);

    #nav_top {
        display: none;
    }

    section {
        height: 100%;
        padding-left: var(--spacing-save);
        padding-right: var(--spacing-save);
        padding-top: .5rem;
        padding-bottom: .5rem;

        & * {
            height: 100%;
        }

        .wrapper {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            align-items: start;
            padding-left: var(--spacing-save);
            padding-right: var(--spacing-save);

            a:has(.logo) {
                margin-right: auto;
            }

            a:not(:has(figure)) {
                color: #0B3041;
                &:hover {
                    text-decoration: underline;
                }
            }

            .textlogo {
                margin-left: 2rem;
            }
            .logo {
                line-height: 0;
                width: auto;
                height: 90%;
                opacity: 1;
                transition: opacity .15s ease;

                &:hover {
                    opacity: .8;
                }
            }
            img {
                object-fit: contain;
            }
        }

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

}


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

    header {
        #nav_top {
            display: block;
        }
    }

}


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-weight: 600;
            color: var(--color-primary);
        }

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

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

        h3 {
            font-size: 24px;
            font-size: clamp(16px, calc(12px + 1vw), 24px);
            color: var(--color-primary);
            margin-bottom: 3rem;
        }

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

        strong {
            font-weight: 600;
        }

        .button {
            color: inherit;
            display: inline-block;
            background-color: var(--color-primary);
            border: 1px solid #4396e1;
            padding: .6em 1.2em;
            border-radius: 50px;
            transition: background-color .25s ease;
            font-size: clamp(14px, calc(12px + 0.5vw), 18px);
            letter-spacing: .5px;
            text-align: center;


            &:hover {
                background-color: #0B3041;
            }
        }

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

        .bbb_text.banner {
            max-width: var(--size-medium);
            background-color: var(--color-secondary);
            border-radius: 13px;
            padding: 3rem 4rem;

            /* h2 {
                margin-bottom: 1.5rem;
            } */
        }


    }

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



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

}



footer {

    /* background-color: #1a202c; */
    background-color: #073157;

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

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

            /* align-items: end; */

            width: 100%;
            max-width: var(--size-outline);
            margin: 0 auto;
            padding-bottom: var(--spacing-save);

            .logo {
                width: clamp(170px, calc(105px + 16.25vw), 300px);
            }

            a:hover {
                text-decoration: underline;
            }
        }

    }

}


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

    footer {


        section {


            .wrapper {
                display: flex;
                justify-content: space-between;
                align-items: end;
                flex-direction: row;
            }
        }
    }

}


/* LAYOUT */


section:has(.hero) {
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
}


.bbb_galerie.hero {
    max-width: none;
    position: relative;

    figure {
        position: relative;

        .textlogo {
            position: absolute;
            width: 100%;
            max-width: calc(var(--size-outline) + (2 * var(--spacing-save)));
            left: 50%;
            transform: translateX(-50%);
            padding-left: var(--spacing-save);
            padding-right: var(--spacing-save);
            display: flex;
            justify-content: end;

            img {
                width: 15rem;
                width: clamp(120px, calc(60px + 15vw), 240px);
                margin-top: 2rem;
            }
        }

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

        figcaption {
            max-width: calc( 100% - var(--spacing-save) );
            transform: translateX(-50%);
            position: absolute;

            margin-left: var(--spacing-save);
            margin-right: var(--spacing-save);

            bottom: 5rem;
            color: #fff;
            font-weight: 600;
            width: 100%;
            margin: 0 auto;
            left: 50%;

            /* text-shadow: -1px -2px 20px #555555; */



            /* glass */

            background: rgba(230, 230, 230, 0.39);
            border-radius: 16px;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(7.5px);
            -webkit-backdrop-filter: blur(7.5px);
            border: 1px solid rgba(230, 230, 230, 0.56);

            padding: 2em 3em;


            .title {
                font-size: 36px;
                font-size: clamp(20px, calc(12px + 2vw), 36px);
                font-size: clamp(18px, calc(10px + 2vw), 34px);
                margin-bottom: .5rem;

                --accent: #1770c0;
                --accent-2: #0B3041;
                background: linear-gradient(90deg, var(--accent), var(--accent-2));
                background-clip: text;
                color: transparent;

                &.white {
                    color: #fff;
                    text-shadow: 0px 0px 2px rgb(0 0 0 / 35%);
                }

                /* &.white .highlight {
                    color: #fff;
                } */

                .highlight {
                    color: #0B3041;
                }



                strong {
                    display: block;
                    font-size: 68px;
                    font-size: clamp(34px, calc(17px + 4.25vw), 68px);
                    font-size: clamp(24px, calc(12px + 3vw), 48px);
                }

                .dot {
                    color: var(--color-green);
                }
            }

            .caption {


                text-shadow: 0px 0px 2px rgb(0 0 0 / 35%);
                font-size: 28px;
                font-size: clamp(16px, calc(10px + 1.5vw), 28px);
                font-size: clamp(15px, calc(10.5px + 1.125vw), 24px);
            }

            .button {
                margin-top: 1.4em;

            }
        }



        &.speech {
            figcaption {
                /* position: absolute; */
                /* width: 45%; */
                /* left: auto; */
                /* transform: translateY(-50%); */
                /* right: 0; */
                /* top: 50%; */
                /* bottom: auto; */

                border-bottom-right-radius: 0;
                border-top-right-radius: 0;
                background: rgb(255 255 255 / 60%);

                &:before {
                    content: '';
                    display: block;
                    position: absolute;
                    transform: rotate(90deg);
                    background: #e8f0f9;
                    /* top: 15%;
                    right: 100%; */

                    top: -25px;
                    left: 5rem;
                    right: auto;
                    /* border: 20px solid transparent; */
                    /* border-left-color: #fff; /* same as background */

                    width: 20px;             /* tail width  */
                    height: 30px;            /* tail height */
                    /* background: inherit;  */   /* same translucent bg */
                    backdrop-filter: inherit;
                    border: 1px solid rgba(230, 230, 230, 0.56);
                    -webkit-backdrop-filter: inherit;
                    clip-path: polygon(0 50%, 100% 0, 100% 100%); /* triangle */
                    /* background: rgba(230, 230, 230, 0.39);
                    border-radius: 16px;
                    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
                    backdrop-filter: blur(7.5px);
                    -webkit-backdrop-filter: blur(7.5px); */
                    /* border: 1px solid rgba(230, 230, 230, 0.56); */
                }
            }

            .caption {
                color: var(--color-primary);
                text-shadow: none;
            }

            .title {
                line-height: 1.125;
                margin-bottom: 1.6rem;

                font-weight: 600;
                font-size: 36px;
                font-size: clamp(20px, calc(12px + 2vw), 36px);
                font-size: clamp(18px, calc(10px + 2vw), 34px);
                /* margin-bottom: .5rem; */

                --accent: #1770c0;
                --accent-2: #0B3041;
                background: linear-gradient(90deg, var(--accent), var(--accent-2));
                background-clip: text;
                color: transparent;

                &.white {
                    color: #fff;
                    text-shadow: 0px 0px 2px rgb(0 0 0 / 35%);
                }

                /* &.white .highlight {
                    color: #fff;
                } */

                .highlight {
                    color: #0B3041;
                }



                strong {
                    display: block;
                    font-size: 68px;
                    font-size: clamp(34px, calc(17px + 4.25vw), 68px);
                    font-size: clamp(24px, calc(12px + 3vw), 48px);
                }

                .dot {
                    color: var(--color-green);
                }


                }

                .button {
                    /* margin-top: 1.25rem; */
                    /* margin-left: 3rem; */
                    color: #fff;
                    font-weight: 600;
                }

        }
    }


    &.cover {
        figure {
            position: relative;
            /* height: calc( 100vh - var(--header-heigth) ); */
            height: 100vh;
        }
    }


    [data-crunch-items] {

        position: relative;

        figure {
            opacity: 0;
            transition: opacity .65s ease
        }

        figure:not(:first-child) {
            position: absolute;
            top: 0;
            left: 0
        }

        figure.active {
            opacity: 1;
            z-index: 1
        }

        &[data-crunch-counter] {

            .dots {
                z-index: 10;
                width: 100%;
                left: 50%;
                top: 1.8rem;
                justify-content: flex-start;
                gap: .4rem
            }
        }
    }


    .arrow {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        border: 0; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer;
        width: 1.5em;
        height: 1.5em;
        background-image: url('images/arrow.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 10;

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


.bbb_galerie.hero:not(.cover) {

    figure {
        figcaption {
            left: auto;
            bottom: auto;
            position: relative;
            transform: none;
            margin: 0;
            max-width: 100%;
            background-color: #1670c01a;
            padding: 1.8em 2em;

            .caption {
                color: var(--color-primary);
                text-shadow: none;
            }
        }
    }
}

main section:first-of-type {
    margin-top: -80px;
}

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


    .bbb_galerie.hero:not(.cover) {
        figure {
            figcaption {
                max-width: calc( var(--size-medium) + ( 2 * var(--spacing-save) ) );
                transform: translateX(-50%);
                position: absolute;

                margin-left: var(--spacing-save);
                margin-right: var(--spacing-save);

                bottom: 5rem;
                color: #fff;
                font-weight: 600;
                width: 100%;
                margin: 0 auto;
                left: 50%;

                background: rgba(230, 230, 230, 0.39);
                border-radius: 16px;
                box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
                papadding: 2em 3em;

                .caption {
                    text-shadow: 0px 0px 2px rgb(0 0 0 / 35%);
                    color: #fff;
                }
            }

            &.speech {
                figcaption {
                    position: absolute;
                    width: 45%;
                    left: auto;
                    transform: translateY(-50%);
                    right: 0;
                    top: 50%;
                    bottom: auto;

                    &:before {
                        top: 15%;
                        right: 100%;
                        left: auto;
                        transform: none;
                        background: inherit;     /* same translucent bg */
                    }

                    .caption {
                        text-shadow: none;
                        color: var(--color-primary);
                    }
                }
            }
        }
    }
}


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

    .bbb_galerie.hero {

        figure {
            figcaption {
                max-width: calc( var(--size-medium) + ( 2 * var(--spacing-save) ) );

                .title {
                    font-size: 36px;
                    font-size: clamp(20px, calc(12px + 2vw), 36px);
                    margin-bottom: .5rem;

                    strong {
                        display: inline-block;
                    }
                }
            }
        }
    }
}


[data-crunch-counter] + .dots {
        max-width: calc(var(--size-outline) + (2 * var(--spacing-save)));
        transform: translateX(-50%);
        position: absolute;
        z-index: 10;
        width: 100%;
        left: 50%;
        bottom: 1.8rem;
        display: flex;
        /* flex-direction: column; */
        justify-content: center;
        gap: .4rem;
        padding-left: var(--spacing-save);
        padding-right: var(--spacing-save);

        .dot {
            background-color: white;
            display: inline-block;
            width: .85rem;
            height: .85rem;
            border-radius: 50%;
            color: #000;
            margin: 2px;
            cursor: pointer;
            opacity: .6;


            &.active {
                background-color: var(--color-green);
                color: #fff;
                opacity: 1
            }

            &:focus,.dot:hover {
                opacity: 1
            }
        }
}


main section:first-child:has(.bbb_text.paragraph) {
    margin-top: 5rem;
}


.bbb_text:not(.dark) {
    h2 {
        color: #0B3041;
    }
}

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

    h1 {
        margin-bottom: 1.8rem;
    }

    h2 {
        font-size: clamp(16px, calc(10px + 1.5vw), 28px);
        margin-top: 2.8rem;
        margin-bottom: 1.6rem;
    }
}


.bbb_text.intro {
    max-width: var(--size-medium);
    text-align: center;

    h2 {
        font-size: 48px;
        font-size: clamp(24px, calc(12px + 3vw), 48px);
        margin-bottom: .8rem;
    }



    .txt {
        max-width: var(--size-small);
        margin: calc( 2 * var(--spacing-save) ) auto;
        font-size: 1.25rem;
        line-height: 1.35;
        font-weight: bold;
        color: var(--color-primary);


    }

    &.dark .txt {
        color: #fff;
    }

    &.dark.frame .txt {
        background-color: #1670c0; /* #273146; */
    }

    &.frame .txt {
        background-color: #ecf6ff;
        border-radius: 16px;
        padding: 1.5em 1em;
        line-height: 1.45;
    }

    &.small .txt {
        font-size: clamp(16px, calc(12px + 1vw), 24px);
    }

    &.medium .txt {
        max-width: var(--size-medium);
        font-size: clamp(18px, calc(10px + 2vw), 34px);
    }

    &.large .txt {
        max-width: var(--size-medium);
        font-size: clamp(24px, calc(12px + 3vw), 48px);
    }

}

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

    .bbb_text.intro {
        .txt {
            margin: calc( 4 * var(--spacing-save) ) auto;
        }
    }

}


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

    .bbb_text.intro {
        .txt {
            margin: calc( 7 * var(--spacing-save) ) auto;
        }

        &.frame .txt {
            padding: 1.5em 2em;
        }
    }

}



.bbb_spalten.accordeon {

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

    .wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;

        details {
            background: #1670c01a;
            backdrop-filter: blur(10px);
            /* margin-bottom: 1rem; */
            border-radius: 15px;
            border: 1px solid var(--glass-border);
            overflow: hidden;
            transition: all 0.3s ease;
        }

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

        summary {
            padding: 1.5rem;
            cursor: pointer;
            font-weight: 600;
            font-size: 1.1rem;
            list-style: none;
            transition: all 0.3s ease;
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            color: var(--color-primary);
        }

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

        summary::after {
            content: '+';
            font-size: 1.5rem;
        }

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

        details p {
            padding: 0 1.5rem 1.5rem;
            color: var(--text-secondary);
            color: #4c4c4c;
            line-height: 1.4;
        }


    }
}



.--glass {
    background: rgba(230, 230, 230, 0.39);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.5px);
    -webkit-backdrop-filter: blur(7.5px);
    border: 1px solid rgba(230, 230, 230, 0.56);
}


section:has(figure.background) {

    position: relative;
    margin: calc( -1 * ( var(--spacing) / 2 ) ) 0;
    padding-top: var(--spacing);
    padding-bottom: var(--spacing);

    .background {
        position: absolute;
        max-width: none;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

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


.bbb_spalten.cards {

    .wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;


        & > div {
            /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */

            display: flex;
            flex-direction: column;
            border-radius: 16px;

            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
            transition: all 0.25s ease;
            border: 1px solid var(--color-primary);

            /* padding: 1.5rem 2.25rem; */

            &:hover {
                transform: translateY(-4px);
                box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
            }


            h3 {
                /* padding: 1.25rem 1.75rem; */

                background-color: #1670c01a;
                color: var(--color-primary);

                font-weight: 400;
                letter-spacing: .5px;
                /* border-top-left-radius: .5rem;
                border-top-right-radius: .5rem; */
                /* border-radius: .5rem; */
                margin-bottom: 0;
                min-height: 5em;

                display: flex;
                justify-content: center;
                align-items: center;
                text-align: center;

                /* color: #0B3041; */

                /* font-size: clamp(14px, calc(11px + 0.75vw), 20px); */
                font-size: clamp(16px, calc(14px + 0.5vw), 20px);
                font-weight: 600;

                padding: 1.5rem 1.25rem;
                border-bottom: 1px solid rgba(230, 230, 230, 0.56);

                border-bottom-left-radius: 0;
                border-bottom-right-radius: 0;
            }

            .txt {
                flex: 1;
                /* padding: 1.5rem 2.5rem; */
                /* padding-top: 1.5rem; */
                padding: 1.5rem 1.25rem;
                line-height: 1.4;
                /* color: var(--color-primary); */
                color: var(--color-text);

                border-top: none;
                border-top-left-radius: 0;
                border-top-right-radius: 0;
                background-color: #fff;

            }
        }
    }
}


section:has(figure.background) .bbb_spalten.cards {

    .wrapper {


        & > div {

            border: none;

            &:hover {

            }


            h3 {
                color: #fff;
                background-color: rgba(230, 230, 230, 0.39);
            }
            .txt {
                background: rgba(230, 230, 230, 0.75);
            }
        }
    }

}


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

    .bbb_spalten.cards {

        .wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 3rem;

            & > div {

                h3 {
                    padding: 1.5rem 2.25rem;
                }
                .txt {
                    padding: 1.5rem 2.25rem;
                }
            }
        }
    }
}





section:has(.dark) {
    background-color: #073157;
    margin: 0 !important;
    padding-top: 5rem;
    padding-bottom: 5rem;

    h1, h2, h3, .button {
        color: white;
    }

}



.bbb_element {

    h2,h3 {
        max-width: var(--size-medium);
        text-align: center;
        margin: 0 auto;
    }

    video {
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

.bbb_element.ref {

    h2 {
        font-size: 48px;
        font-size: clamp(24px, calc(12px + 3vw), 48px);
        margin-bottom: .8rem;
        color: #0B3041;
    }
}

.bbb_testimonials {

    position: relative;
    z-index: 2;
    margin: 1rem auto 3em;


    .arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        border: 0; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer;
        width: 1.5em;
        height: 1.5em;
        background-image: url('images/arrow.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;

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

    .wrapper {
        max-width: 78%;
        margin: 0 auto;
    }

    .testimonial {


        &::before {
            content: '';
            width: 2.5em;
            height: 5em;
            display: block;
            background-image: url('images/quote.svg');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            position: relative;
            left: 50%;
            transform: translateX(-50%);
        }

        .copy {
            font-size: clamp(14px, calc(12px + 0.5vw), 18px);
            line-height: 1.7;
            color: var(--color-primary);
        }

        .quote {
            font-size: clamp(13px, calc(11.5px + 0.375vw), 16px);
            line-height: 1.43;
            text-transform: uppercase;
            margin-top: 2em;

            .name {
                font-weight: 700;
            }

            img {
                height: 45px;
                max-width: 80%;
                object-fit: contain;
                object-position: left;
                margin-top: 1rem;
            }
        }

    }
}


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

    .bbb_testimonials {

        margin: 6em auto 10em;

        .wrapper {
            max-width: 82%;
        }

        .arrow {
            top: 0;
            transform: none;

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

        .testimonial {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 1.5em;
            gap: 1.75em;

            &::before {
                width: 3.25em;
                top: -.75em;
                left: auto;
                transform: none;
            }
        }
    }

}




dialog {

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100%;

    background: rgba(240, 240, 240, 0.5);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.5px);
    -webkit-backdrop-filter: blur(7.5px);
    border: 1px solid rgba(230, 230, 230, 0.56);

    &::backdrop {
        background-color: rgba(40, 40, 40, 0.5);
        backdrop-filter: blur(3px);
    }
}

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

    dialog {
        width: auto;
    }
}


.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-clip: padding-box;
    border: 1px solid transparent;
    border-radius: 20px;
    outline: 0;

    /* max-height: 100%; */
    max-height: calc( 100vh - 3.5rem);
    overflow: hidden;
}


.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    /* border-bottom: 1px solid #e6e8e9; */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;

    align-items: center;
    min-height: 3.5rem;
    padding: 0 3.5rem 0 1.5rem;
    color: #fff;
    /* box-shadow: 0 4px 14px 1px rgba(0, 0, 0, .1); */
    z-index: 1;
}


.me-auto {
    margin-right: auto !important;
}
.modal-title {
    /* font-family: 'Jost'; */
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3333333;
    margin: 0;
    padding-top: 0.15rem;
}

.modal-content .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0;
    padding: 0;
    z-index: 10;
    opacity: .5;
    transition: opacity .025s ease;
}

.modal-content .btn-close:hover {
    opacity: 1;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;

    scroll-behavior: smooth;
    overflow-y: auto;
}

#modal-body {
    padding: 0 1.5rem;
    scroll-behavior: smooth;
    overflow-y: auto;
}


.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 7px 1.125rem 9px;
    border-top: 0 solid #e6e8e9;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;

    /* box-shadow: 0 -4px 14px 1px rgba(0, 0, 0, .1); */
    z-index: 1;
}

.modal-footer>* {
    margin: .375rem;
}

.modal-footer button {
    line-height: 1;
    color: #fff;

    svg { display: none; }
}



fieldset {
    padding: 0;
	margin: 0;
	border: 0;
}

form textarea {
    height: 9rem;
}

form input,
form textarea {
    padding: 7px 10px;

    background-color: rgba(255,255,255,.1);
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,.7);
    font-weight: 600;
}

form fieldset input,
form fieldset textarea {
    width: 100%;
}



.form--inline fieldset input,
.form--inline textarea {
    position: relative;
	display: block;
    width: 100%;
    /* padding: .4375rem .75rem; */
    padding: .4375rem 1.75rem .4375rem .75rem;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.4285714;
    color: #232e3c;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #dadcde;
    appearance: none;
    border-radius: 4px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out, background-color .15s ease-out;
	z-index: 1;
}

.form--inline fieldset input:hover,
.form--inline textarea:hover {
    /* border: 1px solid var(--color-primary); */
    background-color: #f7f7f7;
}

.form--inline fieldset:disabled,
.form--inline fieldset:disabled + .checkcontainer {
    opacity: .3;
}

.form--inline textarea {
    resize: vertical;
}

:placeholder {
    text-transform: uppercase;

}

label > span {
    display: block;
    font-weight: 600;
    margin-bottom: .5rem;
}


.form--inline fieldset input:not(:focus):not(:placeholder-shown):invalid,
.form--inline textarea:not(:focus):not(:placeholder-shown):invalid {
  border-color: var(--color-red);
}

.form--inline fieldset input:not(:focus):not(:placeholder-shown):invalid ~ .required,
.form--inline textarea:not(:focus):not(:placeholder-shown):invalid ~ .required {
  color: var(--color-red);
}

.form--inline fieldset input:not(:focus):not(:placeholder-shown):valid ~ .required,
.form--inline textarea:not(:focus):not(:placeholder-shown):valid ~ .required {
  color: var(--color-green);
}


span.required {
    position: absolute;
    right: 12px;
    top: 9px;
    color: var(--color-primary);
}


span.required::after {
    content: '*';
    color: inherit;
    z-index: 1;
}

.form--inline fieldset {
	display: grid;
	gap: 1.5rem;
	padding: 1.5rem 0;
}

.form--inline .label label {
	font-size: .75rem;
    font-weight: 700;
    position: absolute;
    top: 1.6rem;
    color: #fff;
    left: 0;
    transition: all .15s;
    transform: translateY(-24px);
    // z-index: -1;
}

.form--inline .label input:not(:placeholder-shown)+label, .form--inline .label textarea:not(:placeholder-shown)~label {
    transform: translateY(-2.8rem);
}

.form--inline fieldset > input:first-child {
    display: none;
}

.form--inline a {
	/* color: var(--color-primary); */
    color: #fff;
    text-decoration: underline;
}

#form__result {
    position: absolute;
    width: calc(100% - 3rem);
    top: 50%;
    left:50%;
    transform: translate(-50%, -50%);
    font-weight: 500;
    font-size: .9rem;
    color: var(--color-primary);
    font-weight: 600;

    padding: 1.5rem 1rem 0 1rem;
    border-radius: 1rem;
    border: 1px solid #e5e8e9;
    background-color: var(--color-bg-light);

    opacity: 0;
    pointer-events: none;
}


#form__result.success {
    opacity: 1;
    background-color: aliceblue;
    padding: 1.75rem 1rem;
    text-align: center;
    border-radius: 5px;

    background: rgba(230, 230, 230, 0.39);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.5px);
    -webkit-backdrop-filter: blur(7.5px);
    border: 1px solid rgba(230, 230, 230, 0.56);
}

#form__result p {
    margin-bottom: 1rem;
}

.form__grid {
    display: grid;
    gap: 1.5rem;
}


[data-subject="anmeldung"] .checkcontainer {
    margin-bottom: .8rem;
}

[data-subject="anmeldung"] .checkbox {
    top: 1px;
}


.label.ht {
    display: none;
}

.label {
    position: relative;
}

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

	.form__grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}

    .form--inline fieldset {
    	gap: 1.9rem;
    	padding: 1.9rem 0;
    }

}



form input[type=checkbox],form input[type=radio] {
    position: absolute;
    opacity: 0;
    cursor: pointer
}

.checkcontainer {
    display: inline-block;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding-left: 30px;
    margin-bottom: 2rem;
    font-size: 14px;
    line-height: 20px;
    font-style: normal;
    max-width: 450px;
    color: #fff;
}

.checkcontainer.radio {
    padding-right: 18px;
    padding-left: 26px
}

.checkbox {
    position: absolute;
    display: block;
    top: 5px;
    border-radius: 2px;
    border: 1px solid #dadcde;
    left: 0;
    height: 18px;
    width: 18px;
    transition: all .15s ease;
    background-color: #fff
}

.checkcontainer:hover input~.checkbox {
    background-color: rgba(0,0,0,.05)
}

.checkcontainer input:checked~.checkbox {
    background-color: transparent;
    border-color: var(--color-primary)
}

.checkbox:after {
    content: "";
    display: block;
    position: absolute;
    opacity: 0;
    transition: all .25s cubic-bezier(0.29,1.91,.59,1.18)
}

.checkcontainer .checkbox:after {
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: var(--color-primary) solid;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg) scale(0.2)
}

.checkcontainer input:checked~.checkbox:after {
    opacity: 1;
    transform: rotate(45deg) scale(1)
}

button.is-disabled,button:disabled {
    opacity: .2
}

button.is-disabled:hover,button:disabled:hover {
    cursor: not-allowed
}

.link__button {
    background-color: var(--color-primary);
    color: #fff;
    padding: .65rem 1.4rem .6rem 1.4rem;
    font-weight: 600;
    border-radius: 2rem;
    display: inline-block;
}
