/* ================================
   00. Schriften (lokal gehostet, kein Google-Server)
================================ */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tajawal";
  src: url("fonts/tajawal-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Tajawal";
  src: url("fonts/tajawal-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Tajawal";
  src: url("fonts/tajawal-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Tajawal";
  src: url("fonts/tajawal-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Tajawal";
  src: url("fonts/tajawal-arabic-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Tajawal";
  src: url("fonts/tajawal-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ================================
   01. Global Reset & Body
================================ */

:root {
  --logo-size: 185px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: white;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 176, 0, 0.22), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(255, 72, 0, 0.16), transparent 32%),
    #111;
  min-height: 100svh;
}

.hidden {
  display: none !important;
}


/* ================================
   02. Main Layout
================================ */

.app,
main {
  width: min(1180px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 15px 14px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.mobile-footer-space {
  height: clamp(35px, 6vh, 70px);
}


/* ================================
   03. Hero / Logo
================================ */

.hero {
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 38px;
}

.main-logo,
.small-logo {
  width: var(--logo-size);
  height: auto;
  display: block;
  margin: 8px auto 6px;
  opacity: 1;
  transform: translateY(-8px);
  animation: logoFade 1.2s ease both;
  filter: brightness(1.35) drop-shadow(0 0 18px rgba(255,176,0,0.25));
  background: transparent;
}

.halal-badge {
  display: flex;
  justify-content: center;
  width: clamp(240px, 38vw, 320px);
  margin: -10px auto 12px;
  transform: translateX(55px);
}

.halal-badge span {
  color: #f5b52e;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  font-family: "Tajawal", sans-serif;
  text-shadow: 0 0 14px rgba(255,181,46,0.35);
}


/* ================================
   04. Top Search & Language
================================ */

.top-tools {
  position: relative;
  top: auto;
  right: auto;
  z-index: 100;
  width: 100%;
  max-width: calc(100vw - 20px);
  margin: 25px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateY(8px);
}

.top-search {
  position: relative;
}

.top-search input {
  width: 155px;
  height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,176,0,0.35);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  color: white;
  outline: none;
  font-size: 13px;
  font-weight: 700;
}

.language-dropdown {
  position: relative;
}

.language-toggle {
  width: 105px;
  height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,176,0,0.45);
  background: rgba(0,0,0,0.35);
  color: white;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lang-icon {
  color: #ffb000;
  font-size: 14px;
}

.language-menu {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  width: 150px;
  padding: 8px;
  z-index: 120;
  border-radius: 14px;
  background: rgba(20,20,20,0.98);
  border: 1px solid rgba(255,176,0,0.25);
}

.language-menu.show {
  display: block;
}

.language-menu button {
  width: 100%;
  padding: 11px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: white;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.language-menu button:hover {
  background: #ffb000;
  color: #111;
}

.language-menu button[onclick="changeLanguage('ar')"] {
  direction: rtl;
  text-align: right;
  font-family: "Tajawal", sans-serif;
}


/* ================================
   05. Search Results
================================ */

#searchResults {
  position: absolute;
  top: 50px;
  left: 0;
  width: min(260px, calc(100vw - 28px));
  max-height: 225px;
  overflow-y: auto;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

#searchResults::-webkit-scrollbar {
  width: 6px;
}

#searchResults::-webkit-scrollbar-thumb {
  background: rgba(255,176,0,0.5);
  border-radius: 999px;
}

.search-result {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10,10,10,0.92);
  border: 1px solid rgba(255,176,0,0.18);
  color: white;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
  transition: 0.2s ease;
}

.search-result:hover,
.search-result:active {
  background: rgba(255, 176, 0, 0.18);
  color: #fff;
}


/* ================================
   06. Back Button
================================ */

.back-btn {
  position: fixed;
  top: 14px;
  left: 14px;
  width: 80px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  z-index: 9999;
}

.back-btn.hidden {
  display: none !important;
}

.back-btn:hover {
  background: rgba(255, 176, 0, 0.15);
  border-color: rgba(255, 176, 0, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255, 176, 0, 0.35);
}

.back-btn:active {
  transform: scale(0.95);
}


/* ================================
   07. Category Tabs
================================ */

.category-tabs {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 8px;
  margin: 8px 0 16px;
}

.category-tabs button {
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 14px;
  border: 1px solid rgba(255, 176, 0, 0.45);
  background: rgba(255, 176, 0, 0.12);
  color: #ffb000;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
}

.category-tabs button.active {
  background: #ffb000;
  color: #111;
}

body.meal-open .category-tabs {
  display: none;
}


/* ================================
   08. Burger Wheel
================================ */

.wheel {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 450px;
  margin: -55px auto 0;
  perspective: 1100px;
  overflow: visible;
}

.burger-card {
  width: 230px;
  position: absolute;
  top: clamp(50px, 8vh, 85px);
  left: 50%;
  cursor: pointer;
  transition: 0.5s ease;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
  overflow: visible;
}

.burger-card img {
  width: 100%;
  height: 145px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
  transition: transform 0.35s ease, filter 0.35s ease;
  will-change: transform;
}

.burger-card:hover img {
  transform: scale(1.06);
  filter:
    drop-shadow(0 0 30px rgba(255,176,0,0.6))
    drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

.burger-card h2 {
  max-width: 220px;
  min-height: 42px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.burger-card p {
  margin: -2px 0 0;
  font-size: 18px;
  color: #ffb000;
  font-weight: 800;
}

.center {
  transform: translateX(-50%) scale(0.96);
  opacity: 1;
  z-index: 10;
}

.center img {
  animation: burgerFloat 4s ease-in-out infinite;
}

.center h2 {
  color: white;
}

.center p {
  color: #ffb000;
}

.left-side {
  transform: translateX(-102%) scale(0.60);
  opacity: 0.42;
  z-index: 2;
}

.right-side {
  transform: translateX(2%) scale(0.60);
  opacity: 0.42;
  z-index: 2;
}

.left-side h2,
.right-side h2 {
  font-size: 15px;
}

.left-side p,
.right-side p {
  opacity: 0.45;
}

.far {
  transform: translateX(-50%) translateZ(-250px) scale(0.55);
  opacity: 0;
  pointer-events: none;
}


/* ================================
   09. Opened Meal State
================================ */

.wheel.opened {
  min-height: clamp(520px, 85vh, 820px);
  margin-top: 20px;
  perspective: 1400px;
  overflow: visible;
}

.wheel.opened .burger-card:not(.active) {
  opacity: 0;
  pointer-events: none;
}

.wheel.opened .burger-card.active {
  position: absolute;
  width: clamp(175px, 54vw, 240px);
  top: clamp(300px, 53vh, 420px);
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 10;
  text-align: center;
  cursor: default;
  transition: transform 0.25s ease;
}

.wheel.opened .burger-card.active:hover {
  transform: translate(-50%, -50%) scale(0.96);
}

.wheel.opened .burger-card.active img {
  width: 100%;
  height: auto;
  max-height: clamp(185px, 29vh, 235px);
  object-fit: contain;
  animation: burgerReveal 1s cubic-bezier(.2,.8,.2,1) both;
  transition: transform 0.25s ease;
}

.wheel.opened .burger-card.active h2 {
  width: 100%;
  max-width: 150px;
  margin: 28px auto 0;
  position: relative;
  top: clamp(-10px, -0.6vh, -2px);
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  cursor: default;
}

.wheel.opened .burger-card.active p {
  margin: 6px auto 0;
  position: relative;
  top: clamp(0px, 0.3vh, 8px);
  font-size: clamp(14px, 3.5vw, 17px);
  text-align: center;
}

body.meal-open .top-tools,
body.meal-open .footer-info {
  display: none;
}


/* ================================
   10. Controls
================================ */

.controls {
  position: relative;
  margin: -145px auto 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 5vw, 35px);
  width: 100%;
  z-index: 20;
}

.controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #ffb000;
  color: #111;
  font-size: 20px;
  cursor: pointer;
}

#swipeText {
  font-size: 14px;
  font-weight: 700;
}


/* ================================
   11. Ingredients
================================ */

#ingredientsLayer {
  position: absolute;
  left: 50%;
  top: clamp(240px, 46vh, 390px);
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.wheel.opened #ingredientsLayer {
  opacity: 1;
  pointer-events: auto;
}

.ingredient {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: 0 0 12px rgba(255, 176, 0, 0.25);
  border: none;
  transform: translate(-50%, -50%) translate(var(--x), var(--y));
  animation: ingredient3DSplit 0.9s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(0.4s + (var(--i) * 0.28s));
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}

.ingredient img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
  background: transparent;
  padding: 0;
}

