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

body {
   font-family: "Work Sans", sans-serif;
   color: #252525;
   background: #ffffff;
   font-weight: 400;
   font-size: 1rem;
   /* 1rem = 16px */
   line-height: 1.5;
}

@media (min-width: 768px) {
   body {
      font-size: 1.15rem;
   }
}

@media (min-width: 992px) {
   body {
      font-size: 1.25rem;
   }
}

a {
   color: #d60000;
}

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

b,
strong {
   font-weight: 600;
}

.static {
   position: static;
}

/* ----------------------------------------------- topbar --------------------------------------------- */
#topbar {
   background-color: rgba(255, 255, 255, 0.9);
}
#topbar>.row {
   padding-top: 18px;
   padding-bottom: 18px;
}

@media (min-width: 992px) {
   #topbar>.row {
      padding-top: 27px;
      padding-bottom: 27px;
   }
}

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

#logo {
   display: inline-block;
}

#logo img {
   display: block;
}

@media (min-width: 992px) {
   #logo {
      position: absolute;
      top: 0px;
    z-index: 105;
   }

   #logo2 {
      left: -30px;
      position: relative;
   }
}

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

/* --------------------------------------------- quicklinks ---------------------------------------------- */

@media (min-width: 992px) {
   #quickLinks {
      margin-right: 35px;
   }
}

@media (min-width: 1200px) {
   #quickLinks {
      margin-right: 52px;
   }
}

#quickLinks a {
   font-size: 1rem;
   color: #252525;
   text-transform: uppercase;
   text-decoration: none;
   display: inline-block;
}

#quickLinks a[title*="Startseite"]::before,
#quickLinks a[title*="Start"]::before,
#quickLinks a[title*="Home"]::before {
   content: "\2302";
   font-family: "Arial", sans-serif;
   margin-right: 3px;
}

#quickLinks a:hover,
#quickLinks a:focus {
   color: #d60000;
}

#quickLinks li+li {
   margin-left: 20px;
}

@media (min-width: 1200px) {
   #quickLinks li+li {
      margin-left: 26px;
   }
}

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

@media (min-width: 992px) {
   #style {
      display: inline-block;
      flex-shrink: 0;
      line-height: 1;
   }

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

   #style button:hover,
   #style button:focus {
      color: #ae478a;
   }

   #style button+button {
      margin-left: 6px;
      padding-left: 6px;
      border-left: 1px solid #252525;
   }
}

