@import url("https://fonts.verwaltungsportal.de/import/?family=DM+Sans:400,500,700,400i,500i,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Rubik:300,500,300i,500i");

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

body {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    color: #2f2c5f;
    background: #ffffff;
    font-size: 1rem;
    /* 1rem = 16px */
    line-height: 1.5;
}

a {
    color: #2f2c5f;
}

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

#footerTop a,
#headerWrapper .tab a,
main a {
    text-decoration: underline;
}

#footerTop a,
#headerWrapper .tab a,
main a{
    transition: opacity 200ms linear;
}

#footerTop a:is(:hover, :focus),
#headerWrapper .tab a:is(:hover, :focus),
main a:is(:hover, :focus) {
    opacity: 0.7
}

#footerTop a,
#headerWrapper .tab a,
main a,
b,
strong {
    font-weight: 700;
}


#footerTop h2>a {
    font-weight: 500;
}


.wideRow {
    max-width: 1660px;
    width: 100%;
}


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

#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) {
    nav.horizontally {
        min-height: 80px;
        padding: 20px 0;
        background-color: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid #484093;
    }



    #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: #2f2c5f;
        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: 5px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: 33px 0;
        background: #ffffff;
        border-bottom: 1px solid transparent;
        transition: border 300ms ease-in-out, padding 300ms ease-in-out;
    }

    .is-sticky nav.horizontally {
        padding: 20px 0;
        border-bottom-color: #2f2c5f;
    }

    body:not(.index) .horizontally {
        border-bottom: 1px solid #2f2c5f;
    }

    nav.horizontally>.row {
        max-width: 1660px;
        width: 100%;
    }

    #myNavbar,
    nav.horizontally .navbar-nav {
        column-gap: clamp(10px, 2vw, 25px);
    }

    nav.horizontally .navbar-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    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: #2f2c5f;
    font-weight: 500;
    text-align: left;
    padding: 12px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "DM Sans", sans-serif;
}

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

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

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

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


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

/* secondlevel + thirdlevel dropdown-box */

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

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

    nav.horizontally [class*="secondlevel"]>ul {
        padding: 15px 0 15px 15px;
    }
}

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

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

    .is-sticky nav.horizontally [class*="toplevel"]>ul {
        margin-top: 21px;
    }

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #ffffff;
    font-weight: 400;
    text-align: left;
    padding: 10px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "DM Sans", sans-serif;
}

@media (max-width: 991px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding-left: 15px;
        padding-right: 15px;
    }

    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: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ------------------------------------------------ headbereich ----------------------------------------------- */
#headerWrapper {
    display: flex;
    align-items: center;
    justify-content: end;
    flex-direction: column;
    background: url(../img/img-banner-formen.jpg) no-repeat center center / cover;
    font-size: clamp(1rem, 2vw, 1.4375rem);
    color: #2f2c5f;
    padding: 30px 0;
    max-height: 550px;
}


@media (min-width: 992px) {
    #headerWrapper {
        height: 60vh;
    }

    #headerWrapper .wideRow {
        margin-bottom: 40px;
        margin-top: clamp(40px, 5vw, 125px);
    }

}

#headerWrapper .tabHeadline {
    font-weight: 300;
    font-size: clamp(1.5rem, 5vw, 4.375rem);
    font-style: italic;
    margin-bottom: 5px;
}


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

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


/* ------------------------------------------------- buttonStyle ------------------------------------------------ */


.buttonStyle a:not(.has-image):not([rel]) {
    padding: 12px 32px;
    display: inline-block;
    border-radius: 8px;
    color: #2f2c5f;
    background-color: #ffd200;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: transform 200ms ease, opacity 200ms ease;
}

.buttonStyle a:not(.has-image):not([rel]):is(:hover, :focus) {
    transform: translateY(-2px);
    opacity: 0.9;
}


@media (max-width: 991px) {
    .headerButton a:not(.has-image):not([rel]) {
        border: 2px solid #2f2c5f;

    }
}



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


#tabs {
    padding-bottom: clamp(30px, 4vw, 60px);
}

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

#tabs .tabHeadline {
    font-size: clamp(1.25rem, 2vw, 1.375rem);
    margin-bottom: 5px;
}

#tabs .tab {
    border-radius: 10px;
    background: #f3ede2;
    padding: 30px;
    font-size: 1rem;
    min-height: 100%;
}


#tabs ul,
#tabs li {
    all: unset;
}



#tabs li {
    position: relative;
    display: block;
    padding-left: 20px;
    margin-top: 15px;
}

#tabs li::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background: no-repeat center / contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' stroke='%232f2c5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    position: absolute;
    left: 0;
    top: 4px;
}

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

#breaker {
    padding: clamp(30px, 4vw, 60px) 0;
    background: url(../img/form-bottom-right-green.png) no-repeat bottom right 150px, url(../img/form-top-left-violett.png) no-repeat top left 140px #f3ede2;
}

#breaker .tab {
    background: #ffd200;
    border-radius: 20px;
    padding: 50px 30px;
    font-weight: 300;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-family: "Rubik", sans-serif;
}


@media (min-width: 992px) {
    #breaker .tab {
        padding: 50px 170px;
    }
}

/* -------------------------------------- breakerTwo------------------------------------- */


#breakerTwo {
    padding: clamp(30px, 4vw, 60px) 0;
}

#breakerTwo .tabHeadline {
    font-size: clamp(1.25rem, 2vw, 1.375rem);
}



/* -------------------------------------- breakerThree------------------------------------- */

#breakerThree {
    background: #f3ede2;
    padding: clamp(30px, 4vw, 60px) 0 clamp(30px, 6vw, 80px) 0;
    font-weight: 500;
}

#breakerThree blockquote::before,
#breakerThree blockquote::after {
    display: none;
}

#breakerThree blockquote {
    padding-left: 0;
    font-style: normal;
}

#breakerThree blockquote>* {
    border-left: #ffd200 3px solid;
}

#breakerThree em,
#breakerThree i {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 300;
    font-family: "Rubik", sans-serif;
}

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

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

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

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.25rem, 2vw, 1.375rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

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

footer {
    background-color: #aac8af;
    padding-top: clamp(30px, 4vw, 60px);
    padding-bottom: clamp(30px, 4vw, 50px);
}

#footerTop .tabLeft h2 {
    margin: 0;
}

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

#footerBottom {
    margin-top: clamp(30px, 4vw, 60px);
}

footer h2,
footer .tabHeadline {
    font-size: clamp(1.25rem, 2vw, 1.375rem);
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: block;
}

#innerfooter a {
    text-decoration: none;
    font-weight: 400;
}

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

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

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

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

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

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

#vernetzt span span {
    display: block;
}