:root{
  --bg: #111111; /* # NEU 2025-11-29: dunkles Grund-Theme */

  --panel: #111111; /* # NEU 2025-11-29: Hauptpanel dunkel */
  --panel2: #383838; /* # NEU 2025-11-29: Header/sekundär hell */
  --panel1: var(--panel); /* # NEU 2025-11-29: fehlende Variable (Sheet-Header nutzt --panel1) */
  --text: rgba(255,255,255,0.98);
  --muted: rgba(255,255,255,0.75);
  --muted2: rgba(255,255,255,0.60);

  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --radius: 24px;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);

  --sheet-mid-top: 30;
  --sheet-full-top: 5; /* NEU 2025-11-27: Full = 95% Höhe (oben 5vh frei) */
  --profile-open-top: 10;

  --accent: #f64749; /* # NEU 2025-11-29: Kategorie-/Button-Farbe */

  --pay-red: #f64749; /* # NEU 2025-11-29: Primärbutton-Farbe */
  --pay-red-press: #d13234; /* # NEU 2025-11-29: gedrückter Zustand */
  --pay-shadow: 0 18px 60px rgba(0,0,0,0.50);

  --pin-border: #383838; /* # NEU 2025-11-29: Pin-Umrandung entspricht panel2 (dunkles Theme) */
  --pin-shadow: 0 18px 40px rgba(0,0,0,0.22);

  --green: #22c55e;

  --route-bg: rgba(255,255,255,0.10);
  --route-border: rgba(255,255,255,0.14);

  --pin-border-rgb: 56,56,56; /* # NEU 2025-11-29: passend zu --pin-border (panel2) */
  --user-dot-rgb: 31,31,31; /* # NEU 2025-11-29: Standort-Dot bleibt dunkel (Sichtbarkeit) */

  --payment-open-top: 3; /* we open higher so payLegal stays visible even with the table input */
  --payment-footer-clearance: 126px;

    --auth-open-top: 14; /* # NEU 2025-12-01 */
    --openorder-open-top: 55;
}

*{ box-sizing: border-box; }
html, body{
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
  font-family: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji";
  -webkit-text-size-adjust: 100%;
  touch-action: pan-x pan-y;
}

body{ position: fixed; inset: 0; }

.orientationLock{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  background: rgba(0,0,0,0.92);
  color: #ffffff;
  font-size: 18px;
  line-height: 1.5;
  z-index: 8000;
}
html.isLandscape{
  transform: translateZ(0);
}
html.isLandscape #app{
  pointer-events: none;
  filter: blur(4px);
}
html.isLandscape .orientationLock{
  display: flex;
}

@media (orientation: landscape) and (max-width: 900px){
  html:not(.isLandscape) #app{
    pointer-events: none;
    filter: blur(4px);
  }
  html:not(.isLandscape) .orientationLock{
    display: flex;
  }
}


#app{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

#map{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
}

.leaflet-control-zoom,
.leaflet-control-layers,
.leaflet-control-scale{
  display: none !important;
}

.leaflet-control-attribution{
  background: transparent !important; /* # NEU 2025-11-29: Attribution-Hintergrund transparent */
  color: rgba(255,255,255,0.78) !important; /* # NEU 2025-11-29 */
  border-radius: 10px !important;
  padding: 0px 6px !important; /* # NEU 2025-11-29: kompakter */
  margin: 8px !important; /* # NEU 2025-11-29: kompakter */
  backdrop-filter: none; /* # NEU 2025-11-29 */
  -webkit-backdrop-filter: none; /* # NEU 2025-11-29 */
  font-size: 11px !important;
  border: none !important; /* # NEU 2025-11-29 */
  box-shadow: none !important; /* # NEU 2025-11-29 */
  text-shadow: 0 1px 10px rgba(0,0,0,0.35); /* # NEU 2025-11-29: Lesbarkeit ohne Box */
}
.leaflet-control-attribution a{ color: rgba(255,255,255,0.90) !important; } /* # NEU 2025-11-29 */

.topHint{
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(12px + var(--safe-top));
  pointer-events: none;
  display: flex;
  justify-content: center;
  z-index: 400;
}
.pill{
  max-width: 520px;
  width: fit-content;
  background: rgba(56,56,56,0.92); /* # NEU 2025-11-29: Dark UI */
  border: 1px solid rgba(255,255,255,0.10); /* # NEU 2025-11-29 */
  color: rgba(255,255,255,0.92); /* # NEU 2025-11-29 */
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22); /* # NEU 2025-11-29 */
  font-size: 13px;
  line-height: 1.2;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.pill.show{ opacity: 1; transform: translateY(0); }
.pill .dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(246,71,73,0.18); /* # NEU 2025-11-29: Akzent-Glow */
}

.toast{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--safe-bottom));
  z-index: 450;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.toastInner{
  max-width: 520px;
  width: fit-content;
  background: rgba(56,56,56,0.92); /* # NEU 2025-11-29: Dark UI */
  border: 1px solid rgba(255,255,255,0.10); /* # NEU 2025-11-29 */
  color: rgba(255,255,255,0.92); /* # NEU 2025-11-29 */
  padding: 10px 12px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.22); /* # NEU 2025-11-29 */
  font-size: 13px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}
.toastInner.show{ opacity: 1; transform: translateY(0); }

.customLeafletPin{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative; /* # NEU 2025-11-29: damit Emoji-Pin immer zentriert bleibt */
  width: 44px; /* # NEU 2025-11-29 */
  height: 44px; /* # NEU 2025-11-29 */
}

/* # NEU 2025-11-29: Emoji-Pins statt Tropfen/Bilder */
.emojiPin{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  border: 3px solid var(--pin-border);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(0,0,0,0.20);
  will-change: width, height;
  transition: width 160ms ease, height 160ms ease; /* # NEU 2025-11-29: kein Scale -> Rand bleibt gleich dick */
  position: absolute; /* # NEU 2025-11-29 */
  left: 50%; /* # NEU 2025-11-29 */
  top: 50%; /* # NEU 2025-11-29 */
  transform: translate(-50%,-50%); /* # NEU 2025-11-29 */
}
.emojiPin.active{
  width: 64px;  /* # NEU 2025-11-29: größer ohne Rand-Skalierung */
  height: 64px; /* # NEU 2025-11-29 */
}
.emojiPinInner{
  font-size: 22px;
  line-height: 1;
  transform: translateY(-0.5px);
  user-select: none;
  -webkit-user-select: none;
  transition: font-size 160ms ease; /* # NEU 2025-11-29 */
}
.emojiPin.active .emojiPinInner{
  font-size: 30px; /* # NEU 2025-11-29: Icon größer, Rand bleibt gleich */
}

.userDot{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgb(var(--user-dot-rgb)); /* # NEU 2025-11-29: Standortfarbe bleibt dunkel */
  box-shadow: 0 0 0 4px rgba(var(--user-dot-rgb),0.18), 0 12px 30px rgba(0,0,0,0.22); /* # NEU 2025-11-29 */
  border: 2px solid rgba(255,255,255,0.95);
}
.userPulse{ position: relative; }
.userPulse::after{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%,-50%);
  border-radius: 999px;
  background: rgba(var(--user-dot-rgb),0.12); /* # NEU 2025-11-29: Pulse bleibt dunkel */
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse{
  0%{ transform: translate(-50%,-50%) scale(0.55); opacity: 0.85; }
  100%{ transform: translate(-50%,-50%) scale(1.15); opacity: 0; }
}

/* Restaurant Sheet */
.sheet{
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  transform: translateY(110%);
  background: var(--panel);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  will-change: transform;
  touch-action: none;
  color: var(--text);
}
.sheet[data-state="hidden"]{ transform: translateY(110%); }
.sheet[data-state="mid"]{ transform: translateY(calc(var(--sheet-mid-top) * 1vh)); }
.sheet[data-state="full"]{
  transform: translateY(calc(var(--sheet-full-top) * 1vh)); /* NEU 2025-11-27 */
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.sheet.anim{
  transition: transform 240ms cubic-bezier(.18,.9,.18,1), border-radius 200ms ease;
}

.sheetHeader{
  position: relative;
  padding: 10px 16px 12px 16px;
  padding-top: calc(12px + var(--safe-top));
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background: var(--panel1);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.grabberWrap{ display: flex; justify-content: center; margin-bottom: 10px; pointer-events: none; }
.grabber{
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}

.headerRow{
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 6px;
}

.logo{
  width: 58px; height: 58px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}
#logoImg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
#logoFallback{
  display: block;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.98);
  font-size: 24px; /* # NEU 2025-11-29: Emoji größer */
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}

