@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/outfit.woff2") format("woff2");
}

/* Standard-Design (ursprüngliches Design) */
:root {
  --primary-color: #d35400; /* Orange-Rot */
  --primary-color-hover: #e67e22; /* Helleres Orange */
  --text-color: #ac4e2d; /* Dunkleres Orange-Rot für Text */
  --subtext-color: #ac4e2d; /* Gleiche Farbe für Untertexte */
  --background-color: #ecf0f1; /* Leichtes Grau für Hintergrund */
  --background-gradient: linear-gradient(
    135deg,
    #a95333b6,
    #ac4e2d
  ); /* Oranger Verlauf */
  --card-background-color: #fff; /* Weiß für Karten */
  --shadow-color: rgba(0, 0, 0, 0.1); /* Dunkle Schatten */
  --background-attachment: fixed;
  --max-content-width: 1200px; /* Maximale Inhaltsbreite */
}

/* Eisdielen-Design (babyblau) */
.icecream-theme {
  --primary-color: #0f80b4; /* Helles Babyblau */
  --primary-color-hover: #0f80b4; /* Etwas dunkleres Babyblau für Hover-Effekte */
  --text-color: #0f80b4; /* Dunkleres Blau für Text */
  --subtext-color: #0f80b4; /* Gleiche Farbe für Untertexte */
  --background-color: #ffffff; /* Sehr helles Blau für Hintergrund */
  --background-gradient: linear-gradient(
    135deg,
    #0f80b4,
    #0f80b4
  ); /* Blauer Verlauf */
  --card-background-color: #fff; /* Weiß für Karten */
  --shadow-color: rgba(149, 168, 176, 0.35); /* Blaue Schatten */

  .info-icon {
    width: 28.8px;
    height: 28.8px;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(48 79 144 / 70%);
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
}

/* Weitere Designs können hier hinzugefügt werden */

body {
  font-family: Outfit, "Segoe UI", sans-serif;
  background: var(--background-gradient);
  background-image: linear-gradient(
    to right,
    rgba(211, 84, 0, 0.7),
    /* 30% verdunkeltes --primary-color */ rgba(230, 126, 34, 0.7)
      /* 30% verdunkeltes --primary-color-hover */
  );
  background-attachment: var(--background-attachment);
  margin: 0;
  padding-bottom: 70px;
  max-width: 100%;
  margin: 0 auto;
  transition: all 0.4s ease-in-out;
}

/* Spezielle Hintergrundfarbe für das Eisdielen-Theme */
body.icecream-theme {
  background-image: linear-gradient(
    to right,
    rgba(42, 166, 223, 0.81),
    /* 30% verdunkeltes --primary-color für Eisdielen */ rgba(94, 183, 224, 0.7)
      /* 30% verdunkeltes --primary-color-hover für Eisdielen */
  );
}

/* Container für den gesamten Inhalt mit maximaler Breite */
#menuContainer,
.header,
.footer {
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
}

/* Fester Hintergrund über die gesamte Breite, Inhalt begrenzt */
.menu-bar,
.category-tabs,
.bottom-nav {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* Container für die Menüleiste */
.menu-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Container für die Kategorie-Tabs */
.category-tabs-container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 5px;
  box-sizing: border-box;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

/* Container für die Navigation */
.bottom-nav-container {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  height: 100%;
}

.header {
  text-align: center;
  color: white;
  padding-top: 110px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header h1 {
  margin: 0;
  font-size: 2.5em;
}

.header p {
  margin: 5px 0;
  font-size: 1.1em;
}

.menu-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-color);
  padding: 10px;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow-color);
  background-image: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-color-hover)
  );
  transition: all 0.4s ease-in-out;
}

.menu-bar h1 {
  font-size: 1.5em;
  margin: 0;
}

.menu-bar .restaurant-name {
  font-size: 1.5em;
  font-weight: 600;
}

.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  margin-right: 10px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px;
}

.menu-categories {
  display: none;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  z-index: 1000;
  color: white;
  padding: 20px 0;
  box-sizing: border-box;
  overflow: hidden;
}

