@import url("https://fonts.verwaltungsportal.de/css/?family=Rubik:700,700i");
@import url("https://fonts.verwaltungsportal.de/css/?family=Open+Sans:400,400i,600,600i");

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

body {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    color: #1a1411;
    background: #f7f7f7;
    font-size: clamp(1rem, 2vw, 1.0625rem);
    /* 1rem = 16px */
    line-height: 1.5;
}

a {
    color: #1a1411;
}

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

b,
strong {
    font-weight: 600;
}

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

#topbar {
    color: #ffffff;
    background: #c43d1f;
    font-size: 0.875rem;
}

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

#topbar>.row {
    row-gap: 15px;
}

#name {
    font-weight: 600;
    color: #ffffff;
}

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

/* --------------------------------------- controls ------------------------------------ */

#controls {
    column-gap: 30px;
}

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

#search {
    background: #e29e8f;
    display: inline-flex;
    width: 100%;
}

@media (min-width: 992px) {
    #search {
        max-width: 270px;
    }
}

#search_input {
    color: rgba(26, 20, 17, 0.8);
    font-style: italic;
    background: transparent;
    padding: 7px 14px;
    border: 0;
    width: 100%;
}

#search_submit {
    width: 40px;
    flex-shrink: 0;
    background: url('../img/suche-icon.png') center no-repeat;
    padding: 0;
    border: none;
    cursor: pointer;
    font-size: 0;
    border-left: 1px solid rgba(88, 69, 58, 0.3);
    transition: background 200ms linear, top 200ms linear, bottom 200ms linear;
}

#search_submit:is(:hover, :focus) {
    background-color: #f3d8d2;
    top: 0;
    bottom: 0;
}

#search_input::placeholder {
    color: rgba(26, 20, 17, 0.8) !important;
    opacity: 1 !important;
    font-style: italic !important;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        position: static !important;
    }

    #burgerButton {
        font-size: 0;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background: #ffffff;
        border: none !important;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #c43d1f;
        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) {
    #menu {
        background-color: #ffffff;
        padding: 27px 0 0 0;
        transition: all 150ms ease;
    }

    .is-sticky #menu {
        left: unset !important;
        padding: 0;
        box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.05);
    }

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

    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: #1a1411;
    font-weight: 700;
    text-align: left;
    padding: 12px 5px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "Rubik", sans-serif;
}

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

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

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

    nav.horizontally a[class*="toplevel"] {
        padding: 15px 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: #c55311;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 10px;
        left: 50%;
        transform: translate(-50%, 0);
    }

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

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

    nav.horizontally [class*="toplevel"]>ul::after {
        left: 50%;
        margin-left: -11px;
        top: -10px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 11px 10px 11px;
        border-color: transparent transparent #094074 transparent;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        margin-top: -16px;
        margin-left: 20px;
    }

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #ffffff;
    font-weight: 400;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.9375rem;
    line-height: 1.2;
    text-decoration: none;
}

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

    nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
        padding-right: 35px;
    }

    nav.horizontally a:is([class*="thirdlevel"]) {
        padding-left: 25px;
    }
}

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

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

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

#logo {
    display: inline-block;
}

@media (min-width: 992px) {
    #logo {
        margin-left: 100px;
    }
}

#logo img {
    display: block;
}

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

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

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

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(400px, 82vw, 800px);
    }

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

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

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

@media (min-width: 768px) {
    #headerpic .nivo-controlNav {
        top: 12%;
        bottom: unset;
    }
}

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

.slider-mask {
    display: block;
    background: linear-gradient(to top, #f7f7f7 20%, rgba(255, 255, 255, 0) 90%), url('../img/banner-bogen.png') center top / 100% auto no-repeat;
}

#bannerOverlay {
    padding: 15px 0;
    background: #ffffff;
}

@media (min-width: 992px) {
    #bannerOverlay {
        padding: 0;
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        z-index: 60;
        background: transparent;
    }
}

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

main {
    position: relative;
    z-index: 50;
    background: url('../img/footer-bogen.png') center bottom / 100% auto no-repeat;
}

#content {
    padding-bottom: clamp(35px, 8vw, 145px);
}

.index #content {
    z-index: 1;
    position: relative;
    background: url('../img/content-bogen.png') center bottom / 100% auto no-repeat;
}

@media (min-width: 768px) {
    main {
        margin-top: calc(clamp(95px, 18vw, 235px) * -1);
    }

    body:not(.index) main {
        margin-top: -135px;
    }
}

#contentBG {
    text-align: left;
    padding: 30px clamp(15px, 2vw, 30px) clamp(30px, 4vw, 55px) clamp(15px, 2vw, 30px);
    background: #ffffff;
}

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

