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

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

body {
  font-family: "Golos Text", sans-serif;
  color: #222222;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.5;
  background-color: #fff;
}

a {
  color: #9d673f;
}

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

#content a,
b,
strong {
  font-weight: 600;
}

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

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
  nav.horizontally {
    padding: 0px 0;
    background: #ffffff;
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.1);
  }

  #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: #426536;
    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: 5px;
  }
}

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    padding: 23px 0;
    transition: box-shadow 200ms linear, background-color 200ms linear;
  }

  .is-sticky nav.horizontally {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.1);
  }

  nav.horizontally > .row {
    max-width: 1550px;
    width: 100%;
  }

  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 6px;
    padding: 0 12px;
    flex-wrap: wrap;
  }

  .is-sticky nav.horizontally .navbar-nav {
    background: transparent;
  }

  nav.horizontally .navbar-nav ul {
    position: absolute;
    top: 100%;
    left: -30px;
    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:focus-within, :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-within) > ul {
    z-index: 1003;
  }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
  color: #222222;
  font-weight: 600;
  text-align: left;
  padding: 12px 35px 12px 15px;
  position: relative;
  font-size: 1.375rem;
  line-height: 1.2;
  text-decoration: none;
  hyphens: auto;
  font-family: "Khand", sans-serif;
}

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

@media (min-width: 992px) {
  nav.horizontally li[class*="toplevel"] + li {
    margin-left: 12px;
  }

  nav.horizontally a[class*="toplevel"] {
    padding: 7px 0;
    text-align: center;
  }

  nav.horizontally li.dropdownpr > a[class*="toplevel"]::before {
    content: "";
    width: 4px;
    height: 4px;
    display: block;
    position: absolute;
    left: calc(50% - 2px);
    bottom: 0;
    border-radius: 50%;
    background-color: #333333;
    transition: opacity 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: #9d673f;
  background-color: transparent;
}

@media (min-width: 992px) {
  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;
  }
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px solid #b3b3b3;
  padding: 15px;
  hyphens: auto;
}

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

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

@media (min-width: 992px) {
  nav.horizontally [class*="toplevel"] ul {
    border-radius: 20px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  nav.horizontally [class*="toplevel"] > ul {
    margin-top: 20px;
  }

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #222222;
  font-weight: 400;
  text-align: left;
  padding: 10px 15px;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 6px;
}

/* 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) {
  background: #426536;
  color: #ffffff;
}

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

/* #region --------------------------------- suche + select ------------------------------------- */

#controls {
  position: static;
  z-index: 5;
  margin-top: 15px;
}

@media (min-width: 992px) {
  #controls {
    z-index: 111;
  }
}
@media (min-width: 1200px) {
  #topbar > .row {
    max-width: 1550px;
    width: 100%;
  }
}

#suche,
#select summary {
  width: 40px;
  height: 40px;
  position: relative;
}

@media (min-width: 992px) {
  #suche,
  #select summary {
    width: 42px;
    height: 42px;
  }
}

/* suche */

#suche {
  display: grid;
  place-items: center;
}

@media (min-width: 992px) {
  #suche::after {
    content: "";
    width: 0;
    height: 0;
    display: inline-block;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: width 200ms linear, height 200ms linear;
    background: rgba(255, 255, 255, 0.4);
    z-index: -1;
  }

  #suche:is(:hover, :focus)::after {
    width: 100%;
    height: 100%;
  }
}

/* select */

#select {
  margin-left: 40px;
  font-size: 1rem;
}

@media (max-width: 991px) {
  #select {
    margin: 0 14px;
  }

  #select div[class*="col"] {
    padding: 0px;
  }
}

#select summary {
  cursor: pointer;
  background: #426536 url("../img/kontakt-icon.png") center no-repeat;
  font-size: 0 !important;
  list-style: none;
  border-radius: 6px;
}

#select summary::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 15px 15px 15px;
  border-color: transparent transparent #426536 transparent;
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}

@media (min-width: 992px) {
  #select summary::after {
    top: 49px;
  }
}

#select[open] summary::after {
  opacity: 1;
}

/* contact tab */

#contact-content {
  position: absolute;
  top: calc(100% + 20px);
  left: 15px;
  right: 15px;
  background: #426536;
  color: #ffffff;
  border-radius: 6px;
  padding: 32px 28px;
  font-size: 1rem;
  transition: all 300ms linear;
}

@media (min-width: 992px) {
  #contact-content {
    width: 100%;
    left: unset;
    right: 15px;
    max-width: 290px;
  }
}

#contact-content :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

#contact-content :is(h1, h2, h3, h4, h5, h6, a) {
  color: #fff;
}

#contact-content a {
  text-decoration: underline;
}

/* #endregion ------------------------------ suche + select ------------------------------------- */

/* #region -------------------------------------- header ---------------------------------------- */

