@import url('https://fonts.verwaltungsportal.de/css/?family=Source+Sans+Pro:300,400,300i,400i,600,600i,700,700i');

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

a {
    color: #b4152b;
}

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

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

:focus-visible {
    outline: 3px solid #b4152b !important;
}

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

#topbar {
    background: #e3dfd3;
    padding: 35px 0;
}

#logo,
#bildmarke {
    display: block;
}

#bildmarke {
    float: right;
}

#logo img,
#bildmarke img {
    display: block;
    margin: 0 auto;
}

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

.contrast_dark #logo {
    background: #fff;
    padding: 10px;
}

/* ----------------------------------------------- @tp2 topbar ----------------------------------------------- */

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

#tp2 h2 {
    color: #171717;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

#tp2 div.col-xs-12 {
    padding: 0px;
}

#tp2::before {
    content: '';
    width: 100%;
    height: 10px;
    background: #b4152b;
    display: inline-block;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
}

#tp2 .optionsbar {
    background-color: #cfc7b2;
    margin-left: auto;
    min-height: 38px;
}

@media (max-width: 991px) {
    #tp2 .optionsbar {
        margin-right: auto;
        margin-left: unset !important;
    }
}

#tp2 .optionsbar::after {
    content: '';
    width: 50vw;
    position: absolute;
    top: 0;
    right: -50vw;
    pointer-events: none;
    background-color: #baaf91;
    display: inline-block;
    height: 100%;
}

@media (max-width: 991px) {
    #tp2 .optionsbar::after {
        right: unset !important;
        left: -50vw;
        background-color: #0c5c82;
    }
}

/* -------------------------------------------- contrast_style -------------------------------------------- */

#contrast_style {
    padding-left: 25px;
    padding-right: 17px;
}

#contrast_style button {
    display: inline-block;
    color: #000000;
    position: relative;
    z-index: 1;
    padding: 0;
    font-size: 0;
    width: 21px;
    height: 21px;
    font-weight: 400;
    border-radius: 50%;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.6);
    transition: background 300ms linear;
    flex-shrink: 0;
}

#contrast_style *+* {
    margin-left: 10px;
}

#contrast_style button:hover,
#contrast_style button:focus {
    background-color: rgba(255, 255, 255, 0.8);
}

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

@media (min-width: 992px) {
    #style {
        padding-left: 5px;
        padding-right: 5px;
        border-left: 1px solid rgba(255, 255, 255, 0.50);
    }

    #style button {
        font-size: 20px;
        background: transparent;
        padding: 0;
        border: none;
        color: #171717;
        display: inline-block;
        font-weight: 400;
        text-align: center;
        position: relative;
        width: 25px;
        height: 20px;
        line-height: 1;
        margin: 0 3px;
        transition: color 150ms linear;
        flex-shrink: 0;
    }

    #style button+button::before {
        content: '';
        position: absolute;
        pointer-events: none;
        display: inline-block;
        left: -3px;
        top: 0;
        bottom: 0;
        width: 1px;
        height: 100%;
        background: #171717;
    }

    #style button:is(:hover, :focus) {
        color: #b52838;
        text-decoration: underline;
    }

    #style button:focus-visible {
        outline: 2px auto
    }
}

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

#searchContainer {
    padding-left: 15px;
    padding-right: 40px;
    font-size: 0;
    line-height: 0;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    background: #baaf91;
}

@media (max-width: 991px) {
    #searchContainer {
        padding-right: 15px;
    }
}

#search {
    color: #ffffff;
    width: 25px;
    height: 25px;
    background: url('../img/icon-lupe.png') center no-repeat;
    transition: transform 300ms linear;
}

.contrast_dark #search {
    background-color: #fff;
}

#search:hover,
#search:focus {
    transform: scale(1.1);
}