.menu-categories a {
  padding: 12px 5px;
  margin: 5px 0;
  text-decoration: none;
  color: white;
  font-size: 1.8em;
  width: 100%;
  text-align: center;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.menu-categories a:hover {
  background-color: var(--primary-color-hover);
}

/* Styling für den Header des Fullscreen-Menüs */
.menu-categories > div:first-child {
  margin-bottom: 20px;
  padding: 0px;
}

/* Styling für das Schließen-X */
.menu-categories .close-menu {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2em;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.menu-categories .close-menu:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .header h1 {
    font-size: 2em;
  }
  .header p {
    font-size: 1.3em;
  }

  .order-badge {
    padding: 6px 10px;
    font-size: 0.8em;
  }

  .order-badge i {
    font-size: 1em;
  }

  .header {
    padding-top: 120px;
  }
}

.menu-category {
  margin-top: 40px;
  margin-bottom: 40px;
}

.menu-category h2 {
  color: var(--background-color);
  font-size: 3em;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(58, 138, 176, 0.5);
  font-family: Outfit, "Segoe UI", sans-serif;
}

.menu-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.menu-card {
  background-color: var(--card-background-color);
  border-radius: 15px;
  box-shadow: 0 5px 15px var(--shadow-color);
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid var(--primary-color-hover);
  position: relative;
}

.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px var(--shadow-color);
}