.ingredient span {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: white;
  padding: 3px 7px;
  border-radius: 10px;
  font-size: clamp(7px, 0.9vw, 10px);
  font-weight: 800;
  text-align: center;
  white-space: normal;
  line-height: 1.1;
  max-width: 80%;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 9999;
}

.ingredient:hover span,
.ingredient:active span,
.ingredient:focus span,
.ingredient:focus-within span {
  opacity: 1;
}


/* ================================
   12. Meal Description
================================ */

.meal-description {
  position: absolute;
  top: clamp(16px, 2vh, 28px);
  left: 58%;
  transform: translateX(-50%);
  width: min(300px, calc(100vw - 110px));
  max-width: 420px;
  max-height: 150px;
  overflow-y: auto;
  padding: 10px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  font-size: clamp(10.5px, 2.7vw, 12.5px);
  line-height: 1.35;
  color: #ddd;
}


/* ================================
   13. Footer
================================ */

.footer-info {
  width: min(360px, 100%);
  margin: 0 auto 30px;
  padding: 18px 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.footer-info h3,
#contactTitle {
  margin: 0 0 12px;
  font-size: 17px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-links a,
.order-toggle {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  background: rgba(255, 176, 0, 0.12);
  border: 1px solid rgba(255, 176, 0, 0.35);
  font-size: 11px;
  font-weight: 800;
  transition: 0.25s ease;
}

.footer-links a:hover,
.order-toggle:hover {
  background: #ffb000;
  color: #111;
  transform: translateY(-2px);
}


/* ================================
   14. Order Dropdown
================================ */

.order-dropdown {
  position: relative;
}

.order-toggle {
  cursor: pointer;
}

.order-menu {
  display: none;
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 170px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(20,20,20,0.98);
  border: 1px solid rgba(255,176,0,0.35);
  z-index: 9999;
}

.order-menu.show {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-menu a {
  text-decoration: none;
  color: white;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
}

.order-menu a:hover {
  background: rgba(255,176,0,0.18);
}


/* ================================
   15. Social Icons
================================ */

.social-icon {
  margin-right: 8px;
  font-size: 16px;
}

.instagram-icon,
.tiktok-icon,
.location-icon,
.order-toggle i {
  color: #ff7a00;
}
/* ================================
   Instagram Page
================================ */

.instagram-page {
  min-height: 100svh;
  padding: 24px 16px 50px;
}

.instagram-page .hero.small {
  text-align: center;
  margin: -35px 0 10px;
}

.instagram-page .small-logo {
  width: clamp(120px, 22vw, 190px);
  margin: 0 auto;
}

.instagram-page .locations-page-title {
  font-size: clamp(36px, 7vw, 60px);
  margin: 10px 0 34px;
  font-weight: 900;
  letter-spacing: 1px;
}

.instagram-page .locations-page {
  width: min(520px, 94%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(18px, 3vh, 28px);
}

.instagram-page .location-card {
  width: 100%;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 55px rgba(0,0,0,0.28);
}

.instagram-page .location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(255,170,0,0.16);
}

.instagram-page .location-card h2 {
  margin: 0 0 22px;
  font-size: clamp(24px, 4vw, 34px);
}

.instagram-page .location-actions {
  display: flex;
  justify-content: center;
}

.instagram-page .location-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(260px, 100%);
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb000, #ff7a00);
  color: #111;
  text-decoration: none;
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.instagram-page .location-actions a:hover {
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(255,170,0,.35);
}

.instagram-page .location-actions a:focus,
.instagram-page .location-actions a:active,
.instagram-page .location-actions a:focus-visible {
  outline: none;
  border: none;
  box-shadow: none;
}
/* =================================
   INSTAGRAM MOBILE
================================= */

@media (max-width: 767px) {

  .instagram-page {
    padding: 90px 12px 42px;
  }

  .instagram-page .hero.small {
    margin-top: 0 !important;
  }

  .instagram-page .small-logo {
    width: clamp(115px, 38vw, 165px);
  }

  .instagram-page .locations-page-title {
    font-size: clamp(34px, 10vw, 46px);
    margin: 32px 0 26px;
  }

  .instagram-page .locations-page {
    width: min(420px, 94%);
    margin-top: 10px;
    gap: 18px;
  }

  .instagram-page .location-card {
    padding: 22px 18px;
    border-radius: 24px;
    backdrop-filter: blur(14px);
  }
}

/* ================================
   16. Locations Page
================================ */

.locations-app {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 24px 16px 50px;
}

.locations-app .hero.small {
  text-align: center;
  margin: 0 0 12px;
}

.locations-app .hero.small .main-logo,
.locations-app .hero.small img {
  width: clamp(140px, 18vw, 220px);
  height: auto;
}

.locations-app .locations-page-title {
  font-size: clamp(34px, 6vw, 64px);
  margin: 8px 0 34px;
  font-weight: 900;
  letter-spacing: 1px;
}

.locations-app .locations-page {
  width: min(980px, 94%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 24px;
}

.locations-app .location-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 55px rgba(0,0,0,0.28);
}

.locations-app .location-card h2 {
  margin: 0 0 22px;
  font-size: clamp(26px, 3vw, 36px);
}

.locations-app .location-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.locations-app .location-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  background: rgba(255, 176, 0, 0.12);
  border: 1px solid rgba(255, 176, 0, 0.42);
  padding: 14px 18px;
  border-radius: 999px;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 800;
  transition: 0.25s ease;
}

.locations-app .location-actions a:hover {
  background: #ffb000;
  color: #111;
  transform: translateY(-2px);
}

.locations-app .location-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: min(460px, 100%);
  justify-self: center;
}