/* ------------------------------------------- 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: #d60000;
      font-weight: 700;
      line-height: 1;
      text-transform: uppercase;
      text-align: center;
      -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
      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;
   }

   .navbar:focus-within #burgerButtonInner {
      opacity: 0;
   }

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

   .navbar:focus-within #burgerButtonInner2 {
      -webkit-transform: rotate(-45deg) translate(2px, -4px);
      transform: rotate(-45deg) translate(2px, -4px);
   }

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

   .navbar:focus-within #burgerButton:after {
      -webkit-transform: rotate(45deg) translate(-10px, -10px);
      transform: rotate(45deg) translate(-10px, -10px);
   }

   #burgerButtonInner2,
   #burgerButton:after {
      -webkit-transition: transform 200ms linear, opacity 200ms linear;
      -moz-transition: transform 200ms linear, opacity 200ms linear;
      -ms-transition: transform 200ms linear, opacity 200ms linear;
      -o-transition: transform 200ms linear, opacity 200ms linear;
      transition: transform 200ms linear, opacity 200ms linear;
   }

   .navbar:focus-within #burgerButtonInner2,
   .navbar:focus-within #burgerButton:after {
      -webkit-transition: transform 200ms linear, opacity 200ms linear;
      -moz-transition: transform 200ms linear, opacity 200ms linear;
      -ms-transition: transform 200ms linear, opacity 200ms linear;
      -o-transition: transform 200ms linear, opacity 200ms linear;
      transition: transform 200ms linear, opacity 200ms linear;
   }

   #burgerButtonInner2 {
      top: 26px;
   }

   #burgerButton:after {
      top: 36px;
   }

   #burgerButtonInner2,
   #burgerButton:after {
      content: "";
      display: block;
      position: absolute;
      background: #252525;
      border-radius: 2px;
      width: 38px;
      height: 3px;
      left: 5px;
      font-size: 0;
   }

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

   .navbar-collapse {
      padding: 30px 0;
      top: 0;
      background: #252525;
      position: fixed;
      left: -100%;
      bottom: 0;
      z-index: 100;
      height: auto !important;
      -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
      box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
      opacity: 0;
      pointer-events: none;
      overflow-y: auto;
      -webkit-transition: left 300ms linear, opacity 300ms linear;
      -moz-transition: left 300ms linear, opacity 300ms linear;
      -ms-transition: left 300ms linear, opacity 300ms linear;
      -o-transition: left 300ms linear, opacity 300ms linear;
      transition: left 300ms linear, opacity 300ms linear;
   }

   .navbar-collapse[aria-expanded="true"],
   .navbar-collapse.in {
      left: 0;
      opacity: 1;
      pointer-events: auto;
      width: calc(100% - 90px);
   }

   .navbar-header {
      position: fixed;
      top: 15px;
      right: 15px;
      z-index: 101;
   }

   .navbar-toggle::before {
      content: "";
      opacity: 0;
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: 0;
      z-index: -1;
      display: block;
      background-color: rgba(0, 0, 0, 0.5);
      -webkit-transition: width 300ms linear, opacity 300ms linear;
      -moz-transition: width 300ms linear, opacity 300ms linear;
      -ms-transition: width 300ms linear, opacity 300ms linear;
      -o-transition: width 300ms linear, opacity 300ms linear;
      transition: width 300ms linear, opacity 300ms linear;
   }

   .navbar-toggle[aria-expanded="true"]::before {
      opacity: 1;
      width: 90px;
   }
}

/* menu desktop */

@media (min-width: 992px) {
   #bgHeader {
      position: absolute;
      top: 0;
      z-index: 55;
      width: 100%;
   }
   #menu {
      background: #252525;
      position: relative;
   }

   nav.horizontally .navbar-nav {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-pack: justify !important;
      -ms-flex-pack: justify !important;
      justify-content: space-between !important;
      -webkit-box-align: center !important;
      -ms-flex-align: center !important;
      align-items: center !important;
   }

   nav.horizontally li[class*="toplevel"]>ul {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      z-index: 1000;
      margin: 0;
      padding: 10px 25px;
      padding-top: 20px;
      padding-bottom: 20px;
      overflow-y: auto;
      max-height: 60vh;
      overflow: hidden;
      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;
   }

   nav.horizontally li[class*="toplevel"]>ul::after {
      content: "";
      display: block;
      position: absolute;
      width: 100vw;
      z-index: -1;
      -moz-transform: translateX(-50%);
      -webkit-transform: translateX(-50%);
      -o-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
      transform: translateX(-50%);
      left: 50%;
      top: 0;
      bottom: 0;
      background: rgba(255, 255, 255, 0.9);
      -webkit-box-shadow: 0 8px 8px 0 rgba(84, 73, 73, 0.1);
      box-shadow: 0 8px 8px 0 rgba(84, 73, 73, 0.1);
   }

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

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

   .navbar-default .navbar-nav li[class*="toplevel"]:hover>ul {
      pointer-events: auto !important;
      opacity: 1 !important;
      top: 100%;
      z-index: 1003;
   }

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

   .nav li[class*="toplevel"].open>.dropdown-menu {
      pointer-events: none !important;
      opacity: 0 !important;
   }

   #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(1170px / 2);
   }
}

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

/* ---------------------------------------------- toplevel ---------------------------------------------- */

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

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

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

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

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

/* -------------------------------------------- toplevel-over ------------------------------------------- */

