/*
Theme Name: WSK Theme
Theme URI: https://2-code.de/
Author: 2code
Description: 2code Basic Theme
Version: 1.0
*/

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/Lato/Lato-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/Lato/Lato-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('assets/fonts/Lato/Lato-Black.ttf') format('truetype');
}

:root {
    --white: #FFF;
    --black: #000000;
    --off-black-1: #212121;
    --off-black-2: #393939;
    --off-black-3: #222222;
    --red: #CC0000;
    --red-2: #C31D14;
    --salmon: #E29090;
    --salmon-2: #EB9999;
    --brown: #C0B596;
    --grey-1: #D9D9D9;
    --grey-2: #F0F0F0;
    --grey-3: #E4E4E4;
    --grey-4: #00000029;
    --grey-5: #222222;
}

html {
    margin: 0;
    position: relative;
    scrollbar-width: thin;
}

body {
    position: relative;
    font-family: 'Lato';
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--black);
    background-color: var(--white);

    display: flex;
    flex-direction: row;
}

* {
    position: relative;
}

b,
strong {
    font-weight: 900;
}

img {
    max-width: 100%;
    height: auto;
}

video {
    max-width: 100%;
}

body.active-overlay {
    overflow: hidden;
}

main {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-grow: 1;
}

main> :only-child {
    height: 100%;
}

section {
    display: inline-block;
    width: 100%;
}

h1 {
    font-size: 40px;
    line-height: 48px;
    font-weight: 900;
    margin-bottom: 32px;
}

section.hero-slider h1,
section.banner h1,
section.hero h1 {
    font-size: 80px;
    line-height: 96px;
}

section.imagetext h2 {
    font-size: 40px;
    line-height: 48px;
    font-weight: 900;
    margin-bottom: 6px;
}

h2,
h3 {
    font-size: 24px;
    line-height: 29px;
    font-weight: 900;
    margin-bottom: 10px;
}

h4 {
    font-size: 18px;
    line-height: 24px;
    font-weight: 900;
    margin-bottom: 10px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
    word-break: break-word;
}

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child {
    margin-bottom: 0;
}

p {
    margin-bottom: 11px;
}

p+ul,
p+ol {
    margin-top: 11px;
}

a {
    transition: all 0.4s;
    display: inline-block;
    text-decoration: none;
    color: var(--black);
    line-height: normal;
}

