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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-color: #096eb2 #ffffff;
  scrollbar-width: thin;
}

body {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  color: #404040;
  background: #fff;
  font-size: clamp(1rem, 2vw, 1.375rem);
  /* 1rem = 16px */
  line-height: 1.5;
  background-attachment: fixed;
  background-size: cover;
}

a {
  color: #096eb2;
}

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

b,
strong {
  font-weight: 600;
}

/* ----------------------------------------------- topbar ----------------------------------------------- */

#topbar {
  color: #096eb2;
}

@media (min-width: 992px) {
  #topbar {
    margin-bottom: 0;
    margin-top: 15px;
  }
}

#topbar > div.row:nth-child(1) {
  margin-bottom: 25px;
}

@media (max-width: 991px) {
  #topbar > div.row:nth-child(1) {
    margin-top: 10px;
  }
}

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

#logo {
  gap: 20px;
  text-decoration: none;
}

#logo .logoImg img {
  display: block;
}

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

@media (max-width: 767px) {
  #logo {
    margin-bottom: 30px;
  }
}

/* #region ------------------------------- Options ------------------------------------ */

@media (min-width: 992px) {
  #options {
    height: 150px;
    width: 100%;
  }
}
@media (max-width: 767px) {
  #options {
    margin-top: 30px;
  }
}

/* #region ------------------------------- contrast + styler ------------------------------------ */

#style + #contrast_style {
  margin-left: clamp(20px, 3vw, 50px);
}

#style,
#contrast_style {
  line-height: 1;
}
:is(#contrast_style, #style) h2 {
  font-size: 15px;
  font-weight: inherit;
  color: #404040;
  margin: 0 5px 15px 5px;
  font-weight: 300;
}
@media (min-width: 992px) and (max-width: 1199px) {
  #options {
    row-gap: 14px;
  }

  #style,
  #contrast_style {
    display: flex;
    align-items: center;
    column-gap: 5px;
  }

  :is(#contrast_style, #style) h2 {
    font-size: 15px;
    font-weight: inherit;
    color: #404040;
    margin: 0 5px 0px 5px;
    font-weight: 300;
  }
}

:is(#style) button {
  font-size: 1rem;
  padding: 0;
  border: none;
  color: #ffffff;
  display: inline-block;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  text-align: center;
  background: #096eb2;
  position: relative;
  line-height: 1;
}
:is(#contrast_style) button {
  font-size: 1rem;
  padding: 0;
  border: none;
  color: #096eb2;
  display: inline-block;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  text-align: center;
  background: #fff;
  position: relative;
  line-height: 1;
  border: solid 1px #096eb2;
}

:is(#style) button:is(:hover, :focus) {
  background: #07456f;
}
:is(#contrast_style) button:is(:hover, :focus) {
  background: #c7e1f3;
}

:is(#style, #contrast_style) button + button {
  margin-left: 2px;
}

#contrast_style button::after {
  content: "";
  display: block;
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  bottom: 9px;
  border-radius: 50%;
  border: 1px solid #4b4b4b;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) 50%, #4b4b4b 50%);
}

#contrast_style button:nth-of-type(2)::after {
  transform: scale(-1);
}

#contrast_style button:nth-of-type(3)::after {
  background: #ea5b0c;
}

/* #endregion ---------------------------- contrast + styler ------------------------------------ */

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

/* burgermenu for tablet */

@media (max-width: 991px) {
  #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: #096eb2;
    border-radius: 2px;
    position: absolute;
    width: 40px;
    height: 3px;
    left: 10px;
    transition: transform 200ms linear, opacity 200ms linear;
    display: block;
  }

  #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: #096eb2;
    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: 2px;
  }

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

/* menu desktop */

@media (min-width: 992px) {
  nav.navbar {
    background: #096eb2;
    padding: 10px;
    width: 100%;
  }

  nav.navbar .navbar-nav > li {
    display: block !important;
    width: 100%;
    float: none;
  }

  .navbar-default .navbar-nav li:is([class*="toplevel"], [class*="secondlevel"]):focus-within > ul {
    display: block;
  }
}

/* toplevel */

nav.navbar a[class*="toplevel"] {
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 8px 15px 8px 15px;
  position: relative;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}

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

nav.navbar li[class*="toplevel"]:not(:first-child) {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* toplevel-over */

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

/* secondlevel + thirdlevel dropdown-box */

nav.navbar [class*="toplevel"] ul {
  padding: 0;
  background-color: rgba(255, 255, 255, 0.8);
}

nav.navbar [class*="secondlevel"] > ul {
  background-color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid #096eb2;
  border-bottom: 1px solid #096eb2;
}

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

nav.navbar li:is([class*="_over"], [class*="open"]) > .dropdown-menu {
  display: block !important;
}

/* secondlevel + thirdlevel */

nav.navbar a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #404040;
  font-weight: 400;
  text-align: left;
  position: relative;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 8px 15px 8px 30px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}

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

nav.navbar a[class*="thirdlevel"] {
  padding: 8px 15px 8px 45px;
}

nav.navbar a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
  content: "";
  display: block;
  position: absolute;
  left: 15px;
  top: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 0;
  background: #096eb2;
  transition: opacity 300ms linear;
}

