@import url('https://fonts.verwaltungsportal.de/import/?family=Poppins:400,500,700,400i,500i,700i%7CBaloo+2:600,600i,700,700i');

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: #d2e8e9;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: #5f4479 #fff;
}

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

a {
    color: #2d6426;
}

a[href*="mailto:"] {
    text-decoration: underline;
}

a[href*="mailto:"]:is(:hover, :focus) {
    text-decoration: none;
}

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

b,
strong {
    font-weight: 600;
}

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

/* -------------------------------------------- contact -------------------------------------------- */

#contact,
#contact2 {
    font-size: .875rem;
    background-color: #5f4479;
    color: #fff;
    padding: 12px 0;
}

#contact a,
#contact2 a {
    color: #fff;
}

@media (min-width: 768px) {
    #contact>.row>div>div+div {
        margin-left: 66px;
    }    
}

#contact :is(.address, .phone, .email)::after,
#contact :is(.phone, .email)::before,
#contact2 :is(.address, .phone, .email)::after {
    content: '';
    position: absolute;
}

#contact :is(.address, .phone, .email) {
    position: relative;
}

#contact2 :is(.address, .phone, .email) {
    position: relative;
    padding-left: 15px;
}

#contact :is(.phone, .email)::before {
    right: calc(100% + 44px);
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #fff8f5;
    opacity: .2;
}

#contact :is(.address, .phone, .email)::after,
#contact2 :is(.address, .phone, .email)::after {
    right: calc(100% + 8px);
    top: 0;
    bottom: 0;
    background-repeat: no-repeat;
    background-position: center center;
}

#contact2 :is(.address, .phone, .email)::after {
    left: 0;
    right: unset;
}

#contact .address::after,
#contact2 .address::after {
    background-image: url(../img/icon-adresse.png);
    width: 16px;
}

#contact .phone::after,
#contact2 .phone::after {
    background-image: url(../img/icon-telefon.png);
    width: 16px;
}

#contact .email::after,
#contact2 .email::after {
    background-image: url(../img/icon-mail.png);
    width: 18px;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

nav {
    padding: 10px 0;
}

/* burgermenu for tablet */

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

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #fff;
        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 {
        background: #fff;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
    }

    nav.horizontally::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: url(../img/nav-mask.png) center no-repeat;
        height: 23px;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        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;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #444;
    font-weight: 500;
    text-align: left;
    padding: 12px 35px;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.2;
    text-decoration: none;
    transition: border 300ms linear;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 8px 15px 10px 15px;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%;
    }

    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 5px;
    }
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally :is([class*="toplevel"], [class*="secondlevel"]) ul {
    padding: 18px;
    border-radius: 40px;
    background-color: #fff;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.2);
}

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

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 10px;
        left: 50%;
        transform: translate(-50%, 0);
    }

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

    nav.horizontally [class*="toplevel"] 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::before {
        width: 32px;
        top: 0;
        bottom: 0;
        left: -32px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #4a3a26;
    font-weight: 400;
    text-align: center;
    padding: 4px 6px;
    background-color: #fff;
    position: relative;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width:991px) {
    nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
        padding-left: 35px;
        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) {
    color: #fff;
    background-color: #2d6426;
}

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

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

#slider {
    height: 250px;
    position: relative;
}

#slider>* {
    height: 100% !important;
}

@media (min-width: 768px) {
    #slider {
        height: 100% !important;
    }

    #headerpic .slider-wrapper {
        height: auto;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 50%;
    }

    #headerpic .nivo-directionNav a {
        z-index: 61;
    }

    #headerpic a.nivo-prevNav {
        right: 100px;
    }
}

@media (min-width: 992px) {
    #headerpic a.nivo-nextNav {
        right: 65px;
    }
}

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

.slider-mask {
    display: none;
}

@media (min-width: 768px) {
    .slider-mask {
        display: block;
        top: 0;
        right: 0;
        bottom: 0;
        width: 60%;
        background: linear-gradient(to left, #5f4479 0%, transparent 100%);
    }
}

#bannerOverlay {
    background: #5f4479;
    color: #444;
    padding-top: 25px;
    padding-bottom: 35px;
    font-weight: 400;
    font-size: 1.3125rem;
}

#bannerOverlay :is(em, i) {
    font-size: 1rem;
    font-style: normal;
}

#banner-tab {
    padding-top: 20px;
    padding-left: 60px;
    position: relative;
    z-index: 61;
}

@media (max-width: 1199px) {
    #banner-tab {
        padding: 20px;
        background-color: #ffffff;
    }
}

@media (min-width: 768px) {
    #bannerOverlay {
        padding-top: clamp(50px, 8vw, 80px);
        padding-bottom: clamp(50px, 8vw, 80px);
    }

    #headerpic .nivo-controlNav {
        text-align: center;
        padding-right: clamp(20px, 5vw, 56px);
        font-size: 0;
        bottom: 110px;
    }
}

@media (min-width: 992px) {
    #headerpic::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url(../img/slider-mask.png);
        height: 91px;
        z-index: 12;
    }
}

@media (min-width: 1200px) {
    #bannerOverlay {
        height: 750px;
        overflow: hidden;
    }

    body:not(.index) #bannerOverlay {
        height: 500px;
    }

    body:not(.index) #banner-tab {
        scale: .8;
    }
}

#bannerOverlay a {
    text-decoration: none;
    text-transform: uppercase;
    padding: 7px clamp(10px, 3vw, 40px) 6px;
    font-weight: 400;
    border-radius: 3px;
    color: #fff;
    background-color: #2d6426;
    text-shadow: none;
    display: inline-block;
    font-size: .875rem;
    margin-top: clamp(20px, 2vw, 30px);
    backface-visibility: hidden;
    transition: transform 150ms linear;
}

