@import url('https://fonts.verwaltungsportal.de/import/?family=Noto+Sans:300,400,300i,400i,700,700i');
@import url("https://fonts.verwaltungsportal.de/import/?family=Caveat:400,400i");

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: #464239 #ffffff;
}

body {
    font-family: "Noto Sans", sans-serif;
    font-weight: 300;
    color: #464239;
    background: #f4eee3;
    font-size: 1rem;
    /* 1rem = 16px */
    line-height: 1.5;
}

@media (min-width: 768px) {
    body {
        font-size: 1.125rem;
    }
}

a {
    color: #464239;
}

a:is(:hover, :focus) {
    color: #464239;
    text-decoration: underline;
}

#content a {
    font-weight: 400;
}

b,
strong {
    font-weight: 700;
}

@media (min-width: 992px) {
    body {
        padding-left: clamp(25px, 4vw, 45px);
        padding-right: clamp(25px, 4vw, 45px);
    }
}

/* -------------------------------------------- topbar -------------------------------------------- */

#topbar {
    padding: 10px 0;
}

@media (min-width: 992px) {
    #topbar {
        padding: 25px 0 20px 0;
    }
}

/* -------------------------------------------- logo -------------------------------------------- */

#logo {
    display: inline-block;
    background-color: #f4eee3;
    padding: 12px 15px;
}

#logo img {
    display: block;
}

@media (max-width: 991px) {
    #logo img {
        max-width: calc(100vw - 120px);
        width: 100%;
    }
}

/* -------------------------------------------- taContact -------------------------------------------- */

.taContact {
    color: #4c4c4c;
    font-weight: 300;
    position: relative;
    padding-left: 55px;
}

@media (max-width: 991px) {
    .taContactMobil {
        padding: 10px;
        font-size: 1rem;
    }

    .taContact {
        padding-left: 40px;
    }

    .taContact+.taContact {
        margin-top: 10px;
    }
}

.taContact::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: 40px;
    height: 40px;
    border-radius: 100%;
}

.taContact1::before {
    background: url('../img/icon-telefon.png') center no-repeat, #ffffff;
}

.taContact2::before {
    background: url('../img/icon-standort.png') center no-repeat, #ffffff;
}

@media (min-width: 992px) {
    .taContact {
        font-size: 1.125rem;
    }
}

