@import url("https://fonts.verwaltungsportal.de/css/?family=Jost:400,400i,600,600i%7CExo:400,400i");

body {
    font-family: "Jost", sans-serif;
    color: #444444;
    background: #ffffff;
    font-size: 1rem;
    /* 1rem = 16px */
    line-height: 1.5;
}

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

a {
    color: #850f0f;
}

a:hover,
a:focus {
    color: #850f0f;
    text-decoration: underline;
}


b, strong {
    font-weight: 600;
}

#language > a+a{
    margin-left: 5px;
}

#language img{
    display: block;
}
/* ------------------------------------------------- logo ------------------------------------------------ */

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

#topbar {
    padding: 20px 0;
}

/* --------------------------------------- navigation --------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
    #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: #850f0f;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 2px;
        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;
    }

    #burgerButton:after {
        top: 26px;
    }

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

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

    .navbar-collapse {
        top: 0;
        background: #850f0f;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 100;
        height: auto !important;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        overflow-y: auto;
        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;
        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(255, 255, 255, 0.5);
    }
}

@media (min-width: 575px) and (max-width: 991px) {
    .navbar-collapse {
        width: 60%;
    }

    .navbar-collapse.collapse.in:after {
        width: 40%;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav {
        position: relative;
    }

    #menu {
        position: absolute;
        top: 0px;
        left: 0;
        width: 100%;
        z-index: 200;
        background: rgba(133,15,15,.9);
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between !important;
        align-items: center !important;
    }

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

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

    nav.horizontally .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
        position: absolute;
        left: 100%;
        top: 0;
    }

    nav.horizontally .navbar-nav>li, nav.horizontally .navbar-nav>li>.dropdown-menu>li {
        position: relative;
    }

    .navbar-default .navbar-nav li[class*="toplevel"]>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]>ul {
        display: block !important;
        pointer-events: none;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    .navbar-default .open>.dropdown-menu,
    .navbar-default .navbar-nav li[class*="toplevel"]:hover>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]:hover>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]>ul[style*="block"] {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    .navbar-default .navbar-nav li[class*="toplevel"]:focus-within>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]:focus-within>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    .navbar-default .nav .open>.dropdown-menu {
        pointer-events: none !important;
        opacity: 0 !important;
    }

    .navbar-default .navbar-nav>li>.dropdown-menu::before {
        content: "";
        position: absolute;
        display: block;
        height: 10px;
        left: 0;
        right: 0;
        top: -10px;
    }

    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu::before {
        content: "";
        position: absolute;
        display: block;
        width: 10px;
        top: 0;
        bottom: 0;
        left: -10px;
    }
}

/* ---------------------------------------------- toplevel ---------------------------------------------- */

.navbar-default .navbar-nav>li>a {
    color: #ffffff;
    font-weight: 400;
    text-align: left;
    padding: 10px 35px 15px 35px;
    position: relative;
    font-size: clamp(1.25rem, 3vw, 1.375rem);
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    .navbar-default .navbar-nav>li {
        border-bottom: 1px solid rgba(46, 60, 72, 0.2);
    }
}

@media (min-width: 992px) {
    .navbar-default .navbar-nav>li>a {
        padding: 24px 0;
        display: flex;
        text-align: center;
        align-content: center;
        align-items: center;
        justify-content: center;
        height: 100%;
        flex-wrap: wrap;
    }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) and (min-width: 992px) {
    .navbar-default .navbar-nav>li>a {
        display: block;
    }
}

/* -------------------------------------------- toplevel-over ------------------------------------------- */

.navbar-nav>li:hover>a,
.navbar-nav>li>a:hover,
.navbar-nav>li>a:focus,
.navbar-nav>li.open>a,
.navbar-nav>li.open>a:hover,
.navbar-nav>li.open>a:focus,
.navbar-nav>li[class$="_over"]>a,
.navbar-nav>li[class$="_over"]>a:hover,
.navbar-nav>li[class$="_over"]>a:focus {
    background-color: #5a0a0a;
}

/* -------------------------------------- secondlevel + thirdlevel dropdown-box -------------------------------------- */

.navbar-default .navbar-nav>li>.dropdown-menu,
.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .navbar-default .navbar-nav>li>.dropdown-menu {
        padding: 15px;
    }
}

@media(min-width:992px) {

    .navbar-default .navbar-nav>li>.dropdown-menu,
    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
        margin-top: -18px;
        margin-left: 10px;
    }

    .navbar-default .navbar-nav>li>.dropdown-menu {
        margin-top: 10px;
        left: 50%;
        transform: translate(-50%, 0);
    }
}

/* --------------------------------------------- secondlevel + thirdlevel -------------------------------------------- */