.menu-card img {
  position: relative;
  width: 101%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

.menu-content {
  padding: 10px 5px 70px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
  position: relative;
}

.menu-content h3 {
  margin: 0 0 0 0;
  color: var(--text-color);

  line-height: 1.1;
}

.description-height {
  max-height: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  margin-bottom: 35px;
}

.menu-content p {
  color: var(--subtext-color);
  padding: 0 5px 0 5px;
  font-size: 0.8em;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .menu-content p {
    margin: 0 0 0 0;
  }
}

.menu-card .info-icon-container {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.menu-card .info-icon-container .info-icon {
  background-color: rgba(203, 144, 144, 0.7);
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.menu-card:has(img[src]:not([src=""])) .menu-content .price {
  bottom: 55px;
}

.menu-content .price {
  font-size: 1.2em;
  color: var(--primary-color);
  font-weight: 600;
  position: absolute;
  bottom: 45px;
  left: 0;
  right: 0;
  text-align: center;
  margin: 0;
  padding: 0 10px 5px 10px;
  line-height: 1.2;
  background-color: var(--card-background-color);
}

.menu-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;

  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.menu-buttons button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.4s ease-in-out;
  width: 100px;
  box-shadow: 0 3px 6px var(--shadow-color);
}

.menu-buttons button:hover {
  background-color: var(--primary-color-hover);
  transform: scale(1.05);
}

.info-icon-container {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.info-icon {
  width: 28.8px;
  height: 28.8px;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(239, 84, 26, 0.7);
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.info-icon svg {
  width: 100%;
  height: 100%;
}

.info-icon svg g {
  fill: var(--primary-color);
}

.menu-card:not(:has(img[src]:not([src=""]))) .info-icon svg g,
.item-row .info-icon svg g {
  fill: white;
}

.info-icon:hover {
  transform: scale(1.1);
}

.footer {
  padding: 20px;
  text-align: center;
  margin-top: 60px;
  color: var(--background-color);
  font-size: 1em;
}

@media (max-width: 480px) {
  .details-btn {
  }

  .menu-card {
    width: 48%;
    position: relative;
  }

  .menu-content {
    padding: 10px 5px 60px 5px; /* Angepasstes Padding für Mobile */
  }

  .description-height {
    max-height: 80px;
    -webkit-line-clamp: 3;
    margin-bottom: 25px;
  }

  .menu-content .price {
    bottom: 35px;
    font-size: 1em;
    padding: 0 5px 3px 5px;
    line-height: 1.1;
  }

  .menu-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .menu-buttons button {
    width: 90px;
    padding: 6px 12px;
    font-size: 0.85em;
  }

  .menu-container {
    gap: 4px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .header h1 {
    font-size: 2.2em;
  }
  .header p {
    font-size: 1.4em;
  }

  .menu-category h2 {
    font-size: xx-large;
  }

  .order-badge {
    padding: 5px 8px;
    font-size: 0.75em;
  }

  .items-list {
    padding: 0 6px;
  }

  .menu-category {
    padding-left: 6px;
    padding-right: 6px;
  }

  .header {
    padding-top: 115px;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #ffffff;
  padding: 20px;
  border: 2px solid var(--primary-color);
  width: 80%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 5px 30px var(--shadow-color);
  position: relative;
  transition: all 0.4s ease-in-out;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  margin-bottom: 15px;
}

.modal-header h2 {
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.8em;
}

.modal-image {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.modal-body {
  margin-bottom: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-body p {
  margin: 10px 0;
  color: #333;
  line-height: 1.5;
}

.modal-body .allergens {
  font-size: 0.9em;
  color: #777;
  font-style: italic;
}

.modal-body .price {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--text-color);
  margin-top: 15px;
}

.modal-footer {
  text-align: center;
}

.add-to-cart-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.4s ease-in-out;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 3px 6px var(--shadow-color);
}

.add-to-cart-btn:hover {
  background-color: var(--primary-color-hover);
  transform: scale(1.03);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: var(--text-color);
  font-size: 2em;
  cursor: pointer;
}

.close:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .modal-content {
    width: 90%;
  }

  .modal-header h2 {
    font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: calc(100% - 24px);
    padding: 12px;
    max-width: none;
    box-sizing: border-box;
    max-height: 95vh;
    overflow-y: auto;
  }

  .modal-header h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  .modal-body {
    max-height: 55vh;
    overflow-y: auto;
    padding: 0;
  }

  .modal-body p {
    font-size: 0.9em;
    margin-bottom: 8px;
  }

  .modal-image {
    max-height: 200px;
    width: 100%;
    object-fit: cover;
  }

  .add-to-cart-btn {
    padding: 8px 12px;
    width: 100%;
    margin-top: 10px;
    font-size: larger;
  }

  .close {
    top: -15px;
    right: 5px;
    font-size: 50px;
    padding: 5px;
  }

  .close-popup {
    top: -15px;
    right: 5px;
    font-size: 50px;
    padding: 5px;
    color: var(--text-color);
  }
}

.powered-by {
  margin-top: 30px;
  font-size: 0.6em;
  display: flex;
  color: white;
  text-decoration: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.powered-by img {
  height: 18px;
  margin-bottom: 5px;
}
.popup {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.popup-content {
  position: relative;
  background: white;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  justify-content: space-around;
  width: 80%;
  max-width: 600px;
}

.popup-column {
  width: 45%;
  text-align: center;
}

.popup-column h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2em;
  cursor: pointer;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.close-popup:hover {
  color: var(--primary-color);
}

.category-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.category-image-spacer {
  width: 100%;
  margin-bottom: 20px;
  /* Weitere Stile können hier hinzugefügt werden */
}

.items-list {
  padding: 0 20px;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0px 0;
  border-bottom: 1px solid var(--shadow-color);
  margin-bottom: 6px;
  position: relative;
}

.item-details {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px 15px;
  position: relative;
}

.item-details .price-order-container {
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  width: 100%;
  margin-top: 3px;
  min-height: 40px;
}

.item-details p:empty + .price-order-container {
  margin-top: -5px; /* Wenn keine Beschreibung vorhanden ist, nach oben verschieben */
}

.item-details .menu-buttons {
  margin: 0;
  min-width: 80px;
}

.item-details .menu-buttons button {
  margin: 0;
  width: 100px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
}

.item-details h3 {
  margin: 0;
  font-size: 1em;
  color: var(--background-color);
  display: inline;
}

.item-details p {
  margin: 0px 0 0 0;
  color: var(--background-color);
  font-size: 0.7em;
}

.item-price {
  font-size: 1em;
  color: var(--background-color);
  margin: 0px 0 0 0;
  white-space: nowrap;
  font-weight: bold;
  display: flex;
  align-items: center;
  height: 100%;
}

.item-row .menu-buttons {
  display: flex;
  align-items: center !important;
  justify-content: flex-end;
  min-width: 100px;
  height: 100%;
}

.item-row .menu-buttons button {
  width: 100px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
}

#optionsContainer {
  max-height: 45vh;
  overflow-y: auto;
}

@media (max-width: 480px) {
  #optionsContainer {
    max-height: 35vh;
    overflow-y: auto;
  }
}

.option-button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
  transition: all 0.4s ease-in-out;
}

.option-button:hover {
  background-color: var(--primary-color-hover);
}

#orderButton {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.4s ease-in-out;
}

#orderButton:hover {
  background-color: var(--primary-color-hover);
}

.cart-icon {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cart-icon #cartCount {
  background-color: var(--primary-color-hover);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.8em;
}

.cart-content {
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  border-radius: 20px;
  padding: 20px;
  background-color: white;
  border: 2px solid var(--primary-color);
  box-shadow: 0 5px 30px var(--shadow-color);
  overflow-y: auto;
}

.cart-items {
  max-height: 60vh;
  overflow-y: auto;
  margin-bottom: 15px;
  padding-right: 5px;
}

.cart-item {
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  position: relative;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.cart-item-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 5px;
  font-weight: 500;
  line-height: 1.4;
}

.cart-item-name > span {
  flex: 1;
  margin-right: 10px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid #eee;
  width: 100%;
}

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

.cart-item-quantity button {
  background: var(--primary-color);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  padding: 0;
  transition: all 0.2s ease;
  line-height: 0;
}

.cart-item-quantity button span {
  margin-top: -4px;
}

.cart-item-quantity button.decrease span {
  margin-top: -12px;
}

.cart-item-quantity button:hover {
  background: var(--primary-color-hover);
  transform: scale(1.1);
}

.cart-item-quantity span:not(.cart-item-price) {
  min-width: 24px;
  text-align: center;
  font-weight: 500;
}

.cart-item-price {
  font-weight: 500;
  color: var(--primary-color);
}

.cart-item-delete {
  background-color: transparent;
  color: #e74c3c;
  border: none;
  padding: 6px;
  cursor: pointer;
  font-size: 1.2em;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-left: auto;
}

.cart-item-delete:hover {
  background-color: rgba(231, 76, 60, 0.1);
  transform: scale(1.1);
}

.cart-footer {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-total {
  text-align: right;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.order-disclaimer {
  margin: 0 0;
  padding: 8px;
  background-color: #f8f8f8;
  border-left: 3px solid var(--primary-color);
  font-size: 0.8em;
  color: #555;
  line-height: 1.4;
  text-align: justify;
  border-radius: 4px;
}

.submit-order-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.4s ease-in-out;
  width: 100%;
  font-size: larger;
  margin-top: 20px;
  box-shadow: 0 3px 8px var(--shadow-color);
}

.submit-order-btn:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cart-icon {
    right: 60px;
  }

  .cart-content {
    width: 95%;
    padding: 15px;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cart-item-name {
    flex: 1 1 100%;
  }

  .cart-item-quantity,
  .cart-item-price,
  .cart-item-delete {
    /* width: 100%; */
    text-align: left;
  }

  .cart-item-price {
    text-align: left;
  }

  .cart-item-delete {
    width: auto;
  }

  .cart-total {
    text-align: left;
  }

  .submit-order-btn {
    width: 100%;
    font-size: larger;
  }
}

@media (max-width: 480px) {
  .cart-icon {
    right: 50px;
    font-size: 1em;
  }

  .cart-content {
    width: calc(100% - 24px);
    padding: 15px;
    margin: 0 12px;
    max-width: none;
    box-sizing: border-box;
  }

  .cart-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 8px 6px !important;
  }

  .cart-item-name {
    flex: 1 1 auto !important;
    font-size: 0.9em !important;
    padding: 0 !important;
    margin-right: 5px !important;
  }

  .cart-item-quantity {
    padding: 6px 0;
    width: 100%;
  }

  .cart-item-quantity button {
    width: 33px;
    height: 33px;
    font-size: 32px;
    line-height: 0;
  }

  .cart-item-quantity button span {
    margin-top: -3px;
  }

  .cart-item-quantity button.decrease span {
    margin-top: -10px;
  }

  .cart-item-quantity span:not(.cart-item-price) {
    min-width: 22px;
    font-size: 18px;
  }

  .cart-item-price {
    font-size: 18px;
  }

  .cart-item-delete {
    padding: 4px !important;
    font-size: 1.1em !important;
    width: 25px !important;
    height: 25px !important;
    margin-left: auto !important;
  }
}

.custom-popup-content {
  display: flex;
  flex-direction: column;
  padding: 20px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  background-color: #fff;
  border-radius: 20px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 5px 30px var(--shadow-color);
  position: relative;
  transition: all 0.4s ease-in-out;
}

#customPopupTitle {
  font-size: 1.5em;
  color: var(--text-color);
  margin-bottom: 15px;
  font-weight: 600;
}

#customPopupMessage {
  font-size: 1.1em;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.4;
}

