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

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

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

a {
  color: #981091;
  text-decoration: underline;
}

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

#tabsTop a,
#content a {
  font-style: italic;
}

b,
strong {
  font-weight: 600;
}

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

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

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

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

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

@media (min-width: 768px) and (max-width: 1199px) {
  #logo img {
    max-width: 350px;
    width: 100%;
  }
}

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

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

@media (min-width: 768px) {
  #bannerOverlay {
    position: absolute;
    left: 60px;
    top: calc(50% - 40px);
    z-index: 61;
    transform: translateY(-50%);
  }
}

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

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

@media (min-width: 1200px) {
  #bannerOverlay {
    left: 199px;
  }

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

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

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

.slider-mask {
  display: none;
}

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

/* burgermenu for tablet */

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

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

/* menu desktop */

@media (min-width: 992px) {
  .sticky-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
  }

  nav.horizontally {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    right: 0;
    bottom: 0;
    max-width: 1930px;
    width: 100%;
    z-index: 101;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s 0s linear;
  }

  .is-sticky nav.horizontally {
    background-color: #ffffff;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
    bottom: unset;
  }

  nav.horizontally .navbar-nav {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px 0;
  }

  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: #ffffff;
  background: #981091;
  font-weight: 500;
  text-align: left;
  padding: 12px 15px;
  text-transform: uppercase;
  position: relative;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
}

nav.horizontally li[class*="toplevel"]:nth-child(6n+2)>a {
  background: #004484;
}

nav.horizontally li[class*="toplevel"]:nth-child(6n+3)>a {
  background: #047abe;
}

nav.horizontally li[class*="toplevel"]:nth-child(6n+4)>a {
  background: #2b840b;
}

nav.horizontally li[class*="toplevel"]:nth-child(6n+5)>a {
  background: #d14900;
}

nav.horizontally li[class*="toplevel"]:nth-child(6n+6)>a {
  background: #d11e00;
}

@media (max-width: 991px) {
  nav.horizontally li[class*="toplevel"] {
    border-bottom: 2px solid #ffffff;
  }

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

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

  nav.horizontally a[class*="toplevel"] {
    padding: 19px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
  }
}

/* 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) {
  background: #fff;
  color: #2344f3;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background-color: #fff;
  box-shadow: 0px 0px 29px 0px rgba(40, 40, 40, 0.3);
  -webkit-box-shadow: 0px 0px 29px 0px rgba(40, 40, 40, 0.3);
  -moz-box-shadow: 0px 0px 29px 0px rgba(40, 40, 40, 0.3);
}

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #282828;
  font-weight: 400;
  text-align: left;
  padding: 9px 25px;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
}

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

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

/* 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: #047abe;
  color: #fff;
}

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

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

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

#tabs {
  padding-top: clamp(30px, 3vw, 45px);
  padding-bottom: clamp(40px, 6vw, 80px);
}

@media (min-width: 992px) {
  #content>.row>div+div {
    padding-left: 45px;
  }
}

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

/* ------------------------------------------- tabsTop ------------------------------------------ */

#tabsTop {
  padding-top: clamp(30px, 3vw, 40px);
}

#tabsTop .tab:is(h1, h2, h3) {
  font-size: clamp(28px, 2vw, 30px);
}

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

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

h1,
.h1,
.legacy_h1 {
  font-size: 2.125rem;
}

h2,
.h2,
.legacy_h2 {
  font-size: 1.75rem;
}

h3,
.h3,
.legacy_h3 {
  font-size: 1.6875rem;
}

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

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

#tabs .tab {
  color: #ffffff;
  padding: clamp(10px, 3vw, 25px) clamp(30px, 3vw, 40px) clamp(10px, 3vw, 25px) clamp(30px, 3vw, 40px);
  font-size: 1.125rem;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 5px;
  box-shadow: 0px 0px 30px 0px rgba(40, 40, 40, 0.3);
  -webkit-box-shadow: 0px 0px 30px 0px rgba(40, 40, 40, 0.3);
  -moz-box-shadow: 0px 0px 30px 0px rgba(40, 40, 40, 0.3);
}

