@import url('https://fonts.verwaltungsportal.de/import/?family=KoHo:300,300i,400,400i,500,500i%7CNewsreader:400,400i,500,500i');

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

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

body:not(.noListStyle) main ul:not([class*="menue"]):not([class*="slick-dots"]):not(.rsbtn_toollist):not(.units):not(.no-list-style):not(.footer_list) li:not(.gallery-list-item):not(.album-list-item):not(.entry):not(.unit-title):not(.single-comment)::before {
    top: clamp(22px, 2.4vw, 28px);
}

a {
    color: #4a735f;
}

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

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

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

#logo {
    display: inline-block;
}

#logo.contrast_light_font img{
    background-color: #fff;
}

#logo img {
    display: block;
}

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

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

/* burgermenu for tablet */

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

    #burgerButton {
        font-size: 0;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background: #ffffff;
        border: none !important;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #262626;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 10px;
        transition: transform 200ms linear, opacity 200ms linear;
    }

    #burgerButton.contrast_light_font::before,
    #burgerButton.contrast_light_font::after,
    #burgerButton.contrast_light_font #burgerButtonInner {
        background-color: #fff !important;
    }

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

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

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: clamp(30px, 3vw, 46px) 0;
        background: #fff;
        transition: all 0.2s 0s linear;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
    }

    .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;
        min-width: 295px;
    }

    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:focus-within, :hover)>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:is(:hover, :focus-within)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #736d6e;
    font-weight: 400;
    text-align: left;
    padding: 15px 15px;
    text-transform: uppercase;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"] {
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    }

    nav.horizontally a[class*="toplevel"].dropdown-toggle {
        padding-right: 35px;
    }
}

@media (min-width: 992px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 15px;
    }

    nav.horizontally a[class*="toplevel"] {
        padding: 18px 0;
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    nav.horizontally a[class*="toplevel"] {
        font-size: 1.125rem;
    }
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"]>ul {
    background-color: #a6dbb5;
}

nav.horizontally [class*="secondlevel"]>ul {
    background-color: #a6dbb5;
}

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

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

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

    nav.horizontally [class*="toplevel"]>ul {
        left: -35px
    }

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

/* secondlevel + thirdlevel */

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

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

@media(min-width:992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding: 12px 60px 12px 40px;
    }
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #ffffff;
    z-index: -1;
    opacity: 0;
    transition: opacity 300ms linear;
}

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

    nav.horizontally a[class*="secondlevel"]::after {
        left: -40px;
    }
}

/* secondlevel + thirdlevel over */

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: 300px;
    position: relative;
}

#headerpic {
    padding: 110px 0 0 0;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: clamp(40px, 7vw, 80px);
}

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

.slider-mask {
    display: none;
}

/* header tab */

#headerBox {
    padding: clamp(30px, 4vw, 60px);
    background: linear-gradient(45deg, #95d2a7 50%, #99d1d8);
    position: relative;
    z-index: 1;
    font-family: "Newsreader", sans-serif;
    font-weight: 400;
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    margin-bottom: calc(clamp(40px, 7vw, 80px) * -1);
}

@media (max-width: 767px) {
    .index #headerBox {
        padding: clamp(30px, 4vw, 60px);
    }
}

@media (min-width: 768px) {
    .index #headerBox>.row {
        background: linear-gradient(#ffffff, #ffffff) top left 64% / 35% calc(100% - 50px) no-repeat;
    }
}

@media (min-width: 1200px) {
    .index #headerBox {
        padding: 80px 60px 80px 80px;
    }
}

#quote {
    padding-bottom: 25px;
}

@media (min-width: 768px) {
    #quote {
        padding-top: 40px;
    }

    .index #quote {
        padding-right: 60px;
    }
}

@media (min-width: 992px) {
    .index #quote {
        padding-right: 100px;
    }
}

#welcome {
    padding-top: clamp(30px, 4vw, 50px);
}

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

#welcome :is(h1, h2, h3, h4, h5, h6) {
    color: #252525;
    font-size: clamp(1.875rem, 4vw, 3.125rem);
    font-family: "KoHo", sans-serif;
    font-weight: 300;
    line-height: 1.3;
    margin: 0;
}

