/* Bestellkasse / Station / Display — POS-first (lädt nach pleppo-taler.css) */
.pe-app.pe-bestellung {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
.pe-app.pe-bestellung > .pe-app-header,
.pe-app.pe-bestellung > .pe-layout-item[data-pe-module="header"] {
  flex: 0 0 auto;
}
.pe-app.pe-bestellung .pe-bestellung-layout {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 28%) !important;
  gap: clamp(0.4rem, 1vw, 0.75rem) !important;
  align-items: stretch;
  overflow: hidden;
  width: 100%;
}
@media (max-width: 1100px) and (min-width: 901px) {
  .pe-app.pe-bestellung .pe-bestellung-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 32%) !important;
  }
}
@media (max-width: 900px) {
  .pe-app.pe-bestellung .pe-bestellung-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: auto;
    height: auto;
  }
  .pe-station .pe-station-columns {
    grid-template-columns: 1fr;
  }
}

.pe-bestellung .pe-bestellung-layout > .pe-layout-item {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pe-bestellung .pe-bestellung-layout > .pe-layout-item > .pe-card {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(0.55rem, 1vh, 0.85rem) clamp(0.55rem, 1vw, 0.9rem);
}

.pe-order-reg-title {
  grid-column: 1 / -1;
  margin: clamp(0.35rem, 0.8vh, 0.55rem) 0 0.25rem;
  padding: 0.15rem 0;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--pe-text, #1a1a1a);
  opacity: 0.9;
  border-bottom: 1px solid var(--pe-line, rgba(0, 0, 0, 0.08));
}
.pe-order-reg-title:first-child {
  margin-top: 0;
}

.pe-bestellung .pe-order-product-grid,
.pe-bestellung #pe-order-product-grid {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  align-content: start;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(clamp(117px, 10.4vw, 162px), 1fr)) !important;
  gap: clamp(0.4rem, 0.8vw, 0.72rem) !important;
  padding: 0.1rem;
}

.pe-bestellung .pe-product-tile,
.pe-bestellung .pe-order-product {
  min-height: clamp(106px, 13.5vh, 142px);
  padding: clamp(0.5rem, 1vh, 0.81rem) clamp(0.36rem, 0.63vw, 0.63rem);
  gap: 0.3rem;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(28, 29, 35, 0.04);
}
.pe-bestellung .pe-product-emoji {
  font-size: clamp(1.53rem, 2.88vw, 2.2rem);
  line-height: 1;
}
.pe-bestellung .pe-product-name {
  font-size: clamp(0.83rem, 1.22vw, 1.01rem);
  font-weight: 650;
  text-align: center;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}
.pe-bestellung .pe-product-price {
  margin-top: auto;
  font-size: clamp(0.95rem, 1.53vw, 1.17rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pe-bestellung .pe-order-cart-heading,
.pe-bestellung .pe-bestellung-cart > h2 {
  flex: 0 0 auto;
  margin: 0 0 clamp(0.35rem, 0.8vh, 0.6rem);
}
.pe-bestellung .pe-order-cart-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  line-height: 1.15;
}
.pe-bestellung .pe-order-cart-heading-label {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pe-bestellung .pe-order-cart-total {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--pe-text, #1a1a1a);
}
.pe-bestellung #pe-order-cart-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  margin: 0 0 0.45rem;
}
.pe-bestellung .pe-order-cart-footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid var(--pe-line, rgba(0, 0, 0, 0.08));
}
.pe-bestellung .pe-order-cart-footer > .pe-hint {
  margin: 0;
  font-size: 0.8rem;
}
.pe-bestellung .pe-order-cart-footer .pe-scan-row {
  margin: 0;
}
.pe-bestellung .pe-order-cart-footer .pe-input,
.pe-bestellung .pe-order-cart-footer .pe-scan-target {
  min-height: 48px;
  font-size: 1rem;
}
.pe-bestellung #pe-order-checkout {
  width: 100%;
  min-height: clamp(50px, 6.8vh, 58px);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 700;
  margin: 0;
  border-radius: 12px;
}
.pe-bestellung #pe-order-clear-cart {
  align-self: flex-start;
}