.navbar-default li[class*="toplevel"]:hover>a:after,
.navbar-default li[class*="toplevel"]>a:hover::after,
.navbar-default li[class*="toplevel"]>a:focus::after,
.navbar-default li[class*="toplevel"].open>a::after,
.navbar-default li[class*="toplevel"].open>a:hover::after,
.navbar-default li[class*="toplevel"].open>a:focus::after,
.navbar-default li[class*="toplevel"][class$="_over"]>a::after,
.navbar-default li[class*="toplevel"][class$="_over"]>a:hover::after,
.navbar-default li[class*="toplevel"][class$="_over"]>a:focus::after {
   width: 100%;
}

/* -------------------------------------- secondlevel + thirdlevel dropdown-box -------------------------------------- */

@media (max-width: 991px) {

   .navbar-default li[class*="toplevel"]>.dropdown-menu,
   .navbar-default li[class*="toplevel"]>.dropdown-menu>li>.dropdown-menu {
      padding: 10px;
      background: rgba(248, 229, 229, 0.8);
   }
}

@media (min-width: 992px) {
   .navbar-default li[class*="toplevel"]>.dropdown-menu>li>.dropdown-menu {
      display: block;
   }
}

/* --------------------------------------------- secondlevel + thirdlevel -------------------------------------------- */

.navbar-default li[class*="secondlevel"]>a,
.navbar-default li[class*="thirdlevel"]>a {
   color: #252525;
   text-align: left;
   padding: 8px 35px 8px 15px;
   font-size: 1rem;
   line-height: 1.2;
   text-decoration: none;
}

.navbar-default li[class*="secondlevel"]>a {
   font-weight: 700;
   text-transform: uppercase;
}

.navbar-default li[class*="thirdlevel"]>a {
   font-weight: 400;
}

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

   .navbar-default li[class*="thirdlevel"]>a {
      padding: 5px 0 5px 10px;
   }
}

/* ------------------------------------------ secondlevel + thirdlevel over ------------------------------------------ */

.navbar-nav li[class*="secondlevel"]:hover>a,
.navbar-nav li[class*="secondlevel"]>a:hover,
.navbar-nav li[class*="secondlevel"]>a:focus,
.navbar-nav li[class*="secondlevel"].open>a,
.navbar-nav li[class*="secondlevel"].open>a:hover,
.navbar-nav li[class*="secondlevel"].open>a:focus,
.navbar-nav li[class*="secondlevel"][class$="_over"]>a,
.navbar-nav li[class*="secondlevel"][class$="_over"]>a:hover,
.navbar-nav li[class*="secondlevel"][class$="_over"]>a:focus,
.navbar-nav li[class*="thirdlevel"]>a:hover,
.navbar-nav li[class*="thirdlevel"]>a:focus,
.navbar-nav li[class*="thirdlevel"].open>a,
.navbar-nav li[class*="thirdlevel"].open>a:hover,
.navbar-nav li[class*="thirdlevel"].open>a:focus,
.navbar-nav li[class*="thirdlevel"][class$="_over"]>a,
.navbar-nav li[class*="thirdlevel"][class$="_over"]>a:hover,
.navbar-nav li[class*="thirdlevel"][class$="_over"]>a:focus {
   color: #d60000;
}

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

#headerpic {
   margin: 0 auto;
   position: relative;
   width: 100%;
   overflow: hidden;
   border-bottom: 6px solid #dd374c;
}

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

@media (min-width: 576px) {
   #slider {
      max-height: 580px;
   }

   body.index #slider {
      max-height: 760px;
   }
}

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

.slider-mask {
   display: none;
}

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

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

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

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

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

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

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

#slider+.nivo-controlNav {
   pointer-events: none;
}

#slider+.nivo-controlNav a {
   pointer-events: auto;
}

.theme-default .nivo-directionNav a.nivo-nextNav {
   -webkit-transform: scale(-1);
   transform: scaleX(-1);
}

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

@media (min-width: 576px) {
   #slider+.nivo-controlNav {
      bottom: 65px;
   }
}