.custom-popup-buttons {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

.custom-popup-buttons button {
  flex: 1;
  padding: 10px;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

.custom-popup-buttons .confirm-btn {
  background-color: var(--primary-color);
  color: white;
}

.custom-popup-buttons .confirm-btn:hover {
  background-color: var(--primary-color-hover);
}

.custom-popup-buttons .cancel-btn {
  background-color: #e74c3c;
  color: white;
}

.custom-popup-buttons .cancel-btn:hover {
  background-color: #c0392b;
}

.custom-popup-buttons .ok-btn {
  background-color: var(--primary-color);
  color: white;
  border-radius: 20px;
  padding: 12px 24px;
  font-weight: 600;
  box-shadow: 0 3px 6px var(--shadow-color);
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.custom-popup-buttons .ok-btn:hover {
  background-color: var(--primary-color-hover);
  transform: scale(1.03);
}

@media (max-width: 480px) {
  .custom-popup-content {
    width: calc(100% - 24px);
    padding: 15px;
    margin: 0;
    max-width: none;
    box-sizing: border-box;
  }

  #customPopupTitle {
    font-size: 1.3em;
    margin-top: 5px;
    margin-bottom: 10px;
  }

  #customPopupMessage {
    font-size: 1em;
    margin-bottom: 15px;
  }

  .custom-popup-buttons button {
    padding: 10px 15px;
    margin: 5px;
    font-size: 1em;
  }

  .custom-popup-buttons .ok-btn {
    max-width: 180px;
    padding: 10px 20px;
  }
}

/* Neuer fester Navigator-Balken */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: var(--primary-color);
  position: fixed;
  bottom: 0;
  width: 100%;
  left: 0;
  right: 0;
  height: 90px;
  padding: 0;
  z-index: 999;
  box-shadow: 0 -2px 10px var(--shadow-color);
  background-image: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-color-hover)
  );
  transition: all 0.4s ease-in-out;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 20%;
  transition: all 0.4s ease-in-out;
  color: white;
  height: 100%;
  justify-content: flex-start;
  padding-top: 15px;
  position: relative;
}

