@import url('https://fonts.verwaltungsportal.de/css/?family=Source+Sans+3:400,600,400i,600i%7cUbuntu:700,700i');

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

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

a {
    color: #3255a5;
}

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

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

/* ------------------------------------------- style ------------------------------------------ */

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

#style {
    background-color: #171717;
    font-size: 0.875rem;
    padding: 6px 0;
    line-height: 1.2;
}

@media (max-width: 991px) {
    nav.horizontally #style {
        padding: 15px 0;
    }
}

#style h2 {
    font-size: inherit;
    font-family: inherit;
    margin: 0;
    font-weight: inherit;
}

#style button {
    font-size: 1.25rem;
    color: #ffffff;
    text-decoration: underline;
    background: none;
    border: none;
    text-decoration: none;
    padding: 0 10px;
}

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

#style button:is(:hover, :focus) {
    color: #59b453;
    text-decoration: underline;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        position: static !important;
    }

    #burgerButton {
        font-size: 0;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background: #59b453;
        border: none !important;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #171717;
        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: #59b453;
        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: #59b453;
        transition: all 0.2s 0s linear;
    }

    .is-sticky nav.horizontally {
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
    }

    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: #171717;
    font-weight: 700;
    text-align: left;
    padding: 10px 15px 14px 15px;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "Ubuntu", sans-serif;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"] {
        border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    }

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

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

nav.horizontally a[class*="toplevel"][href*="suche"] {
    font-size: 0;
    width: 34px;
    height: 100%;
    background: url("../img/lupe-icon.png") left 5px bottom 14px no-repeat;
    transition: background 300ms linear;
}

@media (max-width: 991px) {
    nav.horizontally a[class*="toplevel"][href*="suche"] {
        min-height: 50px;
    }
}

/* 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;
    background-color: #3255a5;
    background-position-x: left -27px;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    padding: 10px;
    box-shadow: 0 2px 1px 0 rgba(0, 0, 0, 0.2);
    background: #59b453;
}

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

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

    nav.horizontally [class*="toplevel"]>ul::before {
        content: "";
        position: absolute;
        top: -12px;
        left: calc(50% - 20px);
        width: 40px;
        height: 12px;
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
        background: #59b453;
    }

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    font-weight: 700;
    text-align: left;
    padding: 10px 35px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    color: #171717;
}

@media (min-width: 992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding-left: 25px;
        padding-right: 25px;
        text-align: center;
    }
}

/* secondlevel + thirdlevel over */

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

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

/* ----------------------------------------- button design -------------------------------------- */

.buttonStyle a,
#ev10 .tab .tab_link_mehr a {
    display: inline-block;
    background: #ffffff;
    border-radius: 3px;
    color: #3255a5;
    font-size: 1rem;
    padding: 3px 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 300ms linear, color 300ms linear, border 300ms linear;
}

@media (min-width: 768px) {
    .buttonStyle a+a {
        margin-left: 12px;
    }
}

.buttonStyle a::after {
    content: "\00BB";
    margin-left: 4px;
    position: relative;
    bottom: 1px;
}

.buttonStyle a:is(:hover, :focus),
#ev10 .tab .tab_link_mehr a:is(:hover, :focus) {
    color: #171717;
    background: #59b453;
}

body:not(.index) #ev10 .eventclndr-tab {
    display: none;
}

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

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

#logoContainer {
    gap: 20px;
    padding: 15px 30px 15px 110px;
    margin-left: 80px;
    background: rgba(191, 219, 240, 0.9);
    font-size: clamp(1rem, 3vw, 1.625rem);
    font-family: "Ubuntu", sans-serif;
    line-height: 1.3;
    border-radius: 20px;
    margin: 30px 0 30px 70px;
}

@media (min-width: 768px) {
    #logoContainer {
        min-width: 540px;
    }
}

#logoContainer :is(b, strong) {
    font-weight: 700;
}

#logo {
    flex-shrink: 0;
    margin: -30px 0 -30px -180px;
    display: inline-block;
}

