@import url('https://fonts.verwaltungsportal.de/import/?family=Open Sans:300,300i,400,400i,600,600i,700,700i%7CPlaypen+Sans:400');

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

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

body:not(.noListStyle) main ul:not([class*="menue"]):not([class*="slick-dots"]):not(.rsbtn_toollist):not(.units):not(.no-list-style):not(.footer_list) li:not(.gallery-list-item):not(.album-list-item):not(.entry):not(.unit-title):not(.single-comment)::before {
    top: clamp(22px, 2.4vw, 28px);
}

a {
    color: #9b4b0d;
}

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

b,
strong {
    font-weight: 600;
}

/* -------------------------------------------- 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 {
        position: static !important;
        padding: 18px 0;
    }

    #burgerButton {
        font-size: 0;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background: #ffffff;
        border: none !important;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #262626;
        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: 4px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: 20px 0 10px 0;
        background: #fff;
        transition: padding 200ms linear, box-shadow 200ms linear;
        
    }

    .is-sticky nav.horizontally {
        padding: 10px 0;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
    }

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

    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: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: 600;
    text-align: left;
    padding: 15px 15px;
    text-transform: uppercase;
    position: relative;
    font-size: 0.9375rem;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid rgba(0, 0, 0, 0);
}

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

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

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

    nav.horizontally a[class*="toplevel"] {
        padding: 18px 10px;
    }
}


/* 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: #262626;
    background-color: transparent;
    border: 2px solid #b25610;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"]>ul {
    background-color: #c4e1c5;
}

nav.horizontally [class*="secondlevel"]>ul {
    background-color: #c4e1c5;
}

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

    nav.horizontally [class*="secondlevel"]>ul {
        padding-left: 15px;
    }
}

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

    nav.horizontally [class*="toplevel"]>ul {
        left: -35px
    }

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

    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu::before {
        content: "";
        position: absolute;
        display: block;
        width: 20px;
        top: 0;
        bottom: 0;
        left: -20px;
    }
}

/* secondlevel + thirdlevel */

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

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

@media(min-width:992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding: 12px 60px 12px 40px;
    }
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #ffffff;
    z-index: -1;
    opacity: 0;
    transition: opacity 300ms linear;
}

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

/* secondlevel + thirdlevel over */

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;
}

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

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

#slider {
    max-height: 300px;
    position: relative;
    border-radius: 100% 100% 0 0;
}

@media (min-width: 992px) {
    #slider {
        max-height: 470px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

#headerpic {
    position: relative;
    margin-bottom: clamp(40px, 7vw, 80px);
}

.slider-wrapper {
    height: auto;
}

.slider-mask {
    display: none;
}

/* header tab */

#headerBox {
    padding: 30px;
    position: relative;
    z-index: 1;
    font-weight: 400;
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    margin-bottom: calc(clamp(40px, 7vw, 80px) * -1);
}

@media (max-width: 767px) {
    #headerBox {
        padding: clamp(30px, 4vw, 60px);
    }
}

@media (min-width: 768px) {
    #headerBox>.row {
        z-index: 4;
    }
}

@media (min-width: 1200px) {
    #headerBox {
        padding: 0;
    }
}

#welcome {
    padding-top: clamp(30px, 6vw, 80px);
    padding-bottom: 30px;
}

@media (min-width: 992px) {
    #welcome {
        padding-left: 45px;
    }
}

#welcome :is(h1, h2, h3, h4, h5, h6) {
    font-size: clamp(1.875rem, 4vw, 3.5rem);
    color: #262626;
    font-weight: 400;
    font-family: "Playpen Sans", cursive;
    font-weight: 300;
    line-height: 1.3;
    margin: 0;
    margin-bottom: 30px;
}

#welcome :is(b, strong) {
    color: #9b4b0d;
}

#welcome a {
    margin-top: clamp(25px, 4vw, 50px);
}

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

/* ------------------------------------------ button style -------------------------------------- */

.buttonStyle a {
    display: inline-block;
    color: #ffffff;
    background: #9b4b0d;
    font-weight: 400;
    padding: 13px 20px 9px 20px;
    text-decoration: none;
    line-height: 1.3;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

.buttonStyle a:is(:hover, :focus) {
    background: #7a3a09;
}

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

#content {
    text-align: left;
    padding-bottom: clamp(40px, 8vw, 100px);
    padding-top: clamp(40px, 4vw, 50px);
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #262626;
    font-weight: 400;
    line-height: 1.2;
    font-family: "Playpen Sans", cursive;
}

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

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

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
    font-size: clamp(1.5625rem, 2.5vw, 2.0625rem);
}

h5,
.h5,
.legacy_h5 {
    font-size: clamp(1.5rem, 2vw, 1.875rem);
}

h6,
.h6,
.legacy_h6 {
    font-size: clamp(1.375rem, 2vw, 1.6875rem);
}

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


#tabs {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 105px 0;
    position: relative;
    min-height: 210px;
}

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

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

/* ----------------------------------------------- @2f footer ----------------------------------------------- */

#footer {
    color: #444444;
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: #f9f9f9;
}

@media (min-width:768px) and (max-width: 991px) {
    #footer>.row>*+* {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    #footer .row>.col-xs-12:not(:first-child)::before {
        background: #000000;
        content: " ";
        display: block;
        height: 1px;
        margin: 25px 0;
        opacity: 0.2;
        width: 100%;
    }

    #footer .row>.col-xs-12.hidden-xs~.col-xs-12::before,
    #footer .row>.col-xs-12.hidden-sm~.col-xs-12::before {
        display: none;
    }
}

/* --------------------------------------------- logoFooter -------------------------------------------- */

#logoFooter {
    display: inline-block;
}

#logoFooter img {
    display: block;
}

/* --------------------------------------------- footerTab -------------------------------------------- */

#footerTab {
    font-size: 1rem;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 2px solid #9b4b0d;
}

#footerTab :is(b, strong) {
    text-transform: uppercase;
    font-weight: 400;
    font-family: "Playpen Sans", cursive;
}

/* ----------------------------------------------- scrollTop ----------------------------------------------- */

#scrollTop {
    text-decoration: none;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    opacity: 1 !important;
    max-width: 170px;
    padding: 10px 20px;
    margin: 0 auto 25px auto;
    border-radius: 30px;
    background-color: #0c5c82;
}

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

#scrollTop:hover,
#scrollTop:focus {
    background-color: #004261
}

#scrollTop span {
    position: relative;
    display: inline-block;
    font-size: 0;
    height: 35px;
    width: 18px;
    margin-right: 4px;
    transition: border-radius 300ms linear;
}

#scrollTop span::after {
    content: "";
    position: absolute;
    display: inline-block;
    margin-top: -1px;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 1px;
    border-right: 2px solid #ffffff;
    border-top: 2px solid #ffffff;
    transform: rotate(-45deg);
}

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

#innerfooter {
    font-size: 1rem;
    color: #262626;
}

#innerfooter ul {
    padding: 0 !important;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #262626;
    text-decoration: none;
    display: inline-block;
}

#innerfooter a:hover,
#innerfooter a:focus {
    color: #9b4b0d;
    text-decoration: underline;
}

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

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

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

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

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

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

#vernetzt span span {
    display: block;
}

/* ------------------------------------------ contrast ------------------------------------------ */

.contrast_dark_font .navbar-default .navbar-nav>li>.dropdown-menu>li>a::after,
.contrast_dark_font .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a::after {
    background: #000000;
}