/* =================================
   LOCATIONS MOBILE
================================= */

@media (max-width: 767px) {


  .locations-app {
    padding: 18px 12px 40px;
  }

  .locations-app .hero.small .main-logo,
  .locations-app .hero.small img {
    width: clamp(120px, 42vw, 170px);
  }

  .locations-app .locations-page-title {
    font-size: clamp(32px, 10vw, 46px);
    letter-spacing: 0.5px;
    margin: 10px 0 24px;
    line-height: 1.05;
  }

  .locations-app .locations-page {
    grid-template-columns: 1fr;
    width: min(390px, 92%);
    gap: 18px;
  }

  .locations-app .location-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .locations-app .location-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }
}


/* ================================
   17. Arabic
================================ */

body.arabic .burger-card h2,
body.arabic .meal-description {
  direction: rtl;
  text-align: center;
  unicode-bidi: isolate;
  font-family: "Tajawal", "Cairo", "Inter", sans-serif;
}

body.arabic .burger-card h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow:
    0 0 10px rgba(255, 170, 0, 0.25),
    0 0 20px rgba(255, 140, 0, 0.15);
}


/* ================================
   18. Branch Popup
================================ */

.branch-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.branch-popup.show {
  display: flex;
}

.branch-popup-box {
  width: min(290px, 88vw);
  padding: 22px;
  border-radius: 22px;
  background: rgba(20,20,20,0.98);
  border: 1px solid rgba(255,176,0,0.45);
  text-align: center;
}

