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

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

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

a {
    color: #ce1e24;
}

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

#contentInside a {
    font-style: italic;
}

b,
strong {
    font-weight: 600;
}

@media (min-width: 1200px) {
    .rowWide {
        max-width: 1600px;
        width: 100%;
    }

    #bannerOverlay {
        max-width: 1570px;
        width: 100%;
        margin: auto;
    }
}

a:focus-visible,
button:focus-visible,
form:focus-visible,
input:focus-visible {
    outline: 3px solid #ff0000 !important;
}

/* -------------------------------------------- bannerOverlay ------------------------------------------ */

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

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

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

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

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

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

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

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

.slider-mask {
    display: block;
    background: url('../img/overlay-bogen-banner.png') bottom -1px center / 100% auto no-repeat;
}

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

#topbar {
    background-color: #ffffff;
}

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

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

@media (min-width: 1200px) {
    #topbar {
        padding-left: 5px;
    }

    #topbar .searchCol {
        padding-right: 0;
    }
}

/* ------------------------------------------------- tabContact ------------------------------------------------ */

.tabContact {
    color: #222222;
    font-size: 0.9375rem;
}

.tabContact a {
    font-style: italic;
    text-decoration: underline;
}

@media (min-width: 1200px) {
    .tabContact p {
        display: inline-block;
    }

    .tabContact p+p {
        margin-left: 5px;
        padding-left: 5px;
        border-left: 1px solid #222222;
    }
}

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

#search {
    min-height: 39px;
    display: inline-block;
    position: relative;
}

@media (min-width: 1200px) {
    #search {
        width: 100%;
    }
}

#search_input {
    color: #222222;
    font-size: 0.9375rem;
    font-style: normal;
    background: #f2f9fe;
    padding: 0;
    border: 0;
    padding-left: 15px;
    padding-right: 105px;
    min-height: 39px;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1) inset;
}

@media (min-width: 1200px) {
    #search_input {
        padding-right: 43px;
    }
}

#search_submit {
    min-width: 97px;
    padding: 0;
    cursor: pointer;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #222222;
    background: #ffdd00;
    transition: background-color 300ms linear;
}

@media (min-width: 1200px) {
    #search_submit {
        min-width: 137px;
    }
}

#search_submit:hover {
    background-color: #f2f9fe;
}

#search_input::-ms-input-placeholder {
    color: #222222 !important;
}

#search_input::-webkit-input-placeholder {
    color: #222222 !important;
}

#search_input::-moz-placeholder {
    opacity: 1;
}

#search_input:-moz-placeholder {
    opacity: 1;
}

#search input::placeholder {
    color: #222222 !important;
    opacity: 1 !important;
    font-style: normal !important;
}

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

#logo {
    display: flex;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    gap: 15px;
    text-decoration: none;
}

#logo .logoImg img {
    display: block;
}

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

#logo .logoTxt {
    hyphens: auto;
    color: #ffffff;
    line-height: 1.2;
    font-size: clamp(1rem, 2vw, 1.375rem);
}

#logo .logoTxt :is(b, strong) {
    display: block;
    text-transform: uppercase;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        position: static !important;
        padding: 10px 0;
        background-color: #0066b2;
    }

    #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: #0066b2;
        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: #0066b2;
        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 {
        padding: 0 5px;
        background-color: #0066b2;
    }

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

    nav.horizontally .navbar-nav::before {
        content: '';
        position: absolute;
        pointer-events: none;
        top: 0;
        bottom: 0;
        margin: auto;
        left: 0;
        width: 1px;
        height: 50px;
        background: #ffffff;
        opacity: 0.8;
    }

    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 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 li {
        position: relative;
    }

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

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #ffffff;
    font-weight: 600;
    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: 5px;
    }

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

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 2px 8px 0px rgba(48, 48, 48, 0.1);
}

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

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

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

    nav.horizontally [class*="secondlevel"]>ul {
        margin-top: -18px;
        margin-left: 22px;
        padding-left: 15px;
    }

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #222222;
    font-weight: 400;
    text-align: center;
    padding: 8px 25px;
    font-size: 1rem;
    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;
    }
}

@media (min-width: 992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        width: 15px;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    nav.horizontally a:is([class*="secondlevel"])::before {
        right: -15px;
        clip-path: polygon(0 0, 0% 100%, 100% 50%);
        background: #0066b2;
    }

    nav.horizontally a:is([class*="thirdlevel"])::before {
        left: -15px;
        clip-path: polygon(100% 0, 100% 100%, 0 50%);
        background: #ffdd00;
    }

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

/* secondlevel + thirdlevel over */

nav.horizontally li:is([class*="secondlevel"]):is(:hover, :focus-within)>a,
nav.horizontally li:is([class*="secondlevel"])>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"]).open>a,
nav.horizontally li:is([class*="secondlevel"]).open>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"])[class*="_over"]>a,
nav.horizontally li:is([class*="secondlevel"])[class*="_over"]>a:is(:hover, :focus) {
    background: #0066b2;
    color: #ffffff;
}

nav.horizontally li:is([class*="thirdlevel"]):is(:hover, :focus-within)>a,
nav.horizontally li:is([class*="thirdlevel"])>a:is(:hover, :focus),
nav.horizontally li:is([class*="thirdlevel"]).open>a,
nav.horizontally li:is([class*="thirdlevel"]).open>a:is(:hover, :focus),
nav.horizontally li:is([class*="thirdlevel"])[class*="_over"]>a,
nav.horizontally li:is([class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus) {
    background: #ffdd00;
    color: #222222;
}

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

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

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

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

/* ----------------------------------------------- @10ev events -------------------------------------------- */

#ev10 .tab {
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    position: relative;
    background: #ffffff;
    font-size: clamp(1rem, 1vw, 1.125rem);
    color: #222222;
    box-shadow: 0px 2px 8px 0px rgba(48, 48, 48, 0.1);
}

#ev10 .tab::before {
    content: "";
    display: block;
    width: 85px;
    height: 85px;
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 50%;
    background: url("../img/icon-veranstaltungen.png") center no-repeat, #ffdd00;
}