nav.navbar a[class*="thirdlevel"]::before {
  left: 30px;
}

/* secondlevel + thirdlevel over */

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

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

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

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

#slider,
.slider-wrapper {
  max-height: clamp(300px, 44vw, 430px);
  overflow: hidden;
  height: 100%;
}

@media (min-width: 768px) {
  #headerpic .nivo-directionNav a {
    top: auto;
    bottom: 12px;
  }

  #headerpic .nivo-controlNav {
    pointer-events: none;
  }

  #headerpic .nivo-controlNav a {
    pointer-events: auto;
  }
}

@media (min-width: 992px) {
  #headerpic .nivo-directionNav a {
    bottom: 18px;
  }
}

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

.slider-mask {
  display: none;
}

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

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

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

.compact {
  padding: 15px;
  background-color: #ffffff;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .compact {
    border-radius: 20px;
  }
}

@media (min-width: 768px) {
  .compact {
    padding: 20px 0 0 0;
    margin-top: clamp(30px, 4vw, 40px);
    margin-bottom: clamp(30px, 4vw, 60px);
  }
  .compactPadding {
    padding: 0 clamp(15px, 3vw, 30px);
  }
  #tabs23.compactPadding,
  #f5,
  #topbar {
    padding: 0 15px;
  }
}

#bg-left,
#bg-center {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 992px) {
  #contentBereich #content {
    padding-left: 30px;
  }
}

/* ------------------------------------------------ @23tab ----------------------------------------------- */
#tabs23 {
  margin-bottom: 60px;
}

#tabs23 .rowGrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  max-width: 1170px;
  width: 100%;
  margin: auto;
  gap: clamp(2px, 1.5vw, 30px);
}

#tabs23 .box {
  min-height: 200px;
  overflow: hidden;
}

#tabs23 .box3 {
  grid-column: 3/5;
  grid-row: 1/3;
}

#tabs23 .box4 {
  grid-column: 1/3;
  grid-row: 2/4;
}

@media (max-width: 767px) {
  #tabs23 .box1 {
    grid-column: 1/3;
  }

  #tabs23 .box5 {
    grid-column: 3/5;
  }
}

#tabs23 .banner,
#tabs23 img {
  height: 100% !important;
  max-width: unset;
  display: block;
  width: 100% !important;
  object-fit: cover;
  object-position: center;
}

#tabs23 .nivo-slice,
#tabs23 .slider-wrapper,
#tabs23 #slider {
  height: 100% !important;
  width: 100% !important;
}

#tabs23 .specialHeadline {
  color: #404040;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 35px;
  letter-spacing: 3.5px;
}

#tabs23 .specialHeadline :is(h1, h2, h3, h4, h5, h6) {
  text-transform: uppercase;
  color: #096eb2;
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0;
}

#tabs23 .galerieButton {
  margin-top: 35px;
}

#tabs23 .galerieButton a {
  display: inline-block;
  text-decoration: none;
  font-size: 1.125rem;
  color: #404040;
  font-weight: 600;
  letter-spacing: 3px;
  padding: 4px 16px;
  border-bottom: 2px solid #096eb2;
  transition: color 300ms linear, border-color 300ms linear;
}

#tabs23 .galerieButton a:hover,
#tabs23 .galerieButton a:focus {
  color: #096eb2;
  border-color: #096eb2;
}

#tabs23 .galerieButton a::after {
  content: " \203A";
}
/* ------------------------------------------ h1 - h6, newslink ----------------------------------------- */

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

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

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

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

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

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

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

/* ----------------------------------------------- @5f footer ----------------------------------------------- */

#f5 {
  padding-top: 20px;
  padding-bottom: 20px;
  background-color: #096eb2;
}
@media (min-width: 768px) {
  #f5 {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
}

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

@media (max-width: 767px) {
  #innerfooter {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
}

#innerfooter ul {
  padding: 0;
}

#innerfooter li {
  display: inline-block;
}

#innerfooter a {
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
}

#innerfooter a:hover,
#innerfooter a:focus {
  color: #ffffff;
  text-decoration: underline;
}

#innerfooter li + li::before {
  content: "";
  margin: 0 6px;
}

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

@media (max-width: 767px) {
  #innerfooter li {
    display: block;
    text-align: center;
    padding: 5px;
    margin: 0;
  }

  #innerfooter li + li::before {
    display: none;
  }
}

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

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

#vernetzt span span {
  display: block;
}

/* --------------------------------------------- Kontrast -------------------------------------------- */

.contrast_light_font .logoImg {
  background: #fff !important;
  padding: 10px;
}

.contrast_light_font #style button {
  border: solid 1px #fff;
}

.contrast_light_font #burgerButton::before,
.contrast_light_font #burgerButton::after,
.contrast_light_font #burgerButtonInner {
  background-color: #fff !important;
}
.contrast_dark_font #style button {
  border: solid 1px #000;
}

.contrast_dark_font #burgerButton::before,
.contrast_dark_font #burgerButton::after,
.contrast_dark_font #burgerButtonInner {
  background-color: #000 !important;
}

.contrast_light main,
.contrast_dark main {
  filter: none;
  background: none;
}
