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

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

body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    color: #444444;
    background: #ffffff;
    font-size: clamp(1rem, 1vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.5;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
}

a {
    color: #007858;
}

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

#content a {
    font-style: italic;
}

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

@media (min-width: 1200px) {
    .row {
        max-width: 1420px;
        width: 100%;
    }
}

#over {
    overflow: hidden;
    position: relative;
}

/* ------------------------------------------- topbar ------------------------------------------- */

#topbar {
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    border-bottom: 5px solid #ee7203;
    background: #ffffff;
}

@media (max-width: 991px) {
    #topbar {
        min-height: 75px;
    }

    .is-sticky #topbar {
        position: static !important;
    }
}

@media (min-width: 992px) {
    #topbar {
        background: #ffffff;
    }

    #topbar>.row>*:not(:first-child) {
        padding-top: 26px;
        padding-bottom: 26px;
    }
}

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

#logo {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 15px;
    z-index: 50;
}

#logo img {
    display: block;
    padding: 32px 41px 24px 41px;
    background: #ffffff;
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    border-radius: 0 0 34px 34px;
    width: fit-content;
}

@media (max-width: 991px) {
    #logo img {
        max-width: 140px;
        width: 100%;
        padding: 20px 10px 10px 10px;
    }
}

@media (min-width: 992px) {
    #logo img {
        transition: max-width 300ms linear, padding 300ms linear;
    }

    .is-sticky #logo img {
        padding: 20px 13px;
        max-width: 180px;
    }
}

/* -------------------------------------------- search ------------------------------------------ */

form[id^="search"] {
    display: inline-flex;
    margin: 20px auto;
    max-width: 250px;
    width: 100%;
}

@media (max-width: 991px) {
    form[id^="search"] {
        background: #ffffff;
    }
}

@media (min-width: 992px) {
    form[id^="search"] {
        margin: 0 20px 0 0;
    }
}

form [id^="search_input"] {
    color: #444444;
    font-size: 1.0625rem;
    font-style: normal;
    background: transparent;
    padding: 6px 14px;
    border: 0;
    width: 100%;
}

form [id^="search_submit"] {
    width: 38px;
    border: none;
    background: url('../img/lupe-icon.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    transition: background 150ms linear;
}

form [id^="search_submit"]:is(:hover, :focus) {
    background-color: rgba(0, 0, 0, 0.1);
}

form [id^="search_input"]::placeholder {
    color: #444444 !important;
    opacity: 1 !important;
    font-style: normal !important;
}

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

.innerfooter {
    font-size: 1rem;
}

@media (min-width: 992px) {
    #search1+* {
        border-left: 1px solid rgba(180, 180, 180, 0.3);
        padding: 8px 0 8px 30px;
    }
}

.innerfooter ul {
    padding: 0;
}

@media (max-width: 991px) {
    .innerfooter ul {
        padding: 15px;
        margin-top: 15px;
        background: #ffffff;
    }
}

.innerfooter a {
    color: #444444;
    text-decoration: none;
}

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

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

    .innerfooter li+li::before {
        content: "\00B7";
        margin: 0 clamp(15px, 2vw, 25px);
        color: #444444;
    }
}

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

#slider {
    max-height: clamp(300px, 47vw, 450px);
    overflow: hidden;
    position: relative;
}

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(450px, 79vw, 765px);
    }

    #headerpic a.nivo-prevNav {
        left: 65px;
    }

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

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

#headerpic .nivo-controlNav {
    bottom: 25px;
}

@media (min-width: 768px) {
    .index #headerpic .nivo-controlNav {
        bottom: 110px;
    }
}

@media (min-width: 992px) {
    .index #headerpic .nivo-controlNav {
        bottom: 170px;
    }
}

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

.slider-mask {
    display: none;
}

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

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

/* burgermenu for tablet */

#burgerButton {
    font-size: 0;
    border: none !important;
    position: relative;
    z-index: 1002;
    display: inline-block;
    width: 58px;
    height: 58px;
    cursor: pointer;
    background: #ffffff;
}

@media (max-width: 991px) {
    #burgerButton {
        position: fixed;
        right: 15px;
        top: 10px;
    }
}

@media (min-width: 992px) {
    #burgerButton {
        margin: 0 0 0 20px;
    }

    #burgerButton span:last-of-type {
        font-size: 25px;
        position: absolute;
        left: 60px;
        top: 16px;
        color: #007858;
        font-weight: 400;
        line-height: 1;
    }
}