.branch-popup-box h3 {
  margin: 0 0 18px;
  color: white;
}

.branch-popup-box button {
  width: 100%;
  margin: 7px 0;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: #ffb300;
  color: #111;
  font-weight: 900;
  cursor: pointer;
  transition: 0.22s ease;
}

.branch-popup-box button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.branch-popup-box .branch-close {
  background: rgba(255,255,255,0.12);
  color: white;
}

.branch-popup-box h3,
.branch-popup-box button {
  font-family: "Tajawal", sans-serif;
}


/* ================================
   20. Animations
================================ */

@keyframes logoFade {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.92);
  }

  100% {
    opacity: 0.95;
    transform: translateY(0) scale(1);
  }
}

@keyframes burgerReveal {
  0% {
    transform: scale(0.85);
    filter: drop-shadow(0 0 0 rgba(255,176,0,0));
  }

  45% {
    transform: scale(1.18);
    filter: drop-shadow(0 0 35px rgba(255,176,0,0.75));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 22px rgba(255,176,0,0.45));
  }
}

@keyframes ingredient3DSplit {
  0% {
    opacity: 0;
    transform:
      translate(-50%, -50%)
      translate3d(0, 0, -100px)
      scale(0.2);
  }

  60% {
    opacity: 1;
    transform:
      translate(-50%, -50%)
      translate3d(var(--x), var(--y), 20px)
      scale(1.12);
  }

  100% {
    opacity: 1;
    transform:
      translate(-50%, -50%)
      translate3d(var(--x), var(--y), 0)
      scale(1);
  }
}

@keyframes burgerFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}


/* ================================
   21. Hover Devices
================================ */

