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

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

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

a {
    color: #3c5077;
}

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

#content a,
b,
strong {
    font-weight: 600;
}

/* #region ------------------------------------ topbar ------------------------------------------ */

#topbar {
    position: relative;
}

#topbar::before {
    content: "";
    display: block;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #3c5077 00%, #3c5077 20%, #aaa38d 20%, #aaa38d 40%, #3c5077 40%, #3c5077 60%, #aaa38d 60%, #aaa38d 80%, #3c5077 80%, #3c5077 100%) top left / 100%;
}

#topbar>.row {
    font-size: 1rem;
    padding: 13px 0 17px 0;
}

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

.contact-col {
    column-gap: 30px;
}

@media (max-width: 575px) {
    .contact-col {
        font-size: 0.875rem;
    }
}

@media (max-width: 767px) {
    .contact-col {
        border-top: 1px solid #3c5077;
        column-gap: 10px;
        padding-top: 30px;
        margin-top: 30px;
    }
}

.contact-tab {
    hyphens: auto;
    padding-top: 45px;
    background: center top / 35px auto no-repeat;
    min-height: 30px;
    display: grid;
    place-content: center;
}

@media (min-width: 768px) {
    .contact-tab {
        padding: 0 0 0 45px;
        background: center left / 35px auto no-repeat;
        min-height: 45px;
    }
}

@media (min-width: 992px) {
    .contact-tab {
        padding: 0 0 0 70px;
        background: center left / 47px auto no-repeat;
        min-height: 48px;
    }
}

.contact-tab.contact-bereich {
    background-image: url("../img/icon-kontakt.png");
}

.contact-tab.contact-bereich :is(b, strong) {
    text-transform: uppercase;
}

.contact-tab a {
    font-weight: 600;
    text-decoration: underline;
}

.topbarKontakt {
    gap: 30px;
}

@media (min-width: 1200px) {
    .topbarKontakt {
        gap: 30px;
        margin-top: 4px;
        margin-left: -5px;
    }
}

.tabKontaktButton a {
    text-decoration: none;
    display: inline-block;
    position: relative;
    font-size: 1rem;
    color: #ffffff;
    padding: 7px 20px 9px 20px;
    background-color: #3c5077;
    font-weight: 600;
    border-radius: 10px;
    text-align: center;
    hyphens: auto;
}

.tabKontaktButton a:is(:hover, :focus) {
    background-color: #aaa38d;
    color: #19202e;
}

@media (max-width: 991px) {
    .topbarKontakt {
        margin-top: 30px;
        background-color: #fff;
        padding: 15px 0;
    }

    .contact-col {
        background-color: #fff;
        padding: 15px;
    }

    .tabKontaktButton a {
    display: block;
}
}

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

.searchContainer {
    font-size: 0;
    line-height: 0;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    border-radius: 10px;
}

@media (max-width: 991px) {
    .searchContainer {
        padding-right: 15px;
        margin-top: 15px;
    }
}

.search {
    color: #ffffff;
    width: 40px;
    height: 40px;
    background: url("../img/icon-suche.png") center no-repeat;
    transition: all 300ms linear;
    border-radius: 10px;
    background-color: #3c5077;
}

.search:hover,
.search:focus {
    background-image: url('../img/icon-suche-hover.png');
    background-color: #aaa38d;
}

/* #endregion --------------------------------- topbar ------------------------------------------ */

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    .sticky-wrapper {
        height: auto !important;
    }

    .sticky-wrapper nav.horizontally {
        position: static !important;
    }

    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 4px;
        padding: 6px 8px;
        cursor: pointer;
        background-color: #3c5077;
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #ffffff;
        border-radius: 4px;
        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: #3c5077;
        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: 10px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background: rgba(60, 80, 119, 0.9);
        transition: background-color 300ms linear;
    }

    .is-sticky nav.horizontally {
        left: 0 !important;
        right: 0 !important;
        margin: auto !important;
        background: #3c5077;
    }

    nav.horizontally::before {
        content: "";
        background: linear-gradient(to right, #ffffff 50%, rgba(255, 255, 255, 0) 50%) top left / 9px 1px repeat-x, linear-gradient(to right, #ffffff 50%, rgba(255, 255, 255, 0) 50%) bottom left / 9px 1px repeat-x;
        position: absolute;
        top: 8px;
        right: 0;
        bottom: 8px;
        left: 0;
        pointer-events: none;
        z-index: 1;
    }

    .sticky-wrapper,
    nav.horizontally {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        z-index: 99;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        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: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: 12px 15px 12px 20px;
    position: relative;
    font-size: 1.375rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

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

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

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 12px;
    height: 20px;
    display: block;
    position: absolute;
    left: 0;
    bottom: calc(50% - 10px);
    border-radius: 0 10px 10px 0;
    background-color: #ffffff;
    opacity: 0;
    transition: opacity 300ms linear;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"]::before {
        width: 20px;
        height: 12px;
        left: calc(50% - 10px);
        bottom: 0;
        border-radius: 10px 10px 0 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: #19202e;
    background: #aaa38d;
}

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::before,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"].open>a::before,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::before,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::before {
    opacity: 1;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #ffffff;
    box-shadow: 0 2px 1px 0 rgba(0, 0, 0, 0.2);
}

