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

body {
    font-family: "Montserrat ", sans-serif;
    font-weight: 400;
    color: #2f3037;
    background: #ffffff;
    font-size: 1rem;
    /* 1rem = 16px */
    line-height: 1.5;
}

@media (min-width: 768px) {
    body {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    body {
        font-size: 1.125rem;
    }
}

a {
    color: #852e00;
}

a:hover,
a:focus {
    color: #852e00;
    text-decoration: underline;
}

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #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: #444444;
        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: 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: 6px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.navbar {
        border-radius: 2px;
        padding: 30px 20px;
        background: #ffffff;
        position: relative;
    }

    #nav-position {
        padding-top: 5px;
        position: relative;
        z-index: 99;
        background: #ffffff;
        position: relative;
        box-shadow: 0 0px 5px 0 rgba(43, 43, 43, 0.2);
    }

    #nav-position::before {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        background: #444444;
        pointer-events: none;
        z-index: -1;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    #nav-position:is(:hover, :focus-within)::before {
        opacity: 0.2;
    }

    nav.navbar .navbar-nav>li {
        display: block !important;
        width: 100%;
        float: none;
        position: relative;
    }

    nav.navbar .navbar-nav li[class*="toplevel"]>ul {
        pointer-events: none;
        position: absolute;
        left: 100%;
        top: 0 !important;
        z-index: 1000;
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 300ms linear;
    }

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

    nav.navbar .navbar-nav>li.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

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

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

/* toplevel */

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

nav.navbar .navbar-nav li[class*="toplevel"]+li {
    margin-top: 2px;
}

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

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

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

    nav.navbar .navbar-nav a[class*="toplevel"].dropdown-toggle::before {
        content: "\00BB";
        position: absolute;
        right: 15px;
        top: 21px;
        line-height: 0;
        font-family: "Khand", sans-serif;
    }
}

/* toplevel-over */

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

/* secondlevel + thirdlevel dropdown-box */

nav.navbar [class*="toplevel"]>ul {
    padding: 10px;
    background: #ffffff;
    border-radius: 2px;
}

@media (min-width: 992px) {
    nav.navbar [class*="toplevel"]>ul {
        margin-top: -20px;
        padding: 20px 20px;
        min-width: 360px;
        max-width: 500px;
        margin-left: 50px;
        box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    }

    nav.navbar li[class*="secondlevel"] {
        margin-bottom: 2px;
    }

    nav.navbar [class*="toplevel"]>ul::before,
    nav.navbar [class*="toplevel"]>ul::after {
        content: "";
        position: absolute;
        display: block;
    }

    nav.navbar [class*="toplevel"]>ul::before {
        width: 50px;
        top: 0;
        bottom: 0;
        left: -50px;
    }

    nav.navbar [class*="toplevel"]>ul::after {
        top: 12px;
        left: -24px;
        width: 24px;
        height: 38px;
        background: #ffffff;
        clip-path: polygon(100% 100%, 100% 0, 0 50%);
    }
}

nav.navbar [class*="secondlevel"]>ul {
    margin: 0px;
    padding: 4px 0;
}

/* secondlevel + thirdlevel */

nav.navbar a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #444444;
    font-size: 1rem;
    text-align: left;
    position: relative;
    line-height: 1.2;
    text-decoration: none;
}

nav.navbar a[class*="secondlevel"] {
    padding: 8px 35px 8px 10px;
    background: #f3f3f3;
    font-weight: 500;
}

@media (min-width: 992px) {
    nav.navbar a[class*="secondlevel"] {
        padding: 10px 20px
    }
}

nav.navbar a[class*="thirdlevel"] {
    padding: 6px 15px 6px 38px;
    font-weight: 400;
}

nav.navbar a[class*="thirdlevel"]::before {
    content: "\00BB";
    display: block;
    position: absolute;
    top: 15px;
    line-height: 0;
    left: 25px;
}

/* secondlevel + thirdlevel over */

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

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



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

form[id^="search"] {
    display: inline-flex;
    margin: 20px auto;
    width: 100%;
    background-color: #e6e6e6;
}

@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: #666666 url('../img/suche-icon.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    transition: background 150ms linear;
}

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

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

#content {
    text-align: left;
    padding-bottom: 30px;
    padding-top: 30px;
}

@media (min-width: 992px) {
    #content {
        padding-bottom: 60px;
        padding-top: 60px;
    }
}

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

.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:focus,
.h4link a:visited,
H6,
H5,
H4,
H3,
H2,
H1 {
    font-weight: normal;
    line-height: 1.2;
    font-family: "Montserrat ", sans-serif;
    font-weight: 700;
}

h1,
h3,
h5,
h2,
h4,
h6 {
    color: #2f3037;
}

h1,
.h1,
.legacy_h1 {
    font-size: 1.7rem;
}

