@import url("https://fonts.verwaltungsportal.de/css/?family=Lato:300,400,700,300i,400i,700i%7CUbuntu:400,700,400i,700i");
@import url("https://fonts.verwaltungsportal.de/css/?family=Architects+Daughter:400");

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

body {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  color: #3a322b;
  background: #ffffff;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.5;
  padding-bottom: 0 !important;
}

a {
  color: #d83218;
}

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

b,
strong {
  font-weight: 700;
}

.overflow {
  overflow: clip;
  position: relative;
}
/* ------------------------------------------ contact ------------------------------------------- */

.contact {
  background-color: #025a9c;
  color: #ffffff;
  font-size: 1rem;
  padding: 15px 0;
}

@media (min-width: 992px) {
  .contact {
    padding: 6px 0;
  }
}

.contact p {
  margin: 0;
  display: inline-block;
}

.contact p + p {
  margin-left: clamp(15px, 2vw, 25px);
}

.contact a {
  color: #ffffff;
  display: inline-block;
  text-decoration: underline;
}

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

#logo {
  display: inline-block;
  margin: 14px 0;
}

#logo img {
  display: block;
}

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

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

nav.horizontally {
  background: #fff;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}

/* 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: #025a9c;
    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: 5px;
  }

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

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

  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: #025a9c;
  font-weight: 700;
  text-align: left;
  padding: 12px 35px;
  position: relative;
  font-size: 1.25rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 300ms linear, color 300ms linear, padding 150ms linear;
}

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

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

  .is-sticky nav.horizontally a[class*="toplevel"] {
    padding: 25px 10px;
  }

  .navbar-default .navbar-nav > li + li {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
  }
}

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

/* secondlevel + thirdlevel dropdown-box */

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

nav.horizontally [class*="toplevel"] > ul {
  background: #025a9c;
}

nav.horizontally [class*="secondlevel"] > ul {
  margin: 0;
  background: #f6f6f6;
}

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

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

  nav.horizontally [class*="toplevel"] > ul::before {
    content: "";
    position: absolute;
    top: -12px;
    left: calc(50% - 20px);
    width: 40px;
    height: 12px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: #025a9c;
  }

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

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

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

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

/* secondlevel + thirdlevel */

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

@media (min-width: 992px) {
  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    text-align: center;
    padding-left: 25px;
    padding-right: 25px;
  }
}

nav.horizontally a[class*="secondlevel"] {
  color: #ffffff;
}

nav.horizontally a[class*="thirdlevel"] {
  color: #025a9c;
}

/* secondlevel + thirdlevel over */

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

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

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

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

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

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

#headerpic {
  padding: 0;
  position: relative;
  background-color: #f9f9f9;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

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

.slider-mask {
  display: none;
}

#bannerSlogan {
  background: #025a9c;
  width: 100%;
  color: #fff;
  font-weight: 400;
  font-size: 1.875rem;
  padding: 5px 0;
  font-family: 'Architects Daughter', sans-serif;
}

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

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

body #content:not(:has(#welcomepage-wrapper)) {
  text-align: left;
  padding-top: clamp(30px, 4vw, 60px);
  padding-bottom: clamp(40px, 4vw, 60px);
}

#contentbottom_right {
  display: none;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
  color: #025a9c;
  font-weight: 400;
  line-height: 1.2;
  font-family: 'Architects Daughter', sans-serif;
}

h1,
.h1,
.legacy_h1 {
  font-size: 1.875rem;
}

h2,
.h2,
.legacy_h2 {
  font-size: 1.75rem;
}

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

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

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

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

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

#footer {
  background: #025a9c;
  padding: 0 0 35px 0;
  font-weight: 400;
  font-size: 1.125rem;
  color: #fff;
}

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

.footerInhalt {
  line-height: 1.4;
}

@media (max-width: 991px) {
  #footer .iframetab {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

#footer .footer-headline {
  font-weight: 400;
  color: inherit;
  margin: 0 0 13px 0;
  font-size: 1.375rem;
}

@media (max-width: 991px) {
  .footerInhalt {
    gap: 30px;
  }
}

.bewertungen {
  background: #fff;
  color: #3a322b;
  padding: 15px;
  height: 100%;
}

#footer .bewertungen a {
  color: #d83218;
  text-decoration: none;
}

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

.bewertungen :is(h1, h2, h3, h4, h5, h6),
.bewertungen .tabHeadline {
  color: #025a9c;
}
/* ----------------------------------------------- @5f footer ----------------------------------------------- */

#f5 {
  padding-top: 12px;
  padding-bottom: 12px;
}
/* --------------------------------------------- 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: #3a322b;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
}

#innerfooter a:hover,
#innerfooter a:focus {
  color: #d83218;
  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;
  }
}

#footer .iframetab iframe,
#footer .iframetab .iframe-wrapper-manual-enabling {
  min-width: 100% !important;
  width: 100% !important;
  display: block;
}

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

#scroll-top-btn {
  display: inline-block;
  background: #f6f6f6 url(../img/nach-oben.png) center right 30px / 12px auto no-repeat;
  font-size: 1rem;
  padding: 10px 60px 12px 40px;
  text-decoration: none;
  position: relative;
  top: -26px;
  right: 0%;
  border-radius: 4px;
  color: #025a9c !important;
  text-decoration: none !important;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.4);
  -webkit-box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.4);
}
#scroll-top-btn:is(:hover, :focus) {
  background: #d83218 url(../img/nach-oben-hover.png) center right 30px / 12px auto no-repeat;
  text-decoration: none !important;
  color: #fff !important;
}

@media (min-width: 768px) {
  #scroll-top-btn {
    right: 9%;
  }
}
/* #endregion ------------------------------- scroll top ---------------------------------------- */
/* --------------------------------------------- vernetzt -------------------------------------------- */

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

#vernetzt span span {
  display: block;
}

#vernetzt b,
#vernetzt strong {
  font-weight: 400;
}

#vernetzt b:is(:hover, :focus),
#vernetzt strong:is(:hover, :focus) {
  text-decoration: underline;
}
/* #endregion -------------------------------- footer ------------------------------------------- */