.nav-item:hover {
  background-color: var(--primary-color-hover);
}

.nav-item img {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}

.nav-item span {
  font-size: 0.8em;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#navCartCount {
  position: absolute;
  top: 30%;
  right: 35%;
  background-color: white;
  color: var(--primary-color);
  padding: 0px 2px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.4em;
  min-width: 25px;
  display: inline-block;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transform: translateY(-30%);
}

@media (min-width: 481px) and (max-width: 768px) {
  #navCartCount {
    right: 30%;
  }
}

@media (max-width: 480px) {
  .nav-item img {
    width: 25px;
    height: 25px;
  }

  .nav-item span {
    font-size: 0.7em;
  }

  #navCartCount {
    font-size: 1.4em;
    padding: 0px 2px;
    min-width: 22px;
    right: 15%;
    top: 30%;
  }

  .nav-item {
    height: 100%;
    padding-top: 15px;
  }

  .bottom-nav {
    padding: 0;
    height: 90px;
  }
}

.order-badge {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 5px var(--shadow-color);
  transition: all 0.4s ease-in-out;
  animation: pulse-badge 2s infinite;
}

.order-badge i {
  font-size: 1.1em;
}

.order-badge:hover {
  background-color: var(--primary-color-hover);
  transform: scale(1.05);
}

@keyframes pulse-badge {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); /* Grüner Schatten */
  }
  70% {
    box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
  }
}

/* Angepasste Animation für das Eisdielen-Theme */
.icecream-theme .order-badge {
  animation: pulse-badge-blue 2s infinite;
}

@keyframes pulse-badge-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(121, 197, 232, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(121, 197, 232, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(121, 197, 232, 0);
  }
}

.category-tabs {
  display: flex;
  background-color: white;
  padding: 10px 0;
  position: fixed;
  top: 105px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 6px var(--shadow-color);
  border-bottom: 2px solid var(--primary-color);
  transition: all 0.4s ease-in-out;
}

.category-tabs-container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 5px;
  box-sizing: border-box;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.category-tabs-container.equal-width {
  justify-content: space-between;
  flex-wrap: nowrap;
}

.category-tabs-container::-webkit-scrollbar {
  display: none; /* Standard: keine Scrollbar anzeigen */
}

.category-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  margin: 0 5px;
  background-color: white;
  color: var(--text-color);
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 2px 6px var(--shadow-color);
  border: 1px solid var(--primary-color);
}

.category-tab span {
  text-align: center;
  font-size: 0.95em;
}

.category-tab:hover {
  background-color: var(--background-color);
  transform: translateY(-2px);
}

.category-tab.active {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.category-tab.active:hover {
  background-color: var(--primary-color-hover);
}

.category-tabs-container.scrollable-left .category-tabs::before {
  opacity: 1;
}

.category-tabs-container.scrollable-right .category-tabs::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .category-tabs {
    top: 100px;
    padding: 8px 0;
    background-color: white;
    border-bottom: 2px solid var(--primary-color);
  }

  .category-tabs-container {
    padding: 0 5px;
  }

  .category-tab {
    padding: 6px 16px;
    margin: 0 5px;
    font-size: 0.9em;
    height: auto;
    min-width: max-content;
    border: 1px solid var(--primary-color);
    background-color: white;
  }

  .header {
    padding-top: 120px;
  }
}

@media (max-width: 480px) {
  .category-tabs {
    top: 103px;
    padding: 6px 0;
    height: auto;
    z-index: 999;
    background-color: white;
    border-bottom: 2px solid var(--primary-color);
  }

  .category-tabs-container {
    padding: 0 5px;
  }

  .category-tab {
    padding: 4px 12px;
    margin: 0 3px;
    font-size: 0.85em;
    height: auto;
    min-width: max-content;
    border: 1px solid var(--primary-color);
    background-color: white;
  }

  .header {
    padding-top: 115px;
  }

  .category-tabs-container.equal-width {
    justify-content: flex-start;
  }
}

