/* Bestellflott 2.0 – Grundlagen für alle Ansichten */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.35 system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "Noto Sans CJK SC", sans-serif; color: #1d2329; background: #eef0f2; -webkit-font-smoothing: antialiased; }
#app { height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
kbd { font: 600 11px/1 ui-monospace, "Consolas", monospace; padding: 2px 4px; border-radius: 3px; border: 1px solid #b6bcc4; background: #f6f7f8; color: #333; }
.muted { color: #7a828c; }
.grow { flex: 1; }
.r { text-align: right; }
.warn { color: #b03a2e; }
.boot { display: grid; place-items: center; height: 100%; color: #6b7480; font-size: 16px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border: 1px solid #b9c0c8; background: #fff; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #f3f5f7; }
.btn.primary { background: #1f6f43; border-color: #1a5e39; color: #fff; font-weight: 600; }
.btn.primary:hover { background: #1a5e39; }
.btn.big { padding: 12px 18px; font-size: 16px; width: 100%; }
.btn.small { padding: 3px 8px; font-size: 12px; }
.btn:disabled { opacity: .6; cursor: default; }
.chip { border: 1px solid #c8ced5; background: #fff; border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.chip:hover { background: #eef2f5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }

/* Anmeldung */
.login-page { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 20% 0%, #fbe9d6 0%, transparent 60%), radial-gradient(900px 500px at 100% 100%, #dbeee3 0%, transparent 60%), #f4f1ec; }
.login { width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 20px 50px rgba(40, 30, 20, .14); display: flex; flex-direction: column; gap: 14px; }
.login h2 { margin: 0; font-size: 19px; }
.login p { margin: 0; }
.login label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13px; color: #444c55; }
.login input { padding: 11px 12px; border: 1px solid #cdd3d9; border-radius: 8px; font-size: 16px; font-weight: 400; color: #1d2329; }
.login input:focus { outline: 2px solid #1f6f43; outline-offset: -1px; border-color: transparent; }
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.login-logo img { width: 46px; height: 46px; }
.login-logo b { display: block; font-size: 22px; letter-spacing: -.3px; }
.login-logo small { color: #c0392b; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 11px; }
.login-err { background: #fdecea; color: #8e2a20; padding: 9px 12px; border-radius: 8px; font-size: 13px; }
.login-foot { text-align: center; font-size: 12px; color: #8a929b; }
.login-lang { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: -4px; }
.login-lang button { border: 0; background: none; padding: 4px 7px; border-radius: 6px; font-size: 12px; color: #6b737c; cursor: pointer; }
.login-lang button:hover { background: #f1f3f5; }
.login-lang button.on { background: #e8f3ec; color: #1f6f43; font-weight: 600; }

/* Meldungen */
.toast { position: fixed; left: 50%; bottom: 46px; transform: translateX(-50%); z-index: 1000; background: #263238; color: #fff; padding: 10px 18px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: min(92vw, 640px); cursor: pointer; }
.toast.ok { background: #1f6f43; }
.toast.error { background: #a93226; }
.eng-msg { background: #fdecea; color: #8e2a20; border: 1px solid #f3b8b0; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.eng-msg.warn { background: #fff6dd; color: #6b5100; border-color: #f0dc9c; }
.eng-msg.ok, .eng-msg.info { background: #e7f5ec; color: #1e5e36; border-color: #a9d9b9; }

/* Bon-Vorschau */
.bonprev-back { position: fixed; inset: 0; background: rgba(20, 24, 28, .55); z-index: 900; display: grid; place-items: center; padding: 16px; }
.bonprev { background: #e9ecef; border-radius: 10px; max-height: 94vh; max-width: 96vw; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.bonprev-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #d5dade; }
.bonprev-pages { display: flex; gap: 18px; padding: 16px; overflow: auto; align-items: flex-start; }
.bonprev-kind { font-weight: 700; color: #59626b; margin-bottom: 6px; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.paper { background: #fff; padding: 10px 12px 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); border-radius: 2px; }
.paper.sheet { padding: 0; border-radius: 0; flex: none; }
.bonprev-btns { display: flex; gap: 8px; }
.bonprev-fmt { text-transform: none; letter-spacing: 0; font-weight: 600; }

/* Brand-Hinweis „MILANO-KUNDE“ */
.brand-hint { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); z-index: 950; background: var(--bc, #c0392b); color: #fff; border-radius: 18px; padding: 26px 46px; text-align: center; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); cursor: pointer; animation: bh-in .25s ease-out; min-width: 340px; }
.brand-hint .bh-name { font-size: 44px; font-weight: 800; letter-spacing: 1px; line-height: 1.1; }
.brand-hint .bh-why { font-size: 16px; opacity: .92; margin-top: 8px; }
.brand-hint .bh-key { font-size: 12px; opacity: .75; margin-top: 12px; }
@keyframes bh-in { from { transform: translate(-50%, -12px) scale(.96); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.chip.on { background: #1f6f43; color: #fff; border-color: #1f6f43; }
.chip:disabled { opacity: .45; cursor: default; }
/* F8: Rabatt, Gutschein, Bonus */
.dlg-disc .disc-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #e3e6ea; flex-wrap: wrap; }
.dlg-disc .disc-row b { min-width: 120px; }
.dlg-disc .disc-row span { flex: 1; }

/* Hinweise des Herstellers, Sperre, Ende der Testphase (unten am Rand, wegblendbar) */
.le-banners { position: fixed; inset-inline-start: 12px; bottom: 42px; z-index: 900; display: flex; flex-direction: column; gap: 6px; max-width: min(460px, calc(100vw - 24px)); pointer-events: none; }
.le-banner { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 10px; background: #e8f1fa; color: #1d4f7a; border: 1px solid #c5dbef; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); font: 13.5px/1.35 system-ui, "Segoe UI", Roboto, Arial, "Noto Sans", "Noto Sans Arabic", "Noto Sans CJK SC", sans-serif; }
.le-banner p { margin: 0; flex: 1; }
.le-banner button { border: 0; background: none; font-size: 18px; line-height: 1; color: inherit; opacity: .7; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.le-banner button:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.le-banner.warnung { background: #fff3d6; color: #7a4d00; border-color: #f0d9a0; }
