@import url("https://fonts.verwaltungsportal.de/import/?family=Work+Sans:300,400,600,700,300i,400i,600i,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Lora:600,600i,700,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Comic+Neue:700");

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

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

a {
   color: #a91a16;
}

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

b,
strong {
   font-weight: 600;
}

.static {
   position: static;
}

.newsticker-position {
   margin-bottom: 0;
}

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

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

@media (min-width: 992px) {
   #topbar {
      padding: 27px 0;
   }
}

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

#logo {
   display: inline-block;
}

#logoText {
   font-family: 'Comic Neue', cursive;
   color: #665a5a;
   text-decoration: none;
   font-weight: 700;
   font-size: clamp(1.25rem, 3vw, 1.5625rem);
}

#logoText b,
#logoText strong {
   color: #e60000;
}

#logo img {
   display: block;
}

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

/* ------------------------------------------- styler ------------------------------------------- */

@media (min-width: 992px) {
   #style {
      flex-shrink: 0;
      line-height: 1;
      margin-left: clamp(20px, 2vw, 40px);
      padding-top: 2px;
   }

   #style h2 {
      font-size: 1rem;
      font-weight: 400;
      color: inherit;
      margin: 0 5px 0 0;
      width: auto;
      font-family: 'Work Sans', sans-serif;
      line-height: inherit;
   }

   #style button {
      color: inherit;
      background: transparent;
      border: none;
      padding: 0 8px;
      font-size: 1rem;
      display: inline-block;
   }

   #style button:is(:hover, :focus) {
      color: #a91a16;
   }

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
   #burgerButton {
      font-size: 13px;
      display: block;
      width: 48px;
      height: 48px;
      border-radius: 2px;
      padding: 8px 0 0 0 !important;
      cursor: pointer;
      background: #ffffff;
      border: none !important;
      border-radius: 4px;
      color: #a91a16;
      font-weight: 700;
      line-height: 1;
      text-transform: uppercase;
      text-align: center;
      box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
   }

   #burgerButtonInner {
      margin-bottom: 26px;
      display: inline-block;
   }

   #burgerButton[aria-expanded="true"] #burgerButtonInner {
      opacity: 0;
   }

   #burgerButton[aria-expanded="true"]::before {
      transform: rotate(-45deg) translate(2px, -4px);
   }

   #burgerButton[aria-expanded="true"]::after {
      transform: rotate(45deg) translate(-10px, -10px);
   }

   #burgerButton::before {
      top: 26px;
   }

   #burgerButton::after {
      top: 36px;
   }

   #burgerButton::before,
   #burgerButton::after {
      content: "";
      display: block;
      position: absolute;
      background: #a91a16;
      border-radius: 2px;
      width: 38px;
      height: 3px;
      left: 5px;
      font-size: 0;
      transition: transform 200ms linear, opacity 200ms linear;
   }

   .navbar-nav {
      margin: 20px 0;
   }

   .navbar-collapse {
      width: calc(100% - 90px);
      max-width: 300px;
      top: 0;
      background: #a91a16;
      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: 22px;
      right: 15px;
      z-index: 101;
   }

   .dropdown-toggle-button-wrapper {
      top: 9px;
   }

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

/* menu desktop */

@media (min-width: 992px) {
   nav.horizontally {
      background: #a91a16;
   }

   .horizontally>.row {
      width: 100% !important;
      max-width: 1440px !important;
   }

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

   nav.horizontally li[class*="toplevel"]>ul {
      position: absolute;
      top: auto;
      right: 0;
      left: 50% !important;
      transform: translate(-50%);
      width: 100%;
      z-index: 1000;
      margin: 0;
      padding: 20px 25px;
      max-height: 60vh;
      overflow: visible;
      display: block !important;
      pointer-events: none;
      opacity: 0;
      visibility: hidden;
      transition: opacity 300ms linear;
      background: rgba(233, 228, 222, 0.96);
   }

   nav.horizontally li[class*="toplevel"]>ul:not(.mCustomScrollbar),
   nav.horizontally li[class*="toplevel"]>ul .mCSB_container {
      column-count: 4;
      column-gap: 30px;
      max-width: 992px;
      margin: 0 auto;
      padding: 0 15px;
      height: auto;
   }

   nav.horizontally li[class*="secondlevel"] {
      float: none;
      page-break-inside: avoid;
      break-inside: avoid;
      display: table !important;
   }

   nav.horizontally .navbar-nav>li:is(.open, :hover)>ul,
   nav.horizontally .navbar-nav>li.open:focus-within>ul {
      pointer-events: auto !important;
      opacity: 1 !important;
      visibility: visible;
      top: 100%;
   }

   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;
   }

   #mCSB_1_scrollbar_vertical {
      left: 50%;
      margin-left: calc(962px / 2);
   }
}

