@import url("https://fonts.verwaltungsportal.de/css/?family=Jost:300,300i,400,400i,600,600i");

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

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

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

a {
  color: #7e1610;
}

#content a {
  text-decoration: underline;
}

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

b,
strong {
  font-weight: 600;
}

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

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

@media (max-width: 991px) {
  #logo {
    margin: 15px 0;
  }

  #logo img {
    max-width: 160px;
    width: 100%;
  }
}

/* ----------------------------------------------- contact ----------------------------------------------- */

.contact {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 300;
}

@media (max-width: 991px) {
  #menu .contact {
    padding: 15px;
    background-color: #21242a;
  }
}

@media (min-width: 992px) {
  .contact {
    background-color: #21242a;
  }

  .contact div[class*="contact"] {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .contactMail + .contactPhone {
    margin-left: 30px;
  }
}

.contact a {
  color: #ffffff;
}

.contactMail,
.contactPhone {
  padding-left: 20px;
  background-position: center left;
  background-repeat: no-repeat;
}

.contactMail {
  background-image: url("../img/mail-icon.png");
}

.contactPhone {
  background-image: url("../img/phone-icon.png");
}

/* --------------------------------------- navigation --------------------------------------- */

#menu {
  background-color: #ffffff;
  padding: 10px 0;
}

.is-sticky #menu {
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
}

/* 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;
    -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);
  }

  #burgerButtonInner2,
  #burgerButton:after,
  #burgerButtonInner {
    background-color: #7e1610;
    border-radius: 2px;
    position: absolute;
    width: 40px;
    height: 3px;
    left: 10px;
    -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;
  }

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

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

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

  #burgerButtonInner {
    top: 16px;
  }

  #burgerButtonInner2 {
    top: 24px;
  }

  #burgerButton:after {
    top: 32px;
    content: "";
    display: block;
  }

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

  .navbar-collapse {
    top: 0;
    background: #ffffff;
    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;
  }

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

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

@media (min-width: 575px) and (max-width: 991px) {
  .navbar-collapse {
    width: 60%;
  }

  .navbar-collapse.collapse.in:after,
  .navbar-toggle[aria-expanded="true"]::before {
    width: 40%;
  }
}

/* menu desktop */

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

  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 .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
  }

  nav.horizontally .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
    position: absolute;
    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;
  }
}

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

.navbar-default .navbar-nav > li > a {
  color: #21242a;
  font-weight: 600;
  text-align: left;
  padding: 12px 15px;
  position: relative;
  font-size: 1rem;
  line-height: 1.2;
  font-family: "Jost", sans-serif;
  text-decoration: none;
}

@media (max-width: 991px) {
  .navbar-default .navbar-nav > li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  }

  nav.horizontally .navbar-nav > li > a.dropdown-toggle {
    padding-right: 35px;
  }
}

@media (min-width: 992px) {
  .navbar-default .navbar-nav > li + li {
    margin-left: 15px;
  }

  .navbar-default .navbar-nav > li > a {
    padding: 5px 0;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
  }

  .navbar-default .navbar-nav > li > a.dropdown-toggle {
    padding-right: 15px;
  }

  .navbar-default .navbar-nav > li > a.dropdown-toggle::after {
    content: "";
    position: absolute;
    display: block;
    right: 0;
    top: 50%;
    margin-top: -5px;
    width: 5px;
    height: 5px;
    border-left: 1px solid #21242a;
    border-bottom: 1px solid #21242a;
    -moz-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) and (min-width: 992px) {
  .navbar-default .navbar-nav > li > a {
    display: block;
  }
}

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

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

.navbar-nav > li:focus-within > a {
  color: #7e1610;
}

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

.navbar-default .navbar-nav > li > .dropdown-menu,
.navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
  background-color: #ffffff;
  border-left: 6px solid #da251c;
  -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
  .navbar-default .navbar-nav > li > .dropdown-menu {
    padding: 10px 0;
  }
}

@media (min-width: 992px) {
  .navbar-default .navbar-nav > li > .dropdown-menu,
  .navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .navbar-default .navbar-nav > li > .dropdown-menu {
    left: -23px;
    margin-top: 47px;
  }

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

  .navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
    margin-top: -25px;
    margin-left: 10px;
  }

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

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

.navbar-default .navbar-nav > li > .dropdown-menu > li > a,
.navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a {
  color: #21242a;
  font-weight: 300;
  text-align: left;
  padding: 8px 20px;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  position: relative;
  font-family: "Jost", sans-serif;
}

