@import url('https://fonts.verwaltungsportal.de/import/?family=Jost:400,400i,500,500i,600,600i,700,700i');

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

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

a {
    color: #bf0603;
}

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

b,
strong {
    font-weight: 600;
}

@media (min-width: 1200px) {
    .row {
        max-width: 1420px;
        width: 100%;
    }
}

#over {
    overflow: hidden;
    position: relative;
}

/* ------------------------------------------- topbar ------------------------------------------- */

#topbar {
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    background: linear-gradient(to right, #ffffff, #ffffff) bottom 15px left / 100% 3px no-repeat, #afd8fa;
}

@media (max-width: 991px) {
    #topbar {
        min-height: 95px;
    }
}

@media (min-width: 992px) {
    #topbar {
        padding-top: 20px;
        padding-bottom: 40px;
    }
}

/* -------------------------------------------- tabHeadSlog -------------------------------------------- */

@media (max-width: 991px) {
    .tabHeadSlogMobil {
        padding: 30px 20px;
        background: linear-gradient(to top, #afd8fa, #ffffff);
    }
}

.tabHeadSlog {
    color: #0703e1;
    font-weight: 600;
    line-height: 1.2;
    font-size: clamp(1.25rem, 3vw, 2.5rem);
    border-radius: 32px;
    padding: 8px 24px;
    background: #ffffff;
    outline: 1px solid #ffffff;
    outline-offset: 4px;
    position: relative;
}

.tabHeadSlog::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: -8px;
    right: -22px;
    width: 53px;
    height: 43px;
    background: url('../img/blobbles-oben.png') center no-repeat;
}

.tabHeadSlog::after {
    content: '';
    position: absolute;
    pointer-events: none;
    left: -26px;
    bottom: -18px;
    width: 47px;
    height: 45px;
    background: url('../img/blobbles-unten.png') center no-repeat;
}

.tabHeadSlog :is(b, strong) {
    color: #0a7f0e;
}

.tabHeadSlog :is(em, i) {
    font-style: normal;
    color: #c70000;
}

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

#logo {
    display: inline-block;
    padding: 30px 25px;
    background: #ffffff;
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    border-radius: 2px 2px 20px 20px;
    position: absolute;
    top: 0;
    left: 15px;
    z-index: 50;
}

#logo img {
    display: block;
}

@media (max-width: 991px) {
    #logo {
        padding: 10px 10px;
    }

    #logo img {
        max-width: 180px;
        width: 100%;
    }
}

@media (min-width: 992px) {
    #logo {
        top: -20px;
    }

    #logo img {
        max-height: 162px;
        transition: max-height 300ms ease;
    }

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

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

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

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

    #headerpic a.nivo-prevNav {
        left: 65px;
    }

    #headerpic a.nivo-nextNav {
        right: 65px;
    }
}

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

#headerpic .nivo-controlNav {
    bottom: 25px;
}

@media (min-width: 768px) {
    #headerpic .nivo-controlNav {
        bottom: 40px;
    }
}

@media (min-width: 1200px) {
    #headerpic .nivo-controlNav {
        bottom: 80px;
    }
}

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

.slider-mask {
    display: block;
    background: url('../img/banner-overlay.png') center bottom -1px / 100% auto no-repeat, linear-gradient(to top, rgba(25, 25, 25, 1), rgba(255, 255, 255, 0) 40%);
}

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

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

/* burgermenu for tablet */

#burgerButton {
    font-size: 0;
    border: none !important;
    position: relative;
    z-index: 1002;
    display: inline-block;
    width: 58px;
    height: 58px;
    cursor: pointer;
    background: #ffffff;
}

@media (max-width: 991px) {
    #burgerButton {
        position: fixed;
        right: 15px;
        top: 10px;
    }
}

@media (min-width: 992px) {
    #burgerButton {
        margin: 20px 0 0 0;
        width: 140px;
        height: 44px;
        border-radius: 22px;
        outline: 1px solid #ffffff;
        outline-offset: 4px;
    }

    #burgerButton span:last-of-type {
        font-size: 25px;
        position: absolute;
        left: 65px;
        top: 10px;
        color: #191919;
        font-weight: 400;
        line-height: 1;
    }
}

#burgerButton::before,
#burgerButton::after,
#burgerButtonInner {
    position: absolute;
    background: #191919;
    width: 38px;
    height: 4px;
    left: 10px;
    transition: transform 200ms linear, opacity 200ms linear;
}

@media (prefers-contrast: more) {

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        border: 2px solid #ffffff;
        box-sizing: border-box;
    }
}

#burgerButton[aria-expanded="true"] #burgerButtonInner {
    transform: rotate(-45deg) translate(-7px, 7px);
}

#burgerButton[aria-expanded="true"]::before {
    opacity: 0;
}