@media (min-width: 1200px) {

   nav.horizontally li[class*="toplevel"]>ul:not(.mCustomScrollbar),
   nav.horizontally li[class*="toplevel"]>ul .mCSB_container {
      max-width: 1200px;
      padding-top: 25px;
      padding-bottom: 45px;
   }

   #mCSB_1_scrollbar_vertical {
      margin-left: calc(1140px / 2);
   }
}

nav.horizontally li:is([class$="_end"], [class$="_start"]) {
   display: none;
}

/* toplevel */

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

nav.horizontally .navbar-nav li:nth-of-type(4) a[class*="toplevel"] {
   color: #ddcc73;
}

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

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

@media (min-width: 992px) {
   nav.horizontally .navbar-nav a[class*="toplevel"] {
      padding: 20px 2px;
   }
}

.navbar-default .navbar-nav li[class*="toplevel"]>a::after {
   content: "";
   display: block;
   height: 2px;
   width: 0;
   position: absolute;
   left: 50%;
   transform: translateX(-50%);
   bottom: 0;
   background: #ffffff;
   transition: width 200ms linear;
}

/* toplevel-over */

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

/* secondlevel + thirdlevel dropdown-box */

@media (max-width: 991px) {
   nav.horizontally [class*="toplevel"] ul {
      padding: 10px;
      background: rgba(255, 255, 255, 0.8);
   }
}

@media (min-width: 992px) {
   nav.horizontally [class*="secondlevel"]>ul {
      display: block;
   }
}

/* secondlevel + thirdlevel */

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

nav.horizontally a[class*="secondlevel"] {
   font-weight: 700;
   text-transform: uppercase;
}

nav.horizontally a[class*="thirdlevel"] {
   font-weight: 400;
}

@media (min-width: 992px) {
   nav.horizontally a[class*="secondlevel"] {
      padding: 20px 0 2px;
   }

   nav.horizontally a[class*="thirdlevel"] {
      padding: 5px 0 5px 20px;
   }
}

/* 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: #a91a16;
}

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

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

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

@media (min-width: 576px) {
   body.index #slider {
      max-height: clamp(400px, 62vw, 630px);
   }
}

#bannerOverlay {
   padding: 25px 0;
}

#bannerOverlay :is(h1, h2, h3, h4, h5, h6) :is(b, strong) {
   font-weight: 700;
   font-size: clamp(30px, 4vw, 60px);
   display: block;
}

#bannerOverlay {
   color: #43201c;
   font-weight: 700;
   font-family: 'Lora', serif;
   font-size: 20px;
}

#bannerOverlay :is(h1, h2, h3, h4, h5, h6, a) {
   color: #43201c;
}

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

#bannerOverlay a {
   text-decoration: underline;
}

@media (min-width: 992px) {
   #bannerOverlay {
      padding-top: 0;
      position: absolute;
      left: 350px;
      right: 0;
      bottom: 0;
      z-index: 50;
      background-color: rgba(255, 255, 255, 0.85);
      width: 570px;
      height: 530px;
      clip-path: polygon(65% 0, 100% 40%, 85% 100%, 60% 100%, 30% 100%, 0% 70%, 13% 14%);
   }

   #bannerOverlay .bannerTab {
      display: flex;
      align-content: center;
      align-items: center;
      padding: 100px 100px 40px 60px;
   }
}

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

@media (min-width: 992px) {
   #headerpic {
      background: #ffffff;
   }
}

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

.slider-mask {
   display: none;
}

@media (min-width: 576px) {
   .slider-mask {
      display: block;
      background: linear-gradient(to top, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 60%);
   }
}

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

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

#headerpic .nivo-directionNav {
   height: 40px;
   pointer-events: none;
   width: 100%;
   position: absolute;
   z-index: 7;
   left: 50%;
   bottom: 80px;
   transform: translateX(-50%);
}

@media (min-width: 992px) {
   #headerpic .nivo-directionNav {
      max-width: 992px;
      bottom: 100px;
   }
}

@media (min-width: 1200px) {
   #headerpic .nivo-directionNav {
      max-width: 1200px;
   }
}

#headerpic .nivo-directionNav a {
   pointer-events: auto;
   background: #a91a16 url('../img/banner-arrows.png') top 10px center / 18px auto no-repeat;
   width: 40px;
   height: 40px;
}

#headerpic .nivo-directionNav a.nivo-nextNav {
   transform: scaleX(-1)
}

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

#search {
   background: #fff;
   display: flex;
   width: 100%;
   border: 1px solid #b1b1b1;
   margin-top: 10px;
}

@media (min-width: 992px) {
   #search {
      max-width: 370px;
      margin-top: 0;
   }
}

#search_input {
   background: transparent;
   color: #484848;
   font-size: 1rem;
   font-style: normal;
   padding: 13px 10px;
   border: 0;
   width: 100%;
}

#search_submit {
   width: 50px;
   flex-shrink: 0;
   background: url('../img/suche-icon.png') center / 18px auto no-repeat;
   padding: 0;
   cursor: pointer;
   border: none;
   font-size: 0;
   transition: background 200ms linear;
}

#search_input::placeholder {
   color: #484848 !important;
   opacity: 1 !important;
   font-style: normal !important;
   text-transform: uppercase;
}


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

/* ----------------------------------------------- @7nw news -------------------------------------------- */
#nw7 {
   padding-top: 30px;
}

