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

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

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

a {
    color: #247b32;
}

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

b,
strong {
    font-weight: 500;
}

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

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

#topbar {
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    background: linear-gradient(to right, #247b32, #247b32) bottom 12px left / 100% 5px no-repeat, #ffffff;
}

@media (max-width: 991px) {
    #topbar {
        min-height: 95px;
    }
}

@media (min-width: 992px) {
    #topbar>.row>div:last-child {
        padding-top: 34px;
        padding-bottom: 40px;
    }
}

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

#logo {
    display: inline-block;
    text-decoration: none;
}

@media (min-width: 992px) {
    #logo {
        display: flex;
        align-items: center;
        padding: 10px 0px 30px 0px;
    }
}

.logoTxt {
    color: #247b32;
    font-size: clamp(1.125rem, 3vw, 1.4375rem);
}

.logoTxt b,
.logoTxt strong {
    font-weight: 600;
    color: #03669b;
    font-size: clamp(1.75rem, 3vw, 2.375rem);
}

#logo img {
    display: block;
}

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

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

.innerfooter {
    font-size: 1rem;
}

.innerfooter ul {
    padding: 0;
}

@media (max-width: 991px) {
    .innerfooter ul {
        padding: 25px 15px;
        margin-bottom: 25px;
        border-bottom: 1px solid rgba(110, 110, 110, 0.3);
    }
}

.innerfooter a {
    color: #191919;
    text-decoration: none;
}

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

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

    .innerfooter li+li::before {
        content: "\00B7";
        margin: 0 15px;
        color: #191919;
    }
}

/* #region ------------------------------------- banner ----------------------------------------- */

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

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(450px, 79vw, 766px);
    }

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

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

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

#headerpic .nivo-controlNav {
    bottom: 25px;
}

@media (min-width: 768px) {
    #headerpic .nivo-controlNav {
        bottom: 40px;
    }
}

@media (min-width: 1200px) {
    #headerpic .nivo-controlNav {
        bottom: 60px;
    }
}

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

.slider-mask {
    display: block;
    background: url('../img/banner-overlay.png') center bottom / 100% auto no-repeat, linear-gradient(to top, rgba(3, 102, 155, 1), rgba(255, 255, 255, 0) 40%);
}

/* #endregion ---------------------------------- banner ----------------------------------------- */

/* #region ---------------------------------- 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: #247b32;
        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: 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: 6px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.navbar {
        border-radius: 2px;
        padding: 30px 20px;
        background: #ffffff;
        position: relative;
        box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    }

    #nav-position {
        padding-top: 5px;
        position: relative;
        z-index: 99;
    }

    #nav-position::before {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        background: #03669b;
        pointer-events: none;
        z-index: -1;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    #nav-position:is(:hover, :focus-within)::before {
        opacity: 0.2;
    }

    nav.navbar .navbar-nav>li {
        display: block !important;
        width: 100%;
        float: none;
        position: relative;
    }

    nav.navbar .navbar-nav li[class*="toplevel"]>ul {
        pointer-events: none;
        position: absolute;
        left: 100%;
        top: 0 !important;
        z-index: 1000;
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 300ms linear;
    }

    nav.navbar .navbar-nav>li:is(.open, :hover)>ul,
    nav.navbar .navbar-nav>li.open:focus-within>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible;
        top: 100%;
    }

    nav.navbar .navbar-nav>li.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.navbar .navbar-nav>li:is(:hover, :focus)>ul {
        z-index: 1003;
    }

    nav.navbar [class*="secondlevel"]>ul {
        display: block !important;
    }
}

/* toplevel */

nav.navbar .navbar-nav a[class*="toplevel"] {
    color: #191919;
    font-weight: 500;
    text-align: left;
    padding: 10px 35px 10px 15px;
    position: relative;
    font-size: 1.125rem;
    background: #f2f8fb;
    line-height: 1.2;
    text-decoration: none;
    hyphens: auto;
}

nav.navbar .navbar-nav li[class*="toplevel"]+li {
    margin-top: 2px;
}

@media (max-width: 991px) {
    nav.navbar .navbar-nav a[class*="toplevel"].dropdown-toggle {
        padding-right: 35px;
    }
}