#tabs .tab.tab1 {
  background-color: #047abe;
  font-weight: 400;
}

#tabs a {
  color: #ffffff;
}

#tabs .tab .tab_link_mehr {
  font-size: 0;
  text-align: left;
}

#tabs>.row>*+* {
  margin-top: 30px;
}

@media (min-width: 576px) and (max-width: 991px) {
  #tabs>.row>*+* {
    margin-top: 0;
  }

  #tabs .tab {
    height: 100%;
    min-height: 100%;
  }
}

#tabs :is(h1, h2, h3, h4, h5, h6) {
  color: #ffffff;
  font-size: 1.875rem;
  margin-top: 5px;
  display: block;
  font-style: normal;
  text-align: center;
  margin-bottom: 25px;
}

#tabs .tab_spacer {
  height: 20px;
}

.tab1 .tab_link_title a {
  text-decoration: none !important;
  font-weight: 600;
  font-style: normal !important;
}

.tab1 .tab_link_mandat a {
  font-style: normal !important;
}

#clr-events-hide h3 {
  font-weight: 700;
  font-size: 1.25rem;
}

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

#tabs .tab .tab_link_mehr a,
#tabs .tab2 a:not(:is([href*="mailto"], [href*="tel"])),
#parallax a:not(:is([href*="mailto"], [href*="tel"])) {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  border-radius: 4px;
  padding: 9px 15px;
  text-decoration: none;
  display: inline-block;
  font-family: "Open Sans", sans-serif;
  font-style: normal;
}

#tabs .tab .tab_link_mehr a:is(:hover, :focus),
#tabs .tab2 a:not(:is([href*="mailto"], [href*="tel"])):is(:hover, :focus),
#parallax a:not(:is([href*="mailto"], [href*="tel"])):is(:hover, :focus) {
  text-decoration: underline;
}

/* ----------------------------------------------- @1nw news -------------------------------------------- */

#nw1 {
  padding-top: 30px;
  padding-bottom: 30px;
}

#nw1 .tab_link_entry {
  border-bottom: unset !important;
}

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

#nw1 .tabHeadline {
  hyphens: auto;
  font-size: 1.875rem;
  margin-top: 20px;
}

#nw1 .buttonStyleNews a:not(:is([href*="mailto"], [href*="tel"])) {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  color: #981091;
  border-radius: 4px;
  padding: 9px 15px;
  text-decoration: none;
  display: inline-block;
  font-family: "Open Sans", sans-serif;
  font-style: normal;
  margin-top: 20px;
}

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

#nw1 .tab,
#nw1 .tab_link,
#nw1 .tab_link>div {
  height: 100%;
  min-height: 100%;
}

#nw1 .tab_link_entries {
  display: grid;
  gap: 30px;
}

@media (min-width: 576px) {
  #nw1 .tab_link_entries {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 991px) {
  #nw1 .tab_link_entries {
    grid-template-columns: repeat(4, 1fr);
  }
}

#nw1 .tab_link_entry {
  font-size: 1.0625rem;
  position: relative;
  width: 100%;
  border-radius: 5px;
  padding: 240px 30px 30px 30px;
  background: #ffffff;
  box-shadow: 0px 0px 30px 0px rgba(40, 40, 40, 0.3);
  -webkit-box-shadow: 0px 0px 30px 0px rgba(40, 40, 40, 0.3);
  -moz-box-shadow: 0px 0px 30px 0px rgba(40, 40, 40, 0.3);
}

#nw1 .vorschau {
  opacity: 1;
}

#nw1 .tab_preview_picture {
  background: #ffffff;
}

#nw1 .tab_link_entry::before,
#nw1 .tab_link_entry .tab_preview_picture {
  position: absolute;
  display: block;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 120px;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  height: 226px;
}

#nw1 .tab_link_entry::before {
  content: "";
  background: center / cover no-repeat, #666666;
}

#nw1 .tab_preview_picture img {
  position: absolute;
  margin: 0 !important;
  left: 50%;
  top: 50%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  max-width: 350px;
  min-height: 226px;
  width: auto;
  height: auto;
  -ms-interpolation-mode: bicubic;
  transform: translateX(-50%) translateY(-50%);
}