#ev10 .tabSpecial {
    padding: 60px 15px 25px 15px;
}

#ev10 .tabSpecial .tabHeadline {
    font-size: 1.375rem;
    margin-bottom: 0;
    text-align: center;
}

#ev10 #clr-events-hide {
    margin-top: 25px;
    padding-left: 20px;
    padding-right: 20px;
}

#ev10 .tab .eventclndr-tab {
    margin-bottom: 0;
}

#ev10 .tab .tab_link_title a {
    color: #222222;
    font-weight: 600;
}

#ev10 .tab .tab_link_mandat a {
    color: #222222;
    font-weight: 400;
}

#ev10 .tab #clr-events-hide>p:nth-child(1) {
    display: none !important;
}

#ev10 .tab .tab_spacer {
    height: 15px;
}

#ev10 .tab .tab_link_mehr {
    color: transparent;
    font-size: 0;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center !important;
}

#ev10 .tab .tab_link_mehr a {
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    font-size: 0.875rem;
    color: #222222;
    font-weight: 600;
    padding: 7px 13px;
    background: #ffdd00;
}

#ev10 .tab .tab_link_mehr a:hover,
#ev10 .tab .tab_link_mehr a:focus {
    color: #ffffff;
    background: #ce1e24;
}

/* ----------------------------------------------- @10nw news -------------------------------------------- */

#nw10 .tab {
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    position: relative;
    color: #222222;
    font-size: clamp(1rem, 1vw, 1.125rem);
    padding: 60px 15px 25px 15px;
    background: #ffffff;
    box-shadow: 0px 2px 8px 0px rgba(48, 48, 48, 0.1);
}

#nw10 .tab::before {
    content: "";
    display: block;
    width: 85px;
    height: 85px;
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 50%;
    background: url("../img/icon-aktuelles.png") center no-repeat, #ffdd00;
}

#nw10 .tabSpecial {
    margin-bottom: 20px;
}

#nw10 .tabSpecial .tabHeadline {
    font-size: 1.375rem;
    margin-bottom: 0;
}

#nw10 .tab .tab_link_entries {
    display: grid;
    gap: 20px;
}

#nw10 .tab .tab_link_title a {
    color: #222222;
    font-weight: 600;
}

#nw10 .tab .tab_link_mandat a {
    color: #222222;
}

#nw10 .tab .tab_link_mehr {
    margin-top: 20px;
}

#nw10 .tab .tab_link_mehr a {
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    font-size: 0.875rem;
    color: #222222;
    font-weight: 600;
    padding: 7px 13px;
    background: #ffdd00;
}

#nw10 .tab .tab_link_mehr a:hover,
#nw10 .tab .tab_link_mehr a:focus {
    color: #ffffff;
    background: #ce1e24;
}

#nw10 .tab .tab_preview_picture,
#nw10 .tab .tab_link_entry>div:nth-last-child(2),
#nw10 .tab .tab_spacer {
    display: none;
}

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

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

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

h2,
.h2,
.legacy_h2 {
    font-size: 1.75rem;
}

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

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

/* ----------------------------------------------- footerContact ----------------------------------------------- */

#footerContact {
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    padding-top: clamp(40px, 5vw, 80px);
    padding-bottom: clamp(30px, 3vw, 40px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #010101;
    position: relative;
}

#footerContact::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/overlay-bogen.png') top -1px center / 100% auto no-repeat;
}

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

#footerContact .tabHeadline {
    color: #ffdd00;
    font-size: 1.25rem;
    margin: 0;
}

#footerContact a {
    color: #ffdd00;
}

#footerContact .tab a {
    font-style: italic;
    text-decoration: underline;
}

#footerContact .iframetab iframe,
#footerContact .iframetab .iframe-wrapper-manual-enabling {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
}

/* ----------------------------------------------- @5f footer ----------------------------------------------- */

#f5 {
    background-color: #0066b2;
}

#f5>.row {
    row-gap: 12px;
}

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

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    padding: 33px 30px 32px 30px;
}

#innerfooter a:hover,
#innerfooter a:focus {
    color: #ffffff;
    background: #1077c3;
}

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

    #innerfooter li {
        display: block;
        text-align: center;
        padding: 5px;
        margin: 0;
    }

    #innerfooter li+li::before {
        display: none;
    }
}

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

#vernetzt {
    gap: 12px;
    text-align: right;
    font-size: 1rem;
    color: #222222;
    line-height: 1.3;
    text-decoration: none;
    padding: 8px 22px;
    background: #ffffff;
}

#vernetzt span span {
    display: block;
}

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

.contrast_light_font #search_submit,
.contrast_light_font .dropdown-toggle-button,
.contrast_dark_font #burgerButton::before,
.contrast_dark_font #burgerButton::after,
.contrast_dark_font #burgerButtonInner {
    background-color: #000 !important;
}

.contrast_dark_font #footerContact {
    background: #fff !important;
}

.contrast_light_font #burgerButton::before,
.contrast_light_font #burgerButton::after,
.contrast_light_font #burgerButtonInner {
    background-color: #fff !important;
}