/* Adminportal: Tap2see-Gold auf Schwarz, Systemschriften, nichts wird extern geladen. */

:root {
  --bg: #09090b;
  --surface: #141416;
  --surface-2: #1c1c20;
  --line: #2c2c32;
  --text: #f4f1ea;
  --muted: #b0aba0;
  --gold: #e4cc8a;
  --gold-mid: #c9a962;
  --gold-dark: #8a7340;
  --danger: #ffb4ab;
  --ok: #c6ebc2;
  --focus: #e4cc8a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--gold); }
h1 { font-size: 1.65rem; font-weight: 650; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 1.05rem; font-weight: 650; margin: 2rem 0 0.35rem; }
p { margin: 0.75rem 0; }

::selection { background: var(--gold-dark); color: #fff; }

input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Anmeldung, Einrichtung, Hinweise: eine Karte in der Mitte */

.gate {
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(228, 204, 138, 0.18), transparent 60%),
    var(--bg);
}

.gate-card {
  width: min(28rem, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.brand {
  margin: 0;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.brand-sub {
  margin: 0.2rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gate-card h1 { margin-bottom: 0.75rem; }

/* Arbeitsfläche nach der Anmeldung */

.shell {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.5rem;
  padding: 0.55rem 1.25rem;
  background: rgba(9, 9, 11, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.shell .brand { margin-right: 0.25rem; }

.nav { display: flex; gap: 0.25rem; min-width: 0; overflow-x: auto; }

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover { color: var(--text); background: var(--surface-2); }

.nav a[aria-current="page"] {
  color: #16140f;
  background: var(--gold);
  font-weight: 700;
}

.nav a[aria-current="page"]:hover { color: #16140f; background: var(--gold); }

.account {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.who {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 16rem;
}

.content {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.75rem 0 4rem;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-head .button { margin-top: 0; flex-shrink: 0; }

.back { margin: 0 0 0.65rem; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--gold); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat {
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat span { color: var(--muted); font-size: 0.85rem; }

.sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.35rem 0.85rem 0.6rem;
}

.sheet.narrow { max-width: 36rem; padding: 1.1rem 1.15rem 1.25rem; }
.sheet.empty { padding: 1.5rem 1.15rem; }
.sheet.empty p:first-child { margin-top: 0; font-weight: 650; }

.hint { color: var(--muted); font-size: 0.9rem; }
.hint code, .mono, code { font-family: ui-monospace, Menlo, monospace; font-size: 0.9em; }
.slug { font-family: ui-monospace, Menlo, monospace; font-size: 0.88em; color: var(--muted); }

label { display: block; margin: 1rem 0 0.35rem; font-weight: 650; }
.sheet label:first-of-type { margin-top: 0.15rem; }

input[type="email"], input[type="password"], input[type="text"], input[type="date"], select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0e0e10;
  color: var(--text);
  font: inherit;
}

select { cursor: pointer; }
select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.section-head h2 { margin: 0; }
.section-head a { font-size: 0.9rem; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 0.85rem; }

.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.chips a:hover { background: var(--surface-2); }
.chips a[aria-current="true"] { color: #16140f; background: var(--gold); border-color: var(--gold); font-weight: 700; }

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  margin-bottom: 1rem;
}

.filters .field label { margin: 0 0 0.3rem; font-size: 0.85rem; color: var(--muted); }
.filter-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-actions .button, .filter-actions button { margin-top: 0; }

.prefix-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0e0e10;
  overflow: hidden;
}

.prefix-field span {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  color: var(--muted);
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.prefix-field input { border: 0; border-radius: 0; background: transparent; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: 1.15rem;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  color: #16140f;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button:hover, .button:hover { background: #efe0b6; }

.gate-card button[type="submit"],
.gate-card a.button { width: 100%; }

button.link {
  min-height: 2.5rem;
  margin: 0;
  padding: 0.35rem 0.15rem;
  background: none;
  color: var(--muted);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

button.link:hover { color: var(--text); background: none; }

button.danger, .button.danger { background: #e8a8a2; color: #2a1210; }
button.danger:hover, .button.danger:hover { background: #f3c2bd; }

.button.quiet, a.button.quiet {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.button.quiet:hover { background: var(--surface-2); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.actions form { margin: 0; }
.actions .button, .actions button { margin-top: 0; }

.error, .warning, .notice {
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}

.error { color: var(--danger); border: 1px solid #8a4038; background: #2a1715; }
.warning { color: var(--gold); border: 1px solid var(--gold-dark); background: #241e12; }
.notice { color: var(--ok); border: 1px solid #2f6a38; background: #152218; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.8rem;
  font-weight: 650;
  white-space: nowrap;
}

.badge-ok { color: var(--ok); background: #1a2c1c; border-color: #2f6a38; }
.badge-off { color: #ddd8cc; background: #2a2a2e; border-color: #45454c; }

.page-head .badge { margin-left: auto; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.facts div {
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.facts dt { color: var(--muted); font-size: 0.8rem; }
.facts dd { margin: 0.2rem 0 0; overflow-wrap: anywhere; }

.table-scroll { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0.35rem 0; }
th, td { text-align: left; padding: 0.7rem 0.55rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }

.qr { display: block; margin: 1rem auto; background: #fff; padding: 10px; border-radius: 12px; }

.secret {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  word-break: break-all;
}

details { margin: 0.5rem 0 1rem; }
summary { cursor: pointer; color: var(--muted); }

.codes {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 1.05rem;
}

.codes li {
  border: 1px dashed var(--gold-dark);
  border-radius: 8px;
  padding: 0.45rem 0.3rem;
  text-align: center;
}

ol { margin: 0.5rem 0 1rem; padding-left: 1.25rem; }
ol li { margin: 0.35rem 0; }

@media (max-width: 720px) {
  .shell { flex-wrap: wrap; gap: 0.35rem 0.75rem; padding: 0.65rem 0.85rem 0.75rem; }
  .account { width: 100%; }
  .content { width: min(68rem, calc(100% - 1.25rem)); }
  .stats, .facts { grid-template-columns: 1fr; }
  .page-head { align-items: stretch; flex-direction: column; }
  .page-head .button { width: 100%; }
  .page-head .badge { margin-left: 0; align-self: flex-start; }
  .who { max-width: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .shell, .button, button, .brand, .brand-sub { display: none; }
  .gate-card, .sheet, .stat, .facts div { border: 0; box-shadow: none; background: #fff; }
}
