/* inter-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: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('../../files/theme/fonts/Inter-Regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-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: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('../../files/theme/fonts/Inter-SemiBold.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-800 - 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: 'Inter';
    font-style: normal;
    font-weight: 800;
    src: url('../../files/theme/fonts/Inter-ExtraBold.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: 'Inter', 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 1fr auto;
        grid-template-columns: 100%;
    }
}

.invisible {
    display: none;
}

:root {
    --primary-color: #b12e2f;
    --grey-border: rgb(245, 245, 245);
    --container-width: 1200px;
    --hover-color: #9a3a3a;
    --hover-color-link: #7a3a3a;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--primary-color);
}

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;
}

.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: 400;
}

hr {
    border: 1px solid #ddd;
    margin: 2rem 0;
}

#main .content-hyperlink.button a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 100rem;
    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);

    .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;
            }


            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 {
    .inside {
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 2rem;
        justify-content: space-between;
    }

    figure {
        margin: 0;
        padding: 0;
    }

    *:nth-child(2) {
        font-size: 1.5rem;

        span {
            display: block;
            color: var(--primary-color);
            font-weight: 600;
        }

        .line2 {
            color: var(--primary-color) !important;
        }
    }

    img {
        max-width: 200px;
        height: auto;
    }
}

#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 {
    .inside {
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 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: var(--primary-color);
        font-size: 2rem;
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }
}

.content-swiper {
    figure {

        figcaption {
            margin-top: 0.5rem;
            font-size: 1.2rem;
            font-weight: 400;
            text-align: center;
            background-color: var(--primary-color);
            color: white;
            box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 12px;
            padding: 1rem;
            font-size: 1.5rem;
            font-weight: 400;
            border-radius: 0.5rem;
        }
    }

}

@media (min-width: 769px) {
    .content-swiper {
        figure {
            position: relative;

            figcaption {
                position: absolute;
                bottom: 2rem;
                left: 2rem;
                font-size: 2rem;


            }
        }

    }
}

.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: 100px;

        }
    }
}

#main .ce_efftek_grid_start {
    ul {
        list-style: none;
        padding: 0;
        margin-left: 1rem;
    }

    li {
        margin: 0;
        padding: 0;
        position: relative;
        padding-left: 1.2rem;
        list-style: none;

        &:before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 0;
            color: var(--primary-color);
        }
    }
}

.cellInner {
    margin: 0 .5rem;
}

.col {
    margin-bottom: 1rem;
}

.box .cellInner {
    flex: 1;
    padding: 1rem;


    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;

    h2 {
        font-size: 1.5rem;
        color: var(--primary-color);
        font-weight: 700;
        text-align: center;
    }
}



.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%;
    }

    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@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;
    }

    h4 {
        font-size: 1.2rem;
        color: var(--primary-color);
        margin-bottom: 0;
    }

    .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('/files/theme/img/icons/phone_white.svg') no-repeat left center;
        background-size: contain;
        padding-left: 1.5rem;
    }

    a[href^="mailto:"] {
        background: url('/files/theme/img/icons/mail_white.svg') no-repeat left center;
        background-size: contain;
        padding-left: 1.5rem;
    }

    .icon-print {
        background: url('/files/theme/img/icons/print_white.svg') no-repeat left center;
        background-size: contain;
        padding-left: 1.5rem;
    }

    .icon-globe {
        background: url('/files/theme/img/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: 'Inter', sans-serif;
    }

    textarea {
        height: 200px;
    }

    .widget-submit {
        text-align: center;
    }

    button {
        background-color: var(--primary-color);
        color: white;
        padding: 0.5rem 1rem;
        border: none;
        border-radius: 100rem;
        cursor: pointer;

        &:hover {
            background-color: var(--hover-color);
        }

        font-family: 'Inter',
        sans-serif;
        font-size: inherit;
    }

    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;
    }
}

.row:has(.ce_form) {
    align-items: center;
}

.ce_efftek_grid_start.partner {
    .cellInner {
        padding: 1rem;
        text-align: center;
    }
}

.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: 400px;
        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: #ffffffee;
    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;

    .no-mobile {
        display: none;
    }

    h4 {
        display: none;
    }

    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: 4px 0;
            line-height: 1.3;
        }

        ul.level_1 {
            margin-top: 30px;

            &>li {
                display: block;
                border-bottom: 1px 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: 150px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    a[href="/grosskuechentechnik-praehofer"] {

        span {
            display: block;
            color: #5e6165;
            font-weight: 400;
            text-align: center;
        }
    }
}



@media (max-width: 768px) {
    #header-navi {
        .mod_navigation {
            display: none;
        }
    }

    #header-logo {
        *:nth-child(2) {
            font-size: 1rem;
        }

        figure {
            img {
                max-width: 150px;
            }
        }
    }

    #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: left !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;
                    }
                }
            }
        }
    }
}

button.offcanvas-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
}

.offcanvas-menu .ce_efftek_grid_separator {
    display: block;
    width: 100%;
    max-width: 100%;
    flex: none;
}

@media (max-width: 768px) {
    #header-navi {
        position: fixed;
        width: min-content;
        right: 0;
        margin-left: auto;
        left: auto;
        top: 3px;
        border: none;
        border-radius: 100rem;
        scale: 90%;
        z-index: 1001;

        .mod_navigation {
            display: none;
        }
    }
}

.oeffnungszeiten {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

.swiper-pagination {
    bottom: 0 !important;
}
