@import url('https://fonts.verwaltungsportal.de/import/?family=Source+Sans+3:400,400i,500,500i,600,600i%7CSource+Serif+4:400,600');

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

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

a {
    color: #796101;
}

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

#content a {
    color: #796101;
    text-decoration: underline;
}

b,
strong {
    font-weight: 600;
}

a:focus-visible,
button:focus-visible,
form:focus-visible,
input:focus-visible {
    outline: 3px solid #0066ff !important;
}

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

header {
    background: #fff;
    color: #282828;
}

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

#topbar {
    font-size: 1rem;
    padding: 24px 0;
}

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

/* ------------------------------------------- buchen ------------------------------------------ */

.buchen a {
    border: 1px solid #9c0d25;
    border-radius: 30px;
    padding: 6px 25px;
    color: #9c0d25;
    font-size: 17px;
    font-weight: 500;
    text-transform: uppercase;
}

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

#searchButton {
    display: block;
    cursor: pointer;
    font-size: 0;
    width: 30px;
    height: 30px;
    background: url('../img/suche-icon.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: #fff;
}

#searchToggle[open] #searchButton {
    position: fixed;
    z-index: 103;
    top: calc(30vh - 60px);
    background-position: center top -30px;
    border-color: #9c0d25;
}

@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(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

#search_input {
    color: #0c0c0c;
    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: #0c0c0c !important;
    opacity: 1 !important;
    font-style: normal !important;
}

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

/* #region ----------------------------------- language ----------------------------------------- */

#language {
    position: relative;
    font-size: 13px;
    font-family: "Source Serif 4", sans-serif;
    text-align: center;
    display: inline-block;
    margin-left: 10px;
    z-index: 100;
}

@media (min-width: 576px) and (max-width: 991px) {
    #language {
        margin-right: 90px;
    }
}

#language>span {
    display: inline-flex;
    place-items: center;
    justify-content: center;
    color: #fff;
    background: #9c0d25;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    #language>span {
        display: none;
    }
}

#language:is(:hover, :focus-within)>span,
#chooseLanguage>a:is(:hover, :focus) {
    color: #9c0d25;
    background: #fff;
}

@media (min-width: 992px) {
    #chooseLanguage {
        position: absolute;
        top: 0;
        padding-top: 8px;
        left: 0;
        right: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 300ms linear, top 300ms linear;
    }

    #language:is(:hover, :focus-within) #chooseLanguage {
        top: 100%;
        opacity: 1;
        pointer-events: all;
    }
}

#chooseLanguage>a {
    display: inline-flex;
    place-items: center;
    justify-content: center;
    padding: 8px 4px;
    color: #fff;
    background: #9c0d25;
    position: relative;
    text-decoration: none;
}

@media (max-width: 991px) {
    #chooseLanguage>a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
}

@media (min-width: 992px) {
    #chooseLanguage>a {
        display: block;
        transform: rotateY(90deg);
        transition: all 300ms linear;
    }

    #language:is(:hover, :focus-within) #chooseLanguage>a {
        transform: none;
    }

    #language #chooseLanguage>a:nth-child(2) {
        transition-delay: 50ms;
    }

    #language #chooseLanguage>a:nth-child(3) {
        transition-delay: 100ms;
    }

    #language #chooseLanguage>a:nth-child(4) {
        transition-delay: 150ms;
    }
}

/* #endregion -------------------------------- language ----------------------------------------- */

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        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: #9c0d25;
        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: #fff;
        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: 6px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        right: 0;
        top: 0;
        max-width: 1930px;
        width: 100% !important;
        z-index: 101;
        transition: background 150ms linear, border 150ms linear;
        border-top: 1px solid transparent;
        border-bottom: 1px solid transparent;
    }

    .is-sticky nav.horizontally {
        border-color: #9c0d25;
        background: rgba(255, 255, 255, 0.95);
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid rgba(193, 193, 193, 0.5);
        border-bottom: 1px solid rgba(193, 193, 193, 0.5);
        background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    }

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

    nav.horizontally .navbar-nav li[class*="toplevel"]>ul {
        display: flex !important;
        flex-wrap: wrap;
        pointer-events: none;
        position: absolute;
        opacity: 0;
        top: 150%;
        left: 15px;
        right: 15px;
        z-index: 1000;
        padding: 30px;
        transform-origin: top center;
        visibility: hidden;
        transition: top 200ms linear, opacity 200ms linear;
    }

    nav.horizontally .navbar-nav li:is(.open:focus-within, :hover)>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible;
        top: 100%;
    }

    nav.horizontally .navbar-nav li:is(:hover, :focus-within)>ul {
        z-index: 1003;
    }

    nav.horizontally li[class*="secondlevel"] {
        margin-bottom: 15px;
        width: 33.33%;
        padding: 0 15px;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        display: block !important;
        pointer-events: auto !important;
        visibility: visible;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #282828;
    font-weight: 600;
    text-align: center;
    padding: 10px 35px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

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

@media (min-width: 1200px) {
    .navbar-default .navbar-nav>li>a {
        font-size: 1.25rem;
    }
}

.navbar-default .navbar-nav>li>a::after {
    content: "";
    position: absolute;
    display: block;
    width: 0;
    bottom: 0;
    height: 6px;
    left: 50%;
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    background: #9c0d25;
    -webkit-transition: width 300ms linear;
    -moz-transition: width 300ms linear;
    -ms-transition: width 300ms linear;
    -o-transition: width 300ms linear;
    transition: width 300ms linear;
}

@media (min-width: 992px) {
    .navbar-default .navbar-nav>li>a::after {
        top: 0;
        bottom: auto;
    }
}

.navbar-nav>li:hover>a::after,
.navbar-nav>li>a:hover::after,
.navbar-nav>li>a:focus::after,
.navbar-nav>li.open>a::after,
.navbar-nav>li.open>a:hover::after,
.navbar-nav>li.open>a:focus::after,
.navbar-nav>li[class$="_over"]>a::after,
.navbar-nav>li[class$="_over"]>a:hover::after,
.navbar-nav>li[class$="_over"]>a:focus::after {
    width: 100%;
}

.navbar-nav>li:focus-within>a::after {
    width: 100%;
}

/* 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: #9c0d25;
}

/* secondlevel + thirdlevel dropdown-box */

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

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"]>ul::after {
        content: "";
        position: absolute;
        display: block;
        height: 2px;
        left: 0;
        right: 0;
        top: -2px;
    }

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

