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

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

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

a {
    color: #91713b;
}

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

b,
strong {
    font-weight: 600;
}

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

header {
    background: #2d2d2d;
    color: #ffffff;
}

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

@media (max-width: 575px) {
    #logo {
        margin-bottom: 20px;
    }
}

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

/* #region ------------------------------------ search ------------------------------------------ */

#searchButton {
    display: block;
    cursor: pointer;
    font-size: 0;
    width: 30px;
    height: 30px;
    background: url('../img/icon-lupe.png') center top 6px no-repeat;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: background 200ms linear;
}

@media (max-width: 991px) {
    #searchButton {
        width: 40px;
        height: 40px;
        border-color: #fff;
        background-position: center top 9px;
    }
}

#searchButton:is(:hover, :focus) {
    background-color: #c0af1a;
}

#searchToggle[open] #searchButton:is(:hover, :focus) {
    background-color: #292929;
}

#searchToggle[open] #searchButton {
    position: fixed;
    z-index: 103;
    top: calc(30vh - 60px);
    background-image: url('../img/suche-icon.png');
    background-position: center top -30px;
    border-color: #fff;
}

@media (max-width: 991px) {
    #searchToggle[open] #searchButton {
        left: calc(50% - 20px);
        background-position: center top -25px;
    }
}

#search {
    background: transparent;
    backdrop-filter: blur(0);
    transition: background 200ms linear, filter 200ms linear;
}

#searchToggle[open] #search {
    position: fixed;
    z-index: 102;
    padding: 30vh 10vw;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

#search_input,
#search_submit {
    border: none;
    border-bottom: 1px solid #ffffff;
    height: 50px;
}

#search_input {
    color: #ffffff;
    font-size: 20px;
    font-style: normal;
    background: transparent;
    padding: 15px;
    width: 100%;
    max-width: 700px;
}

@media (min-width: 1200px) {
    #search_input {
        max-width: 900px;
    }
}

#search_submit {
    width: 50px;
    flex-shrink: 0;
    background: url('../img/suche-icon.png') center top 16px no-repeat;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    transition: background-color 300ms linear;
}

#search_submit:is(:hover, :focus) {
    background-color: rgba(255, 255, 255, 0.2);
}

#search input::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
    font-style: normal !important;
}

/* #endregion --------------------------------- search ------------------------------------------ */

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        position: static !important;
        padding: 5px 0;
        background-color: #ffffff;
        box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    #menuBox {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 102;
    }

    nav.horizontally {
        background-color: rgba(255, 255, 255, 0.9);
    }

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

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav.horizontally .navbar-nav>li {
        flex-grow: 1;
    }

    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.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.horizontally .navbar-nav li:is(: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)>ul {
        z-index: 1003;
    }
}

/* toplevel */

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

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

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

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

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

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

    nav.horizontally [class*="toplevel"]>ul::before {
        content: '';
        position: absolute;
        display: block;
        top: -20px;
        height: 20px;
        left: 0;
        right: 0;
    }

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

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

/* secondlevel + thirdlevel */

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

@media(max-width:991px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        font-size: 1rem;
    }

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

/* 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: #c0af1a;
    color: #292929;
}

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

/* -------------------------------------------- banner ------------------------------------------ */

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

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

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

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

.slider-wrapper {
    height: 100% !important;
}

.slider-mask {
    display: none;
}

@media (min-width: 768px) {
    .slider-mask {
        display: block;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 90%);
    }
}

#headerpic {
    position: relative;
}

/*  bannerOverlay  */

@media (max-width: 991px) {
    #bannerOverlay {
        padding: 30px 0;
    }
}

#bannerOverlay .tab,
#bannerOverlay .tab :is(h1, h2, h3, h4, h5, h6, a) {
    color: #ffffff;
}

#bannerOverlay .tab :is(h1, h2, h3, h4, h5, h6) {
    font-weight: 400;
    margin: 0;
}

#bannerOverlay .tab :is(h1, h2, h3) {
    font-size: clamp(1.75rem, 3vw, 3rem);
}