/* ------------------------------------------ tabPicBox ------------------------------------------- */

#tabPicBox {
    margin-top: 55px;
}

#tabPicBox .ButtonPicBox {
    margin-bottom: -45px;
}

#tabPicBox .ButtonPicBox a {
    text-decoration: none;
    display: inline-block;
    position: relative;
    font-family: "Rubik", sans-serif;
    font-weight: 700;
    color: #094074;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    padding: 16px 26px;
    background: #ffffff;
    box-shadow: 0px 0px 5px 0px rgba(43, 43, 43, 0.15);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(43, 43, 43, 0.15);
    -moz-box-shadow: 0px 0px 5px 0px rgba(43, 43, 43, 0.15);
}

#tabPicBox .ButtonPicBox a::after {
    content: ' \00BB';
}

#tabPicBox .ButtonPicBox a:hover,
#tabPicBox .ButtonPicBox a:focus {
    color: #04203a;
}

#tabPicBox #PicBoxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 130px 225px;
}

#tabPicBox #PicBoxes .PicBoxIMG {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (min-width: 768px) {
    #tabPicBox #PicBoxes .PicBoxIMG1 {
        grid-column: 1/2;
        grid-row: 1/3;
    }

    #tabPicBox #PicBoxes .PicBoxIMG2 {
        grid-column: 1/2;
        grid-row: 3/3;
    }

    #tabPicBox #PicBoxes .PicBoxIMG3 {
        grid-column: 2/2;
        grid-row: 1/2;
    }

    #tabPicBox #PicBoxes .PicBoxTab {
        grid-column: 2/2;
        grid-row: 2/4;
        margin-left: -15px;
        margin-bottom: -25px;
    }
}

@media (max-width: 767px) {
    #tabPicBox #PicBoxes .PicBoxIMG1 {
        grid-column: 1/3;
        grid-row: 1/2;
    }

    #tabPicBox #PicBoxes .PicBoxTab {
        grid-column: 1/3;
        grid-row: 2/4;
    }
}

#tabPicBox #PicBoxes .PicBoxTab {
    padding: 60px 30px 90px 30px;
    background: #ffffff;
    box-shadow: 0px 0px 5px 0px rgba(43, 43, 43, 0.15);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(43, 43, 43, 0.15);
    -moz-box-shadow: 0px 0px 5px 0px rgba(43, 43, 43, 0.15);
}

#tabPicBox #PicBoxes .PicBoxTab .tabHeadline {
    font-size: 1.375rem;
    margin-bottom: clamp(15px, 3vw, 30px);
}

#tabPicBox #PicBoxes .PicBoxTab a {
    text-decoration: underline;
}

/* --------------------------------------------- tabs2 ------------------------------------------ */

#tabs2 {
    position: relative;
    padding-bottom: 75px;
}

#tabs2 .tab {
    font-size: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    background: #ffffff;
    box-shadow: 0px 0px 5px 0px rgba(43, 43, 43, 0.15);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(43, 43, 43, 0.15);
    -moz-box-shadow: 0px 0px 5px 0px rgba(43, 43, 43, 0.15);
}

#tabs2 .tab+.tab {
    margin-top: 30px;
}

#tabs2 #tab2 {
    padding: 0px 0px 20px 0px;
    position: relative;
}

#tabs2 .tabContent {
    padding: 40px 25px;
}

#tabs2 #tab2 .tabContent {
    padding: 25px;
}

#tabs2 .tabHeadline {
    color: #ffffff;
    font-size: 1.5625rem;
    padding: 30px 80px 30px 25px;
    background-color: #c43d1f !important;
    hyphens: none;
    margin: 0;
}

#tabs2 #tab1 .tabHeadline {
    background: url('../img/icon-aktuelles.png') bottom right no-repeat;
}

#tabs2 #tab2 .tabHeadline {
    background: url('../img/icon-veranstaltungen.png') bottom right no-repeat;
}

#tabs2 #tab2 .eventclndr-tab {
    margin-left: -25px;
    margin-right: -25px;
    margin-top: -25px;
    margin-bottom: 25px;
}

#tabs2 .tab_spacer {
    height: clamp(15px, 2vw, 30px);
}

#tabs2 .tab .tab_link_title a {
    font-weight: 600;
    color: #094074;
}

#tabs2 .tab .tab_link_mandat a {
    color: #1a1411;
}

#tabs2 .tab .tab_link_mehr {
    font-size: 0;
    position: absolute;
    bottom: 0;
    right: 0;
}

