* {
    scroll-behavior: smooth;
}
img {
    display: block;
}
.rte img {
    width: revert-layer;
}

.row {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}
h1 {
    font-family: 'Alegreya';
    font-size: 3.2rem;
    line-height: 1.1;
    margin: 1rem 0 3rem;
}
h2 {
    font-family: 'Alegreya';
    font-size: 2.4rem;
    line-height: 1.1;
    margin-top: 1rem;
}
h3 {
    font-family: 'Alegreya';
    font-size: 2rem;
    font-style: italic;
    letter-spacing: .06em;
    color: var(--c-brown-light);
}
h1+h2 {
    margin: -2.6rem 0 2rem;
}
h5 {
    font-size: 120%;
    text-transform: uppercase;
    color: var(--c-brown-light);
    margin: 0 0 1rem;
    letter-spacing: .1em;
    font-size: 1.2rem;
}
h6 {
    font-size: 120%;
}
.rte h2 {
    margin-top: 3rem;
}
.rte ul {
    padding-left: 1.7rem;
    list-style-type: disc;
}

p a, label a {
    color: var(--c-brown-light);
    text-decoration: none;
}
a.mail {
    position: relative;
    padding-left: 2rem !important;
}
a.mail::before {
    position: absolute;
    top: 0.15rem;
    left: 0;
    content: url('/files/theme-files/img/icon-mail.svg');
}
a.anfrage {
    position: relative;
    padding-left: 1.4rem !important;
}

a.anfrage::before {
    position: absolute;
    top: 0.15rem;
    left: 0;
    content: url('/files/theme-files/img/icon-man.svg');
}

.handschrift {
    font-family: 'Allison';
    font-size: 3rem;
    line-height: 1.3;
    margin-top: 1rem;
    margin-bottom: 0;
}
.btn, button {
    all: unset;
    position: relative;
    display: inline-block;
    padding: .6rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: #fff !important;
    font-family: "Alegreya", Georgia, serif;
    font-weight: 600;
    font-size: clamp(.9rem, 1.1vw, 1.1rem);
    letter-spacing: .14em;
    text-transform: uppercase;
    background-image: url('/files/theme-files/img/bg-btn.jpg');
    box-shadow: 0 6px 14px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
    transition: transform .15s ease, box-shadow .15s ease;
    margin: 1rem .75rem;
    cursor: pointer;
}

.btn::before, button:before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1.5px dashed rgba(255, 255, 255, .92);
    border-radius: 8px;
    pointer-events: none;
}
.btn:hover,
.btn:focus-visible,
button:hover {
    transform: rotate(-3deg); /* translateY(-2px);*/
}

.media--left figure {
    float: left;
}
.media--right figure {
    float: right;
}

.content-image img {
    width: 100%;
    height: auto;
}
figure {
    position: relative;
}
figure figcaption {
    position: absolute;
    bottom: 0;
    right: 0;
    color: #fff;
    text-shadow: 2px 2px #000;
    font-size: 75%;
    padding: .2rem .3rem;
}

/* ANCHOR - Formular  */

.formbody, .form-confirmation {
    background-color: var(--c-beige);
    color: var(--c-brown);
    padding: 2rem 4rem 3rem;
    margin: 2rem 0;
}
.formbody .row {
    padding: 0 !important;
    row-gap: 0;
}
.formbody .widget {
    margin-bottom: 1rem;
}
.formbody input,
.formbody textarea {
    padding: .5rem 1rem;
    border: 1px solid var(--c-brown);
    width: calc(100% - 2rem - 2px);
}
.formbody textarea {
    width: calc(100% - 2rem - 2px);
}
.formbody .checkbox_container span {
    display: block;
}
.formbody .checkbox_container input {
    width: auto;
    display: inline-block;
}
.formbody .widget-submit {
    text-align: right;
}

/* ANCHOR - Module  */

//smooth scrolling
@media (prefers-reduced-motion: no-preference) {
    a:has(:target) {
        scroll-behavior: smooth;
        scroll-padding-top: 8rem;
    }
}
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}
.swiper-pagination-bullet-active,
.swiper-pagination-bullet {
    background: #fff;
}

.mod_articlelist ul {
    display: flex;
    justify-content: center;
    margin: 0 0 3rem;
}