/* #region ---------------------------------- navigation ---------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background-color: #ffffff;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #464239;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 10px;
        transition: transform 200ms linear, opacity 200ms linear;
    }

    #burgerButton[aria-expanded="true"] #burgerButtonInner {
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    #burgerButton[aria-expanded="true"]::before {
        opacity: 0;
    }

    #burgerButton[aria-expanded="true"]:after {
        transform: rotate(45deg) translate(-4px, -6px);
    }

    #burgerButtonInner {
        top: 16px;
    }

    #burgerButton::before {
        top: 24px;
        content: "";
    }

    #burgerButton::after {
        top: 32px;
        content: "";
    }

    .navbar-nav {
        margin: 20px 0;
    }

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #f4eee3;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 100;
        height: auto !important;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        overflow-y: auto;
        transition: left 300ms linear, opacity 300ms linear, box-shadow 600ms linear;
        box-shadow: 250px 0 50vw 50vw rgba(255, 255, 255, 0);
    }

    .navbar-collapse:is([aria-expanded="true"], .in) {
        left: 0;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        box-shadow: 250px 0 50vw 50vw rgba(0, 0, 0, 0.6);
    }

    .navbar-header {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 101;
    }

    .dropdown-toggle-button-wrapper {
        top: 5px;
    }

    .dropdown-toggle-button-wrapper2 {
        top: 2px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: 10px 0;
        background: #f4eee3;
        position: relative;
    }

    .is-sticky nav.horizontally {
        border-bottom: 1px solid #e5e1da;
    }

    nav.horizontally .navbar-nav>li {
        display: inline-block;
    }

    nav.horizontally .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

    nav.horizontally .navbar-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: block !important;
        pointer-events: none;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    nav.horizontally .navbar-nav [class*="secondlevel"]>ul {
        left: 100%;
        top: 0;
    }

    nav.horizontally .navbar-nav li {
        position: relative;
    }

    nav.horizontally .navbar-nav li:is(.open, :hover)>ul,
    nav.horizontally .navbar-nav li.open:focus-within>ul,
    nav.horizontally .navbar-nav li[class*="secondlevel"]>ul[style*="block"] {
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible;
    }

    nav.horizontally .navbar-nav li.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.horizontally .navbar-nav li:is(:hover, :focus)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #464239;
    font-weight: 400;
    text-align: left;
    padding: 10px 15px;
    text-transform: uppercase;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
    position: relative;
}

@media (max-width: 991px) {
    nav.horizontally a[class*="toplevel"].dropdown-toggle {
        padding-right: 35px;
    }
}

@media (min-width: 992px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 25px;
    }

    nav.horizontally a[class*="toplevel"] {
        padding: 13px 5px;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-align: center;
    }
}

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 0;
    height: 2px;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    background: #464239;
    transition: width 300ms linear;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"]::before {
        bottom: unset;
        top: 0;
        right: 0;
        margin: auto;
        max-width: 65px;
    }
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"].open>a,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"][class*="_over"]>a,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    color: #464239;
}

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::before,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"].open>a::before,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::before,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::before {
    width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #464239;
}

@media (max-width: 991px) {
    nav.horizontally [class*="toplevel"] ul {
        padding: 15px;
    }
}

@media (min-width:992px) {
    nav.horizontally [class*="toplevel"] ul {
        padding-top: 20px;
        padding-bottom: 20px;
        border-radius: 2px;
    }

    nav.horizontally [class*="toplevel"]>ul {
        left: 50%;
        transform: translate(-50%, 0);
    }

    nav.horizontally [class*="secondlevel"]>ul {
        margin-top: -20px;
        border-radius: 2px;
        margin-left: 10px;
    }

    nav.horizontally [class*="secondlevel"]>ul::before {
        content: "";
        position: absolute;
        display: block;
        width: 10px;
        top: 0;
        bottom: 0;
        left: -10px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #f4eee3;
    font-weight: 300;
    text-align: left;
    padding: 8px 25px 8px 38px;
    font-size: 0.9375rem;
    line-height: 1.2;
    text-decoration: none;
    position: relative;
}

@media(max-width:991px) {
    nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
        padding-right: 35px;
    }
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    content: "\00BB";
    position: absolute;
    top: 7px;
    left: 25px;
    margin-right: 4px;
}

/* secondlevel + thirdlevel over */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus) {
    background: #ffffff;
    color: #464239;
}

/* #endregion ------------------------------- navigation ---------------------------------------- */

/* #region ------------------------------------ banner ------------------------------------------ */

#headerpic {
    margin: 0;
    position: relative;
    overflow: hidden;
}

#video_wrapper {
    width: 100%;
    height: auto;
    max-height: HÖHE DES VIDEOFENSTERS !important;
    overflow: hidden;                  
    position: relative;
}

#body-video-background {
    width: 100%;
    position: relative;
    margin-top:-20%; /* DIESEN WERT FÜR OPTIMALE HÖHENVERSCHIEBUNG ANPASSEN. 0 LASSEN FALLS VIDEODATEI HÖHE BEREITS = GEWÜNSCHTE HÖHE 
    max-width:100%;
    /*object-fit: cover;*/
} 

@media(max-width:991px){
    #video_wrapper{
        display:none;
    }
}

@media (max-width: 991px) {
    #bannerOverlay {
        padding: 30px 0 40px 0;
    }
}

#slogan {
    font-weight: 400;
    font-family: "Caveat", sans-serif;
    padding: 15px 25px;
    font-size: clamp(1.75rem, 3vw, 3.75rem);
    line-height: 1.2;
    position: relative;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.25);
    -webkit-animation: sloganSwipe 3s;
    animation: sloganSwipe 3s;
}

@media (min-width: 992px) {
    @keyframes sloganSwipe {
        0% {
            opacity: 0;
            bottom: -50%;
        }

        50% {
            opacity: 0;
            bottom: -20%;
        }

        100% {
            opacity: 1;
            bottom: 0%;
        }
    }
}

#slogan b,
#slogan strong {
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 3rem);
}

