@import url("https://fonts.verwaltungsportal.de/css/?family=Cairo:400,400i,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: #d91965 #ffffff;
    scrollbar-width: thin;
}

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

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

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

b,
strong {
    font-weight: 700;
}

#over {
    overflow: clip;
    position: relative;
}

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

/* ------------------------------------------- deko linien ------------------------------------------- */

header,
footer {
    position: relative;
}

header::before,
footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: repeating-linear-gradient(-45deg, #d91965 10%, #d91965 10%, #335669 10%, #335669 20%, #5f7284 20%, #5f7284 30%, #335669 30%, #335669 30%, #d91965 30%, #d91965 40%, #5f7284 40%, #5f7284 50%, #335669 50%);
}

footer::before {
    top: auto;
    bottom: 0;
}

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

#topbar>.row {
    row-gap: 12px;
    padding: 12px 0;
}

#logo2,
#logo {
    display: inline-block;
}

#logo2 img,
#logo img {
    display: block;
}

#logo2 img {
    max-width: 92px;
    margin-left: 15px;
}

@media (max-width: 991px) {

    #logo2 img,
    #logo img {
        max-width: calc(100vw - 120px);
        width: 100%;
        margin-left: 0px;
    }
}

/* #region ------------------------------- contrast + styler ------------------------------------ */

#stylerBox {
    width: 100%;
    margin-bottom: 20px;
    column-gap: 30px;
    margin-right: 18px;
}

#stylerBox .styls {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

#stylerBox h2 {
    color: #6e6e6e;
    font-size: 0.875rem;
    font-family: inherit;
    margin-bottom: 5px;
    font-weight: 400;
}

#stylerBox button {
    color: #ffffff;
    padding: 2px;
    border: unset;
    display: inline-block;
    min-width: 30px;
    min-height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    font-weight: 400;
    text-align: center;
    background: #d91965;
    position: relative;
    font-size: 1.125rem;
    z-index: 1;
    line-height: 1;
    margin-left: 10px;
    transition: background 300ms linear;
}

#contrast_style button {
    font-size: 0;
}

#contrast_style button img {
    display: block;
    width: 18px;
    height: 18px;
    margin: auto;
}

#stylerBox button:hover,
#stylerBox button:focus {
    background: #5f7284;
}

/* #endregion ---------------------------- contrast + styler ------------------------------------ */

/* #region ------------------------------------- search ----------------------------------------- */

form[id^="search"] {
    background: #d91965;
    display: inline-flex;
    border-radius: 30px;
    border: 4px solid #ffffff;
    overflow: hidden;
    width: min-content;
}

@media (max-width: 991px) {
    form[id^="search"] {
        width: calc(100% - 30px);
        margin: 20px 15px;
        display: flex;
        flex-direction: column;
        position: relative;
    }
}

@media (min-width: 992px) {
    form#search1 {
        position: relative;
        z-index: 12;
    }
}

form[id^="search"] label {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 9px 15px;
    display: flex;
    align-content: center;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 991px) {
    form[id^="search"] label {
        border-right: unset;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
}

form [id^="search_input"] {
    color: #ffffff;
    font-size: 1rem;
    font-style: normal;
    background: transparent;
    padding: 9px 15px;
    border: 0;
    width: 100%;
    min-width: 8vw;
}

@media (max-width: 991px) {
    form [id^="search_input"] {
        padding-right: 52px;
    }
}

form [id^="search_submit"] {
    min-width: 40px;
    border: none;
    background: url('../img/lupe-icon.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    font-size: 0;
}

@media (max-width: 991px) {
    form [id^="search_submit"] {
        position: absolute;
        bottom: 0px;
        right: 0;
        min-height: 47px;
    }
}

form [id^="search_submit"]:is(:hover, :focus) {
    background-color: #5f7284;
}

form [id^="search_input"]::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
    font-style: normal !important;
}

/* #endregion ---------------------------------- search ----------------------------------------- */

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

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

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

    #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: none;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #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: #d91965;
        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: 14px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background-color: #ffffff;
        box-shadow: 0px 4px 11px 0px rgba(43, 43, 43, 0.07);
    }

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

    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: #5f7284;
    font-weight: 600;
    text-align: left;
    padding: 15px 15px;
    position: relative;
    font-size: 1.375rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

    nav.horizontally a[class*="toplevel"] {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
    }
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 17px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background: #ffffff;
    box-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.1);
}

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

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

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 10px;
    }

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #5f7284;
    font-weight: 400;
    text-align: left;
    padding: 8px 25px;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
    }

    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: #5f7284;
    color: #ffffff;
}

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

/* ------------------------------------------- tickerWrapper ------------------------------------------ */

#tickerWrapper {
    padding-top: clamp(30px, 3vw, 40px);
}

#tickerWrapper .newsticker-position {
    margin: 0;
}

#tickerWrapper .newsticker,
#tickerWrapper .newsticker a {
    color: #d91965;
}

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

#content {
    text-align: left;
    padding-top: 20px;
    padding-bottom: clamp(40px, 3vw, 55px);
}

@media (min-width: 992px) {
    .index #contentCol {
        padding-top: 30px;
    }
}

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

/* #region -------------------------------------- tabsLeft ------------------------------------------ */

#tabsLeft {
    display: grid;
    gap: 30px;
}

