@import url("https://fonts.verwaltungsportal.de/css/?family=Montserrat:400,400i,700,700i");

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

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

a {
    color: #191919;
    text-decoration: underline;
}

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

b,
strong {
    font-weight: 700;
}

@media (min-width: 1200px) {
    .row, .compact, ._op-container .container {
        max-width: 1440px;
        width: 100%;
    }
}

/* ----------------------------------------------- optionsBox ----------------------------------------------- */

#optionsBox {
    background: #f4f4f4;
    font-size: 14px;
}

@media (max-width: 991px) {
    #optionsBox {
        padding: 6px 0;
    }

    #optionsBox>.row>div>*:not(:last-child) {
        border-right: 1px solid rgba(0, 0, 0, 0.12);
        margin-right: 10px;
        padding-right: 10px;
    }
}

@media (min-width: 992px) {
    #optionsBox>.row>div:last-child {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    #optionsBox>.row>div>*:not(:last-child) {
        border-right: 1px solid rgba(0, 0, 0, 0.12);
        margin-right: 30px;
        padding-right: 25px;
    }
}

/* ---------------------------------------------- easy lang --------------------------------------------- */

.easyLang {
    display: inline-block;
}

@media (min-width: 992px) {
    .easyLang {
        height: 32px;
    }
}

.easyLang a {
    display: inline-block;
    text-decoration: none;
    padding: 6px;
    color: inherit;
    padding: 8px 9px 2px 9px;
}

@media (max-width: 991px) {
    .easyLang a {
        padding: 2px 9px;
    }
}

.easyLang a:hover,
.easyLang a:focus {
    background: #fcedd5;
}

/* ------------------------------------------------ styler ---------------------------------------------- */

#style {
    padding-left: 26px;
    background: url('../img/icon-fontsize.png') center left no-repeat;
}

#contrast_style button,
#style button {
    padding: 0;
    border: none;
    color: #2a101d;
    display: inline-block;
    width: 32px;
    height: 32px;
    font-weight: 400;
    text-align: center;
    background: transparent;
    position: relative;
    line-height: 1;
}

#contrast_style button {
    padding: 3px 0 0 0;
}

#style button {
    padding: 0;
    font-size: 14px;
}

#contrast_style button+button,
#style button+button {
    margin-left: -6px;
}

#contrast_style button:hover,
#contrast_style button:focus {
    background: #fcedd5;
}

#style button:hover,
#style button:focus {
    color: #191919;
}

/* ----------------------------------------------- search ----------------------------------------------- */

.search {
    width: 32px;
    height: 32px;
    text-align: center;
    padding: 7px 0 0 0;
    display: inline-block;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .search {
        margin-left: -5px;
    }
}

.search:hover,
.search:focus {
    background: #fcedd5;
}

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

#topbar {
    padding-top: clamp(10px, 2vw, 20px);
    padding-bottom: clamp(10px, 2vw, 20px);
    background: #f4f4f4;
}

@media (max-width: 991px) {
    #topbar>.row>*+* {
        margin-top: 15px;
    }
}

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

#logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

@media (max-width: 991px) {
    #logo {
        display: flex;
        flex-direction: column;
        white-space: nowrap;
        hyphens: auto;
        align-items: start;
    }
}

#logo .template-page {
    width: fit-content;
}

#logo img {
    display: block;
}

#logo :is(h1, h2, h3) {
    font-size: clamp(1.5625rem, 3vw, 2.5rem);
    margin: 0;
    color: #191919;
}

#logo img {
    margin-right: 15px;
}

@media (max-width: 991px) {
    #logo img {
        max-height: 120px;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* ------------------------------------------ language -------------------------------------------- */

#language {
    display: flex;
    align-items: center;
    align-content: center;
    margin-left: 30px;
}


#language>*+* {
    margin-left: clamp(15px, 4vw, 20px);
}

#language img {
    max-width: 22px;
    width: 100%;
}

