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

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

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

a {
   color: #004c97;
}

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

#content a {
   font-weight: normal;
   text-decoration: underline;
}

#content a:is(:hover, :focus) {
   text-decoration: none;
}
b,
strong {
   font-weight: 700;
}

@media (min-width: 1200px) {
   .row {
      max-width: 1100px;
      width: 100%;
   }
}

@media (min-width: 1400px) {
   .row {
      max-width: 1300px;
      width: 100%;
   }
}

@media (min-width: 1600px) {
   .row {
      max-width: 1440px;
      width: 100%;
   }
}


#overflow {
   overflow: hidden;
}

@media (max-width: 1000px) {
   #content_buttons_div {
      display: none;
   }
}
/* ------------------------------------------- logo --------------------------------------------- */

#topbar {
   padding-top: 25px;
   padding-bottom: 5px;
}

#topbar #logoName {
   font-size: clamp(1.25rem, 2.5vw, 2.5rem);
   color: #004c97;
}

#logo {
   display: inline-block;
   margin: 13px 0;
   background: #fff;
   box-shadow: 0px 0px 16px 0px rgba(0, 76, 151, 0.2);
   padding: 30px 15px 20px 15px;
}

@media (min-width: 992px) {
   #logo {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      margin: 0;
      transition: top 300ms, transform 300ms;
   }

   .is-sticky #logo {
    top: 0;
    transform: translateY(-30px);
   }
}

#logo img {
   display: block;
}

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

/* ----------------------------------------- contrast ------------------------------------------- */

#contrast_style {
   line-height: 0;
}

#contrast_style button {
   padding: 5px 2px;
   border: none;
   background: transparent;
   display: inline-block;
}

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

#style {
   margin-left: 50px;
}

#style button {
   border: none;
   color: #ffffff;
   display: inline-block;
   min-height: 32px;
   min-width: 32px;
   border-radius: 50%;
   text-align: center;
   background-color: #004c97;
   position: relative;
   padding: 0;
   font-weight: 700;
}

#style button + button {
   margin-left: 8px;
}

#style button:is(:hover, :focus) {
   color: #191919;
   background: #00a3e0;
}

/* -------------------------------------------- suche ------------------------------------------- */

#search {
   background: #fff;
   display: inline-flex;
   border-radius: 30px;
   width: 100%;
}

@media (min-width: 768px) {
   #search {
      max-width: 240px;
      margin: 0 0 0 25px;
   }
}

#search_input {
   color: #191919;
   font-size: 1rem;
   font-style: italic;
   background: transparent;
   border: 0;
   width: 100%;
   border-radius: 30px;
   padding: 3px 14px;
}

#search_submit {
   border: none;
   background: #004c97 url("../img/lupe-icon.png") center / 14px auto no-repeat;
   padding: 0;
   border-radius: 50%;
   cursor: pointer;
   margin: 0;
   font-size: 0;
   min-width: 30px;
   flex-shrink: 0;
   transition: transform 150ms linear;
}

#search_submit:is(:hover, :focus) {
   transform: scale(1.2);
}

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

/* #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: #004c97;
      color: #fff;
      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: #004c97;
      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: 4px;
   }
}

/* menu desktop */

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

   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;
      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: #ffffff;
   font-weight: 700;
   text-align: left;
   padding: 10px 15px;
   position: relative;
   font-size: 1.25rem;
   line-height: 1.2;
   text-decoration: none;
}

nav.horizontally a[class*="toplevel"]::after {
   content: "";
   position: absolute;
   width: 100%;
   height: 0;
   background: #00a3e0;
   left: 0;
   right: 0;
   bottom: 0;
   transition: all 200ms ease;
}

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

@media (min-width: 992px) {
   nav.horizontally a[class*="toplevel"] {
      padding: 15px 10px;
      text-align: center;
   }
}

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

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within) > a::after,
nav.horizontally li[class*="toplevel"] > a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"].open > a::after,
nav.horizontally li[class*="toplevel"].open > a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"][class*="_over"] > a::after,
nav.horizontally li[class*="toplevel"][class*="_over"] > a:is(:hover, :focus)::after {
   height: 5px;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
   padding: 10px 0;
   background-color: #ffffff;
   box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
}

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

