/* Wine app shell (wine.mona-john.de): the tab bar, the badge on Bestellen, notifications with contrast and a wider
   page for the price list. The shared look is styles.css, a verbatim copy of the mitarbeiter app – keep it unchanged. */

.tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tabbar__link { position: relative; }
.tabbar__badge {
  position: absolute;
  top: 0.25rem;
  left: calc(50% + 0.625rem);
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  border-radius: 999px;
  background: var(--cp-accent);
  color: var(--cp-accent-fg);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}
.tabbar__badge[hidden] { display: none; }

@media (min-width: 48rem) {
  .tabbar { grid-auto-columns: auto; }
  .tabbar__badge { position: static; margin-left: 0.125rem; }
}

/* Preise and Bestand: two columns of cards on wide screens. */
@media (min-width: 60rem) {
  body[data-route="preise"] .main, body[data-route="bestand"] .main { max-width: 76rem; }
}

/* Notifications with contrast (all tabs): confirmations in the house colour, problems in signal red. */
:root {
  --note-ok-bg: #7a1f2b; --note-ok-text: #ffffff; --note-bad-bg: #b3261e; --note-bad-text: #ffffff;
}
html[data-theme="dark"] { --note-ok-bg: var(--cp-accent); --note-ok-text: var(--cp-accent-fg); }
.toast { border: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); font-weight: 600; }
.toast--info { background: var(--note-ok-bg); color: var(--note-ok-text); }
.toast--error { background: var(--note-bad-bg); color: var(--note-bad-text); }
.toast--info .toast__icon, .toast--error .toast__icon { color: inherit; }

/* The venue's name (wix-restaurants-mcp/wine-venue.mjs, 7 Nov 2026): without one the server leaves its place in the app bar
   and the menu empty - no empty line then, and "Wein" alone is the menu's title. screens/betrieb.js changes both in place. */
.appbar__place:empty, .appmenu__brand strong:empty { display: none; }
.appmenu__brand strong:empty + span { color: inherit; font-size: inherit; font-weight: 700; }

/* ---------- iPhone / touch screens (as in the Service app) ----------
   styles.css (kept as the mitarbeiter app has it) tints buttons on :hover; on a touch screen that tint stays on a
   button after a tap. Touch screens get the tint only while the finger is down. */
@media (hover: none) {
  .btn--primary:hover:not(:disabled) { background: var(--brand-strong); }
  .btn--secondary:hover:not(:disabled) { background: var(--surface); }
  .btn--ghost:hover:not(:disabled) { background: transparent; }
}
.btn--primary:active:not(:disabled) { background: var(--brand-hover); }
.btn--secondary:active:not(:disabled), .btn--ghost:active:not(:disabled) { background: var(--accent-soft); }
/* A long press on a button, row or tab neither selects its text nor opens the iOS callout. */
.btn, .tabbar__link, .chip, .item-row { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tabbar__link, .item-row { touch-action: manipulation; }
/* Landscape: clear of the Dynamic Island and the rounded corners. */
.main { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
.tabbar { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

/* Status bar: opaque (status-bar-style "default"); the strip rules are gone, appmenu.css switches .appbar::before off. */

/* Tabs on a phone: slightly smaller text; the long labels break at their soft hyphen (index.html: Bestel-len,
   Liefe-ranten) instead of being cut off. */
.tabbar__text { -webkit-hyphens: manual; hyphens: manual; }
@media (max-width: 47.99rem) {
  .tabbar__link { font-size: 0.75rem; padding: 0 0.0625rem; }
  .tabbar__link[aria-current="page"] .tabbar__icon { width: 3rem; padding: 0.125rem 0.75rem; }
}
