/* ============================================================
   DirectDash V2 — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* === TOKENS === */
:root {
  --green:      #16a34a;
  --green-h:    #15803d;
  --green-l:    #22c55e;
  --green-dim:  rgba(22,163,74,.12);
  --green-glow: rgba(22,163,74,.3);
  --blue:       #3b82f6;
  --blue-dim:   rgba(59,130,246,.12);
  --red:        #ef4444;
  --red-dim:    rgba(239,68,68,.12);
  --amber:      #f59e0b;
  --amber-dim:  rgba(245,158,11,.12);

  /* Dark (default) */
  --bg:      #0c0c0c;
  --surface: #141414;
  --card:    #1e1e1e;
  --border:  #2a2a2a;
  --border2: #383838;
  --txt:     #f0f0f0;
  --txt2:    #777;
  --txt3:    #3d3d3d;

  --r1: 8px;
  --r2: 12px;
  --r3: 16px;
  --r4: 22px;
  --rf: 999px;
}

body.light {
  --bg:      #f0f0f0;
  --surface: #e4e4e4;
  --card:    #ffffff;
  --border:  #ddd;
  --border2: #c8c8c8;
  --txt:     #111;
  --txt2:    #666;
  --txt3:    #bbb;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; touch-action: manipulation; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--txt);
  margin: 0; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, color .2s;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button:active, a:active { opacity: .75; }

/* === ANIMATIONS === */
@keyframes qty-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.55); }
  70%  { transform: scale(.9); }
  100% { transform: scale(1); }
}
.qty-bounce { animation: qty-bounce .22s ease; display: inline-block; }

@keyframes send-flash {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,.0); }
  30%  { box-shadow: 0 0 0 14px rgba(22,163,74,.4); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,.0); }
}
.send-flash { animation: send-flash .55s ease; }

@keyframes fertig-pulse {
  0%   { opacity: 1; }
  40%  { opacity: .35; }
  100% { opacity: 1; }
}
.fertig-pulse { animation: fertig-pulse .3s ease; }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tin {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* === TOPBAR === */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 12px; gap: 8px; z-index: 500;
}
.topbar-title {
  flex: 1; text-align: center;
  font-size: 15px; font-weight: 700; letter-spacing: -.02em;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r1);
  border: 1px solid var(--border); background: var(--card);
  color: var(--txt); display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; font-size: 17px; flex-shrink: 0;
  transition: background .12s;
}
.icon-btn:hover  { background: var(--border2); }
.icon-btn:active { opacity: .65; transform: scale(.92); }

/* === LAYOUT === */
.content { padding-top: 56px; }
.wrap { max-width: 700px; margin: 0 auto; padding: 16px; }

/* === CARDS === */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 16px;
}
body.light .card {
  box-shadow: 0 1px 4px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.05);
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 20px; border-radius: var(--rf);
  border: none; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: opacity .12s, transform .08s;
  text-decoration: none; white-space: nowrap; line-height: 1; letter-spacing: -.01em;
}
.btn:active:not(:disabled) { transform: scale(.96); opacity: .8; }
.btn:disabled { opacity: .35; cursor: not-allowed; }

.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 2px 12px var(--green-glow);
}
.btn-primary:hover:not(:disabled) { background: var(--green-h); }
.btn-danger  { background: var(--red);   color: #fff; }
.btn-blue    { background: var(--blue);  color: #fff; }
.btn-ghost   {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--txt);
}
.btn-ghost:hover { background: var(--border); }
.btn-full  { width: 100%; border-radius: var(--r2); }
.btn-lg    { height: 54px; font-size: 16px; }
.btn-sm    { height: 34px; font-size: 12px; padding: 0 12px; }

/* === INPUTS === */
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--txt2); margin-bottom: 6px;
}
.input {
  width: 100%; height: 48px; padding: 0 14px;
  border-radius: var(--r2); border: 1.5px solid var(--border);
  background: var(--surface); color: var(--txt);
  font-size: 15px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}