@media (min-width: 992px) {
   #slider+.nivo-controlNav {
      bottom: 78px;
   }
}

#headerpic .theme-default .nivo-controlNav a {
   background: transparent;
   border-radius: 50%;
   border: 1px solid #ffffff;
   width: 12px;
   height: 12px;
}

#headerpic .theme-default .nivo-controlNav a.active {
   background-color: #ffffff;
}

#headerpic .theme-default .nivo-controlNav a+a {
   margin-left: 8px;
}

/* ----------------------------------------------- search ----------------------------------------------- */

@media (min-width: 576px) {
   #searchArea {
      position: relative;
      z-index: 54;
      margin-top: 20px;
   }
}

@media (min-width: 992px) {
   body.index #searchArea::after {
      content: "";
      position: absolute;
      z-index: -1;
      display: block;
      top: 50px;
      left: 0;
      right: 50%;
      bottom: -1px;
      background: #f4f4f4;
   }
}

@media (max-width: 991px) {
   body:not(.index) #searchArea {
      display: none;
   }
}

#searchBox {
   background: url('../img/flame-rot.png') right 100px bottom no-repeat, #252525;
   padding: 25px 0;
   position: relative;
}

@media (min-width: 576px) {
   #searchBox {
      padding-left: 25px;
      padding-right: 25px;
   }
}

@media (min-width: 992px) {
   #searchBox {
      padding-left: 40px;
      padding-right: 40px;
   }
}

#searchBox::after {
   content: "";
   position: absolute;
   display: block;
   z-index: -1;
   left: 60px;
   right: 60px;
   top: 50%;
   bottom: 0;
   -webkit-box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.3);
   box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.3);
}

form[id*="search"] {
   display: block;
   position: relative;
}

@media (min-width: 576px) {
   form[id*="search"] {
      height: 50px;
      width: 100%;
   }
}

@media (max-width: 991px) {
   form[id*="search"] {
      margin-bottom: 15px;
   }

   nav form[id*="search"] {
      margin-top: 20px;
      margin-left: 15px;
      margin-right: 15px;
   }
}

@media (min-width: 992px) {
   form[id*="search"] {
      max-width: 370px;
   }
}

input[id*="search_input"] {
   color: #252525;
   background-color: #ffffff;
   border: 1px solid #d9d9d9;
   font-size: 16px;
   font-style: normal;
   padding: 0;
   line-height: 50px;
   padding-left: 10px;
   padding-right: 50px;
   height: 50px;
   width: 100%;
}

input[id*="search_submit"] {
   height: 100%;
   width: 50px;
   background: url("../img/lupe-icon.png") center / 18px 18px no-repeat;
   padding: 0;
   cursor: pointer;
   line-height: 50px;
   border: none;
   position: absolute;
   bottom: 0;
   right: 0;
   font-size: 0;
   -webkit-transition: background 200ms linear;
   -moz-transition: background 200ms linear;
   -ms-transition: background 200ms linear;
   -o-transition: background 200ms linear;
   transition: background 200ms linear;
}

input[id*="search_submit"]:hover,
input[id*="search_submit"]:focus {
   background-size: 24px 24px;
   background-color: #f7f0ed;
}

input[id*="search_input"]:-ms-input-placeholder {
   color: #252525;
   text-transform: uppercase;
   opacity: 1;
}

input[id*="search_input"]::-ms-input-placeholder {
   color: #252525;
   text-transform: uppercase;
   opacity: 1;
}

input[id*="search_input"]::placeholder {
   color: #252525;
   text-transform: uppercase;
   opacity: 1;
}

@media (min-width: 768px) {
   .importantLinks {
      font-size: 1.125rem;
   }
}

.importantLinks {
   color: #ffffff;
}

.importantLinks a {
   font-size: 0.8rem;
   border-radius: 2px;
   display: inline-block;
   background: #f4f4f4;
   color: #252525;
   padding: 2px 6px;
   color: 252525;
}

@media (min-width: 768px) {
   .importantLinks a {
      font-size: 1rem;
   }
}

