@import url("https://fonts.verwaltungsportal.de/import/?family=Poppins:400,400i,600,600i%7CSour+Gummy:600");
html {
  max-width: 1930px;
  margin-left: auto;
  margin-right: auto;
  background: #e1eefa;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-color: #4d4d4d #ffffff;
  scrollbar-width: thin;
}

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

@media (min-width: 992px) {
  body {
    padding-left: clamp(30px, 3vw, 60px);
    padding-right: clamp(30px, 3vw, 60px);
  }
}

a,
a:is(:hover, :focus) {
  color: #1e585e;
  text-decoration: underline;
  font-weight: 600;
}

a:is(:hover, :focus) {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
form:focus-visible,
input:focus-visible {
  outline: 3px solid #ff0000 !important;
}

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

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

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

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

@media (max-width: 767px) {
  #logo {
    margin-bottom: 30px;
  }
}

.logo-tab .tabHeadline {
  font-family: "Sour Gummy", cursive;
  font-weight: 600;
  font-size: 1.875rem;
  text-transform: uppercase;
  margin: 0;
}

#logo:hover {
  text-decoration: none;
}

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

.button-style a:not(.has-image),
#search-button {
  border-radius: 4px;
  display: inline-block;
  transition:
    filter 300ms linear,
    box-shadow 300ms linear;
  text-align: center;
}

.button-style a,
#search-button {
  display: inline-block;
  color: #333333;
  background: #efb792;
  padding: 13px 20px 11px 20px;
  min-height: 44px;
  font-size: 1rem;
  text-decoration: none !important;
  font-weight: 400;
  line-height: 1.2;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button-style a:is(:hover, :focus),
#search-button:is(:hover, :focus) {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.button-style a + a {
  margin-left: 20px;
}

.button-topbar a {
  text-transform: uppercase;
  font-weight: 600;
}
/* search */

#search-button {
  width: 44px;
  height: 44px;
  background: #8ad5de url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%231e585e'%3E%3Cpath d='M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z'/%3E%3C/svg%3E") center / 24px auto no-repeat;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  #search-button {
    flex-grow: 1;
  }
}

/* ------------------------------------------ navigation ---------------------------------------- */

nav.horizontally {
  padding: 30px 0;
}

.button-col {
  gap: 20px;
}

@media (min-width: 768px) and (max-width: 991px) {
  .button-col {
    padding-right: 30px !important;
  }
}

/* burgermenu for tablet */

@media (max-width: 991px) {
  nav.horizontally > .row .template-page [class*="col-"] {
    padding: 0;
  }
}

@media (min-width: 992px) {
  nav.horizontally > .row > *:first-child {
    padding-left: 0;
  }

  nav.horizontally > .row > *:last-child {
    padding-right: 0;
  }
}

@media (max-width: 1199px) {
  nav.horizontally {
    position: static !important;
  }

  #burgerButton {
    font-size: 0;
    border: none !important;
    display: block;
    height: 50px;
    width: 60px;
    border-radius: 10px;
    padding: 6px 8px;
    cursor: pointer;
    background-color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  }

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

  .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: 28px;
    right: 15px;
    z-index: 101;
  }

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

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

/* menu desktop */

@media (min-width: 1200px) {
  nav.horizontally {
    position: relative;
    background: #ffffff;
    transition: padding 150ms linear;
  }

  .is-sticky nav.horizontally {
    padding: 15px 0;
  }

  nav.horizontally::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 calc(clamp(30px, 3vw, 60px) * -1);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: opacity 150ms linear;
  }

  .is-sticky nav.horizontally::after {
    opacity: 1;
  }

  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  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: #333333;
  font-weight: 600;
  text-align: left;
  padding: 13px 10px 11px 10px;
  min-height: 44px;
  text-transform: uppercase;
  position: relative;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 10px;
}

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

