* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; font-family: -apple-system, system-ui, sans-serif;
  background: #0f172a; color: #f1f5f9; user-select: none; }
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; }
.hidden { display: none !important; }
button { font: inherit; border: none; border-radius: 14px; padding: 18px; cursor: pointer; }
.primary { background: #16a34a; color: #fff; font-weight: 700; font-size: 1.4rem; }
.primary:disabled { background: #334155; color: #64748b; }
.ghost { background: #1e293b; color: #e2e8f0; }
.danger { background: #b91c1c; color: #fff; }

/* PIN */
#screen-pin { align-items: center; justify-content: center; }
.pin-box { text-align: center; width: 320px; }
.pin-display { height: 40px; letter-spacing: 16px; font-size: 2rem; margin: 12px 0; }
.pin-error { color: #f87171; min-height: 20px; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pad button { background: #1e293b; color: #fff; font-size: 1.6rem; padding: 24px; }

/* Kasse */
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  background: #1e293b; }
.topbar .brand { font-weight: 700; font-size: 1.2rem; }
.topbar .spacer { flex: 1; }
.kasse-grid { flex: 1; display: grid; grid-template-columns: 1fr 340px; gap: 14px;
  padding: 14px; overflow: hidden; }
.products { display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr; gap: 14px; overflow: auto; }
.products button { background: #2563eb; color: #fff; font-size: 1.25rem; font-weight: 600;
  display: flex; flex-direction: column; justify-content: center; min-height: 110px; }
.products button .price { font-size: 1rem; opacity: .85; margin-top: 6px; }
.cart { display: flex; flex-direction: column; background: #1e293b; border-radius: 16px;
  padding: 14px; gap: 10px; }
.cart-items { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.cart-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center;
  gap: 8px; background: #0f172a; border-radius: 12px; padding: 8px 10px; }
.cart-row .qbtn { background: #334155; color: #fff; padding: 6px 14px; border-radius: 10px; }
.cart-row .name { font-size: .95rem; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.4rem;
  font-weight: 700; padding: 8px 4px; border-top: 1px solid #334155; }

/* Bezahlen */
.overlay { position: fixed; inset: 0; background: rgba(2,6,23,.85);
  display: flex; align-items: center; justify-content: center; z-index: 10; }
.pay-card { background: #1e293b; border-radius: 18px; padding: 28px; width: 860px;
  max-width: 96vw; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pay-card h2 { grid-column: 1 / -1; margin: 0 0 4px; }
.pay-lines { display: flex; flex-direction: column; gap: 8px; font-size: 1.1rem; }
.pay-lines .big { font-size: 2rem; font-weight: 800; }
.pay-lines .change { color: #4ade80; }
.pay-lines input { font: inherit; padding: 10px; border-radius: 10px; border: none;
  width: 100%; text-align: right; }
.pay-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-pad button { background: #0f172a; color: #fff; font-size: 1.4rem; padding: 18px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; grid-column: 1 / -1; }
.quick button { background: #334155; color: #fff; flex: 1; }
.pay-actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.pay-actions button { flex: 1; }

/* Auswertung */
.date-in { font: inherit; padding: 8px 10px; border-radius: 10px; border: none; }
.report-body { flex: 1; overflow: auto; padding: 16px; }
.kpis { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.kpi { background: #1e293b; border-radius: 14px; padding: 16px 20px; min-width: 160px; }
.kpi .label { opacity: .7; font-size: .9rem; }
.kpi .val { font-size: 1.8rem; font-weight: 800; }
.report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.report-cols h3 { margin: 0 0 8px; }
.line { display: flex; justify-content: space-between; padding: 8px 10px;
  background: #1e293b; border-radius: 10px; margin-bottom: 6px; }
.line small { opacity: .65; }