.navbar-default .navbar-nav > li > .dropdown-menu > li > a::after,
.navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a::after {
  content: "";
  display: block;
  position: absolute;
  width: 0;
  bottom: 0;
  height: 1px;
  background: #7e1610;
  -webkit-transition: width 300ms linear;
  -moz-transition: width 300ms linear;
  -ms-transition: width 300ms linear;
  -o-transition: width 300ms linear;
  transition: width 300ms linear;
}

nav.horizontally .navbar-nav > li > .dropdown-menu > li > a.dropdown-toggle2 {
  padding-right: 35px;
}

@media (min-width: 992px) {
  .navbar-default .navbar-nav > li > .dropdown-menu > li > a.dropdown-toggle2 {
    padding-right: 25px;
  }

  .navbar-default .navbar-nav > li > .dropdown-menu > li > a.dropdown-toggle2::before {
    content: "";
    position: absolute;
    display: block;
    right: 20px;
    top: 50%;
    margin-top: -4px;
    width: 4px;
    height: 4px;
    border-radius: 1px;
    border-right: 1px solid #21242a;
    border-bottom: 1px solid #21242a;
    -moz-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-transition: border 300ms linear;
    -moz-transition: border 300ms linear;
    -ms-transition: border 300ms linear;
    -o-transition: border 300ms linear;
    transition: border 300ms linear;
  }
}

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

.navbar-nav > li > .dropdown-menu > li:hover > a,
.navbar-nav > li > .dropdown-menu > li > a:hover,
.navbar-nav > li > .dropdown-menu > li > a:focus,
.navbar-nav > li > .dropdown-menu > li.open > a,
.navbar-nav > li > .dropdown-menu > li.open > a:hover,
.navbar-nav > li > .dropdown-menu > li.open > a:focus,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a:hover,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a:focus,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a:hover,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a:focus,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a:hover,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a:focus,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li[class$="_over"] > a,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li[class$="_over"] > a:hover,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li[class$="_over"] > a:focus {
  color: #7e1610;
}

.navbar-nav > li > .dropdown-menu > li:hover > a::after,
.navbar-nav > li > .dropdown-menu > li > a:hover::after,
.navbar-nav > li > .dropdown-menu > li > a:focus::after,
.navbar-nav > li > .dropdown-menu > li.open > a::after,
.navbar-nav > li > .dropdown-menu > li.open > a:hover::after,
.navbar-nav > li > .dropdown-menu > li.open > a:focus::after,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a::after,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a:hover::after,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a:focus::after,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a:hover::after,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a:focus::after,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a::after,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a:hover::after,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a:focus::after,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li[class$="_over"] > a::after,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li[class$="_over"] > a:hover::after,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li[class$="_over"] > a:focus::after {
  width: calc(100% - 60px);
}

.navbar-nav > li > .dropdown-menu > li:focus-within > a,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li:focus-within > a {
  color: #7e1610;
}

.navbar-nav > li > .dropdown-menu > li:focus-within > a::after,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li:focus-within > a::after {
  width: calc(100% - 60px);
}

.navbar-nav > li > .dropdown-menu > li:hover > a.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li > a:hover.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li > a:focus.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li.open > a.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li.open > a:hover.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li.open > a:focus.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a:hover.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a:focus.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a:hover.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a:focus.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a:hover.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a:focus.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li[class$="_over"] > a.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li[class$="_over"] > a:hover.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li[class$="_over"] > a:focus.dropdown-toggle2::before {
  border-color: #0d71b4;
}

.navbar-nav > li > .dropdown-menu > li:focus-within > a.dropdown-toggle2::before,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li:focus-within > a.dropdown-toggle2::before {
  border-color: #0d71b4;
}

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

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

#headerpic {
  width: 100%;
  max-width: 1920px;
  min-width: 1000px;
  height: 240px;
  margin: 0 auto;
}

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

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

  #headerpic {
    width: 100%;
    max-width: 1920px;
    min-width: 1000px;
    height: 540px;
    margin: 0 auto;
  }
}

#headerpic {
  margin: 0 auto;
  position: relative;
  width: 100%;
  overflow: hidden;
}

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

.slider-mask {
  display: none;
}

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

#overlay a,
#team a {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #ffffff;
}

@media (max-width: 991px) {
  #overlay a,
  #team a {
    background: #21242a;
  }
}

.news .tab_link_mehr a,
#events .tab_link_mehr a,
.news .tab_link_entry > div:nth-last-child(2) a {
  background: #21242a;
  border: 2px solid #21242a;
}