/* #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: #191919;
        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: #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 {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 101;
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background-color: #f4f4f4;
        border-top: 2px solid #191919;
        box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        margin-top: -2px;
    }

    nav.horizontally .navbar-nav>li {
        flex-grow: 1;
    }

    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: #2a101d;
    font-weight: 700;
    text-align: left;
    padding: 10px 15px 15px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

@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: 10px;
    }

    nav.horizontally a[class*="toplevel"] {
        text-align: center;
        padding: 25px 0;
    }
}

/* 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: #2a101d;
    background-color: #fadbab;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 10px;
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
    }

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

    nav.horizontally [class*="secondlevel"]>ul {
        margin-top: -30px;
        border-radius: 6px;
        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: #2a101d;
    font-weight: 400;
    text-align: left;
    padding: 10px 25px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

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

/* 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: #fadbab;
    color: #2a101d;
}

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

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

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

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

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

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

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

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

@media (max-width: 991px) {
    .slider-mask {
        background-size: 50% auto !important;
    }
}

/* #region -------------------------------- scroll bottom --------------------------------------- */

#scrollBottom {
    font-size: 0;
    border-radius: 50%;
    display: block;
    width: 40px;
    height: 40px;
    text-align: center;
    background-color: #f4f4f4;
    animation: bounceAni 2s infinite 2s;
    transition: all .2s ease-in;
    position: absolute;
    left: calc(50% - 20px);
    bottom: 20px;
    z-index: 50;
}

@media (min-width: 768px) {
    #scrollBottom {
        bottom: 40px;
    }
}

#scrollBottom:is(:hover, :focus) {
    animation-play-state: paused;
}

#scrollBottom::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 1px;
    margin-top: 13px;
    display: inline-block;
    border-left: 2px solid #191919;
    border-bottom: 2px solid #191919;
    transform: rotate(-45deg);
    transition: border 300ms linear;
}

@keyframes bounceAni {

    0%,
    100%,
    20%,
    50%,
    80% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

#scrollBottom:is(:hover, :focus)::after {
    border-color: #2a101d;
}

/* #endregion ----------------------------- scroll bottom --------------------------------------- */

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

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

/* ------------------------------------------------ @4tab ----------------------------------------------- */

#tab4 {
    overflow: hidden;
    position: relative;
    z-index: 1;
    padding-top: clamp(30px, 4vw, 65px);
    padding-bottom: clamp(30px, 4vw, 75px);
}

#tab4::before {
    content: "";
    position: absolute;
    pointer-events: none;
    display: inline-block;
    left: 0px;
    top: 0px;
    width: 89.59vw;
    height: 25.53vw;
    background: #f4f4f4;
    z-index: 0;
}

#tab4::after {
    content: "";
    position: absolute;
    pointer-events: none;
    display: inline-block;
    bottom: 0;
    right: 0;
    width: 39.48vw;
    height: 27.09vw;
    background: #fadbab;
    z-index: -1;
}

@media (min-width: 992px) {
    #tab4::after {
        background: #fadbab;
    }
}

#tab4>.row>*:not(:first-child, :nth-child(2))+* {
    margin-top: 40px;
}

@media (max-width: 767px) {
    #tab4>.row>*:not(:first-child)+* {
        margin-top: 30px;
    }
}

@media (max-width: 575px) {
    #tab4>.row>*+* {
        margin-top: 30px;
    }
}

#tab4 .tabBox {
    hyphens: auto;
    border-radius: 8px;
    min-height: 100%;
    line-height: 1.3;
    font-size: clamp(1rem, 2vw, 1.125rem);
    padding: 75px 40px 45px 40px;
    background-color: #ffffff;
    box-shadow: 0px 20px 30px 0px rgba(42, 16, 29, 0.12);
    -webkit-box-shadow: 0px 20px 30px 0px rgba(42, 16, 29, 0.12);
    -moz-box-shadow: 0px 20px 30px 0px rgba(42, 16, 29, 0.12);
    transition: transform 300ms linear;
    z-index: 12;
    position: relative;
}

#tab4 .tabBox:hover,
#tab4 .tabBox:focus {
    transform: scale(1.05);
}

#tab4 .tabBox img {
    margin-bottom: 25px;
}

#tab4 .tabBox .tabHeadline {
    color: #2a101d;
    margin-bottom: 4px;
    position: relative;
    font-size: clamp(1.25rem, 2vw, 1.375rem);
}

#tab4 .tabBox .tabHeadline::after {
    content: '';
    position: absolute;
    pointer-events: none;
    top: -30px;
    left: -20px;
    width: 70px;
    height: 70px;
    border-radius: 100%;
    background: #fadbab;
    z-index: -1;
}

#tab4 .tabBox a {
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
    color: #2a101d;
}

