@import url("https://fonts.verwaltungsportal.de/import/?family=Source+Sans+3:400,700,800,400i,700i,800i&family=Forum:400,400i");

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

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

a {
    color: #1169ac;
}

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

b,
strong {
    font-weight: 800;
}


@media (min-width: 1200px) {

    .row,
    .compact,
    ._op-container .container {
        max-width: 1600px;
        width: 100%;
    }
}

/* ------------------------------------------- topobar --------------------------------------------- */

#topbar {
    padding: 6px 0;
    border-bottom: 4px solid #0a4675;
}

#search {
    position: relative;
    max-width: 310px;
    width: 100%;
    border-bottom: 2px solid #0a4675;
}

#search_input {
    color: #252525;
    font-size: 1.125rem;
    font-style: normal;
    background: transparent;
    padding: 0 43px 10px 0;
    border: 0;
    min-height: 40px;
    width: 100%;
}

#search_submit {
    width: 40px;
    background-image: url('../img/icon-lupe.png');
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
    padding: 0;
    cursor: pointer;
    border: none;
    position: absolute;
    right: 15px;
    min-height: 100%;
    font-size: 0;
    transition: background-color 300ms linear;
    bottom: 5px;
    border-radius: 100%;
}

#search_submit:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

#search_input::placeholder {
    color: color-mix(in srgb, currentColor 100%, transparent);
}

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

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

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

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

#constast_style,
#style,
#search {
    margin-top: auto;
}



#contrast_style button,
#style button {
    border: none;
    color: #fff;
    display: inline-block;
    width: 34px;
    height: 34px;
    font-weight: 800;
    text-align: center;
    background-color: #1169ac;
    position: relative;
    line-height: 1;
    transition: transform 150ms linear;
    padding: 0;
    font-size: 1rem;
}

#contrast_style button {
    font-size: 0;
    position: relative;
    bottom: -8px;
}


@media (min-width: 992px) {

    #style button::after,
    #contrast_style button::after {
        content: '';
        height: 3px;
        background: #efe31f;
        display: block;
        position: absolute;
        bottom: -3px;
        left: 0;
        right: 0;
        opacity: 0;
        transition: opacity 300ms linear;
    }
}

#optionsElements {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

#optionsElements>* {
    flex-grow: 1;
}

#optionsElements span {
    display: block;
    width: 100%;
    font-size: 1rem;
    color: #252525;
    text-align: center;
}

#optionsElements #contrast_style span {
    margin-bottom: 10px;
}

#optionsElements #style span {
    margin-bottom: 13px;
}

#contrast_style button+button,
#style button+button {
    margin-left: 8px;
}


#contrast_style button:hover,
#contrast_style button:focus,
#style button:hover,
#style button:focus {
    background-color: #0a4675;
}

#contrast_style button:hover::after,
#contrast_style button:focus::after,
#style button:hover::after,
#style button:focus::after {
    opacity: 1;
}



@media (min-width: 992px) {
    #search {
        margin-bottom: 10px;
        margin-right: 47px;
    }
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

