:root {
  /* Eine Welt bei Nacht: Lila aus dem Chat-Prefix (§5/§d) auf fast schwarzem Violett, Trenner » wie im Ingame-Chat */
  --night: #110a18;
  --night-2: #1a1024;
  --line: #2f1f3f;
  --brand: #8600df;      /* theme-color der alten Seite */
  --brand-dark: #aa00aa; /* §5 Messages.DARK */
  --brand-light: #ff55ff;/* §d Messages.NORMAL */
  --text: #f1eaf6;
  --muted: #a99db4;      /* §7, leicht ins Lila gezogen */
  --sep: #6b5d77;        /* §8 */
  --font-display: "Bricolage Grotesque", "Rubik", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
}
a { color: inherit; }
img, canvas { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* Navigation */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgb(17 10 24 / .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font: 700 22px/1 var(--font-display); text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.logo i { width: 18px; height: 18px; background: var(--brand); box-shadow: inset -4px -4px 0 var(--brand-dark), inset 4px 4px 0 #a24cf0; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
nav > ul > li { position: relative; }
nav a, nav summary {
  display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none;
  font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; list-style: none;
}
nav summary::-webkit-details-marker { display: none; }
nav summary::after { content: " ▾"; font-size: 11px; }
nav a:hover, nav summary:hover, nav details[open] summary { color: var(--text); background: var(--night-2); }
nav a[aria-current] { color: var(--text); }
nav details ul {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 170px;
  flex-direction: column; align-items: stretch; gap: 0;
  background: var(--night-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px;
}
nav .cta { background: var(--brand); color: #fff; }
nav .cta:hover { background: #9a1cf2; }
.btn.menu-btn { display: none; }
/* Menüknopf: Endertruhe, der Deckel klappt beim Öffnen auf */
.btn.menu-btn { width: 46px; height: 42px; padding: 0; justify-content: center; }
.menu-btn .mi { flex: 0 0 auto; }
.menu-btn .mi { width: 22px; height: 22px; fill: currentColor; display: block; image-rendering: pixelated; }
.mi-chest { width: 26px !important; height: 26px !important; overflow: visible; }
.mi-chest .mi-lid, .mi-chest .mi-latch { transition: transform .2s; transform-origin: 1px 8px; }
.menu-open .mi-chest .mi-lid, .menu-open .mi-chest .mi-latch { transform: rotate(-18deg); }
.menu-open .menu-btn { border-color: var(--brand); }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.chatline { font: 500 15px/1.4 var(--font-mono); color: var(--brand-light); margin: 0 0 18px; }
.chatline b { color: var(--brand-dark); font-weight: 500; filter: brightness(1.35); }
.chatline span { color: var(--sep); }
h1 {
  font: 800 clamp(56px, 9vw, 112px)/.92 var(--font-display);
  margin: 0; letter-spacing: -.035em; text-wrap: balance;
  color: var(--text);
  text-shadow: 6px 6px 0 var(--brand-dark);
}
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 30ch; margin: 22px 0 30px; }
.hero p.lead strong { color: var(--text); font-weight: 500; }
.join { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.ip {
  display: flex; align-items: center; gap: 14px;
  background: var(--night-2); border: 2px solid var(--brand); border-radius: 8px;
  padding: 0 6px 0 18px; font: 500 18px var(--font-mono); color: var(--text);
}
.ip small { font: 500 12px var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.btn {
  font: 700 16px var(--font-body); border: 0; border-radius: 6px; cursor: pointer;
  padding: 12px 18px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 4px 0 #4f0085; }
.btn-brand:hover { background: #9a1cf2; }
.btn-brand:active { transform: translateY(2px); box-shadow: 0 2px 0 #4f0085; }
.ip .btn { margin: 6px 0 10px; } /* Schatten unten (4px) mitzählen, damit der Knopf optisch mittig sitzt */
.ip > div { line-height: 1.35; padding: 6px 0 10px; }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--sep); }
.status { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; min-height: 22px; }
.status .dot { width: 9px; height: 9px; border-radius: 2px; background: var(--sep); }
.status.on .dot { background: #55ff55; box-shadow: 0 0 10px #55ff55; }
.scene-box { position: relative; }
#scene { width: 100%; height: auto; aspect-ratio: 1 / .82; image-rendering: pixelated; }

/* Abschnitte */
section { padding: 72px 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 32px; flex-wrap: wrap; }
h2 { font: 700 clamp(32px, 4.5vw, 46px)/1.05 var(--font-display); margin: 0; text-wrap: balance; }
.sec-head .tag { font: 500 14px var(--font-mono); color: var(--sep); }
.sec-head .tag em { font-style: normal; color: var(--brand-light); }
h3 { font: 700 24px/1.15 var(--font-display); margin: 0; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about p { margin: 0 0 14px; max-width: 58ch; color: var(--muted); }
.about p strong { color: var(--text); font-weight: 500; }
.eco { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.eco li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.eco b { font: 700 18px var(--font-display); color: var(--brand-light); }
.eco span { color: var(--muted); }

.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.world { background: var(--night-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.world canvas { width: 100%; aspect-ratio: 5 / 2; image-rendering: pixelated; border-bottom: 1px solid var(--line); }
.world div { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.world .sub { font: 500 13px var(--font-mono); color: var(--sep); }
.world p { margin: 0; color: var(--muted); font-size: 15px; }

.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery figure:first-child { grid-row: span 2; }
.shot { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--night-2); }
.shot img, .shot canvas { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.gallery figure:first-child .shot { aspect-ratio: 4 / 3.2; }
.gallery figure .shot { aspect-ratio: 16 / 8; }
figcaption { font-size: 15px; color: var(--muted); }
figcaption b { color: var(--text); font-weight: 500; }

.join-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { border-top: 3px solid var(--brand); padding-top: 18px; }
.step::before { counter-increment: s; content: "0" counter(s); font: 500 14px var(--font-mono); color: var(--brand-light); display: block; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
.step code { font: 500 14px var(--font-mono); color: var(--text); background: var(--night-2); padding: 1px 6px; border-radius: 4px; }

.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.links a {
  text-decoration: none; padding: 18px; border: 1px solid var(--line); border-radius: 10px;
  display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, background .15s;
}
.links a:hover { border-color: var(--brand); background: var(--night-2); }
.links a b { font: 700 19px var(--font-display); }
.links a b::after { content: " »"; color: var(--brand-light); }
.links a span { font-size: 14px; color: var(--muted); }

main { flex: 1 0 auto; }
footer { border-top: 1px solid var(--line); padding: 16px 0; line-height: 1.4; color: var(--sep); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer nav ul { gap: 18px; }
footer nav a { padding: 0; color: var(--muted); font-size: 14px; font-weight: 400; }
footer nav a:hover { background: none; color: var(--text); }
@media (max-width: 640px) { footer .wrap { flex-direction: column; justify-content: center; gap: 8px; text-align: center; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--night-2); border: 1px solid var(--brand); color: var(--text); padding: 10px 16px; border-radius: 8px;
  font: 500 14px var(--font-mono); transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .btn.menu-btn { display: inline-flex; }
  header.top nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--night); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; }
  header.top nav.open { display: block; }
  header.top nav ul { flex-direction: column; align-items: stretch; }
  nav details ul { position: static; border: 0; background: none; padding: 0 0 0 14px; }
  .hero { padding-top: 40px; }
  .hero .wrap, .about { grid-template-columns: 1fr; }
  .scene-box { order: -1; max-width: 460px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-row: auto; }
  .gallery figure:first-child .shot { aspect-ratio: 16 / 10; }
  .join-steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .worlds, .links { grid-template-columns: 1fr; }
  .eco li { grid-template-columns: 1fr; gap: 2px; }
  section { padding: 52px 0; }
  .ip { width: 100%; justify-content: space-between; }
}

/* Chatzeile wie im Spiel, unten auf der Grafik */
.mc-chat {
  position: absolute; left: 0; bottom: 4%; margin: 0;
  background: rgb(0 0 0 / .55); padding: 6px 12px;
  font: 500 15px/1.4 var(--font-mono); color: var(--brand-light);
}
.mc-chat b { color: #c13dd8; font-weight: 500; }
.mc-chat span { color: var(--sep); }

/* Unterseiten */
.page-head { padding: 64px 0 8px; }
.page-head .eyebrow { font: 500 14px var(--font-mono); color: var(--sep); margin: 0 0 12px; }
.page-head .eyebrow a { color: var(--muted); text-decoration: none; }
.page-head .eyebrow a:hover { color: var(--text); }
.page-head h1 { font-size: clamp(48px, 7vw, 84px); text-shadow: 5px 5px 0 var(--brand-dark); }
.page-head .intro { color: var(--muted); font-size: 19px; max-width: 60ch; margin: 18px 0 0; }
.page-body { padding: 48px 0 88px; }
.page-body section { padding: 0; }
.stack { display: grid; gap: 56px; }
.note { border-left: 3px solid var(--brand); background: var(--night-2); padding: 14px 18px; border-radius: 0 8px 8px 0; color: var(--muted); max-width: 70ch; }
.note b { color: var(--text); font-weight: 500; }
.muted { color: var(--muted); }

/* Regeln */
.rules { display: grid; grid-template-columns: 220px 1fr; gap: 24px 48px; }
.rules nav ul { flex-direction: column; align-items: stretch; position: sticky; top: 88px; }
.rules nav a { padding: 6px 10px; }
.rule-part h2 { font-size: 30px; display: flex; gap: 14px; align-items: baseline; margin-bottom: 16px; }
.rule-part h2 small { font: 500 16px var(--font-mono); color: var(--brand-light); }
.rule-part ol { margin: 0; padding: 0; list-style: none; counter-reset: r; border-top: 1px solid var(--line); }
.rule-part li { counter-increment: r; display: grid; grid-template-columns: 48px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.rule-part li::before { content: "§" counter(r); font: 500 14px var(--font-mono); color: var(--sep); padding-top: 3px; }
.rule-part li strong { color: var(--text); font-weight: 500; }

/* Befehle */
.cmd-group h2 { font-size: 30px; margin-bottom: 16px; }
.cmds { width: 100%; border-collapse: collapse; }
.cmds td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmds td:first-child { width: 42%; padding-right: 24px; }
.cmds code { font: 500 15px var(--font-mono); color: var(--brand-light); background: var(--night-2); padding: 2px 8px; border-radius: 4px; display: inline-block; }
.cmds code .arg { color: var(--muted); }
.cmds td:last-child { color: var(--muted); }
.cmd-search { width: min(420px, 100%); background: var(--night-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 12px 14px; font: 400 16px var(--font-body); }
.cmd-search:focus { border-color: var(--brand); outline: none; }

/* Team */
.team-group h2 { font-size: 26px; margin-bottom: 18px; color: var(--muted); }
.team-group h2 span { color: var(--text); }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.member { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--night-2); border: 1px solid var(--line); border-radius: 10px; }
.member .head { width: 56px; height: 56px; flex: none; image-rendering: pixelated; border-radius: 4px; }
.member b { display: block; font: 700 18px var(--font-display); }
.member span { color: var(--muted); font-size: 14px; }
.rank { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* Technik */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.spec { background: var(--night-2); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.spec h2 { font-size: 24px; margin-bottom: 14px; }
.spec dl { margin: 0; display: grid; gap: 10px; }
.spec dt { font: 500 12px var(--font-mono); color: var(--sep); text-transform: uppercase; letter-spacing: .06em; }
.spec dd { margin: 0; color: var(--text); }
.big { font: 700 44px/1 var(--font-display); color: var(--brand-light); }

/* Eastereggs */
.eggs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.egg { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--night-2); border: 1px solid var(--line); border-radius: 10px; }
.egg canvas { width: 28px; height: 34px; image-rendering: pixelated; flex: none; }
.egg b { font-weight: 500; flex: 1; }
.egg span { font: 500 14px var(--font-mono); color: var(--brand-light); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font: 700 21px var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-light); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 20px; color: var(--muted); }
.faq .a p { margin: 0 0 10px; }
.faq code, .page-body p code { font: 500 14px var(--font-mono); color: var(--text); background: var(--night-2); padding: 1px 6px; border-radius: 4px; }

/* Vote */
.votes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vote { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--night-2); border: 1px solid var(--line); border-radius: 10px; }
.vote .n { font: 500 13px var(--font-mono); color: var(--sep); }
.vote h2 { font-size: 24px; }
.vote .btn { align-self: flex-start; }

/* Spenden */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--night-2); border: 1px solid var(--line); border-radius: 12px; }
.tier.hot { border: 2px solid var(--brand); }
.tier h2 { font-size: 26px; }
.tier .price { font: 700 44px/1 var(--font-display); }
.tier .price small { font: 400 15px var(--font-body); color: var(--muted); }
.tier ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; flex: 1; align-content: start; }
.tier .price .eur { font-family: var(--font-body); font-weight: 700; font-size: 36px; }
.tier li { color: var(--muted); padding-left: 20px; position: relative; }
.tier li::before { content: "»"; position: absolute; left: 0; color: var(--brand-light); }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.perks h2 { font-size: 28px; margin-bottom: 16px; }

/* Formular */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form textarea, .form select {
  background: var(--night-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 11px 13px; font: 400 16px var(--font-body);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--brand); outline: none; }
.roles { display: flex; gap: 10px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.roles legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.roles label { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); cursor: pointer; }
.roles label:has(input:checked) { border-color: var(--brand); background: var(--night-2); }
/* Eigene Radio- und Checkbox-Optik, damit sie mittig zum Text sitzen */
.form input[type="radio"], .form input[type="checkbox"] { appearance: none; flex: 0 0 auto; width: 18px; height: 18px; margin: 0; padding: 0; display: grid; place-content: center; background: var(--night); border: 2px solid var(--sep); border-radius: 50%; cursor: pointer; }
.form input[type="checkbox"] { border-radius: 4px; }
.form input[type="radio"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-light); transform: scale(0); transition: transform .12s; }
.form input[type="checkbox"]::before { content: ""; width: 10px; height: 10px; background: #fff; clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 22%, 86% 8%, 40% 70%); transform: scale(0); transition: transform .12s; }
.form input:checked { border-color: var(--brand); }
.form input[type="checkbox"]:checked { background: var(--brand); }
.form input:checked::before { transform: scale(1); }
.roles label { line-height: 1; }
.form .consent { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 15px; line-height: 1.5; cursor: pointer; }
.form .consent input { margin-top: 2px; }
.form .consent a { color: var(--brand-light); }
.form-msg { color: var(--brand-light); min-height: 1.4em; margin: 0; }

/* Karte */
.map-frame { aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-2); position: relative; }
/* Gepixelter Minecraft-Kartenrahmen: Holzrahmen + Pergamentrand */
.map-frame.mc { border: 20px solid transparent; border-image: url("assets/img/mapframe.png") 10 round; image-rendering: pixelated; box-sizing: border-box; background: #d9c79a; filter: drop-shadow(0 14px 22px rgb(0 0 0 / .5)); overflow: visible; }
.map-frame.mc > img, .map-frame.mc > iframe { image-rendering: auto; }
@media (max-width: 640px) { .map-frame.mc { border-width: 14px; } }
.map-frame canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.map-frame .note { position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 520px; }

@media (max-width: 860px) {
  .rules { grid-template-columns: 1fr; }
  .rules nav ul { position: static; flex-direction: row; flex-wrap: wrap; }
  .specs, .votes, .tiers, .perks { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .cmds td { display: block; width: auto !important; border: 0; padding: 4px 0; }
  .cmds tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .mc-chat { font-size: 13px; }
}

/* Nachträge: echte Bilder, Karte, Rechtliches */
.gallery { grid-template-columns: 1fr 1fr; }
.gallery figure:first-child { grid-row: auto; }
.gallery figure .shot, .gallery figure:first-child .shot { aspect-ratio: 16 / 9; }
.shot img { image-rendering: auto; }
.tech-photo { margin: 32px 0 0; display: grid; gap: 10px; }
.tech-photo img { border-radius: 12px; border: 1px solid var(--line); max-height: 420px; width: 100%; object-fit: cover; }
.tech-photo figcaption { color: var(--muted); font-size: 15px; }
.map-frame img { width: 100%; height: 100%; object-fit: cover; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-cta { position: absolute; left: 20px; bottom: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.map-cta .btn-ghost { background: rgb(17 10 24 / .8); }
.map-full { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: rgb(17 10 24 / .85); border: 2px solid var(--line); border-radius: 6px; color: var(--text); }
.map-full:hover { border-color: var(--brand); color: var(--brand-light); }
.map-full svg { width: 20px; height: 20px; fill: currentColor; }
.map-full .ic-close, .map-frame.is-full .map-full .ic-open { display: none; }
.map-frame.is-full .map-full .ic-close { display: inline; }
.map-frame.is-full { position: fixed; inset: 0; z-index: 200; aspect-ratio: auto; width: auto; height: auto; margin: 0; filter: none; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
@media (max-width: 640px) {
  .map-frame { aspect-ratio: 4 / 3; }
  .map-cta { left: 8px; right: 8px; bottom: 8px; flex-wrap: nowrap; gap: 8px; }
  .map-cta .btn { flex: 1 1 0; justify-content: center; padding: 9px 8px; font-size: 13px; white-space: nowrap; }
  .map-full { top: 8px; right: 8px; width: 38px; height: 38px; }
}
.form .count { font: 500 12px var(--font-mono); color: var(--sep); justify-self: end; }
.legal { max-width: 75ch; color: var(--muted); }
.legal h2, .legal h3, .legal h4 { font: 700 22px/1.2 var(--font-display); color: var(--text); margin: 32px 0 10px; }
.legal p strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--brand-light); }
.legal p { margin: 0 0 12px; }

/* Bricolage Grotesque: etwas enger setzen */
h2, h3, .faq summary, .member b, .links a b { letter-spacing: -.02em; }
h2 { font-weight: 800; }
.logo img { width: 30px; height: 30px; image-rendering: pixelated; border-radius: 6px; }

/* Team */
.r-owner { --rank: #e04848; } .r-admin { --rank: #ff6b6b; } .r-dev { --rank: #5b8cff; } .r-arch { --rank: #3fcf8e; } .r-sup { --rank: #f2b134; }
.crew-group h2 { font-size: 28px; display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.crew-group h2 small { font: 500 14px var(--font-mono); color: var(--sep); }
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.crew-lead { grid-template-columns: repeat(3, 1fr); }
.crew-rest { display: grid; gap: 40px; }
.crew-rest .crew { grid-template-columns: repeat(5, 1fr); }
.mate { background: var(--night-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.mate:hover { border-color: var(--rank); transform: translateY(-2px); }
.mate-pic {
  height: 170px; display: grid; place-items: end center; padding-top: 16px;
  background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--rank) 38%, transparent), transparent 70%), var(--night);
  border-bottom: 2px solid var(--rank);
}
.mate.lead .mate-pic { height: 230px; }
.mate-pic .skin { height: 88%; width: auto; image-rendering: pixelated; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .45)); }
.mate-info { padding: 14px 16px 16px; display: grid; gap: 2px; }
.mate-info b { font: 700 19px var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.mate.lead .mate-info b { font-size: 24px; }
.mate-info span { color: var(--muted); font-size: 14px; }
.chip { justify-self: start; margin-top: 8px; font: 500 12px var(--font-mono); font-style: normal; padding: 3px 8px; border-radius: 4px; color: #110a18; background: var(--rank); }
.join-team { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 28px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(90deg, rgb(134 0 223 / .18), transparent); }
.join-team h2 { font-size: 26px; margin-bottom: 4px; }
.join-team p { margin: 0; color: var(--muted); }

/* Eastereggs im Stil der Minecraft-Fortschritte */
.egg-top { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; margin-bottom: 36px; }
.egg-stat { display: flex; align-items: baseline; gap: 14px; }
.egg-stat .big { font-size: 72px; }
.egg-stat span:last-child { color: var(--muted); max-width: 18ch; line-height: 1.3; }
.egg-top .note { margin: 0; justify-self: end; }
.advs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.adv { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; background: var(--night-2); border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s; }
.adv:hover { border-color: var(--brand); }
.adv-icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--night); border: 2px solid var(--line); border-radius: 6px; box-shadow: inset 0 0 0 2px #241733; }
.adv-icon canvas { width: 24px; height: 27px; image-rendering: pixelated; }
.adv-title { font-weight: 500; line-height: 1.3; }
.adv-n { font: 500 13px var(--font-mono); color: var(--brand-light); background: rgb(255 85 255 / .08); border-radius: 4px; padding: 2px 8px; }

@media (max-width: 980px) {
  .crew-lead { grid-template-columns: 1fr 1fr 1fr; }
  .crew-rest .crew { grid-template-columns: repeat(3, 1fr); }
  .advs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .crew, .crew-rest .crew { grid-template-columns: 1fr 1fr; }
  .crew.crew-lead { grid-template-columns: 1fr; }
  .mate.lead .mate-pic { height: 200px; }
  .advs, .egg-top { grid-template-columns: 1fr; }
  .egg-top .note { justify-self: stretch; }
}

/* 404 */
.notfound { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 24px; }
.notfound .nf-code { font: 500 15px var(--font-mono); color: var(--brand-light); margin: 0 0 14px; }
.notfound h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; text-shadow: none; letter-spacing: -.02em; margin: 0 0 18px; }
.notfound .nf-err { font: 500 14px var(--font-mono); color: var(--sep); margin: 0 0 28px; }
.notfound img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 860px) { .notfound { grid-template-columns: 1fr; } }

/* Team als Gruppenfoto */
.polaroid { margin: 0 auto; width: 100%; max-width: 980px; background: #f4efe6; padding: 14px 14px 0; border-radius: 4px; transform: rotate(-1deg); box-shadow: 0 24px 50px rgb(0 0 0 / .5); }
.polaroid > figcaption { font: 500 18px "Pixelify Sans", monospace; color: #3a2a3f; text-align: center; padding: 14px 0 16px; }
.groupshot { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #2a1840; isolation: isolate; }
.groupshot::before { content: ""; position: absolute; inset: -20px; z-index: -2; background: url("assets/img/bank.webp") center 30% / cover; filter: blur(5px) saturate(1.1) brightness(.75); }
.groupshot::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgb(20 8 30 / .55)); }
/* Figuren absolut im Foto platziert, feste Plätze pro Slot (ohne CSS-Variablen, Safari rechnet die sonst falsch) */
.lineup { position: absolute; inset: 0; z-index: 1; }
.row { display: contents; }
.pose { position: absolute; margin: 0; pointer-events: none; }
.row.back .pose { width: 16.7%; bottom: 22%; z-index: 1; }
.row.front .pose { width: 18%; bottom: 7%; z-index: 2; }
.p-b0 { left: 19.15%; } .p-b1 { left: 34.15%; } .p-b2 { left: 49.15%; } .p-b3 { left: 64.15%; }
.p-f0 { left: 11%; } .p-f1 { left: 26%; } .p-f2 { left: 41%; } .p-f3 { left: 56%; } .p-f4 { left: 71%; }
/* Leinwand hat unter den Füßen 3 von 41 Pixeln Rand: nach unten schieben, damit die Füße auf der Linie stehen */
.pose .skin { display: block; width: 100%; height: auto; transform: translateY(7.3%); image-rendering: pixelated; filter: drop-shadow(0 8px 6px rgb(0 0 0 / .4)); }
.nametag { position: absolute; left: 50%; transform: translateX(-50%); background: rgb(0 0 0 / .45); color: var(--rank); font: 500 clamp(9px, 1.1vw, 13px) var(--font-mono); padding: 2px 6px; white-space: nowrap; }
/* Kopf sitzt ca. 25 % der Figurbreite unter der Oberkante */
.row.back .nametag { top: 0; margin-top: 24%; transform: translate(-50%, calc(-100% - 6px)); }
.row.front .nametag { top: 100%; margin-top: 6px; }
.groupshot .stair { position: absolute; left: 14%; right: 14%; bottom: 17%; height: 7%; z-index: 0; background: repeating-linear-gradient(90deg, #8f8a94 0 5%, #7d7883 5% 10%); box-shadow: inset 0 4px 0 #a8a3ad; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; z-index: 0;
  background: linear-gradient(#5f9e3a 0 22%, #3a6522 22% 28%, transparent 28%), repeating-linear-gradient(90deg, #8a5f3c 0 3%, #7a5233 3% 6%); }
@media (max-width: 640px) {
  .polaroid { padding: 8px 8px 0; transform: none; }
  .groupshot { aspect-ratio: 4 / 3; }
  .row.back .pose { width: 23%; bottom: 27%; }
  .p-b0 { left: 10.375%; } .p-b1 { left: 29.125%; } .p-b2 { left: 47.875%; } .p-b3 { left: 66.625%; }
  .groupshot .stair { left: 4%; right: 4%; bottom: 22%; }
  .row.front .pose { width: 25%; bottom: 5%; }
  .p-f0 { left: 0; } .p-f1 { left: 18.75%; } .p-f2 { left: 37.5%; } .p-f3 { left: 56.25%; } .p-f4 { left: 75%; }
  .nametag { display: none; }
}
.who { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.who-row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.who dt { font: 700 17px var(--font-display); color: var(--muted); }
.who dd { margin: 0; }
.who dd span { color: var(--muted); }
.who-name { font-weight: 400; cursor: default; border-radius: 3px; outline: none; transition: color .15s, background .15s; }
.who-name.hot { color: #fff; background: color-mix(in srgb, var(--rank) 28%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rank) 28%, transparent); }
@media (max-width: 860px) {
  .nametag { font-size: 11px; }
  .who-row { grid-template-columns: 1fr; gap: 2px; }
}
.who dt .dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--rank); margin-right: 10px; }


/* Team: Infokarte über dem Kopf, Spieler umrandet und hervorgehoben */
.pose { cursor: default; outline: none; transition: opacity .15s; }
.hovercard { position: absolute; left: 50%; top: 0; margin-top: 24%; z-index: 6; transform: translate(-50%, calc(-100% + 4px)); opacity: 0; pointer-events: none;
  display: grid; gap: 2px; min-width: 150px; padding: 10px 12px; text-align: left; white-space: nowrap;
  background: #1a0f24f2; border: 2px solid #2b0a5a; box-shadow: inset 0 0 0 1px #5a1fa0, 0 8px 20px rgb(0 0 0 / .45); transition: opacity .15s, transform .15s; }
.hovercard::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #2b0a5a; }
.hovercard b { font: 700 15px var(--font-display); color: #fff; }
.hovercard em { font: 500 12px var(--font-mono); font-style: normal; color: var(--rank); }
.hovercard span { font-size: 13px; color: var(--muted); }
.pose.hot, .pose:focus-visible { z-index: 5; }
.pose.hot .hovercard, .pose:focus-visible .hovercard { opacity: 1; transform: translate(-50%, calc(-100% - 4px)); }
.pose.edge-l .hovercard { left: 0; transform: translate(0, calc(-100% + 4px)); }
.pose.edge-r .hovercard { left: auto; right: 0; transform: translate(0, calc(-100% + 4px)); }
.pose.edge-l.hot .hovercard, .pose.edge-r.hot .hovercard, .pose.edge-l:focus-visible .hovercard, .pose.edge-r:focus-visible .hovercard { transform: translate(0, calc(-100% - 4px)); }
.pose.edge-l .hovercard::after { left: 30px; }
.pose.edge-r .hovercard::after { left: auto; right: 16px; transform: none; }
.pose.hot .nametag, .pose:focus-visible .nametag { visibility: hidden; }
.pose.hot .skin, .pose:focus-visible .skin {
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 0 12px var(--rank)) brightness(1.1); }
.lineup:has(.pose.hot, .pose:focus-visible) .pose:not(.hot):not(:focus-visible) { opacity: .45; }
.row.back .pose:not(.hot):not(:focus-visible) .skin { filter: drop-shadow(0 8px 6px rgb(0 0 0 / .4)) brightness(.88); }
.groupshot { overflow: visible; }
.groupshot::before { inset: 0; }

/* Bewerbung: reCAPTCHA erst nach Klick laden */
.captcha-consent { display: grid; gap: 12px; justify-items: start; }
/* Googles iframe hat einen eigenen 1px-Rahmen; den schneiden wir weg */
.g-recaptcha { justify-self: start; width: 302px; height: 76px; overflow: hidden; border-radius: 3px; }
.g-recaptcha iframe { display: block; margin: -1px 0 0 -1px; }

/* Live-Karte (eigener Viewer, map.js) */
.livemap { position: absolute; inset: 0; background: #0b0710; image-rendering: auto; font: 14px/1.3 var(--font-body); }
.livemap .leaflet-tile { image-rendering: pixelated; }
.livemap.lm-failed { display: grid; place-items: center; color: var(--muted); }
.lm-panel { position: absolute; z-index: 1000; background: rgb(17 10 24 / .88); border: 2px solid var(--line); border-radius: 6px; color: var(--text); font-size: 14px; }
.lm-top { top: 12px; left: 12px; padding: 4px; }
.lm-worlds { display: flex; gap: 4px; }
.lm-worlds button { font: 500 14px var(--font-body); color: var(--muted); background: transparent; border: 0; border-radius: 4px; padding: 7px 12px; cursor: pointer; }
.lm-worlds button:hover { color: var(--text); }
.lm-worlds button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.lm-side { top: 68px; right: 12px; width: 200px; max-height: calc(100% - 140px); overflow: auto; }
.lm-side summary { padding: 8px 12px; cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.lm-side summary::-webkit-details-marker { display: none; }
.lm-side summary b { color: var(--brand-light); font-family: var(--font-mono); }
.lm-players { list-style: none; margin: 0; padding: 0 6px 6px; }
.lm-players button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 5px 6px; background: none; border: 0; border-radius: 4px; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.lm-players button:hover:not(:disabled) { background: var(--night-2); }
.lm-players button:disabled { color: var(--sep); cursor: default; }
.lm-players img, .lm-player img { width: 16px; height: 16px; max-width: none; flex: none; image-rendering: pixelated; border-radius: 2px; }
.lm-empty { padding: 4px 6px 6px; color: var(--muted); }
.lm-bottom { right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 12px; }
.lm-coords { color: var(--muted); font-family: var(--font-mono); font-size: 13px; }
.lm-coords b { color: var(--text); font-weight: 500; }
.lm-link { font: 500 13px var(--font-body); background: var(--night-2); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; cursor: pointer; }
.lm-link:hover { border-color: var(--brand); }
.lm-player { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px 2px 2px; background: rgb(17 10 24 / .85); border: 1px solid var(--brand); border-radius: 4px; color: #fff; font: 500 12px var(--font-body); white-space: nowrap; }
.livemap .leaflet-bar { border: 2px solid var(--line); border-radius: 6px; box-shadow: none; }
.livemap .leaflet-bar a { background: rgb(17 10 24 / .88); color: var(--text); border-color: var(--line); width: 34px; height: 34px; line-height: 34px; }
.livemap .leaflet-bar a:hover { background: var(--night-2); color: var(--brand-light); }
.livemap .leaflet-bar a.leaflet-disabled, .livemap .leaflet-bar a.leaflet-disabled:hover { background: rgb(17 10 24 / .88); color: var(--line); cursor: default; }
.livemap .leaflet-bar a:last-child { border-bottom: 0; }
.livemap .leaflet-tooltip { background: var(--night); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.livemap .leaflet-tooltip-top::before { border-top-color: var(--line); }
.map-full { z-index: 1001; }
@media (max-width: 640px) {
  .lm-side { display: none; }
  .lm-coords { display: none; }
}
.livemap .lm-popup .leaflet-popup-content-wrapper { background: var(--night); color: var(--text); border: 2px solid var(--line); border-radius: 6px; box-shadow: 0 8px 20px rgb(0 0 0 / .4); }
.livemap .lm-popup .leaflet-popup-content { margin: 10px 14px; font: 14px/1.6 var(--font-body); color: var(--muted); }
.livemap .lm-popup .leaflet-popup-content b { color: var(--text); font-weight: 500; }
.livemap .lm-popup .leaflet-popup-tip { background: var(--night); border: 2px solid var(--line); box-shadow: none; }
/* Hintergrund außerhalb der Welt: muss leaflet.css (.leaflet-container { background: #ddd }) schlagen */
.livemap.leaflet-container { background-color: #07060b; background-size: 256px 256px; image-rendering: pixelated; }

/* Eastereggs: flach aufgeschlagenes Buch */
.egg-rule { margin: 0 0 48px; }
.ebook { position: relative; isolation: isolate; max-width: 1000px; margin: 0 auto 40px; }
.ebook::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -26px; height: 40px; border-radius: 50%; background: rgb(0 0 0 / .55); filter: blur(14px); z-index: -1; }
.ebook-cover { padding: 14px; background: #5a3418; border-radius: 14px; box-shadow: inset 0 0 0 3px #3e230f, inset 0 0 0 6px #7d4c28, 0 6px 0 #2a170a; }
.ebook-pages { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #f4ecd2; border-radius: 6px; overflow: hidden; }
.ebook-pages::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 80px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, rgb(120 90 40 / 0) 0%, rgb(120 90 40 / .18) 42%, rgb(70 48 20 / .42) 50%, rgb(120 90 40 / .18) 58%, rgb(120 90 40 / 0) 100%); }
.ebook-page { position: relative; padding: 34px 44px 26px; display: flex; flex-direction: column; gap: 14px; color: #2b1d10; }
.ebook-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 2px solid #d9c79a;
  font: 700 13px "Pixelify Sans", monospace; letter-spacing: .14em; text-transform: uppercase; color: #6a1fa8; }
.ebook-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.ebook-list li { display: flex; align-items: baseline; gap: 8px; font: 500 16px/1.55 var(--font-body); }
.ebook-list .nr { font: 500 12px var(--font-mono); color: #b19a73; min-width: 2ch; text-align: right; }
.ebook-list .dots { flex: 1; min-width: 12px; border-bottom: 2px dotted #cdb68a; transform: translateY(-5px); }
.ebook-list .n { font: 500 14px var(--font-mono); color: #8a5a1c; min-width: 2ch; text-align: right; }
.ebook-list li:hover .name { color: #6a1fa8; }
.ebook-num { margin: auto 0 0; padding-top: 10px; text-align: center; font: 500 13px "Pixelify Sans", monospace; color: #7a6244; }
.ebook-ribbon { position: absolute; top: 0; left: calc(50% + 40px); width: 12px; height: 34px; background: var(--brand); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
@media (max-width: 760px) {
  .ebook-cover { padding: 10px; }
  .ebook-pages { grid-template-columns: 1fr; }
  .ebook-pages::before, .ebook-ribbon { display: none; }
  .ebook-page { padding: 26px 18px 18px; }
  .ebook-page + .ebook-page { border-top: 2px dashed #d9c79a; }
  .ebook-list li { font-size: 15px; }
}
/* Fugen zwischen Kacheln beim Verschieben/Zoomen: wie squaremaps eigene Oberfläche (Kantenpixel addieren sich statt durchzuscheinen) */
.livemap.leaflet-container img.leaflet-tile { mix-blend-mode: plus-lighter; }