#burgerButton[aria-expanded="true"]::after {
    transform: rotate(45deg) translate(-4px, -6px);
}

#burgerButtonInner {
    top: 19px;
}

#burgerButton::before {
    top: 28px;
    content: "";
}

#burgerButton::after {
    top: 37px;
    content: "";
}

@media (min-width: 992px) {
    #burgerButton::before, #burgerButton::after, #burgerButtonInner {
        left: 18px;
    }

    #burgerButtonInner {
        top: 12px;
    }

    #burgerButton::before {
        top: 22px;
    }

    #burgerButton::after {
        top: 32px;
    }

    #burgerButton[aria-expanded="true"]::after {
        transform: rotate(45deg) translate(-8px, -8px);
    }

    #burgerButton[aria-expanded="true"] #burgerButtonInner {
        transform: rotate(-45deg) translate(-6px, 6px);
    }
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #b0dfb0;
        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);
    }

    .dropdown-toggle-button-wrapper {
        top: 5px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    #myNavbar {
        pointer-events: none;
        position: absolute;
        z-index: 1002;
        top: 70px;
        left: 23px;
        opacity: 0;
        width: 580px;
        border-radius: 0;
        height: auto !important;
        overflow: visible !important;
        transition: opacity 300ms linear, top 300ms linear;
        border-radius: 20px;
    }

    #burgerButton[aria-expanded="true"]+#myNavbar,
    #myNavbar:focus-within {
        pointer-events: auto;
        opacity: 1;
        top: 140px;
    }

    #myNavbar::before {
        content: "";
        display: block;
        position: absolute;
        left: 15px;
        top: -18px;
        width: 50px;
        height: 18px;
        clip-path: polygon(0 100%, 100% 100%, 50% 0);
        background: #b0dfb0;
    }

    .navbar-nav {
        padding: 23px 0 25px 35px;
        background: #b0dfb0;
        min-height: 410px;
        border-radius: 20px 0 0 20px;
        box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.3);
    }

    nav.burger li[class*="toplevel"]>ul {
        padding: 25px 20px;
        position: absolute;
        z-index: 2;
        left: 50%;
        top: 0 !important;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        display: block !important;
        pointer-events: none;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    .navbar-nav,
    nav.burger li[class*="toplevel"]>ul {
        width: 50%;
    }

    nav.burger #myNavbar:is([aria-expanded="true"], .in) li[class*="toplevel"][class*="_over"]>ul,
    nav.burger li[class*="toplevel"]:is(:hover, :focus-within)>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    nav.burger li[class*="toplevel"]:is(:hover, :focus-within)>ul {
        z-index: 3;
    }

    nav.burger [class*="secondlevel"]>ul {
        display: block !important;
    }
}

/* toplevel */

nav.burger .navbar-nav a[class*="toplevel"] {
    color: #191919;
    font-weight: 600;
    text-align: left;
    padding: 10px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    nav.burger .navbar-nav a[class*="toplevel"].dropdown-toggle {
        padding-right: 35px;
    }
}

@media (min-width: 992px) {
    nav.burger .navbar-nav a[class*="toplevel"] {
        padding: 7px 30px;
        text-align: right;
    }

    nav.burger .navbar-nav a[class*="toplevel"]::before {
        content: "";
        position: absolute;
        display: block;
        width: 25px;
        top: 0;
        bottom: 0;
        right: -25px;
    }
}

/* toplevel-over */

nav.burger .navbar-nav li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.burger .navbar-nav li[class*="toplevel"]>a:is(:hover, :focus),
nav.burger .navbar-nav li[class*="toplevel"].open>a,
nav.burger .navbar-nav li[class*="toplevel"].open>a:is(:hover, :focus),
nav.burger .navbar-nav li[class*="toplevel"][class*="_over"]>a,
nav.burger .navbar-nav li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    color: #bf0603;
    background-color: #ffffff;
}

/* secondlevel + thirdlevel dropdown-box */

nav.burger li[class*="toplevel"]>ul {
    background: #ffffff;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.3);
    border-radius: 0 20px 20px 0;
}

/* secondlevel + thirdlevel */

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

nav.burger li:is([class*="_start"], [class*="end"]) {
    display: none;
}

@media (min-width: 992px) {
    nav.burger li[class*="secondlevel"] {
        border-top: 1px dashed rgba(82, 82, 82, 0.4);
    }

    nav.burger a[class*="secondlevel"] {
        padding: 9px 2px;
    }

    nav.burger a[class*="thirdlevel"] {
        padding: 5px 10px 5px 34px;
    }

    nav.burger a[class*="thirdlevel"]::after {
        content: "";
        position: absolute;
        left: 8px;
        top: 50%;
        background: #ffffff;
        width: 5px;
        height: 5px;
        margin-top: -2px;
        border-radius: 50%;
    }
}