@media (hover: hover) and (pointer: fine) {
  .ingredient:hover {
    transform:
      translate(-50%, -50%)
      translate(var(--x), var(--y))
      scale(1.18);
    box-shadow:
      0 0 30px rgba(255, 176, 0, 0.7),
      0 0 60px rgba(255, 176, 0, 0.3);
    z-index: 999;
  }

  .ingredient:hover span {
    opacity: 1;
    bottom: -48px;
  }
}

/* =================================
   22.MAIN MOBILE
================================= */
@media (max-width: 767px) {

  .category-tabs {
    position: relative;
    z-index: 9999;
    isolation: isolate;
    pointer-events: auto !important;
  }

  .category-tabs button {
    position: relative;
    z-index: 10000;
    pointer-events: auto !important;
  }

  .wheel {
    pointer-events: none !important;
  }

  .burger-card,
  .controls,
  .ingredient {
    pointer-events: auto !important;
  }

  .hero {
    margin-top: -12px;
  }

  .wheel.opened .burger-card.active {
    top: 66%;
  }

  .wheel.opened .burger-card.active img {
    height: clamp(120px, 24vw, 170px) !important;
    width: auto !important;
    max-height: unset !important;
  }

  .wheel.opened .burger-card.active h2 {
    transform: translateY(22px);
    font-size: 16px;
  }

  .wheel.opened .burger-card.active p {
    transform: translateY(22px);
    font-size: 16px;
  }

  .burger-card h2 {
    width: 100%;
    max-width: 170px;
    margin-inline: auto;
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .burger-card p {
    transform: translateY(10px);
  }

  .meal-description {
    top: 24px !important;
    right: 14px;
    left: auto;
    transform: none;
    width: min(300px, calc(100vw - 120px));
    height: auto;
    overflow: visible;
  }

  #ingredientsLayer {
    scale: 0.92 !important;
    transform: translate(-50%, -50%) translateY(18px) !important;
  }

  .ingredient {
    width: clamp(68px, 18vw, 82px) !important;
    height: clamp(68px, 18vw, 82px) !important;
  }

  .halal-badge {
      position: relative;
  top: clamp(4px, 1vw, 8px);
  }
}


@media (min-width: 400px) and (max-width: 767px) {
  .wheel.opened .burger-card.active img {
    width: 88%;
  }

  .ingredient {
    width: 82px;
    height: 82px;
  }
}



/* ================================
   23. Tablet
================================ */

