/*
Theme Name: Medienbildung München Theme
Author: Andreas Hauser
Author URI: https://github.com/hauserandr
Description: Theme des Webportals Medienbildung München
Version: 1.0.0
*/

.mebm-header {
  position: fixed;
  height: 75px;
  width: 100vw;
  border-bottom: 1px solid #dee2e6 !important;
  background: var(--wp--preset--color--mebm-white);
  z-index: 1000;
}
#mebm-header-gap {
  height: 75px;
  width: 100%;
}
.mebm-container {
  display: flex;
  align-items: center;
  height: 100%;
  margin: auto;
  padding-left: 15px;
  padding-right: 15px;
  justify-content: space-between;
}
.mebm-logo {
  width: 135px;
  padding-right: 1rem;
}
.mebm-logo img {
  width: auto;
  max-width: 100%;
}
.mebm-logo-right {
  display: none;
  padding-left: 1rem;
  padding-right: 0;
}
.mebm-center {
  height: 100%;
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  border-left: 1px solid #dee2e6 !important;
  border-right: 1px solid #dee2e6 !important;
}

.mebm-search-wrapper {
  height: 50%;
  width: 100%;
  border-bottom: 1px solid #dee2e6 !important;
}

.mebm-menu-toggle {
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  background: var(--wp--preset--color--mebm-white);
}

.mebm-menu-toggle:hover,
.mebm-menu-toggle:focus {
  background: var(--wp--preset--color--mebm-light-grey) !important;
  color: var(--wp--preset--color--mebm-orange) !important;
}

.mebm-menu-toggle.is-open .bars {
  display: none;
}

.mebm-menu-toggle:not(.is-open) .xmark {
  display: none;
}

.mebm-nav {
  width: 100%;
  height: 50%;
  display: flex;
  justify-content: space-between;
}
.mebm-mobile-nav {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1rem;
}
.mebm-mobile-nav > li {
  display: flex;
}
.mebm-nav-list {
  height: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
  overflow: hidden;
}
.mebm-nav-list-appendix {
  list-style: none;
  border-left: 1px solid #dee2e6 !important;
  padding: 0;
  margin: 0;
}
.mebm-nav-list-appendix > li {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.mebm-nav-list-appendix > li:hover,
.mebm-nav-list-appendix > li:focus,
.mebm-nav-list > li:hover,
.mebm-nav-list > li:focus {
  background: var(--wp--preset--color--mebm-light-grey) !important;
}
.mebm-nav-list-appendix > li > a {
  color: var(--wp--preset--color--mebm-blue) !important;
}
.mebm-nav-list-appendix > li:first-child {
  border-bottom: 1px solid #dee2e6 !important;
}
.mebm-nav-list > li {
  display: flex;
  height: 100%;
}
.mebm-nav-link {
  display: flex;
  align-self: center;
  padding: 0 1rem;
  height: 100%;
  font-size: 1rem;
  text-decoration: none;
  color: var(--wp--preset--color--mebm-dark) !important;
  text-transform: uppercase;
}
.mebm-nav-link > strong {
  display: block;
  align-self: center;
}
.mebm-nav-link:focus,
.mebm-nav-link:hover {
  background: var(--wp--preset--color--mebm-light-grey) !important;
}
.mebm-nav-list-overflow,
#mebm-mobile-nav-list {
  display: none;
  position: absolute;
  text-align: center;
  background: var(--wp--preset--color--mebm-white);
  list-style: none;
  margin: 0;
  padding: 0;
  left: 50%;
  top: 100%;
  width: 100vw;
  transform: translateX(-50%);
  height: auto;
  z-index: 1;
  border-top: 1px solid #dee2e6 !important;
  border-bottom: 1px solid #dee2e6 !important;
}
.mebm-nav-list-overflow .mebm-nav-link,
#mebm-mobile-nav-list .mebm-nav-link {
  padding: .75rem 0;
  width: 100%;
  text-align: center;
  justify-content: center;
}
#mebm-mobile-nav-list > ul > li {
  width: 100%;
  display: flex;
  justify-content: center;
}
.mebm-nav-list-overflow.is-open,
#mebm-mobile-nav-list.is-open {
  display: block;
}
@media (max-width: 600px) {
  .mebm-nav {
    display: none;
  }
  .mebm-menu-toggle {
    display: block;
    align-self: flex-end;
  }
  .mebm-nav.mebm-is-open {
    display: block;
  }
  .mebm-nav-list {
    flex-direction: column;
    border-top: 1px solid #ddd;
  }
  .mebm-nav-list-overflow,
  #mebm-mobile-nav-list {
    border-bottom: 1px solid #ddd;
  }
}
.mebm-visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