#overlay a,
.news .tab_link_mehr a,
#events .tab_link_mehr a,
#team a,
.news .tab_link_entry > div:nth-last-child(2) a {
  color: #ffffff;
  font-style: normal;
  position: relative;
  z-index: 1;
  overflow: hidden;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  line-height: 1;
  padding: 8px 20px;
  text-decoration: none;
  -webkit-transition: background 300ms linear 300ms, border 300ms linear 300ms;
  -moz-transition: background 300ms linear 300ms, border 300ms linear 300ms;
  -ms-transition: background 300ms linear 300ms, border 300ms linear 300ms;
  -o-transition: background 300ms linear 300ms, border 300ms linear 300ms;
  transition: background 300ms linear 300ms, border 300ms linear 300ms;
}

#events .tab_link_mehr a,
.news .tab_link_entry > div:nth-last-child(2) a {
  font-size: 0;
}

#events .tab_link_mehr a::before,
.news .tab_link_entry > div:nth-last-child(2) a::before {
  font-size: 1rem;
}

@media (min-width: 992px) {
  #overlay a,
  .news .tab_link_mehr a,
  #events .tab_link_mehr a,
  #team a {
    padding: 10px 35px;
  }
}

#overlay a::after {
  background: #21242a;
}

.news .tab_link_mehr a::after,
#events .tab_link_mehr a::after,
#team a::after,
.news .tab_link_entry > div:nth-last-child(2) a::after {
  background: #21242a;
}

#overlay a::after,
.tab_link_mehr a::after,
#team a::after,
.news .tab_link_entry > div:nth-last-child(2) a::after {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  pointer-events: none;
  text-decoration: none;
  -webkit-transition: width 300ms linear;
  -moz-transition: width 300ms linear;
  -ms-transition: width 300ms linear;
  -o-transition: width 300ms linear;
  transition: width 300ms linear;
}

#overlay a:hover,
#overlay a:focus {
  background: #21242a;
  border-color: #21242a;
}

.news .tab_link_mehr a:hover,
.news .tab_link_mehr a:focus,
#team a:hover,
#team a:focus {
  background: #21242a;
  border-color: #21242a;
}

#events .tab_link_mehr a:hover,
#events .tab_link_mehr a:focus,
.news .tab_link_entry > div:nth-last-child(2) a:hover,
.news .tab_link_entry > div:nth-last-child(2) a:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: #ffffff;
}

#overlay a:hover::after,
#overlay a:focus::after,
.tab_link_mehr a:hover::after,
.tab_link_mehr a:focus::after,
#team a:hover::after,
#team a:focus::after,
.news .tab_link_entry:hover > div:nth-last-child(2) a::after,
.news .tab_link_entry:focus > div:nth-last-child(2) a::after {
  width: 100%;
}

#overlay a + a,
#team a + a {
  margin-left: 15px;
}

@media (min-width: 768px) {
  #overlay a + a,
  #team a + a {
    margin-left: 30px;
  }
}

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

#news {
  margin-top: 2px;
}

#news > .row {
  max-width: 100%;
  width: 100%;
}

#news > .row,
#news > .row > * {
  margin: 0;
  padding: 0;
}

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

@media (min-width: 576px) and (max-width: 991px) {
  #news .tab_link_entry {
    width: calc(50% - 2px);
    margin-top: 2px;
  }

  #news .tab_link_entry:nth-child(2n + 2) {
    width: 50%;
    margin-left: 2px;
  }
}

@media (min-width: 992px) {
  #news .tab_link_entry {
    width: calc(25% - 2px);
  }

  #news .tab_link_entry:last-child {
    width: 25%;
  }

  #news .tab_link_entry + .tab_link_entry {
    margin-left: 2px;
  }
}

.news .tab_link_entry {
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.05);
  min-height: 150px;
  padding: 45px 50px 45px 20px;
  border-bottom: none !important;
  color: #ffffff;
}

@media (min-width: 992px) {
  .news .tab_link_entry {
    min-height: 250px;
    padding-right: calc(50px + (170 - 50) * (100vw - 992px) / (1920 - 992));
  }
}

.news .tab_link_entry:hover .tab_date,
.news .tab_link_entry:focus .tab_date,
.news .tab_link_entry:hover .tab_link_title,
.news .tab_link_entry:focus .tab_link_title {
  opacity: 0;
}

.news .tab_link_entry:hover::before,
.news .tab_link_entry:focus::before {
  right: 120%;
}