.importantLinks a+a {
   margin-left: 4px;
}


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

#content {
   text-align: left;
   padding-top: 40px;
   padding-bottom: 40px;
   position: relative;
}

@media (min-width: 768px) {
   #content {
      padding-top: 60px;
      padding-bottom: 60px;
   }
}

@media (min-width: 992px) {
   #content {
      padding-top: 70px;
      padding-bottom: 100px;
   }
}


#content::after {
   content: "";
   position: absolute;
   z-index: -1;
   display: block;
   top: 0;
   left: 0;
   right: 0;
   bottom: 50px;
   background: url('../img/flame.png') bottom left 17% no-repeat, #f4f4f4;
   border-bottom-right-radius: 500px;
   height: 560px;
}

@media (min-width: 992px) {
   #content::after {
      right: 50%;
   }
}
/* ------------------------------------------ h1 - h6, newslink ----------------------------------------- */

.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
h6,
.h6,
h5,
.h5,
h4,
.h4,
h3,
.h3,
h2,
.h2,
h1,
.h1 {
   font-weight: 700;
   line-height: 1;
   font-family: "Work Sans", serif;
}

h1,
h3,
h5 {
   color: #252525;
}

h2,
h4,
h6 {
   color: #252525;
}

h1,
.h1,
.legacy_h1 {
   font-size: 1.7rem;
}

@media (min-width: 576px) {

   h1,
   .h1,
   .legacy_h1 {
      font-size: 2.2rem;
   }
}

@media (min-width: 768px) {

   h1,
   .h1,
   .legacy_h1 {
      font-size: 2.7rem;
   }
}

@media (min-width: 992px) {

   body.index h1,
   body.index .h1,
   body.index .legacy_h1 {
      font-size: 3rem;
   }
}

@media (min-width: 1200px) {

   body.index h1,
   body.index .h1,
   body.index .legacy_h1 {
      font-size: 3.5rem;
   }
}

h2,
.h2,
.legacy_h2 {
   font-size: 1.7rem;
}

@media (min-width: 768px) {

   h2,
   .h2,
   .legacy_h2 {
      font-size: 2.2rem;
   }

   body.index h2,
   body.index .h2,
   body.index .legacy_h2 {
      font-size: 2.5rem;
   }
}

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

@media (min-width: 768px) {

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

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

@media (min-width: 768px) {

   h4,
   .h4,
   .h4link a:link,
   .h4link a:hover,
   .h4link a:focus,
   .h4link a:visited,
   .legacy_h4 {
      font-size: 1.8rem;
   }
}

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

@media (min-width: 768px) {

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

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

@media (min-width: 768px) {

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




/* ----------------------------------------------- news  -------------------------------------------- */

#news .tabHeadline {
    color: #252525;
    margin: 0 0 20px 0;
    font-weight: 700;
    font-size: clamp(1.5625rem, 3vw, 2.1875rem);
}

@media (min-width: 768px) {
    #news .tabHeadline {
        margin: 0 0 25px 0;
    }
}

@media (min-width: 1200px) {
    #news .tabHeadline {
        -webkit-hyphens: manual;
        -moz-hyphens: manual;
        -ms-hyphens: manual;
        hyphens: manual;
    }
}

#news .tabHeadline::after {
    display: none;
}

#news .tab_link_entry {
    font-size: 1rem;
    position: relative;
    width: 100%;
}

#news .tab_link_title a {
    line-height: 1.2;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
}

@media (min-width: 576px) {
    #news .tab_link_entries {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
}

#news {
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

#news .tab a{
    color: #fff;
    text-decoration: underline;
}

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

#news .tab_link_entry {
    background: #ffffff;
    border-radius: 3px;
    padding: 160px 30px 30px 30px;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

@media (min-width: 576px) and (max-width: 767px) {
    #news .tab_link_entry {
        width: calc(50% - 15px);
    }
    #news .tab_link_entry:nth-child(6n+1) {
        margin-right: 15px;
    }
    #news .tab_link_entry:nth-child(6n+2) {
        margin-left: 15px;
    }
}

