/* ✦ lelz Rewind – Apple-clean, schwarz/weiß wie das Logo */
:root {
  --bg: #f5f5f7; --card: #ffffff; --text: #1d1d1f; --text-2: #6e6e73; --text-3: #a1a1a6; --sep: rgba(0,0,0,.08); --fill: rgba(120,120,128,.12);
  --ink: #000; --paper: #fff; --gold: #ffb800; --blue: #0a84ff; --gray: #8e8e93; --red: #ff3b30;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.06); --shadow-lg: 0 30px 80px rgba(0,0,0,.18);
  --r: 22px; --ease: cubic-bezier(.32,.72,0,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --card: #1c1c1e; --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #6e6e73; --sep: rgba(255,255,255,.1); --fill: rgba(120,120,128,.24); --ink: #fff; --paper: #000; --shadow: 0 0 0 1px rgba(255,255,255,.06); color-scheme: dark; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
.muted { color: var(--text-2); } .small { font-size: 13px; } .err { color: var(--red); font-size: 14px; }
.spark { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -.1em; }
main { max-width: 1100px; margin: 0 auto; padding: 0 20px 120px; }
.boot { min-height: 80vh; display: grid; place-items: center; animation: pulse 1.6s ease-in-out infinite; } .boot.small { min-height: 30vh; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.97); } }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--fill); border-top-color: var(--ink); animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 30; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--sep); padding-top: env(safe-area-inset-top); }
body:not(.in) .top { display: none; }
.top-in { max-width: 1100px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; font-weight: 800; font-size: 17px; letter-spacing: -.01em; padding: 0; }
@media (prefers-color-scheme: dark) { .brand img { filter: drop-shadow(0 0 1px #fff); } }
.me-btn { display: flex; align-items: center; gap: 8px; border: 0; background: var(--fill); border-radius: 99px; padding: 4px 14px 4px 4px; cursor: pointer; font-weight: 600; font-size: 14px; }

/* Tabs */
.tabs { position: fixed; z-index: 30; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: color-mix(in srgb, var(--card) 80%, transparent); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 10px 40px rgba(0,0,0,.18), 0 0 0 1px var(--sep); }
.tabs:empty { display: none; }
.tab { display: flex; align-items: center; gap: 7px; border: 0; background: none; border-radius: 99px; padding: 11px 20px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--text-2); transition: background .3s var(--ease), color .3s; }
.tab.on { background: var(--ink); color: var(--paper); } .tab-i { font-size: 15px; }

/* Avatare */
.av { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; color: #fff; font-weight: 700; background: linear-gradient(135deg, hsl(var(--h, 220) 70% 58%), hsl(calc(var(--h, 220) + 40) 70% 46%)); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-xs { width: 22px; height: 22px; font-size: 11px; } .av-sm { width: 30px; height: 30px; font-size: 13px; } .av-md { width: 42px; height: 42px; font-size: 17px; } .av-lg { width: 72px; height: 72px; font-size: 28px; } .av-xl { width: 96px; height: 96px; font-size: 38px; }

/* Login */
.hero { text-align: center; padding: 9vh 0 30px; }
.hero-logo { position: relative; display: inline-block; width: min(420px, 78vw); animation: logoIn 1.1s var(--ease) both; }
.hero-logo img { width: 100%; display: block; filter: drop-shadow(0 18px 40px rgba(0,0,0,.18)); animation: float 6s ease-in-out infinite; }
.hero-logo .spark { position: absolute; color: var(--ink); width: 26px; height: 26px; animation: twinkle 2.4s ease-in-out infinite; }
.hero-logo .spark:nth-of-type(1) { top: -18px; right: 6%; } .hero-logo .spark:nth-of-type(2) { bottom: -10px; left: 4%; width: 18px; height: 18px; animation-delay: -1.2s; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .4; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
@keyframes logoIn { from { opacity: 0; transform: translateY(30px) scale(.94); filter: blur(12px); } }
.rw-title { margin: 34px 0 8px; display: flex; justify-content: center; align-items: baseline; gap: 14px; flex-wrap: wrap; animation: logoIn 1.1s .15s var(--ease) both; }
.rw-title span { font-size: clamp(54px, 11vw, 120px); font-weight: 900; font-style: italic; letter-spacing: -.045em; line-height: .9; color: var(--paper); -webkit-text-stroke: clamp(2.5px, .5vw, 4px) var(--ink); paint-order: stroke fill; text-shadow: clamp(4px, .8vw, 8px) clamp(4px, .8vw, 8px) 0 var(--ink); }
.rw-title em { font-size: clamp(30px, 6vw, 62px); font-weight: 900; font-style: italic; letter-spacing: -.03em; }
.hero-sub { max-width: 560px; margin: 18px auto 0; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.45; color: var(--text-2); animation: logoIn 1.1s .3s var(--ease) both; }
.login { max-width: 760px; margin: 30px auto 0; background: var(--card); border-radius: 30px; padding: 30px 24px; box-shadow: var(--shadow); text-align: center; animation: logoIn 1.1s .45s var(--ease) both; }
.login h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; } .login > p { margin: 6px 0 22px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.pick { display: grid; justify-items: center; gap: 8px; padding: 16px 6px; border: 0; border-radius: 20px; background: var(--fill); cursor: pointer; transition: transform .25s var(--ease), background .25s; }
.pick:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--fill) 160%, transparent); } .pick:active { transform: scale(.95); }
.pick b { font-size: 14px; }
.reg-btn { margin-top: 18px; border: 0; background: none; font-weight: 700; font-size: 15px; cursor: pointer; padding: 10px; }
.foot { text-align: center; color: var(--text-3); font-size: 12px; margin: 40px 0 0; letter-spacing: .1em; text-transform: uppercase; }

/* Countdown */
.count-card { margin: 26px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px 26px; border-radius: 28px; background: #000; color: #fff; position: relative; overflow: hidden; animation: up .7s var(--ease) both; }
@media (prefers-color-scheme: dark) { .count-card { background: #fff; color: #000; } .count-card .cc-sub, .count-card small { color: #6e6e73 !important; } }
.count-card::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%); pointer-events: none; }
.cc-k { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; opacity: .7; }
.cc-big { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.03em; margin-top: 4px; } .cc-big b { font-weight: 900; font-style: italic; }
.cc-sub { color: rgba(255,255,255,.6); font-size: 14px; }
.cc-stats { display: flex; gap: 22px; } .cc-stats div { display: grid; text-align: right; } .cc-stats b { font-size: 26px; font-weight: 800; } .cc-stats small { color: rgba(255,255,255,.6); font-size: 12px; }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }

/* Upload-Feld */
.drop { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 44px 24px 26px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow); cursor: pointer; border: 2px dashed transparent; transition: transform .3s var(--ease), border-color .3s, background .3s; animation: up .7s .08s var(--ease) both; }
.drop:hover { transform: translateY(-2px); border-color: var(--sep); }
body.dragging .drop { border-color: var(--ink); background: color-mix(in srgb, var(--card) 85%, var(--ink)); transform: scale(1.01); }
.drop-ic { position: relative; width: 84px; height: 84px; border-radius: 26px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 40px; font-weight: 300; margin-bottom: 10px; box-shadow: 0 14px 30px rgba(0,0,0,.2); transition: transform .4s var(--ease); }
.drop:hover .drop-ic { transform: rotate(-6deg) scale(1.05); }
.drop-ic .spark { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; color: var(--ink); animation: twinkle 2.4s infinite; }
.drop h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; } .drop p { margin: 0; color: var(--text-2); }
.prio-pick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; cursor: default; } .prio-pick > span { color: var(--text-2); font-size: 13px; margin-right: 4px; }
.pp { border: 0; border-radius: 99px; padding: 9px 15px; background: var(--fill); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .25s var(--ease); }
.pp.sm { padding: 6px 9px; font-size: 15px; }
.pp.on { background: var(--ink); color: var(--paper); transform: scale(1.04); }
.pp.p1.on { background: var(--gold); color: #000; } .pp.p2.on { background: var(--blue); color: #fff; } .pp.p3.on { background: var(--gray); color: #fff; }

/* Warteschlange */
.queue { margin-top: 18px; background: var(--card); border-radius: 26px; padding: 20px; box-shadow: var(--shadow); animation: up .5s var(--ease) both; }
.q-head { display: flex; justify-content: space-between; align-items: center; } .q-head h3 { margin: 0 0 10px; font-size: 18px; }
.link { border: 0; background: none; color: var(--blue); font-weight: 600; cursor: pointer; font-size: 14px; }
.bar { height: 5px; border-radius: 3px; background: var(--fill); overflow: hidden; margin-top: 6px; } .bar span { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width .4s var(--ease); }
.bar.big { height: 8px; border-radius: 4px; }
.q-list { margin-top: 12px; display: grid; }
.q-row { display: grid; grid-template-columns: 56px 1fr auto 48px; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--sep); animation: up .4s var(--ease) both; }
.q-th { position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--fill); display: grid; place-items: center; font-size: 22px; }
.q-th img { width: 100%; height: 100%; object-fit: cover; } .q-th i { position: absolute; right: 3px; bottom: 3px; font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: rgba(0,0,0,.6); border-radius: 5px; padding: 1px 4px; }
.q-main { min-width: 0; } .q-main b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .q-main small { color: var(--text-2); font-size: 12px; }
.q-prio { display: flex; gap: 4px; } .q-st { text-align: right; font-weight: 700; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.q-row.done .q-st { color: #30d158; font-size: 18px; } .q-row.done .q-th { animation: pop .5s var(--ease); }
@keyframes pop { 50% { transform: scale(1.1); } }
@media (max-width: 560px) { .q-row { grid-template-columns: 48px 1fr 44px; row-gap: 6px; } .q-th { width: 48px; height: 48px; grid-row: 1 / span 2; } .q-main { grid-column: 2; grid-row: 1; } .q-prio { grid-column: 2; grid-row: 2; } .q-st { grid-column: 3; grid-row: 1 / span 2; } }

.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.tips div { background: var(--card); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 4px; position: relative; } .tips .spark { position: absolute; top: 14px; right: 14px; color: var(--text-3); width: 14px; height: 14px; }
.tips span { color: var(--text-2); font-size: 14px; line-height: 1.4; }
.privacy { text-align: center; color: var(--text-3); font-size: 13px; margin-top: 22px; }

/* Raster */
.ph { padding: 30px 0 10px; } .ph h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); letter-spacing: -.035em; font-weight: 800; } .ph p { margin: 4px 0 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 6px; }
.chip { border: 0; border-radius: 99px; padding: 9px 16px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .25s var(--ease); } .chip small { color: var(--text-3); margin-left: 3px; }
.chip.on { background: var(--ink); color: var(--paper); } .chip.on small { color: inherit; opacity: .6; }
.m-head { margin: 26px 0 10px; font-size: 20px; letter-spacing: -.02em; } .m-head small { color: var(--text-3); font-weight: 600; font-size: 14px; margin-left: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 4px; } }
.tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: var(--fill); cursor: pointer; animation: up .45s var(--ease) both; transition: transform .3s var(--ease); }
@media (max-width: 560px) { .tile { border-radius: 10px; } }
.tile:hover { transform: scale(1.02); } .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-ph { display: grid; place-items: center; height: 100%; font-size: 30px; padding: 8px; } .t-ph small { font-size: 10px; color: var(--text-2); word-break: break-all; }
.t-prio { position: absolute; top: 6px; left: 6px; font-size: 13px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.t-prio.p1 { background: var(--gold); }
.t-vid { position: absolute; right: 6px; bottom: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); border-radius: 7px; padding: 2px 6px; }
.t-who { position: absolute; left: 6px; bottom: 6px; } .t-who .av { box-shadow: 0 0 0 2px #fff; }
.empty { text-align: center; padding: 60px 20px; color: var(--text-2); } .empty .spark { width: 34px; height: 34px; color: var(--text-3); animation: twinkle 2.4s infinite; }

/* Admin */
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 14px 0; }
@media (max-width: 560px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { display: grid; justify-items: start; gap: 2px; border: 0; text-align: left; padding: 16px 18px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); cursor: pointer; transition: all .25s var(--ease); }
.stat span { font-size: 22px; } .stat b { font-size: 28px; font-weight: 800; } .stat small { color: var(--text-2); }
.stat.on { background: var(--ink); color: var(--paper); } .stat.on small { color: inherit; opacity: .7; }
.people { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.person { flex: none; display: grid; justify-items: center; gap: 4px; min-width: 96px; border: 0; padding: 12px 10px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); cursor: pointer; } .person b { font-size: 13px; } .person small { color: var(--text-2); font-size: 11px; }
.person.on { background: var(--ink); color: var(--paper); } .person.on small { color: inherit; opacity: .7; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0; } .grow { flex: 1; }
select, .field, textarea { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--sep); border-radius: 14px; padding: 11px 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; color: var(--text); background: var(--fill); transition: transform .2s var(--ease), opacity .2s; }
.btn:active { transform: scale(.97); } .btn.dark { background: var(--ink); color: var(--paper); } .btn.dark small { opacity: .6; font-weight: 600; }
.btn.plain { background: var(--fill); } .btn.danger { color: var(--red); } .btn.block { width: 100%; } .btn.disabled, .btn:disabled { opacity: .4; pointer-events: none; }
.srv { margin: 6px 0 0; } code { background: var(--fill); padding: 2px 6px; border-radius: 6px; font-size: 12px; }