p:last-of-type {
    margin-bottom: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

main {

    >p+h2,
    >p+h3,
    >p+h4,
    >h2+h3,
    >h3+h4 {
        margin-top: 30px;
    }


    >p a {
        color: var(--red);
    }

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

main> :first-child:not(section) {
    padding-top: 124px;
}

main> :last-child:not(section) {
    padding-bottom: 124px;
}

main>*:not(section) {
    width: 100%;
}

main>*:not(section),
.container {
    max-width: 100%;
    padding: 0 40px;
}

.icon-button {
    padding: 0;
    margin: 0;
    border: none;
    background-color: transparent;
}

.circle-icon {
    width: 40px;
    height: 40px;
}

.textcontent {
    a:not(.button-link, .icon-button) {
        color: var(--red-2);
    }

    a:not(.button-link, .icon-button):hover {
        text-decoration: underline;
    }
}

.textcontent ol,
.inner-textcontent ol {
    padding-left: 25px;
}

.textcontent ul,
.inner-textcontent ul {
    list-style: none;
    padding-left: 0;

    li::before {
        content: url('assets/images/icons/check-sharp-solid.svg');
        width: 16px;
        height: auto;
    }

    li {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
    }
}

.textcontent ol,
.inner-textcontent ol,
.textcontent ul,
.inner-textcontent ul {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

section.hero a.button-link {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--red);
}

section.hero a.button-link:hover {
    background-color: transparent;
}

input[type="submit"],
button,
a.button-link {
    background-color: var(--red);
    border: 1px solid var(--red);
    color: var(--white);
    border-radius: 23px;
    padding: 11px 60px;
    font-weight: 900;
    width: fit-content;
    text-align: center;
}

input[type="submit"]:hover,
button:hover,
a.button-link:hover {
    color: var(--red);
    background-color: var(--white);
}

p+a.button-link {
    margin-top: 40px;
}

section:nth-of-type(odd) {
    background-color: var(--grey-1);

    a.button-link:hover {
        background-color: var(--grey-1);
    }
}

.slick-slider {
    margin-bottom: 0 !important;

    button.slick-autoplay-toggle-button {
        padding: 5px 10px;
        bottom: 0;
        left: 0;
        border-radius: 0;
    }

    .slick-dots li button .slick-dot-icon:before {
        content: "";
    }

    .slick-dots {
        width: fit-content;
        height: fit-content;
        bottom: 0;
        top: 0;
        right: 20px;
        margin: auto;
        display: flex;
        flex-direction: column;
        gap: 13px;
    }

    .slick-dots li,
    .slick-dots button {
        height: 10px;
        width: 10px;
        border-radius: 50%;
        margin: 0;
    }

    .slick-dots li.slick-active button {
        background-color: rgba(255, 255, 255, 0.7);
    }

    .slick-dots li button {
        background-color: var(--white);
    }
}

aside.sidebar[data-sidebar-state="closed"] {
    .icon-button .circle-icon {
        transform: rotate(180deg);
    }

    .toggle-visibility {
        display: none;
    }
}

aside.sidebar {
    z-index: 100;
    position: fixed;
    left: 0;
    top: 0;
    padding: 0;
    height: 100vh;
    height: 100dvh;
    background-color: var(--white);
    box-shadow: 0px 3px 6px #00000029;
    width: 360px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    --webkit-justify-content: space-between;

    .top {
        display: flex;
        flex-direction: column;
        gap: 145px;
        padding: 20px;

        a.logo-wrap {
            display: inline-block;

            img {
                height: 63px;
                width: auto;
                max-width: 100%;
            }
        }

        nav.mainmenu-wrap {
            ul.mainmenu {
                display: flex;
                flex-direction: column;
                gap: 30px;
            }

            ul.sub-menu {
                display: none;
                margin-top: 20px;
                flex-direction: column;
                gap: 20px;

                li a {
                    text-transform: none;
                    padding: 6px 20px;
                    background-color: var(--grey-2);
                    border-radius: 23px;
                    font-size: 16px;
                    text-align: center;
                }
            }

            ul.sub-menu.is-open {
                display: flex;
            }

            button.submenu-toggle {
                transform: rotate(0deg);

                img {
                    width: 24px;
                    height: auto;
                }
            }

            button.submenu-toggle[aria-expanded="true"] {
                transform: rotate(180deg);
            }

            li>a:hover,
            li>div>a:hover,
            li.current-menu-item>div>a,
            li.current-menu-item>a {
                color: var(--red);
            }

            li a {
                color: var(--black);
                text-transform: uppercase;
                font-size: 20px;
            }

            .menu-item-inner {
                display: flex;
                align-items: center;
                justify-content: space-between;
                --webkit-justify-content: space-between;
            }
        }
    }

    .bottom {
        position: relative;
        padding: 38px 20px 20px 20px;
        background-color: var(--red);
        color: var(--white);
        font-size: 14px;
        line-height: 17px;

        .title {
            margin-bottom: 25px;
            text-align: center;
            font-weight: 700;
        }

        .subtitle {
            margin-top: 8px;
            text-align: right;
        }

        button.icon-button {
            position: absolute;
            top: -20px;
            background-color: var(--white);
            border-radius: 50%;
            left: 0;
            right: 0;
            width: fit-content;
            margin: 0 auto;
        }


        .socials {
            display: flex;
            flex-direction: column;
            gap: 12px;

            .social {
                width: 100%;
                padding: 3px;
                background-color: var(--white);
                border-radius: 8px;
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                gap: 11px;
            }

            img {
                width: 25px;
                height: 25px;
                padding: 6px;
                border-radius: 50%;
                background-color: var(--salmon);
            }
        }
    }

}

footer {
    padding: 36.5px 0;
    background-color: var(--black);

    * {
        color: var(--white);
    }

    .footer-content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    img.logo-icon {
        height: 27px;
        width: auto;
    }

    nav.footermenu-wrap {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: end;

        ul {
            display: flex;
            align-items: center;
        }

        li::before {
            content: "|";
            margin: 0 10px;
        }
    }

    .copyright {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    a {
        position: relative;
        text-decoration: none;
    }

    a::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 0;
        height: 1px;
        background: currentColor;
        /* nutzt die aktuelle Textfarbe */
        transform: translateX(-50%);
        transition: width 0.3s ease;
    }

    a:hover::after,
    a:focus-visible::after {
        width: 100%;
    }
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    width: fit-content;
    z-index: 200;

    button.icon-button.sidebar-toggle {
        display: none;
    }

    .header-content {
        display: flex;
        justify-content: end;
        align-items: center;
        gap: 12px;
        padding: 20px;
    }

    .icon-button {
        background-color: var(--black);
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.layout {
    width: calc(100% - 360px);
    margin-left: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

section.error404 {
    padding: 124px 0;
}

section.search-page {
    padding: 124px 0;


    article+article {
        margin-top: 40px;
    }

    form.search-form {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 100px;
    }

    input#search-field {
        width: fit-content;
        flex-grow: 1;
    }

    .textcontent {
        margin-bottom: 100px;
    }

    h2 {
        color: var(--red);
        margin-bottom: 40px;
    }

    h3 a:hover {
        color: var(--red);
    }
}

/* TEMPLATE PARTS */

section.hero-slider {
    color: var(--white);

    img.logo {
        width: 550px;
        max-width: 100%;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 40px;
        margin-left: auto;
        margin-right: auto;
        max-height: 200px;

        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, .25);
        background: rgba(255, 255, 255, .06);
        background-clip: padding-box;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
        padding: 15px;
    }

    h1 {
        text-transform: uppercase;
    }

    .buttons {
        margin-top: 38px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .image-overlay {
        width: 100%;
        height: 100%;
        background-color: var(--grey-5);
        opacity: 0.4;
        position: absolute;
        left: 0;
        top: 0;
    }

    .fullwidth-hero-slide {
        /* padding-top: 226px;
        padding-bottom: 226px; */
        padding-top: 300px;
        padding-bottom: 300px;
        background-repeat: no-repeat;
        background-size: cover;
        aspect-ratio: 1561 / 1080;
        width: 100%;
        height: auto;
        max-height: 100vh;
        display: flex !important;
        flex-direction: column;
        justify-content: end;
        background-position: center center;
    }
}

section.hero {
    min-height: 100dvh;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    overflow: hidden;

    h1 {
        text-transform: uppercase;
    }

    .socials {
        display: flex;
        flex-direction: column;
        gap: 14px;
        position: absolute;
        bottom: 70px;
        left: -33px;

        a {
            padding: 16px;
            border-radius: 50%;
            background-color: var(--red);
            width: fit-content;

            img {
                width: 56px;
                height: 56px;
            }
        }
    }

    .textcontent {
        text-align: center;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-right: 110px;

        img.logo {
            margin-top: 100px;
            max-width: 100%;
            height: auto;
        }

        h2 {
            margin-bottom: 0;
        }

        :last-child {
            margin-bottom: 0;
        }
    }

    .hero-slider {
        margin-bottom: 0;
        border-radius: 8px;
        overflow: hidden;

        img.slider-image {
            width: 100%;
            aspect-ratio: 571 / 759;
            object-fit: cover;
            border-radius: 8px;
        }
    }

    .container {
        z-index: 2;
        color: var(--white);
    }

    /* HERO ANIMATION */
    .textcontent,
    .hero-slider,
    .socials {
        opacity: 0;
        transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    }

    /* direction of movement */
    .textcontent {
        transform: translateY(100%);
        /* from bottom */
        transition-delay: 0.4s;
    }

    .hero-slider {
        transform: translateY(-100%);
        /* from top */
        transition-delay: 0.4s;
    }

    .socials {
        transform: translateX(50vw);
        /* from right */
        transition-delay: 0.4s;
    }
}

section.hero::after {
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    position: absolute;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    top: 0;
    left: 0;
    background-color: rgb(255, 255, 255, 0.1);
}

/* if section active, move everything in its place and make it visible */
section.hero.hero-visible {

    .textcontent,
    .hero-slider,
    .socials {
        opacity: 1;
        transform: translate(0, 0);
    }
}

section.accordion {
    padding: 214px 0;

    .accordion-body {
        margin-top: 10px;
        border: 1px solid black;
        border-radius: 18px;
        padding: 40px 32px;
        background-color: var(--white);
    }

    .buttons {
        margin-top: 86px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: end;
        align-items: center;
        gap: 20px;
    }

    .textcontent {
        margin-bottom: 86px;
    }

    .accordion-item {
        border: none;
        background-color: transparent;
    }

    .accordion {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .accordion-button {
        background-color: var(--grey-2);
        padding: 11px 32px;
        border-radius: 23px !important;
        box-shadow: none;
        font-weight: 900;
    }

    .accordion-button::after {
        background-image: url('assets/images/icons/angle-up-regular.svg');
        width: 9px;
        height: 5px;
        background-size: auto;
        transform: rotate(180deg);
    }

    .accordion-button:not(.collapsed)::after {
        filter: brightness(0) invert(1);
        transform: rotate(0deg);
    }

    .accordion-button[aria-expanded="true"] {
        background-color: var(--black);
        color: var(--white);
    }
}

section.accordion:nth-of-type(odd) {
    .accordion-button[aria-expanded="false"] {
        background-color: var(--white);
    }
}

section.iconboxes {
    padding: 214px 0;

    .textcontent {
        margin-bottom: 103px;
    }

    .content {
        padding: 69px 73px;
        border-radius: 28px;
        background-color: var(--white);
        transition: all 0.3s ease-in-out;

        h2 {
            color: var(--red);
        }
    }

    /* Eltern-Container von .boxes, .index-caret und .content
   (zur Sicherheit, falls Theme nicht schon was setzt) */
    .iconboxes .col-12:last-child {
        position: relative;
    }

    /* Caret-Box */
    .index-caret {
        position: absolute;
        width: 41px;
        height: 24px;
        pointer-events: none;
        transform: translateX(-50%);
        /* center by its own width */
        transition: left 250ms ease;
        /* horizontal animation */
        z-index: 2;
    }

    /* Dreieck mit Spitze nach oben */
    .index-caret::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 0;
        border-left: 20.5px solid transparent;
        border-right: 20.5px solid transparent;
        border-bottom: 24px solid #ffffff;
        /* Hintergrundfarbe der „Sprechblase“ */
    }


    .boxes {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 40px;

        .iconbox {
            cursor: pointer;
            margin-bottom: 65px;
        }

        .iconbox.is-active {
            .icon-wrap {
                background-color: var(--red);
                color: var(--white);
            }

            .icon-wrap::before {
                content: "";
                position: absolute;
                inset: 9px;
                border-radius: 50%;
                border: 5px solid var(--white);
                box-sizing: border-box;
                pointer-events: none;
            }

            .title {
                color: var(--red);
            }

            img.icon {
                filter: brightness(0) invert(1);
            }
        }


        .icon-wrap {
            transition: all 0.3s ease-in-out;
            background-color: var(--white);
            border-radius: 50%;
            height: auto;
            width: 100%;
            aspect-ratio: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 28px;
            font-size: 14px;
            line-height: 17px;

            img.icon {
                height: 65px;
            }
        }

        .title {
            padding: 15px 30px;
            background-color: white;
            border-radius: 28px;
            margin-top: 20px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }
}

section.iconboxes:nth-of-type(even) {
    .index-caret::before {
        border-bottom-color: var(--grey-2) !important;
    }

    .content {
        background-color: var(--grey-2);
    }

    .boxes {
        .icon-wrap {
            background-color: var(--grey-2);
        }

        .title {
            background-color: var(--grey-2);
        }
    }
}

section.textblock {
    padding: 124px 0;

    .buttons {
        margin-top: 124px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: end;
        align-items: center;
        gap: 20px;
    }
}

section.downloads {
    padding: 124px 0 247px 0;

    .group {
        display: flex;
        gap: 27px;
    }

    .textcontent {
        margin-bottom: 100px;
    }

    .buttons {
        margin-top: 124px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: end;
        align-items: center;
        gap: 20px;
    }

    .all-files {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .file-wrap {
        display: flex;
        gap: 27px;

        a.file-link {
            flex-grow: 1;
            background-color: var(--grey-2);
            border-radius: 23px;
            padding: 13.5px 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            justify-content: space-between;
            --webkit-justify-content: space-between;
        }

        .pdf-icon {
            padding: 13.5px;
            border-radius: 50%;
            background-color: var(--grey-2);
            aspect-ratio: 1;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .button-link {
            display: flex;
            align-items: center;
            width: fit-content;
            background-color: var(--salmon);
            border-color: var(--salmon);
            word-break: normal;

            img {
                position: absolute;
                right: 11px;
                top: 0;
                bottom: 0;
                height: fit-content;
                margin: auto;
            }
        }

        .button-link:hover {
            background-color: var(--red);
            border-color: var(--red);
            color: var(--white);
        }
    }
}

section.textbox.text-background {
    padding: 320px 0 200px 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    .image-overlay {
        width: 100%;
        height: 100%;
        background-color: var(--grey-5);
        opacity: 0.3;
        position: absolute;
        left: 0;
        top: 0;
    }

    .textbox {
        padding: 35px 53px;
    }

    .container {
        width: 786px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

section.textbox {
    padding: 160px 0;

    .textbox {
        padding: 77px 53px;
        background-color: var(--white);
        border-radius: 28px;
    }

    .buttons {
        margin-top: 40px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: end;
        align-items: center;
        gap: 20px;
    }

    h2,
    h3 {
        margin-bottom: 20px;
    }
}

section.textbox:nth-of-type(even) {
    .textbox {
        background-color: var(--grey-2);
    }
}

section.imagetext {

    .image-wrap {
        height: 100%;
    }

    .textcontent {
        padding: 207px 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        --webkit-justify-content: center;
    }

    img.logo {
        position: absolute;
        max-width: 100%;
        width: 290px;
        height: auto;
        bottom: 20px;
    }

    img.image {
        height: 100%;
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
    }

    .row>*,
    .row,
    .container-fluid {
        padding: 0;
        margin: 0;
    }

    h2 {
        margin-bottom: 6px;
    }

    h3 {
        margin-bottom: 30px;
    }

}

section.imagetext[data-position="right"] {
    .textcontent {
        padding-right: 40px;
        padding-left: 40px;
    }

    img.logo {
        right: 20px;
    }
}

section.imagetext[data-position="left"] {
    .row {
        flex-direction: row-reverse;
    }

    .textcontent {
        padding-right: 40px;
        padding-left: 40px;
    }

    img.logo {
        left: 20px;
    }
}

section.banner {
    aspect-ratio: 1561 / 506;
    background-position: top center;
    background-size: cover;
    width: 100%;
    height: fit-content;

    .textcontent {
        padding-top: 253px;
        padding-bottom: 128px;
        text-align: center;
        color: var(--white);
    }

    .subtitle {
        font-size: 24px;
        line-height: 29px;
        font-weight: 900;
        margin-bottom: 0;
    }

    .image-overlay {
        width: 100%;
        height: 100%;
        background-color: var(--grey-5);
        opacity: 0.3;
        position: absolute;
        left: 0;
        top: 0;
        transition: all 0.3s ease-in-out;
    }

    .container {
        display: flex;
        flex-direction: column;
        height: 100%;
        align-items: center;
        justify-content: end;
    }
}

section.banner:hover {
    .image-overlay {
        opacity: 0;
    }
}

section.teamcards {
    padding: 124px 0;

    .all-teamcards {
        --gap: 40px;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: var(--gap);
        row-gap: 67px;
        width: 100%;
        /* max-width: calc(4 * 234px + 3 * var(--gap)); */
        margin-inline: auto;
    }

    .textcontent {
        margin-bottom: 100px;
    }

    .contact {
        position: absolute;
        top: 29px;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 19px 8px 19px 10px;
        border-radius: 28px 0px 0px 28px;
        background-color: var(--black);

        img {
            /* width: 17px; */
            width: 24px;
            height: auto;
        }

        a {
            display: flex;
        }
    }

    .image-wrap {
        border-radius: 8px;
        overflow: hidden;
    }

    img.image {
        aspect-ratio: 234 / 331;
        width: 100%;
        height: auto;
        object-fit: cover;
        transition: all 0.6s ease-in-out;
    }

    .teamcard[data-has-hover='1'] {

        img.image.hidden {
            opacity: 0;
            visibility: hidden;
            position: absolute;
        }

        &.is-hovered .image-hover,

        .image-hover:hover {
            img.image {
                opacity: 0;
                visibility: hidden;
                position: absolute;
            }

            img.image.hidden {
                opacity: 1;
                visibility: visible;
                position: relative;
            }
        }
    }

    .name {
        position: absolute;
        bottom: 0;
        padding: 18px;
        text-align: center;
        width: 100%;
        color: var(--white);
        background-color: rgba(0, 0, 0, 0.3);
    }

    .inner-textcontent {
        margin-top: 24px;

        ul {
            gap: 7px;
        }
    }
}

@keyframes ring {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(-12deg);
    }

    20% {
        transform: rotate(12deg);
    }

    30% {
        transform: rotate(-10deg);
    }

    40% {
        transform: rotate(8deg);
    }

    50% {
        transform: rotate(-6deg);
    }

    60% {
        transform: rotate(4deg);
    }

    70% {
        transform: rotate(-2deg);
    }

    80%,
    100% {
        transform: rotate(0deg);
    }
}

section.cta {
    padding: 247px 0;

    .cta-content {
        padding-bottom: 115px;
        max-width: 925px;
        margin-left: auto;
        margin-right: auto;
    }

    img.icon {
        padding: 47px;
        border-radius: 50%;
        background-color: var(--red);
        position: absolute;
        top: 50px;
        right: calc(72% - 179px / 2);

        animation: ring 1.5s ease-in-out infinite;
        transform-origin: 50% 50%;
    }

    .textbox {
        background-color: var(--grey-1);
        padding: 108px 69px;
        padding-left: 168px;
        border-radius: 28px;
        width: 72%;
        margin-left: auto;
        box-shadow: 0px 3px 6px #00000029;
    }

    img.image {
        border-radius: 28px;
        object-fit: cover;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 36%;
        aspect-ratio: 341 / 626;
        max-height: calc(100% - 115px);
        box-shadow: 0px 3px 6px #00000029;
    }

    .textbox::before {
        content: "";
        position: absolute;
        inset: 25px;
        border-radius: 28px;
        border: 5px solid var(--white);
        box-sizing: border-box;
        pointer-events: none;
    }

    a.primary-link {
        margin-top: 45px;
        font-size: 40px;
        font-weight: 900;
        color: var(--red);
    }

    a.primary-link::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 0;
        height: 1px;
        background: currentColor;
        transform: translateX(-50%);
        transition: width 0.3s ease;
    }

    a.primary-link:hover::after,
    a.primary-link:focus-visible::after {
        width: 100%;
    }

    .buttons {
        margin-top: 69px;
        display: flex;
        flex-direction: column;
        gap: 15px;

        a.button-link {
            width: 100%;
            background-color: var(--white);
            color: var(--red);
            border-color: var(--white);
        }

        a.button-link:hover {
            background-color: transparent;
            border-color: var(--red);
        }
    }
}

section.cta:nth-of-type(odd) {
    .textbox {
        background-color: var(--white);
    }

    img.image {
        border: 2px solid var(--white);
    }

    .textbox::before {

        border: 5px solid var(--grey-1);

    }

    .buttons {

        a.button-link {
            color: var(--red);
            border-color: var(--red);
        }

        a.button-link:hover {
            background-color: var(--red);
            color: var(--white);
        }
    }
}

section.locations:nth-of-type(odd) {
    .textbox {
        background-color: var(--white);
    }

    .contact-links {
        a {
            color: var(--black);
        }
    }
}

section.locations {
    padding: 124px 0 202px 0;

    .textcontent {
        margin-bottom: 124px;
    }

    .title {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 7px;
        margin-bottom: 40px;

        h2 {
            margin-bottom: 0;
        }
    }

    .textbox {
        padding: 30px 40px;
        background-color: var(--grey-2);
        border-radius: 28px;

        strong {
            font-size: 18px;
        }
    }

    iframe {
        border-radius: 28px;
        max-width: 100%;
    }

    .title:not(.index-0) {
        margin-top: 80px;
    }

    .contact-links {
        margin-top: 35px;
        display: flex;
        flex-direction: column;
        gap: 11px;

        a {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 11px;
            color: var(--red);
        }

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

section.contact {
    padding: 160px 0;

    * {
        --bs-gutter-x: 53px;
    }

    .textbox {
        margin-top: 48px;
        padding: 33px 37px;
        background-color: var(--white);
        border-radius: 28px;

        a {
            color: var(--red);
        }

        a:hover {
            text-decoration: underline;
        }

        p {
            margin-bottom: 10px;
        }
    }
}

form.wpcf7-form {
    p {
        display: flex;
        flex-direction: column;
    }

    br {
        display: none;
    }

    .wpcf7-form-control-wrap {
        margin-bottom: 20px;
    }

    span.wpcf7-list-item {
        margin: 0;

    }
}

form {

    input[type="checkbox"] {
        width: 20px;
        height: 20px;
        vertical-align: middle;
        margin-right: 10px;
    }

    input,
    select {
        accent-color: var(--red);
    }

    input:not(input[type="checkbox"], input[type="radio"], input[type="submit"], input[type="hidden"]),
    textarea,
    select {
        border-radius: 23px;
        border: none;
        padding: 14px 20px;
        width: 100%;
    }

    input::placeholder,
    textarea::placeholder {
        color: var(0, 0, 0, 0.4);
    }

    input[type="submit"] {
        margin-top: 56px;
        width: fit-content;
        align-self: end;
    }

    a {
        color: var(--red);
    }

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

@media(min-width: 1750px) {
    section.imagetext[data-position="right"] {
        .textcontent {
            padding-right: 50px;
            padding-left: calc(((100vw - 360px) - 1240px) / 2);
        }
    }

    section.imagetext[data-position="left"] {
        .textcontent {
            padding-left: 50px;
            padding-right: calc(((100vw - 360px) - 1240px) / 2);
        }
    }
}

@media(min-width:1320px) {
    main>*:not(section) {
        margin-left: auto;
        margin-right: auto;
        max-width: 1320px;
    }

    .container {
        max-width: 1320px;
    }

}

@media(max-width: 1499.98px) {
    section.teamcards {


        .all-teamcards {

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

        }
    }

    section.hero-slider {
        .fullwidth-hero-slide {
            padding-top: 150px;
            padding-bottom: 250px;
        }
    }
}

@media(max-width:1399.98px) {

    ::-webkit-scrollbar {
        display: none;
    }

    html {
        scrollbar-width: none;
    }

    body {
        -ms-overflow-style: none;
    }

    aside.sidebar {
        width: 100%;
        transform: translateY(100%);
        transition: all 0.3s ease-in-out;
        height: 100dvh;
        overflow: scroll;

        .bottom {
            padding: 38px 20px 140px 20px;
        }
    }

    aside.sidebar.active {
        transform: translateY(0);
    }

    header {
        button.icon-button.sidebar-toggle {
            display: flex;
            background-color: var(--red);
        }
    }

    .layout {
        width: 100%;
    }

    section.hero-slider {
        .fullwidth-hero-slide {
            height: 100%;
            max-height: unset;
        }

        img.logo {
            width: 250px;
        }
    }

    section.hero {
        .row {
            flex-direction: column;
            gap: 100px;
        }

        .col-xl-6 {
            width: 100%;
        }

        .textcontent {
            padding-right: 0;

            img.logo {
                width: 400px;
            }
        }

        .socials {
            left: 0;
        }
    }
}

@media (max-width: 1299.98px) {
    aside.sidebar {
        .top {
            gap: 40px;
        }
    }

    section.teamcards {


        .all-teamcards {

            grid-template-columns: 1fr 1fr;

        }
    }
}

@media (max-width: 1199.98px) {
    footer {
        .footer-content {
            flex-direction: column;
            row-gap: 10px;
        }

        nav.footermenu-wrap {
            justify-content: start;

            li:first-of-type:before {
                display: none;
            }
        }
    }

    section.hero {
        .textcontent {
            padding-right: 0;
        }
    }

    section.iconboxes {

        .index-caret,
        .desktop-content {
            display: none !important;
        }

        .content {
            padding: 20px;
        }

        .boxes {

            grid-template-columns: 1fr 1fr;

            .mobile-content {
                margin-top: 40px;
            }

            .iconbox+.iconbox {
                margin-top: 60px;
            }

            .iconbox {
                margin-bottom: 0;
                cursor: unset;
            }

            .iconbox.is-active {
                .title {
                    color: var(--black);
                }

                .icon-wrap::before {
                    display: none;
                }

                img.icon {
                    filter: unset;
                }

                .icon-wrap {
                    background-color: var(--grey-2);
                    color: var(--black);
                }
            }
        }
    }

}

@media (max-width: 991.98px) {

    h1 {
        font-size: 26px;
        line-height: normal;
    }

    h3 {
        font-size: 18px;
        line-height: normal;
    }

    input[type="submit"],
    button,
    a.button-link {
        padding: 11px 20px;
    }

    main>*:not(section),
    .container {
        padding: 0 20px;
    }

    section.banner {
        aspect-ratio: unset;
    }

    section.downloads {
        .button-link {
            padding: 11px 40px;
        }
    }

    section.locations {
        .textbox {
            padding: 20px;
            margin-top: 10px;
        }

        iframe {
            width: 100%;
        }
    }

    section.contact {
        .textbox {
            margin-bottom: 48px;
        }
    }

    section.textbox {
        .textbox {
            padding: 40px;
        }
    }

    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .slick-slider {
        .slick-dots {
            right: 15px;
        }
    }

    section.hero-slider h1,
    section.banner h1,
    section.hero h1,
    section.imagetext h2 {
        font-size: 42px;
        line-height: normal;
    }

    section.hero {
        a.button-link {
            min-width: 180px;
            max-width: 100%;
        }
    }

    section.hero-slider {
        h2 {
            margin-bottom: 3px;
            font-size: 18px;
        }

        a.button-link {
            min-width: 180px;
            max-width: 100%;
        }
        .fullwidth-hero-slide{
            aspect-ratio: 2 / 3;
            /* min-height: 100vh; */
        }
    }

    section.imagetext h2 {
        font-size: 34px;
        line-height: normal;
    }

    section.iconboxes {
        .boxes {
            grid-template-columns: 1fr;
        }
    }

    section.cta {

        padding: 100px 0;

        .cta-content {
            display: flex;
            flex-direction: column-reverse;
            gap: 20px;
            justify-content: right;
        }

        a.primary-link {
            font-size: 18px;
        }

        .buttons {
            margin-top: 55px;
        }

        .textbox {
            margin-left: 0;
            width: 100%;
            padding: 80px 60px;
        }

        img.image {
            display: none;
        }

        img.icon {
            padding: 10px;
            top: -20px;
            right: 10%;
            position: absolute;
            width: 80px;
        }
    }

}

@media (max-width: 767.98px) {

    /* h1,
    h2,
    h3 {
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    } */

    section.downloads {
        .all-files {
            gap: 60px;
        }

        .file-wrap {
            flex-direction: column;
            gap: 10px;

            .pdf-icon {
                width: 42px;
            }

            .button-link {
                flex-grow: 0;
                height: fit-content;
            }
        }

        .group {
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: end;
        }
    }

    aside.sidebar {
        padding-top: 80px;

        .top {
            padding-bottom: 70px;
        }
    }

    footer {
        padding-bottom: 160px;
    }

    section.imagetext {
        .textcontent {
            padding: 80px 0;
        }
    }

    section.teamcards {
        .all-teamcards {
            grid-template-columns: 1fr;
        }
    }

    .wp-block-gallery.has-nested-images {
        padding: 20px;

        figure.wp-block-image:not(#individual-image) {
            width: 100%;
        }
    }
}