/* NullFold-Web – Theme „Void“. Palette aus dem Branding: Void-Violett #7B4DFF, Riss-Cyan #3DE0FF, Gold #FFC845,
   Rot #FF4D5E, Hintergrund #0D0820. Keine externen Schriften; Pixel-Überschriften über .px (optional NullPixel). */
:root {
  --bg: #0d0820; --bg2: #140c30; --card: rgba(26, 17, 58, .72); --card-solid: #1a113a; --line: rgba(123, 77, 255, .28);
  --text: #ece8ff; --muted: #a49cc8; --void: #7b4dff; --rift: #3de0ff; --gold: #ffc845; --red: #ff4d5e; --ok: #5fd08a;
  --sleep: #8c7dff; --warn: #ffc845; --off: #8e95a8; --radius: 16px; --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif; overflow-x: hidden; }
body::before { /* sanftes Riss-Leuchten im Hintergrund jeder Seite */
  content: ""; position: fixed; inset: -20vh -20vw auto; height: 90vh; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 30% 20%, rgba(123, 77, 255, .28), transparent 70%), radial-gradient(40% 40% at 80% 10%, rgba(61, 224, 255, .14), transparent 70%);
}
a { color: var(--rift); text-underline-offset: 3px; }
a:hover { color: #9cf0ff; }
img { max-width: 100%; height: auto; }
code { background: rgba(0, 0, 0, .45); border: 1px solid var(--line); border-radius: 8px; padding: .1em .45em; font-size: .95em; color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--void); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--rift); outline-offset: 3px; }