@media (min-width: 768px) {
    h1,
    .h1,
    .legacy_h1 {
        font-size: 2.5rem;
    }
}

h2,
.h2,
.legacy_h2 {
    font-size: 1.65rem;
}

@media (min-width: 768px) {
    h2,
    .h2,
    .legacy_h2 {
        font-size: 1.7rem;
    }
}

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

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

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

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

/* ------------------------------------------------ teaser ----------------------------------------------- */

#teaser {
    color: #56524a;
    font-weight: 400;
    line-height: 1.4;
    padding-bottom: 30px;
    font-size: 1.125rem;
}

@media (max-width: 767px) {
    #teaser > .row > div + div {
        margin-top: 30px;
    }
}

@media (min-width: 576px) {
    #teaser > .row > div + div:nth-child(2) {
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    #teaser {
        padding-bottom: 60px;
    }
}

.teaser {
    background: #ffffff;
    padding: 20px;
    padding-bottom: 14px;
    -webkit-box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .teaser {
        height: 100%;
        min-height: 100%;
    }
}

.bgTeaser {
    margin-bottom: 30px;
}

#geschichte {
    margin-top: 40px;
}

#geschichte :is(h1, h2, h3, h4, h5, h6) {
    font-size: clamp(1.375rem, 2.3vw, 2.25rem);
    margin: 0;
}

#geschichte :is(h1, h2, h3, h4, h5, h6) :is(i, em),
#geschichte :is(i, em) :is(h1, h2, h3, h4, h5, h6) {
    color: #852e00;
    font-style: normal;
}

#geschichte :is(b, strong) {
    font-size: clamp(1.25rem, 1.4vw, 1.375rem);
    display: block;
    margin-bottom: 15px;
    margin-top: 15px;
}

#geschichte a,
.visit a {
    font-weight: 700;
    font-size: 1.125rem;
    background: #852e00;
    color: #ffffff;
    line-height: 1;
    padding: 20px 35px;
    display: inline-block;
    margin-top: 20px;
    outline: 2px solid #852e00;
    outline-offset: -2px;
}

#geschichte a:hover,
#geschichte a:focus,
.visit a:focus,
.visit a:hover {
    background: #ffffff;
    color: #852e00;
    text-decoration: none;
}

#geschichte .teaser,
#geschichte .teaser div {
    height: 100%;
    background-size: cover;
    background-position: center;
    min-height: 150px;
}

@media (max-width: 767px) {
    #geschichte .template-page {
        padding-bottom: 30px;
    }
}

.visit {
    margin-top: 30px;
}

.visit b, .visit strong {
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 30px;
}

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

#footer {
    background-color: #f6f6f6;
    padding-top: 30px;
    padding-bottom: 30px;
    color: #2f3037;
    line-height: 1.4;
    font-weight: 400;
    font-size: 1.125rem;
}

#footer .note {
    font-size: 1.25rem;
    font-weight: 400;
    font-family: "Montserrat ", sans-serif;
}

#footer .note strong,
#footer .note b {
    font-weight: 700;
    color: #852e00;
    text-transform: uppercase;
}

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

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

@media (min-width: 992px) {
    #footer {
        padding-top: 55px;
        padding-bottom: 55px;
    }
}

#innerfooter {
    background-color: #2e2e2e;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 1rem;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: block;
    position: relative;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
    position: relative;
}

#innerfooter a:hover,
#innerfooter a:focus {
    color: #ffffff;
}

#innerfooter a::after {
    content: "";
    position: absolute;
    left: 0;
    width: 0;
    bottom: 2px;
    height: 1px;
    background: #ffffff;
    -webkit-transition: width 300ms linear;
    -moz-transition: width 300ms linear;
    -ms-transition: width 300ms linear;
    -o-transition: width 300ms linear;
    transition: width 300ms linear;
}

#innerfooter a:hover::after,
#innerfooter a:focus::after {
    width: 100%;
}

@media (min-width: 500px) {
    #innerfooter li + li {
        margin-left: 30px;
    }

    #innerfooter li {
        display: inline-block;
    }

    #innerfooter li + li::before {
        content: "•";
        position: absolute;
        left: -17px;
        color: #ffffff;
        top: 0;
    }
}

@media (min-width: 992px) {
    #innerfooter li + li {
        margin-left: 50px;
    }
}

@media (min-width: 992px) {
    #innerfooter li + li::before {
        left: -27px;
    }
}

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

#vernetzt {
    text-align: right;
    font-size: 0.875rem;
    color: #2f3037;
    line-height: 1.3;
    margin: 0 auto;
    font-weight: 400;
    text-decoration: none;
}

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

#vernetzt b {
    color: #852e00;
    font-weight: 400;
}

#vernetzt span {
    color: #2f3037;
}

#vernetzt span span {
    display: block;
}

#vernetzt img {
    margin-left: 18px;
}
