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

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

body {
    font-family: "Noto Sans Display", sans-serif;
    font-weight: 400;
    color: #444444;
    background: #ffffff;
    font-size: clamp(1rem, 1vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.5;
}


a {
    color: #a21413;
}

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

#content a,
b,
strong {
    font-weight: 700;
}

#content a {
    font-style: italic;
}

#overflow {
    position: relative;
    overflow: hidden;
}

@media (min-width: 1400px) {
    header {
        position: relative;
    }

    header::before {
        content: '';
        position: fixed;
        pointer-events: none;
        display: block;
        z-index: 12;
        top: 0;
        left: 0;
        width: 15vw;
        height: 100vh;
        background: url('../img/vorhang-links.png') left top -30px no-repeat;
        background-size: contain;
    }


    header::after {
        content: '';
        position: fixed;
        pointer-events: none;
        display: block;
        z-index: 12;
        top: 0;
        right: 0;
        width: 15vw;
        height: 100vh;
        background: url('../img/vorhang-rechts.png') right top -30px no-repeat;
        background-size: contain;
    }


    .headerDeko::before {
        content: '';
        position: absolute;
        pointer-events: none;
        display: block;
        z-index: 13;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 97px;
        background: url('../img/burdoere.png') center top / 100% auto no-repeat;
    }

    .headerDeko {
        position: relative;
    }
}

.tabIntro {
    padding-top: clamp(50px, 8vw, 150px);
}

/* #region ------------------------------------ logo -------------------------------------------- */

#logo {
    display: inline-block;
}

body.intro #logo {
    padding: 30px 0;
}

@media (max-width: 991px) {
    body:not(.intro) #logo {
        position: fixed;
        left: 15px;
        top: 7px;
        z-index: 102;
    }
}

@media (min-width: 992px) {
    #logo {
        padding: 25px;
        position: relative;
    }
}

@media (min-width: 1200px) {
    #logo {
        padding: 25px 45px 55px 45px;
    }

    body:not(.intro) #logo {
        padding: 105px 45px 25px 45px;
    }
}

#logo img {
    display: block;
}

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

/* #endregion --------------------------------- logo -------------------------------------------- */

/* #region ----------------------------------- contact ------------------------------------------ */

@media (max-width: 991px) {
    header {
        padding-top: 70px;
    }

    .bannerCol {
        padding-right: 0;
    }

    body.index .bannerCol {
        padding-bottom: 30px;
    }

    body:not(.index) .contact {
        display: none;
    }
}

.contact {
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 20;
}

@media (min-width: 1200px) {
    body.index .contact>.row>*:first-child {
        padding-left: 45px;
        padding-right: 50px;
    }
}

.contact .contactHeadline {
    font-size: 1.5625rem;
    margin: 0 0 clamp(15px, 2vw, 25px) 0;
}

.contact a {
    font-style: italic;
    font-weight: 700;
}

/* #endregion -------------------------------- contact ------------------------------------------ */

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

#slider {
    height: clamp(300px, 46vw, 450px);
}

#headerpic a.nivo-prevNav {
    left: 90px;
}

@media (min-width: 576px) {
    #headerpic a.nivo-prevNav {
        left: 120px;
    }

    #headerpic a.nivo-nextNav {
        right: 95px;
    }

    #headerpic .slider-wrapper {
        margin-right: -13vw;
    }
}

@media (min-width: 768px) {
    #headerpic a.nivo-prevNav {
        left: 180px;
    }

    #headerpic a.nivo-nextNav {
        right: 115px;
    }
}

@media (min-width: 992px) {
    #headerpic a.nivo-nextNav {
        right: 65px;
    }

    #headerpic .slider-wrapper {
        margin-left: -100px;
        margin-right: calc(-50vw + 481px);
    }
}

@media (min-width: 1200px) {
    #headerpic .slider-wrapper {
        margin-left: -140px;
        margin-right: calc((clamp(1200px, 100vw, 1930px) - 1166px) / -2);
    }
}

#headerpic {
    padding: 0;
    position: relative;
}

.slider-wrapper,
.nivo-main-image,
#slider>a>div {
    height: 100% !important;
}

.slider-mask {
    display: block;
    background: url('../img/banner-overlay.png') bottom left / cover no-repeat;
}

#headerpic .nivo-controlNav {
    bottom: unset;
    top: 20px;
}

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

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

#content {
    text-align: left;
}