/* ANCHOR - Header  */
header {

}
header .global {
    background-color: var(--c-grey);
}
header .global ul {
    display: flex;
    justify-content: center;
    margin: .7rem 0;
}
header .global ul li a {
    display: block;
    padding: 0 2rem;
    font-size: .9rem;
    color: var(--c-brown);
    text-decoration: none;
}
header .menubar {
    display: flex;
    justify-content: space-between;
    position: relative;
}
header .menubar .mmenu {
    display: none;
}
header .menubar .mmenu button {
    padding: .85rem .7rem .6rem;
    margin: .7rem 0 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .25);
}
header .logo {
    display: block;
    margin: 1.2rem 4rem 1rem 0;
}
header #mainnavi {
    width: 100%;
    transition: min-height .3s;
}
header #mainnavi ul {
    display: flex;
    justify-content: flex-end;
/*    justify-content: space-between; */
    margin: 1rem 0;
}
header #mainnavi ul li a,
header #mainnavi ul li strong {
    display: block;
    padding: .3rem 1rem;
    color: var(--c-brown);
    text-decoration: none;
    border: 1px solid var(--c-brown);
    border-radius: 1.3rem;
    min-width: 11rem;
    text-align: center;
}
header #mainnavi ul li a.jobs {
    padding: .2rem .9rem;
    border: 2px solid var(--c-brown);
}
header #mainnavi ul li strong {
    background-color: var(--c-brown);
    color: #fff;
}
header #mainnavi ul li a:hover,
header #mainnavi ul li strong:hover {
    background-color: var(--c-beige);
    color: var(--c-brown);
}

