@import url("https://fonts.verwaltungsportal.de/import/?family=Gelasio:300,400,500,600,700,300i,400i,500i,600i,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Caveat:300,400,500,600,700,300i,400i,500i,600i,700i");

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

body {
  font-family: "Gelasio", serif;
  font-weight: 400;
  color: #4d4d4d;
  background: #ffffff;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
}

a {
  color: #e50303;
}

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

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

b,
strong {
  font-weight: 600;
}

a:focus-visible,
button:focus-visible,
form:focus-visible,
input:focus-visible {
  outline: 3px solid #0066ff !important;
}

#overflow {
  overflow: clip;
  position: relative;
}
/* -------------------------------------------- logo -------------------------------------------- */

#logo .logoTxt {
  line-height: 1.1;
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: #e50303;
  font-weight: 700;
  text-align: left;
}

@media (min-width: 992px) {
#logo {
  position: absolute;
  top: -55px;
 
}
.is-sticky #logo {
  position: relative;;
  top: 0px;
}
}

#logo .logoTxt :is(b, strong) {
  font-weight: 700;
  font-size: clamp(1.875rem, 3vw, 2.5625rem);
  font-family: "Caveat", cursive;
}

@media (min-width: 992px) {
  #logo .logoTxt {
    text-align: right;
  }
}

.buttonStyle a {
  color: #e50303;
  text-decoration: none;
  padding: 8px 20px;
  border: solid 1px #e50303;
  box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.2);
  font-size: 1.125rem;
  font-weight: 700;
 margin: 20px 0 0px 0px;
  display: inline-block;
}

.buttonStyle a:is(:hover, :focus) {
  text-decoration: none;
  background-color: #e50303;
  color: #fff;
}
/* #region ---------------------------------- navigation ---------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
  nav.horizontally {
    min-height: 80px;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e50303;
  }

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

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

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
  padding: 0px 0 17px 0;
    background: #ffffff;
    border-bottom: 1px solid transparent;
    transition:
      border 300ms ease-in-out,
      padding 300ms ease-in-out;
  }

  .is-sticky nav.horizontally {
    padding: 5px 0 10px 0;
    border-bottom-color: #e50303;
  }

  nav.horizontally .navbar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
   margin-top: 20px;
    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;
    visibility: hidden;
    transition: opacity 300ms linear;
  }

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

  nav.horizontally .navbar-nav li {
    position: relative;
  }

  nav.horizontally .navbar-nav li:is(.open:focus-within, :hover) > ul,
  nav.horizontally .navbar-nav li[class*="secondlevel"] > ul[style*="block"] {
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible;
  }

  nav.horizontally .navbar-nav li:is(:hover, :focus-within) > ul {
    z-index: 1003;
  }
}

/* toplevel */

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

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

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

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

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

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within) > a,
nav.horizontally li[class*="toplevel"] > a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"].open > a,
nav.horizontally li[class*="toplevel"].open > a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"][class*="_over"] > a,
nav.horizontally li[class*="toplevel"][class*="_over"] > a:is(:hover, :focus) {
  color: #e50303;
  background-color: transparent;
}

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 {
  width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background-color: #ffffff;
  border: solid 1px #e50303;
}

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

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

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

  nav.horizontally [class*="toplevel"] > ul {
    margin-top: 35px;
    left: 50%;
    transform: translate(-50%);
  }

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

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

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

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

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

/* secondlevel + thirdlevel */

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

@media (max-width: 991px) {
  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    padding-left: 30px;
    padding-right: 15px;
    text-align: left;
  }

  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: #e50303;
  color: #ffffff;
}

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

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

#slider {
  max-height: clamp(300px, 42vw, 400px);
  position: relative;
}
.theme-nivo .nivo-controlNav .slick-dots li,
.nivo-directionNav a,
a.nivo-control,
a.nivo-control.active,
.nivo-controlNav span {
  color: #ffffff !important;
}

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

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

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

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

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

@media (min-width: 768px) {
  #bannerOverlay {
    margin-top: 0;
    margin-bottom: 0;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 51;
    pointer-events: none;
    bottom: clamp(30px, 9vw, 142px);
  }

  #headerpic {
    background: #000000;
  }
}