@media (min-width: 992px) {
    #bannerOverlay {
        position: absolute;
        pointer-events: none;
        z-index: 12;
        bottom: clamp(45px, 5vw, 70px);
        left: 0;
        right: 0;
    }

    #bannerOverlay .tab {
        pointer-events: all;
    }
}

/* #region ---------------------------------- tab-section --------------------------------------- */

#tabs {
    padding-top: clamp(40px, 4vw, 65px);
    padding-bottom: clamp(40px, 4vw, 65px);
    background: #efebd8;
}

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

#tabs img {
    padding: 14px;
    border: 1px solid #91713b;
    margin-bottom: 15px;
    display: block;
    width: 100% !important;
    height: auto !important;
    transition: border 300ms linear;
}

@media (min-width: 992px) {
    #tabs .tab:is(:hover, :focus-within) img {
        border-color: transparent;
    }
}

#tabs :is(h1, h2, h3, h4, h5, h6) {
    color: #292929;
    font-size: 1.625rem;
    margin-bottom: 8px;
    transition: color 300ms linear;
}

@media (min-width: 992px) {
    #tabs .tab:is(:not(:hover, :focus-within)) :is(h1, h2, h3, h4, h5, h6) {
        color: #292929;
    }
}

#tabs .tab {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    min-height: 100%;
    position: relative;
    z-index: 0;
    font-size: 1rem;
    bottom: 0;
    backface-visibility: hidden;
    transition: transform 300ms linear, bottom 300ms linear;
}

@media (min-width: 992px) {
    #tabs .tab:is(:hover, :focus-within) {
        transform: scale(1.15);
        z-index: 1;
        bottom: 10px;
    }

    #tabs .tab::after {
        content: "";
        display: block;
        position: absolute;
        top: -5px;
        right: -5px;
        bottom: -22px;
        left: -5px;
        background: #ffffff;
        opacity: 0;
        z-index: -1;
        box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
        transition: opacity 300ms linear;
    }

    #tabs .tab:is(:hover, :focus-within)::after {
        opacity: 1;
    }
}

#tabs .tab a {
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    color: #292929;
    font-weight: 600;
    position: relative;
    padding: 8px 10px;
    border: 1px solid #1c1c1c;
    margin-top: 15px;
    transition: color 300ms linear, background 300ms linear, border 300ms linear;
}

#tabs .tab a:is(:hover, :focus) {
    color: #292929;
    background: #c0af1a;
    border-color: #c0af1a;
}

/* #endregion ------------------------------- tab-section --------------------------------------- */

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

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

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

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

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

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

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

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

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

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

/* --------------------------------------------- slogan ----------------------------------------- */

#slogan {
    color: #292929;
    font-size: clamp(1rem, 2vw, 1.5rem);
    padding-top: clamp(30px, 4vw, 55px);
    padding-bottom: clamp(30px, 4vw, 55px);
    background-color: #d5cba0;
}

#slogan :is(h1, h2, h3, h4, h5, h6) {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    color: #292929;
}

#slogan a {
    color: #292929;
    text-decoration: underline;
}

/* --------------------------------------------- contact ---------------------------------------- */

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

#contactFooter {
    color: #ffffff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #000000;
}

@media (max-width: 991px) {
    #contactFooter {
        padding-top: clamp(30px, 3vw, 35px);
        padding-bottom: clamp(30px, 3vw, 35px);
    }
}

@media (min-width: 992px) {
    #contactFooter .footerTab {
        padding-top: clamp(30px, 3vw, 35px);
        padding-bottom: clamp(30px, 3vw, 35px);
    }
}

#contactFooter :is(h1, h2, h3, h4, h5, h6),
#contactFooter .tabHeadline {
    font-size: 1.625rem;
    color: #ffffff;
}

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

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

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

#footer {
    color: #292929;
    font-size: 1rem;
    padding: 20px 0;
    background: #c0af1a;
}

@media (max-width: 767px) {
    #footer>.row>.col-xs-12+* {
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        margin-top: 20px;
        padding-top: 20px;
    }
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

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

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

#innerfooter li+li {
    margin-left: clamp(15px, 2vw, 35px);
}

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

#vernetzt {
    gap: 12px;
    text-align: right;
    color: #292929;
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}