/* roboto-300 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/roboto-v48-latin-300.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v48-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-700 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v48-latin-700.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* quicksand-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/quicksand-v37-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* quicksand-600 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/quicksand-v37-latin-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: rgb(82, 82, 82);
    margin: 0;
}

@media (min-width: 768px) {
    #wrapper {
        min-height: 100%;
        display: grid;
        grid-template-rows: auto auto auto 1fr auto;
        grid-template-columns: 100%;
    }
}

.invisible {
    display: none;
}

:root {
    --primary-color: rgb(18, 138, 202);
    --grey-border: rgb(245, 245, 245);
    --container-width: 1200px;
    --hover-color: rgb(18, 138, 202);
    --hover-color-link: rgb(18, 138, 202);

    --font-family-base: 'Roboto', sans-serif;
    --font-weight-base: 400;
    --font-size-base: 16px;
    --font-family-heading: 'Quicksand', sans-serif;
    --font-weight-heading: 600;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 2rem 0 1rem 0;
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-heading);
    margin-top: 5rem !important;
}

h2 {
    font-size: 2rem;
    font-weight: 300;
    margin: 1.5rem 0 1rem 0;
    font-family: var(--font-family-heading);
    color: var(--primary-color);
}

h3 {
    font-size: 1.75rem;
    font-weight: 300;
    margin: 1.5rem 0 0.75rem 0;
}

a,
a:link,
a:visited {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;

    &:hover {
        color: var(--hover-color);
    }
}

.mt4 {
    margin-top: 4rem !important;
}

.mb4 {
    margin-bottom: 4rem !important;
}

#main {

    a,
    a:link,
    a:visited {
        text-decoration: underline;
    }

    figure {
        margin: 1rem 0;
        padding: 0;
    }

    img {
        display: block;
        border-radius: 4px;
    }
}

.zentriert {
    text-align: center;
}

.mt2 {
    margin-top: 2rem !important;
}

.mb2 {
    margin-bottom: 2rem !important;
}

.mt4 {
    margin-top: 4rem !important;
}

.mb4 {
    margin-bottom: 4rem !important;
}

.mt6 {
    margin-top: 6rem !important;
}

.mb6 {
    margin-bottom: 6rem !important;
}

.icon-big {
    img {
        width: 120px;
        margin: 2rem auto;
        height: auto;
    }
}

blockquote {
    padding: 1rem;
    max-width: 800px;
    margin: 1rem auto;
    font-size: 1.5rem;
    font-weight: 300;
}

hr {
    border: 1px solid var(--grey-border);
    margin: 2rem 0;
}

.inhalt-schmal,
.inhalt-schmal img {
    max-width: 600px !important;
    margin: 0 auto !important;
    height: auto !important;
    width: 100% !important;
}

#main .content-hyperlink.button a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    background-color: var(--primary-color);
    margin: 1rem 0;
    display: inline-block;

    &:hover {
        background-color: var(--hover-color-link);
    }
}

#header-navi {
    margin-top: 0;
    background-color: var(--primary-color);
    box-shadow: rgba(0, 0, 0, 0.75) 0px 0px 1px;
    border-top: 5px solid var(--grey-border);
    border-bottom: 5px solid var(--grey-border);
    position: sticky;
    top: 0;
    z-index: 1000;

    .inside {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 1rem;
    }

    .mod_navigation {
        ul.level_1 {
            padding: 0;
            list-style: none;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 1rem;

            a,
            strong {
                color: white;
                text-decoration: none;
                border-radius: 4px;
                transition: background-color 0.3s ease;
                padding: 0.5rem 1rem;
                display: block;
                font-family: var(--font-family-heading);
                font-size: 1.3rem;
            }


            strong,
            &>.trail>a,
            a:hover {
                background-color: rgba(0, 0, 0, 0.3);
                font-weight: 400;
            }

            li {
                position: relative;
                display: inline-block;

                &:hover ul.level_2 {
                    display: block;
                }
            }
        }

        ul.level_2 {
            position: absolute;
            top: 100%;
            left: 0;
            background-color: var(--primary-color);
            box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
            z-index: 1000;
            margin: 0;
            list-style: none;
            padding: 0.5rem;
            display: none;
            border-radius: 4px;

            li {
                display: block;
            }

            a,
            strong {
                white-space: nowrap;
            }
        }
    }
}

#header-logo {
    background: linear-gradient(-106deg, rgb(66, 131, 167) -20%, transparent 110%);

    .inside {
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 2rem;

        *:nth-child(1) {
            max-width: 400px;

            img {
                width: 100%;
                height: auto;
            }
        }

        *:nth-child(2) {
            font-size: 1.4rem;
            margin: 0 auto;
            font-family: var(--font-family-heading);
        }

        *:nth-child(3) {
            margin-left: auto;

            figure,
            img {
                max-width: 150px;
                width: 100%;
                height: auto;
            }
        }

    }

    figure {
        margin: 0;
        padding: 0;
    }







}

#header-top {
    background-color: #484848;
    color: white;
    font-size: 0.9rem;

    .inside {
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 1rem;
    }

    ul {
        margin: 0;
        padding: 0;
        list-style: none;

        li {
            margin: 0;
            padding: 0;
            display: inline-block;

            a {
                color: white !important;
                text-decoration: none;
                transition: color 0.3s ease;

                &:hover {
                    color: var(--hover-color) !important;
                }
            }

            strong {
                font-weight: 400;
                color: var(--hover-color) !important;
            }

            &:not(:last-child)::after {
                content: " | ";
            }
        }

        &:last-child {
            text-align: right;
        }
    }

    .col {
        margin-bottom: 0 !important;
    }
}

#main {
    .mod_article>* {
        max-width: var(--container-width);
        margin: 1rem auto;
        padding: 0 1rem;
    }
}

@media (max-width: 599px) {

    img[style*="float: right"],
    img[style*="float:right"] {
        /* override rules */
        float: none !important;
        margin: 1rem auto !important;
        display: block;
    }
}