/* ANCHOR - Main  */
main .mod_article .row {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
main .mod_article .row .row {
    padding: 0;
}
main img {
    display: block;
    width: 100%;
    height: auto;
}

/* ANCHOR - Main / Headerimage  */
.headerimage .row {
    margin-top: -15rem;
}
.headerimage .content-text .rte {
    background-color: var(--c-beige);
    padding: 4rem 6rem 4rem;
    position: relative;
    z-index: 1;
    text-align: justify;
    margin-bottom: 4rem;
}
.headerimage .content-text .rte:after {
    position: absolute;
    left: calc(50% - 2rem);
    bottom: -2rem;
    content: '';
    width: 0;
    height: 0;
    border: 2rem solid transparent;
    border-right: 2rem solid var(--c-beige);
    border-bottom: 2rem solid var(--c-beige);
    transform: rotate(45deg);
}

/* ANCHOR - Main / Background  */
.bg-brown {
    background-color: var(--c-brown);
    color: #fff;
    padding: 2rem 0 3rem;
}
.bg-brown a {
    color: var(--c-yellow);
    text-decoration: none;
}
.bg-beige {
    background-color: var(--c-beige);
    color: var(--c-brown);
    padding: 1rem 3rem 2rem;
    margin: 2rem 0;
}

.bg-beige a {
    color: var(--c-yellow);
    text-decoration: none;
}

.bg-radial {
    position: relative;
    background: transparent radial-gradient(closest-side at 50% 50%, #C90017 0%, #65000C 100%) 0% 0% no-repeat padding-box;
}
.bg-radial.startpage:after {
    position: absolute;
    top: 0;
    content: "";
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0, transparent 72%, #fff 72%, #fff 100%);
}
.bg-radial .content-image.logo figure {
    width: 600px;
    margin: 8rem auto 0;
}
.bg-radial .content-image.schwippbogen {
    margin-bottom: -2rem;
}
.bg-radial .content-image.schwippbogen figure {
    width: 90%;
    margin: 1rem auto -3px;
}
.bg-radial .content-image.schwippbogen figure img {
    width: 100%;
    height: auto;
}
.bg-radial .bg-beige {
    background-color: var(--c-beige);
    padding: 4rem 6rem 4rem;
    position: relative;
    z-index: 1;
    margin: 0 0 4rem;
}

.bg-radial .bg-beige:after {
    position: absolute;
    left: calc(50% - 2rem);
    bottom: -2rem;
    content: '';
    width: 0;
    height: 0;
    border: 2rem solid transparent;
    border-right: 2rem solid var(--c-beige);
    border-bottom: 2rem solid var(--c-beige);
    transform: rotate(45deg);
}


.bg-kiefer {
    background-image: url('/files/theme-files/img/bg-kiefer.jpg');
    background-size: cover;
    background-position: center center;
}
/* ANCHOR - Main / Teaser  */
.teaser {
    position: relative;
    margin-top: 4rem;
}
.teaser figure {
    margin-top: 6rem;
    margin-bottom: 4rem;
}
.teaser .rte {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(60% - 14rem);
    padding: 5rem 7rem 5rem;
}
.teaser .rte h5 {
    text-transform: uppercase;
    color: var(--c-yellow);
    margin: 0 0 1rem;
    letter-spacing: .1em;
    font-size: 1.2rem;
}
.teaser .rte:before {
    position: absolute;
    top: 0;
    left: -6rem;
    content: '';
    width: 0;
    height: 0;
    border: 3rem solid transparent;
    border-right: 3rem solid var(--c-brown);
    border-bottom: 3rem solid var(--c-brown);
}
.teaser .rte h2 {
    font-size: 2.4rem;
}
.teaser-brown .rte {
    background-color: var(--c-brown);
    color: #fff;
}
.teaser-hell .rte {
    right: auto;
    left: 0;
    background-color: var(--c-beige);
}
.teaser-hell .rte:before {
    left: auto;
    right: -6rem;
    border: 3rem solid transparent;
    border-left: 3rem solid var(--c-beige);
    border-bottom: 3rem solid var(--c-beige);
}
.teaser-hell .rte h5 {
    color: var(--c-brown-light);
}

/* ANCHOR - Footer */
footer .logo {
    margin-top: 2rem;
}
footer h3 {
    color: #fff;
}
footer .mod_customnav li a,
footer .mod_customnav li strong {
    display: block;
    text-transform: uppercase;
    line-height: 2.6;
    letter-spacing: .1em;
}
footer .social {
    display: flex;
}
footer .instagram,
footer .facebook {
    display: inline-block;
    float: left;
    margin: 0 .7rem 1.4rem 0;
    grid-area: a;
    align-self: end;
}
footer .facebook {
    grid-area: b;
}
footer .logo {
    margin-right: 40%;
    width: 60%;
}

/* ANCHOR - Media Queries */
@media screen and (max-width: 1360px) {
    .row {
        width: calc(100% - 2rem);
        padding-right: 1rem;
        padding-left: 1rem;
    }
    .row .row {
        width: initial;
        padding-right: 0;
        padding-left: 0;
    }
}
/* ANCHOR - Media Queries / Pad / XL */
@media screen and (max-width: 1200px) {
    header #mainnavi ul li a,
    header #mainnavi ul li strong {
        padding: .3rem 1rem;
        min-width: inherit;
    }
    .teaser figure {
        width: 60%;
    }
    .teaser .rte {
        width: calc(60% - 6em);
        padding: 2rem 3rem 2rem;
    }
}
/* ANCHOR - Media Queries / Pad / LG */
@media screen and (max-width: 992px) {
    footer .logo {
        margin-right: 30%;
        margin-left: 30%;
        width: 40%;
    }
}

/* ANCHOR - Media Queries / Pad / MD */
@media screen and (max-width: 768px) {
    p, label, legend {
        font-size: 1.2em;
    }

    header .menubar .mmenu {
            display: block;
            float: right;
        }
    
    header #mainnavi {
        position: absolute;
        top: 5.55rem;
        width: calc(100% + 2rem);
        left: 0;
        height: 0;
        min-height: 0;
        z-index: 8;
        background-color: #fff;
        margin: -1rem;
        padding: 0;
        overflow: hidden;
    }

    header #mainnavi ul li {
        text-align: center;
    }

    header #mainnavi ul li a,
    header #mainnavi ul li strong {
        display: inline-block;
        width: inherit;
        margin: .5rem auto;
    }

    .navOpen header #mainnavi {
        top: 5.55rem;
        min-height: 12rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    header #mainnavi ul {
        display: inline;
    }

    .bg-radial .bg-beige {
        padding: 1rem 0;
    }
    .bg-radial .content-image.logo figure {
        width: 90%;
        margin-top: 10vh;
    }
    .headerimage .content-text .rte {
        padding: 2rem;
    }
    .mod_articlelist ul {
        display: block;
        text-align: center;
    }
    .teaser {
        margin-top: 0;
    }
    .teaser figure {
        float: none;
        width: 100%;
        margin: 0;
    }
    .teaser .rte {
        position: relative;
        width: calc(100% - 4rem);
        padding: 2rem 2rem 2rem;
    }
    .teaser .rte:before {
        display: none;
    }
    .formbody, .form-confirmation {
        padding: 2rem;
    }
}
/* ANCHOR - Media Queries / Pad / SM */
@media screen and (max-width: 576px) {
    header .global ul li a {
        min-height: 20px;
        padding: 0 .5rem;
    }
    header .global ul li a.mail {
        font-size: 0;
    }
    h1 {
        font-size: 2rem;
        margin: .5rem 0 1rem;
    }
    h2, .rte h2, .teaser .rte h2 {
        font-size: 1.7rem;
        margin-top: 1rem;
    }
    h3 {
        margin-top: 0;
    }
}

@media screen and (max-width: 440px) {
    .formbody .row input,
    .formbody .row textarea {
        width: calc(100% - 4rem - 2px);
    }
}