@import url('https://fonts.verwaltungsportal.de/import/?family=Jost:400,600,600i,700,400i,700i%7CAmatic+SC:700,700i');

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

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

a {
    color: #96390d;
}

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

b,
strong {
    font-weight: 600;
}

#over {
    overflow: hidden;
}

/* ------------------------------------------- header ------------------------------------------- */

#logoMobil img {
    max-width: calc(100vw - 120px);
    width: 100%;
    max-height: 85px;
}

.logo {
    display: inline-block;
}

.logo img {
    display: block;
}

.contact-information {
    position: relative;
    font-size: 1rem;
    font-weight: 400;
    color: #2d2d2d;
}

.contact-information :is(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    margin-bottom: 5px;
    font-size: 1.375rem;
    font-weight: 600;
    color: #444444;
    font-family: "Jost", sans-serif;
}

.contact-information :is(h1, h2, h3, h4, h5, h6) :is(em, i) {
    font-style: normal;
    font-weight: 400;
    display: block;
    font-family: "Jost", sans-serif;
}

@media (max-width: 991px) {

    .contact-information :is(h1, h2, h3, h4, h5, h6, a),
    .contact-information {
        color: #ffffff;
    }
}

.buttonStyle a {
    margin-top: 10px;
    display: inline-block;
    text-decoration: none !important;
    text-transform: uppercase;
    position: relative;
    font-weight: 600;
    color: #96390d;
    font-size: 0.9375rem;
    padding: 5px 20px;
    border: 1px solid #96390d;
    background: #f5f2e4;
}

.buttonStyle a:hover,
.buttonStyle a:focus {
    color: #ffffff;
    background: #96390d;
}

#footer .buttonStyle a {
    font-size: 0.875rem;
    color: #f5f2e4;
    padding: 9px 20px;
    border-color: #f5f2e4;
    background: #737660;
}

#footer .buttonStyle a:hover,
#footer .buttonStyle a:focus {
    color: #96390d;
    background: #ffffff;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    .navbar-collapse>.row {
        padding-top: 15px;
        padding-bottom: 10px;
    }

    nav.horizontally {
        margin-top: 100px;
    }

    #burgerButton {
        font-size: 0;
        border: none !important;
        position: absolute;
        z-index: 1002;
        display: block;
        width: 46px;
        height: 40px;
        border-radius: 2px;
        cursor: pointer;
        background-color: #f5f2e4;
        padding: 3px;
        right: 12px;
        top: 50%;
        margin-top: -20px;
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #737660;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 2px;
        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: 11px;
    }

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

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

    .navbar-nav {
        margin: 20px 0;
    }

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 70px;
        background: #737660;
        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) {
        top: 100px;
        left: 0;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        box-shadow: 250px 0 50vw 50vw rgba(0, 0, 0, 0.6);
    }

    .navbar-header {
        line-height: 1;
        padding: 10px 15px;
        background-color: #f5f2e4;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 101;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
    }

    .dropdown-toggle-button-wrapper,
    .dropdown-toggle-button-wrapper2 {
        z-index: 1;
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    #menu {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.09), transparent 6px), #737660;
    }

    .is-sticky #menu {
        left: unset !important;
        box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.15);
    }

    nav.horizontally .dropdown-menu {
        min-width: 340px;
    }

    .navbar-collapse>.row {
        padding-top: 25px;
        padding-bottom: 15px;
    }

    nav.horizontally {
        background: #f5f2e4;
    }

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

    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: #ffffff;
    font-weight: 700;
    text-align: center;
    padding: 10px 35px;
    position: relative;
    text-transform: uppercase;
    font-family: "Amatic SC", cursive;
    z-index: 1;
    font-size: 1.875rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 20px 14px;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}

nav.horizontally a[class*="toplevel"]::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    opacity: 0;
    z-index: -1;
    background: #f0ecd9;
    transition: opacity 300ms linear;
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::after,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"].open>a::after,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::after {
    opacity: 1;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    padding: 10px 0;
    background-color: rgba(245, 242, 228, 0.95);
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
}

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

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

    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>ul::before {
        content: "";
        position: absolute;
        display: block;
    }

    nav.horizontally [class*="toplevel"]>ul::before {
        height: 4px;
        left: 0;
        right: 0;
        top: -4px;
    }

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    background-color: transparent;
    color: #2d2d2d;
    font-weight: 400;
    text-align: center;
    padding: 6px 35px;
    font-size: 1.0625rem;
    line-height: 1.2;
    text-decoration: none;
}

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    content: "\2013";
    margin-right: 30px;
}