.content-swiper {
    figure {
        margin: 0;
        padding: 0;
    }

    img {
        width: 100%;
        height: auto;
        border-radius: 4px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }
}

@media (min-width: 769px) {
    .content-swiper {
        figure {
            position: relative;

            figcaption {
                position: absolute;
                bottom: 2rem;
                left: 2rem;
                background: rgba(255, 255, 255, 0.7);
                padding: 1rem;
                font-size: 2rem;
                color: #333;
                font-weight: 300;
                border-radius: 0.5rem;
            }
        }

    }
}

.ce_efftek_grid_start {
    .row {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
    }

    .ce_efftek_grid_separator {
        img {
            max-width: 100%;
            height: auto;
            display: block;
            border-radius: 4px;
            margin: 0 auto;
            min-width: 150px;

        }
    }
}

.cellInner {
    margin: 0 .5rem;
}

.col {
    margin-bottom: 1rem;
}

.box .cellInner {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    background: rgb(242 242 243);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
    height: 100%;

    img {
        padding: 1rem 2rem;
        max-width: 50%;
        margin: auto;
    }

    h2 {
        font-size: 1.5rem;
    }
}

.box.image .cellInner {

    img {
        padding: 0 !important;
        width: 100%;
        margin: auto;
        max-width: 100% !important;
    }

    h2 {
        font-size: 1.5rem;
    }

    ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    li {
        margin: 0;
        padding: 0;
        position: relative;
        padding-left: 1.2rem;

        &:before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 0;
            color: var(--primary-color);
        }
    }

    h3:first-child {
        margin-top: 0;
    }
}

.ce_efftek_grid_start {
    margin: 0 -.5rem;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-8 {
    flex: 0 0 66.66667%;
    max-width: 66.66667%;
}

.col-md-4 {
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
}

@media (max-width: 992px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-sm-8 {
        flex: 0 0 66.66667%;
        max-width: 66.66667%;
    }

    .col-sm-4 {
        flex: 0 0 33.33333%;
        max-width: 33.33333%;
    }
}

@media (max-width: 576px) {
    .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


footer {
    background-color: #484848;
    color: white;
    margin-top: 4rem;

    a {
        text-decoration: underline !important;
    }

    .inner {
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 1rem;
    }

    ul {
        margin: 0;
        padding: 0;
        list-style: none;

        li {
            margin: 0;
            padding: 0;

            a {
                color: white !important;
                text-decoration: none;
                transition: color 0.3s ease;

                &:hover {
                    color: var(--hover-color) !important;
                }
            }

            strong {
                font-weight: 400;
                color: var(--hover-color) !important;
            }
        }
    }

    #footer-bottom {
        background-color: #424242;
        border-top: 2px solid #3d3d3d;

        .mod_customnav {
            text-align: right;
        }

        li {
            display: inline-block;

            &:not(:last-child)::after {
                content: " |";
            }
        }

        p {
            margin: 0;
        }
    }
}

@media (max-width: 576px) {

    footer #footer-bottom .col,
    footer #footer-bottom .mod_customnav {
        text-align: center;
    }
}