@media (min-width: 576px) {
  header {
    z-index: 1;
    position: relative;
    background: url(../img/overlay-beige.png) top left no-repeat;
  }

  header::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 49%;
    clip-path: polygon(52% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: -1;
    box-shadow: inset 0 0 0 100vw rgba(255, 255, 255, 0.8);
  }
}

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

@media (min-width: 992px) {
  #headerpic > .row {
    max-width: 1550px;
    width: 100%;
  }
}

.bannerSideTab h2 {
  font-size: clamp(1.875rem, 8vw, 6.25rem);
  line-height: 1.1;
  margin-bottom: 10px;
  font-family: "Khand", sans-serif;
}
.bannerSideTab {
  line-height: 1.7;
  margin-top: 50px;
}
.bannerSideTab h2 :is(i, em) {
  color: #9d673f;
  font-style: normal;
  display: block;
  font-family: "Golos Text", sans-serif;
  margin-bottom: 5px;
  line-height: 1;
}
.bannerSideTab a {
  margin-top: 15px !important;
}
.bannerSideTab h3 {
  color: #9d673f !important;
}
/* banner */

.slider-wrapper {
  border: 20px solid #ffffff;
}

@media (max-width: 767px) {
  .slider-wrapper {
    box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.2);
  }
}

body:not(.index) .slider-wrapper {
  border-left: unset;
  border-bottom: unset;
}

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

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

#headerpic {
  margin: 0 auto;
  position: relative;
  width: 100%;
  padding: 0px 0 clamp(40px, 7vw, 98px) 0;
}

body:not(.index) #headerpic {
  padding: 0;
}

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

.slider-mask {
  display: none;
}

/* #endregion ----------------------------------- header ---------------------------------------- */

/* --------------------------------------------- markerTab -------------------------------------- */

#markerTab {
  background: #e3dbc8 url(../img/icon-team.png) center right calc(50% + 680px) no-repeat;
  padding: clamp(30px, 4vw, 50px) 0;
  font-size: 1rem;
}

#markerTab > .row {
  row-gap: 15px;
}

#markerTab,
#markerTab :is(h1, h2, h3, h4, h5, h6) {
  color: #222222;
  font-family: "Golos Text", sans-serif;
}

#markerTab :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 400;
  margin: 0;
}

/* -------------------------------------------- buttonStyle ------------------------------------- */

.buttonStyle a:not(.has-image):not([rel]) {
  display: inline-block;
  padding: 13px 20px;
  color: #ffffff;
  font-size: 1rem;
  background: #426536;
  border-radius: 6px;
  text-decoration: none;
  font-family: "Golos Text", sans-serif;
}

.buttonStyle a:not(.has-image):not([rel]):is(:hover, :focus) {
  background: #9d673f;
}

.buttonStyle.buttonColor a:not(.has-image):not([rel]) {
  background: #9d673f;
}

.buttonStyle.buttonColor a:not(.has-image):not([rel]):is(:hover, :focus) {
  background: #426536;
}

:is(.bannerSideTab.buttonStyle, #infoTab .buttonStyle) a:not(.has-image):not([rel]) {
  margin-top: clamp(20px, 3vw, 40px);
}

/* #region --------------------------------------- tabs ----------------------------------------- */

#tabs {
  position: relative;
  padding-bottom: clamp(60px, 7vw, 95px);
}

#tabs::before {
  content: "";
  position: absolute;
  right: 0;
  top: 100px;
  bottom: 0;
  width: 59%;
  clip-path: polygon(15% 0, 100% 0%, 100% 100%, 0% 100%);
  background: rgba(243, 243, 243, 1);
}

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

#tabs .tab {
  min-height: 100%;
  padding: clamp(30px, 3vw, 40px) clamp(15px, 2vw, 30px);
  border: 1px solid #b3b3b3;
  border-radius: 20px;
  font-size: 1rem;
  background: #ffffff;
}
#tabs .tab a {
  color: #9d673f;
  font-size: 1rem;
}

#tabs .tabHeadline {
  color: #426536;
  margin-bottom: 10px;
  hyphens: auto;
  font-family: "Khand", sans-serif;
  font-size: clamp(1.875rem, 4vw, 2.1875rem);
}

#tabs .tabHeadline::before {
  content: "";
  background: #e3dbc8 no-repeat;
  border-radius: 6px;
  display: block;
  margin: 0 auto clamp(20px, 2vw, 30px) auto;
  width: 101px;
  height: 101px;
}

#tabs .tab1 .tabHeadline::before {
  background-image: url(../img/icon-offenes-konzept.png);
  background-position: center;
}

#tabs .tab2 .tabHeadline::before {
  background-image: url(../img/icon-tagesablauf.png);
  background-position: center;
}

#tabs .tab3 .tabHeadline::before {
  background-image: url(../img/icon-unsere-aussenstelle.png);
  background-position: center;
}

