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

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

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

a {
    color: #7c61a8;
}

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

main a {
    font-weight: 500;
    text-decoration: underline;
}

b,
strong {
    font-weight: 600;
}

hr {
    height: 2px;
    opacity: 0.2;
    background: #000000;
}

/* #region ----------------------------------- topbar ------------------------------------------- */

#topbar {
    color: #404040;
    background: #bccf00;
    padding: 6px 0;
}

:is(#style, #contrast_style) span {
    color: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 10px 0 0;
    width: auto;
    line-height: inherit;
}

@media (min-width: 992px) {
    #style {
        margin-right: 30px;
        padding-right: 30px;        
        border-right: 2px solid #a0b000;
    }
    #style button {
        border: 1px solid #656565;
        color: #656565;
        display: inline-block;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        font-weight: 400;
        text-align: center;
        background-color: #fff;
        position: relative;
        line-height: 1;
        -webkit-transition: transform 150ms linear;
        -moz-transition: transform 150ms linear;
        -ms-transition: transform 150ms linear;
        -o-transition: transform 150ms linear;
        transition: transform 150ms linear;
        font-size: 14px;
        padding: 0;
    }
    #style button+button {
        margin-left: 8px;
    }
    #style button:hover {
        -moz-transform: scale(1.2);
        -webkit-transform: scale(1.2);
        -o-transform: scale(1.2);
        -ms-transform: scale(1.2);
        transform: scale(1.2);
    }
    #style button:focus-visible {
        outline: 2px auto;
    }
}

#contrast_style button {
    color: #000000;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.6);
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-weight: 400;
    text-align: center;
    background: #ffffff;
    position: relative;
    z-index: 1;
    font-size: 0;
}

#contrast_style button::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    left: -6px;
    top: -6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    -webkit-transition: opacity 150ms linear;
    -moz-transition: opacity 150ms linear;
    -ms-transition: opacity 150ms linear;
    -o-transition: opacity 150ms linear;
    transition: opacity 150ms linear;
}

#contrast_style *+* {
    margin-left: 10px;
}

#contrast_style button::after {
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    right: 3px;
    left: 3px;
    bottom: 3px;
    border: 1px solid rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

#contrast_style button:nth-of-type(1)::after {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) 50%, rgba(255, 255, 255, 1) 50%);
}

#contrast_style button:nth-of-type(2)::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) 50%, rgba(0, 0, 0, 0.6) 50%);
}

#contrast_style button:nth-of-type(3)::after {
    background: #ea5b0c;
    border: none;
}

/* #endregion -------------------------------- topbar ------------------------------------------- */

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

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

/* 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: #7c61a8;
        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: 64px;
        right: 15px;
        z-index: 101;
    }

    .is-sticky .navbar-header {
        top: 15px;
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background: rgba(255, 255, 255, 0.94);
        padding: 25px 0;
        box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.1);
        transition: padding 200ms linear;
    }

    .is-sticky nav.horizontally {
        padding: 10px 0;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        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, :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: #262626;
    font-weight: 700;
    text-align: left;
    padding: 12px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

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

    nav.horizontally li[class*="toplevel"]+li {
        border-top: 1px solid rgba(46, 60, 72, 0.2);
    }
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 10px 0;
        text-align: center;
    }

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

@media (min-width: 992px) {
    .navbar-default .navbar-nav>li.dropdownpr>a::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: calc(50% - 3px);
        display: block;
        width: 6px;
        height: 6px;
        border-right: 1px solid #595959;
        border-bottom: 1px solid #595959;
        transform: rotate(45deg);
    }
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #ffffff;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

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

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

    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: #7c61a8;
    color: #ffffff;
}

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

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

#slider {
    max-height: clamp(300px, 55vw, 600px);
    position: relative;
}

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

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

    body:not(.index) #headerpic .nivo-controlNav {
        bottom: 26px;
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .index #headerpic a.nivo-nextNav {
        left: 65px;
        right: unset;
        top: 51%;
    }
}

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

.slider-wrapper,
.nivo-main-image,
#slider>a>div {
    height: 100% !important;
}

.slider-mask {
    display: none;
}



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



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

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

/* #region ------------------------------------ breaker ----------------------------------------- */

#breaker {
    font-size: 1rem;
    padding-bottom: clamp(40px, 12vw, 210px);
    padding-top: clamp(40px, 10vw, 100px);
}

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

/* tabLeft */

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

#tabLeft .tabHeadline {
    color: #262626;
    margin-bottom: 20px;
    font-size: clamp(1.875rem, 5vw, 2.5rem);
    hyphens: auto;
}

#tabLeft a {
    font-size: clamp(1.25rem, 5vw, 1.875rem);
}

#tabLeft ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#tabLeft *+ul {
    margin-top: 25px;
}

#tabLeft ul li::before {
    content: unset;
}

#tabLeft ul li {
    padding: 0 0 0 50px;
    min-height: 24px;
}

#tabLeft ul li+li {
    margin-top: 30px;
}

/* tabRight */