/* #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: #3167b8;
        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: -2px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        position: sticky;
        top: 0;
        z-index: 1000;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.06);
    }

    nav.horizontally::after {
        content: "";
        position: absolute;
        pointer-events: none;
        display: block;
        right: 0;
        bottom: -5px;
        left: 0;
        height: 5px;
        z-index: 1000;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, transparent 100%);
    }

    .is-sticky #menu {
        left: unset !important;
        background: #fff;
        padding: 15px 0 10px 0;
        box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.06);
    }

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


    nav.horizontally .navbar-nav li[class*="toplevel"]>ul {
        display: flex !important;
        flex-wrap: wrap;
        pointer-events: none;
        position: absolute;
        opacity: 0;
        top: 100%;
        left: -15px;
        right: -15px;
        z-index: 1000;
        padding: clamp(30px, 7vw, 70px) clamp(50px, 7vw, 70px);
        transform-origin: top center;
        visibility: hidden;
        transition: top 300ms linear, opacity 300ms linear;
    }

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

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

    nav.horizontally li[class*="secondlevel"] {
        margin-bottom: 30px;
        width: 33.33%;
    }

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

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #252525;
    font-weight: normal;
    text-align: left;
    padding: 10px 35px 10px 10px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "Forum", serif;
    font-size: 1.75rem;
}

nav.horizontally a[class*="toplevel"]::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    background-color: #efe31f;
    width: 0;
    transition: width 300ms linear;
}

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

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

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

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::after,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"].open>a::after,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::after {
    width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"]>ul {
    background-color: rgba(255, 255, 255, 0.97)
}

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

    nav.horizontally [class*="secondlevel"]>ul {
        margin-bottom: 8px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]) {
    text-align: left;
}

nav.horizontally a[class*="secondlevel"] {
    color: #556f7c;
    font-weight: 600;
    padding: 0 0 10px 0;
    display: inline-block;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

nav.horizontally a[class*="secondlevel"]::after {
    content: "";
    display: block;
    height: 3px;
    background-color: #1169ac;
    transition: background-color 300ms linear;
}

nav.horizontally a[class*="thirdlevel"] {
    color: #4d4d4d;
    font-weight: normal;
    padding: 7px 0 7px 20px;
    font-size: 0.875rem;
    line-height: 1.2;
    text-decoration: none;
    position: relative;
}

nav.horizontally a[class*="thirdlevel"]::before {
    content: "»";
    position: absolute;
    top: 6px;
    left: 10px;
}

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

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

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

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

#tickerWrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 71, 117, 0.80);
    z-index: 12;
    text-align: center;
    color: #fff;
    padding: clamp(10px, 2vw, 25px) 0;
}

#tickerWrapper>.row {
    max-width: 1900px;
    width: 100%;
}

#tickerWrapper .newsticker-position>h2 {
    color: #fff;
}

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

@media (max-width: 991px) {
    #tickerWrapper {
        position: relative;

    }
}

#tickerWrapper a {
    color: #fff;
}

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

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(330px, 42vw, 540px);
    }

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

/* ------------------------------------------- quickButton ------------------------------------------ */

#quickButtons {
    padding: 10px 0;
    background: #f4f7fb;
    border-bottom: 3px solid #efe31f;
    overflow: clip;
}

@media (max-width: 991px) {
    #quickButtons {
        background: #f4f7fb;
        border-bottom: 3px solid #efe31f;
    }
}

#quickButtons a {
    display: block;
    margin: auto;
    color: #252525;
    font-size: 1.5rem;
    font-weight: 800;
    hyphens: auto;
}

#quickButtons .quickButton {
    transition: transform 0.2s ease-in-out;
    transform: scale(0.9);
}

#quickButtons>.row {
    gap: clamp(10px, 2vw, 30px);
}

#quickButtons>.row>* {
    flex-grow: 1;
    text-align: center;
    max-width: 50%;
}

#quickButtons .quickButton:hover {
    transform: scale(1);
    color: #1169ac;
}

#quickButtons .quickButton a {
    text-decoration: none;
}

#quickButtons .quickButton:hover a {
    color: #1169ac;
}

@media (max-width: 575px) {
    #quickButtons img {
        max-width: 40px;
    }

    #quickButtons a {
        font-size: 1.125rem;
    }
}


/* ------------------------------------------- quickButton ------------------------------------------ */

#content {
    padding-top: 40px;
    padding-bottom: 60px;
}

#parallax {
    height: 22vw;
    display: block;
    min-height: 200px;
    background-position: center;
    background-size: cover;
    border-bottom: 10px solid #fff;
}

/* #region ------------------------------------ news -------------------------------------------- */

#news {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: clamp(40px, 6vw, 70px) 0 0 0;
}

@media (min-width: 992px) {
    #news {
        margin-bottom: -60px;
    }
}

#news .tabSpecialHeadline :is(h1, h2, h3, h4, h5, h6)::after {
    content: "";
    display: none;
}

#news .tab_link_entries {
    display: grid;
    gap: 30px;
    margin-top: clamp(30px, 4vw, 60px);
}

@media (min-width: 576px) {
    #news .tab_link_entries {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    #news .tab_link_entries {
        grid-template-columns: repeat(4, 1fr);
    }
}

#news .tab_link_entry {
    font-size: 1rem;
    position: relative;
    box-shadow: 0 60px 30px -30px rgba(66, 58, 1, 0.2);
    background: #ffffff;
    padding: 230px 20px 70px 20px;
    border: none !important;
}

@media (max-width: 991px) {

    #news {
        padding-bottom: 40px;
    }

    #news .tab_link_entry {
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
    }
}

#news .tab_link_entry::after {
    content: "";
    position: absolute;
    display: block;
    top: 170px;
    left: 0;
    right: 0;
    width: 60px;
    height: 60px;
    margin: auto;
    background: #ffffff url('../img/icon-aktuelles.png') center no-repeat;
    border-radius: 50%;
    z-index: 2;
}