#welcome a {
    margin-top: clamp(25px, 4vw, 50px);
}

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

/* ------------------------------------------ button style -------------------------------------- */

.buttonStyle a {
    display: inline-block;
    color: #ffffff;
    background: #4a735f;
    font-family: "Newsreader", sans-serif;
    font-weight: 400;
    padding: 13px clamp(20px, 4vw, 50px) 9px clamp(20px, 4vw, 50px);
    text-decoration: none;
    line-height: 1.3;
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
}

@media (min-width: 1200px) {
    #welcome.buttonStyle a {
        padding-left: 74px;
        padding-right: 74px;
    }
}

.buttonStyle a:is(:hover, :focus) {
    background: #4a4647;
}

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

#content {
    text-align: left;
    padding-bottom: clamp(40px, 8vw, 100px);
    padding-top: clamp(40px, 4vw, 50px);
}

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

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

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

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

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
    font-size: clamp(1.5625rem, 2.5vw, 2.0625rem);
}

h5,
.h5,
.legacy_h5 {
    font-size: clamp(1.5rem, 2vw, 1.875rem);
}

h6,
.h6,
.legacy_h6 {
    font-size: clamp(1.375rem, 2vw, 1.6875rem);
}

/* #region ------------------------------------ tabs -------------------------------------------- */

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

#tabsWrapper>.row>.col-xs-12>.tab {
    margin-bottom: 40px;
}

#tabsWrapper>.row>.col-xs-12 .tabHeadline {
    margin-bottom: 0;
    color: #2d747b;
}

#tabs {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

#tabs .tab {
    font-family: "NewsreaderRoman", serif;
    position: relative;
}

#tabs .tabHeadline {
    padding: 30px 20px;
    background: rgba(153, 209, 216, 0.90);
    min-height: 250px;
    transition: background 0.3s 0s linear;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    hyphens: auto;
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    width: auto;
    margin: 0;
    bottom: -40px;
    pointer-events: none;
}


#tabs img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

#tabs .tab:has(a:focus-within > img) .tabHeadline {
    background: rgba(153, 209, 216, 1);
}

#tabs .tab:has(a:hover > img) .tabHeadline {
    background: rgba(153, 209, 216, 1);
}

/* #endregion --------------------------------- tabs -------------------------------------------- */

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

footer {
    padding-bottom: clamp(40px, 6vw, 100px);
}

.index footer {
    padding-top: 100px;
}

@media (min-width: 1200px) {
    .index footer {
        padding-top: 140px;
        background: url(../img/deko-footer.png) no-repeat top 100px right;
    }
}

footer>.row {
    row-gap: 40px;
    background: linear-gradient(45deg, #99d1d8 50%, #95d2a7) top left 15px / 48% 100% no-repeat;
}

@media (max-width: 575px) {
    footer>.row {
        padding: 40px 15px;
    }
}

@media (min-width: 576px) {
    footer>.row>*:not(:last-child) {
        padding-top: clamp(40px, 6vw, 80px);
        padding-bottom: clamp(40px, 6vw, 80px);
    }

    footer>.row>*:nth-child(1) {
        padding-left: 50px;
    }
}

@media (min-width: 992px) {
    footer>.row>*:nth-child(1) {
        padding-left: 80px;
    }
}

#innerfooter ul {
    padding: 0;
    line-height: 1.9;
    font-size: 1.125rem;
}

#innerfooter a {
    color: inherit;
}

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

footer .footerHeadline {
    margin-bottom: clamp(20px, 2vw, 35px);
}

#footerTab a {
    margin-top: clamp(15px, 3vw, 40px);
}

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

#vernetzt {
    gap: 14px;
    text-align: right;
    font-size: 0.875rem;
    color: #736d6e;
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}

/* ------------------------------------------ contrast ------------------------------------------ */

.contrast_dark_font .navbar-default .navbar-nav>li>.dropdown-menu>li>a::after,
.contrast_dark_font .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a::after {
    background: #000000;
}