/* Aura – Bestellen am Tisch (guest phone). Everything is scoped under .ao,
   except the tiny feedback state on [data-add] buttons owned by the page. */
.ao, .ao *, .ao *::before, .ao *::after { box-sizing: border-box; }
.ao {
  --ao-paper: #F6F0E6; --ao-card: #FCF9F3; --ao-ink: #2A1F17; --ao-muted: #6E6257;
  --ao-green: #1C3B33; --ao-gold: #A9834F; --ao-sage: #9BAA95; --ao-terra: #B4533A;
  --ao-hair: rgba(42, 31, 23, .12); --ao-hair-gold: rgba(169, 131, 79, .35);
  --ao-serif: "Zodiak", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ao-sans: "Switzer", "Segoe UI", system-ui, sans-serif;
  --ao-ease: cubic-bezier(.22, .8, .3, 1);
  font-family: var(--ao-sans); font-size: 15px; line-height: 1.45; color: var(--ao-ink);
  -webkit-font-smoothing: antialiased; text-align: left;
}
.ao button, .ao textarea, .ao a { font-family: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.ao button { cursor: pointer; }
.ao p, .ao h2, .ao h3, .ao ul, .ao ol { margin: 0; padding: 0; }
.ao ul, .ao ol { list-style: none; }
.ao [hidden] { display: none !important; }
.ao :focus-visible { outline: 2px solid var(--ao-gold); outline-offset: 2px; }
.ao [tabindex="-1"]:focus, .ao [tabindex="-1"]:focus-visible { outline: none; }
.ao-ic { display: block; flex: none; }
.ao-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.ao-lock, html.ao-lock body { overflow: hidden; }

/* feedback on the page's own add buttons */
[data-add].ao-added { animation: ao-pop .26s ease-out; }
[data-add].ao-added > .ao-ic { margin: auto; }
@keyframes ao-pop { 0% { transform: scale(1); } 40% { transform: scale(.88); } 100% { transform: scale(1); } }

/* ---------- type atoms ---------- */
.ao-label { font: 600 11px/1.2 var(--ao-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ao-gold); }
.ao-title { font: 400 26px/1.15 var(--ao-serif); margin-top: 6px; letter-spacing: -.005em; }
.ao-title--xl { font-size: 36px; }
.ao-muted { color: var(--ao-muted); font-size: 14px; }
.ao-row { display: flex; align-items: baseline; gap: 8px; }
.ao-name { font: 400 18px/1.25 var(--ao-serif); min-width: 0; }
.ao-name small { font: 400 13px/1.3 var(--ao-sans); color: var(--ao-muted); }
.ao-lead { flex: 1 1 16px; min-width: 16px; border-bottom: 1px dotted rgba(42, 31, 23, .38); transform: translateY(-4px); }
.ao-price { font: 400 17px/1.2 var(--ao-serif); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- buttons ---------- */
.ao-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px;
  padding: 12px 18px; border: 1px solid var(--ao-green); border-radius: 8px; background: var(--ao-green);
  color: #F6F0E6; font: 500 15px/1.2 var(--ao-sans); text-decoration: none;
  transition: transform .18s ease-out, opacity .18s ease-out;
}
.ao .ao-btn { color: #F6F0E6; }
.ao-btn:active { transform: scale(.985); }
.ao-btn[disabled] { opacity: .5; cursor: default; }
.ao .ao-btn--line { background: transparent; color: var(--ao-ink); border-color: rgba(42, 31, 23, .5); }
.ao-btn--sm { min-height: 44px; padding: 8px 10px; font-size: 14px; gap: 8px; }
.ao-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ao-icon-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -8px -10px 0 0; border: 0; border-radius: 8px; background: none; }
.ao-link { min-height: 44px; padding: 0; border: 0; background: none; font: 500 14px var(--ao-sans); text-decoration: underline; text-decoration-color: var(--ao-hair-gold); text-underline-offset: 4px; }
.ao-spin { animation: ao-spin .9s linear infinite; }
@keyframes ao-spin { to { transform: rotate(360deg); } }

/* ---------- dock: order pill + cart bar ---------- */
.ao-dock {
  position: fixed; left: 0; right: 0; z-index: 900; margin: 0 auto; max-width: 520px; padding: 0 16px;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 10px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none;
}
.ao-dock > * { pointer-events: auto; animation: ao-rise .24s var(--ao-ease) both; }
@keyframes ao-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ao-bar {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 16px;
  border: 0; border-radius: 8px; background: var(--ao-green); font: 500 15px/1.2 var(--ao-sans); text-align: left;
  box-shadow: 0 10px 26px -14px rgba(28, 59, 51, .7); transition: transform .18s ease-out;
}
.ao .ao-bar { color: #F6F0E6; }
.ao-bar:active { transform: scale(.985); }
.ao-bar-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ao-bar-m { white-space: nowrap; font-size: 14px; color: rgba(246, 240, 230, .82); }
.ao-bar-m b { font: 400 16px var(--ao-serif); font-variant-numeric: tabular-nums; color: #F6F0E6; }
.ao-pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 44px; padding: 8px 12px 8px 14px;
  border: 1px solid var(--ao-hair-gold); border-radius: 8px; background: var(--ao-card);
  font: 400 14px/1.2 var(--ao-sans); box-shadow: 0 8px 22px -16px rgba(42, 31, 23, .6);
}
.ao-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ao-pill b { font-weight: 600; color: var(--ao-green); }
.ao-pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ao-gold); animation: ao-blink 1.6s ease-in-out infinite; }
.ao-pill.is-done .ao-pulse { background: var(--ao-green); animation: none; }
@keyframes ao-blink { 50% { opacity: .3; } }
.ao-again { display: inline-flex; align-items: center; border: 1px solid var(--ao-hair); border-radius: 8px; background: var(--ao-card); }
.ao-again button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; background: none; font: 500 14px var(--ao-sans); }
.ao-again button + button { padding: 0 12px; border-left: 1px solid var(--ao-hair); color: var(--ao-muted); }

