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

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

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

a {
  color: #4b800a;
}

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

b,
strong {
  font-weight: 700;
}

/* ----------------------------------------------- @3tp topbar ----------------------------------------------- */

#tp3 {
  color: #ffffff;
  padding-top: 10px;
  padding-bottom: 10px;
  background: #396504;
}

@media (max-width: 991px) {
  #tp3 > .row > * + * {
    margin-top: 10px;
  }
}

@media (max-width: 575px) {
  #tp3 > .row > * > * + * {
    margin-top: 10px;
  }
}

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

#tp3 span {
  color: #ffffff;
  font-size: 0.875rem;
  padding-right: 10px;
  font-weight: 600;
}

/* ------------------------------------------------ contrast_style ---------------------------------------------- */

#contrast_style button {
  color: #000000;
  padding: 0;
  font-size: 0;
  border: solid 1px #4b4b4b;
  display: inline-block;
  text-align: center;
  width: 29px;
  height: 29px;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.9);
  transition: background 300ms linear;
  position: relative;
  z-index: 1;
  border-radius: 50%;
}

#contrast_style button:hover,
#contrast_style button:focus {
  background: #b9cf68;
}

#contrast_style * + * {
  margin-left: 3px;
}

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

@media (min-width: 992px) {
  #style {
    margin-left: 30px;
  }
}
#style::before {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  width: 1px;
  height: 100%;
  bottom: 0px;
  top: 0;
  margin: auto;
  margin-left: auto;
  z-index: 0;
  pointer-events: none;
  display: block;
  margin-left: -13px;
}

#style button {
  padding: 0;
  border: none;
  color: #fff;
  display: inline-block;
  min-width: 29px;
  min-height: 29px;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  position: relative;
  line-height: 1;
  transition: color 300ms linear, background 300ms linear;
  border-radius: 50%;
  background-color: #396504;
  margin-left: 0px;
}

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

#style button:hover,
#style button:focus {
  color: #fff;
  background: #717171;
}

#style button + button::before {
  content: "";
  position: absolute;
  background: #fff;
  width: 1px;
  height: 50%;
  bottom: 0px;
  top: 0;
  margin: auto;
  z-index: 0;
  pointer-events: none;
  left: -3px;
  display: block;
}
/* ----------------------------------------------- search ----------------------------------------------- */

form[id^="search"] {
  min-height: 35px;
  display: block;
  position: relative;
  background: #717171;
}

@media (max-width: 575px) {
  form[id^="search"] {
    display: inline-block;
    max-width: 222px;
  }
}

@media (min-width: 576px) {
  form[id^="search"] {
    margin-left: 30px;
  }
}

form [id^="search_input"] {
  font-size: 0.875rem;
  color: #fff;
  font-style: normal;
  background: transparent;
  padding: 0;
  border: 0;
  padding-left: 14px;
  padding-right: 84px;
  min-height: 35px;
  width: 100%;
  display: block;
  opacity: 1;
}

form [id^="search_submit"] {
  width: 40px;
  background: url("../img/lupe.png") center no-repeat;
  /*Replace url with ("../img/YOUR-IMAGE.png")*/
  padding: 0;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 0;
  font-size: 0;
  transition: background 200ms linear, top 200ms linear, bottom 200ms linear;
}

form [id^="search_submit"]:hover,
form [id^="search_submit"]:focus {
  top: 0;
  bottom: 0;
  background-color: #b9cf68;
}

[id^="search_input"]::-ms-input-placeholder {
  color: #fff !important;
}

[id^="search_input"]::-webkit-input-placeholder {
  color: #fff !important;
}

[id^="search_input"]::-moz-placeholder {
  opacity: 1;
}

[id^="search_input"]:-moz-placeholder {
  opacity: 1;
}

/* für :focus-visible -> setzt die Umrandung -3px weiter hinein */
form[id^="search"],
form [id^="search_input"],
form [id^="search_submit"] {
  outline-offset: -3px;
}
/* ------------------------------------------- logo --------------------------------------------- */

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

#logo img {
  display: block;
}

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

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

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

nav.horizontally {
  border-bottom: 6px solid #396504;
}

/* burgermenu for tablet */
nav.horizontally {
  background-color: #fff;
}
@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 !important;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
  }

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

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

/* menu desktop */