/* 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) {
    color: #96390d;
    background-color: transparent;
}

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

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

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

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

    body.index #headerpic a.nivo-prevNav {
        left: 65px;
        top: 45%;
    }

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

    body.index #headerpic a.nivo-nextNav {
        right: 65px;
        top: 45%;
    }

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

    .theme-nivo .nivo-controlNav {
        bottom: 100px !important;
    }
}

@media (min-width: 768px) {
    #bannerOverlay {
        margin-top: 0;
        margin-bottom: 0;
        position: absolute;
        left: 0;
        right: 0;
        z-index: 51;
        pointer-events: none;
        bottom: clamp(60px, 8vw, 115px);
    }

    #headerpic {
        background: #313131;
    }

}

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

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

.slider-mask {
    display: block;
    background: url('../img/banner-bogen.png') center bottom / 100% auto no-repeat;
}


/* ------------------------------------------- buttons ------------------------------------------ */

.button-style a {
    color: #96390d;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    font-size: 0.9375rem;
    text-decoration: none;
    min-width: 110px;
    padding: 6px clamp(10px, 2vw, 20px);
    margin-top: 15px;
    transition: background-color 300ms linear, color 300ms linear, border 100ms linear;
}

#footer .button-style a {
    color: #96390d;
    background: #ffffff;
    text-decoration: none;
}

#footer .button-style a:is(:hover, :focus) {
    background: #96390d;
    color: #fff;
}

.button-style a+a {
    margin-left: 20px;
}

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

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

/* -------------------------------------------- breaker ----------------------------------------- */

main {
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
}

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

#tabs {
    padding: clamp(30px, 4vw, 70px) 0;
}

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

.tab {
    background: #f5f2e4;
    height: 100%;
    min-height: 100%;
    padding: 30px 14px 30px 20px;
}

.tab img {
    display: block;
    margin: -30px -20px 30px -20px;
    width: calc(100% + 40px);
    max-width: calc(100% + 34px);
}

.tab :is(h1, h2, h3, h4, h5, h6) {
    margin: 0 0 30px 0;
    font-family: "Amatic SC", cursive;
    color: #2d2f22;
    text-transform: uppercase;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 2.1875rem);
}

.tab a {
    color: #96390d;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tab a::after {
    content: "...";
    margin-left: 4px;
    display: inline-block;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #2d2f22;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Amatic SC", cursive;
}

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

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

}

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

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

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

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

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

#footer {
    background: #737660;
    padding: 40px 0 28px 0;
    color: #ffffff;
    position: relative;
    line-height: 1.4;
    font-size: 1.125rem;
}

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

@media (min-width: 768px) {
    #innerfooter>.row>.col-xs-12+:nth-child(2) {
        border: none;
        margin-top: 0;
        padding-top: 0;
    }
}

@media (min-width: 1200px) {
    #footer::after {
        content: "";
        background: url("../img/freisteller-hundi.png") no-repeat;
        width: 255px;
        height: 502px;
        bottom: -100px;
        left: calc(50% + 652px);
        position: absolute;
        display: block;

    }
}

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

.footerHeadline {
    color: #ffffff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-size: 1.875rem;
}

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

#innerfooter {
    color: #ffffff;
    background-color: #68604d;
    padding: 20px 0;
    font-size: 1rem;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

.innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    padding: 10px 12px;
}

.innerfooter a:is(:hover, :focus) {
    color: #ffffff;
    background: rgba(78, 70, 53, 0.3);
}

@media (min-width: 576px) {
    .innerfooter li+li {
        margin-left: 10px;
    }
}

@media (max-width: 575px) {
    #innerfooter li {
        display: block;
        line-height: 2
    }
}

/* ------------------------------------------- scroll top --------------------------------------- */

#scrollTop {
    font-size: 0;
    width: 33px;
    height: 33px;
    display: block;
    position: relative;
    margin: 0 auto;
    background: #ffffff;
}

@media (min-width: 768px) {
    #scrollTop {
        margin-right: 0;
    }
}

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

#scrollTop::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-top: 10px;
    display: inline-block;
    border-right: 3px solid #68604d;
    border-top: 3px solid #68604d;
    transform: rotate(-45deg);
    transition: border 300ms linear;
}

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

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

#vernetzt span span {
    display: block;
}