@media (min-width: 768px) {
    #news .tab_link_entry {
        width: calc(33.33% - 20px);
        margin-bottom: 30px;
    }
    #news .tab_link_entry+.tab_link_entry {
        margin-left: 30px;
    }

    #news .tab_link_entry:nth-child(4) {
      margin-left: 0px !important;
  }
}

@media (min-width: 576px) {
    #news .tab_link_entry:nth-child(2) {
        margin-top: 0;
    }
}

@media (max-width: 991px) {
    #news .tab_link {
        margin-top: 30px;
    }
}

#news .tab_preview_picture {
    background: #ffffff;
}

#news .tab_link_title a::before,
#news .tab_link_entry .tab_preview_picture {
    position: absolute;
    display: block;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 120px;
    overflow: hidden;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

#news .tab_link_title a::before {
    content: "";
    background: #666666 url("../img/placeholder-news.jpg") center / cover no-repeat;
}

#news .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;
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

#news .tab_date {
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    left: -1px;
    top: 105px;
    z-index: 1;
    display: inline-block;
    padding: 6px 20px;
    background: #d60000;
    color: #fff;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

#news .tab_link_title a {
    color: #d60000;
}

.tab_link_entries+div,
.tab_link_entries .tab_spacer,
.tab_link_entry>div:nth-last-child(2) {
    display: none;
}

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

#news .buttonStyle a {
    -moz-transition: background 300ms linear, color 300ms linear, border 300ms linear;
    -ms-transition: background 300ms linear, color 300ms linear, border 300ms linear;
    -o-transition: background 300ms linear, color 300ms linear, border 300ms linear;
    -webkit-transition: background 300ms linear, color 300ms linear, border 300ms linear;
    background: #d60000;
    border-radius: 3px;
    color: #ffffff;
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 5px 20px;
    text-decoration: none;
    margin: 20px 0;
    transition: background 300ms linear, color 300ms linear, border 300ms linear;
}

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

#news .buttonStyle a:hover,
#news .buttonStyle a:focus {
    background: #9e0000;
    color: #fff;
}

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

#bg-right .tab {
   background: #fff;
   border: 1px solid #d9d9d9;
   padding: 30px;
   margin-bottom: 30px;
   font-size: 1rem;
}

#bg-right .tab .tabHeadline {
   font-size: clamp(1.125rem, 3vw, 1.5rem);
}

#bg-right .tab .tab_link_title {
   font-weight: 700;
}

#bg-right .tab .tab_link_mehr a {
   background: #d60000;
   color: #fff;
   padding: 8px;
}
/* ------------------------------------------------ facts ----------------------------------------------- */

#facts {
   padding-top: 56px;
   padding-bottom: 56px;
   background: #9e0000;
   background-size: cover;
   background-attachment: fixed;
   color: #fff;
}

@media (max-width: 767px) {
   #facts>.row>div+div {
      margin-top: 30px;
   }
}

@media (min-width: 576px) {
   #facts>.row>div+div:not(:last-child) {
      margin-top: 0;
   }
}

#facts a {
   color: #ffffff;
}

#facts b,
#facts strong {
   color: #ffffff;
   font-size: 2.5rem;
   display: block;
   font-weight: 700;
   line-height: 1.1;
}

@media (min-width: 768px) {

   #facts b,
   #facts strong {
      font-size: 3.5rem;
   }
}

#facts>.row>div:last-child a {
   font-size: 1.8125rem;
   font-weight: 700;
   color: #ffffff;
   line-height: 1.2;
   text-decoration: none;
}

#facts>.row>div:last-child a::after {
   content: "\2192";
   display: block;
   font-weight: 400;
   color: #ffffff;
   font-size: 3.5rem;
}

#facts>.row>div:last-child a:hover,
#facts>.row>div:last-child a:focus {
   color: #ffffff;
}

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

address {
   font-style: normal;
}

