/* Tokens, Typografie, Buttons und Felder stammen 1:1 von ps-events.de */
:root {
  --bg: #000;
  --bg-2: #0b0b0d;
  --surface: #141417;
  --surface-2: #1c1c20;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #8e8e93;
  --line: rgba(255,255,255,.08);
  --brand: #e30613;
  --brand-hover: #c80511;
  --on-brand: #fff;
  --accent: #ff3b47;
  --accent-2: #b14bff;
  --ok: #32d74b;
  --err: #ff8a84;
  --glass: rgba(22,22,25,.62);
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --spring: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; scrollbar-gutter: stable; scrollbar-color: #3a3a40 #000; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; caret-color: var(--accent);
}
a { color: inherit; text-underline-offset: 3px; }
img, svg { display: block; }
::selection { background: var(--brand); color: var(--on-brand); }
main:focus { outline: none; }
h1:focus { outline: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-2); }
.nb { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--text); color: #000; padding: 10px 16px; border-radius: 99px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }

.display { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-size: clamp(2.75rem, 7.4vw, 5.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; margin: 0; text-wrap: balance; }
.h2 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 .4em; text-wrap: balance; }
.h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.012em; font-weight: 600; margin: 0 0 .35em; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.35; letter-spacing: -0.008em; color: #c7c7cc; margin: 0; font-weight: 500; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 1rem; }
.logo { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.logo img { width: 118px; height: auto; }
.nav-links { display: flex; gap: 1.6rem; font-size: .85rem; }
.nav-links a { text-decoration: none; color: var(--text-2); padding: 12px 0; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.demo-pill { font-size: .75rem; font-weight: 600; color: var(--text-2); background: rgba(255,255,255,.08); padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--text); cursor: pointer; border-radius: 12px; place-items: center; -webkit-tap-highlight-color: transparent; }
.menu-btn:active { background: rgba(255,255,255,.1); }
.menu-btn svg line { transition: transform .3s var(--spring); transform-origin: center; }
.nav.open .menu-btn .l1 { transform: translateY(4px) rotate(45deg); }
.nav.open .menu-btn .l2 { transform: translateY(-4px) rotate(-45deg); }
.menu { position: absolute; top: 56px; right: var(--gutter); min-width: 220px; background: rgba(28,28,32,.94); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); border-radius: 18px; padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08); transform-origin: top right; transform: scale(.92); opacity: 0; visibility: hidden; transition: transform .3s var(--spring), opacity .2s ease, visibility 0s .3s; }
.nav.open .menu { transform: none; opacity: 1; visibility: visible; transition: transform .3s var(--spring), opacity .2s ease, visibility 0s; }
.menu a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; text-decoration: none; font-size: 1.05rem; font-weight: 500; }
.menu a:active { background: rgba(255,255,255,.1); }
@media (max-width: 760px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (min-width: 760.02px) { .menu { display: none; } }
@media (max-width: 380px) { .demo-pill { font-size: .7rem; padding: 5px 9px; } .logo img { width: 96px; } }

/* ---------- Buttons ---------- */
.btn { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .95rem; letter-spacing: -0.005em; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: 0 1.25rem; border-radius: 999px; text-decoration: none; background: var(--text); color: #000; transition: transform 100ms ease-out, background-color .2s, opacity .2s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.96); }
.btn.small { min-height: 36px; padding: 0 .9rem; font-size: .82rem; }
.btn.accent { background: var(--brand); color: var(--on-brand); }
.btn.accent:hover { background: var(--brand-hover); }
.btn.ghost { background: rgba(255,255,255,.1); color: var(--text); }
.btn.ghost:hover { background: rgba(255,255,255,.16); }
.btn.wide { width: 100%; min-height: 52px; font-size: 1.02rem; }
.btn[aria-disabled="true"] { background: rgba(255,255,255,.1); color: var(--text-2); cursor: default; }
.btn[aria-disabled="true"]:active { transform: none; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.round { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.1); color: var(--text); transition: transform 100ms ease-out, opacity .2s, background-color .2s; touch-action: manipulation; }
.round:hover { background: rgba(255,255,255,.16); }
.round:active { transform: scale(.92); }
.round[aria-disabled="true"] { opacity: .3; cursor: default; }
.round[aria-disabled="true"]:active { transform: none; }

/* ---------- Eventseite ---------- */
.event { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 96px 0 56px; overflow: hidden; isolation: isolate; }
.event-photo { position: absolute; inset: 0; z-index: -2; }
.event-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform: scaleX(-1); opacity: .62; }
.event-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 8%, rgba(0,0,0,.6) 50%, rgba(0,0,0,.35) 100%); }
.event::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; background: linear-gradient(to bottom, transparent, var(--bg)); }
.event-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 5vw, 72px); align-items: center; width: 100%; }
.facts { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; margin: 1.4rem 0 0; padding: 0; list-style: none; font-size: 1.02rem; font-weight: 500; }
.event .lead { max-width: 34ch; margin-top: 1.1rem; }
.organizer { margin: 1.5rem 0 0; font-size: .88rem; color: #c7c7cc; }

.tickets { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.tickets h2 { margin: 0 0 .25rem; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.15; }
.tickets > p { margin: 0 0 .75rem; color: var(--text-2); font-size: .92rem; }
.cat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.cat strong { display: block; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.25; }
.cat .price { display: block; font-weight: 600; margin-top: 2px; }
.cat .sub { display: block; font-size: .82rem; color: var(--text-2); margin-top: 2px; }
.cat .low { color: var(--accent); font-weight: 600; }
.cat.out strong, .cat.out .price { color: var(--text-3); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.tag-out { font-size: .82rem; font-weight: 600; color: var(--text-2); background: rgba(255,255,255,.08); padding: 7px 12px; border-radius: 99px; white-space: nowrap; }

.buybar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.buybar .sum { line-height: 1.2; min-width: 0; }
.buybar .sum b { display: block; font-size: 1.25rem; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.buybar .sum small { color: var(--text-2); font-size: .78rem; }
.buybar .btn { flex: 0 0 auto; min-height: 48px; }

.info { padding: clamp(56px, 8vw, 96px) 0; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 18px; margin-top: 1.5rem; }
.info-grid > div { border-top: 1px solid var(--line); padding-top: 18px; }
.info-grid p { margin: 0; color: var(--text-2); font-size: .95rem; }
.info-grid p + p { margin-top: .5rem; }
.synthetic { margin-top: 28px; font-size: .85rem; color: var(--text-3); }

footer { border-top: 1px solid var(--line); padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); font-size: .8rem; color: var(--text-3); background: var(--bg-2); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; }
footer nav a, footer nav button { color: var(--text-2); text-decoration: none; display: inline-block; padding: 8px 6px; background: none; border: 0; font: inherit; cursor: pointer; }
footer nav a:hover, footer nav button:hover { color: var(--text); }

@media (max-width: 860px) {
  .event { display: block; min-height: 0; padding: 88px 0 24px; }
  .event-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .event-photo { height: 560px; inset: 0 0 auto 0; }
  .event-photo img { object-position: 60% 40%; opacity: .55; }
  .event-photo::after { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.7) 55%, #000); }
  .event::after { display: none; }
  .tickets { padding-bottom: 8px; }
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(22,22,25,.86); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-top: 1px solid var(--line); }
  .has-buybar footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .info-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Bottom Sheet (wie das Anfrageformular der Website) ---------- */
dialog { color: var(--text); }
.sheet { position: fixed; inset: auto 0 0 0; margin: 0 auto; padding: 0; border: 0; width: min(100%, 640px); max-width: 100%; max-height: calc(100svh - 40px); background: rgba(28,28,32,.94); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%); border-radius: 28px 28px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08); transform: translateY(105%); transition: transform .42s var(--spring); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet.live { transform: none; }
.sheet.dragging { transition: none; }
.sheet::backdrop { background: rgba(0,0,0,.55); opacity: 0; transition: opacity .3s; }
.sheet.live::backdrop { opacity: 1; }
.grabber { padding: 10px 0 6px; cursor: grab; touch-action: none; flex-shrink: 0; }
.grabber::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.3); margin: 0 auto; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 6px 24px 12px; flex-shrink: 0; }
.sheet-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; }
.sheet-sub { margin: .25rem 0 0; font-size: .88rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sheet-sub b { color: var(--text); font-weight: 600; }
.close { width: 36px; height: 36px; flex-basis: 36px; position: relative; }
.close::after { content: ""; position: absolute; inset: -4px; }
.sheet-body { overflow-y: auto; padding: 8px 24px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.sheet-actions { display: grid; gap: 10px; margin-top: 18px; }

.field { margin-bottom: 14px; }
.field > label, .field > .label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; letter-spacing: .01em; }
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field input[type="search"], .field select { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background-color: rgba(255,255,255,.07); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; transition: border-color .15s, background-color .15s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); background-color: rgba(255,255,255,.1); }
.field input::placeholder { color: var(--text-3); }
.field.invalid input { border-color: #ff6961; }
.field .err { display: none; font-size: .8rem; color: var(--err); margin-top: 5px; }
.field.invalid .err { display: block; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; gap: 0; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: #c7c7cc; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--brand); }
.check a, .linkish { color: var(--accent); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.form-note { font-size: .8rem; color: var(--text-2); margin: 12px 0 0; }
.form-error { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,105,97,.12); color: #ffb4ae; font-size: .9rem; }
.form-error:empty { display: none; }

.lines { list-style: none; margin: 0 0 14px; padding: 4px 16px; background: rgba(255,255,255,.05); border-radius: 14px; }
.lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: .95rem; font-variant-numeric: tabular-nums; }
.lines li + li { border-top: 1px solid var(--line); }
.lines .total { font-weight: 700; font-size: 1.05rem; }
.lines small { display: block; color: var(--text-2); font-weight: 400; font-size: .78rem; }

.pay { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.pay legend { font-size: .8rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; padding: 0; }
.pay label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid transparent; cursor: pointer; font-weight: 500; transition: border-color .15s, background-color .15s; }
.pay label:hover { background: rgba(255,255,255,.1); }
.pay label:has(input:checked) { border-color: var(--accent); background: rgba(255,255,255,.1); }
.pay input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex-shrink: 0; }
.pay small { margin-left: auto; color: var(--text-2); font-weight: 400; font-size: .8rem; }
.pay.invalid label { border-color: #ff6961; }
.legal-box { font-size: .85rem; color: #c7c7cc; margin: 16px 0 14px; }
.legal-box p { margin: 0 0 10px; }
.demo-switch { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.demo-switch .check { font-size: .82rem; color: var(--text-2); }
.demo-switch input { width: 18px; height: 18px; }

/* ---------- Kleiner Bestätigungsdialog ---------- */
.confirm { border: 0; padding: 24px; border-radius: var(--radius); background: var(--surface-2); width: min(calc(100% - 32px), 440px); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.confirm::backdrop { background: rgba(0,0,0,.6); }
.confirm h2 { margin: 0 0 .5rem; font-size: 1.25rem; letter-spacing: -0.015em; }
.confirm p { margin: 0 0 1.1rem; color: #c7c7cc; font-size: .95rem; }
.confirm .acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* ---------- Bestätigung: das Ticket ---------- */
.done { position: relative; padding: 104px 0 72px; overflow: hidden; isolation: isolate; min-height: 100svh; }
.spot { position: absolute; inset: 0 0 auto 0; height: 760px; z-index: -1; pointer-events: none; background: radial-gradient(60% 70% at 50% 0%, rgba(177,75,255,.34), transparent 70%), radial-gradient(34% 56% at 72% 0%, rgba(227,6,19,.28), transparent 72%); animation: lights 1.4s var(--spring) both; }
@keyframes lights { from { opacity: 0; } to { opacity: 1; } }
.done-head { max-width: 720px; margin-bottom: 32px; }
.done-head .lead { margin-top: .9rem; }
.ticket-list { display: grid; gap: 22px; max-width: 760px; }
.ticket { --notch: 13px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 216px; background: #fff; color: #000; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.6); animation: rise .9s var(--spring) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
.ticket::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.95) 50%, transparent 62%), linear-gradient(105deg, transparent 30%, rgba(177,75,255,.22) 50%, transparent 70%); transform: translateX(-110%); animation: sweep 1.25s .55s var(--spring) both; animation-delay: calc(var(--i, 0) * 110ms + 500ms); pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translateY(48px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sweep { to { transform: translateX(110%); } }
.t-main { padding: 22px 24px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.t-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.t-top img { width: 96px; height: auto; }
.t-cat { font-size: .82rem; font-weight: 700; color: #fff; background: var(--ticket-brand, #e30613); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.t-event { font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; margin: 0; }
.t-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: auto 0 0; }
.t-meta dt { font-size: .72rem; font-weight: 600; color: #58585e; }
.t-meta dd { margin: 0; font-size: .95rem; font-weight: 600; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.t-stub { position: relative; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-left: 2px dashed #c7c7cc; }
.t-stub::before, .t-stub::after { content: ""; position: absolute; left: calc(var(--notch) * -1 - 1px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%; background: #000; }
.t-stub::before { top: calc(var(--notch) * -1); }
.t-stub::after { bottom: calc(var(--notch) * -1); }
.t-qr { width: 100%; max-width: 176px; }
.t-qr svg { width: 100%; height: auto; }
.t-code { font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.ticket.void { filter: grayscale(1); opacity: .55; }
.done-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 32px; }
.order-sum { max-width: 760px; margin-top: 36px; }
.order-sum .lines { background: var(--surface); }
@media (max-width: 620px) {
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .t-stub { border-left: 0; border-top: 2px dashed #c7c7cc; }
  .t-stub::before, .t-stub::after { top: calc(var(--notch) * -1 - 1px); bottom: auto; }
  .t-stub::before { left: calc(var(--notch) * -1); }
  .t-stub::after { left: auto; right: calc(var(--notch) * -1); }
  .t-qr { max-width: 200px; }
}

/* ---------- Einlass: draußen, dunkel, eine Hand ---------- */
.door { padding: 76px 0 40px; min-height: 100svh; }
.door-wrap { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }
.door-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.door-head h1 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.door-head .num { font-weight: 600; white-space: nowrap; }
.viewfinder { position: relative; aspect-ratio: 1 / 1; max-height: 52svh; width: 100%; border-radius: var(--radius); overflow: hidden; background: radial-gradient(70% 70% at 50% 40%, #1c1c20, #0b0b0d); display: grid; place-items: center; text-align: center; padding: 24px; }
.viewfinder::before { content: ""; position: absolute; inset: 14%; border-radius: 18px; --c: rgba(255,255,255,.8); background: linear-gradient(var(--c),var(--c)) 0 0/34px 3px, linear-gradient(var(--c),var(--c)) 0 0/3px 34px, linear-gradient(var(--c),var(--c)) 100% 0/34px 3px, linear-gradient(var(--c),var(--c)) 100% 0/3px 34px, linear-gradient(var(--c),var(--c)) 0 100%/34px 3px, linear-gradient(var(--c),var(--c)) 0 100%/3px 34px, linear-gradient(var(--c),var(--c)) 100% 100%/34px 3px, linear-gradient(var(--c),var(--c)) 100% 100%/3px 34px; background-repeat: no-repeat; }
.viewfinder p { position: relative; margin: 0; max-width: 24ch; color: var(--text-2); font-size: .95rem; }
.manual { display: flex; gap: 8px; margin: 16px 0 0; }
.manual input { flex: 1; min-width: 0; font: inherit; color: var(--text); background: rgba(255,255,255,.07); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; text-transform: uppercase; letter-spacing: .04em; }
.manual input::placeholder { text-transform: none; letter-spacing: 0; color: var(--text-3); }
.manual input:focus { outline: none; border-color: var(--accent); }
.door h2 { font-size: 1rem; font-weight: 600; margin: 26px 0 2px; }
.door-list { list-style: none; margin: 0; padding: 0; }
.door-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.door-list button:hover { color: #fff; }
.door-list small { display: block; color: var(--text-2); font-size: .82rem; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.state svg { width: 14px; height: 14px; flex: none; }
.state.ok { color: var(--ok); }
.state.off { color: var(--text-2); }
.state.bad { color: var(--err); }

.verdict { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; gap: 10px; border: 0; width: 100%; cursor: pointer; font: inherit; animation: verdict .22s var(--spring) both; }
@keyframes verdict { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.verdict svg { width: clamp(80px, 22vw, 128px); height: auto; }
.verdict b { font-size: clamp(2.6rem, 12vw, 4.5rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; }
.verdict span { font-size: 1.15rem; font-weight: 500; }
.verdict small { font-size: .9rem; margin-top: 18px; opacity: .8; }
.verdict.good { background: var(--ok); color: #000; }
.verdict.bad { background: var(--brand); color: #fff; }
.verdict.warn { background: #ffd60a; color: #000; }

/* ---------- Verwaltung ---------- */
.admin { padding: 76px 0 72px; min-height: 100svh; background: var(--bg-2); }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 8px; }
.admin-head h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.025em; line-height: 1.1; }
.admin-head p { margin: .2rem 0 0; color: var(--text-2); font-size: .92rem; }
.tabs { display: flex; gap: 4px; margin: 16px calc(var(--gutter) * -1) 24px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs a { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 clamp(6px, 1.6vw, 12px); text-decoration: none; color: var(--text-2); font-size: .92rem; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.panel { background: var(--surface); border-radius: 18px; padding: clamp(16px, 2.4vw, 24px); margin-bottom: 18px; }
.panel h2 { margin: 0 0 .7rem; font-size: 1.1rem; letter-spacing: -0.012em; }
.panel > p:first-of-type { margin-top: 0; }
.head-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.head-row h2 { margin: 0; }

.totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 18px; }
.totals > div { background: var(--surface); padding: 16px clamp(14px, 2vw, 20px); }
.totals dt { font-size: .82rem; color: var(--text-2); }
.totals dd { margin: 2px 0 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.totals small { display: block; font-size: .78rem; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
@media (max-width: 760px) { .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-weight: 600; font-size: .78rem; color: var(--text-2); padding: 0 10px 8px 0; white-space: nowrap; }
td { padding: 11px 10px 11px 0; border-top: 1px solid var(--line); vertical-align: middle; }
th:last-child, td:last-child { padding-right: 0; }
.r { text-align: right; font-variant-numeric: tabular-nums; }
.fill { display: flex; align-items: center; gap: 8px; min-width: 96px; }
.bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.bar.full i { background: var(--text-2); }
.fill span { font-size: .82rem; color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 3.5ch; text-align: right; white-space: nowrap; }

.inline { width: 96px; font: inherit; font-size: .95rem; color: var(--text); background: rgba(255,255,255,.07); border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; text-align: right; font-variant-numeric: tabular-nums; }
.inline.text { width: 100%; min-width: 130px; text-align: left; }
.inline:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.1); }
.inline[aria-invalid="true"] { border-color: #ff6961; }
.table-note { font-size: .85rem; color: var(--text-2); margin: 12px 0 0; }
.table-note.err { color: var(--err); }
.scroll-x { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; max-width: 640px; }
.settings .field { margin-bottom: 12px; }
.settings .field input[type="color"] { width: 100%; height: 46px; padding: 4px; border: 0; border-radius: 12px; background: rgba(255,255,255,.07); cursor: pointer; }
@media (max-width: 560px) { .settings { grid-template-columns: minmax(0, 1fr); } }

.search { margin-bottom: 8px; max-width: 360px; }
.empty { padding: 28px 0; color: var(--text-2); text-align: center; }

@media (max-width: 720px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.stack, table.stack tbody { display: block; }
  table.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
  table.stack td { display: block; padding: 0; border: 0; }
  table.stack td.r { text-align: right; }
  table.stack td.full-row { grid-column: 1 / -1; margin-top: 6px; }
  table.stack td.hide-sm { display: none; }
  table.edit thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.edit, table.edit tbody { display: block; }
  table.edit tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
  table.edit td { display: block; padding: 0; border: 0; text-align: left; }
  table.edit td.edit-name { grid-column: 1 / -1; }
  table.edit td[data-label]::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
  table.edit .inline { width: 100%; text-align: left; }
}

.prose { max-width: 62ch; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 .6rem; }
.prose p { color: #c7c7cc; }
.page { padding: 104px 0 72px; min-height: 80svh; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 130; transform: translate(-50%, 20px); background: #2a2a30; color: var(--text); padding: 11px 18px; border-radius: 99px; font-size: .9rem; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: transform .35s var(--spring), opacity .2s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.has-buybar .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 860.02px) { .has-buybar .toast { bottom: 24px; } }

/* ---------- Bedürfnisse aus den Systemeinstellungen ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .ticket::after { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #111; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sheet, .menu, .buybar { background: #1c1c20 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
@media (prefers-contrast: more) {
  :root { --text-2: #d2d2d7; --text-3: #a1a1a6; --line: rgba(255,255,255,.3); }
  .nav { background: #000; border-bottom: 1px solid #fff; }
  .tickets, .panel { outline: 1px solid rgba(255,255,255,.4); }
}

/* ---------- Ticket drucken: hell, ohne Bühne ---------- */
@media print {
  @page { margin: 14mm; }
  html, body, .done { background: #fff !important; color: #000 !important; min-height: 0; }
  .nav, .spot, .done-head, .done-actions, .order-sum, footer, .toast, .skip, dialog { display: none !important; }
  .done { padding: 0; }
  .wrap { padding: 0; max-width: none; }
  .ticket { box-shadow: none; border: 1px solid #000; animation: none; break-inside: avoid; }
  .ticket::after { display: none; }
  .t-stub::before, .t-stub::after { display: none; }
  .t-cat { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Ergänzungen für den echten Shop ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.banner { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,214,10,.12); color: #ffe27a; font-size: .9rem; }
.closed-note { margin: 8px 0; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 600; }
.field input[type="password"], .field input[type="url"], .field input[type="datetime-local"] { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background-color: rgba(255,255,255,.07); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; transition: border-color .15s, background-color .15s; }
.field select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a1a1a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field select option { background: #1c1c20; color: var(--text); }
.field .plain { margin: 0; padding: 12px 0; color: var(--text-2); }
.settings .field input[type="color"] { width: 100%; height: 46px; padding: 4px; border: 0; border-radius: 12px; background: rgba(255,255,255,.07); cursor: pointer; }
.settings > div:last-child:not(.field) { align-self: end; margin-bottom: 12px; }
.form-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.tenant-form { max-width: none; }
.login { max-width: 420px; }
.login h1 { font-size: 2rem; letter-spacing: -0.025em; margin: 0 0 1rem; }
.event-pick { max-width: 360px; margin: 12px 0 0; }
.sub-cell { display: block; font-size: .8rem; color: var(--text-2); overflow-wrap: anywhere; }
.acts-cell { white-space: nowrap; }
.acts-cell .btn + .btn { margin-left: 6px; }
.inline.under { margin-top: 6px; font-size: .85rem; }
.event-link { display: block; padding: 16px 0; font-size: 1.15rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.t-void { font-weight: 700; margin: 0; }
.door-sub { margin: -6px 0 14px; font-size: .92rem; }
.door .finder-inner { position: relative; display: grid; gap: 14px; justify-items: center; }
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder::before { z-index: 1; pointer-events: none; }
.verdict em { font-style: normal; font-weight: 600; font-size: .9rem; }
@media (max-width: 720px) { table.stack td.acts-cell { grid-column: 1 / -1; margin-top: 6px; text-align: left; } }

/* ---------- Event mit eigenem Banner ---------- */
.event.has-banner { display: block; min-height: 0; padding: 72px 0 clamp(32px, 5vw, 56px); }
.event.has-banner::after { display: none; }
.event-banner { width: 100%; height: auto; border-radius: clamp(10px, 1.6vw, 18px); margin-bottom: clamp(20px, 3vw, 36px); }
.event.has-banner .display { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.event.has-banner .event-grid { align-items: start; }