.titleWrap{
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.title{
  font-size: 20px;
  font-weight: 840;
  line-height: 1.1;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  letter-spacing: -0.01em;
  width: 100%;
}

.metaRow{
  margin-top: 7px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.metaText{
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.routeBtn{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--route-border);
  background: var(--route-bg);
  color: rgba(255,255,255,0.95);
  border-radius: 999px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  justify-self: end;
}
.routeBtn:active{ transform: translateY(1px); }
.routeIcon{ width: 16px; height: 16px; opacity: 0.95; }

.sheetContent{
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px;
  padding-bottom: calc(140px + var(--safe-bottom));
  touch-action: pan-x pan-y;
  overscroll-behavior: none; /* NEU 2025-11-28: Overscroll (Browser) deaktivieren */
  background: var(--panel);
  padding-top: 0px;
  margin-bottom: 20px;
}

.menuTop{
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0; /* NEU 2025-11-28 */
  background: linear-gradient(to bottom, rgba(17,17,17,0.98), rgba(17,17,17,0.92)); /* # NEU 2025-11-29 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.subcatRow{
  display: grid; /* NEU 2025-11-28 */
  grid-template-columns: 1fr 44px; /* NEU 2025-11-28 */
  gap: 10px; /* NEU 2025-11-28 */
  align-items: center; /* NEU 2025-11-28 */
  padding: 10px 0 10px 0; /* NEU 2025-11-28 */
  touch-action: pan-x pan-y; /* NEU 2025-11-28 */
}

.searchBtn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  color: rgba(255,255,255,0.90); /* # NEU 2025-11-29 */
}
.searchBtn:active{ transform: translateY(1px); }

.searchWrap{ margin-top: 0px; display: none; padding-bottom: 10px; } /* NEU 2025-11-28 */
.searchWrap.show{ display: block; }
.searchField{
  width: 100%;
  display: grid;
  grid-template-columns: 18px 1fr 22px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
}
.searchField input{
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255,255,255,0.96);
  font-size: 14px;
  font-weight: 650;
}
.searchField input::placeholder{ color: rgba(255,255,255,0.55); }
.clearBtn{
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.12);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: none;
  place-items: center;
  padding: 0;
  line-height: 1;
  font-weight: 900;
}
.clearBtn.show{ display: grid; }

.subcats{
  margin-top: 0px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0px;
  touch-action: pan-x pan-y;

  margin-left: -16px; /* # NEU 2025-11-29: linker Rand ohne Gutter (Chips können aus dem Screen geschoben werden) */
  padding-left: 16px; /* # NEU 2025-11-29: Startposition bleibt optisch sauber im Layout */
}
.subcats::-webkit-scrollbar{ display:none; }

.chip{
  flex: 0 0 auto;
  min-width: 42%;
  max-width: 70%;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.80);
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 820;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none; /* # NEU 2025-11-29 */
}
.chip.active{
  background: rgba(255,255,255,0.14); /* # NEU 2025-11-29: aktives Chip deutlich sichtbar */
  color: #ffffff; /* # NEU 2025-11-29 */
  border-color: rgba(255,255,255,0.22); /* # NEU 2025-11-29 */
  box-shadow: none; /* # NEU 2025-11-29 */
}

.menu{
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.sectionGroup{ display: grid; gap: 10px; }
.sectionTitle{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  margin: 6px 2px 2px 2px;
  padding-top: 6px;
}
.sectionDivider{
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 0 2px 0;
}

.item{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 12px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 140ms ease, transform 140ms ease;
}
.item:has(.itemDesc){
  align-items: flex-start;
}
.item:active{ transform: translateY(1px); }

.item.selected{
  border-color: rgba(239,68,68,1);
  border-width: 3px;
  box-shadow: none;
}

.itemName{
  font-weight: 680;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.96);
}
.itemDesc{
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--muted2);
  line-height: 1.35;
}

.prices{
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  padding-left: 10px;
  white-space: nowrap;
}
.priceNew{
  font-weight: 900;
  font-size: 14px;
  color: var(--green);
  letter-spacing: -0.01em;
}
.priceNew.noDiscount{
  font-weight: 850;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.01em;
}
.priceOld{
  font-weight: 850;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255,255,255,0.60);
  text-shadow: none;
}

/* # NEU 2025-11-29: Gratis-Highlight, wenn reduzierter Preis 0,00 € */
.priceNew.free{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 1000;
}
.priceNew.free .glitterText{
  color: transparent;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.88) 0%,
    rgba(246,71,73,1) 18%,
    rgba(255,255,255,1) 36%,
    rgba(246,71,73,1) 54%,
    rgba(255,255,255,0.90) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 12px 26px rgba(0,0,0,0.30);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.18));
  animation: glitter 4.0s linear infinite; /* # NEU 2025-11-29: langsamer (weniger Flackern) */
}
.priceNew.free .freeLabel{
  font-size: 15.5px;
  letter-spacing: -0.01em;
}
.priceNew.free .freeAmount{
  font-size: 14.5px;
  font-weight: 950;
  letter-spacing: -0.01em;
}
@keyframes glitter{
  0%{ background-position: 0% 50%; }
  100%{ background-position: 220% 50%; }
}

.empty{
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 14px 12px;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 12px;
}

.impressum{
    margin-top: 28px;
    border: none;
    border-radius: 18px;
    padding: 12px 12px;
}
.impressumTitle{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  margin-bottom: 10px;
}
.impRow{
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  line-height: 1.35;
}
.impMuted{ color: rgba(255,255,255,0.70); }

.paybar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(26px + var(--safe-bottom));
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}
.paybar.show{
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}
.payBtn{
  width: min(360px, calc(100vw - 32px));
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--pay-red);
  color: rgba(255,255,255,0.98);
  border-radius: 999px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.50);
  transform: translateZ(0);
  cursor: pointer;
}
.payBtn:active{
  transform: translateY(1px);
  background: var(--pay-red-press);
}
.payIcon{
  width: 18px;
  height: 18px;
  display: inline-block;
  opacity: 0.95;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.20));
}

/* # NEU 2025-12-11: Dummy-Restaurant Promo */
.dummyAd{
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 35%), rgba(0,0,0,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display:none;
  align-items:flex-end;
  justify-content:center;
  z-index: 120000;
}
.dummyAd.show{ display:flex; }
.dummyAdCard{
  width: 100%;
  max-width: 520px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  border:1px solid rgba(255,255,255,0.16);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 28px 70px rgba(0,0,0,0.35);
  padding: 24px 22px calc(26px + env(safe-area-inset-bottom, 0px));
  display:flex;
  flex-direction:column;
  gap: 16px;
  max-height: 82vh;
  min-height: 40vh;
  margin-bottom: 0;
  transform: translateY(110%);
  transition: transform 220ms ease;
}
.dummyAd.show .dummyAdCard{ transform: translateY(0); }
.dummyAdCard.dragging{
  transition: none;
}
.dummyAd.show .dummyAdCard{
  transform: translateY(0);
}
.dummyAdHero{
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(246,71,73,0.35), transparent 45%), radial-gradient(circle at 70% 80%, rgba(34,197,94,0.28), transparent 50%), color-mix(in srgb, var(--panel2) 88%, transparent);
  display:flex;
  align-items:center;
  justify-content:center;
}
.dummyAdGlow{
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.14), transparent 55%);
  mix-blend-mode: screen;
}
.dummyAdEmoji{
  position:relative;
  z-index:1;
  font-size: 38px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.35));
}
.dummyAdHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.dummyAdTitle{
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.98);
}
.dummyAdSubtitle{
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}
.dummyAdClose{
  border:none;
  background: transparent;
  font-size: 20px;
  cursor:pointer;
  color: var(--muted);
}
.dummyAdBody{
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  text-align:center;
  color: rgba(255,255,255,0.95);
  padding: 2px 6px 0;
}
.dummyAdFoot{
  display:flex;
  justify-content:center;
  margin-top: 10px;
}
.dummyAdBtn{
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: linear-gradient(135deg, var(--pay-red), #ff7a7c);
  color: rgba(255,255,255,0.96);
  cursor:pointer;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.30);
}
:root[data-theme="light"] .dummyAd{
  background: radial-gradient(circle at 20% 20%, rgba(0,0,0,0.04), transparent 35%), rgba(0,0,0,0.25);
}
:root[data-theme="light"] .dummyAdCard{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 26px 60px rgba(0,0,0,0.18);
  color: #0f172a;
}
:root[data-theme="light"] .dummyAdHero{
  background: radial-gradient(circle at 30% 20%, rgba(246,71,73,0.15), transparent 45%), radial-gradient(circle at 70% 80%, rgba(34,197,94,0.15), transparent 55%), #f8fafc;
}
:root[data-theme="light"] .dummyAdGlow{
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.25), transparent 55%);
}

