@import url("https://fonts.verwaltungsportal.de/import/?family=Baloo+2:400,700,400i,700i");

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

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

a {
    color: #007db5;
}

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

b,
strong {
    font-weight: 700;
}


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

#topbar {
    padding: 20px 0;
}

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

@media (max-width: 991px) {
    #logo img {
        max-width: 210px;
        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: #2e75b6;
        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: #2e3c48;
        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) {

    #menu {
        padding: 15px 0;
    }

    .is-sticky #menu {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
    }

    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 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 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: #444444;
    font-weight: 700;
    text-align: left;
    padding: 10px 15px 15px 15px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    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: 18px 0;
    }
}


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

/* 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;
    background-color: #2e75b6;
}


/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #fff;
    box-shadow: 0 0 5px 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: 18px 10px;
    }

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #444444;
    font-weight: 400;
    text-align: left;
    padding: 12px 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) {
    background: #2e75b6;
    color: #fff;
}

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

#bannerWrapper {
    display: flex;
    width: 100%;
    gap: 20px;
    max-width: calc(100% - 40px);
    width: 100%;
    margin: auto;

}


@media (max-width: 767px) {
    #bannerWrapper {
        flex-wrap: wrap;
        margin-top: 20px;
    }

    #bannerWrapper>.bannerElement {
        max-width: calc(50% - 10px);
    }
}

#bannerWrapper img {
    display: block;
    width: 100%;
}

#bannerWrapper .bannerElement {
    border: 4px solid #c55a11;
}

#bannerWrapper>.bannerElement:nth-child(2) {
    border-color: #ffd966;
}

#bannerWrapper>.bannerElement:nth-child(3) {
    border-color: #00b050;
}

#bannerWrapper>.bannerElement:nth-child(4) {
    border-color: #00b0f0;
}

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


#quickButtons ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 30px);
    flex-wrap: wrap;
    justify-content: center;
}

#quickButtons ul>li {
    flex-grow: 1;
}

#quickButtons li+li {
    margin-left: 15px;
}

#quickButtons {
    width: 100%;
    display: block;
    margin-top: -20px;
    z-index: 12;
}

#quickButtons a {
    display: block;
    width: 100%;
    padding: 15px clamp(15px, 2vw, 30px);
    background: #2e75b6;
    text-align: center;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: filter 200ms linear;
    font-size: clamp(1rem, 2vw, 1.5625rem);
}

@media (max-width: 767px) {
    #quickButtons {
        margin-top: 5px;
        padding: 10px 0;
    }
}

#quickButtons ul>li:nth-child(4n+2) a {
    background: #008039;
}

#quickButtons ul>li:nth-child(4n+3) a {
    background: #b3199e;
}

#quickButtons ul>li:nth-child(4n+4) a {
    background: #c70000;
}

#quickButtons a:is(:hover, :focus) {
    filter: brightness(125%);
}


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

main {
    background: url(../img/decor.jpg) repeat-x bottom center;
}

#content {
    text-align: left;
    padding-bottom: 60px;
    padding-top: 30px;
}


/* ------------------------------------------------ breaker ----------------------------------------------- */

#breaker {
    padding-bottom: 60px;
    background: url(../img/musiknoten.jpg) no-repeat left 210px center, url(../img/musiknoten-rechts.png) no-repeat right center;
}

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

#gridWrapper {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

@media (max-width: 575px) {
    #gridWrapper {
        display: flex;
        flex-direction: column;
    }
}

#breaker .tabIcon {
    background: #fff;
    border: 1px solid #c55a11;
    min-height: 100%;
    padding: 20px 80px 20px 20px;
    position: relative;
}

@media (max-width: 575px) {
    #breaker .tabIcon {
        padding: 30px 20px 20px 20px;

    }
}

#breaker .tabIcon {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

#breaker .tabIcon::after {
    content: '';
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    width: 50px;
    height: 50px;
    background-image: url(../img/note.png);
    background-repeat: no-repeat;
    background-position: center;
    background-color: #c55a11;
}

@media (max-width: 767px) {
    #breaker .tabIcon::after {
        width: 30px;
        height: 30px;
        top: 0;
        right: 0;

    }
}

#breaker .tabIcon:nth-child(2)::after {
    background-color: #c70000;
}

#breaker .tabIcon:nth-child(3)::after {
    background-color: #00b050;
}

#breaker .tabIcon:nth-child(4)::after {
    background-color: #00b0f0;
}

#breaker .tabIconInfo::after {
    background-color: #fff;
    background-image: url(../img/info.png);
}

#breaker .buttonStyle a {
    display: inline-block;
    padding: 10px 30px;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1rem;
    text-align: center;
    transition: filter 200ms linear;
    background: #2e75b6;
    color: #fff;
}

#breaker .buttonStyle a:is(:hover, :focus) {
    filter: brightness(115%);
}

#breaker .tabIconInfo {
    background: #f7f7f7;
    border-color: #e6e6e6;
    padding-top: 60px;
    padding-bottom: 60px;
    box-shadow: none;
    font-size: 1.125rem;
}

#breaker .headlineh3 h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

#breaker .headlineh3 h4 {
    font-weight: 400;
    font-size: 1rem;
    color: #007db5;
}

#breaker .tabIcon:nth-child(2) {
    border-color: #c70000;
}

#breaker .tabIcon:nth-child(3) {
    border-color: #00b050;
}

#breaker .tabIcon:nth-child(4) {
    border-color: #00b0f0;
}


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

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

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

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

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

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

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

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


/* ----------------------------------------------- footer ----------------------------------------------- */

#footerTop {
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
    font-size: 1rem;
    background-size: cover;
}

#footerTop address a {
    text-decoration: underline;
}

#footerTop .tab {
    padding: 10px 0;
}

#footerTop ul {
    padding-left: 15px;
    list-style-type: '-';
}

#footerTop ul li {
    padding-left: 5px;
}

#footerTop ul li a {
    color: #444;
    font-weight: 400;
}

#footerTop .tabHeadline {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #444;
}

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

@media (min-width: 768px) {
    #footerTop>.row>.col-md-5 {
        border-left: 1px solid #b6b6b6;

    }
}

#footerBottom {
    background: #2e75b6;
    padding: 15px 0;
}

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

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: block;
}

#innerfooter a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
}

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

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

    #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: 400;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}