/* 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: #535e1e;
  background-color: #cee68e;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

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

@media (min-width: 1200px) {
  nav.horizontally :is([class*="toplevel"], [class*="secondlevel"]) > ul::before {
    content: "";
    position: absolute;
    display: block;
  }

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]) + li {
  margin-top: 2px;
}

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

@media (max-width: 1199px) {
  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: #535e1e;
  background-color: #cee68e;
}

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

#headerpic-overlay .tab {
  position: relative;
  padding: 30px 30px 25px 30px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  height: 100%;
}

.tab:is(.small-heading, .distance-heading)::before,
.tab :is(.small-heading, .distance-heading)::before {
  content: "";
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #8ad5de url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%231e585e'%3E%3Cpath d='M240-120q-45 0-89-22t-71-58q26 0 53-20.5t27-59.5q0-50 35-85t85-35q50 0 85 35t35 85q0 66-47 113t-113 47Zm230-240L360-470l358-358q11-11 27.5-11.5T774-828l54 54q12 12 12 28t-12 28L470-360Z'/%3E%3C/svg%3E") center no-repeat;
  margin-bottom: 30px;
}

.tab-color {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.tab-color:is(#wide-tab, #footer) > .row > .col-xs-12 {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
}

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

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

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

@media (min-width: 1199px) {
  .theme-nivo .nivo-controlNav {
    bottom: 70px !important;
  }
}

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

  #headerpic a.nivo-prevNav {
    left: clamp(30px, 4vw, 60px);
  }

  #headerpic a.nivo-nextNav {
    right: clamp(30px, 4vw, 60px);
  }
}

.slider-wrapper {
  height: 100%;
}

.slider-mask {
  display: none;
}

/* overlay */

@media (max-width: 1199px) {
  #headerpic-overlay {
    margin-top: clamp(40px, 6vw, 80px);
  }
}

@media (min-width: 1199px) {
  #headerpic-overlay {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 160px;
    pointer-events: none;
  }
}

#headerpic-overlay .tab {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  #headerpic-overlay .tab {
    padding: 32px 40px 40px 40px;
  }
}

#headerpic-overlay .tab :is(h1, h2, h3, h4, h5, h6) {
  color: #1e585e;
  font-size: clamp(1.75rem, 5.5vw, 2.5rem);
}

/* ------------------------------------------- Banner Tabs------------------------------------------ */

/* Banner-Tabs */

#bannerTabs {
  margin-top: 30px;
}

@media (min-width: 1199px) {
  #bannerTabs {
    margin-top: -60px;
  }
}

#bannerTabs,
#bannerTabs .tab1 > .row {
  row-gap: 30px;
}

#bannerTabs .tab {
  border-radius: 20px;
  font-size: 1rem;
  line-height: 1.75;
  min-height: 100%;
  padding: 40px 20px 30px 20px;
  position: relative;
  z-index: 12;
}

#bannerTabs .tab2 {
  padding: 40px 30px 30px 30px;
}
#bannerTabs .tab1 {
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  overflow-wrap: break-word;
}

#bannerTabs .tab :is(h1, h2, h3, h4, h5, h6, a) {
  font-size: 1rem;
  color: #1e585e;
  font-weight: 600;
}

#bannerTabs .tab2 :is(h1, h2, h3, h4, h5, h6, a) {
  color: #535e1e;
}

@media (min-width: 992px) {
  #bannerTabs .tab1 > .row > *:not(:last-child) {
    padding-right: 15px;
  }
  #bannerTabs .tab1 > .row > * + * {
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    padding-left: 15px;
  }
}

#bannerTabs .tab2 {
  background: #cee68e;
  color: #333333;
}

/* Banner-Tabs icon */

#bannerTabs .tab1::before {
  content: "";
  display: block;
  height: 105px;
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 105px;
}

#bannerTabs .tab2::before {
  content: "";
  display: block;
  height: 42px;
  position: absolute;
  right: 20px;
  top: 20px;
  width: 40px;
}

#bannerTabs .tab1::before {
  background: url(../img/icon-sekretariat.png) no-repeat;
}

#bannerTabs .tab2::before {
  background: url(../img/icon-krankmeldung.png) no-repeat;
}

/* ------------------------------------------ ICONS Shake --------------------------------------- */

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

#content {
  text-align: left;
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(40px, 8vw, 100px);
  position: relative;
}