#tabRight {
    min-height: 24vw;
    font-size: 1rem;
    background: url(../img/kreis.png) no-repeat top 70px left 50px;
    z-index: 12;
    position: relative;
}

#tabRight::after {
    content: "";
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: center / cover no-repeat;
    border: 17px solid #f2a486;
    display: block;
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    z-index: -1;
}

@media (min-width: 576px) {
    #tabRight::after {
        width: clamp(290px, 40vw, 436px);
        height: clamp(290px, 40vw, 436px);
        right: 15px;
        transform: unset;
    }
}

#tabRight .tab {
    position: relative;
    background-color: #bccf00;
    padding: 40px;
    margin-top: 355px;
    color: #262626;
    font-weight: 400;
}

@media (min-width: 576px) {
    #tabRight .tab {
        max-width: 370px;
        margin-top: calc(40vw - 50px);
    }
}

@media (min-width: 992px) {
    #tabRight .tab {
        margin-top: 240px;
    }
}

#tabRight .tab,
#tabRight .tab :is(h1, h2, h3, h4, h5, h6) {
    color: #262626;
}

#tabRight .tab a {
    margin-top: 20px;
}


#newsletter label {
    font-size: 0.875rem;
    margin-bottom: 4px;
    font-weight: 400;
}
#newsletterInputs {
    height: 52px;
    background: #7c61a8;
    display: inline-block;
    position: relative;
}
#newsletter_input {
    color: #fff;
    font-size: 16px;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    line-height: 52px;
    padding-left: 10px;
    padding-right: 43px;
    height: 52px;
    width: 100%;
}
#newsletter_submit {
    width: 52px;
    background: #634e86 url('../img/newsletter-icon.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    line-height: 52px;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    font-size: 0;
    -webkit-transition: background-color 300ms linear;
    -moz-transition: background-color 300ms linear;
    -ms-transition: background-color 300ms linear;
    -o-transition: background-color 300ms linear;
    transition: background-color 300ms linear;
}

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

/* #endregion --------------------------------- breaker ----------------------------------------- */



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

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

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

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

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4,
#news .tab_link_entry .tab_link_title {
    font-size: 1.375rem;
}

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

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

/* #region ----------------------------------- contactRow --------------------------------------- */

#contactRow {
    padding-bottom: clamp(30px, 7vw, 100px);
}

@media (max-width: 991px) {
    #contactRow {
        padding-top: 30px;
    }
}

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

#contactRow .tabHeadline {
    color: #262626;
    margin: 0;
}

.contactElement {
    padding-left: 35px;
    font-size: 1rem;
    margin-top: 25px;
    min-height: 30px;
}

.contactElement a {
    text-decoration: underline;
}

.location {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23f2a486" height="48" viewBox="0 -960 960 960" width="48"><path d="M480.089-490Q509-490 529.5-510.589q20.5-20.588 20.5-49.5Q550-589 529.411-609.5q-20.588-20.5-49.5-20.5Q451-630 430.5-609.411q-20.5 20.588-20.5 49.5Q410-531 430.589-510.5q20.588 20.5 49.5 20.5ZM480-159q133-121 196.5-219.5T740-552q0-117.79-75.292-192.895Q589.417-820 480-820t-184.708 75.105Q220-669.79 220-552q0 75 65 173.5T480-159Zm0 79Q319-217 239.5-334.5T160-552q0-150 96.5-239T480-880q127 0 223.5 89T800-552q0 100-79.5 217.5T480-80Zm0-480Z"/></svg>') no-repeat left -6px center / 35px auto;
}

.phone {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"  fill="%23f2a486" height="48" viewBox="0 -960 960 960" width="48"><path d="M795-120q-116 0-236.5-56T335-335Q232-438 176-558.5T120-795q0-19.286 12.857-32.143T165-840h140q14 0 24 10t14 25l26.929 125.641Q372-665 369.5-653.5q-2.5 11.5-10.729 19.726L259-533q26 44 55 82t64 72q37 38 78 69.5t86 55.5l95-98q10-11 23.151-15T686-369l119 26q15 4 25 16.044T840-300v135q0 19.286-12.857 32.143T795-120ZM229-588l81-82-23-110H180q2 42 13.5 88.5T229-588Zm369 363q41 19 89 31t93 14v-107l-103-21-79 83ZM229-588Zm369 363Z"/></svg>') no-repeat left -4px center / 32px auto;
}

.mail {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"  fill="%23f2a486" height="48" viewBox="0 -960 960 960" width="48"><path d="M120-160v-640l760 320-760 320Zm60-93 544-227-544-230v168l242 62-242 60v167Zm0 0v-457 457Z"/></svg>') no-repeat left -4px center / 32px auto;
}

/* #endregion -------------------------------- contactRow --------------------------------------- */

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

#footerNav {
    background: #7c61a8;
    padding: 20px 0;
}

@media (max-width: 767px) {
    #footerNav>.row>*+* {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

#innerfooter ul {
    padding: 0;
    font-size: 1rem;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter li+li {
    margin-left: 20px;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
}

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

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