@media (min-width: 992px) {
    nav.navbar .navbar-nav a[class*="toplevel"] {
        padding: 9px 15px;
    }

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

    nav.navbar .navbar-nav a[class*="toplevel"].dropdown-toggle::before {
        content: "\00BB";
        position: absolute;
        right: 15px;
        top: 21px;
        line-height: 0;
        font-family: "Khand", sans-serif;
    }
}

/* toplevel-over */

nav.navbar .navbar-nav li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.navbar .navbar-nav li[class*="toplevel"]>a:is(:hover, :focus),
nav.navbar .navbar-nav li[class*="toplevel"].open>a,
nav.navbar .navbar-nav li[class*="toplevel"].open>a:is(:hover, :focus),
nav.navbar .navbar-nav li[class*="toplevel"][class*="_over"]>a,
nav.navbar .navbar-nav li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    color: #ffffff;
    background: #03669b;
}

/* secondlevel + thirdlevel dropdown-box */

nav.navbar [class*="toplevel"]>ul {
    padding: 10px;
    background: #ffffff;
    border-radius: 2px;
}

@media (min-width: 992px) {
    nav.navbar [class*="toplevel"]>ul {
        margin-top: -20px;
        padding: 20px 20px;
        min-width: 360px;
        max-width: 500px;
        margin-left: 50px;
        box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    }

    nav.navbar li[class*="secondlevel"] {
        margin-bottom: 2px;
    }

    nav.navbar [class*="toplevel"]>ul::before,
    nav.navbar [class*="toplevel"]>ul::after {
        content: "";
        position: absolute;
        display: block;
    }

    nav.navbar [class*="toplevel"]>ul::before {
        width: 50px;
        top: 0;
        bottom: 0;
        left: -50px;
    }

    nav.navbar [class*="toplevel"]>ul::after {
        top: 12px;
        left: -24px;
        width: 24px;
        height: 38px;
        background: #ffffff;
        clip-path: polygon(100% 100%, 100% 0, 0 50%);
    }
}

nav.navbar [class*="secondlevel"]>ul {
    margin: 0px;
    padding: 4px 0;
}

/* secondlevel + thirdlevel */

nav.navbar a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #191919;
    font-size: 1rem;
    text-align: left;
    position: relative;
    line-height: 1.2;
    text-decoration: none;
    hyphens: auto;
}

nav.navbar a[class*="secondlevel"] {
    padding: 8px 35px 8px 10px;
    background: #f4f8f5;
    font-weight: 500;
}

@media (min-width: 992px) {
    nav.navbar a[class*="secondlevel"] {
        padding: 10px 20px
    }
}

nav.navbar a[class*="thirdlevel"] {
    padding: 6px 15px 6px 38px;
    font-weight: 400;
}

nav.navbar a[class*="thirdlevel"]::before {
    content: "\00BB";
    display: block;
    position: absolute;
    top: 15px;
    line-height: 0;
    left: 25px;
}

/* secondlevel + thirdlevel over */

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

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

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

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

#vernetzt {
    gap: 15px;
    text-align: left;
    font-size: 1rem;
    color: #191919;
    justify-content: center;
    line-height: 1.3;
    margin: 0 auto 30px auto;
    text-decoration: none;
    max-width: calc(100% - 30px);
}

@media (min-width: 992px) {
    #vernetzt {
        margin: 40px auto 0 auto;
        max-width: unset;
    }
}

#vernetzt span span {
    display: block;
}

#vernetzt b {
    font-weight: inherit;
    color: #247b32;
}

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

main {
    background: url('../img/deko-wellen.png') bottom left no-repeat;
}

main>.row {
    row-gap: 30px;
}

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

hr,
.hrstyle {
    opacity: 1;
    background: rgba(110, 110, 110, 0.3);
}

/* ------------------------------------------ optionsbar ---------------------------------------- */

#optionsBar {
    position: relative;
    background: #f2f8fb;
    padding: 20px 30px;
    margin: 0 auto;
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
}

@media (min-width: 992px) {
    #optionsBar {
        padding: 25px 40px;
        z-index: 60;
        margin-top: 30px;
    }
}