@media (min-width: 768px) {
  :root {
    --logo-size: clamp(145px, 18vw, 190px);
  }

  .app,
  main {
    max-width: min(760px, 92vw);
    padding: clamp(18px, 3vw, 30px);
  }

  .top-tools {
    position: absolute;
    top: clamp(14px, 2.4vh, 26px);
    right: clamp(16px, 3vw, 28px);
    width: auto;
    margin: 0;
    transform: none;
  }

  .top-search input {
    width: clamp(125px, 18vw, 170px);
  }

  .language-toggle {
    width: clamp(90px, 13vw, 120px);
    font-size: clamp(10.5px, 1.3vw, 13px);
    justify-content: flex-start;
  }

  .hero {
    margin-top: clamp(8px, 2.4vh, 26px);
    transform: translateY(34px);

  }

  .main-logo {
    margin-bottom: clamp(12px, 2.4vh, 24px);
  }

.category-tabs { 
  margin: clamp(32px, 6vh, 60px) 0 clamp(14px, 2.5vh, 24px); 
  gap: clamp(8px, 1.6vw, 14px); 
}

.category-tabs button { 
  padding: clamp(7px, 1vw, 10px) clamp(12px, 1.8vw, 18px); 
  font-size: clamp(11px, 1.35vw, 14px);
}

.wheel {
  min-height: clamp(380px, 50vh, 520px);
  height: auto;
  margin: clamp(-45px, -4vh, -22px) auto 0;
  pointer-events: none;
}

.burger-card,
.controls,
.ingredient {
  pointer-events: auto;
}

.burger-card {
  width: clamp(290px, 42vw, 380px);
  top: clamp(40px, 6vh, 70px);
}

.burger-card img {
  height: clamp(200px, 26vw, 270px);
}

.burger-card h2 {
  font-size: clamp(19px, 2.4vw, 25px);
}

.burger-card p {
  margin-top: clamp(6px, 1vh, 10px);
  font-size: clamp(17px, 2vw, 21px);
}

  .center {
    transform: translateX(-50%) scale(clamp(1, 1.1vw, 1.08));
  }

  .left-side {
    transform: translateX(-112%) scale(clamp(0.68, 0.08vw, 0.78));
    opacity: 0.62;
  }

  .right-side {
    transform: translateX(112%) scale(clamp(0.68, 0.08vw, 0.78));
    opacity: 0.62;
  }

  .controls {
    margin-top: 0;
    transform: translateY(clamp(-115px, -9vh, -75px)) !important;
    margin-bottom: clamp(-28px, -2vh, -10px);
  }

  .controls button {
    width: clamp(42px, 5.2vw, 52px);
    height: clamp(42px, 5.2vw, 52px);
    font-size: clamp(22px, 3vw, 30px);
  }

  .footer-info {
    width: min(620px, 92vw);
    margin: clamp(22px, 4vh, 38px) auto clamp(18px, 3vh, 28px);
    padding: clamp(22px, 3vw, 30px) clamp(18px, 3vw, 28px);
    border-radius: clamp(24px, 3vw, 32px);
  }

  .footer-info h3,
  #contactTitle {
    margin-bottom: clamp(18px, 3vh, 26px);
    font-size: clamp(21px, 2.8vw, 26px);
  }

  .footer-links {
    gap: clamp(10px, 1.8vw, 16px);
  }

  .footer-links a,
  .order-toggle {
    padding: clamp(10px, 1.5vw, 14px) clamp(14px, 2vw, 20px);
    border-radius: 999px;
    font-size: clamp(12px, 1.5vw, 15px);
  }

  .back-btn {
    top: clamp(14px, 2vh, 22px);
    left: clamp(14px, 2vw, 22px);
    width: clamp(78px, 11vw, 96px);
    height: clamp(30px, 4vw, 38px);
    font-size: clamp(12px, 1.6vw, 15px);
  }

  .wheel.opened {
    min-height: clamp(680px, 82vh, 860px);
    height: auto;
  }

  .wheel.opened .burger-card.active {
    width: clamp(220px, 33vw, 320px);
    top: clamp(58%, 66vh, 68%);
    transform: translate(-50%, -50%);
  }

  .wheel.opened .burger-card.active img {
    width: clamp(180px, 26vw, 250px);
    max-height: none;
  }

  .wheel.opened .burger-card.active h2 {
    max-width: clamp(210px, 30vw, 270px);
    margin-top: clamp(58px, 7vh, 82px);
    font-size: clamp(20px, 2.5vw, 25px);
    line-height: 1.15;
  }

  .wheel.opened .burger-card.active p {
    width: 100%;
    max-width: clamp(110px, 16vw, 140px);
    margin: clamp(8px, 1.4vh, 14px) auto 0;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.15;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .ingredient {
    width: clamp(92px, 11.5vw, 118px);
    height: clamp(92px, 11.5vw, 118px);
  }

  #ingredientsLayer {
    scale: clamp(0.98, 0.13vw, 1.1);
  }

  .meal-description {
    top: clamp(18px, 2.5vh, 34px) !important;
    left: 50%;
    width: min(440px, 76vw);
    font-size: clamp(12.5px, 1.7vw, 15.5px);
    line-height: 1.5;
  }

  .locations-page {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(50%, 340px);
    margin: 0 auto;
  }

}


@media (min-width: 768px) and (max-height: 700px) {
  .wheel.opened {
    min-height: 560px;
  }

  .wheel.opened .burger-card.active {
    top: 65% !important;
  }

  #ingredientsLayer {
    transform: translateY(-90px) !important;
    scale: 1;
  }

  .ingredient {
    width: clamp(88px, 8vw, 105px);
    height: clamp(88px, 8vw, 105px);
  }

  #ingredientsLayer {
    transform: translate(-50%, 10px) !important;
  }
  .wheel.opened .burger-card.active img {
    width: clamp(190px, 20vw, 250px);
  }
  .meal-description {
    top: -30px !important;
  }

}

/* ================================
   24. Desktop
================================ */

