@import url('https://fonts.verwaltungsportal.de/import/?family=Space+Grotesk:300,600');

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

body {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 300;
    color: #1a1a1a;
    background: #efae0f url('../img/shine1.webp') bottom 50px left -400px no-repeat;
    font-size: clamp(1rem, 2vw, 1.5rem);
    /* 1rem = 16px */
    line-height: 1.5;
}

a,
a:is(:hover, :focus) {
    color: inherit;
}

:is(#content, footer .template-page, #innerfooter) a {
    text-decoration: underline;
}

b,
strong {
    font-weight: 600;
}

@media (min-width: 1200px) {

    .row,
    .compact,
    ._op-container .container {
        max-width: 1850px;
        width: 100%;
    }
}

#over {
    overflow: clip;
    position: relative;
}

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

#logo {
    display: inline-block;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1011;
}

@media (min-width: 1200px) {
    #logo {
        top: 50px;
        left: 50px;
    }
}

#logo img {
    display: block;
    max-width: 200px;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        height: 50px;
        width: 60px;
        padding: 6px 8px;
        cursor: pointer;
        background-color: #1a1a1a;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background-color: #ffffff;
        border-bottom: 3px solid #1a1a1a;
        position: sticky;
        top: 0;
        z-index: 1010;
        padding: 35px 0;
    }

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

    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.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.horizontally .navbar-nav li:is(:hover)>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:is(:hover, :focus)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #1a1a1a;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    text-transform: uppercase;
    position: relative;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.2;
    text-decoration: none;
}

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

@media (min-width: 992px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-left: clamp(20px, 2vw, 30px);
    }

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

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 0;
    height: 3px;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    background-color: #1a1a1a;
    opacity: 0;
    transition: opacity 300ms linear, width 300ms linear;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"]::before {
        top: 0;
        bottom: unset;
    }
}

/* toplevel-over */

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

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #ffffff;
    font-weight: 300;
    text-align: left;
    padding: 10px 30px;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.2;
    text-decoration: none;
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    content: "";
    width: 3px;
    height: 0;
    display: block;
    position: absolute;
    left: 0;
    transform: translateY(50%);
    bottom: 50%;
    background-color: #ffffff;
    opacity: 0;
    transition: opacity 300ms linear, height 300ms linear;
}

/* secondlevel + thirdlevel over */

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;
    height: 100%;
}

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

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

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

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(500px, 70vw, 945px);
    }

    #headerpic a.nivo-prevNav {
        left: unset;
        right: 130px;
    }

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

    #headerpic .nivo-directionNav a {
        top: 50px;
    }

    .index .nivo-controlNav {
      text-align: left !important;
      padding-left: 15px !important;
    }
}

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

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

.slider-mask {
    display: none;
}

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

#events {
    padding-top: clamp(40px, 12vw, 170px);
    row-gap: 30px;
}

@media (min-width: 992px) {
    #events {
        position: relative;
        z-index: 20;
        margin-top: -150px;
        padding-top: 0;
    }

    #events>article {
        padding-right: 45px;
        padding-top: 200px;
    }

    #events>article>* {
        width: 100%;
    }
}

#events .tab_link_entries {
    display: grid;
    gap: 30px;
}

@media (min-width: 576px) {
    #events .tab_link_entries {
        grid-template-columns: repeat(2, 1fr);
    }
}

#events .tab_link_entry {
    padding: clamp(30px, 4vw, 550px) clamp(30px, 4vw, 60px) clamp(90px, 8vw, 110px) clamp(30px, 4vw, 60px);
    background: #ffffff;
    position: relative;
    min-width: none;
}

#events .tab_link_entry a:is(:hover, :focus) {
    text-decoration: underline;
}

#events .tab_link_mandat {
   font-size: 1.875rem;
}

#events .tab_link_title a {
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 5px;
    display: inline-block;
}

#events .tab_link_entries+div {
    display: none;
    visibility: hidden;
}

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

/* #region ----------------------------------- buttons ------------------------------------------ */

.button-design a:not(.has-image),
#events .tab_link_title a::after {
    color: #ffffff;
    background: #1a1a1a;
    outline-offset: 4px;
    outline: 2px solid transparent;
    transition: color 300ms linear, outline 300ms linear;
}

.button-design a:not(.has-image) {
    display: inline-block;
    padding: 7px clamp(20px, 3vw, 40px);
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

#archive .button-design a:not(.has-image) {
    color: #1a1a1a;
    background: #ffffff;
}

.button-design a:not(.has-image)+a:not(.has-image) {
    margin-left: 10px;
}