.news .tab_link_entry::after {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("../img/news-standard.jpg") center / cover no-repeat;
}

.news .tab_link_title,
.news .tab_date {
  position: relative;
  z-index: 2;
  -webkit-transition: opacity 300ms linear;
  -moz-transition: opacity 300ms linear;
  -ms-transition: opacity 300ms linear;
  -o-transition: opacity 300ms linear;
  transition: opacity 300ms linear;
}

.news .tab_link_title a {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  display: block;
}

.news .tab_date {
  color: #ffffff;
  font-size: 1rem;
  pointer-events: none;
}

.news .tab_preview_picture {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

.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: 35vw;
  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 .vorschau,
.news .tab_spacer {
  display: none;
}

.news .tab_link_mehr {
  padding-top: 2px;
}

.news .tab_link_entry > div:nth-last-child(2) a {
  position: absolute;
  right: 20px;
  bottom: 20px;
  opacity: 0;
  -webkit-transition: background 300ms linear 300ms, border 300ms linear 300ms, opacity linear 300ms;
  -moz-transition: background 300ms linear 300ms, border 300ms linear 300ms, opacity linear 300ms;
  -ms-transition: background 300ms linear 300ms, border 300ms linear 300ms, opacity linear 300ms;
  -o-transition: background 300ms linear 300ms, border 300ms linear 300ms, opacity linear 300ms;
  transition: background 300ms linear 300ms, border 300ms linear 300ms, opacity linear 300ms;
}

.news .tab_link_entry > div:nth-last-child(2) {
  font-size: 0;
}

.news .tab_link_entry:hover > div:nth-last-child(2) a,
.news .tab_link_entry:focus > div:nth-last-child(2) a {
  opacity: 1;
}

.news .tab_link_entry > div:nth-last-child(2) a::before {
  content: "Artikel lesen";
}

@media (max-width: 991px) {
  #news .tab_link_entry + .tab_link_entry {
    margin-top: 2px;
  }
}

.tab_link_mandat a {
  color: #21242a;
}

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

#tabs {
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  #tabs {
    padding: 60px 0;
  }
}

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

@media (min-width: 1200px) {
  #tabs {
    padding: 100px 0 90px 0;
  }
}

#tabs .tabsRow {
  padding-left: 15px;
  padding-right: 15px;
}

#tabs .tab {
  padding: 20px 20px 0 20px;
  font-size: 1rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 450px;
  background-size: 100% 400%;
  -webkit-transition: background linear 300ms;
  -moz-transition: background linear 300ms;
  -ms-transition: background linear 300ms;
  -o-transition: background linear 300ms;
  transition: background linear 300ms;
}

#tabs .tab,
#tabs .tab h1,
#tabs .tab h2,
#tabs .tab h3,
#tabs .tab h4,
#tabs .tab h5,
#tabs .tab h6 {
  color: #ffffff;
}

#tabs .tab a {
  color: #ffffff;
  background-color: #7e1610;
  font-family: "Jost", sans-serif;
  font-style: italic;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 30px;
  display: inline-block;
  margin-top: 15px;
}

@media (min-width: 992px) {
  #tabs .tab a {
    color: #ffffff;
    background-color: #7e1610;
    font-family: "Jost", sans-serif;
    font-style: italic;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 30px;
    display: inline-block;
    position: absolute;
    margin-top: 15px;
    bottom: 20px;
    right: 20px;
    -webkit-transition: bottom linear 300ms;
    -moz-transition: bottom linear 300ms;
    -ms-transition: bottom linear 300ms;
    -o-transition: bottom linear 300ms;
    transition: bottom linear 300ms;
  }

  #tabs .tab:hover a,
  #tabs .tab:focus a,
  #tabs .tab:focus-within a {
    bottom: 100px;
  }

  #tabs .tab .tabHeadline {
    padding: 0 40px;
  }
}

#tabs .tab1 .tabHeadline {
  color: #21242a;
  font-size: 1.875rem;
  line-height: 1.7;
  white-space: pre-wrap;
  position: relative;
  z-index: 3;
  text-align: left;
  pointer-events: none;
}

#tabs .tab2 .tabHeadline {
  color: #ffffff;
  font-size: 1.875rem;
  line-height: 1.7;
  white-space: pre-wrap;
  position: relative;
  z-index: 3;
  text-align: left;
  pointer-events: none;
}

#tabs .tabContent {
  padding-bottom: 20px;
}