@media (min-width: 992px) {
   nav.horizontally [class*="toplevel"] > ul {
      margin-top: 20px;
   }

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
   background-color: transparent;
   color: #191919;
   font-weight: 400;
   text-align: left;
   padding: 8px 30px;
   position: relative;
   font-size: 1.125rem;
   line-height: 1.2;
   text-decoration: none;
}

@media (max-width: 991px) {
   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) {
   color: #ffffff;
   background-color: #004c97;
}

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

/* -------------------------------------------- infobar ----------------------------------------- */

#infobar {
   background: rgba(255, 255, 255, 0.9);
   padding: 13px 0;
   border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
   #infobar {
      position: absolute;
      width: 100%;
      z-index: 21;
      top: 0;
      padding: 8px 0;
      border: none;
   }
}

#infobar > .row {
   row-gap: 8px;
}

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

#slider {
   max-height: clamp(300px, 52vw, 550px);
   position: relative;
}

@media (min-width: 992px) {
   body.index #slider {
      max-height: clamp(500px, 74vw, 715px);
   }

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

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

#headerpic .nivo-directionNav a {
   top: unset;
   bottom: 15px;
}

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

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

.slider-mask {
   display: none;
}

/* ----------------------------------------- scroll bottom -------------------------------------- */

#scrollBottom {
   font-size: 0;
   border-radius: 50%;
   display: block;
   width: 46px;
   height: 46px;
   text-align: center;
   background: rgba(0, 75, 151, 0.9);
   border: none;
   position: absolute;
   left: calc(50% - 23px);
   bottom: 40px;
   z-index: 50;
}

#scrollBottom:is(:hover, :focus) {
   background: #00a3e0;
}

#scrollBottom::after {
   content: "";
   width: 14px;
   height: 14px;
   margin-top: 10px;
   display: inline-block;
   border-left: 4px solid #00a3e0;
   border-bottom: 4px solid #00a3e0;
   transform: rotate(-45deg);
   transition: border 300ms linear;
}

#scrollBottom:is(:hover, :focus)::after {
   border-left: 4px solid #191919;
   border-bottom: 4px solid #191919;
}

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

main {
   text-align: left;
   padding-top: clamp(40px, 7vw, 70px);
   padding-bottom: clamp(40px, 7vw, 90px);
}

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

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

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

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

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

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

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

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

/* #region -------------------------------- aktuelles + news ------------------------------------ */

#TabSide {isolation: isolate;}

#TabSide .tab {
   box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
   background: #fff;
   padding: 50px 20px 20px 50px;
   margin-bottom: 60px;
   margin-top: -60px;
}

@media (min-width: 576px) {
    #TabSide .tab {
        margin: 30px 0;
    }

    #TabSide>.row+.row {
        margin-top: 30px;
    }
}

@media (min-width: 992px) {
    #TabSide .tab {
        margin: 50px 0;
    }

    #TabSide>.row+.row {
        margin-top: 70px;
    }
}

:is(.bannerLeft, .bannerRight)::before {
   content: "";
   display: block;
   width: 100%;
   height: 200px;
   background-position: center !important;
   background-size: cover !important;
   background-repeat: no-repeat !important;
}

@media (min-width: 576px) {
   :is(.bannerLeft, .bannerRight)::before {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 38vw;
      height: unset;
   }

   .bannerLeft::before {
      right: 68%;
   }

   .bannerRight::before {
      left: 68%;
   }
}

@media (min-width: 768px) {
   :is(.bannerLeft, .bannerRight)::before {
      width: 50vw;
      width: calc(50vw - 15px);
   }

   .bannerLeft::before {
      right: 50%;
      right: calc(50% + 15px);
   }

   .bannerRight::before {
      left: 50%;
      left: calc(50% + 15px);
   }
}

