@media (max-width: 1500px) {
  .span1,
  .span2,
  .span3,
  .span4 {
    font-size: 30px;
    --badge: 120px;
    margin-top: 30px;
  }
}

@media (max-width: 1400px) {
  .section3 .img-cafe {
    margin-left: 5rem;
  }

  .hero-jojo {
    background-position-y: 0px;
  }

  .header-block {
    padding-top: 43rem;
  }

  .header-top p {
    margin-bottom: 8%;
  }

  .header-mid h1 {
    margin-bottom: 8%;
  }
}

@media (max-width: 1200px) {
  .header-top {
    padding-top: 180px;
  }

  .header-top p {
    margin-bottom: 20px;
  }
}

@media (max-width: 1100px) {
  .recipe-img {
    margin-left: 15%;
  }

  .ingredients-wrapper {
    padding-left: 5%;
    padding-top: 5%;
  }
}

@media (max-width: 1000px) {
  .img-wrapper img {
    height: 400px;
  }

  .intro-text p {
    font-size: 25px;
    line-height: 22px;
  }

  .section3 .img-cafe {
    margin-left: 0rem;
    padding-left: 5%;
    width: 400px;
    height: 500px;
  }

  .intro-header {
    padding-bottom: 2rem;
  }

  .shirt-header {
    left: -3rem;
    top: 0;
  }

  .shirt-header h1 {
    font-size: clamp(1rem, 8vw + 1rem, 5rem);
  }

  .recipe-img {
    height: 400px;
  }

  .header-block {
    padding-left: 5%;
  }
}

@media (max-width: 900px) {
  .hero-jojo {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    background-repeat: no-repeat;
    background-position: 50% center;
  }

  .header-block {
    padding-top: 30rem;
    padding-bottom: 10rem;
  }
}

@media (max-width: 800px) {
  .stack-stage {
    display: flex;
    flex-direction: column;
  }

  .hero-portrait img {
    position: absolute;
    height: 55vh;
    width: auto;
    z-index: 9999;
    top: 7%;
    max-width: 100svw;
  }
  .img-wrapper img {
    height: 300px;
  }

  .section3 .img-cafe {
    margin-left: 0rem;
    padding-left: 5%;
    width: 300px;
    height: 350px;
  }

  .intro-text p {
    font-size: 20px;
    line-height: 20px;
  }

  .marquee-copy {
    font-size: clamp(1rem, 4vw + 1rem, 10rem);
  }

  .shirt-thumb {
    height: 70px;
    width: 70px;
  }

  .footer-baseline h1 {
    font-size: 12px;
  }

  .baseline-right a {
    font-size: 12px;
    margin-left: 7px !important;
  }

  .footer-baseline {
    align-items: center;
  }

  .footer-pop-layer {
    position: absolute; /* oder relative zum Footer-Container */
    inset: 0;
    pointer-events: none; /* <<< wichtig */
    z-index: 0; /* unter die Links legen */
  }

  .footer-pop-layer .footer-pop-item {
    pointer-events: none; /* <<< wichtig */
  }

  .footer-list a,
  .footer-recipes a {
    position: relative;
    z-index: 1; /* über dem Layer */
  }

  .recipes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 200px;
  }

  .recipe-img {
    height: 300px;
  }

  .description-header h1 {
    width: 80%;
  }

  .recipe-wrapper {
    grid-template-rows: 500px auto;
  }

  .stack-stage .span1,
  .stack-stage .span2,
  .stack-stage .span3,
  .stack-stage .span4 {
    float: left; /* oder right je nach Version */
    /* kleinere Kreise auf Mobile */
    --badge: clamp(80px, 20vw, 140px);
    margin: 1rem 1rem 1rem 0;
    shape-outside: circle(50%);
    -webkit-shape-outside: circle(50%);
    margin: 40px;
  }
}

