@import url("https://fonts.verwaltungsportal.de/import/?family=Open+Sans:400,400i,700,700i");

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

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

a {
   color: #ce162b;
}

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

#contentCol a {
   text-decoration: underline;
}

b,
strong {
   font-weight: 700;
}

:not(.cc_banner-wrapper):focus,
#vernetzt:focus span {
   outline: 5px solid #ce162b !important;
   background-color: #fff !important;
   color: #000000 !important;
   z-index: 100;
   text-decoration: none;
}

@media (min-width: 1200px) {
   .rowWide {
      max-width: 1600px;
      width: 100%;
   }
}

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

#topbar>.row {
   padding: 12px 0;
}

@media (min-width: 992px) {
   #topbar>.row {
      padding: 20px 0;
   }
}

/* LOGO MIT TEXT -------------------------------------------------------- */

.logo {
   display: flex;
   flex-wrap: wrap;
   gap: 15px 15px;
   text-decoration: none !important;
}

.logo .template-page {
   width: auto;
}

.logo .cleaner {
   display: none;
}

.logoText {
   color: #000000;
   font-size: clamp(1.25rem, 1.7vw, 1.625rem);
   align-content: center;
   font-weight: 700;
   line-height: 1.1;
   text-transform: uppercase;
}

.logoText :is(b, strong) {
   display: block;
   color: #ce162b;
}

.logoText br {
   display: none;
}

@media (max-width: 575px) {
   .logoText {
      hyphens: auto;
   }
}

.logo img {
   display: block;
   max-width: 30vw;
}

/* LOGO MIT TEXT -------------------------------------------------------- */

/* #region ------------------------------- contrast + styler ------------------------------------ */

#stylerBox {
   width: 100%;
   margin-bottom: 20px;
   column-gap: 30px;
}

#stylerBox button {
   color: #ffffff;
   padding: 2px;
   border: none;
   display: inline-block;
   width: 30px;
   height: 30px;
   flex-shrink: 0;
   border-radius: 50%;
   font-weight: 700;
   text-align: center;
   background: #ce162b;
   position: relative;
   font-size: 17px;
   z-index: 1;
   line-height: 1;
   margin-left: 10px;
}

#stylerBox button:is(:hover, :focus) {
   background: #af1123;
}

#contrast_style button::after {
   content: "";
   display: block;
   position: absolute;
   inset: 6px;
   border: 1px solid rgba(255, 255, 255, 1);
   border-radius: 50%;
   background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.6) 50%, rgba(255, 255, 255, 1) 50%);
}

#contrast_style button:nth-of-type(2)::after {
   transform: scaleX(-1);
}

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

/* #endregion ---------------------------- contrast + styler ------------------------------------ */

/* #region ------------------------------------- search ----------------------------------------- */

form[id^="search"] {
   background: #ce162b;
   display: inline-flex;
   border-radius: 30px;
   width: 100%;
   max-width: 290px;
   border: 4px solid #ffffff;
   overflow: hidden;
}

@media (max-width: 991px) {
   form[id^="search"] {
      width: calc(100% - 30px);
      margin: 20px 15px;
   }
}

form[id^="search"] label {
   color: #ffffff;
   font-size: 0.9375rem;
   font-weight: 700;
   padding: 9px 15px;
   border-right: 1px solid rgba(255, 255, 255, 0.2);
}

form [id^="search_input"] {
   color: #ffffff;
   font-size: 0.9375rem;
   font-style: normal;
   background: transparent;
   padding: 9px 15px;
   border: 0;
   width: 100%;
}

form [id^="search_submit"] {
   min-width: 40px;
   border: none;
   background: url("../img/icon-lupe.png") center no-repeat;
   padding: 0;
   cursor: pointer;
   font-size: 0;
}

form [id^="search_submit"]:is(:hover, :focus) {
   background-color: #af1123;
}

form [id^="search_input"]::placeholder {
   color: #ffffff !important;
   opacity: 1 !important;
   font-style: italic !important;
}

/* #endregion ---------------------------------- search ----------------------------------------- */

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

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

@media (min-width: 992px) {
   body.index #slider {
      max-height: clamp(400px, 58vw, 570px);
   }

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

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

#headerpic {
   padding: 0;
   overflow: hidden;
   position: relative;
   border-bottom: 5px solid #ffffff;
}

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

.slider-mask {
   display: none;
}

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

/* burgermenu for tablet */

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

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

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

/* menu desktop */