.input::placeholder { color: var(--txt3); }
.input-tap {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 48px; padding: 0 14px;
  border-radius: var(--r2); border: 1.5px solid var(--border);
  background: var(--surface); color: var(--txt);
  font-size: 15px; cursor: pointer;
  transition: border-color .15s;
}
.input-tap:active { border-color: var(--green); }
.input-tap .val { font-weight: 800; color: var(--green); font-size: 20px; }
.input-tap .placeholder { color: var(--txt3); }

/* === TOAST === */
#toasts {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  z-index: 9000; display: flex; flex-direction: column; gap: 8px;
  align-items: center; pointer-events: none;
}
.toast {
  padding: 11px 22px; border-radius: var(--rf);
  font-size: 13px; font-weight: 700; color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: tin .22s ease; white-space: nowrap; max-width: 90vw;
}
.t-ok  { background: var(--green); }
.t-err { background: var(--red); }
.t-inf { background: var(--blue); }

/* === MODAL === */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000; align-items: flex-end; justify-content: center;
}
.modal.open { display: flex; animation: fade-in .16s ease; }
.modal-box {
  background: var(--surface);
  border-radius: var(--r4) var(--r4) 0 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  width: 100%; max-width: 480px;
  padding: 12px 16px 40px;
  max-height: 92vh; overflow-y: auto;
  animation: slide-up .2s ease;
}
.modal-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--border2); margin: 0 auto 18px;
}
.modal-title {
  font-size: 18px; font-weight: 800; text-align: center;
  margin-bottom: 18px; letter-spacing: -.03em;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r1); width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--txt2);
}

/* === NUMPAD === */
.numpad-screen {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--r2); height: 72px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 900; color: var(--green);
  letter-spacing: 8px; margin-bottom: 16px; line-height: 1;
}
.numpad-screen.empty { color: var(--txt3); font-size: 15px; letter-spacing: 0; font-weight: 500; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.numpad-btn {
  height: 72px; border-radius: var(--r2);
  border: 1px solid var(--border); background: var(--card);
  color: var(--txt); font-size: 26px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  user-select: none; transition: background .1s;
}
.numpad-btn:active { transform: scale(.92); background: var(--green-dim); }
.numpad-btn.del { background: var(--surface); color: var(--red); }
.numpad-btn.go  {
  background: var(--green); color: #fff; border-color: var(--green);
  box-shadow: 0 2px 12px var(--green-glow);
}
.numpad-btn.go:active { background: var(--green-h); }

/* === ORDER GRID === */
.order-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start;
}
@media (min-width: 600px)  { .order-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px) { .order-grid { grid-template-columns: repeat(3,1fr); } }