/* Sheets */
#sheet { position: fixed; inset: 0; z-index: 100; display: none; } #sheet.open { display: block; }
.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); animation: fade .3s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(460px, 100%); max-height: 94vh; overflow: auto; background: var(--card); border-radius: 28px 28px 0 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 10px; text-align: center; animation: sheetUp .5s var(--ease) both; box-shadow: var(--shadow-lg); }
@media (min-width: 700px) { .sheet { bottom: auto; top: 50%; transform: translate(-50%, -50%); border-radius: 28px; animation: sheetIn .45s var(--ease) both; } }
.sheet.wide { width: min(820px, 100%); text-align: left; }
@keyframes sheetUp { from { transform: translate(-50%, 100%); } } @keyframes sheetIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
.sheet h2 { margin: 4px 0 0; letter-spacing: -.02em; } .sheet p { margin: 0 0 6px; }
.sh-av, .sh-ic { display: grid; place-items: center; } .sh-ic .spark { width: 40px; height: 40px; }
.viewer { border-radius: 18px; overflow: hidden; background: #000; display: grid; place-items: center; max-height: 60vh; }
.viewer img, .viewer video { max-width: 100%; max-height: 60vh; display: block; }
.it-meta { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; flex-wrap: wrap; } .it-meta span { word-break: break-all; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lbl { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.sh-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 4px; } .sh-row .btn.dark { min-width: 120px; }

.toast { position: fixed; z-index: 200; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -30px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 99px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); transition: all .4s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Erfolg */
.celebrate { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; pointer-events: none; }
.cel-card { display: grid; justify-items: center; gap: 6px; padding: 28px 36px; border-radius: 28px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-lg); animation: cel 2.6s var(--ease) both; }
.cel-card .spark { width: 44px; height: 44px; animation: twinkle 1.2s infinite; } .cel-card b { font-size: 22px; } .cel-card small { opacity: .7; }
.celebrate > i { position: absolute; left: 50%; top: 50%; color: var(--ink); width: 22px; height: 22px; animation: burst 1.4s var(--d) var(--ease) both; }
.celebrate > i .spark { width: 22px; height: 22px; }
@keyframes cel { 0% { opacity: 0; transform: scale(.7); } 15%, 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.96); } }
@keyframes burst { from { transform: rotate(var(--a)) translateY(0) scale(.3); opacity: 1; } to { transform: rotate(var(--a)) translateY(-240px) scale(1); opacity: 0; } }