#footer {
   background: #f4f4f4;
   padding-top: 40px;
   padding-bottom: 40px;
   color: #252525;
   font-size: 1rem;
}

@media (max-width: 991px) {
   #footer>.row>div+div::before {
      background: rgba(135, 119, 119, 0.15);
      content: " ";
      height: 1px;
      width: 100%;
      display: block;
      margin: 25px 0;
   }
}

@media (min-width: 768px) {
   #footer {
      padding-top: 60px;
      padding-bottom: 60px;
   }

   #footer>.row>div+div:nth-child(2):before {
      display: none;
   }

   #footer>.row>div+div::before {
      margin: 35px 0;
   }
}

@media (min-width: 992px) {
   #footer {
      padding-top: 90px;
      padding-bottom: 90px;
   }
}

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

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

#footer a:hover,
#footer a:focus {
   color: #9e0000;
}

#footer .footerHeadline {
   color: #252525;
   font-weight: 700;
   margin: 0 0 15px 0;
   font-size: 1.25rem;
   text-transform: uppercase;
}

#footer .footerHeadline.gap {
   margin-top: 30px;
}

@media (min-width: 992px) {
   #footer .footerHeadline.gap {
      margin-top: 40px;
   }
}

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

.shadow {
   position: relative;
   display: block;
   z-index: 1;
   margin-left: auto;
   margin-right: auto;
}

.shadow::after {
   content: "";
   position: absolute;
   display: block;
   z-index: -1;
   left: 60px;
   right: 60px;
   top: 80%;
   bottom: 2px;
   -webkit-box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.3);
   box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.3);
}

.shadowContainer {
   width: 100%;
}

.shadowContainer>.shadow {
   width: auto;
   display: inline-block;
}

@media (max-width: 991px) {
   .maps{
      margin-top: 30px;
      margin-bottom: 30px;
   }
}
/* --------------------------------------------- counter -------------------------------------------- */

#counter {
   width: 100%;
   max-width: 260px;
   text-align: justify;
   text-align-last: justify;
   margin-left: auto;
   margin-right: auto;
}

@media (min-width: 768px) {
   #counter {
      font-size: 1.15rem;
   }
}

@media (min-width: 992px) {
   #counter {
      margin-right: 0;
      font-size: 1.25rem;
   }
}

#counter span {
   padding-left: 26px;
   position: relative;
   font-weight: 700;
}

#counter span::before {
   content: "";
   display: block;
   position: absolute;
   left: 0;
   top: 50%;
   margin-top: -8px;
   width: 19px;
   height: 18px;
   background: url("../img/besucher-icon.png") center no-repeat;
}

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

#footer #vernetzt {
   text-align: right;
   color: #252525;
   line-height: 1.3;
   margin: 30px auto 0 auto;
   font-weight: 400;
   text-decoration: none;
   font-size: 0.875rem;
}

@media (min-width: 992px) {
   #footer #vernetzt {
      float: right;
      margin-right: 0;
   }
}

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

#vernetzt span {
   color: #252525;
}

#vernetzt span span {
   display: block;
}

#vernetzt img {
   margin-left: 12px;
}

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

#innerfooter {
   color: #252525;
   font-size: 1rem;
   padding-top: 30px;
   padding-bottom: 30px;
}

@media (min-width: 768px) {
   #innerfooter {
      padding-top: 40px;
      padding-bottom: 40px;
   }
}

.footer_list ul {
   padding: 0;
}

.footer_list li {
   display: inline-block;
}

#innerfooter p {
   display: inline-block;
}

#innerfooter p {
   flex-grow: 1;
}

#innerfooter .tabContent {
   text-transform: uppercase;
}

#innerfooter a {
   color: #252525;
   text-decoration: none;
   display: inline-block;
   font-weight: 400;
   text-transform: uppercase;
}

#innerfooter a:hover,
#innerfooter a:focus {
   color: #9e0000;
}

#innerfooter li+li {
   margin-left: 15px;
}

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