#news .tab_link_entry::before,
#news .tab_link_entry .tab_preview_picture {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    overflow: hidden;
}

#news .tab_link_entry::before {
    border-bottom: 5px solid #efe31f;
}

#news .tab_link_entry::before {
    content: "";
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#news .tab_preview_picture img {
    margin: 0 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#news .tab_link_title a {
    font-weight: 800;
    font-size: 1.25rem;
    display: block;
    color: #3167b8;
    margin-bottom: 20px;
    line-height: 1.2
}

#news .tab_date {
    font-size: 0.875rem;
    font-style: italic;
}

#news .tab_link_entry .tab_link_mehr {
    font-size: 0;
}

#news .tab_link_entry .tab_link_mehr a {
    display: inline-block;
    position: absolute;
    text-decoration: none;
    bottom: 20px;
    left: 20px;
    font-size: 0.875rem;
    color: inherit;
    padding: 7px 26px;
    background-color: #ffffff;
    border: 2px solid #3167b8;
    margin-top: 25px;
    transition: all 200ms linear;
}

#news .tab_link_entry .tab_link_mehr :is(a:hover, :focus) {
    background-color: #3167b8;
    color: #ffffff;
}

#news .tab_spacer {
    height: 5px;
}

.tabSpecialButton a {
    background: #3167b8;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 70px 16px 20px;
    display: inline-block;
    width: 100%;
    position: relative;
    margin-top: 10px;
    line-height: 1.2;
    text-align: center;
}

@media (min-width: 768px) {
    .tabSpecialButton a {
        max-width: 270px;
    }
}

.tabSpecialButton a::before {
    content: '\00BB';
    position: absolute;
    right: 0;
    top: 2px;
    bottom: 0;
    width: 50px;
    line-height: 45px;
    font-size: 30px;
    display: block;
    background-color: #0a4675;
    transition: background-color 300ms linear;
}

.tabSpecialButton a:is(:hover, :focus) {
    background: #0a4675;

}

.tabSpecialButton a:is(:hover, :focus)::before {
    background: #3167b8;
}

.tabSpecialButton .btgrid>.row {
    align-items: center;
}

/* #endregion --------------------------------- news -------------------------------------------- */

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

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

h1,
.h1,
.legacy_h1 {
    font-size: clamp(2rem, 3vw, 2.8125rem);
}

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

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

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

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

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

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


#footerTop .row,
#footerTop .row .col-xs-12 {
    margin: 0;
    padding: 0;
}

#footerTop .iframe-wrapper-manual-enabling,
#footerTop iframe {
    min-width: 100%;
    min-height: 100% !important;
    display: block;
    margin-bottom: -1px;
}

#footerBottom {
    background: #3167b8;
    color: #fff;
    padding-top: 20px;
    overflow: clip;
    z-index: 12;
    position: relative;
}

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

#footerBottom>.row::after {
    content: '';
    background: url(../img/wald.png) no-repeat bottom right;
    width: 268px;
    height: 185px;
    position: absolute;
    right: -155px;
    bottom: -54px;
    z-index: -1;
}

#footerBottom::after {
    content: '';
    display: block;
    width: 100%;
    height: 35px;
    background: #0a4675;
    border-top: 4px solid #efe31f;
    margin-top: 15px;
    z-index: -2;
    position: relative;
}

#footerBottom a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 767px) {
    footer>.row>.col-xs-12+* {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 15px;
        padding-top: 15px;
    }
}

@media (max-width: 991px) {
    footer>.row>.col-xs-12:last-child {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 15px;
        padding-top: 15px;
    }
}

#innerfooter ul {
    padding: 0;
}

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

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

#innerfooter a:hover,
#innerfooter a:focus {
    color: #f8f39b;
}

@media (min-width: 576px) {
    #innerfooter li+li::before {
        content: "-";
        margin: 0 clamp(15px, 2vw, 25px);
        color: #efe31f;
    }

    #innerfooter li {
        display: inline-block;
    }
}

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

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

#vernetzt {
    gap: 18px;
    text-align: right;
    font-size: 0.875rem;
    color: #ffffff;
    line-height: 1.3;
    font-weight: 300;
    text-decoration: none !important;
}

#vernetzt span span {
    display: block;
}

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

#logo.contrast_light_font img {
    background: #fff;
}