/* --------------------------------------- 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: #b52838;
        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: #b52838;
        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;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    #menu {
        background-color: #b52838;
    }

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

    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;
        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: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: #ffffff;
    font-weight: 700;
    text-align: center;
    padding: 10px 5px 15px 5px;
    text-transform: uppercase;
    position: relative;
    font-size: 1.25rem;
    line-height: 1;
}

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"] {
        border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    }
}

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

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

    .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;
    }
}

nav.horizontally li[class*="toplevel"]::before {
    content: "";
    width: 80px;
    height: 10px;
    display: block;
    position: absolute;
    left: 0%;
    right: 0;
    margin: 0px auto;
    bottom: 0;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    background-color: #921123;
    opacity: 0;
    transition: opacity 300ms linear;
}

/* -------------------------------------------- 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-color: transparent;
}

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 {
    opacity: 1;
}

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

nav.horizontally [class*="toplevel"] ul {
    padding: 15px;
    background-color: #ffffff;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
}

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

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

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

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #b52838;
    font-weight: 700;
    text-align: center;
    padding: 8px 25px;
    font-size: 1.125rem;
}

.navbar-default .navbar-nav>li>.dropdown-menu>li+li+li>a,
.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li+li+li>a {
    border-top: 1px solid #b52838;
}

.navbar-default .navbar-nav>li>.dropdown-menu>li>a::before,
.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a::before {
    content: '\00BB';
    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) {
    background: transparent;
    color: #2e2e2e;
}

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;
}

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

.slider-wrapper .nivo-controlNav {
    bottom: auto !important;
    top: 10px !important;
}

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

@media (min-width: 992px) {
    #slider {
        max-height: 400px;
    }

    body.index #slider {
        max-height: 550px;
    }

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

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

#headerpic {
    margin: 0 auto;
    position: relative;
    width: 100%;
}

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

.slider-mask {
    display: block;
    background: url(../img/slider-mask.png) center top no-repeat;
    background-size: contain;
}

@media (min-width: 992px) {
    .slider-mask {
        display: none;
    }
}

#banneroverlay {
    position: absolute;
    top: 0;
    right: 15px;
    left: 0;
    z-index: 56;
}

#banneroverlay,
#banneroverlay * {
    background-color: transparent !important;
}

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

main {
    background: url(../img/wappen.png) center bottom/contain no-repeat;
}

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

@media (min-width: 992px) {
    #content {
        padding-bottom: 250px;
        padding-top: 60px;
    }
}

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

.teaser .tab {
    background: #cfc7b2;
    border-radius: 20px;
    padding: 15px 15px 60px 15px;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.20);
    border: 1px solid #baaf91;
    position: relative;
}

.teaser .events {
    padding: 15px 15px 120px 15px;
}

.teaser .tabHeadline {
    color: #b4152b;
    font-size: 1.25rem;
    text-transform: uppercase;
    margin: 5px 0 20px 0;
    text-align: center;
    font-weight: bold;
}

.tab_link_title,
.tab_link_title a,
.tab_link_mandat,
.tab_link_mandat a {
    color: #171717;
}

.tab_link_mehr,
.eventbtn {
    font-size: 0;
}

:is(.eventbtn, .tab_link_mehr) a {
    font-size: 1.0625rem;
    color: #b4152b;
    border: 1px solid #b4152b;
    border-radius: 20px;
    padding: 10px 15px;
    margin-top: 10px;
    display: inline-block;
    justify-content: center;
    align-content: center;
    left: 0;
    right: 0;
    position: absolute;
    margin: 0 auto;
    text-decoration: none;
    text-align: center;
    width: 220px;
}

:is(.eventbtn, .tab_link_mehr) a::after {
    content: ' \00BB';
}

.eventbtn a {
    bottom: -110px;
}

.events .tab_link_mehr a {
    bottom: 70px;
}

.tab_link_mehr a {
    bottom: 10px;
}

.tab_link_mehr a:is(:hover, :focus),
.eventbtn a:is(:hover, :focus) {
    background: #b4152b;
    color: #fff;
}

@media (max-width: 991px) {
    .teaser .tab {
        margin-top: 20px;
    }
}

@media (min-width: 992px) {
    .teaser {
        position: relative;
        z-index: 20;
    }

    .teaser .tab {
        margin-bottom: 20px;
    }
}

body:not([class*="contrast"]) :is(#left, #right) {
    position: relative;
    margin-top: -110px;
}

/* ------------------------------------------ h1, #content .legacy_h1, .legacy_h1 - h6, #content .legacy_h6, .legacy_h6, newslink ----------------------------------------- */

.h4link a:link,
.h4link a:hover,
.h4link a:visited,
h6,
#content .legacy_h6,
.legacy_h6,
h5,
#content .legacy_h5,
.legacy_h5,
h4,
#content .legacy_h4,
.legacy_h4,
h3,
#content .legacy_h3,
.legacy_h3,
h2,
#content .legacy_h2,
.legacy_h2,
h1,
#content .legacy_h1,
.legacy_h1 {
    color: #b4152b;
    font-weight: bold;
    line-height: 1.2;
    font-family: "Source Sans Pro", sans-serif;
}

h1,
#content .legacy_h1,
.legacy_h1,
.h1 {
    font-size: 1.7rem;
    text-transform: uppercase;
}

@media (min-width: 768px) {

    h1,
    #content .legacy_h1,
    .legacy_h1,
    .h1 {
        font-size: 1.875rem;
    }
}

h2,
#content .legacy_h2,
.legacy_h2,
.h2 {
    font-size: 1.6rem;
}

@media (min-width: 768px) {

    h2,
    #content .legacy_h2,
    .legacy_h2,
    .h2 {
        font-size: 1.7rem;
    }
}

h3,
#content .legacy_h3,
.legacy_h3,
.h3 {
    font-size: 1.6rem;
}

h4,
#content .legacy_h4,
.legacy_h4,
.h4,
.h4link a:link,
.h4link a:hover,
.h4link a:visited {
    font-size: 1.5rem;
}

h5,
#content .legacy_h5,
.legacy_h5,
.h5 {
    font-size: 1.4rem;
}

h6,
#content .legacy_h6,
.legacy_h6,
.h6 {
    font-size: 1.3rem;
}

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

#footer {
    background-color: #e3dfd3;
    padding: 40px 0;
    color: #282828;
}

@media (max-width: 767px) {
    #footer .row>.col-xs-12:not(:first-child)::before {
        background: #000000;
        content: " ";
        height: 1px;
        width: 100%;
        display: block;
        margin: 25px 0;
        opacity: 0.2;
    }

    #footer .row>.col-xs-12.hidden-xs~.col-xs-12::before,
    #footer .row>.col-xs-12.hidden-sm~.col-xs-12::before {
        display: none;
    }
}

.innerfooter {
    background-color: #b4152b;
    padding-top: 10px;
    padding-bottom: 10px;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
    font-size: 1rem;
}

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

#innerfooter li+li {
    margin-left: 15px;
}

.footertab {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #b4152b;
    color: #282828;
    padding: 15px;
    min-height: 100%;
}

.footertab .tabHeadline {
    color: #b4152b;
    font-size: 17px;
    font-weight: bold;
}

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

#vernetzt {
    gap: 18px;
    font-size: 0.875rem;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 auto;
    font-weight: 400;
}

#vernetzt span span {
    display: block;
}