@import url("https://fonts.verwaltungsportal.de/import/?family=Poppins:300,400,500,600,700,300i,400i,500i,600i,700i");
@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: #d3e0f0;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-color: #ebb514 #ffffff;
  scrollbar-width: thin;
}

body {
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
  color: #404040;
  background: #ffffff;
  font-size: clamp(1rem, 2vw, 1.125rem);
  /* 1rem = 16px */
  line-height: 1.3;
}

a {
  color: #175aac;
}

#content a {
  text-decoration: underline;
}

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

b,
strong {
  font-weight: 700;
}

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

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

#topbar {
  padding: 9px 0;
}

@media (min-width: 992px) {
  #topbar {
    background: url("../img/topbar-hintergrund.png") center / cover no-repeat;
  }
}

#logo {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 20px;
  text-decoration: none;
}

#logo .logoImg img {
  display: block;
}

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

#logo .logoTxt {
  font-size: clamp(1.125rem, 2vw, 1.6875rem);
  color: #404040;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  padding-left: 10px;
  line-height: 1;
}

#logo .logoTxt :is(b, strong) {
  color: #175aac;
  display: block;
  text-transform: uppercase;
  font-weight: 500;
  font-size: clamp(1.125rem, 2vw, 1.75rem);
  font-family: "Poppins", sans-serif;
}

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

@media (min-width: 992px) {
  #style h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #404040;
    width: unset;
    margin: 0 5px 0 0;
  }

  #style button {
    border: none;
    color: #175aac;
    display: inline-block;
    font-weight: 700;
    text-align: center;
    background: #ffffff;
    line-height: 1;
    font-size: 1rem;
    min-width: 36px;
    min-height: 36px;
    padding: 0 0 2px 0;
    margin-left: 10px;
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 10px 0 rgba(0, 0, 0, 0.1);
  }

  #style button:is(:hover, :focus) {
    color: #ffffff;
    background: #175aac;
  }

  #style + * {
    margin-left: 40px;
  }
}

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

#search {
  background: #ffffff;
  display: inline-flex;
  width: 100%;
  box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
  #search {
    max-width: 270px;
  }
}

#search_input {
  color: #666666;
  font-size: 1rem;
  font-style: normal;
  background: transparent;
  padding: 6px 14px;
  border: 0;
  width: 100%;
}

#search_submit {
  min-width: 48px;
  flex-shrink: 0;
  background: url("../img/lupe-icon.png") center top 5px no-repeat;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
}

#search_submit:is(:hover, :focus) {
  background-color: #175aac;
  background-position: center top -31px;
}

#search_input::placeholder {
  color: #666666 !important;
  opacity: 1 !important;
  font-style: italic !important;
}

@media (max-width: 991px) {
  #search {
    margin-top: 30px;
  }
}
/* #region ---------------------------------- navigation ---------------------------------------- */

/* 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;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
  }

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

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    background-color: #175aac;
  }

  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  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.open > ul {
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden;
  }

  nav.horizontally .navbar-nav li:is(: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) > ul {
    z-index: 1003;
  }
}

/* toplevel */

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

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

  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: 20px 0 19px 0;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
  }
}

nav.horizontally a[class*="toplevel"]::before {
  content: "";
  width: 0;
  height: 4px;
  display: block;
  position: absolute;
  left: 50%;
  bottom: 0;
  background-color: #ffffff;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 300ms linear, 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: #ffffff;
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

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

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

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

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]) + li:not(:nth-child(2)) {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
  content: "\203A \203A";
  display: inline-block;
  position: relative;
  bottom: 2px;
  position: absolute;
  left: 0;
  top: 8px;
  opacity: 0;
  transition: opacity 300ms linear;
}

/* 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: #175aac;
}

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

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

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

#slider {
  max-height: clamp(300px, 42vw, 400px);
  overflow: hidden;
  position: relative;
}

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

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

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

  .index #headerpic .nivo-controlNav {
    bottom: 115px;
  }
}

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

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

.slider-mask {
  display: none;
}

/* #region -------------------------------------- tab ------------------------------------------- */

#tabs {
  padding-top: 30px;
  hyphens: auto;
}

@media (min-width: 992px) {
  #tabs {
    padding-top: 0;
    position: relative;
    z-index: 60;
    margin-top: -100px;
  }
}

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

#tabs .tab {
  background: #ffffff url("../img/tab-hintergrund.png") center / cover no-repeat;
  border-radius: 20px;
  padding: 40px 20px 105px 20px;
  height: 100%;
  min-height: 100%;
  box-shadow: 0 60px 20px -50px rgba(0, 0, 0, 0.1);
}

#tabs .tab.tab2 {
  font-size: 1.5625rem;
  background: #175aac url("../img/deko-logo.png") bottom right no-repeat;
  padding-bottom: 40px;
}

@media (min-width: 992px) {
  #tabs .tab.tab2 {
    padding-left: 40px;
    padding-right: 40px;
  }
}

#tabs .tab .tabHeadline {
  font-size: 1.5625rem;
  text-transform: uppercase;
  margin-bottom: 0;
  padding-bottom: 20px;
  color: #175aac;
  font-weight: 700;
}

#tabs .tab.tab2 {
  font-size: 2.1875rem;
  padding-bottom: 0;
  text-transform: none;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  line-height: 1.2;
}

#tabs .tab.tab2,
#tabs .tab.tab2 :is(h1, h2, h3, h4, h5, h6, .tabHeadline) {
  color: #ffffff;
}

