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

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

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

a {
    color: #795b32;
}

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

b,
strong {
    font-weight: 700;
}

/* ------------------------------------------- name --------------------------------------------- */

.name {
    line-height: 1.2;
    color: #444444;
    font-weight: 700;
    font-size: clamp(1.25rem, 3vw, 1.5625rem);
}

.name :is(b, strong) {
    color: #795b32;
    font-weight: 700;
}

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

#logo {
    display: inline-block;
}

#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 {
        padding: 10px 0;
        background: #faf0dd;
        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: #795b32;
        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: #faf0dd;
        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 {
        padding: 28px 0;
        transition: box-shadow 200ms linear, background-color 200ms linear;
    }

    .is-sticky nav.horizontally {
        background-color: #faf0dd;
        box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.1);
    }

    nav.horizontally>.row {
        max-width: 1550px;
        width: 100%;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 794px;
        margin: 0 auto;
        padding: 0 12px;
    }

    .is-sticky nav.horizontally .navbar-nav {
        background: transparent;
    }

    nav.horizontally .navbar-nav ul {
        position: absolute;
        top: 100%;
        left: -30px;
        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: #444444;
    font-weight: 700;
    text-align: left;
    font-style: italic;
    padding: 12px 35px 12px 15px;
    position: relative;
    font-size: 1.128rem;
    line-height: 1.2;
    text-decoration: none;
    hyphens: auto;
    font-family: "Trebuchet MS", "Jost", sans-serif;
}

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

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

    nav.horizontally a[class*="toplevel"] {
        padding: 7px 0;
        text-align: center;
    }

    nav.horizontally li.dropdownpr>a[class*="toplevel"]::before {
        content: "";
        width: 4px;
        height: 4px;
        display: block;
        position: absolute;
        left: calc(50% - 2px);
        bottom: 0;
        border-radius: 50%;
        background-color: #444444;
        transition: background 300ms linear;
    }
}

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

@media (min-width: 992px) {

    nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::before,
    nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus)::before,
    nav.horizontally li[class*="toplevel"].open>a::before,
    nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus)::before,
    nav.horizontally li[class*="toplevel"][class*="_over"]>a::before,
    nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::before {
        background: #795b32;
    }
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #ffffff;
    border-radius: 5px;
    border: 1px solid #b3b3b3;
    padding: 15px;
    hyphens: auto;
}

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

    nav.horizontally [class*="secondlevel"]>ul {
        margin: 10px 0;
    }
}

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

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

    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>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 {
        margin-top: -23px;
        margin-left: 35px;
    }

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

/* secondlevel + thirdlevel */

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

/* 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: #faf0dd;
    color: #795b32;
}

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

/* #region --------------------------------- suche + select ------------------------------------- */

#controls {
    position: static;
}

#suche {
    width: 40px;
    height: 40px;
    position: relative;
}

@media (min-width: 992px) {

    #suche {
        width: 60px;
        height: 60px;
    }
}

/* suche */

#suche {
    display: grid;
    place-items: center;
}

@media (min-width: 992px) {
    #suche::after {
        content: "";
        width: 0;
        height: 0;
        display: inline-block;
        border-radius: 50%;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        transition: width 200ms linear, height 200ms linear;
        background: rgba(255, 255, 255, 0.4);
        z-index: -1;
    }

    #suche:is(:hover, :focus)::after {
        width: 100%;
        height: 100%;
    }
}



/* contact tab */

#contact-content {
    position: absolute;
    top: calc(100% + 20px);
    left: 15px;
    right: 15px;
    background: #795b32;
    color: #ffffff;
    border-radius: 6px;
    padding: 32px 28px;
    font-size: 1rem;
    transition: all 300ms linear;
}

@media (min-width: 992px) {
    #contact-content {
        width: 100%;
        left: unset;
        right: 15px;
        max-width: 290px;
    }
}

#contact-content :is(h1, h2, h3, h4, h5, h6) {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

#contact-content :is(h1, h2, h3, h4, h5, h6, a) {
    color: inherit;
}

#contact-content a {
    text-decoration: underline;
}

/* #endregion ------------------------------ suche + select ------------------------------------- */

/* #region -------------------------------------- header ---------------------------------------- */

@media (min-width: 576px) {
    header {
        z-index: 2;
        position: relative;
    }

    header::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 49%;
        clip-path: polygon(52% 0%, 100% 0%, 100% 100%, 0% 100%);
        z-index: -1;
        box-shadow: inset 0 0 0 100vw rgba(250, 240, 221, 0.75);
    }
}

@media (min-width: 1200px) {
    header::before {
        content: '';
        position: absolute;
        pointer-events: none;
        right: 0;
        top: 0;
        left: 0;
        bottom: 0;
        background: url('../img/welle-header.png') top -1px center / 100% auto no-repeat;
    }
}

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

@media (min-width: 992px) {
    #headerpic>.row {
        max-width: 1550px;
        width: 100%;
    }
}

