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

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

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

a {
    color: #0074c2;
}

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

b,
strong {
    font-weight: 700;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

/* burgermenu for tablet */

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

    #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: #0261a1;
        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: 4px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background: #ffffff;
        padding: 30px 0;
        transition: all 0.2s 0s linear;
    }

    .is-sticky nav.horizontally {
        padding: 10px 0;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
    }

    nav.horizontally .navbar-nav {
        margin-top: 30px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        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;
        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) {
    .horizontally>.row {
        max-width: 1530px;
        width: 100%;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #020202;
    font-weight: 700;
    text-align: left;
    padding: 10px 15px 14px 15px;
    position: relative;
    font-size: 1.125rem;
    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.8);
    }

    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: 11px 0;
    }
}

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 0;
    height: 4px;
    display: block;
    position: absolute;
    left: 0;
    transform: translateX(-50%);
    bottom: 0;
    background-color: #0261a1;
    opacity: 0;
    transition: opacity 300ms linear, width 300ms linear;
}

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

/* toplevel-over */

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;
    width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

    nav.horizontally [class*="secondlevel"]>ul {
        padding-left: 10px;
    }
}

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

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 10px;
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
    }

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #020202;
    font-weight: 400;
    text-align: left;
    padding: 9px 25px 9px 35px;
    font-size: 0.9375rem;
    line-height: 1.2;
    text-decoration: none;
    position: relative;
}

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    content: "";
    display: block;
    position: absolute;
    left: 20px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2790d7;
    transition: background 300ms linear;
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):not(:nth-child(2)) {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* secondlevel + thirdlevel over */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus)::before {
    background: #034f82;
}

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

/* ----------------------------------------- button design -------------------------------------- */

.buttonStyle a {
    display: inline-block;
    background: #0074c2;
    border-radius: 3px;
    color: #ffffff;
    border: 1px solid #ffffff;
    font-size: 0.9375rem;
    padding: 5px 16px 5px 20px;
    margin-top: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: background 300ms linear, color 300ms linear, border 300ms linear;
}

@media (min-width: 768px) {
    .buttonStyle a+a {
        margin-left: 12px;
    }
}

.buttonStyle a::after {
    content: "\00BB";
    margin-left: 4px;
    position: relative;
    bottom: 1px;
}

.buttonStyle a:is(:hover, :focus) {
    color: #0074c2;
    background: #ffffff;
}

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

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

#slider {
    height: 300px;
    position: relative;
    border-radius: 3px;
}

.slider-wrapper,
.nivo-main-image,
#slider>a>div {
    height: 100% !important;
}

@media (min-width: 768px) {

    #slider,
    #headerpic {
        height: 100% !important;
        max-height: 400px;
    }
}

@media (min-width: 992px) {
    body.index #slider {
        min-height: 400px;
    }
}

#headerpic {
    padding: 0;
    overflow: hidden;
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
}

.slider-mask {
    display: none;
}

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


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

.search {
    padding: 0 0 0 20px;
    margin-top: 30px;
    width: fit-content;
    margin-right: 0;
    margin-left: auto;
}

form[id^="search"] {
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    #search1 {
        border-left: 1px solid rgba(2, 2, 2, 0.15);
    }
}

form[id^="search"] label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #020202;
    margin-top: 12px;
    line-height: 1;
}

form [id^="search_input"] {
    color: #383838;
    font-size: 0.9375rem;
    font-style: normal;
    border: 0;
    background: #f7f7f7 !important;
    position: relative;
    padding: 0 45px 0 10px;
    line-height: 36px;
    padding-left: 5px;
    padding-right: 30px;
    height: 36px;
    width: 100%;
    max-width: 197px;
    margin-left: 10px;
}

form [id^="search_submit"] {
    border: none;
    background: #f7f7f7 url('../img/lupe-icon.png') center no-repeat;
    width: 30px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    bottom: 0;
    right: 0;
    font-size: 0;
    position: absolute;
    transition: background 150ms linear;
}

@media (max-width: 991px) {
    form [id^="search_submit"] {
        right: 66px;
        margin-top: 5px;
    }

    form[id^="search"] label {
        margin-top: 5px;
        margin-left: 14px;
    }
}

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

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

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

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #0074c2;
    font-weight: 700;
    line-height: 1.2;
}

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

h2,
.h2,
.legacy_h2 {
    font-size: 1.75rem;

}

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

