@font-face {
  font-family: "Hanson";
  src: url("fonts/hanson-bold.woff2") format("woff2"), url("fonts/hanson-bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
:root {
  --bg: #0d0b2f;
  --ink: #fff;
  --accent: #d81e78;
  --accent-hot: #ff4d96;
  --blue: #2f33d8;
  --muted: rgba(255, 255, 255, .56);
  --line: rgba(255, 255, 255, .14);
  --card: rgba(255, 255, 255, .05);
  --ok: #19c37d;
  --bad: #ff3b5c;
  --warn: #ffb020;
  --display: "Hanson", "Arial Black", Impact, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(60% 45% at 18% 0%, rgba(216, 30, 120, .32), transparent 70%),
    radial-gradient(55% 50% at 90% 100%, rgba(47, 51, 216, .38), transparent 72%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 64px; }
.head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 0; margin-bottom: 28px; border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--display); font-size: 20px; letter-spacing: .12em; text-decoration: none; }
.brand small { font-family: var(--sans); font-size: 10px; letter-spacing: .28em; color: var(--muted); margin-left: 10px; font-weight: 600; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  padding: 9px 14px; border-radius: 999px; color: var(--muted); border: 1px solid transparent;
}
.nav a:hover { color: #fff; border-color: var(--line); }
.nav a.on { color: #fff; border-color: rgba(255, 255, 255, .4); }

.kicker { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.slash { color: var(--accent-hot); }
h1, h2, h3 { margin: 0; }
.h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(30px, 5vw, 52px); line-height: .95; margin-bottom: 24px; }
.h2 { font-family: var(--display); text-transform: uppercase; font-size: 20px; line-height: 1.1; margin-bottom: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
p { margin: 0 0 12px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 28px); backdrop-filter: blur(8px); }
.stack > * + * { margin-top: 14px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); }
.stat b { display: block; font-family: var(--display); font-size: 30px; line-height: 1.1; }
.stat span { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

label { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; color: #fff; background: rgba(0, 0, 0, .25);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent-hot); }
textarea { min-height: 140px; resize: vertical; }
select option { background: var(--bg); }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.check { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 14px; color: #fff; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.btn {
  --pad: 13px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: var(--pad);
  background: #fff; color: #000; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; border: 1px solid #fff; border-radius: 999px; cursor: pointer;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), background .2s, color .2s, box-shadow .3s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 40px -12px var(--accent-hot); }
.btn--ghost { background: transparent; color: #fff; border-color: var(--line); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; box-shadow: none; }
.btn--sm { --pad: 8px 14px; font-size: 10px; }
.btn--danger { background: transparent; color: var(--bad); border-color: rgba(255, 59, 92, .45); }
.btn--danger:hover { background: var(--bad); border-color: var(--bad); color: #fff; box-shadow: none; }
.btn--block { width: 100%; }
.btn--xl { --pad: 22px 28px; font-size: 14px; }
.btn--go { background: var(--ok); border-color: var(--ok); color: #04170e; }
.btn--go:hover { background: #12a86a; border-color: #12a86a; color: #fff; box-shadow: 0 10px 40px -12px var(--ok); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

.flash { border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; border: 1px solid; }
.flash.ok { border-color: rgba(25, 195, 125, .5); background: rgba(25, 195, 125, .12); }
.flash.err { border-color: rgba(255, 59, 92, .5); background: rgba(255, 59, 92, .12); }
.flash.warn { border-color: rgba(255, 176, 32, .5); background: rgba(255, 176, 32, .12); }

.testbar {
  background: repeating-linear-gradient(-45deg, var(--warn), var(--warn) 12px, #f19a00 12px, #f19a00 24px);
  color: #000; text-align: center; font-weight: 800; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; padding: 7px;
}

.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .07); vertical-align: middle; }
tr:hover td { background: rgba(255, 255, 255, .025); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.pill { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: rgba(25, 195, 125, .45); }
.pill.used { color: var(--accent-hot); border-color: rgba(255, 77, 150, .45); }
.pill.void { color: var(--muted); text-decoration: line-through; }
.pill.err { color: var(--bad); border-color: rgba(255, 59, 92, .45); }
.pill.warn { color: var(--warn); border-color: rgba(255, 176, 32, .45); }

.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ticket-tile { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--card); }
.ticket-tile img { width: 100%; border-radius: 10px; display: block; margin-bottom: 12px; aspect-ratio: 2 / 3; object-fit: cover; background: rgba(0,0,0,.2); }

pre.payload { white-space: pre-wrap; word-break: break-all; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 12px; max-height: 320px; overflow: auto; margin: 8px 0 0; }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; }
code { background: rgba(0, 0, 0, .3); padding: 2px 6px; border-radius: 6px; font-size: 13px; word-break: break-all; }

/* ---------- Scan- / Statusseiten (mobil) ---------- */
.center { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.panel { width: 100%; max-width: 440px; text-align: center; }
.panel .card { text-align: left; }
.big-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(34px, 11vw, 56px); line-height: .92; margin: 0 0 18px; }
.status {
  border-radius: 22px; padding: 28px 22px; margin-bottom: 18px; text-align: center; border: 2px solid;
}
.status .icon { font-size: 56px; line-height: 1; margin-bottom: 10px; }
.status .word { font-family: var(--display); text-transform: uppercase; font-size: clamp(30px, 10vw, 44px); line-height: 1; }
.status .sub { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.status.valid { border-color: var(--ok); background: rgba(25, 195, 125, .14); }
.status.valid .word { color: var(--ok); }
.status.done { border-color: var(--ok); background: var(--ok); color: #04170e; }
.status.done .sub { color: rgba(4, 23, 14, .8); }
.status.used { border-color: var(--bad); background: rgba(255, 59, 92, .16); }
.status.used .word { color: var(--bad); }
.status.neutral { border-color: var(--line); background: var(--card); }
.ticket-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; text-align: left; }
.ticket-meta dt { color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding-top: 2px; }
.ticket-meta dd { margin: 0; word-break: break-word; }

/* ---------- Shop ---------- */
.shop-hero { padding: clamp(28px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.shop-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(48px, 11vw, 132px); line-height: .9; letter-spacing: -.01em; margin: 0 0 18px; }
.shop-meta { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .84); }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .shop-grid { grid-template-columns: 1fr; } }
.total { font-family: var(--display); font-size: 26px; line-height: 1; padding: 12px 0; }
#paypal-buttons { margin-top: 6px; min-height: 50px; }
.shop-foot { display: flex; gap: 20px; flex-wrap: wrap; padding: 28px 0 0; }
.shop-foot a { text-decoration: none; border-bottom: 1px solid var(--line); }
.shop-foot a:hover { color: #fff; border-color: var(--accent-hot); }
.check a, .card a { color: #fff; text-decoration-color: var(--accent); }
.overlay { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(13, 11, 47, .88); backdrop-filter: blur(6px); }
.overlay.on { display: flex; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent-hot); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* ---------- Vorregistrierung / Pass ---------- */
.claim { font-family: var(--display); text-transform: uppercase; font-size: clamp(24px, 4vw, 34px); line-height: 1; margin: 0; }
.lead-sm { font-size: 16px; color: rgba(255, 255, 255, .86); margin: 0; }
.fine { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; }
.fine a { color: rgba(255, 255, 255, .8); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--display); color: var(--accent-hot); font-size: 15px; }
.pass { max-width: 520px; margin: 0 auto; }
.pass-card img { width: 100%; max-width: 420px; margin: 12px auto 0; display: block; border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(216, 30, 120, .6); }
.progress { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-hot)); transition: width .4s; }
.price-tag { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-tag b { font-family: var(--display); font-size: clamp(40px, 8vw, 56px); line-height: 1; color: var(--accent-hot); }
.price-tag s { color: var(--muted); font-size: 18px; }
.price-tag span { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }

/* Statistik */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.chart .col { flex: 1; height: 100%; position: relative; display: flex; align-items: flex-end; justify-content: center; min-width: 2px; }
.chart .col:hover { background: rgba(255, 255, 255, .05); }
.chart i { display: block; position: absolute; bottom: 0; border-radius: 2px 2px 0 0; }
.chart i.v { left: 0; right: 0; background: rgba(255, 77, 150, .35); }
.chart i.r { left: 25%; right: 25%; background: var(--accent-hot); }
.dot-v, .dot-r { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; background: rgba(255, 77, 150, .35); }
.dot-r { background: var(--accent-hot); }
.bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: 2px; background: var(--accent-hot); }