/* ---------- toast ---------- */
.ao-toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 14px); z-index: 2600;
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px;
  border-radius: 8px; background: var(--ao-ink); color: #F6F0E6; font: 400 14px/1.3 var(--ao-sans);
  opacity: 0; transform: translate(-50%, -8px); pointer-events: none;
  transition: opacity .2s ease-out, transform .2s ease-out;
}
.ao-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ao-toast .ao-ic { color: #C9A772; }
.ao-toast.is-warn .ao-ic { color: #E3A592; }

/* ---------- sheets ---------- */
.ao-layer {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: center;
  visibility: hidden; pointer-events: none; transition: visibility 0s linear .26s;
}
.ao-layer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.ao-scrim { position: absolute; inset: 0; background: rgba(42, 31, 23, .44); opacity: 0; transition: opacity .22s ease-out; }
.ao-layer.is-open .ao-scrim { opacity: 1; }
.ao-sheet {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 520px;
  max-height: 88vh; max-height: 88dvh; background: var(--ao-card); border-radius: 10px 10px 0 0;
  box-shadow: 0 -14px 40px -22px rgba(42, 31, 23, .5); outline: none;
  opacity: 0; transform: translateY(28px); transition: transform .24s var(--ao-ease), opacity .2s ease-out;
}
.ao-layer.is-open .ao-sheet { opacity: 1; transform: none; }
.ao-layer.is-full .ao-sheet { height: 100vh; height: 100dvh; max-height: none; border-radius: 0; background: var(--ao-paper); box-shadow: none; }
.ao-handle { flex: none; display: grid; place-items: center; height: 26px; touch-action: none; cursor: grab; }
.ao-handle::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: rgba(42, 31, 23, .2); }
.ao-inner { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ao-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 6px 20px 14px; }
.ao-layer.is-full .ao-head { padding-top: calc(env(safe-area-inset-top, 0px) + 18px); }
.ao-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 20px 22px; }
.ao-body:last-child { padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
.ao-foot { flex: none; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ao-hair); background: var(--ao-card); }
.ao-layer.is-full .ao-foot { background: var(--ao-paper); }
.ao-sec { margin-top: 26px; }
.ao-sec > .ao-label { display: block; margin-bottom: 12px; }
.ao-demo { margin-top: 10px; font-size: 12px; color: var(--ao-muted); }

