@import url("https://fonts.verwaltungsportal.de/import/?family=Noto+Sans:400,400i,600,600i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Iosevka+Charon+Mono:700,700i");

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

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

@media (min-width: 768px) {
  body {
    font-size: 1.125rem;
  }
}

a {
  color: #588042;
}

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

.linkUnderline a:not(.has-image, .shareButtonLink) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration 300ms;
}

.linkUnderline a:not(.has-image, .shareButtonLink):is(:hover, :focus) {
  text-decoration-color: transparent;
}

b,
strong {
  font-weight: 600;
}

@media (min-width: 992px) {
  body {
    padding-left: clamp(25px, 4vw, 45px);
    padding-right: clamp(25px, 4vw, 45px);
  }
}

/* LOGO MIT TEXT -------------------------------------------------------- */

.logo {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 15px;
  text-decoration: none !important;
  margin-block: 20px;
}

@media (min-width: 992px) {
  .logo {
    margin-bottom: -80px;
    margin-top: 0;
  }
}

.logo .template-page {
  width: auto;
}

.logo .cleaner {
  display: none;
}

.logo img {
  display: block;
  max-width: 30vw;
}

/* LOGO MIT TEXT -------------------------------------------------------- */

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

nav.horizontally {
  background: #ffffff;
  position: relative;
  border-bottom: 2px dashed #3b4534;
  transition: outline-offset 300ms;
  outline: 10px solid #fff;
  outline-offset: -10px;
}

.is-sticky nav.horizontally {
  outline-offset: 0;
}

/* 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: #3b4534;
    border-radius: 2px;
    position: absolute;
    width: 40px;
    height: 3px;
    left: 10px;
    transition:
      transform 200ms linear,
      opacity 200ms linear;
  }

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

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally .navbar-nav {
    display: flex;
    flex-wrap: wrap;
  }

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

  nav.horizontally .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
  }

  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: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: #3b4534;
  font-weight: 700;
  text-align: left;
  padding: 10px 15px;
  font-family: "Iosevka Charon Mono", monospace;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.2;
  text-decoration: none;
}

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

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

  nav.horizontally a[class*="toplevel"] {
    padding: 16px 5px;
    margin: 10px 0;
  }
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background-color: #3b4534;
}

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

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

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

  nav.horizontally [class*="secondlevel"] > ul {
    margin-top: -20px;
    border-radius: 2px;
    margin-left: 10px;
  }

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #ffffff;
  font-weight: normal;
  text-align: left;
  padding: 8px 25px 8px 38px;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  position: relative;
}

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
  content: "\00BB";
  position: absolute;
  top: 7px;
  left: 25px;
  margin-right: 4px;
}

/* 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: #ffffff;
  color: #588042;
}

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

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

#headerpic {
  margin: 0;
  position: relative;
}

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

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

  #headerpic .nivo-controlNav {
    width: calc(100% - 100px);
    left: 50px;
  }
}

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

  #headerpic .nivo-controlNav {
    bottom: 10px;
  }

  body.index #slider {
    max-height: clamp(300px, 62vw, 675px);
  }
}

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

.slider-mask {
  display: none;
}

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

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

#scrollBottom {
  border-bottom: 2px dashed #3b4534;
  padding: clamp(10px, 2vw, 24px) 0;
}

#scrollBottom a {
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 40px;
  margin: 0 auto;
}

#scrollBottom a::after {
  content: "";
  width: 0;
  height: 0;
  display: block;
  border-style: solid;
  border-width: 8px 8px 0 8px;
  border-color: #3b4534 transparent transparent transparent;
  transition: border 300ms linear;
}

#scrollBottom a:is(:hover, :focus)::after {
  border-color: #588042 transparent transparent transparent;
}

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

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

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
  color: #3b4534;
  font-weight: 700;
  line-height: 1.2;
  font-family: "Iosevka Charon Mono", monospace;
}

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

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

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

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

h5,
.h5,
.legacy_h5 {
  font-size: clamp(1.375rem, 3.5vw, 1.625rem);
}

h6,
.h6,
.legacy_h6 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}
/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

/* ------------------------------------------------ @2tab ----------------------------------------------- */

#tab2 {
  padding: 85px 0;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #010101;
  position: relative;
}

@media (max-width: 991px) {
  #tab2 {
    background-attachment: fixed;
  }
}

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

#tab2::before {
  content: "";
  position: absolute;
  inset: 40px 0;
  pointer-events: none;
  border-top: 2px dashed #fff;
  border-bottom: 2px dashed #fff;
}

#tab2 .specialHeadline {
  color: #ffffff;
  margin-bottom: 50px;
}

#tab2 .specialHeadline .tabHeadline {
  color: #ffffff;
  font-size: clamp(1.875rem, 6vw, 3.375rem);
  margin-bottom: 0;
}

@media (max-width: 991px) {
  #tab2 .specialHeadline {
    margin-bottom: 30px;
  }
}

#tab2 .tab {
  color: #444444;
  font-size: clamp(1rem, 1vw, 1.125rem);
  font-weight: 400;
  line-height: 1.4;
  min-height: 100%;
  padding: 60px 34px;
  position: relative;
  background-color: #ffffff;
  box-shadow: 0px 0px 14.08px 1.92px rgba(0, 0, 0, 0.2);
}

