@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/pjs-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/pjs-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  color-scheme: dark;
  --bg: #0a0c0f; --bg2: #0f1216; --card: #15191f; --line: #20252d; --line2: #2e3540;
  --text: #dfe3e9; --muted: #7d8794; --accent: #aeb7c4; --accent-ink: #0b0f14; --danger: #e0705f;
  --shadow: 0 12px 40px rgba(0,0,0,.5);
  --c: #5c6672;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
}
body.is-dragging { user-select: none; cursor: grabbing; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 600; letter-spacing: -.02em; margin: 0; }
h2, h3 { margin: 0; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #6b7584; outline-offset: 2px; }
code { background: var(--bg2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: .9em; }
.muted { color: var(--muted); }
.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; }
.logo { width: 28px; height: 28px; border-radius: 8px; flex: none; display: block; }
.btn { background: var(--card); border: 1px solid var(--line2); border-radius: 9px; padding: 10px 14px; font-weight: 550; min-height: 42px; }
.btn.primary { background: #232932; border-color: #3b4350; color: var(--text); }
.btn.primary:hover { background: #2a313c; border-color: #4a5462; }
.btn:disabled { opacity: .6; }
.auth label { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; color: var(--muted); }
.auth input { background: var(--card); border: 1px solid var(--line2); border-radius: 9px; padding: 10px 11px; color: var(--text); font-size: 16px; width: 100%; }
/* ---------- Anmeldung ---------- */
body.auth { display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(380px, 100%); background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; }
.auth-card.wide { width: min(460px, 100%); }
.auth-card .brand { font-size: 1.25rem; margin-bottom: 22px; }
.auth-card form, .auth-card section { display: flex; flex-direction: column; gap: 14px; }
.auth-card h2 { font-size: 1rem; margin-top: 10px; }
.auth-card .btn { text-align: center; text-decoration: none; margin-top: 6px; }
.hint { color: var(--muted); font-size: .86rem; margin: 0; }
.error { color: var(--danger); margin: 0; font-weight: 550; }
#qr { border-radius: 10px; align-self: center; background: #fff; }
#codes { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; font: 1rem/1.7 ui-monospace, monospace; margin: 0; columns: 2; }
[hidden] { display: none !important; }


/* ---------- Auftritt ---------- */
html { background: #050608; }
body.auth { background: #050608; min-height: 100dvh; overflow-x: hidden; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
body.auth::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 85% at 50% 45%, transparent 35%, rgba(3,4,6,.82) 100%); }

.sigil { position: relative; z-index: 1; width: 34px; height: 30px; }
.sigil i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #e4e8ee; box-shadow: 0 0 14px rgba(228,232,238,.55); }
.sigil i:nth-child(1) { left: 13.5px; top: 0; }
.sigil i:nth-child(2) { left: 0; bottom: 0; }
.sigil i:nth-child(3) { right: 0; bottom: 0; }

@property --sheen { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.auth-card { position: relative; z-index: 1; background: rgba(13,16,20,.58); border: 1px solid rgba(255,255,255,.07); border-radius: 22px; padding: 30px 28px;
  -webkit-backdrop-filter: blur(22px) saturate(120%); backdrop-filter: blur(22px) saturate(120%);
  box-shadow: 0 40px 110px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.07); }
.auth-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--sheen), transparent 0 62%, rgba(255,255,255,.55) 78%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.auth input { background: rgba(8,10,13,.6); border-color: rgba(255,255,255,.09); transition: border-color .25s, box-shadow .25s, background .25s; }
.auth input:focus { outline: none; border-color: rgba(255,255,255,.34); background: rgba(8,10,13,.85); box-shadow: 0 0 0 4px rgba(255,255,255,.05), 0 0 26px rgba(200,210,225,.09); }
.auth-card .btn.primary { background: #e7eaef; border-color: #e7eaef; color: #07090c; font-weight: 700; letter-spacing: .01em; transition: transform .15s, box-shadow .25s, background .2s; }
.auth-card .btn.primary:hover { background: #fff; border-color: #fff; box-shadow: 0 8px 34px rgba(220,228,240,.2); transform: translateY(-1px); }
.auth-card .btn.primary:active { transform: translateY(0) scale(.99); }
.auth-card.shake { animation: shake .45s; }

@media (prefers-reduced-motion: no-preference) {
  .sigil i { opacity: 0; animation: dot .9s cubic-bezier(.2,.8,.2,1) forwards, glow 4.5s ease-in-out 2.4s infinite; }
  .sigil i:nth-child(1) { animation-delay: .5s, 2.4s; }
  .sigil i:nth-child(2) { animation-delay: .7s, 2.9s; }
  .sigil i:nth-child(3) { animation-delay: .9s, 3.4s; }
  .auth-card { animation: rise 1.25s cubic-bezier(.16,.84,.24,1) 1.05s both; }
  .auth-card::before { animation: sheen 7s linear 1.6s infinite; }
  .auth-card form > *, .auth-card section > * { animation: up .8s cubic-bezier(.2,.8,.2,1) both; }
  .auth-card form > :nth-child(1) { animation-delay: 1.45s; }
  .auth-card form > :nth-child(2) { animation-delay: 1.57s; }
  .auth-card form > :nth-child(3) { animation-delay: 1.69s; }
  .auth-card form > :nth-child(4) { animation-delay: 1.81s; }
  .auth-card form > :nth-child(n+5) { animation-delay: 1.93s; }
  @keyframes rise { from { opacity: 0; transform: translateY(34px) scale(.94); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
  @keyframes up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes dot { from { opacity: 0; transform: scale(0); } 60% { transform: scale(1.5); } to { opacity: 1; transform: scale(1); } }
  @keyframes glow { 0%, 100% { box-shadow: 0 0 14px rgba(228,232,238,.5); } 50% { box-shadow: 0 0 26px rgba(240,244,250,.95); } }
  @keyframes sheen { to { --sheen: 360deg; } }
  @keyframes shake { 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
}
.auth input[readonly] { color: var(--muted); }