@media (min-width: 1200px) {
  #tabs > .row::before {
    content: "";
    position: absolute;
    background: url(../img/hand-gelb.png) no-repeat;
    width: 298px;
    height: 409px;
    bottom: -95px;
    z-index: 0;
    pointer-events: none;
    left: -330px;
    display: block;
  }
}

/* #endregion ------------------------------------ tabs ----------------------------------------- */

/* #region -------------------------------------- infoTab --------------------------------------- */

#infoTab {
  position: relative;
  padding: clamp(60px, 7vw, 100px) 0;
}

@media (min-width: 768px) {
  #infoTab {
    padding-bottom: clamp(190px, 20vw, 230px);
  }
}

#infoTab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 41%;
  clip-path: polygon(0 0, 100% 0%, 58% 100%, 0% 100%);
  box-shadow: inset 0 0 0 100vw rgba(255, 255, 255, 0.8);
}

#infoTab h2 {
  line-height: 1.2;
  margin-bottom: clamp(15px, 2vw, 30px);
  margin-bottom: 5px;
}

#infoTab h2 :is(i, em) {
  color: #9d673f;
  margin-bottom: 5px;
  font-style: normal;
  display: block;
  font-family: "Golos Text", sans-serif;
}
#infoTab a {
  margin-top: 10px;
}
#infoTab .banner {
  border: 20px solid #ffffff;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
  #infoTab .template-page {
    background: #ffffff;
    padding: 10px 20px 30px 20px;
    box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.2);
  }
}

@media (min-width: 768px) {
  #infoTab .banner {
    height: 100%;
    border-right: none;
    box-shadow: none;
  }
}

#infoTab .banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* #endregion ----------------------------------- infoTab --------------------------------------- */

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

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

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

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

:is(.bannerSideTab, #infoTab) h2 :is(i, em) {
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
}

#infoTab h2,
h1,
.h1,
.legacy_h1 {
  font-size: clamp(1.875rem, 4vw, 3.125rem);
}

h2,
.h2,
.legacy_h2,
:is(#markerTab, #tabs .tabHeadline, footer .tabHeadline) :is(h1, h2, h3, h4, h5, h6) {
  font-size: clamp(1.75rem, 3.5vw, 1.875rem);
}

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.4rem;
}

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

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

footer {
  font-size: 1rem;
  position: relative;
}

footer,
footer > .row {
  background: #e3dbc8;
}

@media (min-width: 768px) {
  .index footer {
    background: none;
  }
}

body.index footer > .row {
  padding: clamp(40px, 4vw, 60px) clamp(15px, 5vw, 85px) clamp(40px, 4vw, 60px) clamp(15px, 3vw, 45px);
  z-index: 1;
}
body:not(.index) footer > .row {
  padding: clamp(40px, 4vw, 60px) 0;
  z-index: 1;
}
@media (max-width: 767px) {
  footer .row > * + * {
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    margin-top: 25px;
    padding-top: 25px;
  }
}

@media (min-width: 768px) {
  footer > .row {
    max-width: 1170px;
    width: 100%;
  }

  footer > .row > * + * {
    border-left: 1px solid rgba(0, 0, 0, 0.3);
  }

  .index footer {
    margin-top: -130px;
  }

  footer > .row > *:nth-child(2) {
    padding-left: 30px;
  }
}

@media (min-width: 992px) {
  footer > .row > *:nth-child(1) {
    padding-right: 30px;
  }

  footer > .row > *:nth-child(2) {
    padding-left: 60px;
  }
}

@media (min-width: 1200px) {
  .index footer {
    padding-bottom: 100px;
  }
}

footer > .row,
footer :is(h1, h2, h3, h4, h5, h6, a) {
  color: #222222;
}

footer .tabHeadline {
  margin-bottom: 25px;
}

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

#innerfooter ul {
  padding: 0;
}

@media (min-width: 768px) {
  #innerfooter ul {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    row-gap: 15px;
    flex-wrap: wrap;
  }

  #innerfooter li:not(:first-child) {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
  }

  #innerfooter li + li::before {
    content: "•";
    color: #222222;
    flex-grow: 1;
    margin: 0 10px;
  }
}
footer #innerfooter {
  padding: 20px 0 35px 0;
}
#innerfooter a {
  color: #222222;
  display: inline-block;
  font-weight: 600;
}

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

@media (min-width: 1200px) {
  body.index footer::after {
    content: "";
    position: absolute;
    background: url(../img/hand-rot.png) no-repeat;
    width: 676px;
    height: 721px;
    bottom: -10px;
    z-index: 0px;
    pointer-events: none;
    right: -21px;
    display: block;
  }
}
/* #endregion -------------------------------- footer ------------------------------------------- */

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

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

#vernetzt span span {
  display: block;
}