/* secondlevel + thirdlevel */

nav.horizontally a[class*="secondlevel"] {
    color: #282828;
    font-size: 1.125rem;
    border-bottom: 1px solid #e9e1c4;
}

nav.horizontally a[class*="thirdlevel"] {
    color: #282828;
    font-size: 1rem;
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    background-color: transparent;
    font-weight: 400;
    text-align: center;
    position: relative;
    line-height: 1.2;
    text-decoration: none;
    padding: 10px 35px;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="secondlevel"] {
        padding: 5px 0 12px 0;
        font-size: 1.25rem;
    }

    nav.horizontally a[class*="thirdlevel"] {
        padding: 6px 15px;
    }

    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        text-align: left;
    }
}

/* 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: #9c0d25;
}

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

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

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

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

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

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

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

.slider-mask {
    display: none;
}

#headerpic {
    position: relative;
}

@media (min-width: 768px) {
    #headerpic::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, transparent 90%);
        pointer-events: none;
        z-index: 55;
    }
}

/* ----------------------------------------------- video_wrapper ----------------------------------------------- */

#video_wrapper {
    width: 100%;
    height: auto;
    max-height: 816px !important;
    overflow: hidden;
    position: relative;
}

#body-video-background {
    width: 100%;
    position: relative;
    margin-top: -5%;
    max-width: 100%;
    object-fit: cover;
}

@media(max-width:991px) {
    #video_wrapper {
        max-height: 300px !important;
    }
}

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

#content>.row {
    row-gap: 30px;
    background-color: #fff;
    padding: 30px;
}

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

@media (min-width: 992px) {
    #content>.row>*+* {
        padding-left: clamp(30px, 4vw, 45px);
    }
}

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

.contactTab {
    color: #ffffff;
    padding: clamp(35px, 4vw, 50px);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #0c0c0c;
    border: 1px solid #796101;
    box-shadow: inset 0 0 0 14px #ffffff;
}

@media (min-width: 768px) {
    .contactTab {
        font-size: 1.0625rem;
    }
}

.contactTab a {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
    text-decoration: none;
}

.contactTab a:not(:is([href*="mailto"], [href*="tel"])) {
    border: 1px solid #ffffff;
    font-size: 0.9375rem;
    display: inline-block;
    padding: 5px 12px;
    margin-top: 20px;
}

.contactTab a:not(:is([href*="mailto"], [href*="tel"])):is(:hover, :focus) {
    background: #ffffff;
    color: #2d2d2d;
}

.contactTab .tabHeadline {
    color: #dfc87a;
    font-size: 1.5625rem;
    margin-bottom: 18px;
}

.contactTab table :is(td, th) {
    padding: 0;
}

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

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

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

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

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.375rem;
}

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



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

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

#contactFooter {
    background: #ffffff;
    border-top: 1px solid #9c0d25;
    color: #282828;
    padding: 25px 0;
    font-size: 1.0625rem;
}

#contactFooter .tabHeadline {
    font-size: 1.625rem;
    color: #9c0d25;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.bgContact {
    background-color: #f6f6f6;
    padding-top: 15px;
    padding-bottom: 15px;
}

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

footer table :is(td, th) {
    padding: 0;
}

footer {
    background-color: #9c0d25;
    color: #ffffff;
    font-size: 0.9375rem;
}

#footer {
    padding: 30px 0;
}

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

@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: #ffffff;
    text-decoration: none;
}

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

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

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

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

#vernetzt span span {
    display: block;
}

#vernetzt strong {
    color: #ffffff;
}