/* Overwrite Rosenmehl template */
body .page__content {
  padding-top: 0 !important;
}

#back-to-top {
  z-index: 20 !important;
}

@font-face {
  font-family: 'Fraunces Semibold';
  src: url('../fonts/Fraunces_144pt_SuperSoft-SemiBold.woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Fraunces Regular';
  src: url('../fonts/Fraunces_144pt_SuperSoft-Regular.woff2');
  font-weight: 600;
  font-style: normal;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Bayern Bio Mehl */
.bbm {
  background-color: #fff;
  margin-bottom: -90px;
  padding-bottom: 90px;
  color: #502c1d;
}

.bbm__section {
  padding: 2.5rem 0;
}

.bbm__inner {
  padding: 0 1rem;
  margin: auto;
}

.bbm__pseduo-bg {
  position: relative;
  overflow: hidden;
}

.bbm__pseduo-bg::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  content: '';
  background-image: url('../images/bg.webp');
}

/* Typography */
.bbm__hl-semibold {
  font-family: 'Fraunces Semibold', serif;
  color: #502c1d;
}

.bbm__hl-regular {
  font-family: 'Fraunces Regular', serif;
  color: #502c1d;
}

.bbm__hl-xs {
  font-size: 2.25rem;
  line-height: 1.167;
}

.bbm__copy {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.bbm__copy p {
  font-size: inherit;
  margin: 1em 0;
  line-height: inherit;
}

.bbm__copy p:last-child {
  margin-bottom: 0;
}

/* Components */
.bbm a {
  color: currentColor;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  border: none;
}

.bbm a:hover {
  border: none;
  text-decoration: none;
}

.bbm__ulist {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.bbm__ulist li {
  list-style: disc;
}

/* Utils */
.bbm__cta--text {
  font-size: 1rem;
  line-height: 1.5;
}

/* Content */
.bbm__hero {
  height: 99vw;
  max-height: 60rem;
  background: url('../images/hero-bg-mobile.webp') center center no-repeat;
  background-size: cover;
  padding: 0;
  margin-bottom: 1rem;
}

.bbm__hero .bbm__inner {
  display: flex;
  height: 100%;
  align-items: flex-end;
  padding-bottom: 1.875rem;
}

.bbm__heroHeadline {
  font-size: clamp(2.25rem, 1.2817rem + 4.1315vw, 5rem);
  line-height: 1.167;
}

.bbm__introText {
  text-align: center;
  background: url('../images/bg.webp');
  padding: 2.5rem 0;
  font-size: 1.5rem;
  line-height: 1.33;
}

.bbm__products-container {
  position: relative;
  overflow: hidden;
}

.bbm__product-content {
  max-width: 24rem;
  margin: auto;
}

.bbm__product-heading span {
  display: block;
  text-transform: uppercase;
}

.bbm__product-image {
  margin: 0 auto 2.5rem;
  width: 225px;
  display: block;
}

.bbm__carousel-navigation--products {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 1.5rem);
  max-width: 24rem;
  z-index: 1;
}

.bbm__carousel-button {
  width: 33px;
  height: 33px;
  border: none;
  background: none;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  cursor: auto;
  transition: opacity 0.15s ease-in-out;
}

.bbm__carousel-button[aria-disabled='false'] {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.bbm__carousel-button:hover circle {
  fill: #39acd7;
}

.bbm__carousel-button svg {
  width: 100%;
  height: 100%;
}

.bbm__carousel-prev {
  transform: rotate(-180deg);
  right: auto;
  left: 0;
}

.bbm__carousel-navigation--products .bbm__carousel-button {
  position: absolute;
  top: 21rem;
  right: 0;
}

.bbm__lecker {
  padding-top: 0;
}

.bbm__lecker::after {
  top: calc(50% - 1.25rem);
}

.bbm__lecker-content {
  position: relative;
  aspect-ratio: 343 / 227;
  max-width: 515px;
  margin: 0 0 0 auto;
  z-index: 9;
  transition: transform 0.15s ease-in-out;
}

.bbm__lecker-image {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

.bbm__lecker-image--active {
  opacity: 1;
}

.bbm__lecker-image[data-lecker='kuchen-gebaeck'] {
  right: 0%;
}
.bbm__lecker-image[data-lecker='pfannkuchen'] {
  right: -150px;
}
.bbm__lecker-image[data-lecker='pizza'] {
  right: -300px;
}

.bbm__facts {
  background: url('../images/bg.webp') repeat;
}

.bbm__facts-content {
  display: grid;
  row-gap: 2.5rem;
}

.bbm__facts-image {
  margin: auto;
}

.bbm__videos {
  overflow: hidden;
  position: relative;
}

.bbm__carousel-navigation--videos {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  margin: 1.5rem 0;
  column-gap: 0.75rem;
}

.bbm__carousel-navigation--videos .bbm__carousel-button[aria-disabled='true'] {
  opacity: 0.5;
}

.bbm__video figure {
  margin: 0;
  display: grid;
  row-gap: 1.5rem;
}

.bbm__video-wrapper {
  position: relative;
}

.bbm__video-play {
  position: absolute;
  z-index: 10;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  place-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.bbm__video-play img {
  width: clamp(2rem, 1.5599rem + 1.8779vw, 3.25rem);
  height: auto;
  pointer-events: none;
}

.bbm__video video {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.bbm__videos-content,
.bbm__carousel-navigation--videos,
.bbm__videos-list,
.bbm__video video {
  position: relative;
  z-index: 1;
}

.bbm__videos-bg {
  background-image: url('../images/bg.webp');
  width: 100vw;
  height: 100%;
  position: absolute;
  left: 0;
  transform: translateY(calc(-100% + calc(0.28125 * (100vw - 2rem))));
}

.bbm__scroller {
  background: url('../images/scroller.svg') 0 0 repeat-x;
  background-size: auto 100%;
  height: 34px;
}

.bbm__facts-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.bbm__facts-bio {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bbm__facts-bio > p {
  margin: 0;
}

.bbm__facts-image {
  max-width: 100%;
  width: 230px;
  height: auto;
}

/* Desktop: >= 1024px */
@media only screen and (min-width: 1024px) {
  .bbm__section {
    padding: 3.75rem 0;
  }

  .bbm__inner {
    max-width: 58rem;
  }

  /* Typogrpahy */
  .bbm__copy {
    font-size: 1.125rem;
    line-height: 1.44;
  }

  .bbm__hl-xl {
    font-size: 3rem;
    line-height: 1.083;
  }

  /* Content */
  .bbm__hero {
    height: 48vw;
    max-height: 50rem;
    background: url('../images/hero-bg-desktop.webp') top center no-repeat;
    background-size: cover;
    padding: 0;
    margin-bottom: 3rem;
    margin-top: 3rem;
  }

  .bbm__introText {
    font-size: 2rem;
    line-height: 1.5;
  }

  .bbm__products-container {
    max-width: none;
  }

  .bbm__product-content {
    display: grid;
    align-items: center;
    column-gap: 2rem;
    grid-template-columns: 341px 1fr;
    max-width: 56rem;
    width: 100%;
    overflow: hidden;
  }

  .bbm__product-text {
    display: grid;
    row-gap: 0.625rem;
  }

  .bbm__product-link {
    margin-top: calc(0.625rem + 1em) !important;
  }

  .bbm__product-image {
    width: 341px;
    height: auto;
    margin-bottom: 0;
  }

  .bbm__carousel-button {
    width: 52px;
    height: 52px;
  }

  .bbm__carousel-navigation--products {
    max-width: 68rem;
  }

  .bbm__carousel-navigation--products .bbm__carousel-button {
    top: 315px;
  }

  .bbm__lecker {
    margin-top: -3.75rem;
    padding-top: 0;
  }

  .bbm__lecker::after {
    top: calc(50% - 1.875rem);
  }

  .bbm__lecker-image {
    width: 620px;
    height: 410px;
  }

  .bbm__facts-content {
    column-gap: 2rem;
    row-gap: 1.75rem;
    grid-template-columns: 60% 1fr;
    align-items: center;
  }

  .bbm__facts-image-wrapper {
    grid-column-start: 2;
    grid-row: 1 / span 2;
  }

  .bbm__facts-image {
    width: 320px;
  }

  .bbm__carousel-navigation--videos {
    margin: 1.75rem 0;
  }

  .bbm__videos-list-wrapper {
    overflow: hidden;
  }

  .bbm__video figure {
    row-gap: 1.75rem;
  }

  .bbm__video .bbm__copy {
    width: 75%;
  }

  .bbm__videos-bg {
    transform: translateY(calc(-100% + calc(0.28125 * (100% - 2rem))));
  }

  .bbm__scroller {
    height: 38px;
  }
}
