@import url('https://fonts.verwaltungsportal.de/import/?family=Montserrat:300,400,500,600,700,300i,400i,500i,600i,700i%7CIndie+Flower:400');

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

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

a {
    color: #1c7015;
}

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

b,
strong {
    font-weight: 700;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #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: #b85319;
        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: 15px;
        right: 15px;
        z-index: 101;
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background: url('../img/deko-kreise_.png') bottom center no-repeat, #ffffff;
        box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.1);
        position: sticky;
        left: 0;
        right: 0;
        top: 0;
        z-index: 101;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #ebccba;
    }

    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: #444444;
    font-weight: 500;
    text-align: center;
    padding: 10px 5px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

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

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

    nav.horizontally [class*="secondlevel"]>ul::before {
        content: "";
        position: absolute;
        display: block;
        width: 10px;
        top: 0;
        bottom: 0;
        left: -10px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #444444;
    font-weight: 300;
    text-align: center;
    padding: 9px 25px 9px 15px;
    background-color: #ffffff;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
    content: "";
    display: block;
    position: absolute;
    background-color: transparent;
    height: 8px;
    width: 8px;
    border-radius: 50%;
    top: 50%;
    right: 12px;
    margin-top: -4px;
    pointer-events: none;
    opacity: 0;
    border-width: 1px;
    border-style: solid;
    transform: scale(0);
    transition: opacity 300ms linear, transform 300ms linear;
}

nav.horizontally [class*="secondlevel"]::after {
    border-color: #1c7015;
}

nav.horizontally [class*="thirdlevel"]::after {
    border-color: #1c7015;
}

.navbar-default [class*="toplevel"] li+li:not(:nth-child(2)) {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* secondlevel + thirdlevel over */

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

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

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;
    transform: scale(1);
}

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

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

#logo {
    display: inline-block;
    padding: 15px 0;
}

#logo img {
    display: block;
}

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

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

#slider {
    max-height: 300px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 992px) {
    #slider {
        max-height: 400px;
    }
    body.index #slider {
        max-height: 670px;
    }
    #headerpic a.nivo-prevNav {
        left: 65px;
    }
    #headerpic a.nivo-nextNav {
        right: 65px;
    }
}

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

.slider-mask {
    display: none;
}



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

/* #region ------------------------------------ contact ----------------------------------------- */

#kontaktTab {
    background: #eee9dc;
}

@media (min-width: 992px) {
    #kontaktTab {
        background: url('../img/kind-silouette.png') bottom -130px right 4% no-repeat, #eee9dc;
    }
}

#kontaktTab>.row {
    row-gap: 25px;
}

#kontaktTab .tabHeadline {
    margin: 0 0 40px 0;
    position: relative;
    display: inline-block;
    font-size: 2rem;
}

#kontaktTab :is(b, strong) {
    font-weight: 400;
    margin-bottom: 0;
    color: #1c7015;
}

#kontaktTab .tabHeadline::after {
    content: "";
    display: block;
    position: absolute;
    height: 6px;
    left: 0;
    width: 100%;
    background: #d09068;
    bottom: -15px;
}

@media (min-width: 768px) {
    #kontaktTab .tabHeadline::after {
        max-width: 350px;
    }
}

#kontaktTab>div {
    padding-bottom: 25px;
}

@media (min-width: 768px) {
    #kontaktTab>div {
        padding-top: 45px;
        padding-bottom: 45px;
    }
}

#kontaktTab>.row::before {
    content: "";
    display: block;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 200px;
    border-bottom: 2px solid #ffffff;
}

@media (min-width: 768px) {
    #kontaktTab>.row::before {
        width: calc(38% + 200px);
        left: -200px;
        top: 0;
        bottom: 0;
        height: 100%;
        position: absolute;
        border: none;
    }
}

/* #endregion -------------------------------- contact ------------------------------------------ */

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

#aboveContent {
    align-items: center;
}

#breadcrumbincontent,
#networkcrosslink,
#content_footer {
    font-size: clamp(0.875rem, 2vw, 1.0625rem);
}

#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: #1c7015;
    font-weight: 600;
    line-height: 1.2;
    font-family: "Montserrat", sans-serif;
}

h1,
.h1,
.legacy_h1 {
    font-size: clamp(2.1875rem, 5vw, 2.8125rem);
}

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

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

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

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

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

/* -------------------------------------------- tabs -------------------------------------------- */

#tabs {
    background: #b85319;
    color: #ffffff;
    font-weight: 500;
}

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

@media (min-width: 992px) {
    #tabs {
        background: url('../img/deko-footer.png') bottom 10px left 4% no-repeat, #b85319;
    }
}

#tabs .quote {
    padding: 70px 0 70px 0;
}

#tabs a {
    color: #ffffff;
}

#tabs .template-page a {
    text-decoration: underline;
}

#tabs :is(.template-page, .tab_link_mehr, .tab_link_title) a {
    font-weight: 700;
}

#tabs .tabHeadline {
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    position: relative;
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

.tab_spacer {
    height: 15px;
}

.tab_link_mehr a::after {
    content: " ...";
    display: inline-block;
}

#tabs :is(b, strong) {
    font-size: clamp(30px, 3vw, 2.9375rem);
    font-family: "Indie Flower", serif;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

#tabs>.row::before {
    content: "";
    display: block;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 200px;
    border-bottom: 2px solid #ffffff;
}

@media (min-width: 768px) {
    #tabs>.row::before {
        width: calc(38% + 200px);
        right: -200px;
        top: 0;
        bottom: 0;
        height: 100%;
        position: absolute;
        border: none;
    }
}

.quote {
    position: relative;
}

@media (min-width: 992px) {
    .quote::after {
        content: '';
        display: block;
        position: absolute;
        bottom: 50px;
        right: 0;
        width: 300px;
        height: 2px;
        background: #fff;
    }
}

/* -------------------------------------------- footer ------------------------------------------ */

footer {
    background: #eee9dc;
    color: #b65115;
    padding: 20px 0;
}

#innerfooter ul {
    padding: 0;
}

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

#innerfooter a:is(:hover, :focus) {
    color: #1c7015;
}

@media (min-width: 500px) {
    #innerfooter li {
        display: inline-block;
    }

    #innerfooter li+li::before {
        content: "-";
        margin: 0 clamp(10px, 2vw, 20px);
        display: inline-block;
    }
}

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

#vernetzt {
    gap: 12px;
    text-align: right;
    font-size: 0.875rem;
    color: #444444;
    line-height: 1.2;
    font-weight: 300;
    text-decoration: none;
}

@media (max-width: 767px) {
    #vernetzt {
        margin-top: 20px;
    }
}

#vernetzt b {
    color: #1c7015;
    font-weight: 500;
}

#vernetzt span span {
    display: block;
}