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

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

body {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  color: #1c1c1c;
  background: #ffffff;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.5;
}

a {
  color: #426610;
}

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

b,
strong {
  font-weight: 600;
}

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

.overflow {
  overflow: clip;
  position: relative;
}

/* ------------------------------------------- topbar ------------------------------------------- */

#topbar {
  box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
  background: linear-gradient(to right, #426610, #426610) bottom 12px left / 100% 5px no-repeat, #ffffff;
}

@media (max-width: 991px) {
  #topbar {
    min-height: 95px;
  }
}

@media (min-width: 992px) {
  #topbar {
    background: linear-gradient(to right, #426610, #426610) bottom 12px left / 100% 5px no-repeat, #ffffff;
  }

  #topbar>.row>div:last-child {
    padding-top: 50px;
    padding-bottom: 66px;
  }
}

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

#logo {
  display: inline-block;
  background: #ffffff;
}

@media (max-width: 991px) {
  #logo img {
    max-width: 90px;
    margin: auto;
    width: 100%;
  }
}

#logo .logoTxt {
  line-height: 1;
  font-size: clamp(1rem, 2vw, 1.4375rem);
  color: #1c1c1c;
  font-weight: 400;
}

#logo .logoTxt :is(b, strong) {
  color: #426610;
  display: block;
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 2.75rem);
}

@media (max-width: 1199px) {
  #logo .logoImg {
    justify-content: center;
    display: flex;
  }
}

@media (min-width: 1200px) {
  #logo {
    display: flex;
    align-items: center;
    align-content: center;
    gap: 8px;
    text-decoration: none;
  }
}

/* -------------------------------------------- search ------------------------------------------ */

form[id^="search"] {
  display: inline-flex;
  margin: 20px auto;
  max-width: 250px;
  width: 100%;
}

@media (min-width: 992px) {
  form[id^="search"] {
    margin: 0 20px 0 0;
  }
}

form [id^="search_input"] {
  color: #1c1c1c;
  font-size: 1.0625rem;
  font-style: normal;
  background: transparent;
  padding: 6px 14px;
  border: 0;
  width: 100%;
}

form [id^="search_submit"] {
  width: 38px;
  border: none;
  background: url("../img/lupe.png") center no-repeat;
  padding: 0;
  cursor: pointer;
  font-size: 0;
  transition: background 150ms linear;
}

form [id^="search_submit"]:is(:hover, :focus) {
  background-color: rgba(0, 0, 0, 0.1);
}

form [id^="search_input"]::placeholder {
  color: #1c1c1c !important;
  opacity: 1 !important;
  font-style: normal !important;
}

/* ------------------------------------------- innerfooter ------------------------------------------ */

.innerfooter {
  font-size: 1rem;
}

@media (min-width: 992px) {
  #search1+* {
    border-left: 1px solid rgba(180, 180, 180, 0.3);
    padding: 8px 0 8px 30px;
  }
}

.innerfooter ul {
  padding: 0;
}

@media (max-width: 991px) {
  .innerfooter ul {
    padding: 25px 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(110, 110, 110, 0.3);
  }
}

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

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

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

  .innerfooter li+li::before {
    content: "\00B7";
    margin: 0 clamp(15px, 2vw, 25px);
    color: #1c1c1c;
  }
}

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

#slider {
  overflow: hidden;
  position: relative;
}

#headerpic {
  max-height: clamp(300px, 20vw, 400px);
}

@media (min-width: 992px) {
  body.index #headerpic {
    max-height: clamp(450px, 50vw, 700px);
  }

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

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

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

.slider-wrapper,
#headerpic .banner {
  width: 50%;
}

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

.slider-mask {
  display: none;
}

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

/* #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: #426610;
    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: 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: 6px;
  }

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

/* menu desktop */