.pe-cart-item-stand {
  display: block;
  color: var(--pe-muted, #666);
  font-size: .8rem;
}
.pe-cart-item-extras {
  display: block;
  color: var(--pe-muted, #555);
  font-size: .82rem;
  font-weight: 600;
  margin: 0.1rem 0 0.15rem;
  line-height: 1.25;
}
.pe-cart-item-hint {
  display: block;
  color: var(--pe-muted, #888);
  font-size: .75rem;
  font-weight: 500;
  margin: 0.05rem 0 0.1rem;
  font-style: italic;
}
.pe-cart-item-edit {
  cursor: pointer;
  border-radius: 8px;
  margin: -0.15rem;
  padding: 0.15rem;
  transition: background 0.12s ease;
}
.pe-cart-item-edit:hover,
.pe-cart-item-edit:focus {
  background: rgba(0, 0, 0, 0.04);
  outline: none;
}

.pe-order-stand-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.75rem;
}
.pe-order-stand-filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pe-muted, #666);
}
.pe-order-stand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pe-order-stand-chip {
  appearance: none;
  border: 1px solid var(--pe-line, rgba(0, 0, 0, 0.16));
  background: #fff;
  color: var(--pe-text, #1a1a1a);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.pe-order-stand-chip.is-active {
  border-color: var(--pe-accent, #b8960c);
  background: color-mix(in srgb, var(--pe-accent, #b8960c) 18%, #fff);
  color: var(--pe-text, #1a1a1a);
}
.pe-order-stand-chip:not(.is-active) {
  opacity: 0.55;
}

.pe-order-line-modal-inner {
  max-width: min(96vw, 720px);
  width: min(96vw, 720px);
}
.pe-order-line-ingredients {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
  text-align: left;
}
.pe-order-ing-opt {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--pe-line, rgba(0, 0, 0, 0.12));
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
}
.pe-order-ing-opt input {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}
.pe-order-line-note-label {
  display: block;
  text-align: left;
  margin-bottom: 1rem;
  font-weight: 600;
}
.pe-order-line-note-label .pe-input {
  margin-top: 0.35rem;
}

/* Kiosk: Bestellkasse */
html.pe-pos-kiosk-pref .pe-bestellung .pe-bestellung-layout,
body.pe-pos-kiosk .pe-bestellung .pe-bestellung-layout,
body.pe-kiosk .pe-bestellung .pe-bestellung-layout {
  padding: 0.25rem max(0.45rem, env(safe-area-inset-right, 0px))
           max(0.35rem, env(safe-area-inset-bottom, 0px))
           max(0.45rem, env(safe-area-inset-left, 0px));
  gap: clamp(4px, 0.55vh, 8px) !important;
}
html.pe-pos-kiosk-pref .pe-bestellung .pe-bestellung-products,
html.pe-pos-kiosk-pref .pe-bestellung .pe-bestellung-cart,
body.pe-pos-kiosk .pe-bestellung .pe-bestellung-products,
body.pe-pos-kiosk .pe-bestellung .pe-bestellung-cart,
body.pe-kiosk .pe-bestellung .pe-bestellung-products,
body.pe-kiosk .pe-bestellung .pe-bestellung-cart {
  padding: 0.5rem 0.55rem;
}
html.pe-pos-kiosk-pref .pe-bestellung .pe-order-product-grid,
body.pe-pos-kiosk .pe-bestellung .pe-order-product-grid,
body.pe-kiosk .pe-bestellung .pe-order-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(clamp(117px, 10.4vw, 162px), 1fr)) !important;
}
html.pe-pos-kiosk-pref .pe-bestellung .pe-order-scan-hint,
body.pe-pos-kiosk .pe-bestellung .pe-order-scan-hint,
body.pe-kiosk .pe-bestellung .pe-order-scan-hint {
  display: none;
}

@media (max-width: 768px) {
  .pe-bestellung .pe-bestellung-layout > .pe-layout-item[data-pe-module="products"] {
    order: 1;
    flex: 1 1 auto;
    height: auto;
    max-height: none;
  }
  .pe-bestellung .pe-bestellung-layout > .pe-layout-item[data-pe-module="cart"] {
    order: 2;
    flex: 0 0 auto;
    height: auto;
    max-height: min(46vh, 380px);
  }
  .pe-bestellung .pe-product-tile,
  .pe-bestellung .pe-order-product {
    min-height: 86px;
  }
  .pe-bestellung .pe-order-cart-total {
    font-size: 1.45rem;
  }
}

.pe-station-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  padding: 0.4rem 0.55rem !important;
  margin: 0;
}
.pe-station-stand-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.pe-station-stand-label select {
  flex: 1 1 auto;
  min-width: 8rem;
  max-width: 18rem;
  min-height: 42px;
  margin: 0;
}
.pe-station-display-btn {
  flex: 0 0 auto;
  min-height: 42px;
}
.pe-station-scan {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  max-width: none;
  width: 100%;
}
.pe-station-scan-label {
  flex: 0 0 auto;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  color: var(--pe-muted);
}
.pe-station-refund-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.pe-station-scan .pe-input,
.pe-station-scan .pe-scan-target {
  flex: 1 1 auto;
  min-height: 46px;
  font-size: 1rem;
}
.pe-station-scan-hint {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  line-height: 1.3;
  opacity: 0.8;
}

.pe-station-refund {
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
}
.pe-station-refund-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--pe-text, #1a1a1a);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  min-height: 44px;
  text-align: left;
}
.pe-station-refund-toggle:hover,
.pe-station-refund-toggle:focus-visible {
  background: var(--pe-bg, rgba(0, 0, 0, 0.03));
  outline: none;
}
.pe-station-refund-toggle.is-open .pe-station-refund-toggle-chevron {
  transform: rotate(180deg);
}
.pe-station-refund-toggle-chevron {
  display: inline-block;
  transition: transform 0.15s ease;
  opacity: 0.7;
}
.pe-station-refund-body {
  padding: 0 0.65rem 0.55rem;
  border-top: 1px solid var(--pe-line, rgba(0, 0, 0, 0.08));
}
.pe-station-refund-hint {
  margin: 0.35rem 0 0.25rem;
  font-size: 0.8rem;
}
.pe-station-refund-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0;
}
.pe-station-refund-grid .pe-product-tile {
  min-width: 6.5rem;
  flex: 1 1 6.5rem;
  max-width: 9rem;
  min-height: 88px;
  padding: 0.45rem 0.35rem;
}
.pe-station-refund-list {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0;
}
.pe-station-refund-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--pe-line, #e8e8e8);
}
.pe-station-refund-total { margin: 0 0 0.4rem; }
.pe-station-refund-scan-row { margin-top: 0.25rem; }