.navbar-default .navbar-nav>li>.dropdown-menu>li>a,
.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a {
    color: #5c5c5c;
    font-weight: 400;
    text-align: center;
    padding: 9px 25px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

/* ------------------------------------------ secondlevel + thirdlevel over ------------------------------------------ */

.navbar-nav>li>.dropdown-menu>li:hover>a,
.navbar-nav>li>.dropdown-menu>li>a:hover,
.navbar-nav>li>.dropdown-menu>li>a:focus,
.navbar-nav>li>.dropdown-menu>li.open>a,
.navbar-nav>li>.dropdown-menu>li.open>a:hover,
.navbar-nav>li>.dropdown-menu>li.open>a:focus,
.navbar-nav>li>.dropdown-menu>li[class$="_over"]>a,
.navbar-nav>li>.dropdown-menu>li[class$="_over"]>a:hover,
.navbar-nav>li>.dropdown-menu>li[class$="_over"]>a:focus,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li:hover>a,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a:hover,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a:focus,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li.open>a,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li.open>a:hover,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li.open>a:focus,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li[class$="_over"]>a,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li[class$="_over"]>a:hover,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li[class$="_over"]>a:focus {
    background: #850f0f;
    color: #ffffff;
}

.navbar-nav>li>.dropdown-menu>li:focus-within>a,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li:focus-within>a {
    background: #850f0f;
    color: #ffffff;
}

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

#slider {
    max-height: 380px;
    overflow: hidden;
    position: relative;
}

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

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

#content {
    text-align: left;
    padding-bottom: 30px;
    padding-top: 30px;
}

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

.h4link a:link, .h4link a:hover, .h4link a:focus, .h4link a:visited, H6, H5, H4, H3, H2, H1 {
    color: #850f0f;
    font-weight: 400;
    line-height: 1.2;
    font-style: italic;
    font-family: "Exo", sans-serif;
}

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

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

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

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

h5, .h5, .legacy_h5 {
    font-size: clamp(1.3125rem, 4vw, 1.8rem);
}

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

#newslinks, #newsmandate {
    border: 1px solid #850f0f;
}


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

#tab4 {
    padding: 60px 0 60px 0;
    position: relative;
}

@media (max-width: 767px) {
    #tab4 {
        padding: 30px 0;
    }
}

#tab4 .tabBox {
    color: #850f0f;
    font-style: italic;
    font-family: "Exo", sans-serif;
    border-radius: 8px;
    box-shadow: 0 20px 30px 0 rgba(0, 0, 0, 0.16);
    min-height: 100%;
    transition: all, 300ms;
    background-color: #fff;
    z-index: 12;
    font-size: 1.375rem;
    position: relative;
    text-decoration: none;
}

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

#tab4 .tabBox p:nth-child(2) {
    padding: 20px;
}

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

#tab4>.row>div {
    margin-top: 30px;
}

#tab4 img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#tab4::before {
    content: "";
    width: 86vw;
    height: 25vw;
    /* height: 34.5vw; */
    display: inline-block;
    pointer-events: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 0;
    background: #ffffff;
    box-shadow: 0 7px 7px 0 rgba(0, 0, 0, 0.10);
}

@media (min-width: 1400px) {
    #tab4::before {
        background: #ffffff;
    }
}

@media (max-width: 767px) {
    #tab4::before {
        width: 100vw;
        height: 100vw;
    }
}

#tab4::after {
    content: "";
    width: 32.5vw;
    height: 33vw;
    /* height: 40vw; */
    display: inline-block;
    pointer-events: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    right: 0px;
    top: 120px;
    z-index: -1;
}

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

footer {
    background-color: #850f0f;
    padding-top: 12px;
    padding-bottom: 12px;
}

@media (min-width: 768px) {
    footer .row {
        align-content: center;
        align-items: center;
    }
}

@media (max-width: 767px) {
    #innerfooter {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

@media (max-width: 767px) {
    #innerfooter li {
       display: block;
       line-height: 2;
    }
}

#innerfooter a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    position: relative;
}

@media (min-width: 992px) {
    #innerfooter a::before {
        position: absolute;
        display: block;
        content: "";
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;
        background: url('../img/logo-hover-footer.png') no-repeat;
        width: 153px;
        height: 53px;
        transition: opacity 300ms linear;
    }

    #innerfooter a:hover::before,
    #innerfooter a:focus::before {
        opacity: 1;
    }
}

@media (max-width: 991px) {
    #innerfooter a:hover,
    #innerfooter a:focus {
        text-decoration: underline;
    }
}

@media (min-width: 768px) {
    #innerfooter li+li::before {
        content: "";
        margin: 0 6px;
    }
    
}
@media (min-width: 992px) {
    #innerfooter li+li::before {
        margin: 0 20px;
    }
}

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

#vernetzt {
    text-align: right;
    font-size: 0.9375rem;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 auto;
    text-decoration: none;
}

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

#vernetzt span {
    color: #ffffff;
}

#vernetzt span span {
    display: block;
}

#vernetzt img {
    margin-left: 12px;
}