body:not(.intro) main {
    padding-top: clamp(30px, 4vw, 65px);
    padding-bottom: clamp(30px, 3vw, 45px);
    position: relative;
}

#contentbottom_left {
    position: relative;
    z-index: 2;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        width: 46px;
        height: 40px;
        cursor: pointer;
        background-color: #ffffff;
        padding: 6px 8px;
        margin: 6px 0 0 auto;
        position: relative;
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #a21413;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 3px;
        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: 10px;
    }

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

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

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

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 70px;
        background: #ffffff;
        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 {
        height: 70px;
        line-height: 1;
        border-radius: 2px;
        padding: 10px 15px;
        background-color: #ffffff;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 101;
        box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    nav.navbar {
        border: 1px solid #dbe2e1;
        border-right: unset;
    }

    nav.navbar li:is([class*="_over"], [class*="open"])>ul {
        display: block;
    }
}

/* toplevel */

nav.navbar a[class*="toplevel"] {
    color: #444444;
    font-weight: 700;
    text-align: left;
    padding: 8px 15px 8px 15px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (min-width: 992px) {
    nav.navbar a[class*="toplevel"] {
        padding: 13px clamp(15px, 2vw, 28px);
    }

    nav.navbar a[class*="toplevel"].dropdown-toggle::after {
        content: "+";
        position: absolute;
        display: block;
        right: 10px;
        top: 50%;
        margin-top: -14px;
        font-variant: normal;
        font-weight: 400;
    }
}

nav.navbar a[class*="toplevel"].dropdown-toggle {
    padding-right: 35px;
}

nav.navbar li[class*="toplevel"]+li {
    border-top: 1px solid #dbe2e1;
}

/* toplevel-over */

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

/* secondlevel + thirdlevel dropdown-box */

nav.navbar [class*="toplevel"]>ul {
    border-top: 1px solid #dbe2e1;
    padding: 12px 0 12px 14px;
    position: relative;
}

@media (min-width: 1200px) {
    nav.navbar [class*="toplevel"]>ul {
        padding-left: 30px;
    }
}

nav.navbar [class*="toplevel"]>ul::after {
    content: "";
    display: block;
    position: absolute;
    top: 28px;
    left: 20px;
    bottom: 28px;
    width: 1px;
    background: #dbe2e1;
}

@media (min-width: 1200px) {
    nav.navbar [class*="toplevel"]>ul::after {
        left: 35px;
    }
}

/* secondlevel + thirdlevel */

nav.navbar a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #444444;
    font-weight: normal;
    text-align: left;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

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

nav.navbar a[class*="secondlevel"] {
    padding: 9px 15px 9px 30px;
}

nav.navbar a[class*="secondlevel"]::before {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    left: 0;
    top: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #a21413;
    transition: background 300ms linear;
}

nav.navbar a[class*="thirdlevel"] {
    padding: 7px 15px 7px 45px;
}

/* secondlevel + thirdlevel over */

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

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

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

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

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

.tabIntro .tabHeadline {
    margin-bottom: 0;
}

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

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.8125rem, 3.5vw, 2.5rem);
}

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
    font-size: clamp(1.625rem, 2.5vw, 1.875rem);
}

h5,
.h5,
.legacy_h5 {
    font-size: 1.5rem;
}

h6,
.h6,
.legacy_h6 {
    font-size: 1.375rem;
}

/* ----------------------------------------------- @1f footer ----------------------------------------------- */

#f1 {
    color: #fff;
    font-size: 1rem;
    padding-top: 60px;
    padding-bottom: 90px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#f1>.row {
    row-gap: 30px;
}

#f1 a,
#f1 a:hover,
#f1 a:focus {
    color: #fff;
}

#f1 .footerTab {
    font-size: 1rem;
}

#f1 .footerTab a {
    font-style: italic;
    font-weight: 700;
}

#f1 .tabHeadline {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
}

/* --------------------------------------------- innerfooter -------------------------------------------- */

#innerfooter ul {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding: 0;
}

#innerfooter li {
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

#innerfooter a {
    text-decoration: none;
    position: relative;
    display: block;
    font-size: 1rem;
    font-weight: 400;
    padding: 6px 10px 6px 25px;
}

#innerfooter a::before {
    content: "";
    position: absolute;
    display: block;
    left: 10px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 300ms linear;
}

#innerfooter a:hover::before,
#innerfooter a:focus::before {
    background: #fff;
}

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

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

#vernetzt span span {
    display: block;
}

#vernetzt strong {
    font-style: italic;
}