#slogan {
  pointer-events: auto;
  margin-top: 30px;
  font-size: clamp(1.5625rem, 3vw, 2.25rem);
  line-height: 1;
  font-weight: 300;
  width: 100%;
  text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

#slogan .tabHeadline {
  font-weight: 700;
  font-size: clamp(2.8125rem, 6vw, 3.75rem);
  color: #fff;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  #slogan {
    color: #ffffff;
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  #slogan {
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0);
  }
  #slogan .tabHeadline {
    color: #e50303;
  }
}

#slogan a {
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #e50303;
  background: #ffffff;
  display: inline-block;
  padding: 12px 22px;
  margin-top: clamp(15px, 2vw, 25px);
  border: 1px solid #e50303;
  position: relative;
  z-index: 1;
  text-decoration: none;
}

#slogan a:is(:hover, :focus) {
  background: #e50303;
  color: #fff;
}

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

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

.slider-mask {
  display: block;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
}

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

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

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

/* ------------------------------------------------ infoTabs ----------------------------------------------- */
#infoTabs {
  margin-bottom: 60px;
}

#infoTabs > .row {
  row-gap: 30px;
}
#infoTabs .tabHeadlineBereich .tabHeadline {
  color: #e50303;
  font-size: clamp(1.5625rem, 4vw, 1.875rem);
  margin-bottom: 10px;
}

#infoTabs .tab {
  background-color: #fff;
  border: solid 1px #e50303;
  padding: 34px 30px;
  box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.2);
  color: #222222;
  font-size: 1.125rem;
  position: relative;
  display: block;
  overflow: clip;
}

#infoTabs .tab .tabHeadline {
  color: #e50303;
  font-size: 1.375rem;
}

#infoTabs .tab:is(:hover, :focus) {
  color: #fff;
  background-color: #e50303;
}

#infoTabs .tab:is(:hover, :focus) .tabHeadline {
  color: #fff;
}

#infoTabs .tab a::after {
  content: "";
  position: absolute;
  inset: -1000vw;
}

#infoTabs .tab a {
  position: absolute;
  font-size: 0;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  display: block;
}

/* ----------------------------------------------- @13nw news -------------------------------------------- */

#nw13 {
  padding-top: clamp(30px, 4vw, 60px);
  padding-bottom: clamp(30px, 5vw, 85px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 30px;
}

#nw13 .tabHeadline {
  font-size: 1.875rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0;
}

#nw13 > .row {
  row-gap: clamp(30px, 3vw, 45px);
}

#nw13 .tab_link_entries {
  display: grid;
  gap: 30px;
}

@media (min-width: 576px) {
  #nw13 .tab_link_entries {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  #nw13 .tab_link_entries {
    grid-template-columns: repeat(3, 1fr);
  }
}

#nw13 .tab_link_entry {
  width: 100%;
  padding: 20px;
  display: grid;
  background: #ffffff;
  border: solid 1px #e50303;
  color: #222222;
  font-size: 1.125rem;
}

#nw13 .tab_link_entry:is(:hover, :focus) {
  background-color: #e50303;
  color: #fff;
}

#nw13 .tab_link_title {
  order: 1;
  margin-bottom: 8px;
}

#nw13 .vorschau {
  order: 2;
  opacity: 1;
}

#nw13 .tab_date {
  order: 3;
}

#nw13 .tab_link_title a {
  font-weight: 700;
  color: #e50303;
  font-size: 1.375rem;
}
#nw13 .tab_link_entry:is(:hover, :focus) .tab_link_title a {
  color: #fff;
}
#nw13 .tab_link_mehr {
  color: transparent;
  font-size: 0;
}

#nw13 .tab_link_mehr a {
  color: #ffffff;
  display: inline-block;
  font-size: clamp(1rem, 2vw, 1.3125rem);
  font-weight: 700;
  font-family: "Gelasio", serif;
}

#nw13 .tab_link_mehr a::after {
  content: " \00BB";
}

#nw13 .tab_link_entry .tab_link_mehr,
#nw13 .tab_spacer,
#nw13 .tab_preview_picture {
  display: none;
}

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

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