/* Mobiles horizontales Scrolling verbessern */
@media (max-width: 768px) {
  .category-tabs-container {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; /* Besseres Snap-Verhalten beim Scrollen */
    padding-bottom: 0; /* Kein zusätzliches Padding auf mobilen Geräten */
    margin-bottom: 0;
  }

  .category-tab {
    scroll-snap-align: start; /* Tabs beim Scrollen einrasten lassen */
  }

  /* Menü für mobile Geräte optimieren */
  .menu-categories {
    padding: 15px 0;
    overflow-y: auto;
  }

  .menu-categories a {
    padding: 10px 5px;
    font-size: 1.5em;
  }

  .menu-categories .close-menu {
    top: 5px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 1.5em;
  }

  /* Logo im Menü für mobile Größe anpassen */
  .menu-categories > div:first-child {
    margin-top: 10px;
    margin-bottom: 0px;
  }
}

/* Verbesserte Formatierung für mobile Geräte */
@media (max-width: 480px) {
  .item-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    padding: 6px 6px !important;
    margin-bottom: 10px !important;
    position: relative !important;
    justify-content: space-between !important;
  }

  .item-details {
    flex: 1 !important;
    width: auto !important;
    max-width: 100% !important;
    margin-bottom: 5px !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    align-self: flex-start !important;
  }

  .item-details h3 {
    font-size: 1.1em !important;
    margin-bottom: 2px !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
    padding-left: 0 !important;
    display: inline !important;
  }

  .item-price {
    font-size: 1.1em !important;
    font-weight: bold !important;
    margin: 2px 0 5px 0 !important;
    width: 100% !important;
    text-align: left !important;
    padding-left: 0 !important;
  }

  .item-details p {
    font-size: 0.8em !important;
    margin: 3px 0 !important;
    padding-left: 0 !important;
    flex: 1 !important;
  }

  .item-row .info-icon {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin-left: 5px !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    z-index: 1 !important;
  }

  .item-row .menu-buttons {
    width: auto !important;
    min-width: 80px !important;
    max-width: 40% !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;
    padding-left: 0 !important;
    margin-left: 10px !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    position: static !important;
    margin-bottom: 0px;
    padding-bottom: 0px;
  }

  .item-row .menu-buttons button {
    width: 100% !important;
    max-width: 100px !important;
    padding: 8px 8px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: 0.9em !important;
    box-sizing: border-box !important;
  }
}

/* Horizontales Scrollen für Desktop verbessern */
@media (min-width: 769px) {
  /* Scrollbalken für die Kategorie-Tabs anzeigen */
  .category-tabs-container {
    padding-bottom: 8px; /* Platz für die Scrollbar */
    margin-bottom: -5px; /* Kompensieren für den zusätzlichen Platz */
  }

  .category-tabs-container::-webkit-scrollbar {
    height: 6px;
    display: block; /* Scrollbar auf Desktop anzeigen */
  }

  .category-tabs-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
  }

  .category-tabs-container::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
  }

  /* Firefox-Unterstützung */
  .category-tabs-container {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.05);
  }

  /* Visuelle Hinweise für mehr Inhalt hinzufügen */
  .category-tabs::before,
  .category-tabs::after {
    content: "";
    position: absolute;
    top: 0;
    width: 20px;
    height: 100%;
    z-index: 10;
    pointer-events: none; /* Erlaubt Interaktionen mit darunter liegenden Elementen */
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .category-tabs::before {
    left: 0;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0)
    );
  }

  .category-tabs::after {
    right: 0;
    background: linear-gradient(
      to left,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0)
    );
  }

  .category-tabs-container.scrollable-left .category-tabs::before {
    opacity: 1;
  }

  .category-tabs-container.scrollable-right .category-tabs::after {
    opacity: 1;
  }
}