@media (min-width: 992px) {
  nav.navbar {
    border-radius: 2px;
    padding: 30px 20px;
    background: #ffffff;
    position: relative;
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
  }

  #nav-position {
    padding-top: 5px;
    position: relative;
    z-index: 99;
  }

  #nav-position::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: #1c1c1c;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 300ms linear;
  }

  #nav-position:is(:hover, :focus-within)::before {
    opacity: 0.2;
  }

  nav.navbar .navbar-nav>li {
    display: block !important;
    width: 100%;
    float: none;
    position: relative;
  }

  nav.navbar .navbar-nav li[class*="toplevel"]>ul {
    pointer-events: none;
    position: absolute;
    left: 100%;
    top: 0 !important;
    z-index: 1000;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms linear;
  }

  nav.navbar .navbar-nav li:is(.open:focus-within, :hover)>ul {
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible;
    top: 100%;
  }

  nav.navbar .navbar-nav li:is(:hover, :focus-within)>ul {
    z-index: 1003;
  }

  nav.navbar [class*="secondlevel"]>ul {
    display: block !important;
    pointer-events: auto !important;
    visibility: visible;
  }
}

/* toplevel */

nav.navbar .navbar-nav a[class*="toplevel"] {
  color: #1c1c1c;
  font-weight: 500;
  text-align: left;
  padding: 10px 35px 10px 15px;
  position: relative;
  font-size: 1.125rem;
  background: #f8f8f8;
  line-height: 1.2;
  text-decoration: none;
}

nav.navbar .navbar-nav li[class*="toplevel"]+li {
  margin-top: 2px;
}

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

@media (min-width: 992px) {
  nav.navbar .navbar-nav a[class*="toplevel"] {
    padding: 9px 15px;
  }

  nav.navbar .navbar-nav a[class*="toplevel"].dropdown-toggle {
    padding-right: 40px;
  }

  nav.navbar .navbar-nav a[class*="toplevel"].dropdown-toggle::before {
    content: "\00BB";
    position: absolute;
    right: 15px;
    top: 19px;
    line-height: 0;
    font-family: "Jost", sans-serif;
  }
}

/* toplevel-over */

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

/* secondlevel + thirdlevel dropdown-box */

nav.navbar [class*="toplevel"]>ul {
  padding: 10px;
  background: #ffffff;
  border-radius: 2px;
}

@media (min-width: 992px) {
  nav.navbar [class*="toplevel"]>ul {
    margin-top: -20px;
    padding: 20px 20px;
    min-width: 360px;
    max-width: 500px;
    margin-left: 50px;
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
  }

  nav.navbar li[class*="secondlevel"] {
    margin-bottom: 2px;
  }

  nav.navbar [class*="toplevel"]>ul::before,
  nav.navbar [class*="toplevel"]>ul::after {
    content: "";
    position: absolute;
    display: block;
  }

  nav.navbar [class*="toplevel"]>ul::before {
    width: 50px;
    top: 0;
    bottom: 0;
    left: -50px;
  }

  nav.navbar [class*="toplevel"]>ul::after {
    top: 12px;
    left: -24px;
    width: 24px;
    height: 38px;
    background: #ffffff;
    clip-path: polygon(100% 100%, 100% 0, 0 50%);
  }
}

nav.navbar [class*="secondlevel"]>ul {
  margin: 0px;
  padding: 4px 0;
}

/* secondlevel + thirdlevel */

nav.navbar a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #1c1c1c;
  font-size: 1rem;
  text-align: left;
  position: relative;
  line-height: 1.2;
  text-decoration: none;
}

nav.navbar a[class*="secondlevel"] {
  padding: 8px 35px 8px 10px;
  background: #f8f8f8;
  font-weight: 500;
}

@media (min-width: 992px) {
  nav.navbar a[class*="secondlevel"] {
    padding: 10px 20px;
  }
}

nav.navbar a[class*="thirdlevel"] {
  padding: 6px 15px 6px 38px;
  font-weight: 400;
}

nav.navbar a[class*="thirdlevel"]::before {
  content: "\00BB";
  display: block;
  position: absolute;
  top: 15px;
  line-height: 0;
  left: 25px;
}

/* secondlevel + thirdlevel over */

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

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

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

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

#vernetzt {
  gap: 5px;
  text-align: left;
  font-size: 0.875rem;
  color: #1c1c1c;
  justify-content: center;
  line-height: 1.3;
  margin: 0 auto 30px auto;
  text-decoration: none;
  max-width: calc(100% - 30px);
}