#optionsBar::before {
    content: "";
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    border: 1px solid #03669b;
    pointer-events: none;
}

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

@media (min-width: 992px) {
    #contrast_style+#style {
        margin-left: 40px;
    }

    #style,
    #contrast_style {
        column-gap: 10px;
    }

    :is(#style, #contrast_style) button {
        font-size: 20px;
        padding: 2px 0 0 0;
        border: none;
        color: #191919;
        display: inline-block;
        width: 37px;
        height: 37px;
        border-radius: 50%;
        font-weight: 500;
        text-align: center;
        background: #ffffff;
        position: relative;
        line-height: 1;
        border: 1px solid rgba(3, 102, 155, 0.5);
    }

    :is(#style, #contrast_style) button+button {
        margin-left: 5px;
    }

    :is(#style, #contrast_style) h2 {
        color: #191919;
        text-align: center;
        margin-bottom: 5px;
        font-weight: 400;
        font-size: 1rem;
    }

    #contrast_style button {
        padding-top: 4px;
    }

    #style button:is(:hover, :focus) {
        color: #ffffff;
        background-color: #03669b;
    }

    #contrast_style button:is(:hover, :focus) {
        background-color: #03669b;
    }
}

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

#search {
    background: #ffffff;
    display: inline-flex;
    border-radius: 30px;
    border: 1px solid rgba(3, 102, 155, 0.5);
}

#search_input {
    color: #191919;
    font-size: 1rem;
    font-style: italic;
    background: transparent;
    padding: 5px 14px;
    border: 0;
    width: 100%;
    border-radius: 30px;
}

#search_submit {
    min-width: 38px;
    border: none;
    background: #03669b url('../img/lupe-icon.png') center no-repeat;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    margin: -1px -1px 0 0;
    font-size: 0;
}

#search_submit:is(:hover, :focus) {
    background-color: #247b32;
}

#search_input::placeholder {
    color: #191919 !important;
    opacity: 1 !important;
    font-style: italic !important;
}

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

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

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

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.9375rem, 3.5vw, 2.1875rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.8125rem, 3vw, 2rem);
}

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

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

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

/* #region ------------------------------------- footer ----------------------------------------- */

footer {
    position: relative;
    color: #ffffff;
    position: relative;
    background: linear-gradient(to right, #ffffff, #ffffff) top 12px left / 100% 5px no-repeat, linear-gradient(to bottom, rgba(255, 255, 255, 0), #03669b 390px), #03669b;
    padding: clamp(45px, 4vw, 60px) 0 30px 0;
    margin-bottom: 375px;
}

footer::before,
footer::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
}

footer::before {
    background: url('../img/footer-overlay.png') center top / 100% auto no-repeat;
    height: 130px;
    bottom: -130px;
    z-index: 1;
}

footer::after {
    bottom: -375px;
    height: 375px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

footer :is(h1, h2, h3, h4, h5, h6, .footerHeadline) {
    color: #ffffff;
    font-size: 1.5625rem;
    margin-bottom: 20px;
    hyphens: auto;
}

footer a,
footer a:is(:hover, :focus) {
    color: #ffffff;
}

.footerTab a {
    text-decoration: underline;
}

@media (max-width: 991px) {
    footer>.row>div+div {
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding-top: 25px;
        margin-top: 25px;
    }

    .socialTab {
        margin-bottom: 30px;
    }
}

@media (min-width: 992px) {
    footer>.row>div+div {
        border-left: 1px solid rgba(255, 255, 255, 0.3);
    }
}

@media (min-width: 1200px) {
    footer>.row>div:first-child {
        padding-right: 40px;
    }

    footer>.row>div:last-child {
        padding-left: 40px;
    }
}

/* #endregion ---------------------------------- footer ----------------------------------------- */

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

:is(.contrast_light_font, .contrast_dark_font) :is(#topbar, main) {
    background: inherit;
}

.contrast_light_font #search_input {
    background: #fff !important;
}

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

.contrast_light_font .navbar-default .navbar-nav>li>.dropdown-menu::after {
    border-color: transparent #000000 transparent transparent;
}

.contrast_light_font #bg-content {
    z-index: 60;
    position: relative;
}