/* Archivo (SIL Open Font License), selbst gehostet – keine Anfragen an Google */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/fonts/archivo-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/fonts/archivo-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Bewusst nur ein (dunkles) Farbschema – wie ein Flyer, und am dunklen Einlass blendet nichts. */
:root {
  --bg: #0e1310;
  --surface: #161c18;
  --line: #2b342e;
  --text: #f1ece2;
  --muted: #959e97;
  --accent: #ff6b1a;
  --accent-text: #170b03;
  --ok: #7fd394;
  --ok-text: #0b1a10;
  --ok-bg: #15281b;
  --warn: #f2c45a;
  --warn-bg: #2b2311;
  --danger: #ff6f61;
  --danger-bg: #331815;
  --radius: 3px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 'Archivo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 680px; margin: 0 auto; padding: 40px 16px 80px; }
main.wide { max-width: 1040px; }

h1, h2, .display {
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
}
h1 { font-size: 3rem; margin: 0 0 16px; }
h2 { font-size: 1.6rem; margin: 0 0 16px; }
p { margin: 0 0 12px; }
a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.muted { color: var(--muted); }

/* Kleine Versal-Beschriftung für Labels, Kennzahlen, Spaltenköpfe */
.eyebrow, label, th, .stat span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow, label, .stat span { display: block; }
label { margin-bottom: 6px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

input[type=text], input[type=search], input[type=password] {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
input::placeholder { color: var(--muted); }
input:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 12px; }
.row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) {
  .row { grid-template-columns: 1fr 1fr; }
  .row > .remove { grid-column: span 2; }
}

button, .button {
  font: inherit;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.primary { background: var(--accent); color: var(--accent-text); }
.primary:hover { filter: brightness(1.08); }
.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.secondary:hover { border-color: var(--muted); }
.danger { background: transparent; color: var(--danger); border-color: var(--line); }
.danger:hover { border-color: var(--danger); }
button:disabled { opacity: 0.5; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.notice { padding: 12px 14px; border-radius: var(--radius); margin: 12px 0; border-left: 3px solid currentColor; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.error { background: var(--danger-bg); color: var(--danger); }

.hp { position: absolute; left: -9999px; }

/* ---------- Anmeldeseite: Flyer ---------- */

.poster { padding-top: 8px; margin-bottom: 8px; }
.hosts { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; }
.logo-quapler { height: 30px; filter: brightness(0) invert(1); } /* Original ist dunkel */
.logo-gm { height: 52px; }
.hosts .x { color: var(--muted); font-size: 1.3rem; }
button.big { font-size: 1.15rem; padding: 16px 28px; }

.sponsor { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.wordmark { color: var(--text); font-weight: 800; font-stretch: 125%; letter-spacing: 0.22em; text-transform: uppercase; font-size: 1.1rem; }
.poster h1 {
  font-size: clamp(3.6rem, 17vw, 7.5rem);
  line-height: 0.82;
  margin: 12px 0 28px;
  hyphens: manual;
}
.poster h1 em { font-style: normal; color: var(--accent); }

.facts { display: grid; grid-template-columns: 1fr 1fr 1.4fr; border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); }
.facts > div { padding: 14px 16px 16px 0; }
.facts > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: 1.35rem; font-stretch: 75%; font-weight: 700; line-height: 1.15; margin-top: 4px; }
.facts small { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { grid-column: span 2; padding-left: 0; border-left: none; border-top: 1px solid var(--line); }
}

.intro { font-size: 1.1rem; max-width: 34em; margin-top: 24px; }

.step { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; }
.step h2 { display: flex; align-items: baseline; gap: 12px; }
.step h2 .num { color: var(--accent); font-size: 1rem; letter-spacing: 0.08em; }

.done { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.done h2 { font-size: clamp(2.4rem, 9vw, 3.6rem); }
.done ul { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.done li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 600; }

footer.contact a { white-space: nowrap; }
footer.contact { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }

/* ---------- Admin ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.stat { padding: 14px 16px 16px 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 2.2rem; font-stretch: 62%; font-weight: 800; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { padding-top: 0; }
td { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
td button { padding: 6px 12px; font-size: 0.8rem; }

.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.open { color: var(--muted); border: 1px solid var(--line); }

@media print {
  :root { --text: #000; --muted: #555; --line: #bbb; --surface: #fff; --bg: #fff; }
  .no-print { display: none !important; }
  .card { border: none; padding: 0; }
}