#nw1 .tab_link_entries+div,
#nw1 .tab_link_entries .tab_spacer {
  display: none;
}

#nw1 .tab_link_mehr {
  font-size: 0;
  margin-top: 20px;
}

#nw1 .tab_link_mehr a {
  font-weight: 600;
  color: #981091;
  font-size: 1.0625rem;
  text-decoration: none;
}

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

#nw1 .tab_link_mehr {
  order: 4 !important;
}

#nw1 .tab_link_entry {
  display: inline-grid;
}

#nw1 .tab_date {
  order: 2 !important;
}

#nw1 .tab_link_title {
  order: 1 !important;
}

#nw1 .vorschau {
  order: 3 !important;
}

#nw1 .tab_link_title a {
  color: #282828;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

/* ------------------------------------------- @1nw buttonStyle ------------------------------------------- */

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

#contact {
  position: relative;
}

@media (min-width: 1200px) {
  #contact::before {
    content: "";
    display: block;
    position: absolute;
    background: url("../img/logo-fred-vogel-grundschule-footer.png") no-repeat;
    width: 262px;
    height: 346px;
    left: -300px;
    top: -76px;
    z-index: 1;
    pointer-events: none;
  }
}

#contactBox {
  background: #2344f3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 42px 0 42px 0;
  color: #fff;
  position: relative;
  line-height: 1.3;
}

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

#contactBox .row {
  position: static;
}

#contact .tabHeadline {
  color: #fff;
  font-size: 1.875rem;
}

#contact a {
  color: #fff;
  font-style: italic;
}

@media (max-width: 991px) {
  #contact {
    text-align: center;
    margin-bottom: 25px;
  }
}

/*------- maps ------*/

@media (max-width: 991px) {
  #map {
    position: relative;
  }

  #map .template-page .row .col-xs-12 .tiny_p iframe {
    width: 100%;
  }
}

.iframe-wrapper-manual-enabling {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  position: absolute;
}

@media (max-width: 1199px) {
  iframe {
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  #map {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    left: 42%;
    padding-left: 63px;
  }

  #map .template-page {
    width: 100%;
    height: 100%;
  }

  #map .template-page .row {
    height: 100%;
  }

  #map .template-page .row .col-xs-12 {
    padding: 0;
  }

  #map .template-page .row .col-xs-12 .tiny_p {
    height: 100%;
  }

  #map .template-page .row .col-xs-12 .tiny_p iframe {
    height: 100%;
    width: 100%;
  }
}

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

#innerfooter {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 1rem;
  background-color: #ffffff;
}

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

#innerfooter ul {
  padding: 0;
}

@media (max-width: 767px) {
  #innerfooter ul {
    display: flex;
    flex-direction: column;
  }
}

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

#innerfooter ul a {
  color: #282828;
  text-decoration: none;
}

#innerfooter ul a:hover,
#innerfooter ul a:focus {
  color: #981091;
}

#innerfooter ul li+li::before {
  content: "•";
  margin: 0 15px;
  color: #282828;
}

@media (min-width: 1200px) {
  #innerfooter ul li+li::before {
    margin: 0 25px;
  }
}

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

#vernetzt {
  text-align: left;
  font-size: 1rem;
  color: #282828;
  line-height: 1.4;
  margin: 25px auto 0 auto;
  font-weight: 400;
  text-decoration: none;
}

@media (min-width: 768px) {
  #vernetzt {
    margin: 0;
  }
}

@media (min-width: 992px) {
  #vernetzt {
    font-size: 0.875rem;
  }
}

#vernetzt strong {
  font-weight: 600;
  color: #981091;
}

#vernetzt span span {
  display: block;
}

#vernetzt img {
  margin-right: 18px;
}

.dropdown-toggle-button-wrapper2 {
  top: 5px !important;
}

@media (max-width: 767px) {
  #innerfooter li {
    display: block;
    text-align: center;
    padding: 5px;
    margin: 0;
  }

  #innerfooter li+li::before {
    display: none;
  }
}