/* === ORDER CARD === */
.order-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--r3); padding: 14px;
}
body.light .order-card {
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.order-card-head {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 8px;
}
.order-table { font-weight: 900; font-size: 22px; color: var(--green); letter-spacing: -.04em; }
.order-time  { font-size: 11px; color: var(--txt2); font-weight: 600; }
.order-item  { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.order-item:last-child { border-bottom: none; }
.order-item-name { font-weight: 600; margin-bottom: 6px; }

/* Küche / Schänke Action-Buttons */
.action-btn {
  width: 100%; height: 50px; border-radius: var(--r2);
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: none; letter-spacing: -.01em;
  transition: opacity .12s, transform .07s;
}
.action-btn:active { opacity: .7; transform: scale(.98); }
.action-btn-blue  { background: var(--blue); color: #fff; }
.action-btn-green { background: var(--green); color: #fff; box-shadow: 0 2px 8px var(--green-glow); }
.action-btn-all {
  width: 100%; height: 44px; border-radius: var(--r2);
  font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border2); color: var(--txt2);
  transition: background .12s;
}
.action-btn-all:active { background: var(--green-dim); color: var(--green); }

/* === TIMER BAR === */
.timer-bar {
  height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; margin: 8px 0;
}
.timer-fill { height: 100%; border-radius: 2px; transition: width 1s linear, background .5s; }
.timer-fill.g { background: var(--green-l); }
.timer-fill.o { background: var(--amber); }
.timer-fill.r { background: var(--red); }

/* === NOTE BOX === */
.note-box {
  background: var(--amber-dim); border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--r1); padding: 8px 12px;
  font-size: 12px; font-weight: 600; color: var(--amber); margin: 8px 0;
}

/* === PRODUCT ITEM (Bedienung) === */
.product-item {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r2); padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; transition: border-color .15s;
}
body.light .product-item { box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.product-name  { font-weight: 700; font-size: 14px; }
.product-price { font-size: 12px; color: var(--txt2); margin-top: 3px; font-variant-numeric: tabular-nums; }
.qty-control   { display: flex; align-items: center; gap: 14px; }
.qty-btn {
  width: 38px; height: 38px; border-radius: var(--rf);
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--txt); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s, border-color .1s;
}
.qty-btn:active { background: var(--green-dim); border-color: var(--green); }
.qty-val { font-size: 18px; font-weight: 900; min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }

/* Produkt-Sektion-Header (Bedienung) */
.prod-sec-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  border: none; border-radius: var(--r2); padding: 14px 18px;
  font-size: 16px; font-weight: 800; cursor: pointer;
  letter-spacing: -.02em; transition: opacity .12s;
}
.prod-sec-btn:active { opacity: .8; }
.prod-sec-blue  { background: var(--blue); color: #fff; margin-bottom: 4px; }
.prod-sec-green { background: var(--green); color: #fff; margin-top: 12px; margin-bottom: 4px; box-shadow: 0 2px 12px var(--green-glow); }

.cat-header {
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--txt2); padding: 14px 0 8px;
}

/* === STICKY FOOTER === */
.sticky-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 12px 16px 20px; z-index: 400;
}
body.light .sticky-footer { box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
.total-row {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px;
}
.total-label  { font-size: 11px; color: var(--txt2); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.total-amount { font-size: 28px; font-weight: 900; color: var(--green); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

/* === RECEIPT === */
.receipt-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-radius: var(--r2);
  background: var(--card); margin-bottom: 8px;
  cursor: pointer; border: 2px solid var(--border);
  transition: background .12s, border-color .12s, transform .08s; font-size: 15px;
}
.receipt-item:active { transform: scale(.98); }
.receipt-item.selected {
  background: var(--green-dim); border-color: var(--green); font-weight: 700; color: var(--green);
}
.receipt-item.selected span:last-child { color: var(--green); font-size: 17px; }
.receipt-item.paid { opacity: .3; pointer-events: none; text-decoration: line-through; }
.split-summary { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* === HISTORY CARD === */
.hist-card {
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--r2); padding: 14px; margin-bottom: 10px;
}
.hist-card.cancelled { border-left-color: var(--red); opacity: .6; }
.hist-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hist-table { font-weight: 800; font-size: 15px; color: var(--blue); }
.hist-meta  { font-size: 11px; color: var(--txt2); }
.hist-item  {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.hist-item:last-of-type { border-bottom: none; }
.hist-total { text-align: right; font-weight: 700; font-size: 13px; color: var(--green); margin-top: 6px; }

/* === STATS === */
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table th {
  text-align: left; padding: 10px 12px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--txt2); border-bottom: 1px solid var(--border);
}
.stats-table td { padding: 10px 12px; font-size: 14px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.stats-table tr:last-child td { border-bottom: none; }
.stats-table .total-row td { font-weight: 700; color: var(--green); background: var(--green-dim); }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bar-label-s { font-size: 12px; color: var(--txt2); width: 30px; text-align: right; flex-shrink: 0; }
.bar-track { flex: 1; height: 18px; background: var(--border); border-radius: 4px; overflow: hidden; }
.bar-fill-s { height: 100%; background: var(--green); border-radius: 4px; transition: width .5s ease; }
.bar-val { font-size: 12px; font-weight: 600; color: var(--green); width: 60px; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* === FASS === */
.fass-bar {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 99;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 3px 8px;
  display: grid; grid-template-columns: 1fr 1fr 2fr; align-items: center;
}
.fass-bar .fass-item { display: flex; align-items: center; gap: 3px; white-space: nowrap; padding: 2px 6px; }
.fass-bar .fass-item + .fass-item { border-left: 1px solid var(--border); }
.fass-label { font-size: 8px; font-weight: 700; text-transform: uppercase; color: var(--txt2); flex-shrink: 0; }
.fass-val   { font-size: 13px; font-weight: 800; color: var(--green); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.fass-unit  { font-size: 9px; color: var(--green); flex-shrink: 0; }

/* === SOUND BTN === */
.sound-btn {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r1); padding: 6px 12px; font-size: 13px; color: var(--txt2);
}
.sound-btn.on { border-color: var(--green); color: var(--green); }

/* === ADMIN PRODUCT ROWS === */
.product-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--r1); padding: 10px 12px; margin-bottom: 6px;
}
.handle { color: var(--txt3); cursor: grab; font-size: 18px; flex-shrink: 0; touch-action: none; }
.edit-name {
  flex: 1; background: transparent; border: none;
  border-bottom: 1.5px solid transparent; color: var(--txt);
  font-size: 14px; font-weight: 600; padding: 3px 0; outline: none;
}
.edit-name:focus  { border-bottom-color: var(--green); }
.edit-price {
  width: 70px; background: transparent; border: none;
  border-bottom: 1.5px solid transparent; color: var(--txt);
  font-size: 14px; text-align: right; padding: 3px 0; outline: none; font-variant-numeric: tabular-nums;
}
.edit-price:focus { border-bottom-color: var(--green); }
.toggle-badge {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: var(--rf); border: 1.5px solid; background: none; cursor: pointer;
}
.toggle-badge.on  { border-color: var(--green); color: var(--green); }
.toggle-badge.off { border-color: var(--red);   color: var(--red); }
.del-btn { background: none; border: none; color: var(--txt3); font-size: 20px; cursor: pointer; padding: 0 4px; }
.del-btn:hover { color: var(--red); }

.accordion-btn {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 700; color: var(--txt);
  cursor: pointer; margin-bottom: 6px; transition: background .12s; letter-spacing: -.01em;
}
.accordion-btn:hover { background: var(--border); }
.accordion-panel { display: none; margin-bottom: 16px; }

.event-banner {
  background: var(--blue-dim); border: 1px solid rgba(59,130,246,.2);
  border-radius: var(--r2); padding: 10px 16px;
  text-align: center; font-weight: 700; font-size: 14px; color: var(--blue);
}

/* === LOGIN === */
.login-page {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100vh; padding: 24px;
}
.login-logo  { max-height: 90px; width: auto; margin: 0 auto 20px; display: block; }
.login-title { font-size: 24px; font-weight: 900; margin: 0 0 4px; text-align: center; letter-spacing: -.04em; }
.login-sub   { font-size: 13px; color: var(--txt2); margin: 0 0 28px; text-align: center; }

/* ================================================================
   HOME PAGE — neu strukturiert
   ================================================================ */
.home-page {
  display: flex; flex-direction: column; align-items: center;
  min-height: calc(100vh - 56px); padding: 40px 20px 48px;
}

.home-header {
  display: flex; flex-direction: column; align-items: center; margin-bottom: 32px;
}
.home-logo  { max-height: 72px; margin-bottom: 12px; }
.home-event-pill {
  font-size: 11px; font-weight: 700;
  background: var(--green-dim); color: var(--green);
  border: 1px solid rgba(22,163,74,.22);
  border-radius: var(--rf); padding: 5px 14px;
  letter-spacing: .03em;
}

.home-nav { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; }

/* Hero-Button: Bestellung aufnehmen */
.home-hero {
  display: flex; align-items: center; gap: 14px;
  background: var(--green); color: #fff; border-radius: var(--r3);
  padding: 20px 22px; text-decoration: none; font-weight: 800;
  font-size: 17px; letter-spacing: -.02em;
  box-shadow: 0 4px 20px var(--green-glow);
  transition: background .12s, transform .08s;
}
.home-hero:active { transform: scale(.98); background: var(--green-h); }
.home-hero-icon  { font-size: 26px; }
.home-hero-label { flex: 1; }
.home-hero-arrow { font-size: 22px; opacity: .7; font-weight: 400; }

/* Kacheln: Küche + Schänke nebeneinander */
.home-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.home-tile {
  position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r3); padding: 22px 16px; text-decoration: none; color: var(--txt);
  font-weight: 700; font-size: 15px; letter-spacing: -.01em;
  transition: background .12s, transform .08s; min-height: 100px;
}
body.light .home-tile { box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.home-tile:active { transform: scale(.97); background: var(--border); }
.home-tile-icon  { font-size: 30px; }
.home-tile-label { text-align: center; }
.home-tile-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--red); color: #fff;
  border-radius: var(--rf); padding: 2px 8px;
  font-size: 12px; font-weight: 800; min-width: 22px; text-align: center;
}