#events .tab_link_title a::after {
    content: "\00BB";
    font-size: 75%;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    bottom: clamp(30px, 4vw, 60px);
    right: clamp(30px, 4vw, 60px);
    padding-bottom: 4px;
    box-sizing: border-box;
}

.button-design a:not(.has-image):is(:hover, :focus),
#events .tab_link_title a:is(:hover, :focus):after {
    color: #e5a50a;
    outline-color: #1a1a1a;
}

#archive .button-design a:not(.has-image):is(:hover, :focus) {
    outline-color: #ffffff;
}

#scroll-top-button {
    font-weight: 600;
    display: block;
    color: #ffffff;
    background: #1a1a1a;
    padding: 17px;
}

#scroll-top-button:is(:hover, :focus) {
    color: #e5a50a;
}

#scroll-top-button::after {
    content: "\00BB";
    margin-left: 10px;
    transform: rotate(-90deg);
    display: inline-block;
}

/* #endregion -------------------------------- buttons ------------------------------------------ */

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

.index main {
    background: url('../img/shine1.webp') top left -350px no-repeat;
}

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

body:not(.index) #content {
    padding-bottom: clamp(40px, 8vw, 100px);
}

.index #content {
    padding-top: clamp(40px, 12vw, 170px);
}

@media (min-width: 992px) {
    #content>.col-xs-12 {
        padding-left: 75px;
    }
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #0f0f0f;
    font-weight: 600;
    line-height: 1.1;
    font-family: "Space Grotesk", sans-serif;
}

h1,
.h1,
.legacy_h1 {
    font-size: clamp(36px, 4vw, 3.75rem);
}

h2,
.h2,
.legacy_h2 {
    font-size: clamp(32px, 3.5vw, 3.125rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(30px, 3vw, 2.5rem);
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited),
.legacy_h4 {
    font-size: clamp(28px, 3vw, 2.25rem);
}

h5,
.h5,
.legacy_h5,
#events .tab_link_title a {
    font-size: clamp(26px, 3vw, 34px);
}

h6,
.h6,
.legacy_h6 {
    font-size: clamp(24px, 3.3vw, 32px);
}

/* #region ------------------------------------ about ------------------------------------------- */

#about-background {
    padding-top: clamp(40px, 8vw, 100px);
}

@media (min-width: 992px) {
    #about-background {
        background: url('../img/shine2.webp') top -100px right no-repeat;
    }
}

#about {
    row-gap: 30px;
    z-index: 0;
    padding-top: clamp(40px, 7vw, 85px);
    padding-bottom: clamp(40px, 7vw, 85px);
}

@media (max-width: 767px) {
    #about {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 768px) {
    #about>article {
        padding-left: 45px;
        padding-right: 75px;
    }
}

#about::after {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    left: 15px;
    top: 0;
    bottom: 0;
    right: 15px;
    border: 3px solid #1a1a1a;
}

@media (min-width: 768px) {
    #about::after {
        left: 33.33%;
    }
}

/* #endregion --------------------------------- about ------------------------------------------- */

/* #region ---------------------------------- impressions --------------------------------------- */

#impressions {
    padding-top: clamp(40px, 8vw, 100px);
    padding-bottom: clamp(40px, 8vw, 100px);
}

/* #endregion ------------------------------- impressions --------------------------------------- */

/* #region ------------------------------------ archive ----------------------------------------- */

#archive {
    padding-top: clamp(40px, 8vw, 100px);
    padding-bottom: clamp(40px, 8vw, 100px);
    max-width: 1820px;
    background: #1a1a1a center / cover no-repeat;
    box-shadow: inset 0 0 0 100vw rgba(26, 26, 26, 0.92);
}

#archive,
#archive * {
    color: #ffffff;
}

/* #endregion --------------------------------- archive ----------------------------------------- */

/* #region ----------------------------------- footer ------------------------------------------- */

footer {
    padding-top: clamp(40px, 8vw, 100px);
    padding-bottom: clamp(40px, 8vw, 100px);
}

@media (max-width: 991px) {
    footer>.col-xs-12+.col-xs-12::before {
        content: "";
        display: block;
        height: 3px;
        width: 100%;
        background: #1a1a1a;
        margin: 30px 0;
    }
}

@media (min-width: 992px) {
    footer>.col-xs-12 {
        padding-left: 75px;
    }

    footer>.col-xs-12::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 15px;
        bottom: 0;
        width: 3px;
        background: #1a1a1a;
    }
}

.heading-gap {
    margin-bottom: clamp(15px, 6vw, 60px);
}

#innerfooter ul {
    padding: 0;
}

/* #endregion -------------------------------- footer ------------------------------------------- */

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

#vernetzt {
    line-height: 1.4;
    text-decoration: none;
}

#vernetzt span {
    display: block;
}