/* ---------- cart ---------- */
.ao-tablerow { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--ao-hair-gold); }
.ao-chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 12px; margin-bottom: 10px;
  border: 1px solid rgba(28, 59, 51, .22); border-radius: 6px; background: rgba(155, 170, 149, .24);
  font: 500 14px var(--ao-sans);
}
.ao .ao-chip { color: var(--ao-green); }
.ao-tablerow .ao-muted { margin-bottom: 10px; font-size: 13px; }
.ao-line { padding: 14px 0; border-bottom: 1px solid var(--ao-hair); }
.ao-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--ao-muted); font-size: 13px; }
.ao-step { display: inline-flex; align-items: center; border: 1px solid rgba(42, 31, 23, .22); border-radius: 6px; }
.ao-step button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; }
.ao-step output { min-width: 26px; text-align: center; font: 500 15px var(--ao-sans); font-variant-numeric: tabular-nums; color: var(--ao-ink); }
#cartUpsell:not(:empty) { padding: 16px 0 2px; }
.ao-field { margin-top: 20px; }
.ao-field label { display: block; margin-bottom: 8px; }
.ao-field textarea {
  display: block; width: 100%; min-height: 64px; padding: 12px; resize: vertical; border: 1px solid rgba(42, 31, 23, .22);
  border-radius: 6px; background: var(--ao-paper); font: 400 16px/1.4 var(--ao-sans); color: var(--ao-ink);
}
.ao-field textarea::placeholder { color: #8E8378; }
.ao-sum { margin-top: 20px; }
.ao-sum-l { font: 500 15px var(--ao-sans); }
.ao-sum .ao-price { font-size: 22px; }
.ao-empty { padding: 26px 0 8px; }
.ao-empty-t { font: 401 22px/1.2 var(--ao-serif); font-style: italic; margin-bottom: 6px; }
.ao-empty .ao-btn { margin-top: 18px; }

/* ---------- option lists (variants, table numbers, payment) ---------- */
.ao-opt { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 56px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--ao-hair); background: none; text-align: left; }
.ao-opt-n { font: 400 18px/1.2 var(--ao-serif); }
.ao-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 4px; }
.ao-grid button { height: 46px; border: 1px solid rgba(42, 31, 23, .2); border-radius: 6px; background: none; font: 400 17px var(--ao-serif); font-variant-numeric: tabular-nums; }
.ao .ao-grid button[aria-pressed="true"] { background: var(--ao-green); border-color: var(--ao-green); color: #F6F0E6; }
.ao-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.ao-seg button { min-height: 44px; padding: 0 14px; border: 1px solid rgba(42, 31, 23, .22); border-radius: 6px; background: none; font: 500 14px var(--ao-sans); transition: background-color .18s ease-out; }
.ao .ao-seg button[aria-pressed="true"] { background: var(--ao-green); border-color: var(--ao-green); color: #F6F0E6; }
.ao-method { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--ao-hair); background: none; text-align: left; font: 500 15px var(--ao-sans); }
.ao-method small { display: block; font: 400 13px var(--ao-sans); color: var(--ao-muted); }
.ao-method > span { flex: 1; }
.ao-radio { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(42, 31, 23, .35); border-radius: 50%; color: transparent; }
.ao-method[aria-checked="true"] .ao-radio { background: var(--ao-green); border-color: var(--ao-green); color: #F6F0E6; }

/* ---------- tracker ---------- */
.ao-min { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: -10px 0 8px -4px; padding: 0 8px 0 4px; border: 0; background: none; font: 500 14px var(--ao-sans); color: var(--ao-muted); }
.ao .ao-min { color: var(--ao-muted); }
.ao-ordno { font: 400 46px/1 var(--ao-serif); letter-spacing: -.01em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.ao-eta { display: flex; align-items: center; gap: 14px; margin: 20px 0 24px; padding: 14px 0; border-top: 1px solid var(--ao-hair-gold); border-bottom: 1px solid var(--ao-hair-gold); }
.ao-eta .ao-ic { color: var(--ao-gold); }
.ao-eta strong { display: block; font: 400 22px/1.15 var(--ao-serif); }
.ao-tl li { position: relative; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 14px; padding-bottom: 20px; }
.ao-tl li:last-child { padding-bottom: 0; }
.ao-tl li::before { content: ""; position: absolute; left: 13.5px; top: 28px; bottom: 0; width: 1px; background: rgba(42, 31, 23, .16); }
.ao-tl li:last-child::before { display: none; }
.ao-tl li.is-done::before { background: var(--ao-green); }
.ao-dot { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(42, 31, 23, .22); border-radius: 50%; background: var(--ao-paper); color: transparent; }
.ao-tl li:not(.is-done) .ao-dot .ao-ic { display: none; }
.ao-tl li.is-done .ao-dot { background: var(--ao-green); border-color: var(--ao-green); color: #F6F0E6; }
.ao-tl li.is-now .ao-dot { border-color: var(--ao-gold); }
.ao-tl li.is-now .ao-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ao-gold); animation: ao-blink 1.6s ease-in-out infinite; }
.ao-tl-t { font: 400 15px/1.3 var(--ao-sans); color: var(--ao-muted); }
.ao-tl li.is-done .ao-tl-t { color: var(--ao-ink); }
.ao-tl li.is-now .ao-tl-t { font: 400 21px/1.2 var(--ao-serif); color: var(--ao-ink); }
.ao-tl-time { font: 400 13px var(--ao-sans); font-variant-numeric: tabular-nums; color: var(--ao-muted); }
.ao-st { padding: 14px 0; border-top: 1px solid var(--ao-hair); }
.ao-st:last-of-type { border-bottom: 1px solid var(--ao-hair); }
.ao-st-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ao-st-h .ao-label { flex: 1; }
.ao-st-h .ao-ic { color: var(--ao-green); }
.ao-st-s { font-size: 13px; color: var(--ao-muted); }
.ao-st li { display: flex; gap: 10px; padding: 3px 0 3px 32px; font: 400 16px/1.3 var(--ao-serif); }
.ao-st li i { flex: none; min-width: 26px; font: 400 14px/1.5 var(--ao-sans); font-style: normal; font-variant-numeric: tabular-nums; color: var(--ao-muted); }
.ao-note { margin-top: 14px; padding: 12px 14px; border-left: 1px solid var(--ao-gold); font: 401 16px/1.4 var(--ao-serif); font-style: italic; }

/* ---------- bill + success ---------- */
.ao-bill li { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; }
.ao-bill .ao-name { font-size: 16px; }
.ao-bill .ao-price { font-size: 16px; }
.ao-pick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--ao-hair); background: none; text-align: left; }
.ao-pick .ao-row { flex: 1; min-width: 0; }
.ao-check { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(42, 31, 23, .35); border-radius: 4px; color: transparent; }
.ao-pick[aria-pressed="true"] .ao-check { background: var(--ao-green); border-color: var(--ao-green); color: #F6F0E6; }
.ao-pick[aria-pressed="false"] .ao-name, .ao-pick[aria-pressed="false"] .ao-price { color: var(--ao-muted); }
.ao-totals { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--ao-hair-gold); }
.ao-totals .ao-row { padding: 4px 0; font-size: 15px; }
.ao-totals .ao-row.is-due { padding-top: 10px; }
.ao-totals .is-due span:first-child { font: 500 15px var(--ao-sans); }
.ao-totals .is-due .ao-price { font-size: 30px; }
.ao-thanks { padding-top: 26px; }
.ao-seal { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border: 1px solid var(--ao-gold); border-radius: 50%; color: var(--ao-green); animation: ao-rise .26s var(--ao-ease) both; }
.ao-q { font: 400 20px/1.25 var(--ao-serif); margin-bottom: 8px; }
.ao-stars { display: flex; gap: 2px; margin-left: -8px; }
.ao-stars button { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 0; background: none; color: rgba(42, 31, 23, .4); transition: transform .18s ease-out; }
.ao-stars button:active { transform: scale(.9); }
.ao-stars button.is-on { color: var(--ao-gold); }
.ao-stars button.is-on::before { content: ""; position: absolute; inset: 11px; background: var(--ao-gold); opacity: .5; clip-path: polygon(50% 4%, 63% 36%, 97% 39%, 71% 62%, 79% 96%, 50% 78%, 21% 96%, 29% 62%, 3% 39%, 37% 36%); }
.ao-rate-out { margin-top: 14px; }
.ao-rate-out .ao-field { margin-top: 0; }
.ao-rate-out .ao-btn { margin-top: 10px; }
.ao-card { margin-top: 28px; padding: 18px 16px; border: 1px solid var(--ao-hair-gold); border-radius: 8px; background: var(--ao-paper); }
.ao-card-t { font: 400 22px/1.2 var(--ao-serif); margin: 8px 0 2px; }
.ao-stamps { display: grid; grid-template-columns: repeat(5, 42px); justify-content: space-between; gap: 12px 0; margin-top: 16px; }
.ao-stamp { display: grid; place-items: center; aspect-ratio: 1; border: 1px dashed rgba(169, 131, 79, .6); border-radius: 50%; color: transparent; font: 400 14px var(--ao-serif); }
.ao-stamp.is-on { border: 1px solid var(--ao-green); background: var(--ao-green); color: #F6F0E6; }
.ao-stamp.is-new { animation: ao-stamp .26s var(--ao-ease) .55s both; }
.ao-stamp:last-child:not(.is-on) { color: var(--ao-gold); }
@keyframes ao-stamp { from { opacity: 0; transform: scale(1.5) rotate(-16deg); } to { opacity: 1; transform: none; } }
.ao-foot > .ao-btn + .ao-btn { margin-top: 8px; }

@media (min-width: 560px) {
  .ao-layer:not(.is-full) { align-items: center; }
  .ao-layer:not(.is-full) .ao-sheet { border-radius: 10px; }
  .ao-layer.is-full .ao-sheet { max-width: 520px; }
}
@media (max-width: 374px) {
  .ao-body, .ao-head { padding-left: 16px; padding-right: 16px; }
  .ao-foot { padding-left: 16px; padding-right: 16px; }
  .ao-btn--sm { font-size: 13px; }
  .ao-ordno { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .ao *, .ao *::before, .ao *::after, [data-add].ao-added { animation: none !important; transition: none !important; }
}

/* ---------- integration with app shell, concierge and reels ---------- */
#app { contain: layout; } /* fixed layers (dock, sheets, toast) stay inside the phone frame on desktop */
#app:has(.aq-sheet.is-open) .ao-dock,
#app:has(.sheet.is-open) .ao-dock { visibility: hidden; pointer-events: none; }
#app:has(.ao-dock > :not([hidden])) .view--videos .reel__info { padding-bottom: 96px; }
#app:has(.ao-dock > :not([hidden]) ~ :not([hidden])) .view--videos .reel__info { padding-bottom: 128px; }
#app:has(.ao-dock > :not([hidden]) ~ :not([hidden])) .view--videos .reel__rail { bottom: 194px; }