@media (min-width: 992px) {
  #tabs .tab a {
    font-size: 1.875rem;
  }

  #tabs .tab {
    padding: 50px 20px 0 20px;
  }

  #tabs .tabContent {
    padding: 0 20px;
    overflow: hidden;
    -webkit-transition: max-height linear 500ms;
    -moz-transition: max-height linear 500ms;
    -ms-transition: max-height linear 500ms;
    -o-transition: max-height linear 500ms;
    transition: max-height linear 500ms;
  }
}

@media (min-width: 1200px) {
  #tabs .tabContent {
    padding: 0 40px;
  }
}

#tabs .tabContent .row,
#tabs .tabContent .row > * {
  position: static;
}

#tabs .tab1 {
  background-color: #dddddd;
  background-image: linear-gradient(to top, #dddddd, #dddddd);
  color: #21242a;
}

#tabs .tab2 {
  background-color: #222326;
  background-image: linear-gradient(to top, #222326, #222326);
}

@media (min-width: 768px) and (max-width: 991px) {
  #tabs .tab:last-child {
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  #tabs .tab {
    height: 310px;
  }
}

@media (max-width: 767px) {
  #tabs .tab + .tab {
    margin-top: 30px;
  }

  #tabs .tab {
    height: 310px;
  }
}

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

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

body:not(.index) #content {
  padding-top: 30px;
}

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

  body:not(.index) #content {
    padding-top: 40px;
  }
}

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

@media (min-width: 1200px) {
  #content {
    padding-bottom: 115px;
  }
}

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

.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
H6,
H5,
H4,
H3,
H2,
H1 {
  color: #21242a;
  font-weight: 600;
  line-height: 1.2;
  font-style: italic;
  font-family: "Jost", sans-serif;
}

#tabs .tabsHeadline h2 {
  color: #7e1610;
  margin-bottom: 0 !important;
}

#tabs .tabsHeadline h2 em,
#tabs .tabsHeadline h2 i {
  color: #21242a;
  margin-bottom: 0;
}

#tabs .tabsHeadline {
  color: #21242a;
  margin-bottom: 20px;
}

h1,
.h1,
.legacy_h1,
#team h2,
#tabs .tabsHeadline h2 {
  font-size: calc(30px + (60 - 30) * (100vw - 320px) / (1920 - 320));
  margin-bottom: 20px;
}

@media (min-width: 992px) {
  #content h1,
  .h1,
  #content .legacy_h1 {
    margin-bottom: 30px;
  }
}

@media (min-width: 1200px) {
  #content h1,
  .h1,
  #content .legacy_h1 {
    margin-bottom: 40px;
  }

  #tabs .tabsHeadline h2 {
    font-size: calc(60px + (80 - 60) * (100vw - 1200px) / (1920 - 1200));
  }
}

h1 i,
h1 em,
.h1 i,
.h1 em,
#team h2 i,
#team h2 em,
#tabs .tabsHeadline h2 i,
#tabs .tabsHeadline h2 em,
#events h2 i,
#events h2 em {
  font-size: 66%;
  display: block;
}

#events h1,
#events h2,
#events h3,
#events h4,
#events h5,
#events h6 {
  color: #ffffff;
  font-size: calc(30px + (80 - 30) * (100vw - 320px) / (1920 - 320));
}

h2,
.h2,
.legacy_h2 {
  font-size: calc(28px + (50 - 28) * (100vw - 320px) / (1920 - 320));
}

h3,
.h3,
.legacy_h3 {
  font-size: calc(26px + (43 - 26) * (100vw - 320px) / (1920 - 320));
}

h4,
.h4,
.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
.legacy_h4 {
  font-size: calc(24px + (36 - 24) * (100vw - 320px) / (1920 - 320));
}

h5,
.h5,
.legacy_h5 {
  font-size: calc(22px + (29 - 22) * (100vw - 320px) / (1920 - 320));
}

h6,
.h6,
.legacy_h6 {
  font-size: calc(20px + (22 - 20) * (100vw - 320px) / (1920 - 320));
}

#newslinks,
#newsmandate {
  border: 1px solid #21242a;
}

/* ----------------------------------------------- events ----------------------------------------------- */

#events {
  padding-bottom: 40px;
  padding-top: 40px;
  background-color: #222326;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

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

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

@media (min-width: 1200px) {
  #events {
    padding-bottom: 120px;
    padding-top: 105px;
  }
}

#events .tabContent {
  margin-bottom: 20px;
}

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