/* Kombinierter Switcher */
.combined-switcher {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 5px;
  margin-right: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.combined-switcher:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.combined-switcher i {
  margin-right: 8px;
  font-size: 1.1em;
}

.combined-switcher .menu-type-indicator {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background-color: transparent;
}

.menu-type-indicator {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.9em;
  transition: all 0.3s ease;
}

.menu-type-icecream {
  color: white;
}

.menu-type-standard {
  color: white;
}

@media (max-width: 768px) {
  .combined-switcher {
    padding: 6px 10px;
  }

  .combined-switcher i {
    font-size: 1em;
  }

  .menu-type-indicator {
    font-size: 0.85em;
  }
}

.mobile-combined-switcher {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 10px 15px;
  border-radius: 8px;
  margin: 10px auto;
  width: 80%;
  max-width: 300px;
  justify-content: center;
  text-align: center;
}

.mobile-combined-switcher:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.mobile-combined-switcher i {
  margin-right: 10px;
  font-size: 1.2em;
}

.mobile-combined-switcher .menu-type-text {
  font-weight: bold;
}

@media (max-width: 480px) {
  .mobile-combined-switcher {
    width: 90%;
    padding: 8px 12px;
  }
}

.header-combined-switcher {
  background-color: var(--primary-color);
  color: white;
  margin: 0 auto 15px auto;
  padding: 10px 15px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  max-width: 200px;
}

.header-combined-switcher:hover {
  transform: scale(1.05);
  background-color: var(--primary-color-hover);
}

.header-combined-switcher .menu-type-indicator {
  color: white;
  font-weight: bold;
}

@media (max-width: 480px) {
  .header-combined-switcher {
    max-width: 180px;
    padding: 8px 12px;
  }
}

.appbar-combined-switcher {
  margin-top: 5px;
  margin-bottom: 2px;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 12px;
  align-self: flex-start;
  font-size: 0.9em;
}

.appbar-combined-switcher:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.appbar-combined-switcher .menu-type-indicator {
  color: white;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .appbar-combined-switcher {
    padding: 2px 8px;
    font-size: 0.8em;
  }

  .appbar-combined-switcher i {
    font-size: 0.9em;
  }

  .appbar-combined-switcher .menu-type-indicator {
    font-size: 1em;
  }
}

/* Grid-Layout für das Fullscreen-Menü */
.grid-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  background-image: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-color-hover)
  );
  z-index: 1000;
  color: white;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 0;
  box-sizing: border-box;
}

/* Header für das Grid-Menü */
.menu-header {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  padding: 10px;
}

.menu-title {
  display: block;
  font-size: 2.5em;
  line-height: 1;
  margin-bottom: 5px;
}

.menu-subtitle {
  display: block;
  font-size: 1.2em;
}

.menu-table {
  font-weight: bold;
}

/* Grid-Container für die Menü-Buttons */
.menu-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 90%;
  max-width: 1200px;
  margin-top: 20px;
  padding-bottom: 120px;
  overflow-y: auto;
  max-height: calc(100vh - 250px);
  -webkit-overflow-scrolling: touch;
}

/* Grid-Button-Styling */
.grid-button {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  aspect-ratio: auto;
  min-height: 80px;
  height: auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Entferne spezifische Anpassungen für Eisdielen-Menü, da sie nun für beide Themes gelten */
/* Spezifische Anpassungen für Eisdielen-Menü */
.icecream-theme .menu-grid-container {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.icecream-theme .grid-button {
  min-height: 80px !important;
  height: auto !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: auto !important;
}

.icecream-theme .grid-button-text {
  font-size: 1.2em !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  line-height: 1.3 !important;
  display: block !important;
  padding: 8px !important;
}

.grid-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.grid-button-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

.grid-button-text {
  font-size: 1.2em;
  font-weight: 600;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  padding: 8px;
  max-width: 100%;
  height: auto;
  min-height: 0;
  line-height: 1.3;
  overflow: visible;
  display: block;
}

/* Responsive Grid-Layout für verschiedene Bildschirmgrößen */
@media (min-width: 481px) {
  .menu-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .menu-grid-container {
    grid-template-columns: repeat(3, 1fr);
    width: 85%;
  }
}

@media (min-width: 1024px) {
  .menu-grid-container {
    grid-template-columns: repeat(2, 1fr);
    width: 90%;
  }
}

@media (min-width: 1280px) {
  .menu-grid-container {
    grid-template-columns: repeat(3, 1fr);
    max-width: var(--max-content-width);
  }
}

/* Anpassungen für Mobilgeräte */
@media (max-width: 480px) {
  .menu-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 95%;
    max-height: calc(100vh - 280px);
    padding-bottom: 20px;
    margin-bottom: 90px;
  }

  .grid-button {
    padding: 3px;
  }

  .grid-button-text {
    font-size: 1.1em;
    padding: 5px;
    line-height: 1.3;
  }

  .menu-title {
    font-size: 2em;
  }

  .menu-subtitle {
    font-size: 1em;
  }

  .menu-header {
    margin-bottom: 10px;
  }

  .menu-social-footer {
    padding: 12px 0;
  }

  .menu-social-footer a {
    font-size: 20px;
    margin: 0 8px;
  }

  .menu-social-footer a span {
    font-size: 11px;
  }
}

/* Styling für das Schließen-X */
.grid-menu .close-menu {
  position: absolute;
  top: 30px;
  right: 20px;
  font-size: 2.5em;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s ease;
  z-index: 1001;
}

.grid-menu .close-menu:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 768px) {
  .menu-card img {
    height: 120px;
  }
}