footer,
header {
    a[href^="tel:"] {
        background: url('../icons/phone_white.svg') no-repeat left center;
        background-size: contain;
        padding-left: 1.5rem;
    }

    a[href^="mailto:"] {
        background: url('../icons/mail_white.svg') no-repeat left center;
        background-size: contain;
        padding-left: 1.5rem;
    }

    .icon-print {
        background: url('../icons/print_white.svg') no-repeat left center;
        background-size: contain;
        padding-left: 1.5rem;
    }

    .icon-globe {
        background: url('../icons/web_white.svg') no-repeat left center;
        background-size: contain;
        padding-left: 1.5rem;
    }
}

.contactinfos.second {
    margin-top: 1rem;
}

.ce_form {
    max-width: 600px;

    input[type="text"],
    input[type="email"],
    textarea {
        width: 100%;
        padding: 0.5rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 1rem;
        font-family: 'Roboto', sans-serif;
    }

    textarea {
        height: 100px;
    }

    button {
        background-color: var(--primary-color);
        color: white;
        padding: 0.5rem 1rem;
        border: none;
        border-radius: 4px;
        cursor: pointer;

        &:hover {
            background-color: var(--hover-color);
        }
    }

    fieldset {
        border: none;
        padding: 0;
        margin-bottom: 1rem;

        legend {
            font-weight: bold;
            margin-bottom: 0.5rem;
        }
    }

    .widget {
        margin-bottom: 1rem;
    }

    p.error {
        background-color: rgb(239, 104, 104);
        color: white;
        padding: 0.5rem;
        border-radius: 4px;
    }
}


.efftek_animated_burger {
    cursor: pointer;
    display: inline-block;
    padding: 0 8px;

    button {
        display: inline-block;
        width: 40px;
        height: 20px;
        position: relative;
        margin: 0;
        transform: rotate(0deg);
        transition: .5s ease-in-out;
        background: transparent;
        border: none;

        span {
            background: #ffffff;
            display: block;
            position: absolute;
            height: 3px;
            width: 100%;
            border-radius: 9px;
            opacity: 1;
            left: 0;
            transform: rotate(0deg);
            transition: .25s ease-in-out;

            &:nth-child(1) {
                top: 0;
            }

            &:nth-child(2),
            &:nth-child(3) {
                top: 10px;
            }

            &:nth-child(4) {
                top: 20px;
            }
        }
    }
}

body.offcanvas-open .efftek_animated_burger button span {
    &:nth-child(1) {
        top: 11px;
        width: 0;
        left: 50%;
    }

    &:nth-child(2) {
        transform: rotate(45deg);
    }

    &:nth-child(3) {
        transform: rotate(-45deg);
    }

    &:nth-child(4) {
        top: 11px;
        width: 0;
        left: 50%;
    }
}


.offcanvas-open {
    .offcanvas-menu {
        left: 0;
        width: 300px;
        visibility: visible;
        transform: translateX(0);
    }

    .offcanvas-overlay {
        visibility: visible;
        opacity: 1;
    }
}

.offcanvas-overlay {
    background: rgba(0, 0, 0, 0.2);
    bottom: 0;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 999;
    visibility: hidden;
    transition: all 0.5s ease;
}