@media (min-width: 992px) {
  .is-sticky nav.horizontally {
    background-color: #fff;
  }
  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  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.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: #262626;
  font-weight: 400;
  text-align: left;
  padding: 12px 15px 16px 15px;
  position: relative;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
}

nav.horizontally a[class*="toplevel"]::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 6px;
  bottom: -1px;
  transition: all 300ms ease;
  background: #396504;
  left: 0;
  margin: auto;
  right: 0;
}

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

@media (min-width: 992px) {
  nav.horizontally a[class*="toplevel"] {
    padding: 30px 10px 33px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
  }

  .navbar-default .navbar-nav > li > a::after {
    bottom: -6px;
  }
}

/* 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: #396504;
  font-weight: 600;
  background-color: transparent;
}

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 {
  background: #717171;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  padding: 10px 0;
  background-color: #ffffff;
}

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

  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: 10px;
    left: 0;
    right: 0;
    top: -10px;
  }

  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: #262626;
  font-weight: 400;
  text-align: left;
  padding: 8px 30px;
  position: relative;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

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

@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: #fff;
  background-color: #396504;
}

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

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

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

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

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

#headerpic {
  padding: 0;

  position: relative;
}

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

.slider-mask {
  display: none;
}

/* ------------------------------------------ tab buttons --------------------------------------- */

.buttonStyle a:not(:is([href*="mailto"], [href*="tel"])) {
  color: #fff;
  background: #717171;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 9px 22px;
  text-decoration: none;
  display: inline-block;
  font-family: "Open Sans", sans-serif;
  margin-top: 15px;
}

.buttonStyle a:not(:is([href*="mailto"], [href*="tel"])):is(:hover, :focus) {
  background: #4b800a;
}

.buttonStyle-2 a:not(:is([href*="mailto"], [href*="tel"])) {
  color: #262626;
  background: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 8px 22px;
  text-decoration: none;
  display: inline-block;
  font-family: "Open Sans", sans-serif;
}

.buttonStyle-2 a:not(:is([href*="mailto"], [href*="tel"])):is(:hover, :focus) {
  background: #717171;
  color: #fff;
}

.buttonStyle-3 a:not(:is([href*="mailto"], [href*="tel"])) {
  color: #fff;
  background: #396504;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 8px 18px;
  text-decoration: none;
  display: inline-block;
  font-family: "Open Sans", sans-serif;
  line-height: 1.5;
}

.buttonStyle-3 a:not(:is([href*="mailto"], [href*="tel"])):is(:hover, :focus) {
  background: #fff;
  color: #262626;
}
/* #region ------------------------------------- teaser ----------------------------------------- */

#teaser {
  background: #ffffff;
  color: #262626;
  box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.04);
  -webkit-box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.04);
  -moz-box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.04);
}

#teaser a:is([href*="mailto"], [href*="tel"]) {
  color: inherit;
  text-decoration: underline;
}

#teaser .tabHeadline {
  color: #262626;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

#teaser > .row > * {
  padding: 25px 15px;
}

#teaser > .row > *:nth-child(2) {
  background: #ffffff;
}

#teaser > .row > *:nth-child(3) {
  background: #4b800a;
  color: #fff;
}

#teaser > .row > *:nth-child(3) .tabHeadline {
  color: #fff;
  font-size: 1.625rem;
}
#teaser .tabTeaser1 {
  position: relative;
}
#teaser .tabTeaser1::before {
  content: "";
  position: absolute;
  background: rgba(113, 113, 113, 0.4);
  width: 1px;
  height: 80%;
  bottom: 10%;
  z-index: 0;
  pointer-events: none;
  right: 0px;
  display: block;
}
@media (min-width: 1200px) {
  #teaser > .row > *:nth-child(1) {
    background: url("../img/icon-leistungsspektrum.png") top 38px left 50px no-repeat;
    padding: 45px 30px 45px 140px;
  }

  #teaser > .row > *:nth-child(2) {
    background: url("../img/icon-medizinische-versorgung.png") top 38px left 50px no-repeat #fff;
    padding: 45px 30px 45px 140px;
  }

  #teaser > .row > *:nth-child(3) {
    background: url("../img/krankenhaus-stethoskop-ein-linien-kunstzeichnung.png") bottom 10px right 0px no-repeat #4b800a;
    padding: 50px 225px 40px 60px;
    font-size: 1.375rem;
    font-weight: 600;
  }
}