/* Tablet-spezifische Anpassungen */
@media (min-width: 481px) and (max-width: 768px) {
  .menu-card {
    width: 48%;
  }

  .menu-content {
    padding: 10px 5px 65px 5px; /* Angepasstes Padding für Tablets */
  }

  .description-height {
    max-height: 120px;
    -webkit-line-clamp: 5;
  }

  .menu-content .price {
    bottom: 40px;
    font-size: 1.1em;
    padding: 0 8px 4px 8px;
    line-height: 1.15;
  }

  .menu-buttons button {
    padding: 8px 15px;
    font-size: 0.9em;
    width: 95px;
  }

  .menu-container {
    gap: 6px;
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* Floating Order Badge Button für mobile Ansicht */
.floating-order-badge {
  position: fixed;
  bottom: 115px;
  right: 20px;
  min-width: 180px;
  padding: 12px 20px;
  border-radius: 12px;
  background-color: #27ae60 !important; /* Immer grün */
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 900;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse-badge 2s infinite; /* Animation wieder aktiv */
}

@keyframes pulse-badge {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); /* Grüner Schatten */
  }
  70% {
    box-shadow: 0 0 0 16px rgba(39, 174, 96, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
  }
}

.floating-order-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  background-color: #219150 !important; /* Beim Hover etwas dunkleres Grün */
}

.floating-order-badge i {
  font-size: 22px;
}

.floating-order-badge .badge-text {
  font-size: 16px;
  font-weight: 500;
  flex: 1;
}

@media (max-width: 480px) {
  .floating-order-badge {
    min-width: 160px;
    padding: 10px 16px;
    bottom: 110px;
  }

  .floating-order-badge i {
    font-size: 20px;
  }

  .floating-order-badge .badge-text {
    font-size: 14px;
  }
}

/* Verstecken des Order-Badge in der Appbar, wenn der schwebende Badge sichtbar ist */
@media (max-width: 768px) {
  .menu-bar .order-badge {
    display: none !important;
  }
}

/* Entfernen des Bestellungs-Buttons aus der unteren Navigation */
.nav-item.order-nav-item {
  display: none;
}

/* Styles für Social Media Footer im Menü */
.menu-social-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  z-index: 1002;
}

.menu-social-footer a {
  color: white;
  font-size: 28px;
  margin: 0 15px;
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-social-footer a span {
  font-size: 14px;
  margin-top: 5px;
  font-weight: normal;
}

.menu-social-footer a:hover {
  transform: scale(1.2);
  color: rgba(255, 255, 255, 0.8);
}

/* Zusätzliche Optimierungen für sehr kleine Bildschirme */
@media (max-width: 360px) {
  .menu-grid-container {
    gap: 8px;
    margin-top: 10px;
  }

  .grid-button {
    aspect-ratio: 3 / 1;
  }

  .icecream-theme .grid-button {
    aspect-ratio: auto !important;
    min-height: 60px !important;
    height: auto !important;
  }

  .grid-button-text {
    font-size: 1em;
    padding: 2px;
    height: 2.6em;
    line-height: 1.3em;
  }

  .icecream-theme .grid-button-text {
    font-size: 0.9em !important;
    padding: 5px !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.2 !important;
  }
}

/* Eisdielen-spezifische Grid-Anpassungen */
@media (min-width: 768px) {
  .icecream-theme .menu-grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .icecream-theme .menu-grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1280px) {
  .icecream-theme .menu-grid-container {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.icecream-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

.option-group {
  margin-bottom: 18px;
  padding: 14px 12px;
  background: #f7f7fa;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.option-group > div:first-child {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-size: 1.08em;
}

.option-choice {
  display: block;
  margin-bottom: 8px;
  padding: 7px 0 7px 0;
  cursor: pointer;
  font-size: 1em;
  border-radius: 6px;
  transition: background 0.2s;
}

.option-choice:hover {
  background: #eaf6fb;
}

.option-choice input[type="radio"],
.option-choice input[type="checkbox"] {
  accent-color: var(--primary-color);
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

.option-choice span {
  vertical-align: middle;
}

@media (min-width: 1025px) {
  .menu-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-items: stretch;
    align-items: stretch;
  }
  .menu-card {
    height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .menu-card img {
    height: 180px;
    object-fit: cover;
    width: 100%;
  }
  .menu-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

@media (min-width: 768px) {
  .item-row .info-icon {
    position: relative !important;
    z-index: 20 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  .item-row {
    position: relative !important;
  }
}
