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

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

body {
  font-family: "Barlow", sans-serif;
  font-weight: 300;
  color: #282828;
  background: #ffffff;
  font-size: 1rem;
  /* 1rem = 16px */
  line-height: 1.5;
  box-shadow: 0 0 100px 0 rgba(0, 0, 0, 0.1);
}

a {
  color: #762023;
}

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

b,
strong {
  font-weight: 500;
}

#over {
  overflow: clip;
  position: relative;
}

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

#logo {
  display: inline-block;
  text-decoration: none;
}

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

/* burgermenu for tablet */
@media (min-width: 1200px) {
  nav.horizontally .row {
    max-width: 1780px;
  }
}

@media (max-width: 991px) {
  nav.horizontally {
    position: static !important;
    padding: 18px 0;
    background: #ffffff;
  }

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

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

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    padding: clamp(8px, 2vw, 22px) 0;
    background: #fff;
    transition: all 0.2s 0s linear;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
  }

  .is-sticky nav.horizontally {
    padding: 10px 0;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
  }

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

  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, :hover)>ul,
  nav.horizontally .navbar-nav li.open:focus-within>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.open>ul {
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden;
  }

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

/* toplevel */

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

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

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

@media (min-width: 992px) {
  nav.horizontally li[class*="toplevel"]+li {
    margin-left: 15px;
  }

  nav.horizontally a[class*="toplevel"] {
    padding: 18px 0;
  }
}

/* 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: #a574a9;
  background-color: transparent;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"]>ul,
nav.horizontally [class*="secondlevel"]>ul {
  background-color: #fff;
}

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

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #5e5e5e;
  font-weight: 500;
  text-align: left;
  padding: 8px 15px;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

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

@media (min-width: 992px) {
  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    padding: 12px 60px 12px 40px;
  }
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #a574a9;
  z-index: -1;
  opacity: 0;
  transition: opacity 300ms linear;
}

@media (min-width: 992px) {
  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
    right: 20px;
  }

  nav.horizontally a[class*="secondlevel"]::after {
    left: -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: #fff;
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus)::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus)::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus)::after {
  opacity: 1;
}

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

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

.index header {
  margin-bottom: clamp(25px, 10vw, 170px);
}

#slider {
  position: relative;
  border: 16px solid #ffffff;
  background: #ffffff;
}

#bannerBox {
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  #slider {
    max-height: 575px;
    min-width: 687px;
    margin-left: -140px;
  }
}

#headerpic {
  position: relative;
}

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

#headerpic>.row::after {
  content: "";
  position: absolute;
  pointer-events: none;
  top: -120px;
  bottom: -30px;
  height: calc(100% + 140px);
  right: -278px;
  width: 80%;
  background: #a574a9;
  padding-top: 100px;
}

@media (max-width: 575px) {
  #headerpic>.row::after {
    height: 100%;
  }
}

.slider-wrapper {
  height: auto;
}

.slider-mask {
  display: none;
}

.theme-nivo .nivo-controlNav {
  top: 30px !important;
}

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

/* ------------------------------------------ headerBox -------------------------------------- */

@media (min-width: 1200px) {
  #headerBox {
    position: relative;
  }

  #headerBox>.row::after {
    content: "";
    position: absolute;
    pointer-events: none;
    left: -307px;
    bottom: -80px;
    margin: auto;
    width: 777px;
    height: 168px;
    background: url("../img/deko-linien-oben.png") center no-repeat;
    z-index: 1;
  }
}

#headerpic>.row,
#headerBox>.row>* {
  z-index: 1;
}

#headerBox .tab {
  padding: 37px 21px;
  border: 18px solid #ffffff;
  background: #e8e6e6;
  hyphens: auto;
}

@media (max-width: 575px) {
  #headerBox .tab {
    padding: 16px 21px;
    border: 16px solid #ffffff;
  }
}

@media (max-width: 767px) {
  #headerBox .tab {
    border-top: 0;
  }
}

#headerBox .tab :is(h1, h2, h3) {
  color: #5e5e5e;
  font-size: 3.0625rem !important;
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  font-style: normal;
  line-height: 1.1;
}

#headerBox .tab :is(h1, h2, h3) :is(em, i) {
  color: #5e5e5e;
  font-size: 2.25rem !important;
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  font-style: normal;
}

#headerBox .tab :is(h4, h5, h6) {
  color: #212121;
  font-size: 4.0625rem !important;
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  font-style: normal;
  line-height: 1.3;
}

@media (min-width: 768px) {
  #headerBox .tab {
    margin-left: -120px;
    margin-right: 90px;
  }
}

/* ------------------------------------------ button style -------------------------------------- */

.buttonStyle a:not(.has-image):not([href*="mailto"]):not([href*="tel"]) {
  display: inline-block;
  line-height: 1.2;
  color: #494949 !important;
  font-weight: 400;
  padding: 10px 20px 12px 20px;
  position: relative;
  text-decoration: none !important;
  text-shadow: none !important;
  font-size: 1.5rem;
  border: solid 1px #a574a9;
}