@media (min-width: 992px) {
    #slogan {
        display: inline-block;
        pointer-events: auto;
        padding: 0 25px 15px 25px;
        color: #ffffff;
    }

    #slogan .tab {
        position: relative;
    }

    #bannerOverlay {
        position: absolute;
        pointer-events: none;
        right: 0;
        bottom: 30px;
        left: 0;
        z-index: 12;
    }
}

/* #endregion --------------------------------- banner ------------------------------------------ */

/* ------------------------------------------- content ------------------------------------------ */

#content {
    text-align: left;
}

body:not(.index) #content {
    padding-top: clamp(30px, 4vw, 50px);
    padding-bottom: clamp(30px, 6vw, 70px);
}

/* -------------------------------------------- teaser ------------------------------------------ */

#teaser {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #464239;
    padding: 150px 0;
}

@media (min-width: 992px) {
    #teaser {
        background-attachment: fixed;
        padding: 250px 0;
    }
}

/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #464239;
    font-weight: 400;
    line-height: 1.2;
    font-family: "Caveat", sans-serif;
}

h1,
.h1,
.legacy_h1 {
    font-size: clamp(1.875rem, 3vw, 3.125rem);
}

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.6875rem, 3vw, 2.8125rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.5625rem, 3vw, 2.5rem);
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
    font-size: clamp(1.5rem, 2vw, 2.1875rem);
}

h5,
.h5,
.legacy_h5 {
    font-size: clamp(1.375rem, 2vw, 1.875rem);
}

h6,
.h6,
.legacy_h6 {
    font-size: clamp(1.25rem, 2vw, 1.5625rem);
}

/* #region ----------------------------------- footer ------------------------------------------- */

@media (max-width: 767px) {
    #footer>.row>div+div {
        border-top: 1px solid #e5e1da;
        margin-top: 20px;
        padding-top: 20px;
    }
}

@media (min-width: 768px) {
    #footer>.row>div {
        padding-top: 10px;
        padding-bottom: 10px;
        border-left: 1px solid #e5e1da;
    }
}

#footer {
    padding: 30px 0 45px 0;
    color: #464239;
    font-size: 1rem;
}

#footer .footerContactTab a {
    position: relative;
}

#footer .footerContactTab .tabHeadline {
    text-transform: uppercase;
    font-size: 1.625rem;
    color: #464239;
    margin-bottom: 5px;
}

#footer a:is([href*="mailto:"], a[href*="tel:"]) {
    position: relative;
    display: inline-block;
    padding-left: 30px;
    margin-top: 5px;
}

#footer a:is([href*="mailto:"]) {
    color: #683808;
    text-decoration: underline;
    font-weight: 400;
}

#footer a:is([href*="mailto:"], a[href*="tel:"])::before {
    content: '';
    display: block;
    position: absolute;
    height: 22px;
    width: 22px;
    background: url('../img/mail-icon.png') center no-repeat, #464239;
    top: 50%;
    left: 0;
    border-radius: 50%;
    transform: translateY(-50%);
}

#footer a[href*="tel:"]::before {
    background: url('../img/phone-icon.png') center no-repeat, #464239 !important;
}

#innerfooter ul {
    padding: 0;
    line-height: 1.7;
}

#innerfooter a {
    color: #464239;
    text-decoration: none;
    display: inline-block;
}

#innerfooter a:is(:hover, :focus) {
    color: #683808;
}

/* #endregion -------------------------------- footer ------------------------------------------- */

/* ------------------------------------------- vernetzt ----------------------------------------- */

.lastOne {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    flex-direction: column;
}

#vernetzt {
    gap: 12px;
    text-align: right;
    font-size: 0.875rem;
    color: #464239;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}

/* ------------------------------------------ scroll top ---------------------------------------- */

#scrollTop {
    font-size: 0;
    background-color: #464239;
    color: #ffffff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: block;
    position: relative;
    margin: 0 20px 30px auto;
}

#scrollTop:is(:hover, :focus) {
    background-color: #683808;
}

#scrollTop::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    left: 9px;
    top: 12px;
    border-style: solid;
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent #ffffff transparent;
    transform: none;
}