#nw7 > .row > div {
   margin-bottom: 30px;
}

#nw7 .tab {
    color: #ffffff;
    min-height: 100%;
    height: 100%;
    background-color: #a91a16; 
}

#nw7 .tab2 {
   color: #ffffff;
   min-height: 100%;
   height: 100%;
   background-color: #43201c;
}

@media (min-width: 992px) {
    #nw7 .tab {
        display: grid;
        grid-template-columns: 1fr 2fr;
    }
}

#nw7 .tabHeadline {
    margin: 0;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.5rem;
    position: relative;
    background-color: #a91a16;
}

#nw7 .tab2 .tabHeadline {
   margin: 0;
   padding: 30px;
   text-align: center;
   color: #ffffff;
   font-weight: 600;
   font-size: 1.5rem;
   position: relative;
   background-color: #43201c;
}

@media (min-width: 992px) {
    #nw7 .tabHeadline {
        border-right: 1px solid #ffffff;
        height: 100%;
        min-height: 100%;
    }
}

#nw7 .tabHeadline::before {
    content: "";
    display: block;
    height: 91px;
    width: 100%;
    margin-bottom: 14px;
    background: url('../img/megaphone.png') center no-repeat;
}
#nw7 .tab2 .tabHeadline::before {
   content: "";
   display: block;
   height: 91px;
   width: 100%;
   margin-bottom: 14px;
   background: url('../img/house.png') center no-repeat;
}


#nw7 .tabContent {
    padding: 25px 30px 20px 30px;
    line-height: 1.3;
    font-size: 1.125rem;
}

#nw7 .tabContent a {
   color: #ffffff;
   text-decoration: underline;
}

#nw7 .tab_link_title a {
    color: #ffffff;
    font-weight: 600;
}

#nw7 .tab_link_mandat a {
    color: #ffffff;
    font-style: italic;
}

#nw7 .tab_link_date {
    font-style: italic;
}

#nw7 .tab_spacer {
    height: 20px;
}

/* ----------------------------------------- @7nw mehr-button ---------------------------------------- */

#nw7 .tab_link_mehr {
    color: transparent;
    font-size: 0;
    text-align: center;
    position: relative;
}

@media (min-width: 768px) {
    #nw7 .tab_link_mehr {
        text-align: right;
    }
}

#nw7 .tab_link_mehr a {
    text-decoration: none;
    display: inline-block;
    position: relative;
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    padding: 7px 20px;
    background: #43201c;
}

#nw7 .tab_link_mehr a:hover,
#nw7 .tab_link_mehr a:focus {
    color: #43201c;
    background: #fff;
}

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

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

.index #content {
   padding-top: 30px;
}

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

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

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

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

h3,
.h3,
.legacy_h3 {
   font-size: clamp(1.875rem, 4vw, 2rem);
}

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

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

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

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

#footer {
   color: #ffffff;
   background: #67342d;
   padding: 30px 0;
   font-size: 1rem;
   background-position: center;
   background-size: cover;
   background-repeat: no-repeat;
}

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

@media (min-width: 768px) {
   #footer>.row>*:nth-child(2) {
      border-top: none;
      margin-top: 0;
      padding-top: 0;
   }
}

#footer>.row>*:last-child>*+* {
   margin-top: 30px;
}

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

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

#footer .footerHeadline {
   margin: 0 0 15px 0;
   font-size: 1.5rem;
   color: #ffffff;
   text-transform: uppercase;
}

#footer .footerHeadline.gap {
   margin-top: clamp(30px, 4vw, 40px);
}

#footer iframe,
#footer .iframe-wrapper-manual-enabling {
   width: 100% !important;
   display: block !important;
   min-width: 100% !important;
}

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

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

#vernetzt b {
   color: #ffffff;
   font-weight: 600;
}

#vernetzt span span {
   display: block;
}

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

#innerfooter {
   font-size: 1rem;
   padding: 15px 0;
}

#innerfooter .name {
   color: #a91a16;
   font-family: 'Lora', serif;
   font-weight: 700;
}

#innerfooter>.row {
   row-gap: 20px;
}

.footer_list ul {
   padding: 0;
   text-transform: uppercase;
}

.footer_list :is(li, p) {
   display: inline-block;
}

#innerfooter a {
   text-decoration: none;
   display: inline-block;
   font-weight: 400;
   padding: 10px 15px 8px 15px;
   text-transform: uppercase;
}

#innerfooter ul a {
   color: inherit;
}

#innerfooter a:is(:hover, :focus) {
   color: #ffffff;
   background-color: #a91a16;
}