:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; }
.container { max-width: 920px; margin: 0 auto; padding: 16px; }
.top { display:flex; justify-content:space-between; align-items:center; padding: 8px 0 16px; }
.brand-title { font-weight: 800; font-size: 18px; }
.foot { margin-top: 28px; color:#666; font-size: 12px; }

.card { border: 1px solid #e6e6e6; border-radius: 12px; padding: 14px; background: #fff; }
label { display:block; font-weight: 600; margin: 10px 0 6px; }
input, textarea, select { width:100%; padding:10px; border:1px solid #ddd; border-radius:10px; font-size: 16px; }
button { margin-top: 12px; padding:10px 14px; border-radius: 10px; border: 0; background:#111; color:#fff; font-weight:700; cursor:pointer; }
button.secondary { background:#eee; color:#111; }
.muted { color:#666; font-size: 13px; margin-top: 10px; }
input { padding: 8px 10px; }
.grid2 { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

.table { margin-top: 14px; border: 1px solid #eee; border-radius: 12px; overflow:hidden; }
.row { display:grid; grid-template-columns: 2fr 1fr 1fr 0.6fr; gap: 10px; padding: 10px 12px; border-top:1px solid #eee; align-items:center; }
.row.head { background:#fafafa; font-weight:800; border-top:0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.btnlink { text-decoration:none; font-weight:700; }

.pill { display:inline-block; padding:4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pill.issued { background:#eef6ff; }
.pill.redeemed { background:#e8fff0; }
.pill.refunded { background:#fff3e8; }
.pill.cancelled { background:#ffecec; }

.rowline { display:flex; justify-content:space-between; padding: 8px 0; border-top: 1px solid #eee; }
.rowline:first-child { border-top:0; }

.checkin-body { margin:0; height:100vh; background:#0b0b0b; color:#fff; display:flex; }
.checkin-wrap { margin:auto; width:min(880px, 92vw); }
.checkin-title { font-size: 34px; font-weight: 900; margin-bottom: 14px; }
.checkin-input { width:100%; padding:18px; font-size: 22px; border-radius: 14px; border: 2px solid #333; background:#111; color:#fff; }
.checkin-result { margin-top: 16px; padding: 18px; border-radius: 14px; font-size: 26px; font-weight: 900; }
.checkin-result.neutral { background:#1b1b1b; }
.checkin-result.ok { background:#0b7a34; }
.checkin-result.warn { background:#b07a00; }
.checkin-result.bad { background:#a01818; }
.checkin-hint { margin-top: 12px; color:#bbb; }

.brand-logo { height: 50px; width: auto; }

body { background-color: #eeeeee; }

/* Cookie Banner (nur Hinweis für notwendige Cookies) */
.cookie-banner{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px;
  z-index: 9999;
  background: rgba(20,20,20,0.95);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.cookie-banner__inner{
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner__text{
  line-height: 1.35;
}
.cookie-link{
  color: #fff;
  text-decoration: underline;
  margin-left: 8px;
  white-space: nowrap;
}
.cookie-btn{
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.cookie-btn:active{
  transform: translateY(1px);
}
@media (max-width: 640px){
  .cookie-banner__inner{
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-link{ white-space: normal; }
  .cookie-btn{ width: 100%; }
}

    .checkin-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:10px; }
    .checkin-select { padding:10px 12px; border-radius:10px; border:1px solid rgba(255,255,255,.15); background:rgba(0,0,0,.25); color:inherit; }
    .checkin-btn { padding:10px 12px; border-radius:10px; border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.06); color:inherit; cursor:pointer; }
    .checkin-btn:active { transform: translateY(1px); }

    .scan-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,.75);
      display:none; align-items:center; justify-content:center; padding:16px; z-index: 9999;
    }
    .scan-panel {
      width: min(520px, 100%); background: rgba(20,20,20,.95); border:1px solid rgba(255,255,255,.12);
      border-radius:16px; overflow:hidden;
    }
    .scan-head { display:flex; justify-content:space-between; align-items:center; padding:12px 14px; }
    .scan-title { font-weight: 700; }
    .scan-video-wrap { position:relative; }
    video#scanVideo { width:100%; height:auto; display:block; background:#000; }
    .scan-foot { padding:12px 14px; font-size: 0.95rem; opacity:.85; }

/* -------- Pills -------- */

.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.pill.ok {
  background: #1f7a4d;
  color: #eafff3;
}

.pill.neutral {
  background: #2a3b55;
  color: #dbe7ff;
}

.pill.muted {
  background: #2a2f36;
  color: #9aa3ad;
}

/* Status-Fallbacks (falls noch nicht vorhanden) */
.pill.issued { background:#2d6cdf; color:#eaf1ff; }
.pill.redeemed { background:#1f7a4d; color:#eafff3; }
.pill.refunded { background:#7a2f2f; color:#ffecec; }
.pill.cancelled { background:#555; color:#eee; }

/* -------- Links / Buttons -------- */

.btnlink {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #6aa8ff;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

.btnlink:hover {
  color: #9cc2ff;
}

.btnlink.danger {
  color: #ff6b6b;
}

.btnlink.danger:hover {
  color: #ff9b9b;
}

/* -------- Admin Table Tweaks -------- */

.table .row > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.table .row.head > div {
  font-weight: 600;
  color: #cfd7e3;
}

.table .row:not(.head):hover {
  background: rgba(255, 255, 255, 0.03);
}


  /* Responsive visibility */
  .desktop-only { display: block !important; }
  .mobile-only { display: none !important;  }

  @media (max-width: 820px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
  }

  /* Mobile cards */
  .admin-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
  }
  .admin-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.02);
  }
  .admin-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }
  .admin-card-id { font-weight: 700; }
  .admin-card-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    padding: 6px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .admin-card-row:first-of-type { border-top: none; }
  .admin-card-label { opacity: 0.75; }
  .admin-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
