@import url('https://fonts.verwaltungsportal.de/import/?family=Roboto:400,500,700,400i,500i,700i');
@import url('https://fonts.verwaltungsportal.de/import/?family=Noto+Serfi:400,700,400i,700i');

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

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

a {
    color: #50ba09;
}

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

b,
strong {
    font-weight: 700;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

@media (max-width: 991px) {
    #logo img {
        max-width: calc(100vw - 120px);
    }
}

@media (min-width: 992px) {
    #style button {
        border: 1px solid #fff;
        color: #262626;
        display: inline-block;
        width: 21px;
        height: 21px;
        border-radius: 50%;
        font-weight: 400;
        text-align: center;
        background-color: #50ba09;
        position: relative;
        line-height: 1;
        -webkit-transition: transform 150ms linear;
        -moz-transition: transform 150ms linear;
        -ms-transition: transform 150ms linear;
        -o-transition: transform 150ms linear;
        transition: transform 150ms linear;
        padding: 0;
        font-size: 14px;
    }

    #style button+button {
        margin-left: 8px;
    }

    #style button:hover {
        color: #50ba09;
        background-color: #262626;
    }

    #style button:focus-visible {
        outline: 2px auto;
    }
}

#style, #contrast_style {
    display: inline-block;
    margin-left: 30px;
}

@media (max-width: 991px) {
    #contrast_style {
        margin-left: 0;
        margin-top: 20px;
    }
}


#contrast_style button {
    color: #000000;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.6);
    font-family: "Khand", sans-serif;
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-weight: 400;
    text-align: center;
    background: #ffffff;
    position: relative;
    z-index: 1;
    font-size: 0;
}

#contrast_style button::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    left: -6px;
    top: -6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    -webkit-transition: opacity 150ms linear;
    -moz-transition: opacity 150ms linear;
    -ms-transition: opacity 150ms linear;
    -o-transition: opacity 150ms linear;
    transition: opacity 150ms linear;
}

#contrast_style *+* {
    margin-left: 10px;
}

#contrast_style button::after {
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    right: 3px;
    left: 3px;
    bottom: 3px;
    border: 1px solid rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

#contrast_style button:nth-of-type(1)::after {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) 50%, rgba(255, 255, 255, 1) 50%);
}

#contrast_style button:nth-of-type(2)::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) 50%, rgba(0, 0, 0, 0.6) 50%);
}

#contrast_style button:nth-of-type(3)::after {
    background: #ea5b0c;
    border: none;
}

/* #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: #262626;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

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

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

/* menu desktop */

nav.horizontally {
    padding: 13px 0 10px 0;
    background-color: #262626;
    transition: all 0.3s 0s ease;
}

.is-sticky nav.horizontally {
    border-bottom: 2px solid #50ba09;
}

@media (min-width: 992px) {
    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;
    }

    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: #50ba09;
    font-weight: 400;
    text-align: left;
    padding: 10px 35px;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "Noto Serif", serif;
}

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

    nav.horizontally a[class*="toplevel"] {
        padding: 20px 0 20px 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;
}

@media (min-width: 992px) {

    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: #50ba09;
        background: url(../img/aktiv-stimmgabel.png) center no-repeat;
    }
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    padding: 20px 0;
    background-color: #e3e3e3;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.12);
}

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

    .dropdown-toggle-button {
        background: #000000 !important;
    }
}

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

    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>ul::before {
        content: "";
        position: absolute;
        display: block;
    }

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

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

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

/* secondlevel + thirdlevel */

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

/* 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) {
    background: url(../img/subnavi-aktiv.png) left 10px center no-repeat;
}

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

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

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

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

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

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

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

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

.slider-mask {
    display: block;
    background: linear-gradient(0deg, rgba(38, 38, 38, 1) 0%, rgba(255, 255, 255, 0) 20%);
}

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

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

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

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

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

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

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

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

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

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

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

/* ----------------------------------------------- @1nw news -------------------------------------------- */

#nw1,
#events {
    padding-bottom: clamp(60px, 7vw, 100px);
}

#events {
    padding-top: clamp(60px, 7vw, 100px);
}

#nw1>.row,
#events>.row {
    row-gap: 30px;
}

#nw1 .tabHeadline,
#events .tabHeadline {
    hyphens: auto;
    font-size: clamp(1.75rem, 2vw, 2.125rem);
}

.tab_link,
.tab_link>div {
    height: 100%;
    min-height: 100%;
}

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

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

