/* Mobile-Balken (nur Handy unter 768 px). Tablet und Desktop bleiben unveraendert.
   Testseite: /api/mobile-test.php */
/* Kein Doppeltipp-Zoom auf der ganzen Seite (Pinch-Zoom bleibt fuer Barrierefreiheit erhalten) */
html,body,*{touch-action:manipulation}

.mr-mobile-bar{display:none}
[x-cloak]{display:none!important}

@media (max-width:47.99rem){
  /* ---------- Balken ---------- */
  .mr-mobile-bar{position:fixed;z-index:1400;left:max(1.6rem,env(safe-area-inset-left));right:max(1.6rem,env(safe-area-inset-right));bottom:max(.9rem,env(safe-area-inset-bottom));display:flex;align-items:stretch;gap:.2rem;height:5.4rem;padding:.5rem;border-radius:2.7rem;background:rgb(251 247 241 / 97%);transform:translate3d(0,0,0);will-change:transform,opacity;opacity:1;visibility:visible;transition:opacity .28s ease,transform .28s ease,visibility 0s linear 0s;box-shadow:0 0 .8rem rgb(8 30 61 / 24%),0 -.1rem 1.4rem rgb(8 30 61 / 12%);color:var(--navy)}
  .mr-mobile-bar__item{position:relative;flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;min-width:0;margin:0;padding:0;border:0;border-radius:2.2rem;background:transparent;color:inherit;font:400 1.25rem/1 var(--mr-font-advercase),var(--heading);letter-spacing:.01em;text-transform:none;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .mr-mobile-bar__item svg{display:block;width:2.2rem;height:2.2rem;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .mr-mobile-bar__item:focus-visible{outline:0;box-shadow:var(--focus)}
  .mr-mobile-bar__item[hidden]{display:none}
  .mr-mobile-bar__count{position:absolute;top:.3rem;left:calc(50% + .3rem);min-width:1.7rem;height:1.7rem;padding:0 .4rem;border-radius:.9rem;background:#03fae1;color:var(--navy);font:700 1.05rem/1.7rem var(--heading);letter-spacing:0;text-align:center;box-shadow:0 0 0 .2rem rgb(251 247 241 / 96%)}
  .mr-mobile-bar__pulse{position:absolute;top:.6rem;left:calc(50% + .8rem);width:1rem;height:1rem;border-radius:50%;background:#03fae1;box-shadow:0 0 0 .2rem rgb(251 247 241 / 96%)}
  .mr-mobile-bar__pulse::after{position:absolute;inset:0;border-radius:50%;background:#03fae1;content:'';animation:mr-bar-pulse 1.8s ease-out infinite}
  @keyframes mr-bar-pulse{0%{opacity:.8;transform:scale(1)}100%{opacity:0;transform:scale(3.2)}}
  @media (prefers-reduced-motion:reduce){.mr-mobile-bar__pulse::after{animation:none}}
  body.is-locked .mr-mobile-bar,body.navigation-is-open .mr-mobile-bar{opacity:0;visibility:hidden;pointer-events:none;transform:translate3d(0,1.4rem,0);transition:opacity .2s ease,transform .2s ease,visibility 0s linear .2s}
  .site-header .brand-link{will-change:opacity,transform}

  /* Platz am Seitenende, damit der Balken den Footer nicht verdeckt */
  footer{padding-bottom:calc(8rem + env(safe-area-inset-bottom))}

  /* ---------- Chat: Schwebe-Button ersetzt durch Balken-Taste ---------- */
  .site-chat-toggle{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;opacity:0!important;pointer-events:none!important;animation:none!important}

  /* ---------- Hero Startseite ---------- */
  .hero-product--home .hero-product-quantity{display:none}
  .hero-product--home .hero-product-purchase{align-items:center;justify-content:center;gap:1.4rem;margin-bottom:1.6rem}
  .hero-product--home .hero-product-buy{flex:0 0 auto;min-width:0;min-height:4.6rem;margin-top:0;padding:1rem 2.2rem;border:1.5px solid var(--clay);border-radius:999px;background:var(--paper);color:var(--navy);font:700 1.6rem/1 var(--heading);letter-spacing:.02em;text-transform:uppercase}

  /* Reihenfolge: Preis+Button, Haendler-Logos, dann Flasche (links) und Drink (rechts) bis ans Marquee */
  .hero-product.hero-product--home{padding-bottom:0!important}
  .hero-product.hero-product--home .hero-copy--product{display:contents!important}
  .hero-product.hero-product--home .hero-product-eyebrow{order:1!important;margin-top:5rem}
  .hero-product.hero-product--home .hero-copy--product h1{order:2!important}
  .hero-product.hero-product--home .hero-product-description{order:3!important}
  .hero-product.hero-product--home .product-facts{order:4!important}
  .hero-product.hero-product--home .hero-product-purchase{order:5!important;position:relative;z-index:4}
  .hero-product.hero-product--home .hero-retailers{order:6!important;margin-top:0;margin-bottom:1rem}
  .hero-product.hero-product--home .hero-media{order:7!important;margin-bottom:0!important}
  .hero-product--home .hero-bottle{left:4%;bottom:0}
  .hero-product--home .hero-cocktail{right:-6%;bottom:-1.5%}
}

/* Chat-Fenster (Handy, ab 749 px abwaerts feste Position): endet ueber dem Balken */
@media (max-width:749px){
  .site-chat-panel{bottom:calc(7.2rem + env(safe-area-inset-bottom))!important;left:1.2rem!important;right:1.2rem!important;width:auto!important;height:min(56rem,calc(100dvh - 15rem))!important;max-height:calc(100dvh - 15rem)!important}
}

/* Menue-Drawer (Handy): Inhalt skaliert mit der Bildschirmhoehe und passt immer ohne Scrollen */
@media (max-width:749px){
  .navigation-drawer{overflow-y:hidden!important}
  .navigation-content{justify-content:center!important;height:100%!important;min-height:0!important;padding:9svh 2.4rem 5svh 2rem!important}
  .navigation-primary>ul{gap:3.6svh!important}
  .navigation-primary .navigation-main-link{font-size:min(3.9rem,4.7svh)!important}
  .navigation-submenu{gap:1.3svh!important;margin-top:2svh!important}
  .navigation-primary .navigation-submenu a{font-size:min(2.75rem,3.5svh)!important;line-height:1.08!important}
  .navigation-follow{margin-top:3.4svh!important}
  .navigation-follow p{margin-bottom:1.2svh!important;font-size:min(1.9rem,2.4svh)!important}
  .navigation-social a{width:min(3.6rem,4.6svh);height:min(3.6rem,4.6svh)}
  .navigation-social svg{width:min(3rem,3.9svh);height:min(3rem,3.9svh)}
  .navigation-languages{margin-top:1.4svh!important;font-size:min(1.5rem,2svh)!important}
  .navigation-external-link{margin-top:1.6svh!important;font-size:min(1.5rem,2svh)!important}
}

/* Pillen-Buttons "Zum Rezept" (Startseite + Rezepte, alle Sprachen, alle Geraetegroessen) */
body .mr-recipe-split__button,body .home-recipe-split .mr-recipe-split__button{border:1.5px solid var(--clay,#d4aa92);border-radius:999px;background:var(--paper,#fbf7f1);color:var(--navy,#081e3d);box-shadow:none;transition:background-color .2s ease,border-color .2s ease,transform .2s ease}
body .mr-recipe-split__button:hover,body .mr-recipe-split__button:focus-visible,body .home-recipe-split .mr-recipe-split__button:hover,body .home-recipe-split .mr-recipe-split__button:focus-visible{border-color:var(--clay,#d4aa92);background:var(--clay,#d4aa92);color:var(--navy,#081e3d)}
body .mr-recipe-split__button:focus-visible{outline:0;box-shadow:var(--focus)}