@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 {
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        left: 50%;
        transform: translate(-50%, 0);
    }

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

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

/* secondlevel + thirdlevel */

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

/* 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) {
    color: #19202e;
    background: #aaa38d;
}

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

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

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

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

    #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/bannermaske.png') bottom -1px center / 100% auto no-repeat;
}

/* ------------------------------------------------ tabs ----------------------------------------------- */

#tabs {
    padding-top: 40px;
}

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

#tabs .tab {
    background: #3c5077;
    border-radius: 20px;
    min-height: clamp(100px, 20vw, 210px);
    display: flex;
    align-items: center;
    justify-content: center;
    hyphens: auto;
    position: relative;
    min-height: 210px;
}

#tabs .tab,
#tabs .tab :is(a, h1, h2, h3, h4, h5, h6) {
    color: #ffffff;
    transition: all 300ms linear;
}

#tabs .tab:is(:hover, :focus),
#tabs .tab:is(:hover, :focus) * {
    color: #19202e;
}

#tabs .tab a {
    font-size: clamp(1.125rem, 2vw, 1.5625rem);
    font-weight: 600;
    line-height: 1.4;
    padding: 0px 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    hyphens: auto;
}

#tabs .tab a::after {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 210px;
}

#tabs .tab::before,
#tabs .tab::after {
    content: "";
    pointer-events: none;
    position: absolute;
    border: 4px solid #fff;
    border-radius: 10px;
}

#tabs .tab::before,
#tabs .tab:is(:hover, :focus)::after {
    bottom: 10px;
    left: 10px;
    right: 10px;
    top: 10px;
}

#tabs .tab::after {
    transition: all 300ms linear;
    border-color: #19202e;
    bottom: -10px;
    left: -10px;
    right: -10px;
    top: -10px;
    opacity: 0;
}

#tabs .tab:is(:hover, :focus)::after {
    opacity: 1;
}

#tabs .tab:is(:hover, :focus) {
    background-color: #aaa38d;
}

#tabs .tab:is(:hover, :focus) a {
    text-decoration: none !important;
}

#tabs .tab:is(:hover, :focus) img {
    filter: brightness(0) saturate(100%) invert(10%) sepia(9%) saturate(2617%) hue-rotate(182deg) brightness(99%) contrast(93%);
}

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

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

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

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

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

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.75rem, 5vw, 2.8125rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.625rem, 4.5vw, 2.5rem);
}

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

h5,
.h5,
.legacy_h5 {
    font-size: clamp(1.375rem, 3.5vw, 1.875rem);
}

h6,
.h6,
.legacy_h6 {
    font-size: clamp(1.25rem, 3vw, 1.5625rem);
}

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

#footerContact {
    font-size: clamp(1rem, 2vw, 1.125rem);
    padding-top: clamp(40px, 6vw, 115px);
    padding-bottom: 40px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

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

#footerContact .tab {
    color: #ffffff;
    hyphens: auto;
    padding: 35px 30px;
    border-radius: 20px;
    background-color: rgba(60, 80, 119, 0.95);
}

#footerContact .tab * {
    color: #ffffff;
}

#footerContact .tab .tabHeadline {
    font-size: clamp(1.75rem, 2vw, 1.875rem);
}

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

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

#f5 {
    font-size: 1rem;
    color: #19202e;
    padding-top: 18px;
    padding-bottom: 13px;
    background-color: #ffffff;
}

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

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

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

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

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

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

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

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

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

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

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

#vernetzt span span {
    display: block;
}

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

.contrast_dark_font #tabs .tab img,
.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_light_font #logo img,
.contrast_light_font #burgerButton::before,
.contrast_light_font #burgerButton::after,
.contrast_light_font #burgerButtonInner {
    background-color: #fff !important;
}

.contrast_light_font .tabKontaktButton a {
    border: 1px solid #fff !important;
}

.contrast_dark_font .tabKontaktButton a {
    border: 1px solid #000 !important;
}

.contrast_dark_font #tabs .tab::before {
    border-color: #000 !important;
}

.contrast_dark_font #tabs .tab:is(:hover, :focus) img {
    filter: unset !important;
}