@media (min-width: 576px) and (max-width: 767px) {
  #events .tab_link_entry {
    width: calc(50% - 15px);
  }

  #events .tab_link_entry:nth-child(2n + 1) {
    margin-right: 15px;
  }

  #events .tab_link_entry:nth-child(2n + 2) {
    margin-left: 15px;
  }
}

@media (min-width: 768px) {
  #events .tab_link_entry {
    width: calc(33.33% - 20px);
  }

  #events .tab_link_entry:not(:nth-child(3n + 1)) {
    margin-left: 30px;
  }
}

#events .tab_link_entries {
  counter-reset: section;
}

#events .tab_link_entry {
  background: #ffffff;
  margin-bottom: 30px;
  padding: 45px 20px;
  overflow: hidden;
  position: relative;
}

#events .tab_link_entry::before {
  counter-increment: section;
  content: "0" counter(section);
  font-size: 180px;
  font-style: italic;
  font-weight: 600;
  opacity: 0.1;
  pointer-events: none;
  position: absolute;
  right: 15px;
  bottom: -50px;
  color: #00704d;
  line-height: 1;
}

#events .tab_link_title {
  margin-bottom: 6px;
}

#events .tab_link_title a {
  color: #21242a;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  display: block;
}

#events .tab_link_date {
  font-size: 1rem;
}

#events .tab_link_mehr {
  color: transparent;
  font-size: 0;
}

#events .tab_link_mehr a::before {
  content: "Alle Veranstaltungen";
}

/* ------------------------------------------------ team ----------------------------------------------- */

#team {
  padding-bottom: 40px;
  padding-top: 40px;
  background-color: #21242a;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

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

  #team .btgrid > .row {
    display: flex;
    align-items: flex-end;
    align-content: flex-end;
  }
}

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

@media (min-width: 1200px) {
  #team {
    padding-bottom: 120px;
    padding-top: 105px;
  }
}

#team > .row {
  position: relative;
  z-index: 2;
}

#team h1,
#team h2,
#team h3,
#team h4,
#team h5,
#team h6 {
  color: #ffffff;
  font-size: calc(30px + (80 - 30) * (100vw - 320px) / (1920 - 320));
}

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

#partner {
  padding-bottom: 20px;
  padding-top: 40px;
  font-size: 1rem;
}

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

#partner hr {
  margin: 40px 0 20px 0;
  background: #21242a;
  opacity: 0.2;
}

@media (min-width: 768px) {
  #partner hr {
    margin-top: 60px;
  }
}

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

#footer {
  background-color: #21242a;
  padding-top: 40px;
  padding-bottom: 40px;
  color: #ffffff;
  font-size: 1rem;
}

@media (max-width: 767px) {
  #footer .row > .col-xs-12:not(:first-child)::before {
    background: #ffffff;
    content: " ";
    height: 1px;
    width: 100%;
    display: block;
    margin: 25px 0;
    opacity: 0.15;
  }

  #footer .row > .col-xs-12.hidden-xs ~ .col-xs-12::before,
  #footer .row > .col-xs-12.hidden-sm ~ .col-xs-12::before {
    display: none;
  }
}

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

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

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

.footerTab h1,
.footerTab h2,
.footerTab h3,
.footerTab h4,
.footerTab h5,
.footerTab h6 {
  color: #ffffff;
  font-size: 1.25rem;
  font-style: normal;
}

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

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

@media (min-width: 768px) {
  #vernetzt {
    margin: 0;
  }
}

#vernetzt span span {
  display: block;
}

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

#counter {
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  display: block;
  width: 100%;
  padding: 9px 15px;
  text-align: justify;
  text-align-last: justify;
}

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

#innerfooter {
  background-color: #181a1f;
  padding-top: 26px;
  padding-bottom: 26px;
  font-size: 1rem;
}

#innerfooter ul {
  padding: 0;
}

#innerfooter li {
  display: inline-block;
}

#innerfooter a {
  color: #ffffff;
}

#innerfooter li + li::before {
  content: "•";
  margin: 0 15px;
  color: #ffffff;
}

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

/* --------------------------------------------- scroll top -------------------------------------------- */

#scrollTopBtn {
  font-weight: 600;
  display: inline-block;
}

@media (max-width: 767px) {
  #scrollTopBtn {
    margin-top: 20px;
  }
}

#scrollTopBtn::after {
  content: "";
  margin-left: 15px;
  position: relative;
  bottom: -2px;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  -moz-transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
  -o-transform: rotate(135deg);
  -ms-transform: rotate(135deg);
  transform: rotate(135deg);
}