@media (min-width: 576px) {
  .mebm-container,
  .mebm-container-sm {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .mebm-container,
  .mebm-container-md,
  .mebm-container-sm {
    max-width: 720px;
  }

  .mebm-header,
  #mebm-header-gap {
    height: 100px;
  }

  .mebm-container {
    justify-content: start;
  }

  .mebm-center {
    display: flex;
  }

  .mebm-mobile-nav {
    display: none;
  }

  .mebm-logo-right {
    display: block;
  }

  #mebm-mobile-nav-list {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .mebm-container,
  .mebm-container-lg,
  .mebm-container-md,
  .mebm-container-sm {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .mebm-container,
  .mebm-container-lg,
  .mebm-container-md,
  .mebm-container-sm,
  .mebm-container-xl {
    max-width: 1140px;
  }
}

@media (min-width: 576px) {
  #tribe-events-pg-template,
  .container,
  .container-sm,
  .tribe-events-pg-template,
  .tribe-events-view .tribe-events-l-container,
  .tribe-events-view > div {
    max-width: 540px !important;
  }
}

@media (min-width: 768px) {
  #tribe-events-pg-template,
  .container,
  .container-md,
  .container-sm,
  .tribe-events-pg-template,
  .tribe-events-view .tribe-events-l-container,
  .tribe-events-view > div {
    max-width: 720px !important;
  }
}

@media (min-width: 992px) {
  #tribe-events-pg-template,
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .tribe-events-pg-template,
  .tribe-events-view .tribe-events-l-container,
  .tribe-events-view > div {
    max-width: 960px !important;
  }
}

@media (min-width: 1200px) {
  #tribe-events-pg-template,
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .tribe-events-pg-template,
  .tribe-events-view .tribe-events-l-container,
  .tribe-events-view > div {
    max-width: 1140px !important;
  }
}

.mebm-layout-people-anchor {
  position: relative;
  padding-top: 35px;

  .mebm-layout-people {
    position: absolute;
    width: 350px;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
  }
}

:root {
  --tec-font-family-sans-serif: "Open Sans", sans-serif;
  --tec-color-accent-primary: #168dc7;
  --tec-color-accent-primary-hover: #1670c7;
}

.tribe-events-calendar-month__day--current {
  border-width: 2px !important;
  border-color: var(--tec-color-accent-primary) !important;
}

#tribe-events-pg-template,
.tribe-events-pg-template,
.tribe-events-view .tribe-events-l-container,
.tribe-events-view > div {
  padding-left: 15px !important;
  padding-right: 15px !important;
}


.mebm-ib-wrapper {
   position: relative;
}
 .mebm-ib-wrapper .mebm-ib-image {
   position: absolute;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
   background-size: cover !important;
   background-position: center !important;
}
 .mebm-ib-wrapper > div {
   position: absolute;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
   background-size: cover !important;
   background-position: center !important;
}
 .mebm-ib-wrapper > div > div {
   display: inline-block;
   position: absolute;
   left: 50%;
   top: 50%;
   transform: translate(-50%, -50%);
}
 .mebm-itb-wrapper {
   height: 185px;
   color: white;
}
 .mebm-itb-wrapper > div {
   height: 100%;
}
 .mebm-itb-wrapper > div > div {
   height: 100%;
   position: relative;
   overflow: hidden;
}
 .mebm-itb-wrapper > div > div > div {
   display: inline-block;
   position: absolute;
   left: 0;
   top: 50%;
   transform: translate(0, -50%);
   width: 100%;
}
 .mebm-wb-wrapper {
   position: relative;
   width: 100vw !important;
   margin-left: -50vw !important;
   left: 50%;
}
.mebm-home-title-block {
  text-align: center;
  color: var(--wp--preset--color--mebm-white) !important;
}

.mebm-pb-wrapper {
   max-width: 400px;
   overflow: hidden;
   position: relative;
}
 .mebm-pb-wrapper .mebm-image-wrapper {
   position: relative;
   padding-top: 100%;
}
 .mebm-pb-wrapper .mebm-image-wrapper .mebm-image {
   position: absolute;
   left: 0;
   top: 0;
   width: 100%;
   height: calc(100% - 6.5rem);
   object-fit: cover;
   object-position: center;
   background-size: cover !important;
   background-position: center !important;
}