@media (min-width: 992px) {
   nav.horizontally {
      background-color: #ce162b;
      z-index: 101;
   }

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

   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;
      transition: opacity 300ms linear;
   }

   nav.horizontally .navbar-nav [class*="secondlevel"]>ul {
      left: 100%;
      top: 0;
   }

   nav.horizontally .navbar-nav>li,
   nav.horizontally .navbar-nav>li>.dropdown-menu>li {
      position: relative;
   }

   .navbar-default .navbar-nav li[class*="toplevel"]>ul,
   .navbar-default .navbar-nav li[class*="secondlevel"]>ul {
      display: block !important;
      pointer-events: none;
      opacity: 0;
      -webkit-transition: opacity 300ms linear;
      -moz-transition: opacity 300ms linear;
      -ms-transition: opacity 300ms linear;
      -o-transition: opacity 300ms linear;
      transition: opacity 300ms linear;
   }

   .navbar-default .open>.dropdown-menu,
   .navbar-default .navbar-nav li[class*="toplevel"]:hover>ul,
   .navbar-default .navbar-nav li[class*="secondlevel"]:hover>ul,
   .navbar-default .navbar-nav li[class*="secondlevel"]>ul[style*="block"] {
      pointer-events: auto !important;
      opacity: 1 !important;
   }

   .navbar-default .navbar-nav li[class*="toplevel"]:focus-within>ul,
   .navbar-default .navbar-nav li[class*="secondlevel"]:focus-within>ul {
      pointer-events: auto !important;
      opacity: 1 !important;
   }

   .navbar-default .nav .open>.dropdown-menu {
      pointer-events: none !important;
      opacity: 0 !important;
   }

   .navbar-default .navbar-nav li[class*="toplevel"]:hover>ul,
   .navbar-default .navbar-nav li[class*="secondlevel"]:hover>u {
      z-index: 1003;
   }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
   color: #ffffff;
   font-weight: 700;
   text-align: left;
   padding: 15px 15px;
   position: relative;
   font-size: 1.25rem;
   line-height: 1.2;
   text-decoration: none;
}

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

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

@media (min-width: 992px) {
   nav.horizontally a[class*="toplevel"] {
      padding: 18px 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
   }
}

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

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

/* 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) {
   background: #af1123;
}

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 {
   border-top: 5px solid #ce162b;
   background: #ffffff;
   box-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

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

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

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

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

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

#content {
   text-align: left;
   background-color: #fafafa;
   padding-bottom: clamp(40px, 6vw, 95px);
   padding-top: clamp(30px, 4vw, 65px);
}

@media (min-width: 992px) {
   #content {
      background-color: #fafafa;
      background-position: bottom center;
      background-size: 100% auto;
      background-repeat: no-repeat;
   }

   #contentCol {
      padding-top: 30px;
   }
}

#content>.row {
   row-gap: 40px;
}

/* #region -------------------------------------- tabs ------------------------------------------ */

#tabsLeft,
#tabsRight {
   display: grid;
   gap: 30px;
}

@media (min-width: 576px) and (max-width: 991px) {
   #tabsLeft {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (min-width: 992px) {

   #tabsLeft,
   #tabsRight {
      align-items: start;
      align-content: start;
   }

   #tabsLeft {
      padding-right: clamp(20px, 5vw, 65px);
   }

   #tabsRight {
      padding-left: clamp(20px, 5vw, 65px);
   }
}

.tab .clr-events-tab-h3 {
   font-size: 1rem !important;
   text-align: left !important;
}

.tab {
   max-width: 360px;
   margin: 32px auto 0 auto;
   position: relative;
   padding: 45px 20px 20px 20px;
   background: #ffffff;
   font-size: 0.9375rem;
   border-top: 4px solid #ce162b;
   box-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.1);
}

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

#content #tab2::before {
   background-image: url("../img/icon-news.png");
}

#content #tab3::before {
   background-image: url("../img/icon-info.png");
}

#content #tab4::before {
   background-image: url("../img/newspaper.png");
}

.tab :is(h1, h2, h3, h4, h5, h6, .tabHeadline) {
   color: #ce162b;
   font-size: 1.25rem;
   text-transform: uppercase;
   margin: 0 0 16px 0;
   text-align: center;
}

.tab .tab_link_title a {
   color: #ce162b;
   font-weight: 700;
}

.tab .tab_link_mandat a {
   color: inherit;
}

.tab .tab_link_mehr {
   font-size: 0;
   text-decoration: none;
}