#burgerButton::before,
#burgerButton::after,
#burgerButtonInner {
    position: absolute;
    background: #ee7203;
    width: 38px;
    height: 4px;
    left: 10px;
    transition: transform 200ms linear, opacity 200ms linear;
}

#burgerButton[aria-expanded="true"] #burgerButtonInner {
    transform: rotate(-45deg) translate(-7px, 7px);
}

#burgerButton[aria-expanded="true"]::before {
    opacity: 0;
}

#burgerButton[aria-expanded="true"]::after {
    transform: rotate(45deg) translate(-4px, -6px);
}

#burgerButtonInner {
    top: 19px;
}

#burgerButton::before {
    top: 28px;
    content: "";
}

#burgerButton::after {
    top: 37px;
    content: "";
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #007858;
        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);
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    #myNavbar {
        background: #ffffff;
        pointer-events: none;
        position: absolute;
        z-index: 1002;
        top: 70px;
        left: 23px;
        opacity: 0;
        width: 580px;
        border-radius: 0;
        height: auto !important;
        overflow: visible !important;
        box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.3);
        transition: opacity 300ms linear, top 300ms linear;
    }

    #burgerButton[aria-expanded="true"]+#myNavbar,
    #myNavbar:focus-within {
        pointer-events: auto;
        opacity: 1;
        top: 140px;
    }

    #myNavbar::before {
        content: "";
        display: block;
        position: absolute;
        left: 15px;
        top: -18px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 25px 18px 25px;
        border-color: transparent transparent #007858 transparent;
    }

    .navbar-nav {
        padding: 23px 0 25px 30px;
        background: #007858;
        min-height: 300px;
    }

    nav.burger li[class*="toplevel"]>ul {
        padding: 25px 20px;
        position: absolute;
        z-index: 2;
        left: 50%;
        top: 0 !important;
        right: 0;
        bottom: 0;
        overflow-y: auto;
    }

    .navbar-nav,
    nav.burger li[class*="toplevel"]>ul {
        width: 50%;
    }

    nav.burger li[class*="toplevel"]>ul {
        display: block !important;
        pointer-events: none;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    nav.burger #myNavbar:is([aria-expanded="true"], .in) li[class*="toplevel"][class*="_over"]>ul,
    nav.burger li[class*="toplevel"]:is(:hover, :focus-within)>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    nav.burger li[class*="toplevel"]:is(:hover, :focus-within)>ul {
        z-index: 3;
    }

    nav.burger [class*="secondlevel"]>ul {
        display: block !important;
    }
}

/* toplevel */

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

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

@media (min-width: 992px) {
    nav.burger .navbar-nav a[class*="toplevel"] {
        padding: 7px 30px;
        text-align: right;
    }

    nav.burger .navbar-nav a[class*="toplevel"]::before {
        content: "";
        position: absolute;
        display: block;
        width: 25px;
        top: 0;
        bottom: 0;
        right: -25px;
    }
}

/* toplevel-over */

nav.burger .navbar-nav li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.burger .navbar-nav li[class*="toplevel"]>a:is(:hover, :focus),
nav.burger .navbar-nav li[class*="toplevel"].open>a,
nav.burger .navbar-nav li[class*="toplevel"].open>a:is(:hover, :focus),
nav.burger .navbar-nav li[class*="toplevel"][class*="_over"]>a,
nav.burger .navbar-nav li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    color: #007858;
    background-color: #fdf0e8;
}

/* secondlevel + thirdlevel dropdown-box */

nav.burger li[class*="toplevel"]>ul {
    background: #ffffff;
}

/* secondlevel + thirdlevel */

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

nav.burger li:is([class*="_start"], [class*="end"]) {
    display: none;
}

@media (min-width: 992px) {
    nav.burger li[class*="secondlevel"] {
        border-top: 1px dashed rgba(82, 82, 82, 0.4);
    }

    nav.burger a[class*="secondlevel"] {
        padding: 9px 2px;
    }

    nav.burger a[class*="thirdlevel"] {
        padding: 5px 10px 5px 34px;
    }

    nav.burger a[class*="thirdlevel"]::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 1px;
        width: 50%;
        border-top: 1px dashed rgba(82, 82, 82, 0.4);
    }

    nav.burger a[class*="thirdlevel"]::after {
        content: "";
        position: absolute;
        left: 8px;
        top: 50%;
        background: #ffffff;
        width: 5px;
        height: 5px;
        margin-top: -2px;
        border-radius: 50%;
    }
}

