@import url('https://fonts.verwaltungsportal.de/import/?family=Montserrat:300,400,300i,400i,500,600,700,500i,600i,700i');

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

body {
    font-family: "Montserrat", sans-serif;
    color: #2d2d2d;
    background: #ffffff;
    font-size: clamp(1rem, 2vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.5;
}

a {
    color: #b9341d;
}

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

b,
strong {
    font-weight: 700;
}

a:focus {
    outline: 3px solid #a40000 !important;
}

button:focus {
    outline: 3px solid #a40000 !important;
}

form:focus {
    outline: 3px solid #a40000 !important;
}

#newsletter_input:focus,
#newsletter_submit:focus,
#search_input1:focus,
#search_submit1:focus {
    outline: 3px solid #a40000 !important;
}
/* ------------------------------------------- header ------------------------------------------- */

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

@media (max-width: 991px) {
    #logo img {
        padding: 5px 0;
    }
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #menu {
        padding: 10px 0;
        position: static !important;
        background-color: #ffffff;
        -webkit-box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
        box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
    }

    #burgerButton {
        font-size: 0;
        border: none !important;
        position: relative;
        z-index: 1002;
        display: block;
        width: 46px;
        height: 40px;
        border-radius: 2px;
        cursor: pointer;
        background-color: #ffffff;
        padding: 3px;
    }

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

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

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

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

    #burgerButtonInner {
        top: 10px;
    }

    #burgerButton:before {
        top: 18px;
    }

    #burgerButton:after {
        top: 26px;
    }

    #burgerButton:before, #burgerButton:after {
        content: "";
        display: block;
    }

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

    .navbar-collapse {
        top: 0;
        background: #ffffff;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 100;
        height: auto !important;
        -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        overflow-y: auto;
        -webkit-transition: left 300ms linear, opacity 300ms linear;
        -moz-transition: left 300ms linear, opacity 300ms linear;
        -ms-transition: left 300ms linear, opacity 300ms linear;
        -o-transition: left 300ms linear, opacity 300ms linear;
        transition: left 300ms linear, opacity 300ms linear;
    }

    .navbar-collapse.collapse.in {
        left: 0;
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-header {
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        background-color: #ffffff;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 101;
        -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    .navbar-collapse.in:after {
        content: "";
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
        display: block;
        width: 90px;
        background-color: rgba(0, 0, 0, 0.5);
    }
}

/* menu desktop */

@media (min-width: 992px) {
    #menu {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), transparent 6px), #f9f9f9;
        box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.15);
    }

    .is-sticky #menu {
        left: unset !important;
    }

    .navbar-collapse>.row {
        padding-top: 47px;
        padding-bottom: 47px;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
    }

    nav.horizontally .navbar-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: block !important;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        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.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.horizontally .navbar-nav li:is(:hover)>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:is(:hover, :focus)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #2a2a2a;
    font-weight: 700;
    text-align: left;
    padding: 10px 35px;
    position: relative;
    z-index: 1;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 45px 20px;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}


/* 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: #ffffff;
    background: linear-gradient(to bottom, #006daf, #004d94);
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
}

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 4px;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        margin: -10px 0 0 4px;
    }

    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>ul::before {
        content: "";
        position: absolute;
        display: block;
    }

    nav.horizontally [class*="toplevel"]>ul::before {
        height: 4px;
        left: 0;
        right: 0;
        top: -4px;
    }

    nav.horizontally [class*="secondlevel"]>ul::before {
        width: 4px;
        top: 0;
        bottom: 0;
        left: -4px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    background-color: transparent;
    color: #2d2d2d;
    font-weight: 400;
    text-align: left;
    padding: 6px 35px;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (min-width: 992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        text-align: left;
        padding: 6px 15px;
    }
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    content: "\2013";
    margin-right: 12px;
    opacity: 0;
}

/* 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) {
    color: #b9341d;
    background-color: transparent;
}
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a::before ,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus)::before ,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a::before ,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus)::before ,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a::before ,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus)::before  {
opacity: 1;
}

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

/* -------------------------------------------- banner ------------------------------------------ */

#slider {
    max-height: clamp(300px, 42vw, 500px);
    overflow: hidden;
    position: relative;
}

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

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

@media (min-width: 768px) {
    #bannerOverlay {
        margin-top: 0;
        margin-bottom: 0;
        position: absolute;
        left: 0;
        right: 0;
        z-index: 51;
        pointer-events: none;
        bottom: clamp(60px, 8vw, 115px);
    }

    #headerpic {
        background: #313131;
    }
}

#slogan {
    pointer-events: auto;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 30px;
    font-size: clamp(1.125rem, 3vw, 1.875rem);
    line-height: 1.2;
    font-weight: 300;
    width: 100%;
}

@media (min-width: 768px) {
    #slogan {
        color: #ffffff;
        margin-top: 0;
    }
}