#bannerOverlay a::after {
    content: '»';
    margin-left: 2px;
}

#bannerOverlay a:is(:hover, :focus) {
    transform: scale(1.1);
}

#bannerOverlay a+a {
    margin-left: 15px;
}

@media(min-width: 1200px) {
    #banner-tab {
        position: relative;
        transform: translateX(50%);
    }

    #banner-tab::before {
        content: '';
        position: absolute;
        background: url(../img/banner-hintergrund.png);
        right: 50%;
        bottom: 50%;
        transform: translate(50%, 50%);
        width: 833px;
        height: 572px;
    }
}

#bannerOverlay .tiny_p:first-of-type {
    background-color: #fff;
}

#info {
    position: relative;
    font-family: "Baloo 2", sans-serif;
    color: #402f51;
    font-size: 1.5625rem;
    font-weight: 700;
    text-align: center;
    z-index: 13;
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.index #info {
    margin-top: -50px;
}

@media (min-width: 1200px) {
    #info {
        margin-top: -100px; 
        margin-bottom: 100px; 
    }
}

#info>.row>div::before {
    content: '';
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    top: -14px;
    background-image: url(../img/banderrole.png);
    width: 480px;
    height: 104px;
    z-index: -1;
}

#slider .nivo-imageLink>div {
    height: 100% !important;
}

@media (max-width: 767px) {
    body:not(.index) #slider {
        height: 500px;
    }

    body:not(.index) #bannerOverlay {
        display: none;
    }

    #banner-tab {
        margin-bottom: 100px;
        background-color: #fff;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 20px;
    }
}

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

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

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

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

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

h1,
.h1,
.legacy_h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

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

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.875rem, 4vw, 2.0625rem);
}

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

#bannerOverlay :is(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    font-size: clamp(2rem, 2vw, 2.5rem);
    color: #461a64;
    position: relative;
    font-weight: 700;
    z-index: 1;
    background-color: #fff;
}

#bannerOverlay :is(h4, h5, h6) {
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    font-weight: 600;
    background-color: #fff;
}

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

#f5 {
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: #5f4479;
}

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

@media (max-width: 767px) {
    #innerfooter {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

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

#innerfooter a:hover,
#innerfooter a:focus {
    color: #f5b2f4;
    text-decoration: underline;
}

#innerfooter li+li::before {
    content: "•";
    margin: 0 6px;
    color: #ffffff;
}

@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 {
    text-align: right;
    font-size: 0.75rem;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 auto;
    text-decoration: none;
}

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

#vernetzt span {
    color: #ffffff;
}

#vernetzt span span {
    display: block;
}

#vernetzt img {
    margin-left: 12px;
}

/* --------------------------------------------- footerSlogan -------------------------------------------- */

#footerSlogan {
    padding: 40px 0;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Baloo 2', sans-serif;
}

#footerSlogan :is(.tabContent, .tabHeadline) {
    font-size: 1.5625rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
}

#footerSlogan .tabContent a {
    color: #fff;
}

/* --------------------------------------------- toolbar -------------------------------------------- */

#toolbar {
    font-size: 0.875rem;
}

@media (min-width: 992px) {
    #toolbar {
        padding-top: 45px;
    }
}

/* --------------------------------------------- counter -------------------------------------------- */

#counter {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 5px 15px;
    text-align: center;
    font-size: 0.875rem;
    width: auto;
    display: inline-block;
}

#counter-l,
#counter-r {
    display: inline-block;
}

/* --------------------------------------------- Suche -------------------------------------------- */

#search {
    height: 33px;
    background: transparent;
    display: inline-block;
    position: relative;
}

#search_input {
    color: #fff;
    font-size: 14px;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    line-height: 33px;
    padding-left: 10px;
    padding-right: 43px;
    height: 33px;
    width: 100%;
}

#search_submit {
    width: 33px;
    background: url(../img/Lupe.png) center no-repeat;
    padding: 0;
    cursor: pointer;
    line-height: 33px;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    font-size: 0;
    -webkit-transition: background-color 300ms linear;
    transition: background-color 300ms linear;
}

#search_submit:hover,
#newsletter_submit:hover {
    background-color: #461a64;
}

#search_input::-ms-input-placeholder {
    color: #fff !important;
}

#search_input::-webkit-input-placeholder {
    color: #fff !important;
}

#search_input::-moz-placeholder {
    opacity: 1;
}

#search_input:-moz-placeholder {
    opacity: 1;
}

#newsletter label {
    font-size: 0;
    line-height: 0;
}

#newsletterInputs {
    height: 33px;
    background: transparent;
    display: inline-block;
    position: relative;
    border: #fff 1px solid;
    border-radius: 3px;
    margin-top: 26px;
}

#newsletter_input {
    color: #fff;
    font-size: 16px;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    line-height: 33px;
    padding-left: 10px;
    padding-right: 43px;
    height: 33px;
    width: 100%;
}

#newsletter_submit {
    width: 33px;
    background: transparent url(../img/newsletter-icon.png) center no-repeat;
    padding: 0;
    cursor: pointer;
    line-height: 33px;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    font-size: 0;
    -webkit-transition: background-color 300ms linear;
    transition: background-color 300ms linear;
}

#newsletter_submit:hover {
    background-color: #461a64;
}

#newsletter_input::-ms-input-placeholder {
    color: #fff !important;
}

#newsletter_input::-webkit-input-placeholder {
    color: #fff !important;
}

#newsletter_input::-moz-placeholder {
    opacity: 1;
}

#newsletter_input:-moz-placeholder {
    opacity: 1;
}