@media (min-width: 768px) {
    .tab_link_entries {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tab_link_entry {
    font-size: 1rem;
    position: relative;
    width: 100%;
    border-radius: 2px;
    padding: 200px 30px 30px 30px;
    color: #262626;
    background: #e3e3e3 !important;
    box-shadow: 0px 5px 20px 0px rgba(3, 32, 54, 0.2);
}

.vorschau {
    opacity: 1;
}

.tab_preview_picture {
    background: #e3e3e3;
}

.tab_link_entry::before,
.tab_link_entry .tab_preview_picture {
    position: absolute;
    display: block;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 180px;
    overflow: hidden;
    border-radius: 3px 3px 0 0;
}

.tab_link_entry::before {
    content: "";
    background: center / cover no-repeat, #222222;
}

.tab_preview_picture img {
    position: absolute;
    margin: 0 !important;
    left: 50%;
    top: 50%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
    max-width: 350px;
    width: auto;
    height: auto;
    -ms-interpolation-mode: bicubic;
    transform: translateX(-50%) translateY(-50%);
}

#nw1 .tab_date {
    display: inline-block;
    position: absolute;
    z-index: 1;
    right: 15px;
    top: 15px;
    font-weight: 700;
    color: #262626;
    font-size: 0.875rem;
    padding: 6px 20px;
    background: #50ba09;
    border-radius: 2px;
}

.tab_link_title a {
    display: block;
    font-weight: 700;
    font-size: 1.5rem;
    color: #262626;
    line-height: 1.2;
    margin-bottom: 8px;
}

.tab_link_mandat a {
    color: #262626;
    text-decoration: underline;
}

#nw1 .tab_link_entries+div,
#nw1 .tab_link_entries .tab_spacer,
#events .tab_link_entries+div,
#events .tab_link_entries .tab_spacer {
    display: none;
}

/* ------------------------------------------- @1nw buttonStyle ------------------------------------------- */

#nw1 .tab_link_mehr,
#events .tab_link_mehr {
    font-size: 0;
}

#nw1 .buttonStyle a,
#nw1 .tab_link_mehr a,
#events .buttonStyle a,
#events .tab_link_mehr a {
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: #262626;
    padding: 7px 20px;
    border-radius: 2px;
    background: #50ba09;
    transition: background 300ms linear, color 300ms linear;
    margin-top: 10px;
}

@media (min-width: 768px) {

    #nw1 .buttonStyle a+a,
    #nw1 .tab_link_mehr a+a,
    #events .buttonStyle a+a,
    #events .tab_link_mehr a+a {
        margin-left: 12px;
    }
}

#nw1 .buttonStyle a:hover,
#nw1 .buttonStyle a:focus,
#nw1 .tab_link_mehr a:is(:hover, :focus),
#events .buttonStyle a:hover,
#events .buttonStyle a:focus,
#events .tab_link_mehr a:is(:hover, :focus) {
    color: #50ba09;
    background: #262626;
}

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

#parallaxBreaker {
    height: 250px;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

@media (min-width: 992px) {
    #parallaxBreaker {
        height: 385px;
    }
}

#kontakt {
    padding: 30px 0;
    background-color: #262626;
}

#kontakt .tab {
    color: #ffffff;
    height: 100%;
}

#kontakt .tabHeadline {
    margin: 0 0 10px 0;
    font-size: 1.5625rem;
}

#kontakt .template-img {
    border-bottom: 10px solid #50ba09;
}

#kontakt a {
    color: #ffffff;
    text-decoration: underline;
}

@media (min-width: 992px) {
    #kontakt .tab2 .template-page>.row>div {
        flex: 0 0 45%;
        max-width: 45%;
    }

    #kontakt .tab2 .template-page>.row>div+div {
        flex: 0 0 55%;
        max-width: 55%;
    }
}

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

#footer {
    background-color: #50ba09;
    padding: 20px 0;
    color: #262626;
}

#innerfooter ul {
    padding: 0;
}

@media (min-width: 500px) {
    #innerfooter li {
        display: inline-block;
    }

    #innerfooter li+li {
        margin-left: clamp(20px, 3vw, 40px);
    }
}

@media (max-width: 767px) {
    #innerfooter {
        border-bottom: 1px solid #262626;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
}

#innerfooter a {
    color: #262626;
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
    font-size: 1rem;
}

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

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

#vernetzt {
    gap: 12px;
    text-align: right;
    font-size: 0.9375rem;
    color: #262626;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}