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

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

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

a {
  color: #007db5;
}

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

b,
strong {
  font-weight: 600;
}

.overflow {
  overflow: clip;
  position: relative;
}

/* -------------------------------------------- @nav1 Navigation ------------------------------------------- */

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

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

@media (min-width: 992px) {
  #logo img {
    max-width: 157px;
    width: 100%;
    transition: max-width 300ms linear;
  }

  .is-sticky #logo img {
    max-width: 99px;
  }

  #logo {
    position: absolute;
    background-color: #fff;
    padding: 10px 7px 8px 7px;
    margin-top: -35px;
    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);
  }
}

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
  #menu {
    padding: 10px 0;
    position: static !important;
    background-color: #ffffff;
    -webkit-box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
  }

  #burgerButton {
    font-size: 0;
    border: none !important;
    position: relative;
    z-index: 1002;
    display: block;
    width: 46px;
    height: 40px;
    border-radius: 2px;
    cursor: pointer;
    background-color: #ffffff;
    padding: 3px;
  }

  #burgerButton:before,
  #burgerButton:after,
  #burgerButtonInner {
    background-color: #961627;
    border-radius: 2px;
    position: absolute;
    width: 40px;
    height: 3px;
    left: 2px;
    -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"]:before {
    opacity: 0;
  }

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

  #burgerButtonInner {
    top: 10px;
  }

  #burgerButton:before {
    top: 18px;
  }

  #burgerButton:after {
    top: 26px;
  }

  #burgerButton:before,
  #burgerButton:after {
    content: "";
    display: block;
  }

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

  .navbar-collapse {
    top: 0;
    background: #961627;
    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.collapse.in {
    left: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .navbar-header {
    height: 50px;
    width: 60px;
    border-radius: 2px;
    padding: 6px 8px;
    background-color: #ffffff;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 101;
    -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);
  }

  .navbar-collapse.in:after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    display: block;
    width: 90px;
    background-color: rgba(0, 0, 0, 0.5);
  }
}

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

  .navbar-collapse.collapse.in:after {
    width: 40%;
  }
}

/* menu desktop */

@media (min-width: 992px) {
  #menu {
    background-color: #961627;
    -webkit-box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
    padding: 14px 0;
  }

  #menu > .row {
    width: 100%;
    max-width: 1440px;
  }

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

  nav.horizontally .navbar-nav > li {
    flex-grow: 1;
  }

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

  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 ---------------------------------------------- */

.navbar-default .navbar-nav > li > a {
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 15px 35px 15px 15px;
  position: relative;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
}

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

@media (min-width: 992px) {
  .navbar-default .navbar-nav > li > a {
    padding: 10px 5px 10px 5px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
  }
}

@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: #4d4d4d;
  background-color: #ffffff;
}

.navbar-nav > li:focus-within > a {
  color: #4d4d4d;
  background-color: #ffffff;
}

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

.navbar-nav > li:focus-within > a::after {
  width: 100%;
}

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

.navbar-default .navbar-nav > li > .dropdown-menu {
  background: #961627;
}

.navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
  background: #961627;
}

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

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

  .navbar-default .navbar-nav > li:hover > .dropdown-menu::after {
    top: 0;
  }

  .navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
    margin-top: -30px;
    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;
  }
  .navbar-default .navbar-nav > li > .dropdown-menu::before {
    content: "";
    position: absolute;
    display: block;
    height: 20px;
    left: 0;
    right: 0;
    top: -20px;
  }
}

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

.navbar-default .navbar-nav > li > .dropdown-menu > li > a,
.navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a {
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 8px 25px;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

@media (min-width: 992px) {
  .navbar-default .navbar-nav > li > .dropdown-menu > li > a,
  .navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a {
    padding: 13px 35px;
  }
}

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
  content: "";
  display: block;
  position: absolute;
  left: 20px;
  top: 40%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transition: opacity 300ms linear;
  opacity: 0;
}
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within) > a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]) > a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open > a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open > a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"] > a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"] > a:is(:hover, :focus)::before {
  opacity: 1;
}
/* -------------------------------------------- banner ------------------------------------------ */

#slider {
  max-height: clamp(500px, 42vw, 800px);
  position: relative;
}

@media (min-width: 992px) {
  #headerpic a.nivo-prevNav {
    left: 65px;
  }

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

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

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

.slider-mask {
  display: none;
}

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

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

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