/* secondlevel + thirdlevel over */

nav.burger li[class*="secondlevel"]:is(:hover, :focus-within)>a,
nav.burger li[class*="secondlevel"]>a:is(:hover, :focus),
nav.burger li[class*="secondlevel"].open>a,
nav.burger li[class*="secondlevel"].open>a:is(:hover, :focus),
nav.burger li[class*="secondlevel"][class*="_over"]>a,
nav.burger li[class*="secondlevel"][class*="_over"]>a:is(:hover, :focus) {
    background: transparent;
    color: #bf0603;
}

nav.burger li[class*="thirdlevel"]:is(:hover, :focus-within)>a,
nav.burger li[class*="thirdlevel"]>a:is(:hover, :focus),
nav.burger li[class*="thirdlevel"].open>a,
nav.burger li[class*="thirdlevel"].open>a:is(:hover, :focus),
nav.burger li[class*="thirdlevel"][class*="_over"]>a,
nav.burger li[class*="thirdlevel"][class*="_over"]>a:is(:hover, :focus) {
    background: #bf0603;
    color: #ffffff;
}

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

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

#content {
    text-align: left;
    padding-top: clamp(35px, 4vw, 60px);
    padding-bottom: clamp(35px, 5vw, 95px);
}

/* ------------------------------------------------ @14tab ----------------------------------------------- */

#tab14 {
    padding-top: clamp(30px, 5vw, 80px);
    padding-bottom: clamp(30px, 7vw, 120px);
}

@media (max-width: 575px) {
    #tab14 {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

#tab14>.row {
    outline: 1px solid #afd8fa;
    border-radius: 30px;
    outline-offset: 10px;
}

#tab14 .tab {
    color: #191919;
    position: relative;
    min-height: 100%;
    padding: 20px;
    background-color: #afd8fa;
    transition:
        border-radius 400ms ease-in-out,
        margin 400ms ease-in-out,
        padding 400ms ease-in-out,
        background 400ms ease-in-out,
        min-height 400ms ease-in-out;
}

#tab14 .tab:hover,
#tab14 .tab:focus {
    background-color: #b0dfb0;
}

@media (min-width: 768px) {
    #tab14>.row>*:nth-of-type(1)>.tab {
        border-top-left-radius: 30px;
        border-bottom-left-radius: 30px;
    }

    #tab14>.row>*:nth-last-of-type(1)>.tab {
        border-top-right-radius: 30px;
        border-bottom-right-radius: 30px;
    }

    #tab14 .tab:hover,
    #tab14 .tab:focus {
        border-radius: 30px 30px 0 0;
        min-height: calc(100% + 55px);
        margin-top: -55px;
        padding-top: 30px;
    }
}

@media (min-width: 1200px) {
    #tab14 .tab {
        padding: 45px 45px 45px 45px;
    }
}

#tab14 .tabHeadline {
    color: #191919;
    font-size: 1.5rem;
}

#tab14 .tab a {
    display: inline-block;
    text-decoration: none;
    position: relative;
    font-weight: 600;
    color: #2d2da5;
    border-radius: 20px;
    padding: 6px 22px 5px 22px;
    background: #ffffff;
    outline: 1px solid #ffffff;
    outline-offset: 4px;
    margin: 6px;
    transition: color 300ms linear, background 300ms linear, outline 300ms linear;
}

#tab14 .tab a:hover,
#tab14 .tab a:focus {
    color: #ffffff;
    background: #bf0603;
    outline-color: #bf0603;
}

#tab14>.row>* {
    padding: 0px;
}

@media (max-width: 767px) {
    #tab14 {
        margin: 15px;
    }

    #tab14>.row {
        border-radius: 30px;
        overflow: hidden;
    }
}

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

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

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

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.9375rem, 3.5vw, 2.1875rem);
}

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

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

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

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

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

footer {
    color: #ffffff;
    position: relative;
    background: linear-gradient(to right, #ffffff, #ffffff) top 18px left / 100% 3px no-repeat, linear-gradient(to bottom, rgba(255, 255, 255, 0), #afd8fa 390px), #afd8fa;
    padding: clamp(35px, 3vw, 55px) 0 30px 0;
}

#parallax {
    position: relative;
    height: 375px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#parallax::before {
    content: "";
    display: block;
    position: absolute;
    background: url('../img/footer-overlay.png') center top / 100% auto no-repeat;
    width: 100%;
    height: 120px;
    top: 0;
    z-index: 1;
}

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

#f5>.row {
    row-gap: 12px;
}

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

#innerfooter ul {
    padding: 0;
    color: #191919;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #191919;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

#innerfooter a:hover,
#innerfooter a:focus {
    color: #191919;
    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-size: 1rem;
    color: #191919;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}