@media (min-width: 1930px) {
   :is(.bannerLeft, .bannerRight)::before {
      width: 1000px;
   }
}

.bannerLeft1 .tab::after {
    content: '';
    position: absolute;
    background: url(../img/wasserzeichen-wappen.png);
    width: 240px;
    height: 280px;
    bottom: -35px;
    right: -165px;
    z-index: -1;
}

#TabSide .tabHeadline {
   color: #004c97;
   font-size: clamp(1.375rem, 2.5vw, 2.1875rem);
   margin-bottom: 28px;
}

#TabSide :is(.tabHeadline, .tab_link_title) {
   font-weight: 700;
}

#TabSide .tab_spacer {
   height: 25px;
}

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

#TabSide .tab_link_mehr a,
.buttonStyle a {
   font-size: 0.875rem;
   color: #fff;
   background: #004c97;
   padding: 10px 20px;
   font-weight: 700;
   text-decoration: none;
}

#TabSide .tab_link_mehr a:is(:hover, :focus),
.buttonStyle a:is(:hover, :focus) {
   color: #191919;
   background: #00a3e0;
}

.buttonStyle a {
   margin-top: 30px;
   display: inline-block;
}

/* #endregion -------------------------------- aktuelles + news ------------------------------------ */

/* ---------------------------------------------- maps ------------------------------------------ */

#maps .row,
#maps .row > div {
   margin: 0;
   padding: 0;
}

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

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

#footer {
   background: #004c97 url(../img/wasserzeichen-wappen-weiss.png);
   background-repeat: no-repeat;
   background-position: left 45px center;
   color: #ffffff;
   padding: 26px 0;
}

#footer .tabHeadline {
   color: #fff;
   font-size: clamp(1.375rem, 2.5vw, 2.1875rem);
}

#footer .template-page a {
   color: #fff;
   text-decoration: underline;
}

@media (max-width: 767px) {
   #footer > .row > div + div {
      padding-top: 30px;
   }

   #footer > .row > div + div::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 1px;
      width: 100%;
      background: #fff;
   }
}

@media (min-width: 768px) and (max-width: 991px) {
   #footer > .row > div + div {
      padding-left: 20px;
   }

   #footer > .row > div + div::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 1px;
      background: #fff;
   }
   #footer > .row > div + div + div {
      padding-top: 30px;
   }

   #footer > .row > div + div + div::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 1px;
      width: 100%;
      background: #fff;
   }
}

@media (min-width: 992px) {
   #footer > .row > div + div {
      padding-left: 20px;
   }

   #footer > .row > div + div::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 1px;
      background: #fff;
   }
}

#footer > .row {
   row-gap: 20px;
}

#footer .innerfooter ul {
   padding: 0;
}

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

   .innerfooter li + li::before {
      content: "•";
      margin: 0 clamp(10px, 1.5vw, 15px);
      font-size: .875rem;
   }
}

.innerfooter a {
   color: #ffffff;
   text-decoration: none;
}

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

@media (min-width: 992px) {
   .innerfooter a {
      color: inherit;
   }

   .innerfooter a:is(:hover, :focus) {
      color: #004c97;
   }
}

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

#vernetzt {
   gap: 10px;
   text-align: right;
   font-size: 0.9375rem;
   color: #ffffff;
   line-height: 1.4;
   text-decoration: none;
   margin-bottom: 30px;
}

#vernetzt b {
   color: #fff;
   font-weight: 700;
}

#vernetzt span span {
   display: block;
}

/* ------------------------------------------ contrast ------------------------------------------ */

form [id^="search_submit"].contrast_grayscale {
   background-color: #ffffff;
}

#footer.contrast_dark_font, #maps.contrast_dark_font, #search_input.contrast_light_font {
   background: #fff !important;
}


#footer.contrast_light_font {
   background: #000 !important;
}
#logo.contrast_light_font div {
   background: #fff !important;
}