@media (min-width: 1024px) {
  :root {
    --logo-size: 210px;
  }

  .app,
  main {
    max-width: 1200px;
    min-height: 100svh;
    padding-top: 20px;
    padding-bottom: 30px;
  }

  .top-tools {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: 18px;
    z-index: 100;
  }

  .hero {
    margin-top: clamp(-38px, -4vh, -12px);
    padding-top: clamp(0px, 1vh, 10px);
  }

  .main-logo,
  .small-logo {
    margin: clamp(-28px, -3vh, -10px) auto 18px;
  }

  .halal-badge {
    margin-top: -10px;
    margin-bottom: 18px;
  }

  .category-tabs {
    margin-top: clamp(32px, 5vh, 52px);
  }

  .category-tabs button {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
  }

  .wheel {
    height: 430px;
    min-height: 430px;
    margin: clamp(-10px, 2vh, 28px) auto 0;
  }

  .burger-card {
    width: 340px;
    height: 230px;
    top: 16px;
  }

  .burger-card img {
     height: clamp(175px, 17vw, 215px);
  }

  .burger-card h2 {
    margin-top: 0;
    font-size: 22px;
  }

  .burger-card p {
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 19px;
  }

  .center {
    transform: translateX(-50%) scale(1.04);
  }

  .left-side {
    transform: translateX(-112%) scale(0.74);
  }

  .right-side {
    transform: translateX(12%) scale(0.74);
  }

  .controls {
    margin-top: -40px;
  }

  .controls button {
    width: 48px;
    height: 48px;
    font-size: 30px;
  }

  .wheel.opened .burger-card.active {
    width: clamp(150px, 26vw, 250px);
    transform: translate(-50%, -50%) scale(0.95);

  }

.wheel.opened .burger-card.active h2 {
  max-width: clamp(140px, 16vw, 190px);
  margin-top: clamp(36px, 6vh, 66px);
  font-size: clamp(15px, 1.6vw, 18px);
}

.wheel.opened .burger-card.active p {
  max-width: none;
  margin-top: clamp(8px, 1.5vh, 16px);
  font-size: clamp(14px, 1.5vw, 17px);
}

  .meal-description {
  top: -20px;
  transform: translateY(-35px);
}

  #ingredientsLayer {
    scale: 0.96;
  }

  .footer-info {
    width: min(820px, 92%);
    margin: 32px auto 20px;
  }
  @media (min-width: 1024px) and (max-height: 700px) {

  .wheel.opened .burger-card.active {
    top: 70% !important;
  }
.ingredient {
  width: clamp(105px, 10vw, 135px);
  height: clamp(105px, 10vw, 135px);
}
  #ingredientsLayer {
    transform: translate(-50%, 35px) !important;
    scale: 0.88;
  }

  .meal-description {
    top: clamp(10px, 2vh, 22px) !important;
  }

  .wheel.opened .burger-card.active h2 {
    margin-top: clamp(58px, 8vh, 95px);
  }

  .wheel.opened .burger-card.active p {
    margin-top: clamp(8px, 1.5vh, 18px);
  }

}
}



/* Fixes */
.controls { direction: ltr; }
@media (min-width: 1024px) {
  .meal-description { left: 50%; }
}

/* Footer direkt unter dem Menü statt erst nach einer ganzen Bildschirmhöhe */
main:not(.app) {
  min-height: auto;
}

@media (max-width: 767px) {
  /* Beschreibung unter dem Zurück-Button, volle Breite, besser lesbar */
  .meal-description {
    top: 68px !important;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100vw - 28px);
    max-width: 420px;
    font-size: 13px;
    line-height: 1.4;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
  }
}

/* Sehr kleine Handys */
@media (max-width: 360px) {
  .controls {
    gap: 10px;
  }

  #swipeText {
    font-size: 12px;
  }

  .meal-description {
    font-size: 12px;
  }

  .category-tabs button {
    padding-inline: 10px;
  }
}

/* ================================
   Rechtliches (Impressum / Datenschutz)
================================ */

.legal-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 14px 0 0;
  font-size: 12px;
}

.legal-links a {
  color: #aaa;
  text-decoration: underline;
}

.legal-links a:hover {
  color: #ffb000;
}

.legal-text {
  width: min(720px, 100%);
  margin: 10px auto 30px;
  padding: 22px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  line-height: 1.6;
  font-size: 15px;
  color: #ddd;
}

.legal-text h2 {
  margin: 26px 0 8px;
  font-size: 18px;
  color: #fff;
}

.legal-text h2:first-child {
  margin-top: 0;
}

.legal-text a {
  color: #ffb000;
  overflow-wrap: anywhere;
}

.legal-text p {
  margin: 0 0 10px;
}