#tabs .tab.tab2 a {
  color: #ffffff;
  text-decoration: underline;
}

#tabs .tab.tab2 :is(b, strong) {
  font-size: clamp(2.1875rem, 4vw, 3rem);
  text-transform: uppercase;
  line-height: 1;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  line-height: 1.4;
}
#tabs .tab.tab2 :is(i) {
  font-size: clamp(1.25rem, 4vw, 1.5625rem);
  line-height: 1;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  line-height: 1.4;
  font-style: normal;
}

#tabs .tab_link a {
  color: #404040;
}

#tabs .tab_link_title a {
  font-weight: 700;
}

#tabs .tab_link_mehr {
  font-size: 0;
}

#tabs .tab_spacer {
  height: 15px;
}

/* #endregion ----------------------------------- tab ------------------------------------------- */

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

#tabs .tab_link_mehr a {
  font-size: 1.125rem;
  color: #404040;
  background: #ffffff;
  border-radius: 30px;
  border: 1px solid #ebb514;
  display: inline-block;
  padding: 8px 20px;
  text-decoration: none;
  font-family: "Work Sans", sans-serif;
}
#gallery a:not(.has-image):not([rel]) {
  font-size: 1.125rem;
  color: #404040;
  background: #ffffff;
  border-radius: 30px;
  border: 1px solid #ebb514;
  display: inline-block;
  padding: 8px 15px;
  text-decoration: none;
  font-family: "Work Sans", sans-serif;
}

#tabs .tab_link_mehr a {
  position: absolute;
  left: 50%;
  bottom: 40px;
  white-space: nowrap;
  transform: translateX(-50%);
}

#tabs .tab_link_mehr a::after,
#gallery a:not(.has-image):not([rel])::after {
  content: " \203A \203A";
}

#tabs .tab_link_mehr a:is(:hover, :focus),
#gallery a:not(.has-image):not([rel]):is(:hover, :focus) {
  color: #404040;
  background: #ebb514;
}

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

.index main {
  background: #f6f6f6;
}

#content {
  text-align: left;
  padding-top: clamp(40px, 4vw, 60px);
  padding-bottom: clamp(40px, 7vw, 80px);
}

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

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

h1,
.h1,
.legacy_h1,
:is(#facts .factsHeadline, #gallery) :is(h1, h2) {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2,
.h2,
.legacy_h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
}

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

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

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

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

/* ------------------------------------------- gallery ------------------------------------------ */

#gallery {
  padding: clamp(40px, 7vw, 80px) 0 clamp(70px, 7vw, 100px) 0;
  background: #fff url("../img/gallery-hintergrund.png") center bottom no-repeat;
}

#gallery img {
  display: block;
  width: 100%;
}

#gallery .btgrid > .row:has(img) {
  margin: 0;
}

#gallery .btgrid > .row:has(img) > div {
  padding: 0 1px;
}

#gallery :is(h4, h5, h6) {
  color: #12509b;
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 30px;
}

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

footer {
  margin-top: -20px;
  font-size: 0.9375rem;
  color: #404040;
  font-family: "Work Sans", sans-serif;
  line-height: 1.7;
}

footer::before {
  content: "";
  display: block;
  height: 100px;
  background: #175aac;
  margin: 0 15px;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

#footer {
  position: relative;
  padding: 40px 0 clamp(40px, 4vw, 60px) 0;
}

:is(#footer, #innerfooter) > .row {
  row-gap: 30px;
}

#footer::before,
#footer::after {
  content: "";
  display: block;
  width: 117px;
  height: 100px;
  position: absolute;
  top: -80px;
  pointer-events: none;
  background: #11488a linear-gradient(9deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.4) 51%) bottom -14px right / 102px 50px no-repeat;
}

#footer::before {
  left: 0;
}

#footer::after {
  right: 0;
  transform: scaleX(-1);
}

@media (min-width: 992px) {
  footer::before {
    margin: 0 158px;
  }

  #footer::before,
  #footer::after {
    width: 260px;
  }
}

#footerlogo {
  position: absolute;
  z-index: 2;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 991px) {
  #footerlogo {
    top: -150px;
  }

  #footerlogo img {
    max-width: 100px;
  }
}

#footer a {
  text-decoration: underline;
}

#footer .footerHeadline {
  font-size: 1.0625rem;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.5px;
}

#footer .footerHeadline::before {
  content: "";
  display: block;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ebb514;
  margin: 0 auto 15px auto;
  background-position: center;
  background-repeat: no-repeat;
}

#footer .tab1 .footerHeadline::before {
  background-image: url("../img/icon-fragen.png");
}

#footer .tab2 .footerHeadline::before {
  background-image: url("../img/icon-location.png");
}

#footer .tab3 .footerHeadline::before {
  background-image: url("../img/icon-mail.png");
}

#innerfooter {
  background-color: #11488a;
  padding: 26px 0;
}

#innerfooter ul {
  padding: 0;
}

@media (min-width: 576px) {
  #innerfooter li {
    display: inline-block;
  }

  #innerfooter li + li {
    margin-left: clamp(20px, 3vw, 40px);
  }
}

#innerfooter a {
  color: #ffffff;
}

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

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

#vernetzt {
  gap: 18px;
  text-align: right;
  font-size: 0.875rem;
  color: #ffffff;
  line-height: 1.3;
  text-decoration: none;
  font-family: "Work Sans", sans-serif;
}

#vernetzt strong {
  font-weight: 700;
}
#vernetzt span span {
  display: block;
}