@media (max-width: 600px) {
  .stack-stage {
    display: flex;
    flex-direction: column;
  }

  .badge-right {
    margin-right: 0;
    margin-left: 10px;
    margin-bottom: 30px;
  }

    .badge-left {
    margin-left: 0;
    margin-right: 10px;
    margin-bottom: 30px;
  }

  .section1-jojo-p {
    width: 100%;
    display: flex;
    flex-direction: row;
  }

  .badge1 p,
  .badge2 p,
  .badge3 p,
  .badge4 p {
    font-size: 15px;
  }

  .section1-jojo-text {
    padding: 10px;
  }

  .p1 {
    width: 100%;
    justify-content: center;
    margin: 0;
    padding: 0;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .nav {
    display: none;
  }

  .fab-menu {
    opacity: 1 !important;
  }

  .img-wrapper img {
    height: 200px;
  }

  .segment-header h1,
  .segment-header h2 {
    font-size: 25px;
  }

  .section3 .img-cafe {
    width: 200px;
    height: 250px;
  }

  .footer-menu {
    gap: 15%;
  }

  .footer-list a {
    font-size: 15px;
  }

  .footer-baseline {
    display: flex;
    flex-direction: column;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .baseline-right {
    margin: 0;
    padding-bottom: 1%;
  }

  .fab-menu {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .recipe-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding-left: 8%;
    padding-right: 8%;
  }

  .recipe-wrapper img {
    margin: 0;
    margin-top: -50%;
  }

  .ingredients-wrapper {
    padding: 0;
    margin-top: 10px;
  }

  .ingredients-1,
  .ingredients-2 {
    padding: 10px;
  }

  .side-extra {
    margin-bottom: 50px;
  }
  .recipe-text {
    display: flex;
    flex-direction: column;
    margin-top: -5rem;
  }

  .instruction-list li {
    padding-bottom: 20px;
    padding-top: 20px;
  }

  /* Optional: ausblenden, wenn das Seitenmenü offen ist */
  .side-menu.open ~ .fab-menu {
    opacity: 0;
    pointer-events: none;
  }

  /* Optional: wenn Mega-Panel offen ist */
  .mega-panel.open ~ .fab-menu {
    opacity: 0;
    pointer-events: none;
  }

  .recipe-img {
    margin-left: 8%;
  }

  .recipe-header h1 {
    font-size: 30px;
  }

  .description-country h1 {
    font-size: 17px;
  }

  .description-header h1 {
    font-size: 17px;
  }

  .description-header h2 {
    font-size: 15px;
  }

  .ingredients-1 h1,
  .ingredients-2 h1 {
    font-size: 15px;
  }

  .ingredients li {
    font-size: 12px;
  }

  .instruction li {
    font-size: 15px;
    padding-right: 5%;
  }

  .instruction li::before {
    font-size: 40px;
  }

  .instruction-list {
    padding-bottom: 70px;
  }

  .recipe-text {
    position: fixed;
    height: 50%;
    top: 30rem;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    margin-bottom: 5%;
    -webkit-overflow-scrolling: touch;
    width: 70%;
  }

  .recipe-media {
    transform: none;
    will-change: auto;
  }

  .recipe {
    transform: none;
    will-change: auto;
  }

  .recipe-header,
  .description-country,
  .description-header {
    padding-bottom: 4%;
  }
}

@media (max-width: 530px) {
  .recipe-img {
    height: 250px;
  }

  .recipe-header h1 {
    font-size: 20px;
  }

  [data-scroll-container] {
    transform: none; /* ← fixe Elemente wieder am Viewport ausrichten */
    will-change: auto;
  }
}

@media (max-width: 500px) {
  .stack-stage .span1,
  .stack-stage .span2,
  .stack-stage .span3,
  .stack-stage .span4 {
    display: none;
    text-align: center;
  }

  .p1 {
    width: 100%;
    justify-content: center;
    margin: 0;
    padding: 0;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .p1 p {
    width: 80%;
  }
  .section2-grid {
    display: flex;
    flex-direction: column;
    width: 80%;
  }

  .img-wrapper img {
    height: 50%;
  }

  .segment {
    padding: 10%;
  }

  .segment-header h1,
  .segment-header h2 {
    padding: 5%;
  }

  .segment-header h1 {
    font-size: 15px;
  }

  .content-p1 p {
    font-size: 40px;
    width: 100%;
    padding: 5%;
  }

  .intro-text p {
    font-size: 17px;
    line-height: 18px;
  }

  .shirt-thumbs {
    gap: 5px;
  }

  .footer-menu {
    flex-direction: column;
    padding-top: 3rem;
    justify-content: center;
    align-items: center;
  }

  .footer-nav-header,
  .footer-menu-header {
    padding-bottom: 2rem;
    font-size: 8px;
  }

  .footer-list {
    margin-left: 0rem;
    text-align: center;
  }

  .footer-baseline {
    padding-bottom: 4%;
  }

  .section1 {
    padding-bottom: 0;
  }

  @media (max-width: 475px) {
    .recipes-main-header {
      line-height: 60px;
    }
  }

  @media (max-width: 430px) {
    .segment-header h1 {
      font-size: 10px;
    }

    .header-block {
      width: 70%;
    }

    .header-mid h1 {
      margin-bottom: 100px;
    }

    .segment-header h2 {
      font-size: 15px;
    }

    .section3 {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }

    .intro {
      width: 80%;
      margin: 0;
    }

    .intro-header {
      text-align: center;
      padding: 0;
    }

    .shirt-thumb {
      width: 40px;
      height: 40px;
    }

    .content-p1 p {
      font-size: 30px;
      letter-spacing: 0.5px;
      font-family: nohemi-reg;
    }
  }

  @media (max-width: 380px) {

    .badge-left, .badge-right {
        --cirlce: 120px;
 height: var(--cirlce);
 width: var(--cirlce);
    }

    .badge1 p,
    .badge2 p,
    .badge3 p,
    .badge4 p {
      font-size: 12px;
      letter-spacing: -.5px;
    }
    .segment-header h1 {
      font-size: 10px;
    }

    .segment-header h2 {
      font-size: 15px;
    }

    .shirt-header {
      top: 1rem;
    }

    .shirt-header h1 {
      font-size: 50px;
    }

    .footer-list a {
      font-size: 12px;
    }

    .recipe-wrapper {
      padding-left: 0;
      padding-right: 0;
    }

    .recipe-text {
      padding: 0;
      margin: 0;

      justify-self: center;
      width: 90%;
      margin: 5px 5px;
      margin-top: -5rem;
    }

    .instruction {
      padding-right: 0;
    }

    .instruction-list li {
      font-size: 13px;
    }

    .instruction-list li::before {
      font-size: 30px;
    }

    .ingredients-wrapper li {
      letter-spacing: 1px;
    }
  }

  @media (max-width: 350px) {
    .shirt-header {
      top: 0;
    }

    .section2-header h1 {
      font-size: 36px;
      text-shadow: 1px 1px (rgba(0, 0, 0, 0));
    }

    .hero-portrait img {
      top: 27rem;
    }

    .recipe-text {
      margin-top: -5rem;
    }
  }

  @media (max-width: 260px) {
    .instruction-list li::before {
      font-size: 25px;
    }

    .instruction-list li {
      padding-left: 5px;
      padding-right: 5px;
      padding-top: 30px;
    }

    .ingredients-3 {
      padding: 10px;
    }
  }
}