/* #region --------------------------------- Tabs -------------------------------------- */
#tabs {
    margin-bottom: 50px;
}

#tabs > .row > div {
    margin-bottom: 30px;
}

#tabs .tab {
    border-radius: 3px;
    padding: 30px;
    color: #ffffff;
    font-size: 1.375rem;
    font-weight: 700;
    overflow: hidden;
    display: block;
    transition: transform 300ms;
    height: 100%;
    hyphens: auto;
}

#tabs .tab:hover {
    transform: scale(1.05);
}

#tabs .tab a {
    color: #ffffff;
    display: block;
}

#tabs .tab a:hover {
    text-decoration: none;
}

#tabs .green {
    background-color: #108423;
}

#tabs .red {
    background-color: #b22727;
}

#tabs .purple {
    background-color: #9f3ea8;
}

#tabs .blue {
    background-color: #0261a1;
}

#tabs .brown {
    background-color: #b84913;
}

@media (min-width: 992px) {
    .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

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

#contentBox {
    text-align: left;
    padding-bottom: clamp(40px, 5vw, 80px);
    padding-top: clamp(30px, 5vw, 80px);
}

/* #region ------------------------------------ contact ----------------------------------------- */

#contact {
    overflow: hidden;
    background: #0074c2;
    font-size: 1rem;
    border-top: 10px solid #fff;
}

#contact>.row>div {
    padding-top: clamp(40px, 4vw, 70px);
    padding-bottom: clamp(40px, 4vw, 60px);
}

#contact>.row>div:last-child {
    position: relative;
    background: #0074c2;
}

@media (min-width: 768px) {
    #contact>.row>div:last-child {
        padding-left: clamp(30px, 3vw, 50px);
    }
}

#contact>.row>div:last-child::after,
#contact>.row>div:last-child::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    background: #0074c2;
    width: 50vw;
}

#contact>.row>div:last-child::after {
    right: -19vw;
    width: 40vw;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#contact>.row>div:last-child::before {
    left: -50vw;
}

@media (min-width: 768px) {
    #contact>.row>div:last-child::before {
        display: none;
    }
}

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

#contact :is(h1, h2, h3, h4, h5, h6) {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 5px;
}

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

#contact .tab :is(b, strong) {
    font-size: 1.125rem;
}

#contact .tabHeadline {
    font-size: 2rem;
}

#contact .tabHeadline::after {
    content: "";
    display: block;
    background: #fff;
    width: 120px;
    height: 4px;
    margin: 15px 0 20px 0
}

#contact .tabHeadline2 {
    font-size: 1.25rem;
    z-index: 1;
    margin: 0 0 15px 0;
    width: 100%;
}

#contact .phoneNumber {
    background: #ffffff url('../img/icon-telefon.png') center left 20px no-repeat;
    border-radius: 3px;
    padding: 7px 20px 7px 72px;
    font-weight: 700;
    font-size: clamp(1.375rem, 2vw, 1.75rem);
    width: 100%;
    z-index: 1;
    margin-left: 40px;
}

#contact .phoneNumber :is(h1, h2, h3, h4, h5, h6) {
    color: #0074c2;
}

#contact table :is(td, th) {
    padding: 0 4px;
}

#contact table :is(td, th):first-of-type {
    padding: 0;
}

/* #endregion --------------------------------- contact ----------------------------------------- */


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

#footer {
    background: #0074c2;
    padding: 40px 0;
    color: #ffffff;
    font-size: 1rem;
}

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

@media (min-width: 1199px) {
    #footer>.row>div:nth-child(2) {
        padding: 0 30px;
    }
}

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

#footer :is(iframe, .iframe-wrapper-manual-enabling) {
    width: 100% !important;
    max-width: 255px;
    max-height: 183px;
    min-width: 255px !important;
}

.footerTab a {
    text-decoration: underline;
    border-radius: 3px;
    padding: 2px;
}

.footerTab :is(h1, h2, h3, h4, h5, h6) {
    font-size: 1.375rem;
    margin: 0 0 20px 0;
    color: #ffffff;
}

#innerfooter ul {
    padding: 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

#innerfooter li {
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

#innerfooter a {
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding: 6px 10px 6px 25px;
}

#innerfooter a::before {
    content: "";
    display: block;
    position: absolute;
    left: 10px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: background 300ms linear;
}

#innerfooter a:is(:hover, :focus)::before {
    background: #ffffff;
}

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

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

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

#vernetzt span span {
    display: block;
}