h1,
.h1,
.legacy_h1 {
  font-size: clamp(2rem, 5.5vw, 2.25rem);
}

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

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

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

h5,
.h5,
.legacy_h5 {
  font-size: clamp(1.5rem, 5.5vw, 1.75rem);
}

h6,
.h6,
.legacy_h6 {
  font-size: clamp(1.375rem, 5.5vw, 1.625rem);
}

/* ----------------------------------------------- @1f footer ----------------------------------------------- */

#f1 {
  color: #222222;
  font-size: 1rem;
  padding-top: 0px;
  padding-bottom: 40px;
  background-color: #f8f8f8;
  margin-top: 205px;
  box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.1);
  line-height: 1.4;
}

@media (max-width: 991px) {
  #f1 {
    margin-top: 50px;
  }
}

body:not(.index) #f1 {
  margin-top: 105px;
}

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

#f1 .footerTab {
  font-size: 1rem;
}

#f1 .tabHeadline {
  font-size: 1.375rem;
  font-weight: 700;
  color: #e50303;
  margin-bottom: 20px;
}

#f1 .footerTab a {
  text-decoration: underline;
}
#f1 .footerTab a:is(:hover, :focus) {
  text-decoration: none;
}
/* --------------------------------------------- innerfooter -------------------------------------------- */

#innerfooter ul {
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  padding: 0;
}

#innerfooter li {
  border-top: 2px solid rgba(0, 0, 0, 0.1);
}

#innerfooter a {
  text-decoration: none;
  position: relative;
  display: block;
  font-size: 1rem;
  font-weight: 400;
  padding: 6px 10px 6px 25px;
  color: #222222;
}
#innerfooter a:is(:hover, :focus) {
  color: #e50303;
}
#innerfooter a::before {
  content: "";
  position: absolute;
  display: block;
  left: 10px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: background 300ms linear;
}

#innerfooter a:hover::before,
#innerfooter a:focus::before {
  background: #e50303;
}

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

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

#vernetzt span span {
  display: block;
}

/* --------------------------------------------- newsletterTab -------------------------------------------- */

.newsletterTab {
  padding: 20px;
  margin-bottom: 40px;
  background: #ffffff;
  border: solid 1px #e50303;
  box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.2);
}
@media (max-width: 991px) {
  .newsletterTab {
    margin-top: 30px;
  }
}

@media (min-width: 992px) {
  .newsletterTab {
    padding: 25px 40px 15px 40px;
    margin-top: -100px;
    margin-bottom: 0px;
  }
}

.newsletterTab .tabHeadline {
  color: #e50303;
  font-size: 1.625rem !important;
  font-weight: 700;
  margin-bottom: 5px !important;
}

#newsletter label {
  font-size: 1rem;
  display: block;
  font-weight: 400;
  margin-bottom: 8px;
  color: #222222;
}

#newsletterInputs {
  height: 36px;
  display: flex;
  position: relative;
  border-radius: 2px;
  margin-left: auto;
  max-width: 340px;
  border: 1px solid rgba(229, 3, 3, 0.5);
}

#newsletter_input {
  color: #ffffff;
  font-size: 16px;
  font-style: normal !important;
  background: transparent;
  padding: 0;
  border: 0;
  line-height: 36px;
  padding-left: 15px;
  padding-right: 43px;
  height: 32px;
  width: 100%;
}

#newsletter_submit {
  width: 36px;
  background:
    url("../img/icon-mail.png") center no-repeat,
    transparent;
  padding: 0;
  cursor: pointer;
  line-height: 36px;
  border: none;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  font-size: 0;
  transition: background-color 300ms linear;
}

#newsletter_submit:hover,
#newsletter_submit:focus {
  background-color: #f8e1e1;
}

#newsletter_input::-ms-input-placeholder {
  color: #222222 !important;
}

#newsletter_input::-webkit-input-placeholder {
  color: #222222 !important;
}

#newsletter_input::-moz-placeholder {
  color: #222222 !important;
  opacity: 1;
}

#newsletter_input:-moz-placeholder {
  color: #222222 !important;
  opacity: 1;
}
