@import url("https://fonts.googleapis.com/css2?family=Creepster&family=Kalam:wght@700&family=Nunito:wght@400;700;900&display=swap");

:root {
  --bg: #0c0a08;
  --panel: #1b1511;
  --panel2: #261d16;
  --line: #3a2d22;
  --orange: #ff7a1a;
  --orange-d: #c95300;
  --green: #9be22d;
  --bone: #f3e6c8;
  --muted: #a8977f;
  --red: #e0533a;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg) radial-gradient(ellipse at top, #2a1d10 0%, var(--bg) 60%) fixed;
  color: var(--bone);
  font: 17px/1.45 "Nunito", system-ui, sans-serif;
  min-height: 100vh;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; }
.spooky { font-family: "Creepster", cursive; color: var(--orange); letter-spacing: 1px; font-weight: 400; }
.hand { font-family: "Kalam", cursive; color: var(--green); }
h1.spooky { font-size: 52px; line-height: 1; margin: 8px 0 0; text-shadow: 0 0 18px rgba(255,122,26,.35); }
h2.spooky { font-size: 34px; margin: 0 0 8px; }
.club { font-weight: 900; letter-spacing: 2px; color: var(--orange); font-size: 13px; text-transform: uppercase; }
.sub { font-family: "Kalam", cursive; color: var(--bone); font-size: 22px; margin: 0 0 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 14px 0; }
.muted { color: var(--muted); font-size: 14px; }
.big-btn {
  display: block; width: 100%; text-align: left; border: 0; cursor: pointer;
  border-radius: 18px; padding: 20px; margin: 12px 0; color: #140b02;
  font: 900 26px/1.1 "Nunito", sans-serif;
}
.big-btn small { display: block; font-weight: 700; font-size: 15px; margin-top: 6px; opacity: .8; }
.big-btn.orange { background: linear-gradient(135deg, var(--orange), #ffb347); }
.big-btn.green { background: linear-gradient(135deg, var(--green), #d6ff8a); }
.big-btn:disabled { filter: grayscale(.85); opacity: .7; cursor: not-allowed; }
.btn {
  display: inline-block; border: 0; border-radius: 12px; padding: 14px 18px; cursor: pointer;
  font: 900 17px "Nunito", sans-serif; background: var(--orange); color: #140b02;
}
.btn.full { width: 100%; }
.btn.ghost { background: transparent; color: var(--bone); border: 1px solid var(--line); }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.back { background: none; border: 0; color: var(--muted); font: 700 15px "Nunito"; padding: 6px 0; cursor: pointer; }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password] {
  width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #0f0c09; color: var(--bone); font: 17px "Nunito";
}
input[type=text]:focus { outline: 2px solid var(--orange); }
.choice { display: flex; gap: 10px; }
.choice label {
  flex: 1; margin: 0; padding: 14px; border-radius: 12px; border: 2px solid var(--line);
  background: #0f0c09; cursor: pointer; font-weight: 700; text-align: center;
}
.choice input { display: none; }
.choice input:checked + span { color: var(--green); }
.choice label:has(input:checked) { border-color: var(--green); }
.choice.missing label { border-color: var(--red); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; margin: 14px 0; }
.check input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--orange); }
.photo-btns { display: flex; gap: 10px; }
.photo-btns .btn { flex: 1; text-align: center; }
.preview { width: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; margin-top: 12px; background: #000; display: none; }
.err { color: var(--red); font-weight: 700; min-height: 1em; }
.ok-badge { font-size: 64px; text-align: center; margin: 4px 0; }

/* Abstimmung */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.card {
  position: relative; background: var(--panel2); border: 3px solid transparent; border-radius: 14px;
  overflow: hidden; cursor: pointer; padding: 0; color: var(--bone); text-align: left; font: inherit;
}
.card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #000; }
.card .meta { padding: 8px 10px 10px; }
.card .nr { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.75); color: var(--orange); font-weight: 900; border-radius: 8px; padding: 2px 8px; }
.card .zoom { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.7); border: 0; color: #fff; border-radius: 50%; width: 36px; height: 36px; font-size: 18px; cursor: pointer; }
.card.sel { border-color: var(--green); box-shadow: 0 0 0 3px rgba(155,226,45,.25); }
.card.sel::after { content: "✓"; position: absolute; bottom: 52px; right: 10px; background: var(--green); color: #000; font-weight: 900; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; font-size: 20px; }
.card.own { opacity: .4; cursor: not-allowed; }
.card .name { font-weight: 900; }
.card .title { font-size: 13px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 900; color: #000; background: var(--green); border-radius: 6px; padding: 1px 6px; margin-top: 4px; }
.sticky { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; place-items: center; z-index: 50; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 12px; }
.lightbox .cap { text-align: center; margin-top: 10px; font-weight: 900; }
.summary { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.summary img { width: 72px; height: 96px; object-fit: cover; border-radius: 10px; }
.steps { display: flex; gap: 6px; margin-bottom: 10px; }
.steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps span.on { background: var(--orange); }
footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 30px; }