/* Pixel-Überschriften: scharf, mit Stufenschatten */
.px { font-family: "NullPixel", ui-monospace, "Cascadia Mono", "Consolas", monospace; text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
  text-shadow: 3px 3px 0 #22104f, 0 0 22px rgba(123, 77, 255, .45); }
h1.px { font-size: clamp(1.7rem, 4.5vw, 2.8rem); line-height: 1.15; margin: .5rem 0 1rem; }
h2.px { font-size: clamp(1.25rem, 3vw, 1.9rem); margin: 0 0 1rem; text-align: center; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .75rem; padding: .6rem clamp(1rem, 3vw, 2rem);
  background: rgba(13, 8, 32, .78); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .5rem; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.top nav { display: flex; gap: .15rem; flex: 1; justify-content: center; }
.top nav a { color: var(--muted); text-decoration: none; padding: .35rem .7rem; border-radius: 10px; transition: color .2s, background .2s; }
.top nav a:hover, .top nav a[aria-current="page"] { color: #fff; background: rgba(123, 77, 255, .22); }
.top-actions { display: flex; gap: .5rem; align-items: center; }
.lang { color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: .25rem .6rem; font-size: .9rem; }
.lang b { color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: .3rem .7rem; font: inherit; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); text-decoration: none; font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); border-color: var(--void); color: #fff; box-shadow: 0 8px 24px rgba(123, 77, 255, .3); }
.btn.small { padding: .3rem .75rem; font-size: .9rem; }
.btn.ghost { background: transparent; }
.btn.discord { background: #5865f2; border-color: transparent; color: #fff; }
.btn.play { background: linear-gradient(135deg, #6a3dff, var(--void) 45%, #9b6bff); border: 0; color: #fff; padding: .85rem 1.4rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 10px 40px rgba(123, 77, 255, .45); position: relative; overflow: hidden; }
.btn.play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 4s 1.5s infinite; }
.btn.play code { background: rgba(0, 0, 0, .3); border-color: rgba(255, 255, 255, .2); }
.play-label { white-space: nowrap; font-family: "NullPixel", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; }
@keyframes shine { to { transform: translateX(120%); } }
.badge { display: inline-block; font-size: .78rem; padding: .1rem .55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* Hero */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; padding: 4rem 1rem 5rem; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.rift { position: absolute; left: 50%; top: 42%; width: min(900px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -2;
  background: radial-gradient(closest-side, rgba(123, 77, 255, .55), rgba(61, 224, 255, .18) 45%, transparent 70%); filter: blur(10px);
  animation: breathe 9s ease-in-out infinite; }
.banner-bg { position: absolute; inset: auto 0 0; height: 45%; z-index: -2; opacity: .07; filter: blur(2px);
  background: url("/static/banner.jpg") center bottom / cover no-repeat; mask-image: linear-gradient(transparent, #000 40%, transparent); }
@keyframes breathe { 50% { opacity: .65; transform: translate(-50%, -50%) scale(1.08); } }
.hero-inner { max-width: 860px; }
.emblem { width: clamp(130px, 18vw, 200px); filter: drop-shadow(0 0 30px rgba(123, 77, 255, .7)) drop-shadow(0 0 60px rgba(61, 224, 255, .25));
  animation: float 7s ease-in-out infinite, pulse 4.5s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes pulse { 50% { filter: drop-shadow(0 0 42px rgba(123, 77, 255, .95)) drop-shadow(0 0 80px rgba(61, 224, 255, .4)); } }
.wordmark { font-size: clamp(2.6rem, 10vw, 5.6rem); line-height: 1; margin: .6rem 0 .4rem; letter-spacing: .14em;
  background: linear-gradient(180deg, #fff 10%, #c9b8ff 45%, var(--void) 70%, #3a1a99); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(4px 4px 0 #1b0b45) drop-shadow(0 0 24px rgba(123, 77, 255, .55)); }
.tagline { color: #cfc6f5; font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 680px; margin: 0 auto 1.5rem; }
.playrow { display: flex; gap: .9rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.scroll-hint { position: absolute; bottom: 1.2rem; left: 50%; translate: -50% 0; color: var(--muted); text-decoration: none; font-size: 1.8rem; animation: bob 2.2s infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* Status-Pille und -Karte */
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .95rem; }
.dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--off); flex: none; display: inline-block; }
[data-state="online"] .dot { background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: blink 2s infinite; }
[data-state="sleeping"] .dot { background: var(--sleep); box-shadow: 0 0 10px var(--sleep); }
[data-state="starting"] .dot, [data-state="restarting"] .dot, [data-state="stopping"] .dot { background: var(--warn); animation: blink 1s infinite; }
[data-state="offline"] .dot, [data-state="maintenance"] .dot { background: var(--red); }
@keyframes blink { 50% { opacity: .45; } }
.live h2.px { font-size: 1rem; text-align: left; color: var(--muted); }
.live .state { font-size: 1.35rem; margin: .2rem 0; display: flex; align-items: center; gap: .6rem; }
.live .players strong { font-size: 2rem; font-family: "NullPixel", ui-monospace, monospace; color: #fff; }
.live ul { columns: 2; padding-left: 1.1rem; margin: .3rem 0; }

/* Abschnitte & Karten */
main { display: block; }
.section { max-width: 1120px; margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 3vw, 2rem) 0; }
body.page .section:first-child { padding-top: 2.5rem; }
.lead { color: #cfc6f5; max-width: 760px; margin: 0 auto 2rem; text-align: center; font-size: 1.08rem; }
body.page h1 + .lead { text-align: left; margin-left: 0; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .93em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; backdrop-filter: blur(6px); }
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pillar { position: relative; overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.pillar::before { content: ""; position: absolute; inset: -1px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--rift), var(--void), transparent);
  opacity: 0; transition: opacity .35s; z-index: -1; border-radius: inherit; animation: spin 6s linear infinite; }
.pillar:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 18px 50px rgba(123, 77, 255, .3); }
.pillar:hover::before { opacity: 1; }
.pillar::after { content: ""; position: absolute; inset: 1px; background: var(--card-solid); border-radius: calc(var(--radius) - 1px); z-index: -1; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.icon { font-size: 2rem; line-height: 1; }
.card h3 { margin: .5rem 0 .3rem; }
.card p { margin: .2rem 0; color: #cfc6f5; }
.split { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch; }
.discord-card { background: linear-gradient(135deg, rgba(88, 101, 242, .35), rgba(123, 77, 255, .25)); }
.discord-card h2.px { text-align: left; font-size: 1.2rem; }

/* Galerie + Lightbox */
.gallery { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; position: relative; }
.shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease), filter .6s; }
.shot:hover img { transform: scale(1.06); filter: saturate(1.2); }
.shot figcaption { position: absolute; inset: auto 0 0; padding: 1.5rem .9rem .6rem; font-size: .9rem; background: linear-gradient(transparent, rgba(13, 8, 32, .9)); }
.lightbox { position: fixed; inset: 0; z-index: 20; background: rgba(6, 3, 16, .92); display: grid; place-items: center; padding: 1rem; animation: fade .25s; }
.lightbox img { max-height: 86vh; border-radius: 12px; box-shadow: 0 0 80px rgba(123, 77, 255, .4); }
.lightbox p { text-align: center; color: var(--muted); }
.lightbox button { position: absolute; top: 1rem; right: 1rem; }
@keyframes fade { from { opacity: 0; } }

/* Falten-Turm: vertikale Reise */
.tower { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; position: relative; }
.tower::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(#9fe8ff, #5fd08a 18%, #3de0ff 35%, #7bc47f 50%, #ff8c1a 66%, #ff4d5e 82%, #b07bff); border-radius: 3px; opacity: .7; }
.layer { position: relative; padding: 0 0 0 64px; margin-bottom: .2rem; }
.layer::before { content: ""; position: absolute; left: 12px; top: 1.1rem; width: 24px; height: 24px; border-radius: 6px; background: var(--c);
  box-shadow: 0 0 18px var(--c); transform: rotate(45deg); }
.layer-body { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--radius); padding: 1rem 1.2rem;
  transition: transform .4s var(--ease); }
.layer:hover .layer-body { transform: translateX(6px); }
.layer h3 { margin: 0 0 .2rem; color: var(--c); }
.layer p { margin: 0; color: #cfc6f5; }
.membrane { margin: .5rem 0 .9rem; font-size: .85rem; color: var(--muted); }
.membrane span { display: inline-block; padding: .15rem .7rem; border: 1px dashed var(--line); border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(123, 77, 255, .14) 0 6px, transparent 6px 12px); background-size: 24px 100%; animation: drift 3s linear infinite; }
@keyframes drift { to { background-position: 24px 0; } }

/* Klassen */
.class-strip { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.class-chip { display: flex; flex-direction: column; gap: .1rem; padding: .9rem 1rem; border-radius: 14px; text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, transparent), var(--card)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  transition: transform .3s var(--ease), box-shadow .3s; }
.class-chip:hover { transform: translateY(-4px); box-shadow: 0 10px 30px color-mix(in srgb, var(--c) 35%, transparent); color: #fff; }
.class-chip small { color: var(--muted); }
.class-card { border-top: 3px solid var(--c); }
.class-card h2 { margin: .4rem 0 0; color: var(--c); }
.class-card .role { color: var(--muted); margin: 0 0 .6rem; }
.class-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; }
.class-card dt { color: var(--muted); }
.class-card dd { margin: 0; }

/* Seltenheiten als Item-Tooltips */
.items { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.item { position: relative; padding: .8rem 1rem; border-radius: 6px; background: #100820ee; border: 2px solid transparent;
  background-image: linear-gradient(#120a26, #0c061a), var(--g); background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 0 0 1px #000, 0 0 18px color-mix(in srgb, var(--c) 30%, transparent); transition: transform .3s var(--ease), box-shadow .3s; cursor: default; }
.item:hover, .item:focus { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 0 0 1px #000, 0 0 32px color-mix(in srgb, var(--c) 60%, transparent); }
.item-name { font-weight: 700; color: var(--c); }
.item-band { font-size: .82rem; color: var(--muted); font-family: ui-monospace, monospace; }
.item .pips { color: var(--c); letter-spacing: .1em; }
.item.prismatic .item-name { background: linear-gradient(90deg, #ff4d5e, #ffc845, #5fd08a, #3de0ff, #b07bff, #ff4d5e); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: prism 3s linear infinite; }
@keyframes prism { to { background-position: 200% 0; } }

/* Stadtkarte Nullhafen */
.citymap { position: relative; width: min(100%, 576px); margin: 0 auto; border-radius: var(--radius); overflow: visible; }
.citymap img { display: block; width: 100%; image-rendering: pixelated; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(123, 77, 255, .25); }
.district { position: absolute; translate: -50% -50%; background: none; border: 0; padding: 0; cursor: pointer; color: #fff; font: inherit; }
.pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(13, 8, 32, .85); border: 2px solid var(--c);
  box-shadow: 0 0 12px var(--c); font-size: .95rem; transition: transform .2s var(--ease); }
.label { position: absolute; left: 50%; bottom: 120%; translate: -50% 4px; white-space: nowrap; background: rgba(13, 8, 32, .95); border: 1px solid var(--c);
  padding: .15rem .55rem; border-radius: 8px; font-size: .85rem; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; }
.district:hover .pin, .district:focus .pin, .district.on .pin { transform: scale(1.25); }
.district:hover .label, .district:focus .label, .district.on .label { opacity: 1; translate: -50% 0; }

/* Seiten-Elemente */
.address { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; margin: 1.2rem 0; color: var(--muted); }
.steps { list-style: none; padding: 0; counter-reset: s; }
.step { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.step .num { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--void); color: #fff; font-size: 1.1rem; text-shadow: none; }
.step h3 { margin: 0; }
.step p { margin: .2rem 0 0; color: #cfc6f5; }
.rules { padding-left: 1.6rem; }
.rules li { margin-bottom: 1rem; }
.rules li::marker { color: var(--gold); font-weight: 800; }
.rules h3 { margin: 0; font-size: 1.05rem; }
.rules p { margin: .15rem 0 0; color: #cfc6f5; }
.faq dt { font-weight: 700; margin-top: .9rem; }
.faq dd { margin: .2rem 0 0; color: #cfc6f5; }
.news { border-left: 3px solid var(--void); padding: .2rem 0 .2rem 1.1rem; margin: 0 0 1.8rem; }
.news h3 { margin: .2rem 0 .3rem; }
.news .date { margin: 0; color: var(--muted); font-size: .9rem; }
.notice { border: 1px dashed var(--gold); color: var(--gold); border-radius: 12px; padding: .8rem 1rem; }
.boards { text-align: center; }

footer { text-align: center; color: var(--muted); border-top: 1px solid var(--line); margin-top: 5rem; padding: 2rem 1rem 2.5rem; font-size: .92em; }
footer p { margin: .3rem 0; }
body.choose main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; }

/* Scroll-Reveal (nur mit JS aktiv: .js auf <html>) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; margin-left: auto; }
  .top { flex-wrap: wrap; }
  .top nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; }
  .top nav.open { display: flex; }
  .top-actions { margin-left: 0; }
  .top-actions .discord, .banner-bg { display: none; }
  .top { gap: .5rem; }
  .live ul { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