/* #endregion ---------------------------------- teaser ----------------------------------------- */

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

#content {
  text-align: left;
  padding-top: clamp(30px, 5vw, 70px);
  padding-bottom: clamp(40px, 6vw, 60px);
}

body.index #content {
  padding-bottom: 0;
}
/* --------------------------------------------- tabs ------------------------------------------- */

#tabs {
  padding: clamp(35px, 5vw, 75px) 0;
}

#tabs > .row {
  background: #4b800a;
  color: #ffffff;
  font-size: 1rem;
  max-width: 1170px;
}

#tabs > .row > * {
  padding: 20px 15px;
}

@media (min-width: 1200px) {
  #tabs > .row > * {
    padding: 60px 45px 75px 55px;
  }
}

#tabs > .row > *:nth-child(2) {
  background: #396504;
}

#tabs > .row::after {
  content: "";
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 300px;
  width: 100%;
}

@media (min-width: 992px) {
  #tabs > .row::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 33.33%;
    height: auto;
  }
}

#tabs :is(h1, h2, h3) {
  color: #ffffff;
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 5px;
}
#tabs :is(h4, h5, h6) {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 25px;
  font-weight: 400;
}

#tabs > .row > *:nth-child(2) .template-page a:is([href*="mailto"], [href*="tel"]) {
  text-decoration: underline;
  color: #fff;
}

#tabs .tabLeistung ul > li {
  position: relative;
  padding-left: 26px;
  min-height: 16px;
  transition: color 300ms linear;
  background: url("../img/check-icon.png") top 10px left / 16px auto no-repeat;
}

#tabs .tabLeistung ul {
  margin: 0;
  list-style: none;
}

#tabs .tabLeistung ul li::before {
  display: none;
}
#tabs .tabLeistung ul li {
  padding: 5px 28px;
}
/* ------------------------------------------- tab, tab1 ---------------------------------------- */

#breaker {
  padding: clamp(35px, 8vw, 83px) 0 clamp(35px, 6vw, 68px) 0;
  color: #fff;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-size: clamp(1.25rem, 2vw, 1.375rem);
  box-shadow: inset 0 0 0 50vw rgba(113, 113, 113, 0.9);
  background-color: #717171;
  overflow: hidden;
}

@media (min-width: 992px) {
  :is(#breaker) > .row:first-child::before {
    content: "";
    position: absolute;
    pointer-events: none;
    display: block;
  }

  #breaker > .row:first-child::before {
    background: url("../img/eine-reihe-von-medizinischen-symbolen-auf-weissem-hintergrund.png") no-repeat;
    width: 807px;
    height: 331px;
    top: -90px;
    left: calc(56% + 52px);
  }
}

:is(#breaker) :is(h1, h2, h3, h4, h5, h6) {
  color: #fff;
  font-size: clamp(1.875rem, 4vw, 2.125rem);
  font-weight: 700;
}

#breaker :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 17px;
}

#breaker {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
}
@media (min-width: 1200px) {
  #breaker {
    line-height: 1;
  }
}
/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

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

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

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

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

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

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

footer {
  padding: 24px 0;
  background: #ffffff;
  color: #262626;
}

footer > .row {
  row-gap: 25px;
}

#innerfooter ul {
  padding: 0;
}

#innerfooter a {
  color: #262626;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9375rem;
  border-radius: 2px;
  padding: 2px 4px;
}

#innerfooter ul a:is(:hover, :focus) {
  color: #396504;
  font-weight: 600;
}

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

  #innerfooter ul li + li::before {
    content: "•";
    margin: 0 clamp(10px, 2vw, 20px);
    color: #262626;
  }
}

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

#vernetzt {
  gap: 18px;
  text-align: right;
  font-size: 0.875rem;
  color: #262626;
  line-height: 1.4;
  font-weight: 400;
  text-decoration: none;
}

#vernetzt span span {
  display: block;
}

/* --------------------------------------------- kontrast --------------------------------------- */
.contrast_light_font #logo {
  background-color: #fff !important;
}

.contrast_dark_font form [id^="search_submit"] {
  background-color: #000 !important;
}
.contrast_dark_font #search_input {
  background-color: #fff !important;
}

.contrast_dark_font #breaker .row {
  background-color: #fff !important;
}

.contrast_dark_font #teaser > .row > :nth-child(3) {
  background-color: #fff !important;
}

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