:root[data-theme="light"] .dummyAdTitle{
  color: #0f172a;
}
:root[data-theme="light"] .dummyAdSubtitle{
  color: #475569;
}
:root[data-theme="light"] .dummyAdBody{
  color: #1f2937;
}
:root[data-theme="light"] .dummyAdBtn{
  border-color: #fda4af;
  box-shadow: 0 10px 22px rgba(248,113,113,0.25);
}

/* # NEU 2025-12-11: Warenkorb Sheet */
.cartSheet{
  position: fixed;
  left:0; right:0; bottom:0;
  height: auto;
  background: var(--panel);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  transform: translateY(105%);
  transition: transform 220ms ease;
  z-index: 120000;
  display:flex;
  flex-direction:column;
  max-height: 95vh;
  padding-bottom: calc(26px + max(var(--safe-bottom), 24px)); /* extra Abstand zum unteren Safari-UI */
}
.cartSheet.show{ transform: translateY(0); }
@supports (height: 100dvh){
  .cartSheet{
    max-height: 95dvh;
  }
}
.cartHeader{
  padding: 12px 16px 8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.cartTitle{
  font-size: 17px;
  font-weight: 900;
}
.cartContent{
  flex:1;
  overflow:auto;
  padding: 10px 16px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.cartItemsList{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.cartItemBlock{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.cartCommentActions{
  margin-top: 8px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  align-items:center;
}
.cartCommentToggle{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 12px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.cartCommentToggle:hover{
  border-color: var(--muted);
}
.cartCommentToggle:focus-visible{
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.cartCommentPreview{
  font-size: 13px;
  color: var(--muted);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cartItemCommentPanel{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: color-mix(in srgb, var(--panel2) 92%, transparent);
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height 200ms ease, opacity 200ms ease;
}
.cartItemCommentPanel.isOpen{
  max-height: 220px;
  opacity: 1;
  visibility: visible;
}
.cartItemCommentInput{
  width: 100%;
  min-height: 64px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 95%, transparent);
  color: var(--text);
  font: inherit;
  padding: 8px;
  resize: vertical;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.cartItemCommentInput:focus{
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
}

.cartContent{
  gap: 8px;
  padding-bottom: 12px;
}
.cartEmpty{
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  text-align:center;
  color: var(--muted);
}
.cartItem{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel2) 82%, transparent);
}
.cartRight{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap: 6px;
}
.cartQty{
  display:inline-flex;
  align-items:center;
  gap: 8px;
}
.cartQtyBtn{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.cartQtyBtn[data-act="inc"]{
  border-color: var(--green);
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
}
.cartQtyBtn[data-act="dec"]{
  border-color: var(--pay-red);
  color: var(--pay-red);
  background: color-mix(in srgb, var(--pay-red) 12%, transparent);
}
.cartQtyValue{
  min-width: 20px;
  text-align: center;
  font-weight: 800;
}
.cartItem .name{
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
.cartItem .price{
  font-weight: 850;
  font-size: 14px;
}
.cartItem .muted{
  font-size: 12px;
  color: var(--muted);
}
.cartFooter{
  padding: 14px 16px calc(26px + max(var(--safe-bottom), 24px)); /* Abstand angehoben damit Button nicht von URL-Bar verdeckt wird */
  border-top:1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 96%, transparent);
}
.cartFooter{
  position: sticky;
  bottom: 0;
}
@media (max-width: 900px){
  .cartFooter{
    padding-bottom: calc(26px + max(var(--safe-bottom), 24px));
  }
}
.cartPayBtn{
  width: 100%;
  padding: 16px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--pay-red);
  color: rgba(255,255,255,0.96);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

/* # NEU 2025-11-29: Payment Sheet + Backdrop */
.payBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 119000;
}
.payBackdrop.show{
  opacity: 1;
  pointer-events: auto;
}
:root[data-theme="light"] .payBackdrop{
  background: rgba(0,0,0,0.32);
}

.paymentSheet{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: calc(12px + var(--safe-bottom));
  transform: translateY(150%);
  background: transparent;
  z-index: 120000;
  will-change: transform;
  touch-action: none;
  pointer-events: none;
}
.paymentSheetPanel{
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 28px 28px 0 0;
  background: var(--panel);
  box-shadow: 0 28px 70px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text);
  pointer-events: auto;
  min-height: 0;
  max-height: calc(100svh - 4px);
}
.paymentSheet.anim{
  transition: transform 240ms cubic-bezier(.18,.9,.18,1), border-radius 200ms ease;
}
.paymentSheet[data-state="hidden"]{
  transform: translateY(150%);
  visibility: hidden;
  opacity: 0;
}
.paymentSheet[data-state="open"]{
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(calc(var(--payment-open-top, 6) * 1vh));
}
.paymentSheetBody{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
  overflow: visible;
}
.paymentContent{
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 20px 12px;
  background: transparent;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.paymentBody{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.upsellSheet{
  position: fixed;
  left:0; right:0; bottom:0;
  height: auto;
  max-height: 90vh;
  background: var(--panel);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  transform: translateY(105%);
  transition: transform 220ms ease;
  z-index: 120500;
  display:flex;
  flex-direction:column;
}
.upsellSheet.dragging{
  transition: none;
}
.upsellSheet.show{ transform: translateY(0); }
.upsellHeader{
  padding: 18px 20px 12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  border-bottom:1px solid var(--border);
}
.upsellTitle{
  font-size: 17px;
  font-weight: 900;
}
.upsellBody{
  flex:1;
  padding: 22px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.upsellBodyInner{
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.upsellText{
  display: none;
}
.upsellCard{
  border-radius: 16px;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  margin-top: 0;
}
.upsellCard.hidden{ display: none; }
.upsellImgWrap{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: transparent;
  border: none;
  box-shadow: none;
}
.upsellImgWrap.hidden{ display: none; }
.upsellImgWrap.placeholder{
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 20% 20%, color-mix(in srgb, var(--pay-red) 26%, transparent), rgba(255,255,255,0.04)),
              radial-gradient(140% 140% at 80% 10%, rgba(34,197,94,0.22), transparent),
              color-mix(in srgb, var(--panel2) 70%, transparent);
}
.upsellImg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 200ms ease;
}
.upsellImgWrap:hover .upsellImg{
  transform: scale(1.04);
}
.upsellImgOverlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.00), rgba(0,0,0,0.28));
  pointer-events: none;
}
.upsellImgLabel{
  display: none;
}
.upsellHead{
  display:flex;
  align-items:flex-start;
  gap: 12px;
}
.upsellName{
  font-weight: 850;
  font-size: 16px;
  letter-spacing: -0.01em;
  flex: 1;
}
.upsellDesc{
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.35;
}
.upsellPrices{
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
  text-align: right;
}
.upsellPriceNew{
  font-weight: 900;
  font-size: 15px;
  color: var(--green);
}
.upsellPriceNew.free{
  color: var(--green);
}
.upsellPriceNew.gratis{
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.upsellPriceOld{
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255,255,255,0.50);
  display: none;
}
.upsellPriceOld.show{ display: inline-block; }
.upsellFooter{
  display:flex;
  gap: 10px;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  border-top:1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 96%, transparent);
}
.upsellBtn{
  flex:1;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 900;
  font-size: 15px;
  cursor:pointer;
  min-height: 48px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.upsellBtn.primary{
  background: var(--green);
  color: rgba(255,255,255,0.98);
  border-color: color-mix(in srgb, var(--green) 80%, #ffffff 20%);
  box-shadow: 0 0 18px rgba(34,197,94,0.35), 0 0 48px rgba(34,197,94,0.25);
  animation: upsellPulse 4s ease-in-out infinite;
}
.upsellBtn.primary::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 25% 10%, rgba(255,255,255,0.22), transparent 45%),
    radial-gradient(circle at 75% 40%, rgba(255,255,255,0.12), transparent 45%);
  opacity: 0.45;
  pointer-events:none;
  mix-blend-mode: screen;
  filter: blur(0.5px);
}
.upsellBtn.primary::after{
  content:"";
  position:absolute;
  inset:-30% -20%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.65) 45%, rgba(255,255,255,0) 85%);
  transform: translateX(-100%) rotate(8deg);
  opacity: 0.8;
  pointer-events:none;
  animation: upsellShine 4s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes upsellShine{
  0%{ transform: translateX(-100%) rotate(8deg); }
  40%{ transform: translateX(120%) rotate(8deg); }
  100%{ transform: translateX(220%) rotate(8deg); }
}

@keyframes upsellPulse{
  0%{
    transform: scale(1);
    box-shadow: 0 0 12px rgba(34,197,94,0.30), 0 0 32px rgba(34,197,94,0.18);
  }
  50%{
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(34,197,94,0.40), 0 0 52px rgba(34,197,94,0.30);
  }
  100%{
    transform: scale(1);
    box-shadow: 0 0 16px rgba(34,197,94,0.32), 0 0 40px rgba(34,197,94,0.24);
  }
}

@media (prefers-reduced-motion: reduce){
  .upsellBtn.primary::after{
    animation: none;
  }
  .upsellBtn.primary{
    animation: none;
    transition: none;
  }
}
.upsellBtn.secondary{
  background: color-mix(in srgb, var(--panel2) 86%, transparent);
  color: var(--muted);
}

/* # NEU 2025-12-04: Offene Bestellung – Backdrop */
.openOrderBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 119020;
}
.openOrderBackdrop.show{
  opacity: 1;
  pointer-events: auto;
}
:root[data-theme="light"] .openOrderBackdrop{
  background: rgba(0,0,0,0.32);
}