.buttonStyle a:not(.has-image):not([href*="mailto"]):not([href*="tel"]):is(:hover, :focus) {
  background: #a574a9;
  color: #ffffff !important;
}

#headerBox .tab .buttonStyle a:not(.has-image):not([href*="mailto"]):not([href*="tel"]) {
  margin-top: 20px;
}

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

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

body:not(.index) #content {
  padding-top: clamp(35px, 4vw, 55px);
  padding-bottom: clamp(35px, 4vw, 60px);
}

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

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

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

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

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

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

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

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

/* ------------------------------------------------ @7tab ----------------------------------------------- */

#tab7 {
  padding-top: 70px;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
  font-size: 1.125rem;
}

@media (max-width: 991px) {
  #tab7 {
    padding-top: 130px;
    background: #e8e6e6;
  }
}

@media (max-width: 575px) {
  #tab7 {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

@media (min-width: 992px) {
  #tab7>.row::after {
    content: "";
    position: absolute;
    pointer-events: none;
    top: -70px;
    bottom: -60px;
    height: calc(100% + 130px);
    left: -210px;
    width: 108.64%;
    background: #e8e6e6;
    z-index: -2;
  }
}

@media (min-width: 1200px) {
  #tab7>.row {
    max-width: 1360px;
    width: 100%;
  }
}

#tab7 .tab {
  font-size: 1rem;
  padding: 30px;
  height: 100%;
  min-height: 100%;
  background: #ffffff;
  -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

@media (max-width: 575px) {
  #tab7 .tab {
    padding: 16px;
  }
}

#tab7 a {
  font-size: clamp(1rem, 1vw, 1.125rem);
  color: #a574a9;
  text-decoration: underline !important;
}

@media (min-width: 992px) {
  #tab7 .tab {
    padding: 30px 25px 30px 25px;
  }
}

#tab7 .tab :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1.25rem;
  margin-bottom: 20px;
  position: relative;
  font-weight: 700;
  color: #a574a9;
}

#tab7 .tab :is(h1, h2, h3, h4, h5, h6) a {
  color: #a574a9;
  display: block;
  text-align: center;
  padding: 10px 20px;
  border: 1px solid #a574a9;
  text-decoration: none !important;
  hyphens: initial;
}

#tab7 .tab :is(h1, h2, h3, h4, h5, h6) a:is(:hover, :focus) {
  background: #a574a9;
  color: #ffffff;
}

@media (min-width: 1200px) {
  #tab7 .tab::after {
    content: "";
    position: absolute;
    pointer-events: none;
    left: -5px;
    bottom: -15px;
    margin: auto;
    width: 207px;
    height: 183px;
    background: url("../img/linien-tabs.png") center no-repeat;
    z-index: -1;
  }
}

@media (min-width: 992px) {

  #tab7>.row>div:nth-child(1),
  #tab7>.row>div:nth-child(2),
  #tab7>.row>div:nth-child(3) {
    margin-bottom: 55px;
  }
}

@media (max-width: 991px) {
  #tab7>.row {
    row-gap: 30px;
  }
}

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

#footer {
  padding-top: 75px;
  padding-bottom: 0px;
  position: relative;
  font-size: 1rem;
}

@media (max-width: 575px) {
  #footer {
    padding-top: clamp(25px, 10vw, 170px);
  }
}

#footer a {
  color: #fff;
}

#footer a :is(:hover :focus) {
  text-decoration: underline;
}

#footer>.row::before {
  content: "";
  position: absolute;
  pointer-events: none;
  bottom: 0;
  height: 67%;
  left: 115px;
  right: 0;
  width: 100px;
  background: #a574a9;
}

#footerBox>.row {
  row-gap: 35px;
}

#footerBox {
  padding: clamp(35px, 4vw, 40px) clamp(30px, 3vw, 45px) 10px clamp(30px, 3vw, 45px);
  background: #5e5e5e;
  position: relative;
  z-index: 1;
  color: #fff;
}

@media (max-width: 575px) {
  #footerBox {
    padding: 16px clamp(30px, 3vw, 45px) 10px clamp(30px, 3vw, 45px);
  }
}

#footerTab .footerHeadline {
  color: #fff;
  font-size: 1.375rem;
  margin: 0;
  font-weight: 700;
  margin-bottom: 20px;
}

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

#innerfooter ul {
  padding: 0;
  line-height: 1.9;
  font-size: 1.125rem;
  display: inline-block;
}

#innerfooter {
  border-top: solid 1px #fff;
  width: 100%;
}

#innerfooter a {
  color: #fff;
  display: inline-block;
  padding: 10px 12px;
}

#innerfooter li {
  display: inline-block;
}

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

@media (min-width: 768px) {
  #innerfooter li+li::before {
    content: "•";
    color: #fff;
    flex-grow: 1;
    margin: 0 10px;
  }
}

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

#vernetzt {
  display: inline-block;
  font-size: 0.8125rem;
  color: #fff;
  line-height: 1.3;
  text-decoration: none;
}

#vernetzt strong {
  font-weight: 700;
}

#vernetzt img {
  margin-bottom: 6px;
}

#vernetzt span {
  display: block;
}