.placeholder {
  background: rgba(255, 176, 0, 0.25);
  color: #fff;
  padding: 0 4px;
  border-radius: 4px;
}

/* Öffnungszeiten */
.opening-hours {
  margin: 4px 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #ddd;
}

.opening-hours .hours-label {
  color: #ffb000;
}

/* Pfand-Hinweis unter dem Preis (Getränke) */
.card-pfand {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #999;
}

.burger-card h2 small {
  font-size: 0.65em;
  font-weight: 500;
  color: #aaa;
  white-space: nowrap;
}

.burger-card.active .card-allergens {
  display: none;
}

.branch-address {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #bbb;
}

.opening-hours span {
  white-space: pre-line;
}

/* ================================
   Startseite: Über uns, Filialen
================================ */

.home-info {
  width: min(720px, calc(100% - 28px));
  margin: 10px auto 0;
  text-align: center;
}

body.meal-open .home-info {
  display: none;
}

.home-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #fff;
}

.about-text {
  margin: 0 auto 18px;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.6;
  color: #bbb;
}

.home-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-branch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 176, 0, 0.25);
  color: #bbb;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

.home-branch strong {
  font-size: 16px;
  color: #fff;
}

.home-hours {
  color: #ffb000;
  font-weight: 700;
  white-space: pre-line;
}

@media (max-width: 360px) {
  .home-branches {
    grid-template-columns: 1fr;
  }
}

/* Soßen-Hinweis bei Tellern */
.meal-note {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 176, 0, 0.5);
  background: rgba(255, 176, 0, 0.12);
  color: #ffcf66;
  font-weight: 700;
}

@media (max-width: 360px) {
  .meal-description {
    padding: 8px 10px;
  }

  .meal-note {
    margin-top: 5px;
    padding: 3px 8px;
    font-size: 11px;
  }
}

/* Desktop: Pfeile weiter nach unten, damit Name/Preis/Pfand nicht darüber liegen */
@media (min-width: 768px) {
  .controls {
    top: clamp(40px, 4vw, 80px);
  }

  .home-info {
    margin-top: calc(clamp(40px, 4vw, 80px) + 10px);
  }
}

.meal-allergens {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75em;
  line-height: 1.3;
  opacity: 0.7;
}

/* Beschreibung scrollbar (auch am Handy) und über den Zutaten */
.meal-description {
  max-height: 200px;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  pointer-events: auto !important;
  z-index: 40;
}

.card-allergens {
  display: block;
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.3;
  opacity: 0.6;
}


/* ================================
   Getränkeliste & Bildhinweis
================================ */

.drinks-list {
  text-align: start;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  max-width: 560px;
  margin: 40px auto 10px;
  padding: 0 18px;
}

.drink-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drink-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.drink-name {
  flex: 1;
  color: white;
  font-weight: 700;
}

.drink-size {
  font-size: 13px;
  color: #aaa;
}

.drink-price {
  min-width: 58px;
  text-align: end;
  color: #ffb000;
  font-weight: 700;
}

.drink-info {
  margin-top: 3px;
  font-size: 11px;
  color: #999;
}

.image-note {
  margin: -16px 0 10px;
  text-align: center;
  font-size: 10px;
  color: #777;
}

/* Getränke: Wheel-Höhe an die Liste anpassen */
.wheel.drinks-mode {
  height: auto !important;
  min-height: 0 !important;
}

.drinks-note {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #888;
  text-align: center;
}

body.meal-open .image-note {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ================================
   Beschreibungs-Box (über den Zutaten)
================================ */

.meal-info {
  position: relative;
  z-index: 50; /* über der Burger-Karte, sonst ist der Button am Handy nicht klickbar */
  width: min(460px, calc(100% - 28px));
  margin: 70px auto 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #ddd;
  text-align: center;
}

body.arabic .meal-info {
  direction: rtl;
  font-family: "Tajawal", "Cairo", "Inter", sans-serif;
}

/* Aufklappbare Allergene & Hinweise */
.meal-details {
  margin-top: 10px;
}

.meal-details summary {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 176, 0, 0.4);
  color: #ffcf66;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}

.meal-details summary::-webkit-details-marker {
  display: none;
}

.meal-details summary::after {
  content: " ▾";
}

.meal-details[open] summary::after {
  content: " ▴";
}

/* Suche + Sprachmenü immer über den Kategorie-Buttons */
.top-tools {
  z-index: 10001;
}