/* Kompakte Zeilen: Statistik + Einstellungen */
.home-rows { display: flex; flex-direction: column; gap: 6px; }
.home-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 14px 16px; text-decoration: none; color: var(--txt);
  font-size: 14px; font-weight: 600; transition: background .12s;
}
body.light .home-row { box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.home-row:active { background: var(--border); }
.home-row-arrow { margin-left: auto; color: var(--txt3); font-size: 18px; }

/* Abmelden — dezenter Text-Link */
.home-logout-link {
  margin-top: 8px; padding: 12px;
  font-size: 13px; font-weight: 600; color: var(--txt3);
  text-decoration: none; text-align: center; display: block;
  transition: color .12s;
}
.home-logout-link:hover { color: var(--txt2); }

.home-footer { margin-top: 32px; font-size: 10px; color: var(--txt3); }

/* Legacy (wird nicht mehr genutzt, aber sicher) */
.home-btn { display: none; }

/* === MISC === */
.divider   { height: 1px; background: var(--border); margin: 12px 0; }
.statusbar { text-align: center; font-size: 11px; color: var(--txt3); padding: 8px 0; }
.empty     { text-align: center; padding: 48px 20px; color: var(--txt2); grid-column: 1/-1; }
.empty .eicon { font-size: 40px; margin-bottom: 10px; opacity: .45; }
.empty p   { font-size: 14px; font-weight: 500; margin: 0; }
.pb-footer { padding-bottom: 120px; }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-muted { color: var(--txt2); }
.fw7 { font-weight: 700; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

/* === PRINT / PDF === */
@media print {
  @page { margin: 15mm 12mm; size: A4 portrait; }
  body {
    background: #fff !important; color: #111 !important;
    font-size: 11pt; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .no-print, .topbar, .fass-bar, #liveIndicator { display: none !important; }
  .content { padding-top: 0 !important; }
  .wrap { max-width: 100% !important; padding: 0 !important; }
  :root {
    --bg: #fff; --surface: #f5f5f5; --card: #fff; --border: #ddd; --border2: #ccc;
    --txt: #111; --txt2: #555; --txt3: #999; --green: #16a34a; --red: #dc2626; --blue: #2563eb;
  }
  .card { border: 1px solid #ddd !important; break-inside: avoid; box-shadow: none !important; margin-bottom: 12pt !important; }
  body::after {
    content: "DirectDash – Statistikexport – " attr(data-print-date);
    display: block; text-align: center; font-size: 8pt; color: #999;
    margin-top: 20pt; border-top: 1px solid #ddd; padding-top: 6pt;
  }
}