@media (min-width: 992px) {
  #tab2 .tab {
    padding: 60px 45px;
  }
}

#tab2 .tab .tabHeadline {
  font-size: clamp(1.3rem, 2vw, 1.875rem);
  line-height: 1.2;
  margin-bottom: 4px;
  position: relative;
  hyphens: auto;
}

#tab2 .tab .tabHeadline::after {
  content: "-";
  display: block;
  margin: -2px 0 2px 0;
  color: currentColor;
  font-family: inherit;
}

#tab2 .tab a:not(.has-image):not([rel]) {
  display: inline-block;
  text-decoration: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 25px;
  margin-top: 20px;
  border-radius: 4px;
  background: #3b4534;
  transition:
    transform 300ms,
    background 300ms;
  font-family: "Iosevka Charon Mono", monospace;
}

#tab2 .tab a:not(.has-image):not([rel]):focus,
#tab2 .tab a:not(.has-image):not([rel]):hover {
  transform: scale(1.1);
}

#tab2 .tab:focus a:not(.has-image):not([rel]),
#tab2 .tab:hover a:not(.has-image):not([rel]) {
  background: #588042;
}

#tab2 .tab::before {
  content: "";
  position: absolute;
  pointer-events: none;
  top: 15px;
  bottom: 15px;
  right: 15px;
  left: 15px;
  border: 4px solid #3b4534;
  opacity: 0.2;
}

#tab2 .tab::after {
  content: "";
  position: absolute;
  pointer-events: none;
  bottom: -100px;
  left: -100px;
  right: -100px;
  top: -100px;
  border: 4px solid #3b4534;
  opacity: 0;
  -webkit-transition:
    top 300ms linear,
    right 300ms linear,
    bottom 300ms linear,
    left 300ms linear,
    opacity 300ms linear;
  -moz-transition:
    top 300ms linear,
    right 300ms linear,
    bottom 300ms linear,
    left 300ms linear,
    opacity 300ms linear;
  -ms-transition:
    top 300ms linear,
    right 300ms linear,
    bottom 300ms linear,
    left 300ms linear,
    opacity 300ms linear;
  -o-transition:
    top 300ms linear,
    right 300ms linear,
    bottom 300ms linear,
    left 300ms linear,
    opacity 300ms linear;
  transition:
    top 300ms linear,
    right 300ms linear,
    bottom 300ms linear,
    left 300ms linear,
    opacity 300ms linear;
  z-index: 1;
}

#tab2 .tab:hover::after,
#tab2 .tab:focus::after {
  opacity: 1;
  bottom: 15px;
  left: 15px;
  right: 15px;
  top: 15px;
}

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

@media (max-width: 991px) {
  #footer > .row > div + div {
    border-top: 1px solid rgba(59, 69, 52, 0.3);
    margin-top: 20px;
    padding-top: 20px;
  }
}

@media (min-width: 992px) {
  #footer > .row > * {
    padding-top: 10px;
    padding-bottom: 10px;
    border-left: 1px solid rgba(59, 69, 52, 0.3);
  }
}

#footer {
  padding: 30px 0;
  border-top: 2px dashed #3b4534;
  margin-top: 40px;
  color: #444444;
  font-size: 1rem;
}

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

#footer .footerContactTab a {
  position: relative;
}

#footer .footerContactTab .tabHeadline {
  margin: 0;
}

#footer a:is([href*="mailto:"], a[href*="tel:"]) {
  position: relative;
  display: inline-block;
  padding-left: 30px;
  margin-top: 5px;
}

#footer a:is([href*="mailto:"], a[href*="tel:"])::before {
  content: "";
  display: block;
  position: absolute;
  height: 22px;
  width: 22px;
  background:
    url("../img/mail-icon.png") center no-repeat,
    #3b4534;
  top: 50%;
  left: 0;
  border-radius: 50%;
  transform: translateY(-50%);
}

#footer a[href*="tel:"]::before {
  background:
    url("../img/phone-icon.png") center no-repeat,
    #3b4534 !important;
}
#footer a[title="instagram"]::before {
  content: "";
  display: block;
  position: absolute;
  height: 22px;
  width: 22px;
  background: url("../img/icon-instagram-color.png") center no-repeat;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

#footer a[title="facebook"]::before {
  content: "";
  display: block;
  position: absolute;
  height: 22px;
  width: 22px;
  background: url("../img/icon-facebook-color.png") center no-repeat;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

#footer a[title="instagram"],
#footer a[title="facebook"] {
  position: relative;
  display: inline-block;
  padding-left: 30px;
  margin-top: 5px;
  color: #444444;
  text-decoration: none;
}
#footer a[title="instagram"]:is(:hover, :focus),
#footer a[title="facebook"]:is(:hover, :focus) {
  text-decoration: underline;
  color:#588042;
}

#innerfooter ul {
  padding: 0;
}

#innerfooter a {
  color: #444444;
  text-decoration: none;
  display: inline-block;
}

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

/* #endregion -------------------------------- footer ------------------------------------------- */

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

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

#vernetzt span span {
  display: block;
}
#vernetzt strong {
  color: #3b4534;
}
