@import url('https://fonts.verwaltungsportal.de/css/?family=Kanit:300,400,300i,400i,500,500i,600,600i');
@import url("https://fonts.verwaltungsportal.de/css/?family=Baloo+2:400,500,600,700");

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

body {
    font-family: 'Kanit', sans-serif;
    color: #333333;
    background: #fafafa;
    font-size: clamp(1rem, 2vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.5;
    font-weight: 300;
}

a {
    color: #9d3629;
}

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

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

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

#logomobile {
    background: #373a50;
    padding: 15px;
}

.logo {
    display: inline-block;
}

.logo img {
    display: block;
}

@media (max-width: 991px) {
    .logo {
        padding-top: 10px;
    }
    .logo img {
        max-width: calc(50vw - 270px);
        width: 100%;
    }
}

@media (max-width: 767px) {
    .logo img {
        max-width: calc(100vw - 210px); 
    }
}

a.wortmarke {
    color: #333333;
    font-size: 1.125rem;
    text-align: center;
    hyphens: auto;
}

a.wortmarke:hover {
    text-decoration: none;
}

a.wortmarke :is(b, strong) {
    color: #4e558b;
    font-size: clamp(1.75rem, 3vw, 3.125rem);
    font-family: "Baloo 2", serif;
    font-weight: 600;
}

@media (max-width: 991px) {
    a.wortmarke :is(b, strong) {
        line-height: 1.2;
    }
}

a.wortmarke p::first-letter {
    color: #cc3a37 !important;
  }
/* #region ------------------------------------ header ------------------------------------------ */

/* topbar */

#topbar {
    background: #ffffff;
    padding: 14px 0;
}

@media (min-width: 992px) {
    #topbar {
        position: relative;
    }
}


.social a {
    color: #cc3a37;
    font-weight: 500;
    background: #ffffff;
    padding: 5px 22px;
    font-size: 0.875rem;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 300ms;
    display: inline-block;
    text-decoration: none;
}

.social a:is(:hover, :focus) {
    color: #ffffff;
    background: #373a50;
}
/* #region ---------------------------------- navigation ---------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        width: 100% !important;
        padding-bottom: 20px;
    }

    .is-sticky nav.horizontally {
        position: static !important;
    }

    #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: #4e558b;
        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: #4e558b;
        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: 3px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: 10px 0;
        background: #4e558b;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        flex-wrap: wrap;
        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: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: 600;
    text-align: left;
    padding: 10px;
    position: relative;
    text-transform: uppercase;
    font-size: 1rem;
    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 a[class*="toplevel"] {
        text-align: center;
        padding: 18px 10px;
    }

    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 15px;
    }
}

/* 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: #fff;
    background-color: #3e4579;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #afafaf;
}

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

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

    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>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;
    }

    .navbar-default .navbar-nav > li > .dropdown-menu::before {
        content: "";
        position: absolute;
        display: block;
        height: 30px;
        left: 0;
        right: 0;
        top: -30px;
    }

    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu::before {
        content: "";
        position: absolute;
        display: block;
        width: 20px;
        top: 0;
        bottom: 0;
        left: -20px;
    }
}

/* secondlevel + thirdlevel */

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

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

@media (min-width: 992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding: 6px 30px;
    }
}

/* 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: #cc3a37;
    background-color: transparent;
}

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

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

#slider {
    max-height: 300px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 992px) {
    #slider {
        max-height: 400px;
    }
    body.index #slider {
        max-height: 650px;
    }
    #headerpic a.nivo-prevNav {
        left: 65px;
    }
    #headerpic a.nivo-nextNav {
        right: 65px;
    }
}

#headerpic {
    padding: 0;
    position: relative;
    z-index: 6;
}

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

.slider-mask {
    display: block;
    background: linear-gradient(to bottom, rgba(36,39,64,0) 0%,rgba(36,39,64,0) 50%,rgba(36,39,64,1) 100%);
}


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

/* ------------------------------------------- topInfo ------------------------------------------ */

@media (min-width: 768px) {
    #topInfo {
        margin-top: -130px;
        position: relative;
        z-index: 55;
    }
}

#topInfo .tabContent {
    background: #ffffff;
    border: 1px solid #a0a0a0;
    font-size: 1rem;
}

#topInfo .tabContent a {
    color: #cc3a37;
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

#topInfo .tabContent img {
    margin-bottom: 5px;
}

#topInfo .template-page>.row {
    margin: 0;
}

#topInfo .template-page .row>.col {
    padding: 15px 30px;
}

#topInfo .tabContent img {
    max-height: 100px;
    width: auto;
}
/* ------------------------------------------- content ------------------------------------------ */

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

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #4e558b;
    font-weight: 600;
    line-height: 1.2;
    font-family: "Baloo 2", serif;
}

:is(#topInfo) .tabHeadline {
    padding: 6px 0 6px 17px;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.375rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-left: 3px solid #fff;
    background: rgba(36, 39, 64, 0.1);
}