.pe-station-columns,
.pe-station-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.4rem, 0.8vw, 0.65rem);
  min-height: 0;
}
.pe-station-col {
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.45rem 0.5rem !important;
  border-top: 3px solid var(--pe-border, var(--pe-line));
}
.pe-station-col[data-col="new"] {
  border-top-color: var(--pe-primary);
}
.pe-station-col[data-col="in_progress"] {
  border-top-color: var(--pe-accent);
}
.pe-station-col[data-col="ready"] {
  border-top-color: var(--pe-success-text);
}
.pe-station-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex: 0 0 auto;
  margin: 0 0 0.4rem;
  padding: 0.15rem 0.1rem 0.4rem;
  border-bottom: 2px solid var(--pe-line, rgba(0, 0, 0, 0.1));
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 750;
  line-height: 1.2;
}
.pe-station-col-title {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pe-station-col-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--pe-surface-soft, var(--pe-surface-2, #faf9f6));
  color: var(--pe-text);
  border: 1px solid var(--pe-border, var(--pe-line));
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}
.pe-station-col[data-col="new"] .pe-station-col-count {
  border-color: var(--pe-primary);
  color: var(--pe-primary);
}
.pe-station-col[data-col="in_progress"] .pe-station-col-count {
  background: color-mix(in srgb, var(--pe-accent) 18%, transparent);
  border-color: var(--pe-accent);
  color: var(--pe-accent-ink, var(--pe-text));
}
.pe-station-col[data-col="ready"] .pe-station-col-count {
  background: color-mix(in srgb, var(--pe-success-text) 14%, transparent);
  border-color: var(--pe-success-text);
  color: var(--pe-success-text);
}

.pe-station-list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.pe-station-empty {
  list-style: none;
  margin: 0.75rem 0.25rem;
  padding: 0.85rem 0.5rem;
  text-align: center;
  font-size: 0.88rem;
  opacity: 0.55;
  border: 1px dashed var(--pe-line, rgba(0, 0, 0, 0.15));
  border-radius: 10px;
  background: transparent;
}

.pe-station-item,
.pe-station-order {
  border: 1px solid var(--pe-border, var(--pe-line));
  border-radius: var(--pe-radius-md, 10px);
  padding: 0.75rem 0.8rem;
  margin-bottom: 0.55rem;
  background: var(--pe-surface);
  color: var(--pe-text);
  box-shadow: none;
}
.pe-station-item.pe-station-new {
  border-color: var(--pe-accent);
  box-shadow: inset 3px 0 0 var(--pe-accent);
  animation: pe-station-new-in 0.55s ease;
}
@keyframes pe-station-new-in {
  from { transform: translateY(-4px); opacity: 0.55; }
  to { transform: none; opacity: 1; }
}
.pe-station-item.pe-station-warn {
  border-color: var(--pe-accent);
  background: color-mix(in srgb, var(--pe-accent) 10%, var(--pe-surface));
  box-shadow: inset 3px 0 0 var(--pe-accent);
}
.pe-station-item.pe-station-alert {
  border-color: var(--pe-error-text);
  background: var(--pe-error-bg);
  box-shadow: inset 3px 0 0 var(--pe-danger, var(--pe-error-text));
  animation: pe-station-pulse 1.2s ease infinite;
}
@keyframes pe-station-pulse {
  50% { transform: scale(1.01); }
}
.pe-station-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.pe-station-num {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.pe-station-lines {
  list-style: none;
  margin: 0.15rem 0 0.45rem;
  padding: 0;
  text-align: left;
}
.pe-station-lines li {
  padding: 0.28rem 0;
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  font-weight: 600;
  line-height: 1.25;
  border-bottom: 1px solid var(--pe-line, rgba(0, 0, 0, 0.06));
}
.pe-station-lines li:last-child { border-bottom: none; }
.pe-station-line-qty {
  font-weight: 800;
  margin-right: 0.2rem;
  color: var(--pe-text, #1a1a1a);
}
.pe-station-line-extras {
  margin-top: 0.15rem;
  font-size: 0.88em;
  font-weight: 600;
  color: #8a3b00;
  line-height: 1.3;
}
.pe-station-timer {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.7;
  margin: 0 0 0.45rem;
}
.pe-station-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.15rem;
}
.pe-station-order-btn {
  width: 100%;
  min-height: clamp(46px, 5.5vh, 52px);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  font-weight: 750;
  border-radius: 11px;
}
.pe-station-pickup-hint {
  font-size: 0.78rem;
  text-align: center;
  opacity: 0.65;
}
.pe-station-flash {
  outline: 3px solid var(--pe-accent, #b8960c);
  animation: pe-station-flash-anim 0.9s ease-in-out 2;
}
@keyframes pe-station-flash-anim {
  0%, 100% { outline-color: var(--pe-accent, #b8960c); }
  50% { outline-color: transparent; }
}

@media (max-width: 900px) {
  .pe-station-columns,
  .pe-station-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pe-station-scan-hint { display: none; }
  .pe-station-num {
    font-size: 1.55rem;
  }
  .pe-station-col-head {
    font-size: 0.88rem;
  }
}

/* Kundendisplay-Styles: assets/css/pleppo-display.css */
.pe-display-ads-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.pe-display-ads-preview img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #eee;
}
