:root {
    
    interpolate-size: allow-keywords;
    text-box: trim-both cap alphabetic;

	--color_1: #581930;
	--color_2: #793D53;
	--color_3: hsl(from #D8D6C9 h s l / 36%);
	--color_4: #e8f3fa;
	
	--font_family: 'PT Sans', sans-serif;

	--fade_duration: 1.5s;
	--move_duration: 1.5s;
	--ivp_animation_delay: 0s;

    --font_size: 20px;
    --line_height: 1.4;

    --header_width: 100%;
    --content_width: 1630px;
    --footer_width: 1630px;

    --nav-breakpoint: 1024;
    /* --nav-breakpoint: 9999; */
    --nav-color: var(--font_color, #444); /* Textfarbe */
    --nav-active-color: var(--color_1);
    --nav-item-line-height: 1.5;
    --nav-font-size: 20px;
    --nav-font-weight: 400;
    --nav-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="green" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M9 18l6-6-6-6"/></svg>');
    --nav-icon-background: transparent;
	--nav-mobile-background: #fff;
    --nav-mobile-color: var(--font_color, #444); /* Textfarbe */;
    --nav-mobile-active-background: #f8f8f8;
    --nav-mobile-active-color: var(--color_1);
    --nav-mobile-active-border-color: var(--color_1);
    --nav-mobile-btn-clr: var(--color_1);
    --nav-mobile-separator-color: #ddd;
    --nav-mobile-padding: 51px 20px 20px;
    --nav-mobile-font-size: 18px;
    --nav-mobile-backdrop-height: 0;
    --nav-mobile-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="green" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg>');
    --nav-submenu-background: #fff;
    --nav-burger-line-color: #fff;
}
.invisible { display: none; }
.preload * { transition: none; }

body.navigation-open {
    --nav-burger-line-color: var(--color_1);
}
.mod_navigation .nav-burger:hover {
    background: transparent;
}

html {
    background: var(--color_1);
}
main, .mod_article {
    background: #fff;
}

h1, h2 {
    font-size: 35px;
}
h3 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 40px;
    @media(max-width:1023px){  
        font-size: 25px;
        margin-bottom: 20px;
    }
}
.mod_article:not(.volleBreite, .TitelMitTitelbild) {
    padding-left: 7.6vw;
    padding-right: 7.6vw;
    @media(max-width:1023px){  
        padding-left: 10px;
        padding-right: 10px;
    }
}
.überKopfzeile {
    color: var(--color_1);
    background-color: hsl(from currentColor h s 90%);
}
.nacheinanderEinblenden > * {
    opacity: 0;
    translate: 0 100px;
}
.nacheinanderEinblenden.wivp > * {
    opacity: 1;
    translate: 0;
    transition: all 0.25s ease-in-out, opacity 1.5s ease-in-out calc(0.25s * (sibling-index() - 1)), translate 1.5s ease-in-out calc(0.25s * (sibling-index() - 1));
}
.content-text > .rte > * + :is(p,ul,ol), .layout_latest > .ce_text > * + :is(p,ul,ol) {
    margin-block-start: 1.25em;
}
header {
    &>.content-element-group {
        & >.content-element-group.Kopfzeile {
            background: var(--color_1);
            border-bottom: 0;
            & > .content-element-group {
                 margin-left: 0;
            }
            .mod_navigation {
                font-size: 20px;
                ul.level_1 {
                    justify-content: start;
                    gap: 0 0;
                    li :is(a, strong){
                        margin: 0 10px;
                        padding: 5px 10px;
                        @media(max-width:1440px){  
                            padding: 5px 5px;
                            margin: 0 5px;
                        }
                    }
                    li.active :is(a, strong){
                        border-bottom: 1px solid #FEFEFE;
                    }
                }
                a, strong {
                    color: #fff;
                }
            }
            .mod_logo {
                background-color: #fff;
                padding-left: 20px;
                padding-right: 20px;
                margin-right: 40px;
                width: 29vw;
                @media(max-width:1023px){  
                    width: auto;
                }
                figure { 
                    img { 
                        /* max-width: 200px; */
                    }
                }
            }
        }
    }
}

header {
    & > .content-element-group {
        & .Kopfzeile {
            & > .content-element-group {
                @media (max-width: 1023px) {
                    padding: 0;
                }
            }
        }
    }
}

/* header > .content-element-group .Kopfzeile {
    position: absolute;
    width: 100%;
    .scrolled_2 & {
        position: fixed;
        top: -100px;
    }
    .scroll-up & {
        transition: top .5s ease-in-out;
        top: 0;
        position: fixed !important;
    }
} */

.TitelMitTitelbild {
    padding: 0;
    background: var(--color_2);
    display: grid;
    grid-template-columns: 35% 65%;
    color: #fff;
    border-bottom: 100px solid #fff;
    .content-image { 
        margin-top: 0; 
        margin-bottom: -100px;
        padding: 0;

    }
    .content-text { 
        padding: 15px 20px;
        font-size: 50px;
        font-family: 'Noto Sans', sans-serif;
        line-height: 1;
         @media(max-width:1023px){  
            font-size: 12px;
            padding: 15px 10px;
        }
        figure { margin-bottom: 0; }
        img {
            width: 100%;
            height: auto;
            object-fit: cover;
            padding-left: 3vw;
        }
        .rte {
            margin-left: 7.4vw;
            @media(max-width:1023px){  
                margin-left: 0;
            }
        }
    }
}

.mod_article:has(.RahmenLinksUndUnten) {
    overflow: hidden;
    margin-top: -100px;
    padding-top: 100px;
    @media(max-width:1023px){  
        /* padding-top: 70px; */
    }
}
.RahmenLinksUndUnten {
    padding: 0 0 40px 40px;
    @media(max-width:1023px){  
        padding: 0 0 20px 10px;
    }
    h3 { 
        margin-top: 10px !important; 
    }
    & > .rte {
        padding-right: 10vw;
        @media(max-width:1023px){  
            padding-right: 0;
        }
    }
    &::after {
        pointer-events: none;
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 150%;
        height: calc(100% + 100px);
        border-left: 1px solid #000;
        border-bottom: 1px solid #000;
    }
}
.mod_article:has(.RahmenLinksObenUnten) { 
    overflow: hidden;
}
.RahmenLinksObenUnten {
    position: relative;
    padding: 40px 0 40px 40px;
    margin-top: 40px;
    margin-bottom: 40px;
    @media(max-width:1023px){  
        padding: 20px 0 20px 10px;
        margin-top: 50px !important;
        margin-bottom: 50px !important;
    }
    h3 { 
        margin-top: 0 !important; 
    }
    & > .rte {
        padding-right: 10vw;
        @media(max-width:1023px){  
            padding-right: 0;
        }
    }
    &::before, &::after {
        pointer-events: none;
        content: "";
        position: absolute;
        left: 0;
        width: 150%;
        height: calc(100% + 80px);
        border-left: 1px solid #000;
    }
    &::before {
        top: -40px;
        border-top: 1px solid #000;
    }
    &::after {
        bottom: -40px;
        border-bottom: 1px solid #000;
    }
}

.CTA_Video_Button {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 4;
    padding-left: 0;
    display: grid;
    align-content: center;
    pointer-events: none;
    .video-gallery {
        position: relative;
        background: var(--color_2);
        border-radius: 0 20px 20px 0;
        padding: 20px 20px 20px 80px ;
        left: -100%;
        transition: left .5s ease-in-out;
        overflow: hidden auto;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        @media(max-width:1023px){  
            padding: 20px 20px 60px 60px;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        }
        video { height: auto; border-radius: 5px; }
    }
    &:has(.activated) { 
        .video-gallery { 
            left: 0; 
            pointer-events: all;
        }
    }
    .rte {
        pointer-events: all;
        position: fixed;
        left: 0;
        top: calc( 50vh - 160px);
        background: #889B63;
        color: #fff;
        font-size: 25px;
        z-index: 9;
        text-decoration: none;
        border: 1px solid #fff;
        border-radius: 0 0 20px 20px;
        padding: 15px 20px 5px 20px;
        transform-origin: top left;
        transform: rotate(-90deg) translateX(-100%) translateY(-15px);
        transition: transform .3s ease-in-out;
        @media(max-width:1023px){
            border-radius: 0 0 50% 50%;
            i { 
                display: block !important; 
                height: 43px;
                padding-top: 4px;
                right: 5px;
                width: 15px;
                position: relative;
                svg { 
                    rotate: 90deg; 
                    width: 25px;
                    height: 25px;
                }
            }
            p {font-size: 0; }
        }
        &:hover {
            transform: rotate(-90deg) translateX(-100%) translateY(-5px);
        }
        i { display: none; }
    }
}

.Kacheln, .KachelnGrau, .KachelnWeiß {
    gap: 35px !important;
    text-align: center;
    & > * {
        justify-content: center;
        align-items: center;
        border-radius: 0;
    }
}

.Team {
    .content-text {
        position: relative;
        text-align: center;
        overflow: hidden;
        font-size: 13px;
        @media(max-width:1023px){  
            max-width: 500px;
        }
        figure { 
            margin-bottom: 0; 
            @media(max-width:1023px){  
                width: 100%;
                height: auto;
                img { 
                    width: 100%; 
                    height: auto; 
                    object-fit: cover; 
                }
            }
        }
        h4 {
            font-size: var(--font_size);
            font-family: 'Roboto', sans-serif;
            font-weight: 500;
            @media(max-width:1023px){  
                font-size: 22px;
            }
        }
        .rte, .rte2 {
            width: 100%;
            display: grid;
            align-content: center;
            justify-items: center;
            color: #fff;
            background: var(--color_1);
            padding: 20px;
            z-index: 2;
            transition: bottom .5s ease-in-out;
            p {
                margin-top: 5px;
            }
        }
        .rte2 {
            font-size: var(--font_size);
            position: absolute;
            bottom: 0;
            height: 100%;
            pointer-events: none;
            opacity: 0;
            transition: all .5s ease-in-out;
        }
        &:hover {
            .rte2 {
                bottom: 0;
                pointer-events: all;
                opacity: 1;
            }
        }
    }
}

.AbstandUnten0 {
    & > *:last-child .rte {
        margin-bottom: 20px;
    }
}

footer {
    background: var(--color_1);
    color: #fff;
    .Fußzeile .content-text {
        width: var(--footer_width);
        max-width: 100%;
        margin: 0 auto;
        padding: 30px 100px;
        text-align: right;
        @media(max-width:1023px){  
            padding: 20px 10px 70px 10px;
        }
        a {
            color: #fff;
            text-decoration: none;
            display: inline-block;
            margin-left: 6vw;
            @media(max-width:1023px){  
                display: block;
                margin-top: 20px;
            }
        }
    }
}

.form-confirmation {

}

.KontaktUndKarte {
    iframe {
        border: 1px solid #ddd !important;
    }
}

.StartseiteTitelbild {
    .content-text {
        width: auto;
        display: inline-block;
        background: linear-gradient(to left, rgb(106 101 46 / 70%), rgb(21 17 19 / 70%));
        margin-top: 0;
        transition: width .5s ease-in-out;
        &:hover {
            width: 100%;
        }
        figure {
            opacity: 0.5;
            display: inline-block;
            width: calc(40vw + 300px);
            padding-right: 300px;
            height: 120%;
            margin-bottom: -20px;
            padding-top: 10px;
            /* &::after {
                content: "";
                position: absolute;
                top: 0;
                right: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(to right, rgb(21 17 19 / 70%), rgb(106 101 46 / 70%));
            } */
        }
        .rte {
            position: absolute;
            bottom: 70px;
            right: 40px;
            font-size: 42px;
            font-family: 'Noto Sans', sans-serif;
            font-weight: 100;
            line-height: 1.6;
            color: #fff;
            text-align: right;
            @media(max-width:1023px){  
                position: relative;
                font-size: 25px;
                bottom: 30px;
                right: 20px;
            }
        }
    }
}

.Spaltenabstand0 {
    figure img { 
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

body::before {
    background: var(--color_3);
}

.Teaser {
    width: 1420px;
    max-width: 100%;
    margin-right: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    @media(max-width:1023px){  
        padding-left: 10px;
    }
    .content-text {
        color: #fff;
        padding-top: 80px;
        font-size: 18px;
        figure {
            filter: brightness(.4);
        }
        .rte {
            h3 {
                border-bottom: 5px solid #fff;
                padding-bottom: 5px;
                margin: 20px 20px 15px 20px;
                display: inline-block;
                font-size: 30px;
            }
            strong {
                font-weight: 300;
                margin-left: 20px;
                margin-bottom: 35px;
            }
        }
        a {
            margin-top: 40px;
            display: block;
            text-align: right;
            color: #fff;
            background: #BAAA08;
            padding: 10px 20px;
            text-decoration: none;
            font-weight: 100;
            svg {
                fill: #fff;
                margin-left: 10px;
                height: 31px;
                width: auto;
                top: 2px;
                position: relative;
                transition: margin-left .3s ease-in-out;
            }
            &:hover svg {
                margin-left: 0;
            }
        }
    }
}

.Telefon {
    width: 365px;
    position: fixed;
    right: 0;
    background: #B2A309;
    z-index: 3;
    top: 160px;
    padding: 20px 50px;
    border: 2px solid #fff;
    border-radius: 15px;
    margin-right: -80px;
    line-height: 1.2;
    @media(max-width:1023px){  
        display: none;
    }
    a {
        color: #fff;
        text-decoration: none;
    }
    figure {
        margin-right: 15px !important;
        margin-top: 6px;
        img {
            width: 37px;
            height: auto;
        }
    }
}

.Spalten2 {
    @media(max-width:1023px){ 
        display: block !important;
    }
}