@media (max-width: 767px) {
    :is(#topInfo) .tabHeadline {
        margin-top: 20px;
        background: rgba(36, 39, 64, 1);
    }
}

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

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.8125rem, 3.5vw, 2.25rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.75rem, 3vw, 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;
}

/* ----------------------------------------------- @12ev events -------------------------------------------- */

#ev12 {
    color: #444444;
    font-size: 1rem;
    position: relative;
    
}

#ev12 .tabHeadline {
    padding: 6px 0 6px 17px;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.375rem;
    color: #4e558b;
    letter-spacing: 0.2em;
    border-left: 3px solid #cc3a37;
}

@media (max-width: 991px) {
    #ev12 .tabHeadline {
        margin-top: 20px;
    }
}

#ev12 .tabContent {
    background: #ffffff;
    border: 1px solid #a0a0a0;
}

#ev12 .tabContent .box,
#ev12 #clr-events-hide {
    padding: 20px;
}

#ev12 #clr-events-hide>P:first-of-type {
    display: none;
}

#ev12 .tab_link_title a {
    font-weight: 600;
    color: #0c5c82;
}

#ev12 .tab_link_mandat a {
    color: #444444;
    font-style: italic;
}

#ev12 .tab_link_mehr {
    font-size: 0;
    text-align: right !important;
    padding: 0 !important;
}

#ev12 .tab_link_mehr a {
    text-decoration: none;
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 400;
    color: #444444;
    padding: 5px 15px;
    background: #ccdc65;
}

#ev12 .tab_link_mehr a:hover,
#ev12 .tab_link_mehr a:focus {
    color: #ccdc65;
    background: #004261;
}

/* #region ----------------------------------- breaker ------------------------------------------ */

#breaker {
    position: relative;
    z-index: 0;
    padding-top: clamp(40px, 6vw, 80px);
    padding-bottom: clamp(40px, 6vw, 70px);
    background-attachment: fixed;
    background-size: cover;
}

#breaker :is(.tab-1, .tab-2),
#breaker :is(.tab-1, .tab-2) :is(h1, h2, h3, h4, h5, h6) {
    color: #ffffff;
}

#breaker .tab-1 {
    background: #4e558b;
    padding: clamp(40px, 6vw, 80px);
    position: relative;
    z-index: 2;
    font-size: 1rem;
    height: 100%;
}

#breaker .tab-1 a {
    color: inherit;
    font-size: 1.375rem;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

#breaker .tab-1 a:is(:hover, :focus)::after {
    right: -8px;
}

#breaker .tab-1::before {
    content: "";
    display: block;
    position: absolute;
    top: clamp(15px, 2vw, 30px);
    right: clamp(15px, 2vw, 30px);
    bottom: clamp(15px, 2vw, 30px);
    left: clamp(15px, 2vw, 30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

#breaker .tab-1 .tabHeadline {
    margin-bottom: clamp(20px, 3vw, 40px);
}

#breaker .tab-2 {
    background-color: #cc3a37;
    background-position: center;
    background-size: cover;
    padding: clamp(25px, 3vw, 40px);
    font-size: 1.125rem;
    height: 100%;
}

@media (min-width: 992px) {
    #breaker .tab-2 {
        padding-right: 120px;
    }
}

#breaker .tab-2 .tabHeadline {
    font-weight: 600;
}

#breaker .tab-2 a {
    color: #cc3a37;
    font-weight: 500;
    background: #ffffff;
    padding: 5px 22px;
    font-size: 0.875rem;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 300ms;
    display: inline-block;
    text-decoration: none;
}

#breaker .tab-2 a:is(:hover, :focus) {
    color: #ffffff;
    background: #373a50;
}

/* #endregion -------------------------------- breaker ------------------------------------------ */

/* ------------------------------------------- sponsor ------------------------------------------ */

#sponsor {
    padding-bottom: clamp(30px, 4vw, 60px);
}

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

footer {
    font-size: 1rem;
    background: #4e558b;
    color: #ffffff;
}

#kontakt {
    padding: clamp(40px, 4vw, 50px) 0;
}

:is(#kontakt, #footer)>.row {
    row-gap: 30px;
}

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

.footerHeadline {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.375rem;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

#footer {
    background: #242740;
    padding: 30px 0 25px 0;
}

/* ------------------------------------------ GoogleMaps ---------------------------------------- */

.iframeMapsTab :is(iframe, .iframe-wrapper-manual-enabling) {
    min-width: 100%;
    width: 100%;
    display: block;
}

@media (min-width: 768px) {
    .iframeMapsTab :is(iframe, .iframe-wrapper-manual-enabling) {
        margin-bottom: -100px;
    }
}

/* ------------------------------------------ innerfooter --------------------------------------- */

#innerfooter ul {
    padding: 0;
}

#innerfooter ul a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

#innerfooter li {
    display: inline-block;
}

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

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

@media (max-width: 575px) {
    #innerfooter li {
        display: block;
        line-height: 2;
    }
}

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

#vernetzt {
    gap: 10px;
    text-align: left;
    font-size: 0.875rem;
    color: #ffffff;
    line-height: 1.4;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}