@import url('https://fonts.verwaltungsportal.de/import/?family=Roboto:400,400i,700,700i');
@import url("https://fonts.verwaltungsportal.de/import/?family=Tangerine:700,700i");

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: #a34f4d #ffffff;
    scrollbar-width: thin;
}

body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    color: #222222;
    background-color: #f3ebd4;
    font-size: clamp(1rem, 2vw, 1.375rem);
    /* 1rem = 16px */
    line-height: 1.5;
    background-attachment: scroll, fixed;
    background-size: cover;
}

@media (min-width: 768px) {
    html {
        position: relative;
    }
}

a {
    color: #a34f4d;
}

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

b,
strong {
    font-weight: 700;
}

/* ----------------------------------------------- compact ----------------------------------------------- */

.compact {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 5;
}

@media (min-width: 768px) {
    .compact {
        padding: 20px clamp(15px, 3vw, 30px) clamp(15px, 3vw, 30px) clamp(15px, 3vw, 30px);
        margin-top: clamp(30px, 7vw, 130px);
        margin-bottom: clamp(30px, 5vw, 60px);
    }
}

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

#topbar {
    color: #222222;
}

@media (min-width: 992px) {
    #topbar {
        padding-top: 20px;
        padding-bottom: 50px;
    }
}

/* ----------------------------------------------- logo ----------------------------------------------- */

.logo {
    display: inline-block;
}

.logo img {
    display: block;
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.15));
}

@media (max-width: 991px) {
    .logo {
        margin-bottom: 15px;
    }

    .logo img {
        max-width: calc(100vw - 120px);
        width: 100%;
    }
}

@media (min-width: 992px) {
    .logo {
        width: auto;
        position: absolute;
        top: -75px;
    }
}

/* ----------------------------------------------- infoBox ----------------------------------------------- */

.infoBox {
    gap: 30px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: end;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .infoBox {
        padding: 15px 15px;
        gap: 15px;
        display: grid;
        background: #ffffff;
    }
}

/* #region ------------------------------------ phone + mail -------------------------------------------- */

#mail,
#phone {
    color: #222222;
    display: inline-block;
    font-weight: 400;
    line-height: 1;
    position: relative;
    min-height: 18px;
    font-size: 1rem;
}

@media (min-width: 992px) {

    #mail,
    #phone {
        display: inline-flex;
        align-items: center;
    }
}

#mail {
    padding-left: 28px;
    background: url('../img/icon-mail.png') center left no-repeat;
}

#phone {
    padding-left: 25px;
    background: url('../img/icon-telefon.png') center left no-repeat;
}

/* #endregion --------------------------------- phone + mail -------------------------------------------- */

/* ----------------------------------------------- styler ----------------------------------------------- */

@media (min-width: 992px) {
    #style {
        margin-right: -10px;
    }

    #style h2 {
        font-size: 1rem;
        font-weight: 700;
        color: #222222;
        width: auto;
        margin: 0;
    }

    #style button {
        color: #222222;
        font-weight: 400;
        background: transparent;
        border: none;
        padding: 0 6px;
        line-height: 1;
        font-size: 1rem;
    }

    #style button:is(:hover, :focus) {
        color: #a34f4d;
    }

    #style button+button {
        border-left: 1px solid #222222;
    }
}

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

.navbar-nav {
    background-color: #a34f4d;
}

/* 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: #a34f4d;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 10px;
        transition: transform 200ms linear, opacity 200ms linear;
        display: block;
    }

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

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #a34f4d;
        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: 5px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 15px;
    }

    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: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: left;
    padding: 10px 15px;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
    position: relative;
}

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

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

nav.horizontally a[class*="toplevel"]::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 5px;
    left: 5px;
    width: 22px;
    height: 22px;
    background: #df8f78;
    clip-path: polygon(0 0, 100% 0, 100% 10%, 10% 10%, 10% 100%, 0 100%);
    transition: top 300ms linear, left 300ms linear, opacity 300ms linear;
    opacity: 0;
}

nav.horizontally a[class*="toplevel"]::after {
    content: '';
    position: absolute;
    pointer-events: none;
    bottom: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    background: #df8f78;
    clip-path: polygon(90% 90%, 90% 0, 100% 0, 100% 100%, 0 100%, 0 90%);
    transition: bottom 300ms linear, right 300ms linear, opacity 300ms linear;
    opacity: 0;
}

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

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

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    padding: 12px 0;
    background-color: #ffffff;
    border: 1px solid #c9c9c9;
}

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 20px;
        left: 50%;
        transform: translate(-50%, 0);
    }

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #222222;
    font-weight: 400;
    text-align: left;
    padding: 4px 30px;
    background-color: transparent;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 12px;
    display: block;
    width: 7px;
    height: 7px;
    background-color: #df8f78;
    opacity: 0;
    transition: opacity 300ms linear;
}

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

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

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

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

#slider,
.slider-wrapper {
    max-height: clamp(300px, 44vw, 430px);
    overflow: hidden;
    height: 100%;
}

@media (min-width: 768px) {
    #headerpic .nivo-directionNav a {
        top: auto;
        bottom: 12px;
    }

    #headerpic .nivo-controlNav {
        pointer-events: none;
    }

    #headerpic .nivo-controlNav a {
        pointer-events: auto;
    }
}

@media (min-width: 992px) {
    #headerpic .nivo-directionNav a {
        bottom: 18px;
    }
}

#headerpic {
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

@media (min-width: 992px) {
    #headerpic {
        margin-top: 10px;
    }
}

#bannerOverlay {
    font-family: 'Tangerine', cursive;
    font-weight: 700;
    margin: 0;
    color: #222222;
    padding: 15px 0;
    font-size: clamp(1.875rem, 5vw, 5rem);
    line-height: 1;
}

@media (max-width: 767px) {
    #bannerOverlay {
        border-bottom: 2px solid #f3ebd4;
    }
}

@media (min-width: 768px) {
    #bannerOverlay {
        padding: 15px 35px;
        background-color: rgba(255, 255, 255, 0.9);
        position: absolute;
        left: 0;
        bottom: 50px;
        z-index: 53;
        border: none;
    }

    #bannerOverlay .row {
        display: block;
    }
}

@media (min-width: 992px) {
    #bannerOverlay {
        bottom: 65px;
    }
}

@media (min-width: 1200px) {
    #bannerOverlay {
        bottom: 125px;
    }
}

.slider-mask {
    display: none;
}

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

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

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

@media (min-width: 768px) {
    #content>.row>* {
        padding: 0;
    }
}

/* #region ------------------------------------ events -------------------------------------------- */

