/* PizzaBros Menü-Seite Styles - Restaurant-Menükarte Design */

/* Menü-Sektion Hintergrund */
#menu {
  background: #000000 !important;
}

/* Font Declarations for Menu */
.menu-item-name,
.menu-item-description,
.menu-item-card,
.menu-item {
  font-family: "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.menu-item-price,
.cart-item-price,
.product-detail-price,
.cart-row.total span:last-child,
.desktop-cart-total,
.mobile-cart-total {
  font-family: "Calibri", "Trebuchet MS", Arial, sans-serif;
  color: #00A9C8 !important;
}

/* Kategorie-Header im Menü-Grid */
.menu-category-header {
  grid-column: 1 / -1;
  /* Spanne über alle Spalten */
  margin: 32px 0 16px 0;
  padding: 16px 0 12px 0;
  border-bottom: 2px solid rgba(246, 140, 35, 0.3);
}

.menu-category-header:first-child {
  margin-top: 0;
}

.menu-category-title {
  font-family: "Ganache", "Playfair Display", serif;
  font-weight: normal;
  color: #F68C23 !important;
  font-size: 2rem;
  margin: 0;
  letter-spacing: 0.5px;
}

@media (max-width: 767px) {
  .menu-category-header {
    margin: 24px 0 12px 0;
    padding: 12px 0 8px 0;
  }

  .menu-category-title {
    font-size: 1.5rem;
  }
}

.category-btn {
  font-family: "Ganache", "Playfair Display", serif;
  font-weight: normal;
}

/* Suchleiste */
.menu-search-section {
  padding: 16px 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: static;
}

@media (min-width: 768px) {
  .menu-search-section {
    padding: 20px 0;
  }
}

.search-bar {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  max-width: 100%;
}

/* Desktop: Begrenze Breite der Suchleiste, damit Button sichtbar bleibt */
@media (min-width: 1024px) {
  .menu-search-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .search-bar {
    max-width: 700px;
    /* Begrenzte Breite für Desktop */
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .search-input-wrapper {
    flex: 1;
    min-width: 0;
    /* Ermöglicht Shrinking */
  }

  .btn-search {
    flex-shrink: 0;
    /* Button behält seine Größe */
  }
}

.search-bar input {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  box-sizing: border-box;
}

.search-bar input::placeholder {
  color: #808080 !important;
}

@media (min-width: 768px) {
  .search-bar input {
    padding: 12px 18px;
    font-size: 0.95rem;
  }
}

.search-bar input:focus {
  outline: none;
  border-color: #F68C23;
  box-shadow: 0 0 0 3px rgba(246, 140, 35, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

/* Autocomplete Dropdown */
.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: rgba(26, 26, 26, 0.98);
  border: 2px solid rgba(246, 140, 35, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.search-autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-autocomplete-item:last-child {
  border-bottom: none;
}

.search-autocomplete-item:hover,
.search-autocomplete-item.highlighted {
  background: rgba(246, 140, 35, 0.15);
  border-left: 3px solid #F68C23;
}

.search-autocomplete-item-name {
  flex: 1;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95rem;
}

.search-autocomplete-item-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.search-autocomplete-item-price {
  color: #F68C23;
  font-weight: 700;
  font-family: "Calibri", "Trebuchet MS", Arial, sans-serif;
  font-size: 0.95rem;
  white-space: nowrap;
}

.search-autocomplete-empty {
  padding: 20px;
  text-align: center;
  color: #ffffff !important;
  font-size: 0.9rem;
}

/* Menü-Statuszeile */
.menu-status {
  margin: 12px 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.95rem;
}

.menu-status.info {
  border-color: rgba(0, 169, 200, 0.45);
  background: rgba(0, 169, 200, 0.15);
}

.menu-status.warning {
  border-color: rgba(246, 140, 35, 0.45);
  background: rgba(246, 140, 35, 0.12);
}

.menu-status.error {
  border-color: rgba(227, 34, 40, 0.5);
  background: rgba(227, 34, 40, 0.15);
}

.menu-closure-banner {
  position: sticky;
  top: 73px;
  z-index: 119;
  background: linear-gradient(135deg, rgba(227, 34, 40, 0.95), rgba(180, 15, 20, 0.95));
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  padding: 0.85rem 1rem;
}

.menu-closure-content {
  max-width: 1240px;
  margin: 0 auto;
  color: #fff;
  font-weight: 700;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .menu-closure-banner {
    top: 67px;
    padding: 0.7rem 0.8rem;
  }

  .menu-closure-content {
    font-size: 0.92rem;
  }
}

.search-autocomplete-category {
  padding: 8px 16px;
  background: rgba(246, 140, 35, 0.1);
  color: #F68C23;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(246, 140, 35, 0.2);
}

@media (max-width: 767px) {
  .search-autocomplete {
    max-height: 300px;
  }

  .search-autocomplete-item {
    padding: 10px 14px;
  }

  .search-autocomplete-item-name {
    font-size: 0.9rem;
  }

  .search-autocomplete-item-description {
    font-size: 0.8rem;
  }
}

.btn-search {
  padding: 10px 16px;
  background: #808080;
  border: 2px solid #808080;
  color: #ffffff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-search:hover {
  background: #6b6b6b;
  border-color: #6b6b6b;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(107, 107, 107, 0.3);
}

.btn-search:active {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .btn-search {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

.filter-panel {
  margin-top: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
}

.filter-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Smooth Scrolling für gesamte Seite */
html {
  scroll-behavior: smooth;
}

/* Kategorien-Navigation - Lieferando-Stil */
.categories-section {
  padding: 0 !important;
  background: #4a4a4a !important;
  backdrop-filter: none !important;
  border-bottom: none !important;
  position: -webkit-sticky !important;
  /* Safari */
  position: sticky !important;
  top: 73px !important;
  /* Header Höhe */
  z-index: 110 !important;
  /* Unter Header (120), über Content */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  width: 100% !important;
  margin: 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: box-shadow 0.3s ease;
  box-sizing: border-box;
}

/* Desktop: Kategorieleiste nutzt vollen Platz, Warenkorb ist fixed */
@media (min-width: 1024px) {
  body.cart-desktop-visible .categories-section {
    width: 100% !important;
    /* Nutze vollen Platz, Warenkorb ist fixed */
    max-width: 100% !important;
    padding-right: var(--cart-width, 360px) !important;
    /* Platz für Warenkorb reservieren */
  }
}

.categories-section.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.categories-section .container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.menu-layout .categories-section {
  padding: 0;
}

@media (min-width: 768px) {
  .categories-section {
    /* Wenn der Header sticky ist, muss dieser Wert angepasst werden. 
       Aktuell scheint der Header nicht sticky zu sein, also top: 0 */
    top: 73px !important;
  }
}

/* Wrapper für Kategorien mit Scroll-Buttons */
.categories-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Scroll-Buttons für Kategorien */
.category-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #F68C23;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-scroll-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.category-scroll-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.category-scroll-left {
  left: 8px;
}

.category-scroll-right {
  right: 8px;
}

@media (max-width: 767px) {
  .category-scroll-btn {
    width: 32px;
    height: 32px;
  }

  .category-scroll-btn svg {
    width: 18px;
    height: 18px;
  }

  .category-scroll-left {
    left: 4px;
  }

  .category-scroll-right {
    right: 4px;
  }
}

.categories-nav {
  display: flex !important;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 56px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
  width: 100%;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 50px;
  box-sizing: border-box;
  /* Padding am Anfang und Ende für besseres Scrollen */
  scroll-padding: 0 56px;
  /* Verhindere Clipping von Buttons */
  overscroll-behavior-x: contain;
  /* Sicherstellen, dass Buttons nicht abgeschnitten werden */
  scroll-snap-type: x proximity;
  /* Stelle sicher, dass die Nav nicht über den Warenkorb geht */
  max-width: 100%;
}

@media (max-width: 767px) {
  .categories-nav {
    padding: 12px 48px;
    scroll-padding: 0 48px;
  }
}

@media (min-width: 768px) {
  .categories-nav {
    gap: 10px;
    padding: 14px 60px;
    scroll-padding: 0 60px;
  }
}

@media (min-width: 1024px) {

  /* Wenn Warenkorb offen ist, reduziere Padding rechts */
  body.cart-desktop-visible .categories-nav {
    padding-right: calc(var(--cart-width, 360px) + 20px) !important;
    /* Stelle sicher, dass alle Kategorien scrollbar sind */
    overflow-x: auto;
  }
}

.categories-nav::-webkit-scrollbar {
  height: 4px;
}

.categories-nav::-webkit-scrollbar-track {
  background: transparent;
}

.categories-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.categories-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Scroll-Indikator entfernt - verursachte visuelle Probleme mit Buttons */

.category-btn {
  padding: 10px 20px;
  background: #F68C23 !important;
  border: 1px solid rgba(246, 140, 35, 0.5);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ffffff !important;
  flex-shrink: 0;
  flex-grow: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-family: "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  position: relative;
  z-index: 10;
  /* Verhindere Clipping */
  contain: layout style;
  min-width: fit-content;
  max-width: none;
  line-height: 1.2;
  text-align: left;
  /* Stelle sicher, dass der Button über dem Gradient liegt */
  isolation: isolate;
}

.category-btn>* {
  white-space: nowrap !important;
  flex-shrink: 0;
}

.category-btn>img {
  display: block;
  flex-shrink: 0;
}

.category-btn-text {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  display: inline-block;
  flex-shrink: 0;
  line-height: 1.2;
  color: #ffffff !important;
}

/* Aktive Kategorie: Text in Marken-Orange, damit er auf weißem Pill-Hintergrund sichtbar ist */
.category-btn.active .category-btn-text {
  color: #F68C23 !important;
  font-weight: 800;
}

.category-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

@media (min-width: 768px) {
  .category-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

.category-btn:hover {
  background: #d67a1f !important;
  border-color: rgba(246, 140, 35, 0.7);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.category-btn.active {
  background: #ffffff !important;
  color: #F68C23 !important;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(246, 140, 35, 0.9), 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  font-weight: 800 !important;
  z-index: 15 !important;
  position: relative;
  transform: translateY(-2px) scale(1.04);
}

.category-btn.active:hover {
  background: #ffffff !important;
  border-color: #ffffff;
  color: #F68C23 !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 0 2px rgba(246, 140, 35, 1), 0 6px 18px rgba(0, 0, 0, 0.5) !important;
}

/* Deutlicher Unterstrich für aktive Kategorie */
.category-btn.active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #F68C23, #ffb347);
}

/* Menü-Grid - Restaurant-Menükarte Stil */
.menu-section {
  padding: 24px 0;
  background: #ffffff;
  scroll-margin-top: 150px;
  /* Platz für sticky Navigation */
  width: 100%;
  /* Begrenze Scroll-Bereich - kein unnötiger Leerraum */
  padding-bottom: 32px;
  margin-bottom: 0;
}

.menu-section .container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 20px !important;
  margin: 0 !important;
  padding-left: 24px !important;
  /* Mehr Abstand links */
}

#menu-page {
  scroll-behavior: smooth;
  width: 100%;
  /* Stelle sicher, dass sticky funktioniert - keine overflow-Eigenschaften die sticky blockieren */
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  /* Begrenze Scroll-Bereich - kein unnötiger Leerraum */
  padding-bottom: 0;
  margin-bottom: 0;
}

#menu {
  background: #ffffff;
  width: 100%;
  /* Begrenze Scroll-Bereich - kein unnötiger Leerraum nach dem Menü */
  padding-bottom: 0;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .menu-section {
    padding: 32px 0 40px 0;
  }

  .menu-section .container {
    max-width: 100% !important;
    padding: 0 40px !important;
    padding-left: 40px !important;
  }
}

@media (min-width: 1024px) {
  .menu-section .container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 60px !important;
  }

  body.cart-desktop-visible .menu-section .container {
    max-width: 100% !important;
    /* Nutze vollen Platz, Warenkorb ist fixed */
    margin-left: 0 !important;
    margin-right: 0 !important;
    /* Kein reservierter Bereich mehr */
    padding-left: 60px !important;
    /* Mehr Abstand links wenn Warenkorb offen */
    padding-right: calc(var(--cart-width, 360px) + 40px) !important;
    /* Padding bis zum Warenkorb */
  }
}

.loading-state,
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #ffffff !important;
  background: transparent;
}

.loading-state p,
.empty-state p {
  color: #ffffff !important;
  margin-top: 12px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #F68C23;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Restaurant-Menükarte Grid - kompaktes, gleichmäßiges Raster */
.menu-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  /* Mobile: 1 Spalte */
  gap: 20px !important;
  background: transparent;
  min-height: 200px;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  align-items: stretch;
}

/* Tablet: 2 Spalten */
@media (min-width: 768px) {
  .menu-grid {
    gap: 24px !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Desktop (klein): 3 Spalten */
@media (min-width: 1024px) {
  .menu-grid {
    gap: 28px;
    grid-template-columns: repeat(3, 1fr) !important;
  }

  body.cart-desktop-visible .menu-section .container {
    padding-left: 60px !important;
    /* Mehr Abstand links wenn Warenkorb offen */
    padding-right: calc(var(--cart-width, 360px) + 40px) !important;
    /* Padding bis zum Warenkorb */
    width: 100% !important;
    max-width: 100% !important;
    /* Nutze vollen Platz, Warenkorb ist fixed */
    margin-right: 0 !important;
    /* Kein reservierter Bereich */
  }

  body.cart-desktop-visible .menu-grid {
    gap: 24px;
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100% !important;
    margin-right: 0 !important;
  }
}

/* Desktop (groß): 4 Spalten maximal */
@media (min-width: 1400px) {
  .menu-grid {
    gap: 28px;
    grid-template-columns: repeat(4, 1fr) !important;
  }

  body.cart-desktop-visible .menu-grid {
    /* Mit Warenkorb: max 3 Spalten für bessere Darstellung */
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Sehr große Bildschirme ohne Warenkorb: 4 Spalten */
@media (min-width: 1600px) {
  body:not(.cart-desktop-visible) .menu-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  /* Mit Warenkorb: Bei sehr großen Bildschirmen können auch 4 Spalten funktionieren */
  body.cart-desktop-visible .menu-section .container {
    max-width: 100% !important;
    /* Nutze vollen Platz, Warenkorb ist fixed */
    padding-left: 80px !important;
    /* Noch mehr Abstand links bei sehr großen Bildschirmen */
    padding-right: calc(var(--cart-width, 360px) + 40px) !important;
    /* Padding bis zum Warenkorb */
    margin-right: 0 !important;
    /* Kein reservierter Bereich */
  }
}



/* Menü-Item-Karte mit Rahmen */
.menu-item-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: rgba(30, 30, 30, 0.95);
  border: 2px solid rgba(246, 140, 35, 0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  height: 100%;
}

.menu-item-card {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.menu-item-card:hover {
  border-color: rgba(246, 140, 35, 0.6);
  box-shadow: 0 4px 12px rgba(246, 140, 35, 0.4);
  transform: translate3d(0, -2px, 0);
}

.menu-item-card.unavailable {
  opacity: 0.6;
  cursor: not-allowed;
}

.menu-item-image {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  height: auto;
  background: rgba(30, 30, 30, 0.8) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  overflow: hidden;
  position: relative;
  border-right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .menu-item-image {
    font-size: 1.8rem;
  }
}

@media (min-width: 1024px) {
  .menu-item-image {
    font-size: 2rem;
  }
}

/* Content-Bereich - Rechts */
.menu-item-content {
  padding: 10px 14px;
  /* Reduziert für kompaktere Darstellung */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Starte oben, Footer wird durch margin-top: auto nach unten gedrückt */
  min-width: 0;
  width: 100%;
  gap: 6px;
  /* Reduziert */
  overflow: hidden;
  /* Verhindere Overflow */
  height: 100%;
  /* Nutze die volle Höhe der Karte */
  position: relative;
  /* Für absolute Positionierung des Footers falls nötig */
}

@media (min-width: 768px) {
  .menu-item-content {
    padding: 10px 16px;
    /* Reduziert */
    gap: 8px;
  }
}

@media (min-width: 1024px) {
  .menu-item-content {
    padding: 12px 16px;
    /* Deutlich reduziert für kompaktere Desktop-Darstellung */
    gap: 8px;
  }
}

.menu-item-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  padding-right: 0;
  width: 100%;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.menu-item-name-wrapper {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.menu-item-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.7;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

@media (min-width: 768px) {
  .menu-item-header {
    gap: 10px;
    margin-bottom: 10px;
  }
}

@media (min-width: 1024px) {
  .menu-item-header {
    gap: 10px;
    margin-bottom: 8px;
  }

  body.cart-desktop-visible .menu-item-header {
    gap: 10px;
    padding-right: 0;
  }
}

.menu-item-price-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  margin-top: 0;
  margin-left: auto;
  justify-content: flex-end;
}

@media (min-width: 768px) {
  .menu-item-price-group {
    gap: 10px;
    /* Reduziert */
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .menu-item-price-group {
    gap: 8px;
    /* Reduziert für kompaktere Desktop-Darstellung */
  }
}

.menu-item-sizes {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 4px;
}

@media (min-width: 768px) {
  .menu-item-sizes {
    gap: 8px;
    margin-left: 6px;
  }
}

.menu-item-size-btn {
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-item-size-btn:hover {
  background: #f5f5f5;
  border-color: #F68C23;
  color: #F68C23;
}

.menu-item-size-btn.active {
  background: #F68C23 !important;
  color: #ffffff !important;
  border-color: #F68C23 !important;
  box-shadow: 0 1px 3px rgba(246, 140, 35, 0.3);
}

@media (min-width: 768px) {
  .menu-item-size-btn {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
}

@media (min-width: 1024px) {
  body.cart-desktop-visible .menu-item-price-group {
    gap: 10px;
  }
}

/* menu-item-inline-add entfernt - nicht mehr verwendet */

.menu-item-name-wrapper {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.menu-item-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.7;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.3;
}

.menu-item-name {
  font-size: 1rem;
  /* Reduziert */
  font-weight: 600;
  font-family: "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  color: #F68C23 !important;
  line-height: 1.3;
  /* Reduziert */
  text-shadow: none;
  flex: 1;
  /* Verhindere, dass Name zu viel Platz einnimmt */
  min-width: 0;
  /* Reduziert */
  max-width: 100%;
  padding-right: 8px;
  /* Reduziert */
  word-wrap: normal;
  word-break: keep-all;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: none;
  max-height: calc(1.3em * 2);
  /* Maximal 2 Zeilen für den Titel */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .menu-item-name {
    font-size: 1.05rem;
    /* Reduziert */
    padding-right: 10px;
    min-width: 0;
  }

  .menu-item-number {
    font-size: 0.8rem;
  }
}

@media (min-width: 1024px) {
  .menu-item-name {
    font-size: 1.1rem;
    /* Reduziert für kompaktere Desktop-Darstellung */
    padding-right: 12px;
    min-width: 0;
  }

  .menu-item-number {
    font-size: 0.85rem;
  }

  body.cart-desktop-visible .menu-item-name {
    padding-right: 14px;
    max-width: none;
  }
}

.menu-item-price {
  font-size: 1rem;
  /* Reduziert */
  font-weight: 600;
  font-family: "Calibri", "Trebuchet MS", Arial, sans-serif;
  color: #00A9C8 !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-item-sizes {
  /* Größen-Buttons direkt nach Preis */
}

@media (min-width: 768px) {
  .menu-item-price {
    font-size: 1.05rem;
    /* Reduziert */
  }
}

@media (min-width: 1024px) {
  .menu-item-price {
    font-size: 1.1rem;
    /* Reduziert für kompaktere Desktop-Darstellung */
  }
}

.menu-item-description {
  color: #ffffff !important;
  font-size: 0.85rem;
  /* Reduziert */
  margin-bottom: 8px;
  /* Reduziert */
  flex: 0 1 auto;
  /* Verhindere, dass Beschreibung zu viel Platz einnimmt */
  line-height: 1.4;
  /* Reduziert */
  min-height: calc(1.4em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Maximal 2 Zeilen für Beschreibung */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: none;
  width: 100%;
  max-height: calc(1.4em * 2);
  /* Maximale Höhe für 2 Zeilen */
  min-height: 0;
  /* Erlaube Shrinking für bessere Flexbox-Kontrolle */
}

@media (min-width: 768px) {
  .menu-item-description {
    font-size: 0.88rem;
    /* Reduziert */
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
  }
}

@media (min-width: 1024px) {
  .menu-item-description {
    font-size: 0.9rem;
    /* Reduziert für kompaktere Desktop-Darstellung */
    margin-bottom: 8px;
  }
}

.menu-item-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  flex-shrink: 0;
  /* Verhindere, dass Badges schrumpfen */
}

.badge {
  padding: 2px 8px;
  background: rgba(227, 34, 40, 0.1);
  color: #E32228;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .badge {
    padding: 3px 9px;
    font-size: 0.7rem;
  }
}

.badge.vegetarian {
  background: rgba(76, 175, 80, 0.1);
  color: var(--ok);
}

.badge.vegan {
  background: rgba(0, 169, 200, 0.1);
  color: #00A9C8;
}

.badge.gluten-free {
  background: rgba(246, 140, 35, 0.1);
  color: #F68C23;
}

.menu-item-prep-time {
  font-size: 0.75rem;
  color: #888;
  display: none;
  /* Versteckt für kompakteres Design */
}

.menu-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  /* Drückt Footer nach unten - wichtig für Button-Positionierung */
  gap: 12px;
  padding-right: 0;
  width: 100%;
  flex-wrap: wrap;
  flex-shrink: 0;
  /* Verhindere, dass Footer schrumpft */
  align-self: flex-end;
  /* Stelle sicher, dass Footer am unteren Rand ist */
  margin-bottom: 0;
  /* Kein zusätzlicher Abstand nach unten */
  padding-top: 8px;
  /* Kleiner Abstand nach oben für bessere Optik */
}

@media (min-width: 768px) {
  .menu-item-footer {
    gap: 16px;
  }
}

.btn-add-to-cart {
  padding: 8px 20px;
  background: #00A9C8;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 169, 200, 0.3);
}

.btn-add-to-cart:hover:not(:disabled) {
  background: #0088A3;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 169, 200, 0.5);
}

.btn-add-to-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .btn-add-to-cart {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

/* Produktdetail-Modal */
.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal[style*="display: flex"],
.modal[style*="display:flex"],
.modal[data-open="true"],
.modal.show {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

/* Modal positioning - center on desktop, bottom on mobile */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 480px) {
  .modal {
    align-items: center;
    padding: 8px;
    /* Modal zentriert mit Abstand oben für Close-Button */
  }
}

.modal-content {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: 75vh;
  overflow-y: auto;
  z-index: 1001;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 1003;
  transition: all 0.3s ease;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.modal-close:hover {
  background: #E32228;
  color: white;
  border-color: #E32228;
}

#modal-content-inner {
  padding: 24px;
  /* Reduziert von 40px */
  position: relative;
}

/* Stellt sicher, dass der Close-Button immer sichtbar bleibt */
@media (max-width: 768px) {
  .modal-content {
    display: flex;
    flex-direction: column;
  }

  .modal-close {
    position: sticky;
    top: 0;
    align-self: flex-end;
    margin-bottom: -36px;
    z-index: 1004;
  }

  .modal-close::after {
    content: '';
    position: absolute;
    inset: 0;
  }

  #modal-content-inner {
    padding-top: 48px;
    /* Platz für Close-Button */
  }
}

@media (max-width: 480px) {
  .modal-close {
    margin-bottom: -30px;
  }

  #modal-content-inner {
    padding-top: 44px;
    /* Platz für Close-Button */
  }
}

.product-detail-image {
  width: 100%;
  height: 220px;
  /* Reduziert von 250px */
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
  /* Reduziert von 24px */
  background: linear-gradient(135deg, #00A9C8, #0088A3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 2.5rem;
  position: relative;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.product-detail-image:has(img) {
  background: transparent;
}

.product-detail-image:not(:has(img)) {
  background: linear-gradient(135deg, rgba(0, 169, 200, 0.1), rgba(0, 136, 163, 0.1));
  border: 1px dashed rgba(0, 169, 200, 0.2);
}

/* Mobile: Modal für Handys skalieren, Close-Button sichtbar halten */
@media (max-width: 768px) {
  .modal-content {
    max-width: 90%;
    max-height: 85vh;
    transform: scale(0.92);
    transform-origin: center center;
    padding-top: 48px;
    margin-top: 8px;
    /* Abstand oben für Close-Button */
  }

  .product-detail-image {
    height: 60px;
    margin-bottom: 6px;
    font-size: 1.2rem;
  }

  #modal-content-inner {
    padding: 10px;
  }

  .product-detail-header {
    margin-bottom: 6px;
  }

  .product-detail-name {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .product-detail-price {
    font-size: 1.0rem;
  }

  .product-detail-description {
    font-size: 0.75rem;
    margin-bottom: 6px;
    display: none;
    /* Verstecke Beschreibung auf Mobile für mehr Platz */
  }

  .config-section {
    padding: 6px;
    margin-bottom: 6px;
  }

  .config-title {
    font-size: 0.8rem;
    margin-bottom: 3px;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
    top: 4px;
    right: 4px;
    position: sticky;
    z-index: 1005;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    align-self: flex-end;
    margin-bottom: -36px;
  }

  .config-options {
    gap: 4px;
  }

  .config-option {
    padding: 5px 6px;
    font-size: 0.75rem;
  }

  .topping-item {
    padding: 6px;
  }

  .quantity-btn {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
  }

  .btn-add-to-cart-modal {
    padding: 8px;
    font-size: 0.8rem;
    margin-top: 4px;
  }
}

/* Sehr kleine Bildschirme - Modal kompakt halten */
@media (max-width: 480px) {
  .modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    margin-top: 8px;
    transform: scale(0.90);
    transform-origin: center center;
  }

  .product-detail-image {
    height: 50px;
    margin-bottom: 4px;
    font-size: 1rem;
  }

  #modal-content-inner {
    padding: 8px;
  }

  .product-detail-header {
    margin-bottom: 4px;
  }

  .product-detail-name {
    font-size: 1.0rem;
    margin-bottom: 4px;
  }

  .product-detail-price {
    font-size: 0.95rem;
  }

  .product-detail-description {
    display: none;
    /* Verstecke Beschreibung auf sehr kleinen Bildschirmen */
  }

  .config-section {
    padding: 4px;
    margin-bottom: 4px;
  }

  .config-title {
    font-size: 0.75rem;
    margin-bottom: 2px;
  }

  .config-options {
    gap: 3px;
  }

  .config-option {
    padding: 4px 5px;
    font-size: 0.7rem;
  }

  .modal-close {
    width: 30px;
    height: 30px;
    font-size: 18px;
    top: 4px;
    right: 4px;
    position: sticky;
    z-index: 1005;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    align-self: flex-end;
    margin-bottom: -30px;
  }

  .topping-item {
    padding: 6px;
  }

  .quantity-btn {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
  }

  .btn-add-to-cart-modal {
    padding: 8px;
    font-size: 0.8rem;
    margin-top: 6px;
  }


}

.product-detail-header {
  margin-bottom: 20px;
}

.product-detail-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #F68C23 !important;
}

.product-detail-price {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: "Calibri", "Trebuchet MS", Arial, sans-serif;
  color: #00A9C8;
}

.product-detail-description {
  color: #ffffff !important;
  margin-bottom: 32px;
  line-height: 1.6;
}

.product-detail-description-with-size {
  margin-bottom: 24px;
}

.size-selection-inline {
  margin-top: 16px;
}

.size-selection-inline .config-section {
  margin-bottom: 0;
}

.size-selection-inline .config-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

.size-selection-inline .config-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-selection-inline .config-option {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(246, 140, 35, 0.1);
  border: 2px solid rgba(246, 140, 35, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.9rem;
}

.size-selection-inline .config-option:hover {
  background: rgba(246, 140, 35, 0.2);
  border-color: rgba(246, 140, 35, 0.5);
}

.size-selection-inline .config-option input[type="radio"]:checked+span,
.size-selection-inline .config-option:has(input[type="radio"]:checked) {
  background: #F68C23;
  border-color: #F68C23;
  color: #ffffff !important;
}

.size-selection-inline .config-option input[type="radio"] {
  display: none;
}

.size-selection-inline .config-option span {
  color: #ffffff;
}

.size-selection-inline .config-option:has(input[type="radio"]:checked) span {
  color: #ffffff !important;
}

/* Toppings-Auswahl */
.toppings-section {
  margin-bottom: 24px;
}

.toppings-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.toppings-section.pizza-special-extras {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}

.toppings-section.pizza-special-extras .toppings-title {
  color: #ffffff;
}

.topping-item.special-extra {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.topping-item.special-extra:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.extra-price-hint {
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid #ffffff;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 6px;
}

.extra-price-hint-text {
  margin: 0;
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1.5;
}

.toppings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topping-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.topping-item:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.topping-item.selected {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.topping-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topping-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.topping-info {
  display: flex;
  flex-direction: column;
}

.topping-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.topping-description {
  font-size: 0.85rem;
  color: #ffffff;
}

.topping-price {
  font-weight: 700;
  font-family: "Calibri", "Trebuchet MS", Arial, sans-serif;
  color: #ffffff;
  white-space: nowrap;
}

.topping-remove {
  color: #ffffff;
  font-size: 0.85rem;
}

.config-section {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

/* Erste Config-Sektion: Mehr Abstand nach oben für luftigeres Design */
#modal-content-inner>.config-section:first-child,
#modal-content-inner>.config-section:first-of-type {
  margin-top: 40px;
}

/* Zusätzlicher Abstand nach der Produktbeschreibung */
.product-detail-description+.config-section {
  margin-top: 40px;
}

/* Mehr Abstand zwischen Config-Sektionen für luftigeres Design */
.config-section+.config-section {
  margin-top: 28px;
}

.config-section.info {
  background: rgba(255, 255, 255, 0.02);
  border-style: dashed;
  color: rgba(255, 255, 255, 0.7);
}

.config-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.config-subtitle {
  display: block;
  margin: 0 0 8px;
  font-weight: 600;
  color: #ffffff;
}

.config-options {
  display: grid;
  gap: 8px;
}

.config-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  color: #ffffff;
}

.config-option input {
  accent-color: #00A9C8;
}

.config-option:hover {
  border-color: #00A9C8;
  background: rgba(0, 169, 200, 0.12);
}

.config-option label,
.config-option span,
.config-option .config-option-label,
.config-option .config-option-text {
  color: #ffffff;
}

.config-subsection {
  margin-top: 16px;
}

.config-info-text {
  margin: 0;
  font-size: 0.9rem;
  color: #ffffff;
}

.config-section select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  min-height: 48px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.config-section select:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
}

.config-section select:focus {
  outline: none;
  border-color: #00A9C8;
  box-shadow: 0 0 0 3px rgba(0, 169, 200, 0.2);
  background: rgba(0, 0, 0, 0.6);
}

.config-section select option {
  background: rgba(20, 20, 20, 0.95);
  color: #ffffff;
  padding: 12px;
}

/* Menge & Notizen */
.quantity-section,
.notes-section {
  margin-bottom: 24px;
}

.quantity-section label,
.notes-section label {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: #00A9C8;
  color: white;
  border-color: #00A9C8;
}

.quantity-value {
  font-size: 1.2rem;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
  color: var(--text);
}

.notes-input {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  min-height: 80px;
}

.notes-input::placeholder {
  color: #808080;
}

.notes-input:focus {
  outline: none;
  border-color: #00A9C8;
  box-shadow: 0 0 0 3px rgba(0, 169, 200, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

/* Modal Footer */
.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-add-to-cart-modal {
  flex: 1;
  padding: 16px;
  background: #00A9C8;
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 169, 200, 0.5);
}

.btn-add-to-cart-modal:hover {
  background: #0088A3;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 169, 200, 0.7);
}

/* Warenkorb Sidebar */
.cart-sidebar {
  position: fixed;
  top: 73px;
  right: 0;
  /* Einheitliche Breite über Variable, damit Layout Platz reserviert */
  width: var(--cart-width, 360px);
  height: calc(100vh - 73px);
  background: #2a2a2a;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.8);
  z-index: 115;
  /* Über Kategorien-Bar (110), aber unter Header (120) */
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-sidebar.open {
  transform: translateX(0);
}

@media (max-width: 1023px) {
  body.cart-open {
    overflow: hidden;
  }

  body.cart-open .categories-section {
    position: static !important;
  }

  .cart-sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 85vh;
    /* Fallback */
    height: 85dvh;
    /* iOS/Android modern viewport: stabil in Hochformat */
    /* Reduziert von 100vh auf 85vh */
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 0 0;
    /* Abgerundete Ecken oben */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    z-index: 1000;
    background: #2a2a2a;
    /* Flexbox-Struktur für Scrolling beibehalten */
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .cart-sidebar.open {
    transform: translateY(0);
  }

  .cart-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    /* Reduziert von 16px 20px */
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #2a2a2a;
  }

  .cart-items {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    /* Sicherstellen, dass Scrolling funktioniert */
    overscroll-behavior: contain;
  }

  .cart-footer {
    padding: 12px 16px 40px 16px;
    /* Reduziert von 16px 20px 60px 20px */
    flex-shrink: 0;
    margin-top: auto;
    padding-bottom: max(40px, env(safe-area-inset-bottom, 40px));
    /* Reduziert von 60px */
  }

  /* Reduziere Abstände im Footer für mobile Version */
  .cart-footer .cart-comment {
    margin-bottom: 10px;
  }

  .cart-footer .cart-summary {
    margin-bottom: 16px;
  }

  /* Button "Zur Kasse" deutlich höher positionieren für iPhone */
  .cart-footer #cart-checkout-button {
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    bottom: 0;
  }

  /* "Zur Speisekarte" Button im leeren Warenkorb höher positionieren */
  .cart-empty {
    padding: 24px 20px 40px 20px;
  }

  .cart-empty p {
    margin-bottom: 16px;
  }

  .cart-empty .btn {
    margin-top: 0;
  }

  /* Mobile: Kompakte Liste */
  /* Swipe-to-Delete Wrapper */
  .cart-item-swipe-wrapper {
    position: relative;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 10px;
    touch-action: pan-y;
  }

  .cart-item-swipe-wrapper::after {
    content: '← Nach links wischen';
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.4px;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .cart-item-swipe-wrapper.swipe-active::after {
    opacity: 1;
  }

  .cart-item-swipe-delete {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 110px;
    background: linear-gradient(135deg, #E32228, #c01d22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: white;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 3;
    border-radius: 10px;
    cursor: pointer;
    touch-action: none;
  }

  .cart-item-swipe-delete-icon {
    font-size: 2rem;
    line-height: 1;
  }

  .cart-item-swipe-delete-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .cart-item-swipe-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease-out;
    will-change: transform;
  }

  .cart-item-mobile {
    padding: 10px;
    margin-bottom: 0;
    background: transparent;
    border: none;
    /* WICHTIG: überschreibt .cart-item (display:flex) – sonst werden Details im Hochformat "zusammengedrückt" */
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    /* falls Hochformat zu eng ist */
    gap: 6px;
    margin-bottom: 0;
  }

  .cart-item-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  .cart-item-quantity-badge {
    background: rgba(246, 140, 35, 0.2);
    color: #F68C23;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
  }

  .cart-item-name-mobile {
    font-weight: 600;
    font-size: 0.95rem;
    color: #F68C23;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cart-item-price-mobile {
    font-weight: 700;
    font-size: 1rem;
    color: #00A9C8;
    font-family: "Calibri", "Trebuchet MS", Arial, sans-serif;
    flex-shrink: 0;
    margin-left: auto;
    white-space: nowrap;
  }

  .cart-item-details-mobile {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
    padding-left: 0;
    line-height: 1.4;
    /* Wichtig für Hochformat: lange Optionen dürfen nicht "wegfallen" */
    width: 100%;
    max-width: 100%;
    display: block;
    white-space: normal;
    /* Wichtig: nicht Zeichen-weise umbrechen (sah wie "vertikaler Text" aus) */
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .cart-item-actions-mobile {
    /* Stabil in Hochformat: 3 Spalten (Edit | Quantity | Delete) */
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 6px;
  }

  .cart-item-edit-mobile {
    background: rgba(246, 140, 35, 0.15);
    border: 1px solid rgba(246, 140, 35, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .cart-item-edit-mobile:hover {
    background: rgba(246, 140, 35, 0.25);
    border-color: #F68C23;
    transform: scale(1.05);
  }

  .edit-icon {
    font-size: 0.9rem;
  }

  /* Touch Targets: iOS/Android */
  .cart-item-edit-mobile,
  .cart-item-remove-mobile {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(246, 140, 35, 0.25);
  }

  .cart-item-quantity-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
  }

  .cart-item-quantity-mobile .cart-item-quantity-btn {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(246, 140, 35, 0.25);
  }

  .cart-item-quantity-mobile span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
  }

  .cart-item-remove-mobile {
    background: rgba(227, 34, 40, 0.15);
    border: 1px solid rgba(227, 34, 40, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .cart-item-remove-mobile:hover {
    background: rgba(227, 34, 40, 0.25);
    border-color: #E32228;
    transform: scale(1.05);
  }

  /* Desktop: Original Layout beibehalten */
  .cart-item:not(.cart-item-mobile) {
    padding: 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    gap: 10px;
  }

  .cart-item-name {
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.4;
  }

  .cart-item-details {
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.5;
  }

  .cart-item-price {
    font-size: 1rem;
  }

  .cart-item-edit {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .cart-item-quantity-btn {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
  }

  .cart-item-remove {
    font-size: 0.85rem;
    padding: 4px 0;
  }

  /* Header und Footer größer auf Mobile */
  .cart-header h2 {
    font-size: 1.3rem;
  }

  .cart-total {
    font-size: 1.2rem;
  }

  .cart-total-label {
    font-size: 1rem;
  }

  .btn-checkout {
    padding: 14px 24px;
    font-size: 1rem;
  }
}

/* Desktop-Layout: Platz für Warenkorb reservieren */
@media (min-width: 1024px) {

  /* Standardbreite für Desktop setzen */
  :root {
    --cart-width: 320px;
  }

  /* Warenkorb ist als fixed Sidebar positioniert, benötigt kein Padding mehr */
  body.cart-desktop-visible #menu-page {
    padding-right: 0;
    /* Kein reservierter Bereich mehr */
  }
}

@media (min-width: 1440px) {
  :root {
    --cart-width: 380px;
  }
}

@media (min-width: 1024px) {

  /* Breite wird oben über width calc geregelt; keine zusätzliche Padding-Verschiebung nötig */
  body.cart-desktop-visible .cart-sidebar {
    transform: translateX(100%);
  }

  body.cart-desktop-visible .cart-sidebar.open {
    transform: translateX(0);
  }

  /* Desktop: Schließen-Button immer sichtbar */
  body.cart-desktop-visible .cart-close {
    display: flex !important;
  }
}

@media (min-width: 1024px) {
  body.cart-desktop-visible .menu-item-card {
    max-width: 100%;
  }
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #000000;
  position: sticky;
  top: 0;
  z-index: 10;
}

.cart-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.cart-close {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(246, 140, 35, 0.25);
}

.cart-close:hover {
  background: #E32228;
  color: white;
  border-color: #E32228;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  min-height: 0;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #ffffff !important;
}

.cart-empty p {
  margin: 8px 0;
  font-size: 0.9rem;
  color: #ffffff !important;
}

.cart-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: #F68C23 !important;
}

.cart-item-details {
  font-size: 0.85rem;
  color: #ffffff !important;
  margin-bottom: 8px;
}

.cart-item-price {
  font-weight: 700;
  font-family: "Calibri", "Trebuchet MS", Arial, sans-serif;
  color: #00A9C8 !important;
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 8px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-edit {
  padding: 6px 12px;
  background: rgba(246, 140, 35, 0.15);
  border: 1px solid rgba(246, 140, 35, 0.3);
  border-radius: 6px;
  color: #F68C23;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cart-item-edit:hover {
  background: rgba(246, 140, 35, 0.25);
  border-color: #F68C23;
  transform: scale(1.05);
}

.cart-item-quantity-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(246, 140, 35, 0.25);
}

.cart-item-quantity-btn:hover {
  background: #F68C23;
  border-color: #F68C23;
  color: white;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ffffff !important;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cart-item-remove:hover {
  color: #E32228;
}

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #2a2a2a;
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: block !important;
}

.cart-comment {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  visibility: visible !important;
  opacity: 1 !important;
}

.cart-comment label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.cart-comment-button {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-family: inherit;
}

.cart-comment-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #F68C23;
}

.comment-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.comment-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-comment textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cart-comment textarea::placeholder {
  color: #808080 !important;
}

.cart-comment textarea:focus {
  outline: none;
  border-color: #F68C23;
  box-shadow: 0 0 0 3px rgba(246, 140, 35, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.cart-comment-meta {
  display: flex;
  justify-content: flex-end;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

.cart-comment-meta span {
  display: inline-block;
}

/* Kommentar Modal */
.cart-comment-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cart-comment-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.cart-comment-modal-content {
  position: relative;
  background: #2a2a2a;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-comment-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-comment-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.cart-comment-modal-close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-comment-modal-close:hover {
  background: #E32228;
  color: white;
  border-color: #E32228;
}

.cart-comment-modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.cart-comment-modal-body textarea {
  width: 100%;
  min-height: 150px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cart-comment-modal-body textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(246, 140, 35, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.cart-comment-modal-body textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cart-comment-modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: flex-end;
}

.cart-comment-modal-footer .btn {
  min-width: 100px;
}

@media (max-width: 768px) {
  .cart-comment-modal {
    padding: 0;
    align-items: flex-end;
  }

  .cart-comment-modal-content {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
  }

  .cart-comment-modal-header,
  .cart-comment-modal-body,
  .cart-comment-modal-footer {
    padding: 20px;
  }

  .cart-comment-modal-body textarea {
    min-height: 200px;
    font-size: 1.1rem;
    padding: 18px;
    line-height: 1.6;
  }

  .cart-comment-modal-footer {
    flex-direction: column-reverse;
  }

  .cart-comment-modal-footer .btn {
    width: 100%;
    min-width: auto;
  }
}

.cart-footer .btn.disabled,
.cart-footer .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Sichtbares „Zur Kasse"-Button Styling */
.cart-footer #cart-checkout-button {
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(90deg, #00b9cf, #00a0c0);
  box-shadow: 0 15px 35px rgba(0, 169, 200, 0.45);
  border: none;
}

/* Zur Kasse Button im Warenkorb blau färben */
.cart-footer .btn.primary {
  background: #00A9C8;
  border-color: #00A9C8;
  color: #ffffff;
}

.cart-footer .btn.primary:hover {
  background: #0088A3;
  border-color: #0088A3;
  box-shadow: 0 18px 42px rgba(0, 169, 200, 0.45);
}

.cart-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.cart-summary {
  margin-bottom: 16px;
}

.cart-summary-mobile {
  display: none;
}

.cart-summary-desktop {
  display: block;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.cart-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  padding-top: 12px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  margin-top: 12px;
  color: var(--text);
}

.cart-row.total span:last-child {
  font-family: "Calibri", "Trebuchet MS", Arial, sans-serif;
  color: #00A9C8;
}

/* Mobile: Nur Gesamtpreis anzeigen */
@media (max-width: 1023px) {
  .cart-summary-mobile {
    display: block;
  }

  .cart-summary-desktop {
    display: none;
  }

  .cart-summary {
    margin-bottom: 12px;
  }

  .cart-row.total {
    font-size: 1.3rem;
    padding-top: 8px;
    margin-top: 8px;
    margin-bottom: 0;
  }
}

/* Responsive */
@media (max-width: 767px) {
  .menu-grid {
    gap: 16px;
  }

  .menu-item-card {
    flex-direction: column;
    min-height: 100%;
    border: 2px solid rgba(246, 140, 35, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(246, 140, 35, 0.1) !important;
  }

  .menu-item-card:hover {
    border-color: rgba(246, 140, 35, 0.6) !important;
    box-shadow: 0 4px 12px rgba(246, 140, 35, 0.4), 0 0 0 2px rgba(246, 140, 35, 0.2) !important;
  }

  .menu-item-image {
    width: 100%;
    min-width: 0;
    font-size: 1.5rem;
  }

  .menu-item-content {
    padding: 10px 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .menu-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .menu-item-price-group {
    margin-left: 0;
    justify-content: flex-start;
    margin-right: 0;
    width: 100%;
  }

  .menu-item-footer {
    margin-top: auto;
    /* Stelle sicher, dass Footer auch auf Mobile am unteren Rand ist */
  }

  .menu-item-name {
    font-size: 0.95rem;
    flex: 0 1 auto;
  }

  .menu-item-price {
    font-size: 1rem;
  }

  .menu-item-description {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    margin-bottom: 6px;
  }

  .btn-add-to-cart {
    padding: 6px 16px;
    font-size: 0.85rem;
  }

  .modal-content {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }

  /* Padding wird bereits von der spezifischeren Media-Query gesetzt */
  /* #modal-content-inner padding wird von @media (max-width: 480px) überschrieben */
}

/* menu-item-add-hint entfernt - nicht mehr verwendet */

/* Desktop-Warenkorb-Leiste entfernt */
.desktop-cart-bar {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .categories-section {
  position: static !important;
}

/* Mobile Floating Cart Button */
.mobile-cart-button {
  display: none;
}

@media (max-width: 1023px) {
  .mobile-cart-button {
    display: flex;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F68C23 0%, #d67a1f 100%);
    border: none;
    box-shadow: 0 4px 16px rgba(246, 140, 35, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 105;
    transition: all 0.3s ease;
    padding: 0;
  }

  .mobile-cart-button:active {
    transform: scale(0.95);
  }

  .mobile-cart-button:hover {
    background: linear-gradient(135deg, #d67a1f 0%, #c4691c 100%);
    box-shadow: 0 6px 20px rgba(246, 140, 35, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
  }

  .mobile-cart-icon {
    display: block;
    filter: brightness(0) invert(1);
    /* Macht Icon weiß */
  }

  /* SVG Icons in buttons - make them white */
  .cart-icon-svg {
    filter: brightness(0) invert(1);
    /* Macht Icon weiß */
  }

  /* Phone icons white on buttons */
  .header-phone-icon img {
    filter: brightness(0) invert(1);
    /* Macht Icon weiß */
  }

  .mobile-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    background: #E32228;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .mobile-cart-badge:empty {
    display: none;
  }
}

@media (min-width: 1024px) {
  .mobile-cart-button {
    display: none !important;
  }
}

/* ============================================
   ENHANCED EXTRAS UI STYLES
   Modern, user-friendly extras selection
   ============================================ */

/* Main wrapper */
.extras-ui-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Chips Summary - shows selected extras at top */
.extras-chips-summary {
  display: none;
}

.extras-chips-summary:not(:empty) {
  display: block;
}

.extras-chips-container {
  background: rgba(0, 169, 200, 0.1);
  border: 2px solid rgba(0, 169, 200, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
}

.extras-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.extras-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 169, 200, 0.2);
  border: 1px solid rgba(0, 169, 200, 0.4);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  animation: chipSlideIn 0.2s ease-out;
}

@keyframes chipSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.extras-chip-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.extras-chip-remove:hover {
  background: rgba(227, 34, 40, 0.8);
  transform: scale(1.1);
}

.extras-chips-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 169, 200, 0.3);
}

.extras-chips-total-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.extras-chips-total-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00A9C8;
  font-family: "Calibri", "Trebuchet MS", Arial, sans-serif;
}

/* Presets Section */
.extras-presets-container {
  margin-bottom: 8px;
}

.extras-presets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.extras-presets-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.extras-presets-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.extras-preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(246, 140, 35, 0.15);
  border: 2px solid rgba(246, 140, 35, 0.4);
  border-radius: 20px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.extras-preset-btn:hover {
  background: rgba(246, 140, 35, 0.3);
  border-color: #F68C23;
  transform: translateY(-1px);
}

.extras-preset-btn:active {
  transform: translateY(0);
}

.extras-preset-icon {
  font-size: 1.1rem;
}

/* Search Section */
.extras-search-container {
  margin-bottom: 8px;
}

.extras-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.extras-search-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.extras-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.extras-search-input:focus {
  outline: none;
  border-color: #F68C23;
  background: rgba(255, 255, 255, 0.08);
}

.extras-search-clear {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.extras-search-clear:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Content Area */
.extras-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Section Title */
.extras-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.extras-section-icon {
  font-size: 1.2rem;
}

/* Popular Section */
.extras-popular-section {
  display: flex;
  flex-direction: column;
}

.extras-show-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding: 12px 20px;
  background: transparent;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.extras-show-all-btn:hover {
  border-color: #F68C23;
  color: #F68C23;
  background: rgba(246, 140, 35, 0.1);
}

.extras-show-all-count {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

/* Back Button */
.extras-back-btn {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 0;
  background: transparent;
  border: none;
  color: #00A9C8;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.extras-back-btn:hover {
  color: #ffffff;
}

/* Grouped Section */
.extras-grouped-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Group */
.extras-group {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.extras-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.extras-group-header:hover {
  background: rgba(255, 255, 255, 0.08);
}

.extras-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.extras-group-icon {
  font-size: 1.2rem;
}

.extras-group-label {
  color: #ffffff;
}

.extras-group-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #00A9C8;
  border-radius: 11px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.extras-group-chevron {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
  color: rgba(255, 255, 255, 0.5);
}

.extras-group-chevron.expanded {
  transform: rotate(180deg);
}

.extras-group-content {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

.extras-group-content.expanded {
  max-height: 1000px;
  opacity: 1;
  padding: 12px 16px 16px;
}

.extras-group-content.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0 16px;
}

/* Extras List */
.extras-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Individual Extra Item */
.extras-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.extras-item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
}

.extras-item.selected {
  border-color: #00A9C8;
  background: rgba(0, 169, 200, 0.15);
  box-shadow: 0 0 0 1px rgba(0, 169, 200, 0.3);
}

.extras-checkbox {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: #00A9C8;
  cursor: pointer;
}

.extras-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.extras-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.extras-item-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.extras-item-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Calibri", "Trebuchet MS", Arial, sans-serif;
  white-space: nowrap;
}

/* Empty Search State */
.extras-empty-search {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}

.extras-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.extras-empty-search p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .extras-chips-container {
    padding: 10px 12px;
  }

  .extras-chips-list {
    gap: 6px;
    margin-bottom: 10px;
  }

  .extras-chip {
    padding: 5px 8px;
    font-size: 0.8rem;
  }

  .extras-presets-buttons {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .extras-preset-btn {
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 0.85rem;
  }

  .extras-group-header {
    padding: 12px 14px;
  }

  .extras-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .extras-item-name {
    font-size: 0.9rem;
  }

  .extras-item-price {
    font-size: 0.85rem;
  }
}

/* Bottom Sheet Pattern for Mobile */
@media (max-width: 767px) {
  .modal-content .extras-ui-wrapper {
    max-height: 50vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    padding-bottom: 20px;
  }

  .extras-ui-wrapper::-webkit-scrollbar {
    width: 4px;
  }

  .extras-ui-wrapper::-webkit-scrollbar-track {
    background: transparent;
  }

  .extras-ui-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
  }
}

/* Animation for expanding groups */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.extras-group-content.expanded .extras-item {
  animation: fadeInUp 0.2s ease-out forwards;
}

.extras-group-content.expanded .extras-item:nth-child(2) {
  animation-delay: 0.03s;
}

.extras-group-content.expanded .extras-item:nth-child(3) {
  animation-delay: 0.06s;
}

.extras-group-content.expanded .extras-item:nth-child(4) {
  animation-delay: 0.09s;
}

.extras-group-content.expanded .extras-item:nth-child(5) {
  animation-delay: 0.12s;
}

.extras-group-content.expanded .extras-item:nth-child(n+6) {
  animation-delay: 0.15s;
}
