@import url('https://fonts.verwaltungsportal.de/import/?family=Nunito:400,700,400i,700i%7CPT+Serif:400,44i,700i,700');

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

body {
    font-family: "Nunito", sans-serif;
    color: #6e6e6e;
    background: #ffffff;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.5;
    border-top: 23px solid rgba(255, 225, 59, 0.65);
}

a {
    color: #a30000;
}

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

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

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

#logo {
    display: inline-block;
    position: relative;
    z-index: 51;
}

#logo img {
    display: block;
    transition: max-height 300ms linear;
    max-height: 150px;
}

@media (max-width: 991px) {
    #logo {
        margin-bottom: -60px;
    }

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

@media (min-width: 992px) {
    #logo {
        position: absolute;
        top: 10px;
        left: 15px;
    }

    #logo img {
        max-height: 250px;
    }

    .is-sticky #logo {
        top:  0;
    }

    .is-sticky #logo img {
        max-height: 150px;
    }
}

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

nav.horizontally {
    background: #fff;
}

/* burgermenu for tablet */

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

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

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally .navbar-nav {
        margin: 35px 0 0 0;
        display: flex;
        justify-content: flex-end;
        align-items: center !important;
        transition: margin 300ms linear;
    }

    nav.horizontally {
        background: #fff linear-gradient(to top, #a30000 0%, #a30000 50%, #fff 50%, #fff 50%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
        position: relative;
    }

    nav.horizontally::after {
        content: '';
        background: url('../img/kinderzeichnung-maedchen-mit-stift.png') no-repeat;
        width: 165px;
        height: 155px;
        position: absolute;
        left: calc(50% + 600px);
        top: -15px;
    }

    .is-sticky nav.horizontally {
        background: #a30000;
    }

    .is-sticky nav.horizontally .navbar-nav {
        margin-top: 24px;
        margin-bottom: 0;
        background: #a30000;
    }


    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 {
        margin: 55px 0 0 0;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 10px 35px;
    position: relative;
    text-transform: uppercase;
    font-size: 1.0625rem;
    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.4);
    }
}

@media (min-width: 992px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-left: clamp(10px, 2vw, 25px);
    }

    nav.horizontally a[class*="toplevel"] {
        padding: 35px 0 25px 0;
    }

}

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    position: absolute;
    left: calc(50% - 15px);
    bottom: 0;
    height: 11px;
    opacity: 0;
    border-top-left-radius: 90px;
    border-top-right-radius: 90px;
    background: #ffe13b;
    width: 20px;
    transition: opacity 300ms linear;
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    padding: 10px;
    background-color: #fff;
}

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

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

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

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

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

    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: #282828;
    text-align: center;
    padding: 10px 40px 10px 35px;
    font-weight: 400;
    position: relative;
    font-size: 1rem;
    text-transform: uppercase;
    line-height: 1.2;
    text-decoration: none;

}

@media (min-width: 992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        text-align: left;
    }

    nav.horizontally a[class*="secondlevel"]::after {
        content: "";
        position: absolute;
        left: 8px;
        top: 50%;
        background-color: #ffe13b;
        height: 19px;
        border-radius: 50%;
        transition: opacity 300ms linear;
        opacity: 0;
        width: 19px;
        margin-top: -10px;
        line-height: 1;
    }

    nav.horizontally a[class*="thirdlevel"]::after {
        content: "";
        position: absolute;
        left: 8px;
        background-color: #ffe13b;
        top: 50%;
        border-radius: 50%;
        margin-top: -10px;
        height: 17px;
        opacity: 0;
        transition: opacity 300ms linear;
        width: 17px;
        line-height: 1;
    }
}

/* 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: #a30000;
    color: #ffffff;
}

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

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

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

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

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

#headerpic {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.slider-wrapper,
#slider {
    height: 100%;
}

.slider-mask {
    display: block;
    background: url('../img/banner-welle.png') right bottom / 100% auto no-repeat;
}

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

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

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

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

#tabs {
    padding: clamp(30px, 4vw, 70px) 0 0 0;
    border-bottom: 23px solid rgba(255, 225, 59, 0.65);

}

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

#tabs .tab {
    background: #fff;
    height: 100%;
    min-height: 100%;
    padding: 30px 20px;
}

#tabs .tab1 {
    background: #fff;
    box-shadow: 0px 8px 15px 0px rgba(0, 0, 0, 0.2);
    bottom: -23px;
}

#tabs .tab :is(h1, h2, h3, h4, h5, h6) {
    margin: 0 0 10px 0;
    color: #a30000;
    font-size: 1.875rem;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #a30000;
    font-weight: 400;
    line-height: 1.2;
    font-family: "PT Serif", serif;
}

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

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.875rem, 4.5vw, 2.1875rem);

}

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

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

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

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

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

#footer {
    background: transparent;
    color: #ffffff;
    font-size: 1rem;
}

@media (max-width: 991px) {
    :is(#footer, #innerfooter)>.row>.col-xs-12+* {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 20px;
        padding-top: 20px;
    }
}

@media (min-width: 768px) {
    #innerfooter>.row>.col-xs-12+:nth-child(2) {
        border: none;
        margin-top: 0;
        padding-top: 0;
    }
}

#footer a {
    color: #ffffff;
    text-decoration: underline;
}

#footer .tab {
    padding: 30px 0;
}

#footer .tabContent {
    color: #ffffff;
    line-height: 1.7;
}

#footer .tabHeadline {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.footerHeadline {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 1.5625rem;
}

#footer .footerTab {
    background: #fff;
    padding: 20px 0;
}

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

#innerfooter {
    color: #ffffff;
    background-color: rgb(163, 0, 0, 0.8);
    padding: 20px 0 0 0;
    font-size: 1rem;
    position: relative;
}

.innerfooter  {
    margin-bottom: -14px;
}
#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

.innerfooter a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    font-family: "Cairo", serif;
    padding: 10px 12px 40px 12px;
    position: relative;
}

.innerfooter a::after {
    content: '';
    position: absolute;
    height: 17px;
    border-top-left-radius: 39px;
    border-top-right-radius: 39px;
    width: 30px;
    left: calc(50% - 15px);
    bottom: 0;
    opacity: 0;
    transition: 300ms opacity linear;
    background-color: #ffe13b;
}

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

.innerfooter a:is(:hover, :focus)::after {
    opacity: 1;
}

.innerfooter li+li {
    margin-left: 10px;
}

@media (min-width:1200px) {
    #innerfooter::after{
        content: '';
        position: absolute;
        background: url('../img/kinderzeichnung-junge-mit-pinsel.png') no-repeat;
        width: 243px;
        height: 215px;
        left: calc(50% + 662px);
        bottom: 30px;
    }
}

/* ------------------------------------------- scroll top --------------------------------------- */

#scroll-top {
    font-size: 0;
    width: 33px;
    height: 33px;
    display: block;
    position: relative;
    margin: 0 auto;
    background: #ffffff;
}

@media (min-width: 768px) {
    #scroll-top {
        margin-right: 0;
    }
}

@media (min-width: 992px) {
    #scroll-top {
        margin: 0 auto 20px auto;
    }
}

#scroll-top::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-top: 10px;
    display: inline-block;
    border-right: 3px solid #8c1251;
    border-top: 3px solid #8c1251;
    transform: rotate(-45deg);
    transition: border 300ms linear;
}

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

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

#vernetzt span span {
    display: block;
}