/* ------------------------------------------------ parallax ----------------------------------------------- */
@media (max-width: 991px) {
  #parallax {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 200px;
  }
}
#parallax {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 350px;
}

/* ------------------------------------------------ @3tab ----------------------------------------------- */

#tab3 {
  padding: 0px 0 50px 0;
  margin-top: -90px;
}
#tab3 > .row {
  row-gap: 30px;
}
@media (max-width: 991px) {
  #tab3 {
    padding: 30px 0;
  }
}

#tab3 .tab {
  color: #4d4d4d;
  font-size: 1rem;
  font-weight: 400;
  min-height: 100%;
  padding: 25px;
  background-color: #ffffff;
  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);
  border-left: solid 6px #961627;
}

#tab3 .tab .tabHeadline {
  display: block;
  color: #961627;
  font-size: clamp(1.25rem, 4vw, 1.5625rem);
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  text-align: center;
}

#tab3 .tab .tabHeadline::after {
  content: "";
  position: absolute;
  background: #4f626d;
  width: 75px;
  height: 1px;
  z-index: 0;
  pointer-events: none;
  left: 0;
  right: 0;
  margin: auto;
  display: block;
  margin-top: 10px;
}

#tab3 .tab a {
  color: #007db5;
}

#tab3 .tab a[href^="mailto:"] {
  text-decoration: underline;
  color: #961627;
}

#tab3 .tab_link_title a {
  color: #4d4d4d;
  font-size: 1rem;
  font-weight: 600;
}

#tab3 .tab_link_mandat a {
  color: #4d4d4d;
  font-weight: 400;
}

#tab3 .tab_link_mehr {
  font-size: 0;
  text-align: center;
}
#tab3 .tab_link_mehr a {
  font-size: 1rem;
  display: inline-block;
  color: #ffffff;
  background-color: #961627;
  border-radius: 2px;
  padding: 6px 22px;
  font-weight: 400;
  -webkit-box-shadow: 2px 2px 2px 0 silver;
  box-shadow: 2px 2px 2px 0 silver;
  position: relative;
  text-transform: none;
  text-decoration: none;
  -webkit-transition:
    -webkit-box-shadow 100ms linear,
    box-shadow 100ms linear,
    bottom 100ms linear,
    right 100ms linear;
  -moz-transition:
    -webkit-box-shadow 100ms linear,
    box-shadow 100ms linear,
    bottom 100ms linear,
    right 100ms linear;
  -ms-transition:
    -webkit-box-shadow 100ms linear,
    box-shadow 100ms linear,
    bottom 100ms linear,
    right 100ms linear;
  -o-transition:
    -webkit-box-shadow 100ms linear,
    box-shadow 100ms linear,
    bottom 100ms linear,
    right 100ms linear;
  transition:
    -webkit-box-shadow 100ms linear,
    box-shadow 100ms linear,
    bottom 100ms linear,
    right 100ms linear;
  text-align: center;
  align-content: center;
  align-items: center;
  margin-top: 15px;
}
#tab3 .tab_link_mehr a:is(:hover, :focus) {
  -webkit-box-shadow: 0 0 0 0 #33495e;
  box-shadow: 0 0 0 0 #33495e;
}

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

@media (min-width: 1200px) {
  #tab3 > .row::before {
    content: "";
    position: absolute;
    background: url(../img/deko-logo.png) no-repeat;
    width: 363px;
    height: 260px;
    bottom: -59px;
    z-index: 0;
    pointer-events: none;
    right: -414px;
    display: block;
  }
}

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

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

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

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

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

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

h5,
.h5,
.legacy_h5 {
  font-size: clamp(1.625rem, 3.5vw, 2rem);
}

h6,
.h6,
.legacy_h6 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

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

footer {
  background-color: #2b2b2b;
  padding-top: 29px;
  padding-bottom: 29px;
  color: #ffffff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

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

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

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

#innerfooter ul {
  padding: 0;
}

#innerfooter li {
  display: block;
}

#innerfooter a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
}

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

@media (min-width: 576px) {
  #innerfooter li + li::before {
    content: "•";
    margin: 0 clamp(15px, 2vw, 25px);
    color: #fff;
  }

  #innerfooter li {
    display: inline-block;
  }
}

/* #endregion -------------------------------- footer ------------------------------------------- */

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

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

#vernetzt span span {
  display: block;
}