#tabs2 .tab .tab_link_mehr a::after {
    content: "";
    position: absolute;
    display: block;
    bottom: 0;
    right: 0;
    width: 48px;
    height: 48px;
    background: #094074;
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    transition: background 300ms linear;
}

#tabs2 .tab .tab_link_mehr a:hover::after,
#tabs2 .tab .tab_link_mehr a:focus::after {
    background: #04203a;
}

#tabs2 .tab .tab_link_mehr a::before {
    content: "+";
    position: absolute;
    display: block;
    right: 8px;
    bottom: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    z-index: 3;
}

/* ------------------------------------------ BigTabs ------------------------------------------- */

#BigTabs {
    padding-top: 35px;
    padding-bottom: clamp(35px, 5vw, 85px);
    background: #ffffff;
    box-shadow: 0px 0px 5px 0px rgba(43, 43, 43, 0.15);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(43, 43, 43, 0.15);
    -moz-box-shadow: 0px 0px 5px 0px rgba(43, 43, 43, 0.15);
}

#BigTabs .tabHeadline {
    font-size: 1.375rem;
}

#BigTabs a {
    text-decoration: underline;
}

/* ------------------------------------------ imgTabsBox ------------------------------------------- */

#imgTabsBox {
    padding-top: clamp(40px, 4vw, 70px);
    padding-bottom: clamp(40px, 10vw, 165px);
}

#imgTabsBox .row,
#imgTabsBox .row>* {
    position: static;
}

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

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

#imgTabsBox .tab {
    color: #ffffff;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 10vw, 115px) 15px 20px 15px;
    background: rgba(102, 102, 102, 0.6);
}

#imgTabsBox .tabsBox {
    height: 100%;
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

#imgTabsBox .tabsBox::before {
    content: '';
    position: absolute;
    pointer-events: none;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: background 300ms linear;
}

#imgTabsBox .tabsBox:hover::before,
#imgTabsBox .tabsBox:focus::before {
    background: rgba(102, 102, 102, 0.6);
}

#imgTabsBox :is(h1, h2, h3, h4, h5, h6) {
    font-size: 1.375rem;
    color: #ffffff;
}

#imgTabsBox a {
    margin-top: 5px;
    text-decoration: none;
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 6px 12px;
    background-color: #094074;
}

#imgTabsBox a::after {
    content: ' \00BB';
}

#imgTabsBox a:is(:hover, :focus) {
    background-color: #04203a;
}

#imgTabsBox img {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    object-fit: cover;
    max-width: none;
    width: 100% !important;
    height: 100% !important;
}

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

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

h1,
.h1,
.legacy_h1 {
    font-size: 2rem;
}

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

}

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

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

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

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

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

#footer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    padding: clamp(30px, 3vw, 45px) 0 clamp(30px, 4vw, 50px) 0;
    background: #094074;
}

@media (max-width: 991px) {
    #footer>.row {
        row-gap: 20px;
    }
}

#footer .footerHeadline {
    color: #ffffff;
    font-size: 1.25rem;
    margin: 0 0 8px 0;
}

#footer .footerTab a {
    color: rgba(255, 255, 255, 0.8);
}

#footer .footerTab a:hover,
#footer .footerTab a:focus {
    color: #ffffff;
    text-decoration: none;
}

/* -------------------------------------------- scrollTop --------------------------------------- */

#scrollTopBtn {
    display: block;
    color: #ffffff;
    position: relative;
    background: #c43d1f;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 14px 70px 14px 20px;
    text-decoration: none;
    font-family: "Rubik", sans-serif;
    margin-bottom: clamp(30px, 3vw, 50px);
}

#scrollTopBtn:is(:hover, :focus) {
    background: #b0371c;
}

#scrollTopBtn::before {
    content: "\00BB";
    position: absolute;
    right: 13px;
    top: 0;
    padding: 0 5px;
    color: #ffffff;
    font-weight: 700;
    font-size: 30px;
    text-transform: none;
    font-family: "Rubik", sans-serif;
    transform: rotate(-90deg);
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    height: 55px;
    bottom: 0;
    margin: auto;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}

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

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

#vernetzt span span {
    display: block;
}

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

#innerfooter {
    color: #ffffff;
    padding: 15px 0;
    font-size: 0.875rem;
    background: #c43d1f;
}

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

#innerfooter ul {
    padding: 0;
}

@media (min-width: 576px) {
    #innerfooter li {
        display: inline-block;
    }

    #innerfooter li+li {
        margin-left: clamp(20px, 2vw, 35px);
    }
}

#innerfooter a {
    color: #ffffff;
}