:root {
  --cyan: #009bde;
  --orange: #ec6708;
  --grey: #878787;
  font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }

input[type=password], input[type=text], input[type=date] {
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border-radius: 10px;
  font: inherit;
}
input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }

.btn, .card button {
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn:hover, .card button:hover { background: var(--orange); }
.btn:focus-visible, .card button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Seiten für Kunden: Passwort und Hinweise – dunkel wie der Player */
.card-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #0d0d0d;
  color: #fff;
  color-scheme: dark;
}
.card { width: min(400px, 100%); text-align: center; }
.card h1 { margin: 0 0 12px; font-size: 24px; font-weight: 600; }
.card p { margin: 0 0 8px; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.card form { display: grid; gap: 12px; margin-top: 20px; text-align: left; }
.card label { font-size: 14px; color: rgba(255, 255, 255, .85); }
.card input { border: 1px solid #3a3a3a; background: #1a1a1a; color: #fff; }
.card .error { margin: 0; font-size: 14px; color: #ff9a62; }

/* Verwaltung */
.admin {
  min-height: 100vh;
  background: #f4f6f8;
  color: #1d1d1d;
  color-scheme: light;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 3px solid var(--cyan);
}
.top strong { font-weight: 700; }
.top strong span { font-weight: 400; color: var(--cyan); }
.admin a { color: #00729f; }
.admin main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
.admin h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 22px; font-weight: 600; }
.admin h2 { margin: 0 0 16px; font-size: 17px; font-weight: 600; }
.admin input { border: 1px solid #cfd5da; background: #fff; color: #1d1d1d; }
.admin small { display: block; color: var(--grey); font-size: 12px; }

.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 10px 14px;
  border-bottom: 1px solid #eceff2;
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}
th {
  background: #fafbfc;
  color: var(--grey);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge.ok { background: #e1f3fb; color: #00729f; }
.badge.expired { background: #fdecdf; color: #a84a06; }
.badge.inactive { background: #eceff2; color: #5c5c5c; }

.copy {
  padding: 5px 12px;
  border: 1px solid #cfd5da;
  border-radius: 999px;
  background: #fff;
  color: #1d1d1d;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.copy:hover { border-color: var(--cyan); color: #00729f; }

.back { margin: 0 0 12px; font-size: 14px; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 20px; }
.link { font-family: ui-monospace, Consolas, monospace; font-size: 14px; word-break: break-all; }
.notice {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #e1f3fb;
  color: #00729f;
  font-weight: 600;
}
.panel {
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.form-grid { display: grid; gap: 16px; max-width: 440px; font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--cyan); }
.sub { margin: -6px 0 0 26px; }

.actions { display: flex; gap: 8px; }
a.copy { display: inline-block; text-decoration: none; }

.upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 2px dashed #cfd5da;
  box-shadow: none;
  transition: border-color .15s, background .15s;
}
.upload.drag { border-color: var(--cyan); background: #f0f9fd; }
.upload.busy label { opacity: .5; pointer-events: none; }
.upload-text { flex: 1 1 320px; }
.upload h2 { margin-bottom: 6px; }
.upload p { margin: 0; color: #5c5c5c; font-size: 14px; line-height: 1.5; }
.upload code { padding: 1px 5px; border-radius: 4px; background: #eceff2; font-size: 13px; }
.upload progress { width: 100%; height: 8px; margin-top: 12px; accent-color: var(--cyan); }
.upload .upload-status { margin-top: 6px; font-weight: 600; color: #00729f; }
.upload .upload-status:empty { display: none; }
.upload .upload-status.error { color: #b04d06; }
.upload label.btn { display: inline-block; }

.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.stat { min-width: 150px; padding: 12px 16px; border-radius: 10px; background: #f4f6f8; }
.stat b { display: block; color: var(--cyan); font-size: 22px; font-weight: 700; }
.stat span { color: var(--grey); font-size: 12px; }
.panel .table-wrap { box-shadow: none; border: 1px solid #eceff2; }
.note, .empty { color: var(--grey); font-size: 13px; }