#tab4 .tabBox a::after {
    content: ' \203A';
}

#tab4 .tabBox a:hover,
#tab4 .tabBox a:focus {
    text-decoration: none;
    color: #191919;
}

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

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

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

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

h3, .h3, .legacy_h3 {
    font-size: clamp(1.625rem, 4vw, 1.875rem);
}

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

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

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

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

#footer {
    font-size: 1rem;
    color: #2a101d;
    padding: clamp(30px, 4vw, 65px) 0;
    background-color: #f4f4f4;
}

@media (max-width: 767px) {
    #footer>.row>*+* {
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        margin-top: 20px;
        padding-top: 20px;
    }
}

@media (max-width: 991px) {
    #footer>.row>*:not(:first-child, :nth-child(2))+* {
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        margin-top: 20px;
        padding-top: 20px;
    }
}

#footer a:not(#vernetzt) {
    color: #2a101d;
    text-decoration: underline;
}

#footer a:is(:hover, :focus) {
    text-decoration: none;
}

#footer .footerSlogan {
    color: #191919;
    font-size: clamp(1.375rem, 4vw, 1.625rem);
    font-weight: 700;
    line-height: 1.2;
}

#footer .footerSlogan a {
    color: #191919;
    text-decoration: none;
}

#footer .tab :is(h1, h2, h3, h4, h5, h6) {
    color: #2a101d;
    font-size: 1.25rem;
}

#footer .tab a[href^="mailto:"] {
    color: #191919;
    text-decoration: underline;
}

/* ------------------------------------------ exitButton ------------------------------------------ */

#exitButton {
    color: #ffffff;
    display: block !important;
    align-content: center;
    align-items: center;
    font-size: 0;
    opacity: 1 !important;
}

@media (min-width: 992px) {
    #exitButton {
        position: fixed;
        bottom: 165px;
        right: 38px;
        z-index: 55;
    }
}

#exitButton a {
    font-size: 0;
    width: 65px;
    height: 65px;
    display: inline-block;
    position: relative;
    margin: 0 auto;
    margin-left: 22px;
    border-radius: 50%;
    background: url('../img/icon-exit.png') center no-repeat #fff;
    -webkit-transition: background-color 300ms linear;
    -moz-transition: background-color 300ms linear;
    -ms-transition: background-color 300ms linear;
    -o-transition: background-color 300ms linear;
    transition: background-color 300ms linear;
    box-shadow: 0 0 9px rgba(0, 0, 0, 0.1);
}

#exitButton a::before {
    content: 'Notausgang';
    position: absolute;
    top: -25px;
    max-width: 78px;
    font-size: 0.75rem;
    left: -8px;
    text-align: center;
    font-weight: 600;
}

#exitButton a:hover,
#exitButton a:focus {
    background-color: #ffedd0;
}

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

#innerfooter {
    color: #2a101d;
    font-size: 1rem;
    border-top: 2px solid #191919;
    background-color: #f4f4f4;
}

#innerfooter ul {
    padding: 0;
}

@media (min-width: 992px) {
    #innerfooter ul {
        margin-top: -2px;
    }
}

#innerfooter li {
    display: block;
}

#innerfooter a {
    color: #2a101d;
    text-decoration: none;
    font-weight: 400;
    display: inline-block;
    padding: 20px 15px;
    line-height: 1.2;
}

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

@media (min-width:500px) {
    #innerfooter li+li::before {
        content: "•";
        margin: 0 11px;
    }

    #innerfooter li {
        display: inline-block;
    }
}

@media (max-width: 575px) {
    #innerfooter a {
        padding: 15px;
        display: block;
    }
}

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

#vernetzt {
    gap: 18px;
    text-align: right;
    font-size: 0.875rem;
    color: #2a101d;
    line-height: 1.3;
    margin: 0 auto;
    font-weight: 400;
    text-decoration: none;
}

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

#vernetzt span span {
    display: block;
}

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

/* ------------------------------------------ kontraste ------------------------------------------ */

.contrast_light_font #logo img,
.contrast_light_font .easyLang a,
.contrast_light_font #contrast_style button img,
.contrast_light_font .search,
.contrast_light_font #scrollBottom {
    background-color: #ffffff !important;
}

.contrast_dark_font #contrast_style button+button,
.contrast_dark #contrast_style button+button {
    margin-left: 2px !important;
}