.tab .tab_link_mehr a {
   text-decoration: none;
   padding: 4px 15px 3px 15px;
   display: inline-block;
   border-radius: 2px;
   font-size: 0.9375rem;
   background: #ce162b;
   color: #ffffff;
   font-weight: 700;
   text-decoration: none;

   border: 1px solid rgba(0, 0, 0, 0.15);
}

#tab3 li {
   background: none;
   margin: 0;
   padding-top: 0;
   padding-bottom: 0;
}

#tab3 li::before {
   top: 50%;
   transform: translateY(-50%);
   background: #000000;
}

:is(.tab .tab_link_mehr) a:is(:hover, :focus) {
   background: #af1123;
   color: #ffffff;
   text-decoration: none;
}

.tab .eventclndr-tab {
   margin-bottom: 22px;
}

.tab #clr-events-hide>p:first-child {
   margin-bottom: 15px;
}

.tab .tab_spacer {
   height: 15px;
}

.tab hr {
   height: 4px;
   opacity: 1;
   background: #ce162b;
   max-width: 100px;
   width: 100%;
   margin: 28px auto;
   display: block;
}

#tab3 img {
   margin: 0 -20px 25px -20px;
   display: block;
   width: calc(100% + 40px) !important;
   min-width: calc(100% + 40px) !important;
}

/* #endregion ----------------------------------- tabs ------------------------------------------ */

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

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

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

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

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

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

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

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

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

footer {
   color: #ffffff;
   background: #ce162b;
   font-size: 0.9375rem;
}

footer a,
footer a:is(:hover, :focus) {
   color: #ffffff;
}

footer :is(h1, h2, h3, h4, h5, h6, .footerHeadline) {
   color: #ffffff;
   font-size: 1.125rem;
   text-transform: uppercase;
   margin: 0;
   margin-bottom: 10px;
   hyphens: auto;
}

#footer {
   padding: 50px 0 20px 0;
}

@media (min-width: 992px) {
   #footer {
      padding: 40px 0 20px 0;
   }
}

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

@media (max-width: 575px) {
   #footer>.row>*+* {
      border-top: 1px solid #ffffff;
      padding-top: 30px;
   }
}

@media (min-width: 576px) and (max-width: 991px) {
   #footer>.row>*:nth-child(2n):not(:last-child) {
      border-left: 1px solid #ffffff;
   }
}


@media (min-width: 992px) {
   #footer>.row>* {
      border-left: none;
   }

   #footer>.row>*:not(:last-child) {
      border-right: 1px solid #ffffff;
   }
}

:is(.footerTab) a {
   text-decoration: underline;
}

.footerTab .linkliste a {
   text-decoration: none;
}

.footerTab .linkliste a:is(:hover, :focus) {
   text-decoration: underline;
}

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

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

#vernetzt {
   gap: 18px;
   text-align: right;
   font-size: 0.8125rem;
   color: #ffffff;
   line-height: 1.3;
   font-weight: 400;
   text-decoration: none;
}

#vernetzt span span {
   display: block;
}

#vernetzt b {
   font-weight: 700;
}

/* ----------------------------------------------- @5f footer ----------------------------------------------- */

#f5 #innerfooter {
   padding-top: 12px;
   padding-bottom: 12px;
   border-top: 1px solid #ffffff;
}

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

@media (max-width: 767px) {
   #innerfooter {
      padding-bottom: 15px;
   }
}

#innerfooter ul {
   padding: 0;
}

#innerfooter li {
   display: inline-block;
}

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

#innerfooter a:hover,
#innerfooter a:focus {
   color: #ffffff;
   text-decoration: underline;
}

#innerfooter li+li::before {
   content: "";
   margin: 0 6px;
}

@media (min-width: 992px) {
   #innerfooter li+li::before {
      margin: 0 15px;
   }
}

@media (max-width: 767px) {
   #innerfooter li {
      display: block;
      text-align: center;
      padding: 5px;
      margin: 0;
   }

   #innerfooter li+li::before {
      display: none;
   }
}

/* ------------------------------------------- contrast ----------------------------------------- */

.contrast_light_font :is(form[id^="search"], #search_input1, #footer2) {
   background-color: #000000 !important;
}

.contrast_dark_font :is(form[id^="search"], #search_input1, #scrollTopBtn) {
   background-color: #ffffff !important;
}

.contrast_dark_font [id^="search_input"]::placeholder {
   color: #000 !important;
}

:is(.contrast_light_font, .contrast_dark_font) form [id^="search_submit"] {
   background: #000000 url("../img/icon-lupe.png") center no-repeat !important;
}

:is(.contrast_light_font, .contrast_dark_font) #content {
   background: none !important;
}