/* # NEU 2025-12-04: Offene Bestellung – Sheet */
.openOrderSheet{
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  transform: translateY(110%);
  background: var(--panel2);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: var(--pay-shadow);
  z-index: 119030;
  touch-action: none; /* wichtig fürs Drag */
}
.openOrderSheet.anim{
  transition: transform 240ms cubic-bezier(.18,.9,.18,1);
}
.openOrderSheet[data-state="hidden"]{ transform: translateY(110%); }
.openOrderSheet[data-state="open"]{
  transform: translateY(calc(var(--openorder-open-top) * 1vh));
}

.openOrderHeader{
  position: relative;
  padding: 12px 16px 10px 16px;
  padding-top: calc(12px + var(--safe-top));
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: var(--panel2);
   text-align: center;   /* # NEU 2025-12-04: Text + Inline-Button mittig ausrichten */
  max-width: 520px;     /* # NEU 2025-12-04: Block nicht zu breit (optional, aber empfehlenswert) */
  margin: 0 auto;       /* # NEU 2025-12-04: Block horizontal zentrieren */
}
:root[data-theme="light"] .openOrderHeader{
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.openOrderTitleRow{
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.openOrderTitleStack{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  min-width: 0;
}
.openOrderIcon{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  background: rgba(255, 203, 0, 0.18);
  color: #f4b442;
}
:root[data-theme="light"] .openOrderIcon{
  background: rgba(255, 203, 0, 0.30);
  color: #ad6000;
}
.openOrderSubtitle{
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.openOrderHandle{
  width: 44px;
  height: 5px;
  border-radius: 999px;
  margin: 0 auto 10px auto;
  background: rgba(255,255,255,0.22);
}
:root[data-theme="light"] .openOrderHandle{
  background: rgba(0,0,0,0.18);
}

.openOrderTitle{
  font-weight: 800;
  letter-spacing: 0.01em;
}

.openOrderBody{
  padding: 14px 16px calc(16px + var(--safe-bottom)) 16px;
}

.openOrderText{
  color: var(--muted);
  line-height: 1.35;
  text-align: center;   /* # NEU 2025-12-04: Text + Inline-Button mittig ausrichten */
  max-width: 520px;     /* # NEU 2025-12-04: Block nicht zu breit (optional, aber empfehlenswert) */
  margin: 0 auto;       /* # NEU 2025-12-04: Block horizontal zentrieren */
  margin-top: 5px;
}

.openOrderItems{
  margin: 18px auto 0;
  max-width: 520px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.02);
  padding: 14px 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}
:root[data-theme="light"] .openOrderItems{
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}
.openOrderItemsLabel{
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.openOrderItemsList{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.openOrderItem{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 8px;
}
:root[data-theme="light"] .openOrderItem{
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.openOrderItem:last-child{
  border-bottom: 0;
  padding-bottom: 0;
}
.openOrderItemName{
  font-weight: 700;
  line-height: 1.2;
}
.openOrderItemMeta{
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.openOrderItemPrice{
  font-weight: 700;
  min-width: 80px;
  text-align: right;
}
.openOrderItemsEmpty{
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 14px 0;
}


.openOrderCodeInline{
  font-weight: 900;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.openOrderInlineLink{
  font: inherit;              /* # NEU 2025-12-04 */
  font-size: inherit;         /* # NEU 2025-12-04 */
  line-height: inherit;       /* # NEU 2025-12-04 */
  font-weight: 900;           /* # NEU 2025-12-04 */
  letter-spacing: inherit;    /* # NEU 2025-12-04 */
  appearance: none;
  background: none;
  border: none;
  color: var(--text);
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
}


.openOrderActions{
  display: grid;
  grid-template-columns: 1fr; /* # NEU 2025-12-04 */
  gap: 10px;
  margin-top: 14px;
}

.openOrderBtn{
  margin-top: 16px;
  height: 50px;
  border-radius: 16px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
   font-size: 16px;
}
.openOrderBtn.primary{
  background: var(--pay-red);
  border-color: rgba(255,255,255,0.0);
}
.openOrderBtn.secondary{
  background: rgba(255,255,255,0.06);
}
:root[data-theme="light"] .openOrderBtn:not(.primary){ /* # NEU 2025-12-04 */
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.04);
  color: rgba(17,17,17,0.92);
}

.paymentHeader{
  position: relative;
  padding: 14px 16px 16px;
  padding-top: calc(16px + var(--safe-top));
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background: color-mix(in srgb, var(--panel), rgba(255,255,255,0.06));
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.paymentTitle{
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
}
:root[data-theme="light"] .paymentHeader{
  background: color-mix(in srgb, var(--panel2), rgba(255,255,255,0.78));
  border-bottom-color: rgba(0,0,0,0.10);
}
:root[data-theme="light"] .paymentTitle{
  color: rgba(17,17,17,0.92);
}

/* # NEU 2025-11-29: Summary Block */
.paySummary{
  border-radius: 20px;
  padding: 16px 16px 14px;
  background: color-mix(in srgb, var(--panel), rgba(255,255,255,0.12));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
:root[data-theme="light"] .paySummary{
  background: rgba(255,255,255,0.96);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.paySummaryRow{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.paySummaryLabel{
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
:root[data-theme="light"] .paySummaryLabel{
  color: rgba(17,17,17,0.55);
}
.paySummaryValue{
  font-size: 16px;
  font-weight: 950;
  color: rgba(255,255,255,0.98);
}
:root[data-theme="light"] .paySummaryValue{
  color: rgba(17,17,17,0.92);
}
.paySummaryValue.total{
  font-size: 20px;
  letter-spacing: -0.02em;
}

.tipPanel{
  margin-bottom: 14px;
  border-radius: 20px;
  padding: 16px 16px 14px;
  background: color-mix(in srgb, var(--panel), rgba(255,255,255,0.12));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 44px rgba(0,0,0,0.33);
}
:root[data-theme="light"] .tipPanel{
  background: rgba(255,255,255,0.96);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.tipPanelHeader{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.tipPanelTitle{
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
:root[data-theme="light"] .tipPanelTitle{
  color: rgba(17,17,17,0.55);
}

.tipSliderWrap{
  position: relative;
  margin-top: 20px;
  padding-top: 18px;
}
.tipAmountBubble{
  position: absolute;
  left: 0;
  transform: translate(-50%, -120%);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(17,17,17,0.9);
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
}
:root[data-theme="light"] .tipAmountBubble{
  background: rgba(255,255,255,0.95);
  color: rgba(17,17,17,0.95);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.tipSlider{
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.3);
  outline: none;
  cursor: pointer;
}
.tipSlider::-webkit-slider-runnable-track{
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
}
.tipSlider::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:var(--green);
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  margin-top: -7px;
}
.tipSlider::-moz-range-track{
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
}
.tipSlider::-moz-range-thumb{
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:var(--green);
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
:root[data-theme="light"] .tipSlider{
  background: rgba(0,0,0,0.1);
}
:root[data-theme="light"] .tipSlider::-webkit-slider-runnable-track{
  background: rgba(0,0,0,0.14);
}
:root[data-theme="light"] .tipSlider::-moz-range-track{
  background: rgba(0,0,0,0.12);
}

/* # NEU 2025-11-29: Segmented Slider mit Texten "Take Away" / "Vor Ort" */
.segSwitch{
  position: relative;
  height: 50px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
  user-select: none;
  -webkit-user-select: none;
}
:root[data-theme="light"] .segSwitch{
  border-color: rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.segThumb{
  position: absolute;
  inset: 0;
  width: 50%;
  border-radius: 22px;
  background: #000;
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 16px 35px rgba(0,0,0,0.35);
  transform: translateX(0);
  transition: transform 200ms cubic-bezier(.18,.9,.18,1);
}
:root[data-theme="light"] .segThumb{
  background: rgba(17,17,17,0.95);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 14px 30px rgba(0,0,0,0.25);
}
.segSwitch[data-mode="vorort"] .segThumb{
  transform: translateX(100%);
}
.segBtn{
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
  z-index: 2;
  text-transform: uppercase;
  border-radius: 999px;
  height: 100%;
  width: 100%;
}
:root[data-theme="light"] .segBtn{
  color: rgba(17,17,17,0.72);
}
.segBtn.active{
  color: #fff;
}
.segBtn:active{ transform: translateY(1px); }
:root[data-theme="light"] .segBtn.active{
  color: #fff;
}

.payModeCard{
  border-radius: 18px;
  padding: 18px;
  background: color-mix(in srgb, var(--panel2), rgba(0,0,0,0.18));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 38px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
:root[data-theme="light"] .payModeCard{
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

.tableRow{
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.payModeCard.qrMode .segSwitch{
  display: none;
}
.payModeCard.qrMode .tableRow{
    margin-top: 0;
  }
  
  .tableInput{
    width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.96);
  padding: 12px 12px;
  outline: none;
  font-size: 16px;
  font-weight: 760;
}
.tableInput::placeholder{ color: rgba(255,255,255,0.55); }
:root[data-theme="light"] .tableInput{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  color: rgba(17,17,17,0.92);
}
:root[data-theme="light"] .tableInput::placeholder{ color: rgba(17,17,17,0.46); }
.tableInput.tableInput--fixed{
  cursor: not-allowed;
  opacity: 0.9;
}
:root[data-theme="light"] .tableInput.tableInput--fixed{
  opacity: 0.8;
}

.payOptions{
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.payOptionBtn{
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 16px;
  border: none;
  padding: 16px 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  color: #fff;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 18px 45px rgba(0,0,0,0.2);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.payOptionBtn:active{
  transform: translateY(1px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}
:root[data-theme="light"] .payOptionBtn{
  color: rgba(17,17,17,0.9);
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.88);
}
.payOptionBtn:disabled{
  opacity: 0.6;
  cursor: not-allowed;
}

.payApple{
  background: linear-gradient(135deg, #0a0a0a 0%, #2c2c2c 100%);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
}
.payPaypal{
  background: linear-gradient(135deg, #003087 0%, #00a0ff 100%);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
}
.payCash{
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
:root[data-theme="light"] .payCash{
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.18);
  color: rgba(17,17,17,0.85);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
/* # NEU 2025-11-29: Legal Hint (AGB & Geschäftsbedingungen) */
.payLegal{
  margin: 8px 0 10px;
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.4;
  text-align: center;
  padding: 0 12px 12px;
}
.payLegal a{
  color: var(--text);
  text-decoration: underline;
  font-weight: 700;
  text-underline-offset: 2px;
}
:root[data-theme="light"] .payLegal{
  color: rgba(17,17,17,0.55);
}
:root[data-theme="light"] .payLegal a{
  color: rgba(17,17,17,0.78);
}

.profileFab{
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(14px + var(--safe-bottom));
  z-index: 1800;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.profileFab.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.profileFab{
  left: auto;
  right: 12px;
  top: calc(12px + var(--safe-top));
  bottom: auto;
  padding: 0;
  justify-content: flex-end;
  transform: translateY(-10px);
}

.profileFab{
  right: 24px;
  top: calc(24px + var(--safe-top));
}

/* # NEU 2025-11-29: Buzz Logo links oben, gleiche Höhe wie Profil */
.brandLogo{
  position: fixed;
  left: 24px; /* # NEU 2025-11-29: links am Bildschirmrand belassen */
  transform: none; /* # NEU 2025-11-29 */
  top: calc(24px + var(--safe-top) + 28px - 17px); /* # NEU 2025-11-29: vertikal mittig zur Profilbutton-Höhe (56px) -> +28px, Logo-Höhe 34px -> -17px */
  z-index: 1800;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.brandLogo img{
  height: 34px;
  width: auto;
  display: block;
}

.profileBtn{
  width: min(220px, calc(100vw - 32px));
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(11,18,34,0.96);
  color: rgba(255,255,255,0.96);
  border-radius: 999px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}
.profileBtn:active{ transform: translateY(1px); }

.profileBtn{
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  background: var(--panel2); /* # NEU 2025-11-29: korrekt -> dunkel bei Dark Theme */
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.96); /* # NEU 2025-11-29 */
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

/* # NEU 2025-11-29: Kopf-Icon im Profilbutton */
.profileBtn svg{
  width: 26px;
  height: 26px;
  display: block;
}

/* Restaurant-Dock */
.restaurantDock{
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(12px + var(--safe-bottom));
  height: 30vh;
  min-height: 180px;
  max-height: 280px;
  z-index: 1750;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.restaurantDock.show{
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.dockViewport{
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  overscroll-behavior: none; /* # NEU 2025-12-05: Bounce (Overscroll) entfernen */
  scrollbar-width: none;
  touch-action: pan-x;
}
.dockViewport::-webkit-scrollbar{ display:none; }

.dockTrack{
  height: 100%;
  display: flex;
  gap: 0;
  align-items: stretch;
  --dock-peek: 40px;
  --dock-gap: 16px;
  gap: var(--dock-gap);
}

.dockTrack::before,
.dockTrack::after{
  content: "";
  flex: 0 0 var(--dock-peek);
}

.dockSlide{
  flex: 0 0 calc(100% - (var(--dock-peek) * 2) - var(--dock-gap));
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  align-items: stretch;
}

.dockCard{
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(17,17,17,0.86);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  grid-template-rows: 1fr auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x;
}

.dockImgWrap{
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  display: block;
}
.dockImg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}
.dockImgShade{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.46), rgba(17,17,17,0.00) 58%);
  pointer-events: none;
}
.dockEmojiFallback{
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 18px 35px rgba(0,0,0,0.22));
  user-select: none;
  -webkit-user-select: none;
}

.dockInfo{
  padding: 12px 12px 12px 12px;
  background: rgba(17,17,17,0.86);
  border-top: 1px solid rgba(255,255,255,0.10);
  display: grid;
  gap: 8px;
}
.dockTitleRow{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}
.dockName{
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.96);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.dockDistance{
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
}
.dockMeta{
  font-size: 13px;
  color: rgba(255,255,255,0.76);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dockHintRow{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.dockHint{
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  letter-spacing: -0.01em;
}
.dockDots{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease, visibility 120ms ease;
}
.dockSlide.isActive .dockDots{
  opacity: 1;
  visibility: visible;
}
.dockDot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
}
.dockDot.active{
  background: rgba(255,255,255,0.70);
}

/* Profile Sheet */
.profileSheet{
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  transform: translateY(110%);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: var(--panel);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 2600;
  display: flex;
  flex-direction: column;
  will-change: transform;
  touch-action: none;
  color: var(--text);
}
.profileSheet.anim{
  transition: transform 240ms cubic-bezier(.18,.9,.18,1), border-radius 200ms ease, opacity 180ms ease, visibility 180ms ease;
}
.profileSheet[data-state="hidden"]{
  transform: translateY(110%); /* extra offset so hidden state never peeks on tall viewports */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.profileSheet[data-state="open"]{
  transform: translateY(calc(var(--profile-open-top) * 1vh));
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profileHeader{
  position: relative;
  padding: 10px 16px 12px 16px;
  padding-top: calc(12px + var(--safe-top));
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background: var(--panel);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.profileTitle{
  margin: 0;
  font-size: 18px;
  font-weight: 840;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.98);
}
.profileSub{
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profileContent{
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px;
  padding-bottom: calc(40px + var(--safe-bottom));
  touch-action: pan-x pan-y;
  overscroll-behavior: none; /* # NEU 2025-12-05: Bounce (Overscroll) entfernen */
  background: var(--panel);
}

.card{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 12px 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}
.card + .card{ margin-top: 12px; }
.row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.row:last-child{ border-bottom: none; padding-bottom: 0; }
.label{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}
.value{
  font-size: 14px;
  font-weight: 820;
  color: rgba(255,255,255,0.96);
  text-align: right;
}
.value.muted{ color: rgba(255,255,255,0.78); font-weight: 760; }
.value.green{ color: var(--green); }

.listItem{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.listItem:last-child{ border-bottom: none; padding-bottom: 0; }
.liTitle{ font-weight: 820; color: rgba(255,255,255,0.96); }
.liMeta{ font-size: 12.5px; color: rgba(255,255,255,0.66); }
.liPrices{
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}
/* # NEU 2025-12-04: Profil-Bestellungen klickbar + Pfeil */
.listItem.jsProfileOrderRow{ cursor: pointer; }
.listItem.jsProfileOrderRow:hover{ opacity: 0.92; }

.profileOrdersList .liChevron{
  align-self: center;
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  padding-left: 6px;
}
.profileOrdersList.isScrollable{
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.profileOrdersList{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* # NEU 2025-12-05: Toggle Button unter Bestellungen */
.profileOrdersToggle{
  margin-top: 10px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  border-radius: 16px;
  padding: 10px 12px;
  font-weight: 850;
  letter-spacing: -0.01em;
  font-size: 13.5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.profileOrdersToggle:active{ transform: translateY(1px); }
:root[data-theme="light"] .profileOrdersToggle{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  color: rgba(17,17,17,0.88);
}

.liPrices .priceNew{ font-size: 13.5px; }
.liPrices .priceOld{ font-size: 12.8px; }

.settingsBtn{
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  border-radius: 16px;
  padding: 12px 12px;
  font-weight: 850;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.settingsBtn:active{ transform: translateY(1px); }
.chev{ width: 18px; height: 18px; opacity: 0.85; }

.leaflet-container{
  -webkit-tap-highlight-color: transparent;
  background: #ffffff;
}

/* # NEU 2025-11-29: Theme-Slider im Profil */
.themeControl{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  -webkit-user-select: none;
}
.themeIcon{
  font-size: 18px;
  line-height: 1;
  opacity: 0.92;
}
.themeSlider{
  width: 56px; /* # NEU 2025-11-29: kurz wie ein Switch */
  height: 28px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  touch-action: pan-y;
}
.themeSlider::-webkit-slider-runnable-track{
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.themeSlider::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
  margin-top: 1px;
}
.themeSlider::-moz-range-track{
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.themeSlider::-moz-range-thumb{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

/* # NEU 2025-11-29: LIGHT THEME (Overrides) */
:root[data-theme="light"]{
  --bg: #f7f7f8;
  --panel: #ffffff;
  --panel2: #f2f2f3;
  --panel1: #ffffff;
  --text: rgba(17,17,17,0.94);
  --muted: rgba(17,17,17,0.70);
  --muted2: rgba(17,17,17,0.58);
  --shadow: 0 20px 60px rgba(0,0,0,0.14);
  --route-bg: rgba(0,0,0,0.04);
  --route-border: rgba(0,0,0,0.10);
  --pin-border: #f2f2f3; /* # NEU 2025-11-29: Pin-Rand entspricht panel2 (Light Mode) */
  --pin-border-rgb: 242,242,243; /* # NEU 2025-11-29 */
  --user-dot-rgb: 31,31,31; /* # NEU 2025-11-29 */
}
:root[data-theme="light"] .leaflet-control-attribution{
  background: transparent !important; /* # NEU 2025-11-29: transparent auch im Hell-Theme */
  color: rgba(255,255,255,0.88) !important; /* # NEU 2025-11-29: OSM/CARTO Schrift weiß */
  border: none !important;
  box-shadow: none !important;
  text-shadow: 0 1px 10px rgba(0,0,0,0.40); /* # NEU 2025-11-29: Schatten dunkel für Lesbarkeit auf heller Karte */
}
:root[data-theme="light"] .leaflet-control-attribution a{ color: rgba(255,255,255,0.92) !important; } /* # NEU 2025-11-29 */

:root[data-theme="light"] .pill,
:root[data-theme="light"] .toastInner{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  color: rgba(17,17,17,0.92);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

:root[data-theme="light"] .grabber{ background: rgba(2,6,23,0.16); }

:root[data-theme="light"] .logo{
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 24px rgba(0,0,0,0.10);
}
:root[data-theme="light"] #logoFallback{ color: rgba(17,17,17,0.94); }

:root[data-theme="light"] .menuTop{
  background: linear-gradient(to bottom, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

:root[data-theme="light"] .chip{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  color: rgba(17,17,17,0.78);
  box-shadow: none;
}
:root[data-theme="light"] .chip.active{
  background: rgba(0,0,0,0.12); /* # NEU 2025-11-29: dunkler/kontrastreicher */
  border-color: rgba(0,0,0,0.20); /* # NEU 2025-11-29 */
  color: rgba(17,17,17,0.92); /* # NEU 2025-11-29 */
  box-shadow: none;
}

:root[data-theme="light"] .sectionTitle{ color: rgba(17,17,17,0.60); }
:root[data-theme="light"] .sectionDivider{ background: rgba(0,0,0,0.08); }

:root[data-theme="light"] .item{
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
}
:root[data-theme="light"] .item.selected{
  border-color: rgba(239,68,68,1); /* # NEU 2025-11-29: rote Umrandung im Light Mode wieder sichtbar */
  border-width: 3px; /* # NEU 2025-11-29 */
}
:root[data-theme="light"] .itemName{ color: rgba(17,17,17,0.94); }
:root[data-theme="light"] .itemDesc{ color: rgba(17,17,17,0.60); }
:root[data-theme="light"] .priceNew.noDiscount{ color: rgba(17,17,17,0.86); }
:root[data-theme="light"] .priceOld{
  color: rgba(17,17,17,0.60);
  text-decoration-color: rgba(17,17,17,0.45);
}
:root[data-theme="light"] .empty{
  border: 1px dashed rgba(0,0,0,0.16);
  color: rgba(17,17,17,0.70);
  background: rgba(0,0,0,0.01);
}
:root[data-theme="light"] .impressumTitle{ color: rgba(17,17,17,0.58); }
:root[data-theme="light"] .impRow{ color: rgba(17,17,17,0.86); }
:root[data-theme="light"] .impMuted{ color: rgba(17,17,17,0.62); }

:root[data-theme="light"] .searchBtn{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  color: rgba(17,17,17,0.88);
}
:root[data-theme="light"] .searchField{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  color: rgba(17,17,17,0.64);
}
:root[data-theme="light"] .searchField input{ color: rgba(17,17,17,0.92); }
:root[data-theme="light"] .searchField input::placeholder{ color: rgba(17,17,17,0.46); }
:root[data-theme="light"] .clearBtn{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.04);
  color: rgba(17,17,17,0.80);
}

:root[data-theme="light"] .profileHeader{ border-bottom: 1px solid rgba(0,0,0,0.08); }
:root[data-theme="light"] .profileTitle{ color: rgba(17,17,17,0.94); }
:root[data-theme="light"] .profileSub{ color: rgba(17,17,17,0.62); }

:root[data-theme="light"] .card{
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}
:root[data-theme="light"] .row{ border-bottom: 1px solid rgba(0,0,0,0.08); }
:root[data-theme="light"] .label{ color: rgba(17,17,17,0.58); }
:root[data-theme="light"] .value{ color: rgba(17,17,17,0.92); }
:root[data-theme="light"] .value.muted{ color: rgba(17,17,17,0.66); }
:root[data-theme="light"] .liTitle{ color: rgba(17,17,17,0.92); }
:root[data-theme="light"] .liMeta{ color: rgba(17,17,17,0.58); }
:root[data-theme="light"] .listItem{ border-bottom: 1px solid rgba(0,0,0,0.08); }

:root[data-theme="light"] .settingsBtn{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  color: rgba(17,17,17,0.90);
}

:root[data-theme="light"] .profileHeroCard .label{
  color: rgba(17,17,17,0.65);
}
:root[data-theme="light"] .profileHeroName{
  color: rgba(17,17,17,0.92);
}
:root[data-theme="light"] .profileHeroDetail .value{
  color: rgba(17,17,17,0.78);
}
:root[data-theme="light"] .profileCardHint{
  color: rgba(17,17,17,0.58);
}

:root[data-theme="light"] .sheetHeader{ border-bottom: 1px solid rgba(0,0,0,0.08); }

:root[data-theme="light"] .routeBtn{ color: rgba(17,17,17,0.92); }

:root[data-theme="light"] .dockCard{
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.86);
}
:root[data-theme="light"] .dockInfo{
  background: rgba(255,255,255,0.86);
  border-top: 1px solid rgba(0,0,0,0.08);
}
:root[data-theme="light"] .dockName{ color: rgba(17,17,17,0.92); }
:root[data-theme="light"] .dockDistance{ color: rgba(17,17,17,0.70); }
:root[data-theme="light"] .dockMeta{ color: rgba(17,17,17,0.62); }
:root[data-theme="light"] .dockHint{ color: rgba(17,17,17,0.52); }
:root[data-theme="light"] .dockDot{ background: rgba(17,17,17,0.18); }
:root[data-theme="light"] .dockDot.active{ background: rgba(17,17,17,0.62); }

:root[data-theme="light"] .profileBtn{
  background: var(--panel2); /* # NEU 2025-11-29: korrekt -> hell bei Hell-Theme */
  border: 1px solid rgba(0,0,0,0.12); /* # NEU 2025-11-29 */
  color: rgba(17,17,17,0.92); /* # NEU 2025-11-29 */
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

:root[data-theme="light"] .themeSlider::-webkit-slider-runnable-track{
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}
:root[data-theme="light"] .themeSlider::-webkit-slider-thumb{
  background: rgba(17,17,17,0.92);
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: 0 12px 26px rgba(0,0,0,0.14);
}
:root[data-theme="light"] .themeSlider::-moz-range-track{
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.10);
}
:root[data-theme="light"] .themeSlider::-moz-range-thumb{
  background: rgba(17,17,17,0.92);
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: 0 12px 26px rgba(0,0,0,0.14);
}
/* # NEU 2025-12-01: AUTH SHEET (Login/Register) */
.authBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 119000;
}
.authBackdrop.show{
  opacity: 1;
  pointer-events: auto;
}
:root[data-theme="light"] .authBackdrop{
  background: rgba(0,0,0,0.32);
}

.authSheet{
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  transform: translateY(110%);
  background: var(--panel);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 122000;
  display: flex;
  flex-direction: column;
  will-change: transform;
  touch-action: none;
  color: var(--text);
}
.authSheet.anim{
  transition: transform 240ms cubic-bezier(.18,.9,.18,1), border-radius 200ms ease;
}
.authSheet[data-state="hidden"]{ transform: translateY(110%); }
.authSheet[data-state="open"]{ transform: translateY(calc(var(--auth-open-top) * 1vh)); }

.authHeader{
  position: relative;
  padding: 10px 16px 12px 16px;
  padding-top: calc(12px + var(--safe-top));
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background: var(--panel1);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
:root[data-theme="light"] .authHeader{ border-bottom: 1px solid rgba(0,0,0,0.08); }

.authTitle{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.98);
}
:root[data-theme="light"] .authTitle{ color: rgba(17,17,17,0.94); }

.authSub{
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.35;
}
:root[data-theme="light"] .authSub{ color: rgba(17,17,17,0.62); }


.authModeSwitch{
  position: relative;
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  user-select: none;
  -webkit-user-select: none;
}
:root[data-theme="light"] .authModeSwitch{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}
.authModeThumb{
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: calc(50% - 2px);
  left: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
  transform: translateX(0%);
  transition: transform 180ms cubic-bezier(.18,.9,.18,1);
}
:root[data-theme="light"] .authModeThumb{
  background: rgba(17,17,17,0.92);
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: 0 12px 26px rgba(0,0,0,0.14);
}
.authModeSwitch[data-mode="register"] .authModeThumb{ transform: translateX(100%); }

.authModeBtn{
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.80);
  font-weight: 950;
  letter-spacing: -0.01em;
  font-size: 13.5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
  z-index: 2;
  padding: 0 8px;
}
:root[data-theme="light"] .authModeBtn{ color: rgba(17,17,17,0.72); }
.authModeBtn.active{ color: rgba(17,17,17,0.92); }
:root[data-theme="light"] .authModeBtn.active{ color: rgba(255,255,255,0.96); }
.authModeBtn:active{ transform: translateY(1px); }

.authCard{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 12px 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}
:root[data-theme="light"] .authCard{
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.authLabel{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
}
:root[data-theme="light"] .authLabel{ color: rgba(17,17,17,0.58); }

.authInput{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.96);
  padding: 12px 12px;
  outline: none;
  font-size: 16px; /* iOS Zoom verhindern */
  font-weight: 760;
}
.authInput::placeholder{ color: rgba(255,255,255,0.55); }
:root[data-theme="light"] .authInput{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  color: rgba(17,17,17,0.92);
}
:root[data-theme="light"] .authInput::placeholder{ color: rgba(17,17,17,0.46); }

.authHint{
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.62);
  line-height: 1.35;
}
:root[data-theme="light"] .authHint{ color: rgba(17,17,17,0.54); }

.authActions{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.authSubmit{
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--pay-red);
  color: rgba(255,255,255,0.98);
  border-radius: 18px;
  padding: 14px 14px;
  font-weight: 950;
  letter-spacing: -0.01em;
  font-size: 15px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 18px 45px rgba(0,0,0,0.14);
}
.authSubmit:active{
  transform: translateY(1px);
  background: var(--pay-red-press);
}
.authSubmit:disabled{
  opacity: 0.55;
  cursor: not-allowed;
}

.authFoot{
  margin-top: 12px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.62);
  line-height: 1.35;
  text-align: center;
}
:root[data-theme="light"] .authFoot{ color: rgba(17,17,17,0.54); }

/* # NEU 2025-12-02: Auth Backdrop + Sheet (Login/Register) */
.authBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 121000;
}
.authBackdrop.show{
  opacity: 1;
  pointer-events: auto;
}
:root[data-theme="light"] .authBackdrop{
  background: rgba(0,0,0,0.32);
}

.authSheet{
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  transform: translateY(110%);
  background: var(--panel);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 122000;
  display: flex;
  flex-direction: column;
  will-change: transform;
  touch-action: none;
  color: var(--text);
}
.authSheet.anim{
  transition: transform 240ms cubic-bezier(.18,.9,.18,1), border-radius 200ms ease;
}
.authSheet[data-state="hidden"]{ transform: translateY(110%); }
.authSheet[data-state="open"]{ transform: translateY(calc(var(--auth-open-top) * 1vh)); }

.authHeader{
  position: relative;
  padding: 10px 16px 12px 16px;
  padding-top: calc(12px + var(--safe-top));
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background: var(--panel2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
:root[data-theme="light"] .authHeader{ border-bottom: 1px solid rgba(0,0,0,0.08); }

.authTitle{
  margin: 0;
  font-size: 18px;
  font-weight: 860;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.98);
}
:root[data-theme="light"] .authTitle{ color: rgba(17,17,17,0.94); }

.authSub{
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.35;
}
:root[data-theme="light"] .authSub{ color: rgba(17,17,17,0.64); }

.authContent{
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px;
  padding-bottom: calc(18px + var(--safe-bottom));
  background: var(--panel2);
  touch-action: pan-x pan-y;
  overscroll-behavior: none; /* # NEU 2025-12-05: Bounce (Overscroll) entfernen */
  display: grid;
}
:root[data-theme="light"] .authContent{ background: var(--panel2); }

.authModeSwitch{
  position: relative;
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  user-select: none;
  -webkit-user-select: none;
}
:root[data-theme="light"] .authModeSwitch{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}
.authModeThumb{
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: calc(50% - 2px);
  left: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
  transform: translateX(0%);
  transition: transform 180ms cubic-bezier(.18,.9,.18,1);
}
:root[data-theme="light"] .authModeThumb{
  background: rgba(17,17,17,0.92);
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: 0 12px 26px rgba(0,0,0,0.14);
}
.authModeSwitch[data-mode="register"] .authModeThumb{ transform: translateX(100%); }

.authModeBtn{
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.80);
  font-weight: 950;
  letter-spacing: -0.01em;
  font-size: 13.5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
  z-index: 2;
  padding: 0 8px;
}
:root[data-theme="light"] .authModeBtn{ color: rgba(17,17,17,0.72); }
.authModeBtn.active{ color: rgba(17,17,17,0.92); }
:root[data-theme="light"] .authModeBtn.active{ color: rgba(255,255,255,0.96); }

.authCard{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 12px 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
  margin-bottom: 22px;
}
:root[data-theme="light"] .authCard{
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.authLabel{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
}
:root[data-theme="light"] .authLabel{ color: rgba(17,17,17,0.60); }

.authInput{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.96);
  padding: 12px 12px;
  outline: none;
  font-size: 16px;
  font-weight: 760;
}
:root[data-theme="light"] .authInput{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  color: rgba(17,17,17,0.92);
}
.authInput::placeholder{ color: rgba(255,255,255,0.55); }
:root[data-theme="light"] .authInput::placeholder{ color: rgba(17,17,17,0.46); }

.authHint{
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.35;
}
:root[data-theme="light"] .authHint{ color: rgba(17,17,17,0.62); }

.authActions{
  margin-top: 12px;
  display: grid;
}
.authSubmit{
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--accent);
  color: rgba(255,255,255,0.98);
  border-radius: 18px;
  padding: 14px 14px;
  font-weight: 950;
  letter-spacing: -0.01em;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0,0,0,0.14);
}
.authSubmit:active{ transform: translateY(1px); }
.authSubmit:disabled{ opacity: 0.55; cursor: not-allowed; }

.authFoot{
  font-size: 12.5px;
  color: rgba(255,255,255,0.62);
  line-height: 1.35;
  text-align: center;
}
:root[data-theme="light"] .authFoot{ color: rgba(17,17,17,0.54); }
#authExtras{ /* # NEU 2025-12-02 */
  padding: 12px 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
:root[data-theme="light"] #authExtras{ /* # NEU 2025-12-02 */
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.authExtrasCard{ /* # NEU 2025-12-02 */
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 12px 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}
:root[data-theme="light"] .authExtrasCard{ /* # NEU 2025-12-02 */
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

/* # NEU 2025-12-02: Auth Mode-Switch Feinschliff (segSwitch wird wiederverwendet) */
.authSegSwitch{ /* # NEU 2025-12-02 */
  margin: 0; /* Abstand setzt JS vor Email */
}

/* # NEU 2025-12-02: Profilcard Layout (modern) */
.profileHeroCard{
  padding: 18px 18px 16px;
  border-radius: 18px;
}
.profileHeroCard .label{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 4px;
}
.profileHeroName{
  font-size: 20px;
  font-weight: 900;
  color: rgba(255,255,255,0.96);
  margin: 0;
  text-align: left;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profileHeroDetails{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.profileHeroDetail{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profileHeroDetail .value{
  text-align: left;
  font-size: 14px;
  color: rgba(255,255,255,0.88);
}
.profileStatGrid{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.profileOrdersCard{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profileCardHeader{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.profileCardHint{
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.68);
  white-space: nowrap;
}
.profileSettingsCard{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profileSettingsCard .row{
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.profileSettingsCard .settingsBtn + .settingsBtn{
  margin-top: 4px;
}

.benefitGrid{
  display: grid;
  gap: 8px;
}
.benefitGrid .card{
  height: 100%;
}
@media (min-width: 720px){
  .benefitGrid{
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* # NEU 2025-12-02: WOW Savings Card */
.buzzSavingsCard{
  --benefit-bg: linear-gradient(135deg, #0b1725 0%, #0c2920 48%, #0c2341 100%);
  --benefit-border: rgba(52,211,153,0.38);
  --benefit-text: #e9fff4;
  --benefit-muted: rgba(233,255,244,0.82);
  --benefit-pill-bg: rgba(8,18,32,0.55);
  --benefit-pill-text: #e9fff4;
  margin-top: 0;
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid var(--benefit-border);
  background: var(--benefit-bg);
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
:root[data-theme="light"] .buzzSavingsCard{
  --benefit-bg: linear-gradient(135deg, #ecfdf3 0%, #e8f3ff 46%, #f0fdf4 100%);
  --benefit-border: rgba(16,185,129,0.32);
  --benefit-text: #0b1f2b;
  --benefit-muted: rgba(11,31,43,0.70);
  --benefit-pill-bg: rgba(16,185,129,0.12);
  --benefit-pill-text: #0b1f2b;
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}
:root[data-theme="light"] .buzzSavingsCard .buzzSavingsLabel{
  color: rgba(11,31,43,0.78);
}
:root[data-theme="light"] .buzzSavingsCard .buzzSavingsAmount{
  text-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.buzzSavingsBackdrop{
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16,185,129,0.18), rgba(59,130,246,0.12));
  -webkit-backdrop-filter: blur(8px); /* # NEU 2025-12-09: iOS Safari Prefix */
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0.85;
  z-index: 0;
}

:root[data-theme="light"] .buzzSavingsBackdrop{
  background: linear-gradient(145deg, rgba(16,185,129,0.10), rgba(59,130,246,0.08));
  border: 1px solid rgba(16,185,129,0.16);
}

/* # NEU 2025-12-09: iOS Safari Fix - verhindert vertikale Streifen bei Blur in scrollbaren Sheets */
@supports (-webkit-overflow-scrolling: touch){
  .buzzSavingsBackdrop{
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}


.buzzSavingsContent{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.buzzSavingsTop{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.buzzSavingsChip{
  min-width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  font-size: 16px;
}
.buzzSavingsLabel{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--benefit-muted);
  font-weight: 800;
}
.buzzSavingsBadge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--benefit-pill-bg);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--benefit-pill-text);
  font-weight: 750;
  letter-spacing: .04em;
  font-size: 11px;
  text-transform: uppercase;
}
.buzzSavingsBadgeText{
  opacity: 0.92;
  color: var(--benefit-pill-text);
}
:root[data-theme="light"] .buzzSavingsBadge{
  border: 1px solid rgba(16,185,129,0.24);
  background: rgba(16,185,129,0.16);
}
:root[data-theme="light"] .buzzSavingsChip{
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.18);
  box-shadow: 0 8px 18px rgba(15,23,42,0.12);
}
.buzzSavingsDot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #a3e635);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.16);
  animation: buzzDotPulse 2.8s ease-in-out infinite;
}
:root[data-theme="light"] .buzzSavingsDot{
  box-shadow: 0 0 0 4px rgba(16,185,129,0.20);
}

.buzzSavingsAmountRow{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.buzzSavingsAmount{
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: -0.02em;
  color: var(--benefit-text);
  text-shadow: 0 10px 26px rgba(0,0,0,0.28);
}

.benefitSummaryCard{
  margin-top: 0;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(59,130,246,0.32);
  background: linear-gradient(135deg, #0f172a 0%, #0b1d2f 48%, #0c1f36 100%);
  box-shadow: 0 18px 46px rgba(0,0,0,0.18);
}
:root[data-theme="light"] .benefitSummaryCard{
  background: linear-gradient(135deg, #eaf1ff 0%, #edf6ff 55%, #e8f3fb 100%);
  border: 1px solid rgba(59,130,246,0.28);
  box-shadow: 0 16px 36px rgba(15,23,42,0.12);
}
.benefitMetaRow{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.benefitMeta{
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 12.5px;
  font-weight: 820;
  color: rgba(233,240,255,0.86);
  box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}
.benefitSummaryWindow{
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(233,240,255,0.70);
}
:root[data-theme="light"] .benefitMeta{
  background: rgba(59,130,246,0.10);
  border: 1px solid rgba(59,130,246,0.18);
  color: rgba(11,31,43,0.78);
  box-shadow: 0 10px 20px rgba(15,23,42,0.12);
}
:root[data-theme="light"] .benefitSummaryWindow{
  color: rgba(11,31,43,0.64);
}


    .buzzPickupBadge{
        position: fixed; /* # NEU 2025-12-03 */
        left: 8px;       /* # NEU 2025-12-03: wird per JS überschrieben */
        top: 8px;        /* # NEU 2025-12-03: wird per JS überschrieben */

        display:inline-flex;              /* # NEU 2025-12-03 */
        opacity: 0;                       /* # NEU 2025-12-03 */
        pointer-events: none;             /* # NEU 2025-12-03 */
        transition: opacity 160ms ease;   /* # NEU 2025-12-03 */

        align-items:center;
        gap: 8px;
        padding: 7px 10px;
        border-radius: 999px;
        font-weight: 950;
        letter-spacing: 0.08em;
        font-size: 12px;
        line-height: 1;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        background: rgba(0,0,0,0.06);
        border: 1px solid rgba(0,0,0,0.08);
        color: #111;
        box-shadow: 0 10px 22px rgba(0,0,0,0.10);
        white-space: nowrap;
        z-index: 9999; /* # NEU 2025-12-03 */
      }
      .buzzPickupBadge.show{
        opacity: 1;           /* # NEU 2025-12-03 */
        pointer-events: auto; /* # NEU 2025-12-03 */
      }
/* # NEU 2025-12-04: Profile-Fab: Platz für Pickup-Badge links */
.profileFab{
  gap: 10px;
  align-items: center;
}
/* # NEU 2025-12-04: Profile-Fab ohne Abstand, damit Buttons "verschmelzen" */
.profileFab{
  gap: 0;
  align-items: center;
}

/* # NEU 2025-12-04: Linker Teil (Code) übernimmt Profilbtn-Design via .fabBtn.profileBtn */
.pickupCodeBtn{
  width: auto;
  padding: 0 40px 0 18px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: -20px;
  position: relative;
  z-index: 1;
}

/* # NEU 2025-12-04: Text-Styling für Code */
.pickupCodeText{
  font-weight: 900;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
}
#pickupBadge[hidden]{
  display: none !important;
}


/* # NEU 2025-12-04: Rechter Teil (Profilbtn) mit flacher linker Kante, wenn Code sichtbar */
.profileBtn.profileBtnCombo{
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
/* # NEU 2025-12-04: hidden muss wirklich komplett ausblenden (gegen !important-Regeln) */
#pickupBadge[hidden] { 
  display: none !important; 
}
/* # NEU 2025-12-07: Pill unter Betrag + Text bleibt in einer Zeile */
.buzzSavingsPillRow{
  margin-top: 8px;
  display: flex;
  align-items: center;
}

/* Pill nicht umbrechen */
.buzzSavingsBadge,
.buzzSavingsBadgeText{
  white-space: nowrap;
}

/* Falls zu lang: sauber mit … kürzen */
.buzzSavingsBadge{
  max-width: 100%;
  overflow: hidden;
}
.buzzSavingsBadgeText{
  overflow: hidden;
  text-overflow: ellipsis;
}