#events {
    padding-top: clamp(40px, 4vw, 55px);
    padding-bottom: clamp(40px, 4vw, 60px);
    padding-left: 25px;
    padding-right: 25px;
    background-color: #f3ebd4;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

#events::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, #f3ebd4 36%, rgba(243, 235, 212, 0.8) 36%);
}

#events>.row {
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    #events {
        font-size: 1.125rem;
    }
}

#events .tabHeadline {
    color: #a34f4d;
    font-size: clamp(2.25rem, 3vw, 2.8125rem);
    margin-bottom: clamp(30px, 2vw, 35px);
}

#events .tab_link_entries {
    margin-bottom: 30px;
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    #events .tab_link_entries {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

#events .tab_link_entry {
    padding: 75px 20px 20px 20px;
    background: #ffffff;
    position: relative;
    min-height: 106px;
    display: flex;
    align-items: start;
    flex-direction: column-reverse;
    justify-content: center;
}

#events .tab_link_entry::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    padding: 45px 15px 10px 15px;
    background: #a34f4d url('../img/kalender-icon.png') center no-repeat;
}

@media (min-width:576px) {
    #events .tab_link_entry {
        padding: 20px 30px 20px 135px;
    }

    #events .tab_link_entry::before {
        right: auto;
        bottom: 0;
        width: 105px;
        padding: 65px 0 20px 0;
    }
}

#events .tab_link_title a {
    color: #222222;
    font-weight: 700;
    line-height: 1.3;
    display: inline-block;
}

#events .tab_link_date {
    color: #222222;
}

#events .tab_link_mehr {
    color: transparent;
    font-size: 0;
}

#events .tab_link_mehr a {
    background: #a34f4d;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    padding: 8px 55px 8px 20px;
    position: relative;
    text-decoration: none;
    display: inline-block;
}

#events .tab_link_mehr a::after {
    content: "\00BB";
    display: block;
    position: absolute;
    right: 0;
    top: 9px;
    bottom: 9px;
    width: 35px;
    text-align: center;
    font-size: 26px;
    line-height: 18px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

#events .tab_link_mehr a:is(:hover, :focus) {
    background: #7e3c3b;
    color: #ffffff;
}

#events .tab_spacer,
#events .tab_link_mandat {
    display: none;
}

/* #endregion --------------------------------- events  -------------------------------------------- */

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

#tabs {
    font-size: 1rem;
    padding-top: clamp(30px, 3vw, 40px);
    padding-bottom: clamp(30px, 3vw, 40px);
}

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

@media (min-width: 1200px) {
    #tabs>.row {
        margin-left: -15px;
        margin-right: -15px;
        width: auto;
    }

    #tabs .tab .btgrid>.row>div:nth-child(1) {
        flex: 0 0 35%;
        max-width: 35%;
        min-width: 35%;
    }

    #tabs .tab .btgrid>.row>div:nth-child(2) {
        flex: 0 0 65%;
        max-width: 65%;
        min-width: 65%;
    }
}

#tabs .tab {
    hyphens: auto;
}

#tabs .tabHeadline {
    font-size: clamp(1.75rem, 2vw, 2.375rem);
}

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

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

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

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


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

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

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

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

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

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

footer {
    background-color: #f3ebd4;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 30px 15px;
    position: relative;
}

@media (min-width: 576px) {
    footer::after {
        content: "";
        display: block;
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        bottom: 0;
        width: 306px;
        height: 100%;
        clip-path: polygon(60% 0%, 100% 0%, 100% 100%, 0% 100%);
        background: #a34f4d;
    }
}

@media (min-width: 768px) {
    footer::after {
        width: 406px;
    }
}

footer>.row {
    position: relative;
    z-index: 2;
}

#innerfooter ul {
    padding: 0;
}

@media (max-width: 575px) {
    #innerfooter {
        border-top: 1px solid rgba(34, 34, 34, 0.5);
        margin-top: 15px;
        padding-top: 15px;
    }
}

@media (min-width: 768px) {
    footer {
        padding: 55px 30px;
    }
}

#innerfooter a {
    color: #ffffff;
    display: inline-block;
    font-weight: 400;
    font-size: 1.125rem;
    background: #a34f4d;
}

@media (max-width: 575px) {
    #innerfooter a {
        color: #222222;
        background: transparent;
    }

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

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

#vernetzt {
    display: grid;
    gap: 12px;
    font-size: 0.875rem;
    color: #222222;
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
}

#vernetzt :is(span, img) {
    display: block;
}

#vernetzt b {
    color: #a34f4d;
}

@media (max-width: 575px) {
    #vernetzt img {
        margin: 0 auto;
    }
}