@import url('https://fonts.verwaltungsportal.de/import/?family=Poppins:300,400,600,300i,400i,600i%7CPlayfair+Display:400,600,400i,600i');

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

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

a {
    color: #af4169;
}

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

b,
strong {
    font-weight: 600;
}

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

#logo {
    display: inline-block;
}


@media (min-width: 992px) {
    #logo {
        position: absolute;
        top: clamp(-41px, -3vw, 10px);
        z-index: 55;
    }

    .is-sticky #logo img {
        max-width: 120px;
    }

}

#logo img {
    display: block;
}

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

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

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

nav {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* burgermenu for tablet */

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

    body:not(.index) nav {
        padding-top: 0;
        padding-bottom: 0;
    }

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

    .sticky-wrapper {
        height: auto !important;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav {
        padding-top: clamp(10px, 3vw, 41px);
        padding-bottom: clamp(10px, 3vw, 40px);
    }

    nav.horizontally {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #f2efe2;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
    }

    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;
        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: #494949;
    font-weight: 400;
    text-align: left;
    padding: 12px 35px;
    font-family: "Playfair Display", sans-serif;
    border: 1px solid #ffffff;
    border-radius: 3px;
    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: #af4169;
    border-color: #af4169;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

    nav.horizontally [class*="toplevel"] ul::before {
        content: "";
        position: absolute;
        display: block;
    }

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

    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: #6f6f6f;
    font-weight: 300;
    text-align: center;
    padding: 8px 6px;
    background-color: #ffffff;
    position: relative;
    font-size: clamp(1rem, 1vw, 1.125rem);
    line-height: 1.2;
    text-decoration: none;
}

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before,
nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
    content: "";
    display: block;
    position: absolute;
    background-color: #af4169;
    height: 1px;
    top: 50%;
    width: 0;
    transition: width 200ms linear;
}

@media (min-width: 992px) {

    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before,
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
        z-index: -1;
    }
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    left: -18px;
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
    right: -18px;
}

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

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus)::before,
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 {
    width: 25px;
}

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

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

/* ----------------------------------------------- video_wrapper ----------------------------------------------- */

#video_wrapper {
    width: 100%;
    height: auto;
    max-height: 580px !important;
    overflow: hidden;
    position: relative;
}

#body-video-background {
    width: 100%;
    position: relative;
    margin-top: -6%;
    max-width: 100%;
    object-fit: cover;
}

@media(max-width:991px) {
    #video_wrapper {
        max-height: 300px !important;
    }

    #slider {
        height: clamp(190px, 37vw, 300px) !important;
    }

    #slider>.slick-slider,
    #slider>.slick-slider * {
        height: clamp(190px, 37vw, 300px) !important;
    }
}


#bannerOverlay {
    color: #ffffff;
    background-color: #af4169;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
    font-weight: 400;
}

@media (min-width: 992px) {
    #bannerOverlay {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0);
        z-index: 15;
    }

    .overlay-background {
        background: transparent;
    }
}


@media (max-width: 767px) {
    body:not(.index) #bannerOverlay {
        display: none;
    }
}

#bannerOverlay a {
    text-decoration: none;
    text-transform: uppercase;
    padding: 7px clamp(10px, 2vw, 30px) 6px clamp(10px, 2vw, 30px);
    border: 1px solid #ffffff;
    font-weight: 700;
    border-radius: 3px;
    text-shadow: none;
    display: inline-block;
    font-size: 1rem;
    backface-visibility: hidden;
    transition: transform 150ms linear;
}

.index #bannerOverlay a {
    margin: 10px 0;
}

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

#bannerOverlay a:nth-of-type(2n+1) {
    color: #ffffff;
    background: transparent;
}

#bannerOverlay a:nth-of-type(2n+2) {
    color: #af4169;
    background: #ffffff;
}

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

#bannerOverlay a::before {
    content: "";
    display: inline-block;
    margin-right: 8px;
    width: 15px;
    height: 15px;
    background: url('../img/kontakt-icon.png') center / contain no-repeat;
    position: relative;
    bottom: -1px;
}

#bannerOverlay a:nth-of-type(2n+2)::before {
    background: url('../img/mehr-erfahren-icon.png') center / contain no-repeat;
}


#headerpic {
    position: relative;
}

@media (min-width: 992px) {
    #headerpic::after {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 167px;
        background: url('../img/Form_-banner-unten.png') no-repeat;
        z-index: 5;
        pointer-events: none;
    }
}

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

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

body #content:not(:has(#welcomepage-wrapper)) {
    text-align: left;
    padding-top: clamp(10px, 5vw, 75px);
    padding-bottom: clamp(40px, 4vw, 75px);
}

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

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

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

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

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

footer {
    background: #af4169;
    padding: clamp(50px, 4vw, 80px) 0 clamp(25px, 4vw, 50px) 0;
    color: #ffffff;
    position: relative;
}

@media (min-width: 992px) {
    footer::after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 64px;
        background: url('../img/Form-footer.png') no-repeat;
    }
}



@media (min-width: 1200px) {
    footer {
        background: url('../img/wasserzeichen-footer.png') center right 30px no-repeat, #af4169;
    }
}

footer .button-style {
    margin-bottom: 15px;
}

footer .button-style a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid #ffffff;
    font-weight: 600;
    border-radius: 3px;
    text-shadow: none;
    display: inline-block;
    font-size: 0.875rem;
    font-family: "Playfair Display", sans-serif;
    margin: 4px;
}

footer .button-style a:is(:hover, :focus) {
    background: #ffffff;
    color: #af4169;
}

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

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

@media (min-width: 992px) {
    footer>.row.border-row::after {
        content: "";
        background: #ffffff;
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 1px;
        display: block;
        opacity: 0.25;
    }

    footer>.row.border-row>div {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    footer>.row.border-row>div:nth-child(2) {
        padding-right: 30px;
    }

    footer>.row.border-row>div:nth-child(3) {
        padding-left: 30px;
    }
}

#innerfooter {
    line-height: 1.7;
}

#innerfooter ul {
    padding: 0;
}

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

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

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

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

#vernetzt {
    gap: 18px;
    text-align: left;
    font-size: 0.875rem;
    color: #fff;
    line-height: 1.4;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}

/* ------------------------------------------- kontakt ------------------------------------------ */

#kontakt {
    font-size: 1rem;
}

#kontakt .tabHeadline {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 20px 0;
}

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

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

#scroll-top {
    font-size: 0;
    border: 1px solid #ffffff;
    border-radius: 3px;
    width: 40px;
    height: 40px;
    display: block !important;
    position: relative;
    margin: 0 auto;
}

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

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

#scroll-top:is(:hover, :focus) {
    background: rgba(0, 0, 0, 0.2);
}