/* 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; }
}

/* ===================================================================================================================
   Theme "Chronik" (RPG-Look, Inhaber 2026-11-13: zu lila, mehr RPG). Ueberschreibt das Void-Theme:
   warmes Dunkel, Pergament-Text, Gold als Leitfarbe, Serifen-Ueberschriften, echtes Ingame-Bild im Titel.
   Violett/Cyan bleiben nur als Riss-Akzent (Emblem, Falten-Turm, Seltenheiten).
   =================================================================================================================== */
:root {
  --bg: #120e0a; --bg2: #1a140e; --card: rgba(30, 23, 15, .86); --card-solid: #1e170f; --line: rgba(201, 162, 74, .32);
  --text: #f1e7d0; --soft: #d9cba9; --muted: #a8977a; --gold: #e2b659; --gold-deep: #9c7426; --ember: #d9742b;
  --radius: 10px;
}
body { background:
    radial-gradient(1200px 600px at 50% -10%, rgba(226, 182, 89, .10), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 5px),
    linear-gradient(#17110b, var(--bg) 480px);
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif; font-size: 17px; }
body::before { background: radial-gradient(50% 45% at 80% 8%, rgba(123, 77, 255, .10), transparent 70%); }
a { color: var(--gold); }
a:hover { color: #ffe3a0; }
code { background: rgba(0, 0, 0, .5); color: #ffe9b8; border-radius: 4px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
:focus-visible { outline-color: var(--gold); }
.skip { background: var(--gold-deep); }

/* Ueberschriften: Serifen-Versalien in Gold, mit Zierlinie */
.px { font-family: "Cinzel", "Trajan Pro", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-weight: 700; letter-spacing: .12em;
  color: var(--gold); text-shadow: 0 2px 0 #000, 0 0 26px rgba(226, 182, 89, .22); }
h2.px { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.4rem; }
h2.px::before, h2.px::after { content: ""; flex: 0 1 140px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep)); }
h2.px::after { background: linear-gradient(270deg, transparent, var(--gold-deep)); }
.live h2.px, .discord-card h2.px { display: block; }
.live h2.px::before, .live h2.px::after, .discord-card h2.px::before, .discord-card h2.px::after { content: none; }

/* Kopfzeile */
.top { background: rgba(14, 10, 6, .88); border-bottom: 1px solid var(--gold-deep); box-shadow: 0 1px 0 rgba(0, 0, 0, .8), 0 8px 30px rgba(0, 0, 0, .45); }
.top nav a { font-family: system-ui, "Segoe UI", sans-serif; font-size: .95rem; border-radius: 4px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: #fff3d0; background: rgba(226, 182, 89, .14); box-shadow: inset 0 -2px 0 var(--gold); }
.lang, .menu-toggle { border-radius: 4px; font-family: system-ui, sans-serif; }
.lang b { color: var(--gold); }

/* Knoepfe: gepraegtes Metall */
.btn { border-radius: 6px; font-family: system-ui, "Segoe UI", sans-serif; background: linear-gradient(#2a2015, #1b140c); border-color: var(--gold-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 0 #000; }
.btn:hover { border-color: var(--gold); color: #fff3d0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 24px rgba(226, 182, 89, .22); }
.btn.ghost { background: rgba(0, 0, 0, .45); }
.btn.discord { background: linear-gradient(#6672f5, #4752c4); border-color: #2f3899; }
.btn.play { background: linear-gradient(#f4cf78, var(--gold) 45%, #b9862b); color: #2a1a05; border: 1px solid #6e4f14;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 10px 34px rgba(226, 182, 89, .35); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.btn.play:hover { color: #1c1103; }
.btn.play code { background: rgba(42, 26, 5, .85); border-color: rgba(0, 0, 0, .4); color: #ffe9b8; text-shadow: none; }
.play-label { font-family: "Cinzel", "Palatino Linotype", Georgia, serif; font-weight: 700; }
.badge { border-radius: 4px; }

/* Titelbereich: echtes Ingame-Bild statt Sternenfeld und Banner */
.hero { min-height: min(94vh, 900px); }
.stars { opacity: .18; mix-blend-mode: screen; }
.rift { opacity: .35; background: radial-gradient(closest-side, rgba(226, 182, 89, .28), rgba(123, 77, 255, .12) 50%, transparent 72%); }
.banner-bg { inset: 0; height: auto; opacity: 1; filter: none; z-index: -4;
  background: linear-gradient(rgba(18, 14, 10, .12), rgba(18, 14, 10, .38) 55%, var(--bg) 98%), url("/static/hero.jpg") center 40% / cover no-repeat;
  mask-image: none; -webkit-mask-image: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; box-shadow: inset 0 0 200px 40px rgba(0, 0, 0, .55); }
.emblem { width: clamp(110px, 14vw, 160px); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .8)) drop-shadow(0 0 34px rgba(123, 77, 255, .55)); animation: float 7s ease-in-out infinite; }
.wordmark { letter-spacing: .2em; background: linear-gradient(180deg, #fff6dc 5%, #f4cf78 40%, var(--gold) 62%, #8a6420); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 3px 0 #1a1005) drop-shadow(0 0 22px rgba(0, 0, 0, .85)); }
.tagline { color: #f6ecd4; text-shadow: 0 2px 10px #000, 0 0 2px #000; font-size: clamp(1.05rem, 2.3vw, 1.3rem); }
.scroll-hint { color: var(--gold); text-shadow: 0 2px 6px #000; }
.pill { background: rgba(14, 10, 6, .78); border-radius: 6px; font-family: system-ui, sans-serif; }

/* Karten: dunkles Leder mit Goldrand */
.lead, .card p, .layer p, .step p, .rules p, .faq dd { color: var(--soft); }
.card { border-radius: var(--radius); backdrop-filter: none; background: linear-gradient(rgba(38, 29, 19, .92), rgba(24, 18, 11, .94));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7), inset 0 0 0 4px rgba(226, 182, 89, .07), 0 10px 30px rgba(0, 0, 0, .45); position: relative; }
.card h3 { font-family: "Cinzel", "Palatino Linotype", Georgia, serif; color: #f6dfa6; letter-spacing: .04em; }
.pillar::before { background: conic-gradient(from var(--a, 0deg), transparent 0 70%, #fff0c2, var(--gold), transparent); }
.pillar:hover { box-shadow: 0 18px 50px rgba(226, 182, 89, .22); }
.discord-card { background: linear-gradient(135deg, rgba(88, 101, 242, .30), rgba(30, 23, 15, .92)); }
.live .players strong { font-family: "Cinzel", Georgia, serif; color: var(--gold); }

/* Galerie: gerahmte Bilder */
.shot { border-radius: 6px; border: 1px solid var(--gold-deep); box-shadow: 0 0 0 4px #0c0906, 0 0 0 5px rgba(226, 182, 89, .35), 0 14px 34px rgba(0, 0, 0, .6); }
.shot figcaption { background: linear-gradient(transparent, rgba(12, 9, 6, .94)); font-family: "Cinzel", "Palatino Linotype", Georgia, serif; letter-spacing: .04em; color: #f6dfa6; }
.gallery { gap: 1.4rem; }
.lightbox { background: rgba(8, 6, 4, .94); }
.lightbox img { border-radius: 4px; box-shadow: 0 0 0 1px var(--gold-deep), 0 0 80px rgba(0, 0, 0, .9); }

/* Falten-Turm, Klassen, Seltenheiten, Karte */
.layer-body { border-radius: 6px; background: linear-gradient(rgba(38, 29, 19, .92), rgba(24, 18, 11, .94)); }
.layer h3, .class-card h2 { font-family: "Cinzel", "Palatino Linotype", Georgia, serif; }
.membrane span { background: repeating-linear-gradient(90deg, rgba(226, 182, 89, .16) 0 6px, transparent 6px 12px); background-size: 24px 100%; border-radius: 4px; }
.class-chip { border-radius: 6px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 20%, transparent), rgba(24, 18, 11, .94)); }
.item { background-image: linear-gradient(#1b140c, #0f0b07), var(--g); }
.citymap img { border-color: var(--gold-deep); box-shadow: 0 0 0 4px #0c0906, 0 0 0 5px rgba(226, 182, 89, .35), 0 0 60px rgba(0, 0, 0, .6); }
.pin, .label { background: rgba(14, 10, 6, .92); }

/* Seiten-Elemente */
.step .num { border-radius: 4px; background: linear-gradient(#f4cf78, #b9862b); color: #2a1a05; font-family: "Cinzel", Georgia, serif; font-weight: 700; border: 1px solid #6e4f14; }
.news { border-left-color: var(--gold-deep); }
.notice { border-radius: 6px; background: rgba(226, 182, 89, .06); }
footer { border-top: 1px solid var(--gold-deep); background: linear-gradient(rgba(0, 0, 0, .35), transparent); }
@media (max-width: 860px) {
  .banner-bg { display: block; }
  h2.px::before, h2.px::after { flex-basis: 40px; }
}

/* Chronik, Feinschliff: weichere, rundere Knoepfe (Inhaber: "zu pixel und zu eckig") und saubere Handy-Breite */
.btn { border-radius: 999px; padding: .72rem 1.5rem; font-weight: 600; letter-spacing: .01em;
  background: linear-gradient(rgba(52, 40, 26, .92), rgba(28, 21, 13, .94)); border: 1px solid rgba(226, 182, 89, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 18px rgba(0, 0, 0, .45); }
.btn.small { padding: .32rem .95rem; }
.btn.discord { background: linear-gradient(#6f7bf7, #4f5bd5); border-color: rgba(255, 255, 255, .18); }
.btn.play { border-radius: 999px; padding: .8rem 1.1rem .8rem 1.6rem; border: 1px solid rgba(110, 79, 20, .9);
  background: linear-gradient(#f8dc95, #e6ba5c 48%, #c9963a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 30px rgba(226, 182, 89, .32), 0 2px 6px rgba(0, 0, 0, .5); }
.play-label { font-family: system-ui, "Segoe UI", Roboto, sans-serif; font-weight: 800; letter-spacing: .08em; }
.btn.play code { border-radius: 999px; padding: .28em .9em; font-family: system-ui, "Segoe UI", Roboto, sans-serif; font-weight: 600; font-size: .92em;
  background: rgba(42, 26, 5, .9); border: 0; }
.pill, .lang, .menu-toggle, .badge { border-radius: 999px; }
.top nav a { border-radius: 999px; }
.top nav a:hover, .top nav a[aria-current="page"] { box-shadow: none; background: rgba(226, 182, 89, .18); }
.step .num { border-radius: 50%; }
.hero-inner { max-width: min(860px, 100%); min-width: 0; }
@media (max-width: 600px) {
  .tagline { padding: 0 .4rem; font-size: 1rem; }
  .btn.play { flex-wrap: wrap; justify-content: center; padding: .8rem 1.2rem; max-width: 100%; }
  .wordmark { letter-spacing: .12em; }
}

/* Datenschutz als Karten (Inhaber 2026-11-13) */
.legal .lead { max-width: 52rem; margin: 0 auto 1.6rem; text-align: center; }
.legal-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.legal-grid .card p + p { margin-top: .6rem; }
.top .brand img, footer img { image-rendering: pixelated; }
.emblem { image-rendering: pixelated; width: clamp(130px, 16vw, 190px); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .8)) drop-shadow(0 0 30px rgba(79, 227, 255, .45)); }

/* Lightbox: Weiterschalten (Inhaber 2026-11-13) */
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 999px; border: 1px solid var(--gold-deep);
  background: rgba(14, 10, 6, .8); color: var(--gold); font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-nav:hover, .lb-nav:focus-visible { border-color: var(--gold); color: #fff3d0; box-shadow: 0 0 24px rgba(226, 182, 89, .3); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lightbox .lb-nav { top: 50%; right: auto; }
.lightbox .lb-next { right: 1rem; left: auto; }
.lb-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: var(--muted); font-family: system-ui, sans-serif; font-size: .9rem; }
@media (max-width: 600px) { .lb-nav { width: 2.4rem; height: 2.4rem; font-size: 1.6rem; } .lb-prev { left: .4rem; } .lightbox .lb-next { right: .4rem; } }

/* Stadtkarte hochaufgelöst + Viertel-Ansicht (Inhaber 2026-11-13: "Klick öffnet den Bereich in einer besseren Ansicht mit Erklärung") */
/* ganze Karte samt Pins auf einen Laptop-Bildschirm (1280×720, 1366×768): Höhe unter Kopfleiste + Rand begrenzen */
.citymap { width: min(100%, 900px, max(340px, calc(100vh - 7.5rem))); width: min(100%, 900px, max(340px, calc(100dvh - 7.5rem))); }
.citymap-frame { position: relative; border-radius: 12px; }
.citymap-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1; image-rendering: auto; border-radius: 12px; border: 1px solid var(--gold-deep);
  background: #2d4a22; box-shadow: 0 0 0 4px #0c0906, 0 0 0 5px rgba(226, 182, 89, .35), 0 24px 60px rgba(0, 0, 0, .6); }
.citymap .pin { width: 36px; height: 36px; font-size: 1.05rem; color: #fff6dc; background: radial-gradient(circle at 50% 35%, rgba(44, 33, 20, .96), rgba(10, 7, 4, .96));
  border: 2px solid var(--c); box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), 0 0 14px var(--c), 0 4px 10px rgba(0, 0, 0, .6); position: relative; }
.citymap .pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; transform: scale(.7); transition: opacity .25s, transform .25s var(--ease); }
.district:hover .pin::after, .district:focus-visible .pin::after, .district.on .pin::after { opacity: .7; transform: scale(1); }
.citymap .label { font-family: "Cinzel", "Palatino Linotype", Georgia, serif; letter-spacing: .03em; color: #f6dfa6; border-color: var(--c); box-shadow: 0 6px 16px rgba(0, 0, 0, .55); }
.district:focus-visible { outline: none; }
.district:focus-visible .pin { outline: 2px solid var(--gold); outline-offset: 4px; }
.district-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.district-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .9rem .38rem .45rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: .92rem;
  color: var(--text); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, transparent), rgba(24, 18, 11, .94)); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.district-chip:hover, .district-chip:focus-visible { border-color: var(--c); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 14px color-mix(in srgb, var(--c) 35%, transparent); }
.chip-icon { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 1px solid var(--c); font-size: .85rem; }
html.cv-lock { overflow: hidden; }
.cityview { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 1rem; background: rgba(8, 6, 4, .88); backdrop-filter: blur(4px); animation: fade .2s; }
.cv-panel { position: relative; width: min(1060px, 100%); max-height: calc(100dvh - 2rem); overflow: auto; overscroll-behavior: contain; border-radius: 14px;
  background: linear-gradient(rgba(40, 30, 19, .98), rgba(18, 13, 8, .98)); border: 1px solid var(--gold-deep); border-top: 3px solid var(--c, var(--gold));
  box-shadow: inset 0 0 0 4px rgba(226, 182, 89, .06), 0 30px 90px rgba(0, 0, 0, .85), 0 0 60px color-mix(in srgb, var(--c, #e2b659) 18%, transparent); animation: cv-in .28s var(--ease); }
@keyframes cv-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.cv-content { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.8rem; padding: 1.6rem 1.6rem .6rem; align-items: start; }
.cv-media img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--gold-deep); background: #2d4a22;
  box-shadow: 0 0 0 4px #0c0906, 0 0 0 5px color-mix(in srgb, var(--c, #e2b659) 45%, transparent), 0 14px 34px rgba(0, 0, 0, .6); }
.cv-body { padding-top: .2rem; }
.cv-kicker { display: flex; align-items: center; gap: .6rem; margin: 0 0 .4rem; color: var(--muted); font-style: italic; }
.cv-icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-style: normal; font-size: 1.15rem; color: #fff6dc;
  background: rgba(0, 0, 0, .55); border: 2px solid var(--c, var(--gold)); box-shadow: 0 0 14px var(--c, var(--gold)); }
.cv-title { margin: 0 0 .8rem; font-family: "Cinzel", "Trajan Pro", "Palatino Linotype", Georgia, serif; font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: .06em;
  color: var(--gold); text-shadow: 0 2px 0 #000, 0 0 22px rgba(226, 182, 89, .2); }
.cv-flavour { color: var(--soft); line-height: 1.6; margin: 0 0 1rem; }
.cv-stats { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.cv-stats li { padding: .25rem .7rem; border-radius: 999px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); font-family: system-ui, "Segoe UI", sans-serif; font-size: .85rem; color: var(--muted); }
.cv-stats strong { color: #fff3d0; }
.cv-find-title { margin: 0 0 .5rem; font-family: "Cinzel", "Palatino Linotype", Georgia, serif; color: #f6dfa6; letter-spacing: .05em; font-size: 1.05rem; }
.cv-find { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.cv-find li { position: relative; padding-left: 1.3rem; color: var(--text); line-height: 1.45; }
.cv-find li::before { content: "◆"; position: absolute; left: 0; top: .1em; font-size: .75em; color: var(--c, var(--gold)); text-shadow: 0 0 8px var(--c, var(--gold)); }
/* sticky statt absolute: bleibt beim Scrollen im Panel sichtbar (Handy-Sheet füllt den ganzen Schirm, kein Hintergrund zum Antippen) */
.cv-close { position: sticky; top: .7rem; margin: .7rem .7rem -3.1rem auto; z-index: 3; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--gold-deep); cursor: pointer;
  background: rgba(14, 10, 6, .85); color: var(--gold); font-size: 1.05rem; display: grid; place-items: center; }
.cv-close:hover, .cv-close:focus-visible { border-color: var(--gold); color: #fff3d0; }
.cv-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .9rem 1.6rem 1.2rem;
  background: linear-gradient(transparent, rgba(18, 13, 8, .98) 35%); }
.cv-foot .btn { max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-count { color: var(--muted); font-family: system-ui, sans-serif; font-size: .9rem; }
.cv-caption { margin: .6rem 0 0; color: var(--muted); font-size: .88rem; font-style: italic; line-height: 1.45; }
.cv-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .cityview { padding: 0; align-items: end; }
  .cv-panel { max-height: 100dvh; border-radius: 14px 14px 0 0; }
  .cv-content { grid-template-columns: 1fr; gap: 1rem; padding: 1rem 1rem .4rem; }
  .cv-foot { padding: .7rem 1rem 1rem; }
  .cv-foot .btn { padding: .4rem .8rem; font-size: .85rem; }
}
@media (max-width: 600px) {
  .citymap .pin { width: 28px; height: 28px; font-size: .85rem; }
  .citymap .label { display: none; }
}