#slogan a,
#teaser a :is(b, strong) {
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: #ffffff;
    background: linear-gradient(to bottom, rgba(181,49,27,1) 0%,rgba(165,36,19,1) 100%);
    display: inline-block;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 1);
    position: relative;
    z-index: 1;
    text-decoration: none;
    margin-top: 15px;
    text-transform: uppercase;
}

#slogan a:is(:hover, :focus),
#teaser a :is(b, strong):is(:hover, :focus) {
    background: linear-gradient(to bottom, rgba(0,109,175,1) 0%,rgba(0,77,148,1) 100%);
}

#slogan :is(b, strong) {
    display: block;
    letter-spacing: normal;
    font-size: clamp(1.625rem, 6vw, 4.0625rem);
}

#slogan :is(b, strong)::before,
#slogan :is(b, strong)::after {
    content: "\2013";
    margin: 0 10px;
}

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

.slider-wrapper,
#slider {
    height: 100%;
}

.slider-mask {
    display: block;
    background: rgba(29, 29, 29, 0.6) url('../img/banner-bogen.png') center bottom / 100% auto no-repeat;
}

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

#teaser {
    padding: 40px 0;
}

#teaser>.row {
    row-gap: 20px;
}

@media (max-width: 575px) {
    #teaser>.row>*+* {
        padding-top: 20px;
        border-top: 1px solid rgba(83, 83, 83, 0.2);
    }
}

@media (min-width: 768px) {
    #teaser>.row>* {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

#teaser>.row {
    padding-bottom: 30px;
    border-bottom: 2px solid #0069ac;
}

#teaser .tabHeadline::after {
    content: "";
    display: block;
    margin: 4px 0 8px 0;
    height: 1px;
    width: 95px;
    background: #b9341d;
}

#teaser img {
    display: block;
    margin-bottom: 15px;
}

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

#content {
    text-align: left;
    padding-top: 30px;
    padding-bottom: clamp(30px, 4vw, 60px);
}

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

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

h1,
.h1,
.legacy_h1 {
    font-size: 28.8px;
    font-size: clamp(1.875rem, 4vw, 2.1875rem);
}

.index h1,
.index .h1,
.index .legacy_h1 {
    text-align: center;
}

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

h3,
.h3,
.legacy_h3 {
    font-size: 1.75rem;
}

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

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

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

/* -------------------------------------------- footer ------------------------------------------ */

footer {
    font-weight: 400;
}

footer a {
    color: #ffffff;
    text-decoration: underline;
}

#performance {
    background-color: #0f1a22;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fafafa;
    padding: 30px 0;
}

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

#performance a:is(:hover, :focus) {
    color: #fff;
}

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

.footerHeadline {
    margin: 0;
    color: #fafafa;
    font-weight: 400;
}

.footerHeadline::after {
    content: "";
    display: block;
    margin: 6px auto 25px auto;
    height: 1px;
    width: 140px;
    background: #b9341d;
}

@media (min-width: 768px) {
    .footerHeadline::after {
        margin-left: 0;
        margin-right: 0;
    }
}

.tab_link_mandat a {
    text-decoration: none;
}

.tab_link_title a {
    font-weight: 400;
    text-decoration: none;
}

.tab_spacer {
    height: 15px;
}

.tab_link_mehr {
    color: transparent;
}

@media (max-width: 991px) {
    .tab_link_mehr {
        text-align: center;
    }
}

.tabOne a::after {
    content: " »";
}

#innerfooter {
    padding: 25px 15px;
    background: rgba(29, 29, 29, 0.3);
    min-height: 100%;
    height: 100%;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
}

@media (max-width: 991px) {
    #innerfooter {
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }
}

@media (min-width: 992px) {
    #performance>.row>*:not(:last-child),
    #innerfooter {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    #innerfooter {
        padding-left: 25px;
        padding-right: 25px;
    }
}

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

#innerfooter a {
    text-decoration: none;
}

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

#innerfooter .tabContent {
    text-transform: uppercase;
    margin-top: 15px;
}

#innerfooter .tabContent a::before {
    content: "» ";
}

#footer {
    background: linear-gradient(to bottom, rgba(0,109,175,1) 0%,rgba(0,77,148,1) 100%);
    color: #fafafa;
    padding-top: 22px;
    padding-bottom: 22px;
}

#footer a {
    color: #ffffff;
    text-decoration: underline;
}

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

#footer #vernetzt {
    gap: 12px;
    text-decoration: none;
    text-align: left;
    font-size: 0.9375rem;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 25px;
    text-shadow: 0 0 2px rgba(45, 45, 45, 0.3);
}

@media (min-width: 768px) {
    #footer #vernetzt {
        margin: 0;
    }
}

#footer #vernetzt span span {
    display: block;
}


.footerLogos > .template-page .row {
    align-items: center;
    align-content: center;
}