/* secondlevel + thirdlevel over */

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

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

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

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

main>.row {
    row-gap: 30px;
}

#content {
    text-align: left;
    padding-top: 35px;
    padding-bottom: clamp(35px, 5vw, 80px);
}

hr,
.hrstyle {
    opacity: 1;
    background: rgba(110, 110, 110, 0.3);
    border: unset;
    height: 1px;
}

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

#tabs {
    margin-top: 30px;
}

@media (min-width: 768px) {
    #tabs {
        position: relative;
        z-index: 60;
        margin-top: -90px;
    }
}

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

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

#tabs .tab1 {
    height: 100%;
    position: relative;
    background: #fdf0e8;
    border-radius: 8px 8px 0 0;
    padding: 30px 20px;
    border: 1px solid #ee7203;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
}

#tabs .tab1 .tabHeadline {
    font-size: 1.5625rem;
    font-weight: 700;
}

#tabs .socialTab a img {
    transition: transform 0.3s 0s ease;
}

#tabs .socialTab a:is(:hover, :focus) img {
    transform: scale(1.2);
}

#tabs .tab2 {
    height: 100%;
    position: relative;
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    padding: 30px 20px 40px 20px;
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
}

#tabs .tab2 .tabHeadline {
    font-size: 1.25rem;
    margin-bottom: 5px;
    font-weight: 500;
}

#tabs .tab2 img {
    margin: 5px -20px -55px -20px;
    display: block;
    width: calc(100% + 40px) !important;
    min-width: calc(100% + 40px) !important;
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
}

#tabs .tab2 a:not(.has-image) {
    display: inline-block;
    text-decoration: none;
    position: absolute;
    font-size: 1rem;
    right: -5px;
    z-index: 1;
    font-weight: 500;
    padding: 5px 10px;
    color: #222222;
    background: #ee7203;
    border: 1px solid #ee7203;
    line-height: 1.2;
}

#tabs .tab2 a:not(.has-image):hover,
#tabs .tab2 a:not(.has-image):focus {
    background: #fdf0e8;
}

#tabs .tab_link_mehr {
    margin: -15px 0 0 0;
}

#tabs .tab_link_mehr hr {
    margin: 15px 0 0 0;
}

#tabs .tab_link_mehr a {
    font-weight: 400;
    font-size: 1.375rem;
    color: #007858;
}

#tabs .tab_link_mehr a::after {
    content: " \00BB";
}

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

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

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

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

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

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

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

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

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

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

footer {
    position: relative;
    color: #ffffff;
    position: relative;
    border-top: 5px solid #ee7203;
    background: #007858;
    padding: clamp(45px, 4vw, 66px) 0 25px 0;
    margin-bottom: 375px;
}

footer>.row {
    row-gap: 30px;
}

footer::before,
footer::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
}

footer::before {
    background: url('../img/footer-overlay.png') center top / 100% auto no-repeat;
    height: 120px;
    bottom: -120px;
    z-index: 1;
}

footer::after {
    bottom: -375px;
    height: 375px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

footer :is(h1, h2, h3, h4, h5, h6, .footerHeadline) {
    color: #ffffff;
    font-size: 1.5625rem;
    font-weight: 500;
}

footer a,
footer a:is(:hover, :focus) {
    color: #ffffff;
}

.footerTab a {
    text-decoration: underline;
}

.iframetab iframe,
.iframetab .iframe-wrapper-manual-enabling {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
}

@media (min-width: 1200px) {
    footer>.row::before {
        content: '';
        position: absolute;
        pointer-events: none;
        left: -365px;
        bottom: -20px;
        width: 376px;
        height: 446px;
        background: url('../img/traktor-deko.png') center no-repeat;
    }

    footer>.row::after {
        content: '';
        position: absolute;
        pointer-events: none;
        right: -365px;
        bottom: -25px;
        width: 550px;
        height: 394px;
        background: url('../img/haus-deko.png') center no-repeat;
    }

    footer>.row>*:last-child {
        padding-top: 20px;
        padding-bottom: 60px;
    }

    footer>.row>*:last-child::before {
        content: '';
        position: absolute;
        pointer-events: none;
        top: 0;
        left: -35px;
        bottom: 0;
        width: 1px;
        height: 100%;
        background: #4da18a;
    }
}

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

#vernetzt {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.3;
    text-decoration: none;
    display: inline-block;
}

#vernetzt span {
    color: #ffffff;
    display: block;
}

#vernetzt img {
    margin-bottom: 12px;
}