/* ---------- Intro: 3D-Filmklappe (Rewind 2K26) ---------- */
#intro { position: fixed; inset: 0; z-index: 500; background: radial-gradient(ellipse at 50% 35%, #2a2a2e 0%, #0b0b0c 55%, #000 100%); display: grid; place-items: center; overflow: hidden; cursor: pointer; }
#intro:not(.play) { display: none; }
#intro.out { animation: inOut .9s var(--ease) forwards; }
@keyframes inOut { to { opacity: 0; visibility: hidden; } }
body.intro-on { overflow: hidden; }
.in-light { position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 55%); top: -45vmax; left: 50%; transform: translateX(-50%); animation: light 3.9s ease-out both; }
@keyframes light { from { opacity: 0; transform: translateX(-50%) scale(.6); } 40% { opacity: 1; } }
.cb-stage { perspective: 1400px; perspective-origin: 50% 30%; position: relative; }
.cb { --w: min(560px, 84vw); width: var(--w); position: relative; transform-style: preserve-3d; animation: cbFly 3.9s cubic-bezier(.22,.8,.2,1) both; }
@keyframes cbFly {
  0%   { transform: translateY(60vh) rotateX(70deg) rotateY(-40deg) rotateZ(10deg) scale(.7); opacity: 0; }
  14%  { opacity: 1; }
  34%  { transform: translateY(0) rotateX(18deg) rotateY(-26deg) rotateZ(-4deg) scale(1); }
  44%  { transform: translateY(6px) rotateX(16deg) rotateY(-22deg) rotateZ(-3deg) scale(1); }
  47%  { transform: translateY(14px) rotateX(20deg) rotateY(-22deg) rotateZ(-2deg) scale(.985); }
  68%  { transform: translateY(0) rotateX(6deg) rotateY(-6deg) rotateZ(0) scale(1.02); }
  82%  { transform: translateY(0) rotateX(2deg) rotateY(0) rotateZ(0) scale(1.06); opacity: 1; }
  100% { transform: translateY(0) rotateX(0) rotateY(0) scale(3.2); opacity: 0; }
}
.cb-face { position: relative; transform: translateZ(9px); border-radius: 10px; backface-visibility: hidden; }
.cb-depth { position: absolute; inset: 0; border-radius: 10px; background: #050505; transform: translateZ(0); box-shadow: 0 0 0 1px #000; }
.cb-depth::before, .cb-depth::after { content: ""; position: absolute; inset: 0; border-radius: 10px; background: #111; }
.cb-depth::before { transform: translateZ(3px); } .cb-depth::after { transform: translateZ(6px); }
/* Klappe oben */
.stripes { height: calc(var(--w) * .13); background: repeating-linear-gradient(-55deg, #fff 0 calc(var(--w) * .045), #0a0a0a calc(var(--w) * .045) calc(var(--w) * .09)); border: 3px solid #0a0a0a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.stripes.rev { background: repeating-linear-gradient(55deg, #fff 0 calc(var(--w) * .045), #0a0a0a calc(var(--w) * .045) calc(var(--w) * .09)); }
.cb-arm { position: relative; transform-style: preserve-3d; transform-origin: 3% 100%; margin-bottom: 4px; animation: cbArm 3.9s cubic-bezier(.5,0,.2,1) both; }
@keyframes cbArm { 0%, 30% { transform: rotateZ(-26deg); } 43% { transform: rotateZ(-30deg); } 46.5% { transform: rotateZ(1deg); } 48% { transform: rotateZ(-1.5deg); } 50%, 100% { transform: rotateZ(0); } }
.cb-top { position: relative; transform-style: preserve-3d; margin-bottom: 6px; }
.cb-pin { position: absolute; left: 1.2%; top: -10px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #eee, #777 60%, #333); transform: translateZ(14px); box-shadow: 0 2px 6px rgba(0,0,0,.6); }
/* Tafel */
.cb-board { position: relative; transform-style: preserve-3d; }
.cb-board > .cb-face { background: linear-gradient(160deg, #1b1b1d, #0d0d0e 60%, #161618); border: 3px solid #2a2a2c; padding: calc(var(--w) * .05) calc(var(--w) * .06) calc(var(--w) * .045); display: grid; justify-items: center; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.cb-board > .cb-face::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%); animation: sheen 3.9s ease-in-out both; pointer-events: none; }
@keyframes sheen { 0%, 35% { transform: translateX(-60%); } 75%, 100% { transform: translateX(60%); } }
.cb-back { position: absolute; inset: 0; border-radius: 10px; background: #0a0a0a; transform: translateZ(-6px); box-shadow: 0 60px 120px rgba(0,0,0,.8); }
.cb-logo { width: 38%; filter: invert(1) drop-shadow(0 0 1px rgba(255,255,255,.3)); opacity: .95; margin-bottom: 6px; mix-blend-mode: screen; }
.cb-title { font-size: calc(var(--w) * .16); font-weight: 900; font-style: italic; letter-spacing: -.045em; line-height: .9; color: #0d0d0e; -webkit-text-stroke: calc(var(--w) * .006) #fff; paint-order: stroke fill; text-shadow: calc(var(--w) * .012) calc(var(--w) * .012) 0 #fff; }
.cb-year { margin-top: calc(var(--w) * .02); font-size: calc(var(--w) * .11); font-weight: 900; font-style: italic; letter-spacing: -.03em; color: #fff; text-shadow: 0 0 30px rgba(255,255,255,.35); }
.cb-rows { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: calc(var(--w) * .04); border-top: 2px solid rgba(255,255,255,.75); }
.cb-rows div { display: grid; justify-items: center; padding-top: 8px; color: #fff; font-family: "Bradley Hand", "Segoe Print", "Marker Felt", var(--font); } .cb-rows div + div { border-left: 2px solid rgba(255,255,255,.75); }
.cb-rows small { font-family: var(--font); font-size: calc(var(--w) * .022); text-transform: uppercase; letter-spacing: .2em; opacity: .55; } .cb-rows b { font-size: calc(var(--w) * .045); }
.cb-shadow { position: absolute; left: 10%; right: 10%; bottom: -60px; height: 40px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.7), transparent 70%); filter: blur(8px); animation: shadowA 3.9s both; }
@keyframes shadowA { 0% { opacity: 0; transform: scale(.4); } 34%, 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.in-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: flash 3.9s both; }
@keyframes flash { 0%, 46% { opacity: 0; } 47% { opacity: .55; } 56%, 100% { opacity: 0; } }
.in-skip { position: absolute; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); border: 0; border-radius: 99px; padding: 9px 16px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); font: 600 13px var(--font); backdrop-filter: blur(20px); cursor: pointer; animation: fade 1s 1s both; }
.photo-pick { justify-self: center; position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: var(--fill); cursor: pointer; overflow: visible; transition: transform .25s var(--ease); }
.photo-pick:active { transform: scale(.95); }
.photo-pick > span { font-size: 34px; } .photo-pick img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; }
.photo-pick.has img, .photo-pick .av { box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--ink); animation: pop .5s var(--ease); }
.photo-pick .av-xl { width: 104px; height: 104px; }
.photo-pick small { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }

/* ---------- Sprachnachricht ---------- */
.voice { margin-top: 18px; padding: 24px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow); animation: up .7s .12s var(--ease) both; }
.v-head { display: flex; gap: 14px; align-items: flex-start; } .v-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #ff375f, #ff9f0a); display: grid; place-items: center; font-size: 26px; box-shadow: 0 8px 20px rgba(255,55,95,.3); }
.v-head h3 { margin: 2px 0 4px; font-size: 20px; letter-spacing: -.02em; } .v-head p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.45; } .v-head b { color: #30d158; }
.v-qs { display: flex; gap: 8px; overflow-x: auto; margin: 16px -24px 4px; padding: 2px 24px 6px; scrollbar-width: none; }
.v-q { flex: none; border: 0; border-radius: 99px; padding: 9px 14px; background: var(--fill); font-weight: 600; font-size: 13px; cursor: pointer; transition: all .25s var(--ease); }
.v-q.on { background: var(--ink); color: var(--paper); }
.v-stage { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 130px; padding-top: 10px; flex-wrap: wrap; }
.v-rec { position: relative; width: 86px; height: 86px; border-radius: 50%; border: 5px solid var(--ink); background: transparent; cursor: pointer; padding: 0; display: grid; place-items: center; transition: transform .2s var(--ease); flex: none; }
.v-rec i { width: 62px; height: 62px; border-radius: 50%; background: #ff3b30; transition: all .35s var(--ease); }
.v-rec:active { transform: scale(.94); }
.v-rec.on i { width: 30px; height: 30px; border-radius: 8px; }
.v-rec.on::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid #ff3b30; animation: ring 1.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.v-hint { font-weight: 700; font-size: 17px; display: grid; gap: 4px; } .v-hint small { color: var(--text-2); font-weight: 500; font-size: 14px; }
.v-live { display: grid; gap: 10px; min-width: 220px; flex: 1; max-width: 420px; }
.v-wave { height: 64px; display: flex; align-items: center; gap: 4px; } .v-wave b { flex: 1; height: 8%; border-radius: 4px; background: var(--ink); transition: height .08s linear; }
.v-time { font-weight: 700; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; color: var(--text-2); } .v-time #vTime { color: var(--text); }
.v-time .dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; animation: pulse 1s infinite; }
.v-done { display: grid; gap: 12px; justify-items: center; width: 100%; max-width: 460px; } .v-done audio { width: 100%; }
.v-btns { display: flex; gap: 10px; }
/* Kachel & Ansicht */
.tile.audio { background: linear-gradient(135deg, #1c1c1e, #3a1020); }
.t-audio { display: grid; place-items: center; align-content: center; gap: 8px; height: 100%; padding: 10px; color: #fff; text-align: center; }
.t-audio i { font-style: normal; font-size: 26px; } .t-audio small { font-size: 11px; line-height: 1.3; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-bars { display: flex; align-items: center; gap: 3px; height: 28px; } .t-bars b { width: 4px; border-radius: 2px; background: linear-gradient(#ff375f, #ff9f0a); }
.viewer.audio { background: linear-gradient(135deg, #1c1c1e, #3a1020); }
.va { display: grid; justify-items: center; gap: 12px; padding: 34px 20px; color: #fff; text-align: center; width: 100%; } .va-ic { font-size: 44px; } .va b { font-size: 18px; } .va audio { width: min(420px, 100%); }

/* ---------- Ticket ---------- */
.center { text-align: center; } .ph.center p { max-width: 520px; margin: 6px auto 0; }
.tk-teaser { display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 18px; padding: 14px 18px; border: 0; border-radius: 22px; text-align: left; cursor: pointer; font: inherit; color: #fff; background: linear-gradient(120deg, #0b0b0c, #2b2b30); box-shadow: var(--shadow); position: relative; overflow: hidden; animation: up .7s .05s var(--ease) both; }
.tk-teaser::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,110,199,.25), rgba(122,252,255,.25), transparent 70%); background-size: 250% 100%; animation: holoMove 4s linear infinite; pointer-events: none; }
.tk-teaser > span { font-size: 30px; } .tk-teaser div { flex: 1; display: grid; } .tk-teaser b { font-size: 16px; } .tk-teaser small { opacity: .7; } .tk-teaser i { font-style: normal; font-size: 24px; opacity: .6; }
.tk-teaser.locked { cursor: default; background: var(--card); color: var(--text); } .tk-teaser.locked::after { display: none; } .tk-teaser.locked small { color: var(--text-2); opacity: 1; }
@keyframes holoMove { to { background-position: -250% 0; } }
.drop.closed { cursor: default; } .drop.closed .drop-ic { background: #30d158; }
.tk-wrap { perspective: 1200px; display: grid; place-items: center; padding: 20px 0 10px; touch-action: pan-y; }
.tk { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; position: relative; width: min(380px, 88vw); border-radius: 26px; padding: 26px 24px 22px; color: #fff; background: #0b0b0c; box-shadow: 0 40px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08) inset; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .6s var(--ease); animation: tkIn 1s var(--ease) both, tkSway 7s 1s ease-in-out infinite; overflow: hidden; }
.tk.live { transition: transform .08s linear; animation: tkIn 1s var(--ease) both; }
@keyframes tkIn { from { opacity: 0; transform: translateY(40px) rotateX(30deg) scale(.9); } }
@keyframes tkSway { 0%, 100% { transform: rotateX(4deg) rotateY(-8deg); } 50% { transform: rotateX(-3deg) rotateY(8deg); } }
.tk-holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5; background: linear-gradient(115deg, transparent 20%, #ff6ec7 35%, #7afcff 45%, #feff9c 55%, #b28dff 65%, transparent 80%); background-size: 300% 300%; background-position: var(--mx) var(--my); filter: saturate(1.4); transition: background-position .1s; }
.tk:not(.live) .tk-holo { animation: holoPos 7s 1s ease-in-out infinite; }
@keyframes holoPos { 0%, 100% { background-position: 10% 20%; } 50% { background-position: 90% 80%; } }
.tk-shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.28), transparent 45%); }
.tk > *:not(.tk-holo):not(.tk-shine) { position: relative; }
.tk-top { display: flex; align-items: center; justify-content: space-between; } .tk-logo { height: 46px; width: auto; }
.tk-admit { font-size: 11px; font-weight: 800; letter-spacing: .25em; border: 1.5px solid rgba(255,255,255,.6); border-radius: 99px; padding: 5px 10px; }
.tk-title { margin: 22px 0 18px; display: grid; } .tk-title span { font-size: 68px; font-weight: 900; font-style: italic; letter-spacing: -.045em; line-height: .9; color: #0b0b0c; -webkit-text-stroke: 3px #fff; paint-order: stroke fill; text-shadow: 5px 5px 0 rgba(255,255,255,.9); }
.tk-title em { margin-top: 10px; font-size: 25px; font-weight: 900; font-style: italic; letter-spacing: -.01em; }
.tk-guest { display: flex; align-items: center; gap: 14px; } .tk-guest > div { display: grid; } .tk-guest small, .tk-fields small, .tk-code small { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.tk-guest b { font-size: 24px; } .tk-guest .av { box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.tk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; margin-top: 20px; } .tk-fields div { display: grid; gap: 2px; } .tk-fields b { font-size: 17px; }
.tk-perf { margin: 22px -24px 18px; height: 0; border-top: 2px dashed rgba(255,255,255,.3); position: relative; }
.tk-perf::before, .tk-perf::after { content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); } .tk-perf::before { left: -14px; } .tk-perf::after { right: -14px; }
.tk-bottom { display: flex; align-items: center; gap: 16px; }
.tk-qr { width: 112px; height: 112px; padding: 8px; background: #fff; border-radius: 14px; flex: none; } .tk-qr svg { width: 100%; height: 100%; display: block; }
.tk-code { display: grid; gap: 2px; } .tk-code b { font-size: 18px; letter-spacing: .04em; } .tk-code span { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 6px; } .tk-code .spark { width: 11px; height: 11px; }
.tk-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0 10px; }
.tk-locked { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 10px; } .tk-locked h2 { margin: 0; } .tk-locked p { max-width: 420px; margin: 0 0 8px; }
.tk-ghost { font-size: 80px; filter: grayscale(1); opacity: .5; animation: float 5s ease-in-out infinite; }
/* Prüfseite */
body.verify-mode .tabs { display: none; }
.verify { max-width: 440px; margin: 40px auto; text-align: center; display: grid; justify-items: center; gap: 10px; background: var(--card); border-radius: 30px; padding: 30px 24px; box-shadow: var(--shadow); animation: up .6s var(--ease) both; }
.vf-logo { width: 160px; margin-bottom: 10px; } .verify h1 { margin: 0; font-size: 28px; } .verify h2 { margin: 6px 0 0; } .verify p { margin: 0; }
.vf-badge { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; color: #fff; font-weight: 800; background: #30d158; animation: pop .6s var(--ease); }
.verify.bad .vf-badge { background: var(--red); }
@media (max-width: 480px) {
  .tabs { gap: 2px; padding: 4px; }
  .tab { padding: 10px 14px; font-size: 14px; gap: 6px; }
  .tab:not(.on) span:last-child { display: none; }
  .tab:not(.on) .tab-i { font-size: 18px; }
}

/* ---------- E-Mail-Einstellungen ---------- */
.mail-card { margin: 14px 0 6px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.mc-head { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 14px 18px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.mc-ic { font-size: 26px; } .mc-head div { flex: 1; display: grid; } .mc-head small { color: var(--text-2); font-size: 13px; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--fill); color: var(--text-2); } .pill.on { background: #30d158; color: #fff; }
.mc-body { display: grid; gap: 10px; padding: 0 18px 18px; animation: up .35s var(--ease) both; }
.mc-body .field, .mc-body select { width: 100%; } .mc-body p { margin: 0; }
.mc-sw { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