#logo img {
    display: block;
}

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

    #logoContainer {
        gap: 15px;
        padding: 15px 30px 15px 30px;
        margin: 30px 0 30px 30px;
        hyphens: auto;
    }

    #logo {
        margin: -30px 0 -30px -66px;
    }
}

header>.row {
    row-gap: 30px;
}

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

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(450px, 66vw, 655px);
    }

    #headerpic .slider-wrapper {
        margin-left: calc(-50vw + 481px);
    }
}

@media (min-width: 1200px) {
    #headerpic .slider-wrapper {
        margin-left: calc((clamp(1200px, 100vw, 1930px) - 1170px) / -2);
    }
}

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

.slider-mask {
    display: none;
}

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

/* ------------------------------------------ @10ev events---------------------------------------- */

#ev10 .tab {
    margin: 40px auto 0 auto;
    position: relative;
    background: #3255a5;
    font-size: 0.9375rem;
    color: #ffffff;
}

@media (min-width: 992px) {
    #ev10 .tab {
        margin-top: 0;
    }
}

#ev10 .tab::before {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    position: absolute;
    top: -32px;
    left: 50%;
    margin-left: -30px;
    border-radius: 50%;
    background: url("../img/icon-veranstaltungen.png") center no-repeat, #ffffff;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.15);
}

#ev10 .tabSpecial {
    padding: 45px 20px 20px 20px;
}

#ev10 .tabSpecial .tabHeadline {
    text-align: center;
    font-size: 1.4375rem;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
}

#ev10 #clr-events-hide {
    margin-top: 25px;
    padding-left: 20px;
    padding-right: 20px;
}

#ev10 .tab .eventclndr-tab {
    margin-bottom: 0;
}

#ev10 .tab .tab_link_title a {
    font-weight: 600;
}

#ev10 .tab #clr-events-hide>p:nth-child(1) {
    display: none !important;
}

#ev10 .tab .tab_spacer {
    display: none;
}

#ev10 .tab .tab_link_title {
    margin-top: 10px !important;
}

#ev10 .tab .tab_link_mehr {
    color: transparent;
    font-size: 0;
    padding-bottom: 20px;
    padding-right: 20px;
}

#ev10 .template-page a {
    color: inherit;
    text-decoration: underline;
}

#ev10 #clr-events-hide :is(a, h1, h2, h3) {
    color: inherit;
}

#ev10 .eventclndr-tab .clndr .clndr-controls {
    margin-bottom: 0;
}

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

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

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

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

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

h2,
.h2,
.legacy_h2 {
    font-size: 2rem;

}

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

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

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

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

/* ------------------------------------------- partner ------------------------------------------ */

#partner {
    padding: clamp(40px, 8vw, 80px) 0;
}

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

#footer {
    background-color: #59b453;
    padding: 30px 0;
}

@media (max-width: 767px) {
    #footer>.row>.col-xs-12+* {
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        margin-top: 15px;
        padding-top: 15px;
    }
}

@media (max-width: 991px) {
    #footer>.row>.col-xs-12:last-child {
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        margin-top: 15px;
        padding-top: 15px;
    }
}

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

#footer .template-page a:not(#vernetzt) {
    color: inherit;
    text-decoration: underline;
}

#footer .footer-heading {
    font-size: inherit;
    margin: 0;
}

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

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: block;
}

#innerfooter a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
}

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

@media (min-width: 576px) {
    #innerfooter li+li::before {
        content: "•";
        margin: 0 clamp(15px, 2vw, 25px);
        color: #fff;
    }

    #innerfooter li {
        display: inline-block;
    }
}

#counter {
    font-size: 0.875rem;
    padding: 3px 20px;
    border: 2px solid rgba(0, 0, 0, 0.5);
    width: fit-content;
    margin: auto;
}

@media (min-width: 992px) {
    #counter {
        margin-left: auto;
        margin-right: 0;
    }
}

#counter span {
    font-weight: 600;
}

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

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

#vernetzt {
    gap: 18px;
    text-align: right;
    font-size: 0.875rem;
    color: #171717;
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
    margin-top: 30px;
}

#vernetzt span span {
    display: block;
}