:root { --ink: #1B1F3B; --ink2: #262B52; --yel: #FFD23F; --red: #EE4266; --teal: #3BCEAC; --cream: #FFF6E5; --muted: #B9BCD6; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--cream); font: 15px/1.5 Poppins, system-ui, sans-serif; }
body { min-height: 100vh; }
a { color: var(--yel); }
h1 { font-family: Bungee, sans-serif; font-weight: 400; letter-spacing: 2px; color: var(--yel); text-shadow: 4px 4px 0 var(--red); margin: 0; }
.sub { margin: 4px 0 0; font-family: 'Permanent Marker', cursive; color: var(--teal); font-size: 20px; }
.muted { color: var(--muted); font-size: 14px; }
.mt { margin-top: 10px; }

/* Buttons & Formulare */
button { font: inherit; font-weight: 700; cursor: pointer; border: 3px solid var(--ink); background: var(--yel); color: var(--ink); border-radius: 12px; padding: 10px 16px; box-shadow: 3px 3px 0 var(--red); }
button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--red); }
button.link { background: none; border: 0; box-shadow: none; color: var(--yel); padding: 0; font-weight: 500; text-decoration: underline; }
button.link.danger { color: #FF8FA6; }
input[type=email], input[type=text], textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--cream); border: 3px solid var(--ink); border-radius: 10px; padding: 10px 12px; width: 100%; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Login */
.login { max-width: 420px; margin: 9vh auto; padding: 32px 28px; background: var(--ink2); border-radius: 18px; box-shadow: 0 0 0 4px var(--yel), 8px 8px 0 4px var(--red); text-align: center; }
.login h1 { font-size: 52px; }
.login form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.login input.code { letter-spacing: .4em; font-size: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.login .muted { margin-top: 18px; }
.msg { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-top: 12px; text-align: left; }
.msg.err { background: #5A1F33; color: #FFC2CF; }
.msg.ok { background: #18493F; color: #BFF3E2; }

/* Kopfzeile angemeldet */
nav.top { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 10px 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
nav.top form { margin: 0; }
.hero { text-align: center; padding: 6px 16px 14px; }
.hero h1 { font-size: clamp(34px, 7vw, 64px); }
.hero.small h1 { font-size: 40px; }

/* Player */
.player { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 4px var(--yel); }
.stage canvas { display: block; width: 100%; height: 100%; }
.stage.fs { position: fixed; inset: 0; z-index: 10; border-radius: 0; box-shadow: none; aspect-ratio: auto; display: flex; align-items: center; justify-content: center; }
.stage.fs canvas { width: min(100vw, 177.78vh); height: auto; aspect-ratio: 16 / 9; }
.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(27,31,59,.35); border: 0; border-radius: 0; box-shadow: none; padding: 0; transition: opacity .25s; }
.overlay:active { transform: none; box-shadow: none; }
.overlay.hidden { opacity: 0; pointer-events: none; }
.play-big { width: clamp(72px, 14vw, 120px); height: clamp(72px, 14vw, 120px); border-radius: 50%; background: var(--yel); border: 5px solid var(--ink); box-shadow: 6px 6px 0 var(--red); display: grid; place-items: center; }
.play-big svg { width: 44%; margin-left: 8%; fill: var(--ink); }
.loading { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--cream); }
.controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.btn { flex: none; width: 44px; height: 44px; border-radius: 50%; padding: 0; display: grid; place-items: center; }
.btn svg { width: 20px; height: 20px; fill: var(--ink); }
input[type=range] { flex: 1; min-width: 0; accent-color: var(--yel); height: 28px; }
.time { font-variant-numeric: tabular-nums; font-size: 14px; min-width: 92px; text-align: right; }
.extra { text-align: center; margin: 26px 0 40px; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* Admin */
.admin { max-width: 760px; margin: 0 auto 60px; padding: 0 16px; }
.card { background: var(--ink2); border-radius: 16px; padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 0 0 3px #3A4078; }
.card h2 { margin: 0 0 10px; font-size: 18px; display: flex; gap: 10px; align-items: center; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
label.grow { flex: 1; min-width: 240px; }
.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--teal); color: var(--ink); font-weight: 700; }
.maptable { width: 100%; border-collapse: collapse; }
.maptable td { padding: 8px 6px; border-bottom: 1px solid #3A4078; font-size: 14px; }
.right { text-align: right; }
form.inline { display: inline; margin: 0; }
.note { font-size: 13px; color: var(--muted); }
code { color: var(--yel); }

/* Türsteher-Text + Anfrage */
.bouncer { font-family: 'Permanent Marker', cursive; font-size: 22px; line-height: 1.3; color: var(--cream); margin: 22px 0 0; transform: rotate(-2deg); }
details.ask { margin-top: 26px; text-align: left; border-top: 2px dashed #3A4078; padding-top: 16px; }
details.ask summary { cursor: pointer; color: var(--yel); font-weight: 700; text-align: center; list-style: none; }
details.ask summary::-webkit-details-marker { display: none; }
details.ask summary::before { content: '✉ '; }
details.ask form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Mediathek */
.stage.vid { aspect-ratio: auto; background: #000; display: flex; justify-content: center; max-height: 78vh; }
.stage.vid video { display: block; width: 100%; max-height: 78vh; background: #000; }
.now { text-align: center; margin: 14px 0 0; }
.audiocard { display: flex; gap: 26px; align-items: center; background: var(--ink2); border-radius: 18px; padding: 28px; box-shadow: 0 0 0 4px var(--yel), 8px 8px 0 4px var(--red); }
.audiocard h2 { margin: 0; font-size: clamp(22px, 4vw, 32px); }
.audiocard .info { flex: 1; min-width: 0; }
.audiocard audio { width: 100%; margin-top: 14px; }
.disc { flex: none; width: clamp(90px, 18vw, 160px); aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 3px, #222 3px 6px); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--ink); }
.disc span { width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--red); color: var(--yel); display: grid; place-items: center; font-size: clamp(18px, 4vw, 32px); }
@media (max-width: 560px) { .audiocard { flex-direction: column; text-align: center; } }
.library { max-width: 1280px; margin: 34px auto 60px; padding: 0 16px; }
.library h2 { font-family: Bungee, sans-serif; font-weight: 400; color: var(--teal); font-size: 24px; margin: 0 0 12px; }
.library ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.item { display: flex; gap: 16px; align-items: center; background: var(--ink2); border-radius: 14px; padding: 14px 16px; box-shadow: 0 0 0 2px #3A4078; flex-wrap: wrap; }
.item.on { box-shadow: 0 0 0 3px var(--yel); }
.ico { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--ink); border: 3px solid var(--ink); }
.ico.audio { background: var(--teal); } .ico.video { background: var(--red); color: #fff; } .ico.anim { background: var(--yel); }
.txt { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.txt .muted { font-size: 13px; }
.meta { font-size: 12px; color: #8D91B8; }
.acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btnlink { display: inline-block; text-decoration: none; font-weight: 700; color: var(--ink); background: var(--yel); border: 3px solid var(--ink); border-radius: 10px; padding: 7px 14px; box-shadow: 3px 3px 0 var(--red); }
.btnlink.sec { background: transparent; color: var(--yel); border-color: var(--yel); box-shadow: none; }
/* Hauptseite */
.login.hello { margin-top: 18vh; padding: 44px 28px 52px; }
.login.hello .bouncer { font-size: 40px; margin-top: 28px; }
