:root {
  --accent: #b3122e;      /* Vereinsfarbe hier anpassen */
  --accent-dark: #8a0d23;
  --bg: #f5f3f0;
  --card: #fff;
  --text: #1d1b19;
  --muted: #6b6560;
  --ok: #1f7a3a;
  --err: #b3261e;
  --radius: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 520px; margin: 0 auto; padding: 28px 16px 48px; }
.wrap.wide { max-width: 1100px; }
header h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.sub { margin: 6px 0 20px; color: var(--muted); }
.card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 6px 24px rgba(0,0,0,.05); }
.card.narrow { max-width: 360px; margin: 10vh auto 0; }
.center { text-align: center; }
.big { font-size: 3rem; margin: 0; }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.field input { width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid #d8d3ce; border-radius: 10px; }
.field input:focus { outline: 2px solid var(--accent); border-color: transparent; }

.pick {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 28px 16px; border: 2px dashed #d8d3ce; border-radius: 14px;
  cursor: pointer; text-align: center; transition: border-color .15s, background .15s;
}
.pick:active, .pick:hover { border-color: var(--accent); background: #fbf6f6; }
.pick input { display: none; }
.pick-icon { font-size: 2.2rem; line-height: 1; color: var(--accent); }
.pick-text { font-weight: 700; font-size: 1.1rem; }
.pick-hint { font-size: .85rem; color: var(--muted); }

.list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.list li { display: grid; grid-template-columns: 1fr 70px auto; gap: 10px; align-items: center; font-size: .9rem; }
.fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.list li.ok .bar i { background: var(--ok); width: 100%; }
.list li.ok .st { color: var(--ok); font-weight: 700; }
.list li.err .st { color: var(--err); }

.btn {
  display: inline-block; width: 100%; margin-top: 16px; padding: 14px 18px;
  font: inherit; font-weight: 700; color: #fff; background: var(--accent);
  border: 0; border-radius: 12px; cursor: pointer; text-align: center; text-decoration: none;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { background: #cfc9c4; cursor: default; }
.btn.small { width: auto; margin: 0; padding: 9px 14px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid #d8d3ce; }
.status { margin: 12px 0 0; text-align: center; font-weight: 600; }
.status.err { color: var(--err); }
.note { font-size: .8rem; color: var(--muted); margin-top: 16px; text-align: center; }

/* Admin */
.adminbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.adminbar small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.adminbar nav { display: flex; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 32px; }
.grid figure { margin: 0; background: #fff; border-radius: 10px; overflow: hidden; }
.grid img, .grid .ph { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee; }
.grid .ph { display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; }
.grid figcaption { display: flex; justify-content: space-between; padding: 4px 8px; }
.grid figcaption a, .grid figcaption button { background: none; border: 0; cursor: pointer; font-size: 1rem; text-decoration: none; color: var(--text); }
.grid figcaption form { margin: 0; }

.qrcard { text-align: center; }
.qrsheet h2 { margin: 0 0 4px; }
.qrlead { font-size: 1.3rem; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
#qrcode { width: 260px; max-width: 70vw; margin: 0 auto; }
#qrcode svg { width: 100%; height: auto; display: block; }
.qrurl { font-weight: 700; font-size: 1.1rem; margin: 10px 0 4px; }
.qrsmall { color: var(--muted); font-size: .9rem; margin: 0; }
.qractions { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }

@media print {
  body { background: #fff; }
  body * { visibility: hidden; }
  #qrprint, #qrprint * { visibility: visible; }
  #qrprint { position: absolute; inset: 0; padding-top: 25mm; }
  #qrprint h2 { font-size: 26pt; }
  .qrlead { font-size: 22pt; }
  #qrcode { width: 120mm; max-width: none; }
  .qrurl { font-size: 18pt; }
  .qrsmall { font-size: 13pt; }
}