@media (min-width: 576px) and (max-width: 991px) {
    #tabsLeft {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    #tabsLeft {
        align-items: start;
        align-content: start;
    }

    #tabsLeft {
        padding-right: clamp(20px, 2vw, 38px);
    }
}

#tabsLeft .tab {
    width: 100%;
    max-width: 360px;
    margin: 32px auto 0 auto;
    position: relative;
    padding: 45px 20px 20px 20px;
    background: #ffffff;
    font-size: 1rem;
    color: #5f7284;
    box-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.1);
}

#tabsLeft .tab::before {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    position: absolute;
    top: -32px;
    left: 50%;
    margin-left: -30px;
    border-radius: 50%;
    background: #d91965 url('../img/icon-kalender.png') center no-repeat;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.15);
}

#tabsLeft #tab2::before {
    background-image: url('../img/icon-news.png');
}

#tabsLeft .tab :is(h1, h2, h3, h4, h5, h6, .tabHeadline) {
    color: #d91965;
    font-size: 1.625rem;
    margin: 0 0 16px 0;
    text-align: center;
}

#tabsLeft .tab .tab_link_title a {
    color: #335669;
    font-weight: 700;
}

#tabsLeft .tab .tab_link_mandat a {
    color: inherit;
}

#tabsLeft .tab .tab_link_mehr {
    font-size: 0;
}

#tabsLeft .tab .tab_link_mehr a {
    text-decoration: none;
    display: inline-block;
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 700;
    border-radius: 5px;
    padding: 4px 18px 5px 18px;
    background: #d91965;
}

#tabsLeft .tab .tab_link_mehr a:is(:hover, :focus) {
    background: #5f7284;
}

#tabsLeft .tab .eventclndr-tab {
    margin-bottom: 22px;
}

#tabsLeft .tab #clr-events-hide>p:first-child {
    margin-bottom: 15px;
}

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

/* #endregion ----------------------------------- tabsLeft ------------------------------------------ */

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

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

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

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.75rem, 3.5vw, 1.875rem);

}

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

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

#footer {
    font-size: 1rem;
    color: #ffffff;
    position: relative;
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: #5f7284;
}

@media (min-width: 1200px) {
    #footer>.row:last-child::after {
        content: '';
        position: absolute;
        pointer-events: none;
        bottom: 0;
        right: -320px;
        width: 197px;
        height: 249px;
        background: url('../img/wasserzeichen-wappen-stadt-wittingen.png') center no-repeat;
    }
}

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

    #footer .tab ul {
        margin-left: 15px;
    }
}

#footer :is(h1, h2, h3, h4, h5, h6, a) {
    color: #ffffff;
}

#footer .tabHeadline {
    font-size: 1.625rem;
}

#footer>.row+.row::before {
    content: "";
    display: block;
    margin: 22px auto;
    max-width: 1170px;
    height: 1px;
    opacity: 1;
    width: 100%;
    background: #dadada;
}

#footer .tab a:not(:is([href*="mailto"], [href*="tel"])) {
    margin-top: 10px;
    display: inline-block;
    text-decoration: none;
    position: relative;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 5px;
    padding: 15px 40px 14px 40px;
    background: #d91965;
    transition: border-radius 300ms linear, background 300ms linear;
}

#footer .tab a:not(:is([href*="mailto"], [href*="tel"])):hover,
#footer .tab a:not(:is([href*="mailto"], [href*="tel"])):focus {
    border-radius: 0;
    background: #335669;
}

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

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

#vernetzt span span {
    display: block;
}

/* --------------------------------------------- counter -------------------------------------------- */

#counter {
    font-size: 1rem;
}

#counter span {
    margin-right: 16px;
    font-weight: 700;
}

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

#innerfooter {
    color: #5f7284;
    padding-top: 18px;
    padding-bottom: 34px;
    background-color: #ffffff;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #5f7284;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

#innerfooter a:hover,
#innerfooter a:focus {
    color: #d91965;
    text-decoration: underline;
}

#innerfooter li+li::before {
    content: "•";
    margin: 0 6px;
}

@media (min-width: 992px) {
    #innerfooter li+li::before {
        margin: 0 15px;
    }
}

@media (min-width: 1200px) {
    #innerfooter li+li::before {
        margin: 0 20px;
    }
}

@media (max-width: 767px) {
    #innerfooter li {
        display: block;
        text-align: center;
        padding: 5px;
        margin: 0;
    }

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

/* ------------------------------------------- contrast ----------------------------------------- */

.news-entry-new-2-date {
    opacity: 1 !important;
}

.contrast_light_font #content .btgrid span {
    background-color: transparent !important;
}

.contrast_light_font :is(form[id^="search"], #search_input1, #footer2) {
    background-color: #000000 !important;
}

.contrast_dark_font :is(form[id^="search"], #scrollTopBtn) {
    background-color: #ffffff !important;
}

:is(.contrast_light_font, .contrast_dark_font) form [id^="search_submit"] {
    background: #000000 url('../img/lupe-icon.png') center no-repeat !important;
}

:is(.contrast_light_font, .contrast_dark_font) #content {
    background: none !important;
}

.contrast_light_font #logo img {
    background-color: #ffffff !important;
}

.contrast_light_font #stylerBox button {
    border: 1px solid #ffffff !important;
}

.contrast_dark_font #stylerBox button {
    border: 1px solid #000000 !important;
}

.contrast_dark_font form [id^="search_input"] {
    background-color: #000000 !important;
}