/* Gemeinsame Grundlage: Farben, Schrift, Bausteine.
   Basilikumgrün als Marke (bewusst kein Lieferando-Orange), Zitronengelb nur für Geldbeträge, die beim Wirt bleiben. */
:root {
  --ink: #12201a;
  --ink-2: #33433b;
  --muted: #5f6e66;
  --faint: #8b9891;
  --line: #dce3de;
  --bg: #f2f5f1;
  --paper: #ffffff;
  --brand: #0f4d3a;
  --brand-2: #176b51;
  --brand-tint: #e3efe8;
  --lemon: #f3d34a;
  --lemon-tint: #fbf3c8;
  --danger: #c8412b;
  --danger-tint: #fbe7e3;
  --ok: #18865a;
  --warn: #b7791f;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(18, 32, 26, .06), 0 8px 24px rgba(18, 32, 26, .07);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--lemon); outline-offset: 2px; border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 11px 18px; border-radius: 999px; font-weight: 650; font-size: 15px; text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: #b9c6be; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.lemon { background: var(--lemon); border-color: var(--lemon); color: var(--ink); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 7px 13px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

label.lbl, .lbl { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=time], select, textarea {
  width: 100%; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 12px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(23, 107, 81, .15); }
textarea { resize: vertical; min-height: 80px; }
.field { margin-bottom: 14px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }

.msg { padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 14px; white-space: pre-line; }
.msg.err { background: var(--danger-tint); color: #7d2416; }
.msg.ok { background: var(--brand-tint); color: var(--brand); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--brand-tint); color: var(--brand); }
.pill.warn { background: var(--lemon-tint); color: #6b5300; }
.pill.danger { background: var(--danger-tint); color: var(--danger); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 550;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px); animation: toast-in .25s var(--ease);
}
.toast.err { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

dialog { border: 0; border-radius: var(--r-lg); padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
dialog::backdrop { background: rgba(10, 20, 15, .55); }
dialog[open] { animation: toast-in .2s var(--ease); }

/* Startseite (.clay-site) zeigt ihre Animationen immer; Bestellseite und Terminal respektieren "Bewegung reduzieren" */
@media (prefers-reduced-motion: reduce) {
  body:not(.clay-site) *, body:not(.clay-site) *::before, body:not(.clay-site) *::after { animation: none !important; transition: none !important; }
}

/* Logo-Schriftzug: "Liga" goldgelb (nur im Logo, im Fließtext normal) */
.logo .brand-liga, .login-brand .brand-liga, .hero-brand .brand-liga, .vc-brand .brand-liga { color: #f2a900; }