.offcanvas-menu {
    background: white;
    width: 300px;
    height: 100%;
    position: fixed;
    top: 0;
    padding: 1rem;
    transform: translateX(-300px);
    visibility: hidden;
    overflow: auto;
    transition: all 0.5s ease;
    z-index: 1000;

    li {
        list-style: none;
        margin: 10px 20px;
        padding: 0;
    }

    ul {
        margin: 0;
        padding: 0;
    }

    nav {

        ul,
        li {
            margin: 0;
            padding: 0;
        }

        a:hover {
            font-weight: bold;
        }

        li {
            padding: 6px 0;
            line-height: 1.3;
        }

        a,
        strong {
            font-family: var(--font-family-heading);
        }

        ul.level_1 {
            margin-top: 30px;

            &>li {
                display: block;
                border-bottom: 3px solid var(--grey-border);

                &>a,
                &>strong {
                    font-size: 1.5em;
                    display: block;
                    text-decoration: none !important;
                }

                &>ul {
                    padding-left: 25px;
                }

                li {

                    a,
                    strong {
                        font-size: 1.1em;
                    }
                }
            }
        }
    }

    img {
        max-width: 80px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    a[href="/home"] {

        span {
            display: block;
            color: #5e6165;
            font-weight: 300;
        }

        .line2 {
            color: var(--primary-color) !important;
        }

    }
}



@media (max-width: 768px) {
    #header-navi {
        width: min-content;
        right: 0;
        margin-left: auto;
        left: auto;

        .mod_navigation {
            display: none;
        }
    }

    #header-logo {
        & .inside {
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: center;

            *:nth-child(1) {
                width: 100%;
            }

            *:nth-child(2) {
                font-size: 1.1rem;
                margin: 0;
            }

            :nth-child(3) {

                figure,
                img {
                    max-width: 120px;
                }

            }
        }
    }

    #header-top {
        .ce_efftek_grid_separator:nth-child(1) {
            display: none;
        }

        .col {
            width: 100% !important;
            flex: 0 0 100% !important;
            max-width: 100% !important;
        }

        & ul {
            text-align: center !important;

            & li {
                &:not(:last-child)::after {
                    content: "";
                }

                &:first-child {
                    display: none;
                }

                a {
                    color: white !important;
                    text-decoration: none;
                    padding: 0.5rem 1rem 0.5rem 2.5rem;
                    border-radius: 4px;
                    transition: background-color 0.3s ease;
                    background-color: var(--primary-color);
                    margin: 0;
                    display: inline-block;
                    background-size: 1.5rem 1.5rem;
                    background-position: 0.5rem center;

                    &:hover {
                        background-color: var(--hover-color) !important;
                        color: white !important;
                    }
                }
            }
        }
    }
}

video {
    max-width: 100%;
    height: auto;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 2px 10px;
}


@media (max-width: 480px) {
    #header-logo {
        & .inside {
            gap: 0;

            *:nth-child(2) {
                font-size: 0.7rem;
                margin: 0;
            }

            :nth-child(3) {

                figure,
                img {
                    max-width: 60px;
                }

            }
        }
    }
}

#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
    width: 50px;
    height: 50px;

    img {
        width: 60px;
        height: auto;
        margin-left: -20px;
        margin-top: -12px;
        pointer-events: none;
    }
}

.offcanvas-menu {
    img {
        width: 100%;
        max-width: 100%;
    }

    figure {
        margin: 0;
        padding: 0;
    }

    .content-text {
        text-align: center;
    }

    .content-image img {
        max-width: 60%;
        height: auto;
        margin: 1rem auto;
        display: block;
    }
}

.bg {
    background: linear-gradient(-106deg, rgb(216, 229, 237) 0%, transparent 100%);

    .row {
        justify-content: center;
    }
}

.cellInner {
    h3 {
        min-height: 2lh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

#main .content-hyperlink a {
    display: block;
    overflow: hidden;

    img {
        transition: scale 0.3s ease;
        width: 100%;
        height: auto;
    }

    &:hover img {
        scale: 120%;
    }
}

.mitglieder {
    &>div {
        display: flex;
        align-items: center;
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .content-text {
        flex: 0 0 200px;
        max-width: 200px;
        text-align: center;

        img {
            max-width: 175px;
            height: auto;
            margin: 1rem auto;
        }

        h3 {
            font-size: 1.2rem;

        }
    }
}


.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
    transition-delay: 400ms;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}