@import url('https://fonts.verwaltungsportal.de/css/?family=Roboto:300,400,500,300i,400i,500i&7CMerriweather:400,400i,700,700i');

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

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

a {
    color: #2c72af;
}

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

#content a {
    text-decoration: underline;
}

b,
strong {
    font-weight: 500;
}

/* ----------------------------------------------- @3tp topbar ----------------------------------------------- */

#tp3 {
    color: #616161;
    padding-top: 10px;
    padding-bottom: 10px;
    background: #ffffff;
}

@media (max-width: 991px) {
    #tp3>.row>*+* {
        margin-top: 10px;
    }
}

@media (max-width: 575px) {
    #tp3>.row>*>*+* {
        margin-top: 10px;
    }
}

@media (min-width: 992px) {
    #tp3 {
        padding-top: 2px;
        padding-bottom: 2px;
    }
}

#tp3 span {
    color: #616161;
    font-weight: 500;
    font-size: 0.875rem;
    padding-right: 10px;
}

/* ------------------------------------------------ contrast_style ---------------------------------------------- */

#contrast_style button {
    color: #000000;
    padding: 0;
    font-size: 0;
    border: unset !important;
    display: inline-block;
    text-align: center;
    width: 29px;
    height: 29px;
    font-weight: 400;
    background: #dbdbdb;
    transition: background 300ms linear;
    position: relative;
    z-index: 1;
}

#contrast_style button:hover,
#contrast_style button:focus {
    background: #ededed;
}

#contrast_style *+* {
    margin-left: 3px;
}

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

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

#style button {
    padding: 0;
    border: none;
    color: #1A1A1A;
    display: inline-block;
    min-width: 29px;
    min-height: 29px;
    font-weight: 300;
    font-size: 0.875rem;
    text-align: center;
    background: #dbdbdb;
    position: relative;
    line-height: 1;
    transition: color 300ms linear, background 300ms linear;
}

#style button+button {
    margin-left: 3px;
}

#style button:hover,
#style button:focus {
    color: #000000;
    background: #ededed;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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


#logoMobil {
    padding-top: 5px;
    display: block;
}
/* #region ---------------------------------- navigation ---------------------------------------- */

nav.horizontally {
    background: #1f4e78;
    border-bottom: 4px solid #2c72af;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        position: static !important;
    }

    #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: #1f4e78;
        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: #1f4e78;
        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: 3px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally .navbar-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

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

@media (min-width: 1200px) {
    nav.horizontally .navbar-nav {
        padding-left: 30px;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #ffffff;
    font-weight: 500;
    text-align: left;
    padding: 12px 15px;
    text-transform: uppercase;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

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

    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"] {
        padding: 18px 0;
        text-align: center;
    }
}

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 0;
    height: 2px;
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: #ffffff;
    opacity: 0;
    transition: opacity 300ms linear, width 300ms linear;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"]::before {
        left: 50%;
        bottom: 12px;
        transform: translateX(-50%);
    }
}

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

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 {
    width: 50px;
    opacity: 1;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #2c72af;
}

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

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

    nav.horizontally [class*="toplevel"]>ul {
        left: 15px;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        margin-top: -4px;
        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: #ffffff;
    font-weight: 400;
    text-align: left;
    padding: 8px 25px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

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

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

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

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

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

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

/* #region ------------------------------------ tabs1 ------------------------------------------- */

#tabs1 {
    background: linear-gradient(to bottom, #ffffff 25%, #dbdbdb 25%, #dbdbdb 65%, #ffffff 65%);
    padding-bottom: clamp(40px, 4vw, 65px);
}

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

@media (max-width: 991px) {
    #tabs1 {
        padding-top: clamp(40px, 4vw, 60px);
    }

    .tab {
        max-width: 400px;
        margin: 0 auto;
    }
}

#tabs1 .tab-2 {
    padding: 30px 20px;
    color: #ffffff;
    background: #1f4e78;
    font-size: 1rem;
    font-weight: 300;
    height: 100%;
    min-height: 100%;
}

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

#tabs1 .tab-2 :is(h1, h2, h3, h4, h5, h6) {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    hyphens: auto;
}

:is(#tabs1 .tab-2) a:not(:has(img)) {
    margin-top: 20px;
    display: inline-block;
    background: #2c72af;
    border-radius: 2px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 12px 5px 12px;
    border: 1px solid #ffffff;
}

:is(#tabs1 .tab-2) a:not(:has(img)):is(:hover, :focus) {
    color: #ffffff;
    background: #1f4e78;
}

#tabs1 .tab :is(.row, .row>div) {
    margin: 0;
    padding: 0;
    position: static;
}

#tabs1 .tab-2 img {
    display: block;
    margin: -30px -20px 30px -20px;
    width: calc(100% + 40px);
    max-width: calc(100% + 40px);
}

/* #endregion --------------------------------- tabs1 ------------------------------------------- */

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

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

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

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

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

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

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

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

/* --------------------------------------------- footerKontakt -------------------------------------------- */

#footerKontakt {
    font-size: 1rem;
    font-weight: 300;
    color: #ffffff;
    padding: clamp(30px, 4vw, 50px) 0;
    background-color: #1f4e78;
}

@media (max-width: 767px) {
    #footerKontakt {
        padding-top: 30px;
    }
}

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

#footerKontakt :is(h1, h2, h3, h4, h5, h6) {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2px;
    font-size: 1rem;
    font-family: "Roboto", sans-serif;
}

#footerKontakt a {
    color: #ffffff;
}

#footerKontakt .tab a {
    color: #ffffff;
    text-decoration: underline;
}

#logoFooter {
    display: inline-block;
}

#logoFooter img {
    display: block;
}

#logoFooter+.tabSocials {
    margin-top: 35px;
}

#footerKontakt iframe,
#footerKontakt .iframe-wrapper-manual-enabling {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
    max-height: 300px;
}

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

#f5 {
    border-top: 10px solid #dbdbdb;
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: #1f4e78;
}

#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-weight: 300;
    font-size: 1rem;
}

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

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

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

@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: right;
    font-weight: 300;
    font-size: 0.875rem;
    color: #ffffff;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}