@media (min-width: 1400px) {
  #content::before {
    content: "";
    position: absolute;
    background: url(../img/icon-maedchen-mit-stift.png) no-repeat;
    right: -45px;
    width: 400px;
    height: 365px;
    bottom: -10px;
  }

  #content::after {
    content: "";
    position: absolute;
    background: url(../img/icon-stift-und-anspitzer.png) no-repeat;
    left: 0;
    width: 209px;
    height: 250px;
    bottom: 0;
  }
}

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

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

.uppercase-heading {
  text-transform: uppercase;
}

.distance-heading {
  margin-bottom: 25px;
}

.heading-col {
  margin-bottom: clamp(30px, 4vw, 60px);
}

.small-heading:not(.tab),
.small-heading :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.small-text {
  font-size: 1rem;
}

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

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

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

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

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

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

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

#tabs {
  font-size: clamp(1rem, 2vw, 1.125rem);
  background:
    linear-gradient(rgba(247, 241, 222, 0.95), rgba(247, 241, 222, 0.95)),
    url("../img/bild-schuluntensilien.jpg") center / cover no-repeat;
  border-radius: 10px;
}

#tabs > .row {
  max-width: 970px;
  row-gap: 30px;
  padding: clamp(40px, 5vw, 50px) 0;
}

#tabs :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 5vw, 1.5625rem);
  color: #002d55;
}

#tabs .tab::before {
  content: "";
  display: block;
  width: 100px !important;
  height: 100px !important;
  background: #cee68e url("../img/icon-konzept.png") center no-repeat;
  border-radius: 50%;
  margin: 0 auto 15px auto;
}

#tabs .tab-2::before {
  background-image: url("../img/icon-ganztag.png");
}

#tabs .tab-3::before {
  background-image: url("../img/icon-download.png");
}

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

footer {
  padding-top: clamp(40px, 6vw, 80px);
}

footer::before {
  content: "";
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 30vw;
  max-height: 242px;
  background: url("../img/kinder-schauen-ueber-kante.webp") center bottom / contain no-repeat;
  margin-bottom: calc(clamp(13px, 3.8vw, 32px) * -1);
  pointer-events: none;
}

#footer {
  position: relative;
  background-color: #cee68e;
}

#footer :is(h1, h2, h3, h4, h5, h6) {
  color: #535e1e;
}

@media (min-width: 992px) {
  #footer > .row > .col-xs-12 {
    padding-right: clamp(30px, 4vw, 60px);
  }
}

@media (min-width: 992px) and (max-width: 1299px) {
  #footer > .row > .col-xs-12 {
    padding-left: clamp(30px, 4vw, 60px);
  }
}

#footer hr {
  height: 2px;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  opacity: 1;
  margin: 35px 0;
}

#footer .template-page a {
  font-weight: 400;
  color: inherit;
  text-decoration: underline;
}

#map :is(.row, .row > *) {
  position: static;
  padding: 0;
  margin: 0;
}

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

@media (min-width: 768px) {
  #map :is(iframe, .iframe-wrapper-manual-enabling) {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50% !important;
    min-width: 50% !important;
    height: 100% !important;
  }

  #footer {
    min-height: 300px;
  }
}

#map .iframe-wrapper-manual-enabling > .iframe-label {
  padding: 40px 20px;
}

/* innerfooter */

#innerfooter {
  padding: 30px 0;
}

#innerfooter ul {
  padding: 0;
}

#innerfooter li {
  display: block;
}

#innerfooter li a {
  color: inherit;
  text-decoration: none;
  font-weight: 400;
}

#innerfooter li a:is(:hover, :focus) {
  color: #1e585e;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration: underline;
}

@media (min-width: 576px) {
  #innerfooter li + li::before {
    content: "•";
    margin: 0 clamp(15px, 2vw, 25px);
    color: #333333;
  }

  #innerfooter li {
    display: inline-block;
  }
}

/* --------------------------------------------- logos ------------------------------------------ */

#logos {
  padding-bottom: 40px;
}
#logos hr {
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  opacity: 1;
  margin: 10px 0 35px 0;
}