@media (min-width: 992px) {
  #vernetzt {
    margin: 40px auto 0 auto;
    max-width: unset;
  }
}

#vernetzt span span {
  display: block;
}

#vernetzt strong {
  font-weight: 500;
  color: #1c1c1c;
}

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

main>.row {
  row-gap: 30px;
}

main {
  text-align: left;
  padding-top: 80px;
  padding-bottom: clamp(35px, 4vw, 50px);
  position: relative;
}

#content {
  padding-bottom: 50px;
}

hr,
.hrstyle {
  opacity: 1;
  background: rgba(107, 107, 107, 0.5a);
}

main::after {
  border-top: #426610 solid 5px;
  content: "";
  position: absolute;
  top: 12px;
  left: 0px;
  right: 0px;
  z-index: 5;
  pointer-events: none;
  display: block;
}

@media (max-width: 991px) {
  main {
    padding-top: 20px;
  }
}

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

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

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

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

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

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

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

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

/* ---------------------------------------------- tabs ------------------------------------------ */

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

#tabs hr {
  margin: 0 0 clamp(1px, 2vw, 20px) 0;
}

#tabs a {
  text-decoration: underline;
}

#tabs .tab {
  height: 100%;
  min-height: 100%;
  background: #ffffff;
  box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
}

#tabs .tab1 {
  padding: clamp(20px, 2vw, 40px) clamp(20px, 2vw, 30px);
}

#tabs .tab1 :is(h1, h2, h3, h4, h5, h6) {
  color: #1c1c1c;
  margin-bottom: clamp(15px, 2vw, 25px);
  font-size: 1.5625rem;
  font-weight: 600;
}

#tabs .tab2 :is(h1, h2, h3, h4, h5, h6) {
  color: #1c1c1c;
  padding: clamp(20px, 2vw, 30px);
  font-size: 1.5625rem;
  margin: 0;
}

#tabs .tabLinks a {
  color: #1c1c1c;
  text-decoration: none;
  line-height: 1.8;
}

#tabs .tabLinks a :is(i, em) {
  text-decoration: underline;
  color: #426610;
  font-style: normal;
}

#tabs .tabLinks a:is(:hover, :focus) {
  color: #426610;
  text-decoration: underline;
}

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

#tabs .schulmanagerText {
  padding: 0 30px;
  hyphens: auto;
}

@media (max-width: 575px) {
  #tabs .schulmanagerText {
    padding-bottom: 15px;
  }
}

#tabs .schulmanagerText img {
  margin: 30px -31px 27px -30px;
  display: block;
  width: calc(100% + 60px) !important;
  min-width: calc(100% + 60px) !important;
}

@media (max-width: 1199px) {
  #tabs .tab-3 img {
    width: 100% !important;
    max-height: 300px !important;
    object-fit: cover !important;
  }
}

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

footer {
  position: relative;
  padding: 18px 0 0 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

footer::before,
footer::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
}

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

#footer {
  font-size: 1.125rem;
  color: #ffffff;
  position: relative;
  padding: 80px 0 72px 0;
}

@media (max-width: 767px) {
  #footer {
    padding: 50px 0 30px 0;
  }
}

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

#footer .tabHeadline {
  color: #fff;
  font-size: 1.5625rem;
  font-weight: 600;
}

#footer :is(b, strong) {
  font-weight: 500;
}

@media (min-width: 992px) {
  #footer #footerKontakt {
    border-right: solid 1px rgba(255, 255, 255, 0.3);
    padding-right: 30px;
  }
}

@media (max-width: 767px) {
  #footer .tabfooterLogo img {
    vertical-align: middle;
    padding: 30px 0;
    margin: auto;
    text-align: center;
    justify-content: center;
    display: flex;
    /* styles...*/
  }
}

#footer::after {
  border-top: #fff solid 5px;
  top: 0px;
  content: "";
  position: absolute;
  top: 0;
  left: 0px;
  right: 0px;
  z-index: 5;
  pointer-events: none;
  display: block;
}

#footer .tabfooterLogo img {
  vertical-align: middle;
}

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