body:not(.index) #headerpic>.row {
    max-width: 100%;
    width: 100%;
}

.bannerSideTab {
    line-height: 1.3;
    font-size: clamp(1.25rem, 2vw, 1.5625rem);
}

.bannerSideTab :is(h1, h2, h3) {
    font-size: clamp(1.875rem, 5vw, 5rem);
    line-height: 1.1;
    font-style: italic;
    margin-bottom: clamp(15px, 2vw, 30px);
}

.bannerSideTab :is(h1, h2, h3) :is(i, em) {
    color: #444444;
    margin-bottom: 5px;
    font-style: italic;
    display: block;
    font-size: clamp(1.375rem, 4vw, 3.75rem);
}

/* banner */

.index .slider-wrapper {
    border: 20px solid #ffffff;
}

@media (max-width: 767px) {
    .slider-wrapper {
        box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.2);
    }
}

body:not(.index) .slider-wrapper {
    border-left: unset;
    border-bottom: unset;
}

#slider {
    max-height: clamp(300px, 42vw, 400px);
    position: relative;
    line-height: 0;
}

body:not(.index) #slider {
    border: 20px solid #fff;
}

@media (min-width: 992px) {
    .index #slider {
        max-height: clamp(400px, 53vw, 510px);
    }
}

#headerpic {
    margin: 0 auto;
    position: relative;
    width: 100%;
    padding: 5px 0 clamp(40px, 3vw, 55px) 0;
}

body:not(.index) #headerpic {
    padding: 0;
    padding-bottom: 30px;
}

.slider-wrapper,
#slider {
    height: 100%;
}

.slider-mask {
    display: none;
}

.noPadding {
    padding-left: 0;
    padding-right: 0;
}

/* #endregion ----------------------------------- header ---------------------------------------- */

/* --------------------------------------------- markerTab -------------------------------------- */

#markerTab {
    background: #faf0dd;
    padding: clamp(30px, 4vw, 50px) 0;
    font-size: 1rem;
    position: relative;
    background-attachment: fixed;
    background-size: cover;
}

@media (min-width: 1200px) {
    #markerTab>.row::after {
        content: '';
        position: absolute;
        pointer-events: none;
        bottom: clamp(-50px, -4vw, -30px);
        left: -160px;
        width: 112px;
        height: 128px;
        background: url('../img/icon-sukkulente.png') center no-repeat;
    }
}

#markerTab>.row {
    row-gap: 15px;
}

#markerTab .tabHead :is(h1, h2, h3, h4, h5, h6) {
    color: #795b32;
    margin: 0;
}

#markerTab .tabHead :is(h1, h2, h3) {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-style: italic;
    margin: 0;
}

#markerTab .tabHead :is(h1, h2, h3) :is(em, i) {
    font-style: normal;
    color: #444444;
    font-size: clamp(1.5625rem, 3vw, 1.875rem);
    margin: 0;
    font-weight: 400;
}

/* -------------------------------------------- buttonStyle ------------------------------------- */

.buttonStyle a:not(.has-image):not([rel]) {
    display: inline-block;
    padding: 13px 20px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    background: #795b32;
    border-radius: 6px;
    text-decoration: none;
    font-family: "Trebuchet MS", "Jost", sans-serif;
}

.buttonStyle a:not(.has-image):not([rel]):is(:hover, :focus) {
    background: #584224;
}

:is(.bannerSideTab.buttonStyle) a:not(.has-image):not([rel]) {
    margin-top: clamp(20px, 3vw, 40px);
}

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

#content {
    text-align: left;
    font-family: "Trebuchet MS", "Jost", sans-serif;
    padding-top: clamp(40px, 4vw, 60px);
    padding-bottom: clamp(40px, 5vw, 85px);
}

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

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

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

h2,
.h2,
.legacy_h2,
:is(#markerTab, footer .tabHeadline) :is(h1, h2, h3, h4, h5, h6) {
    font-size: clamp(1.75rem, 3.5vw, 1.875rem);
}

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

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

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

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

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

#f5 {
    padding-top: 15px;
    padding-bottom: 15px;
    background-color: #fbf3e4;
}

#f5>.row {
    row-gap: 15px;
}

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

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #444444;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    font-family: "Trebuchet MS", "Jost", sans-serif;
}

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

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

@media (min-width: 992px) {
    #innerfooter li+li::before {
        margin: 0 clamp(15px, 3vw, 35px);
    }
}

@media (max-width: 767px) {
    #innerfooter li {
        display: block;
        text-align: center;
        padding: 5px;
        margin: 0;
    }

    #innerfooter li+li::before {
        display: none;
    }
}

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

#vernetzt {
    gap: 12px;
    text-align: right;
    font-size: 0.75rem;
    color: #444444;
    line-height: 1.3;
    text-decoration: none;
    font-family: "Trebuchet MS", "Jost", sans-serif;
}

#vernetzt span span {
    display: block;
}

#vernetzt strong {
    color: #795b32;
}