/* SkyCraft-Website. Eine Akzentfarbe (Gold/Orange wie Stil.AKZENT im Plugin), Systemschrift, mobil zuerst.
   Keine fremden Dateien: alles, was hier gebraucht wird, liegt in diesem Ordner. */
:root {
  --grund: #120e0b;
  --grund-2: #1a1410;
  --flaeche: #211913;
  --flaeche-2: #2a2019;
  --linie: #3a2c21;
  --text: #f6efe6;
  --leise: #b9a998;
  --akzent: #ffb35c;
  --akzent-hell: #ffd98f;
  --akzent-dunkel: #d9782b;
  --gruen: #6fdc8c;
  --rot: #ff7a5c;
  --radius: 18px;
  --schrift: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 400 17px/1.5 var(--schrift);
  -webkit-font-smoothing: antialiased;

}
/* feines Blockraster im Hintergrund - der einzige "Minecraft"-Hinweis neben den Pixel-Symbolen */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,179,92,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,179,92,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 900px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 900px);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0; }
[hidden] { display: none !important; }
.breite { width: min(1180px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 8px; }

.sprung { position: absolute; left: -999px; top: 8px; background: var(--akzent); color: #1a1006; padding: 12px 16px; border-radius: 10px; z-index: 50; font-weight: 700; }
.sprung:focus { left: 12px; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--akzent); color: #1d1207; font: 800 16px/1 var(--schrift); text-decoration: none;
  box-shadow: 0 4px 0 var(--akzent-dunkel); transition: transform .15s, box-shadow .15s, background .15s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.knopf:hover { background: var(--akzent-hell); }
.knopf:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--akzent-dunkel); }
.knopf.ok { background: var(--gruen); box-shadow: 0 4px 0 #3a9c58; }
.knopf-klein { min-height: 44px; padding: 0 16px; font-size: 15px; }
.knopf-gross { min-height: 60px; padding: 0 30px; font-size: 18px; border-radius: 16px; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(18,14,11,.88); border-bottom: 1px solid transparent; transition: border-color .2s; }
.kopf.scroll { border-bottom-color: var(--linie); }
.kopf-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -.01em; min-height: 44px; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--leise); font-weight: 600; padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--flaeche); }
.kopf .knopf { margin-left: auto; }
@media (min-width: 760px) { .nav { display: flex; } .kopf .knopf { margin-left: 8px; } }

/* ---------- Held ---------- */
.held { position: relative; padding: 28px 0 40px; }
.held::after { /* warmes Licht hinter dem Logo */
  content: ""; position: absolute; z-index: -1; right: -10%; top: -120px; width: 820px; height: 820px; max-width: 120vw;
  background: radial-gradient(closest-side, rgba(255,150,60,.22), rgba(255,150,60,0)); pointer-events: none;
}
.held-in { display: grid; gap: 28px; align-items: center; }
.held-bild { order: -1; position: relative; width: min(220px, 56vw); margin: 0 auto; aspect-ratio: 1; }
.logo-gross { width: 100%; height: 100%; animation: schweben 6s ease-in-out infinite; filter: drop-shadow(0 24px 40px rgba(255,130,40,.28)); }
.schein { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,190,100,.35), transparent); animation: atmen 6s ease-in-out infinite; }
.w { position: absolute; width: 10px; height: 10px; background: var(--akzent); box-shadow: 0 0 0 0 transparent; animation: wuerfel 7s ease-in-out infinite; }
.w1 { left: 2%; top: 30%; } .w2 { right: 4%; top: 12%; width: 7px; height: 7px; animation-delay: -2s; background: var(--akzent-hell); }
.w3 { right: 0; bottom: 26%; width: 12px; height: 12px; animation-delay: -4s; } .w4 { left: 14%; bottom: 6%; width: 6px; height: 6px; animation-delay: -1s; background: var(--akzent-hell); }
.w5 { left: 40%; top: -2%; width: 6px; height: 6px; animation-delay: -5s; } .w6 { right: 22%; bottom: -2%; width: 8px; height: 8px; animation-delay: -3s; background: var(--akzent-dunkel); }
@keyframes schweben { 50% { transform: translateY(-12px) rotate(-1.5deg); } }
@keyframes atmen { 50% { opacity: .55; transform: scale(1.08); } }
@keyframes wuerfel { 0%,100% { transform: translateY(0) rotate(0); opacity: .9; } 50% { transform: translateY(-16px) rotate(45deg); opacity: .5; } }

.status { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--linie); color: var(--leise); font-weight: 600; font-size: 15px; }
.status b { color: var(--text); }
.punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--leise); flex: none; }
.status[data-status="online"] .punkt, .mit-punkt .punkt { background: var(--gruen); box-shadow: 0 0 0 0 rgba(111,220,140,.6); animation: puls 2s infinite; }
.status[data-status="aus"] .punkt { background: var(--rot); }
.status[data-status="laden"] .punkt { animation: blinken 1.2s infinite; }
@keyframes puls { 70% { box-shadow: 0 0 0 9px rgba(111,220,140,0); } 100% { box-shadow: 0 0 0 0 rgba(111,220,140,0); } }
@keyframes blinken { 50% { opacity: .3; } }
.status .nochmal { margin: 0 -10px 0 4px; min-height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--linie); background: transparent; color: var(--text); font: 600 14px var(--schrift); cursor: pointer; }

h1 { font-size: clamp(64px, 17vw, 132px); font-weight: 900; letter-spacing: -.045em; margin: 18px 0 12px; line-height: .9; }
h1 span { background: linear-gradient(180deg, var(--akzent-hell), var(--akzent) 55%, var(--akzent-dunkel)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.unter { font-size: clamp(19px, 4.6vw, 24px); color: var(--leise); line-height: 1.35; max-width: 30ch; }

.beitritt { margin-top: 26px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 8px; max-width: 520px; scroll-margin-top: 90px; }
.reiter { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--grund-2); border-radius: 12px; padding: 4px; }
.reiter button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--leise); font: 700 16px var(--schrift); cursor: pointer; }
.reiter button[aria-selected="true"] { background: var(--flaeche-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--akzent); }
.feld { padding: 16px 10px 8px; display: grid; gap: 8px; }
.feld-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); }
.feld-fuss { font-size: 15px; color: var(--leise); }
.feld-fuss b { color: var(--text); font-weight: 700; }
.adresse { display: flex; gap: 10px; align-items: center; }
.adresse code { flex: 1; min-width: 0; font: 700 clamp(17px, 4.4vw, 22px) var(--mono); color: var(--text); background: var(--grund-2); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; overflow-wrap: anywhere; line-height: 1.25; min-height: 48px; display: flex; align-items: center; }

.wer { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; max-width: 520px; }
.wer-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); }
.wer-liste { display: contents; list-style: none; }
.wer-liste li { font-weight: 600; font-size: 15px; padding: 6px 12px; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--linie); }

@media (min-width: 900px) {
  .held { padding: 64px 0 72px; }
  .held-in { grid-template-columns: 1.15fr .85fr; }
  .held-bild { order: 0; width: min(440px, 100%); }
}

/* ---------- Zahlen ---------- */
.zahlen { border-block: 1px solid var(--linie); background: var(--grund-2); }
.zahlen-in { display: grid; grid-template-columns: 1fr 1fr; }
.zahl { padding: 22px 6px; display: grid; gap: 2px; text-align: center; }
.zahl b { font-size: clamp(30px, 7vw, 44px); font-weight: 900; letter-spacing: -.03em; color: var(--akzent); font-variant-numeric: tabular-nums; }
.zahl span { color: var(--leise); font-size: 15px; font-weight: 600; }
.zahl:nth-child(odd) { border-right: 1px solid var(--linie); }
.zahl:nth-child(-n+2) { border-bottom: 1px solid var(--linie); }
@media (min-width: 760px) {
  .zahlen-in { grid-template-columns: repeat(4, 1fr); }
  .zahl { border: 0 !important; border-right: 1px solid var(--linie) !important; padding: 30px 6px; }
  .zahl:last-child { border-right: 0 !important; }
}

/* ---------- Spiele ---------- */
section { scroll-margin-top: 72px; }
.spiele, .schritte, .discord { padding: 64px 0 8px; }
.kopfzeile { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 24px; }
h2 { font-size: clamp(36px, 8vw, 56px); font-weight: 900; }
.kopfzeile p { color: var(--leise); font-size: 18px; }

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px; display: flex; gap: 16px; align-items: center; transition: transform .2s, border-color .2s, background .2s; }
.karte h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.karte p { color: var(--leise); font-size: 16px; line-height: 1.4; }
.karte:hover { transform: translateY(-3px); border-color: rgba(255,179,92,.45); background: var(--flaeche-2); }
.karte:hover .px { transform: scale(1.08) rotate(-3deg); }
.ikon { flex: none; width: 60px; height: 60px; border-radius: 14px; background: var(--grund-2); border: 1px solid var(--linie); display: grid; place-items: center; }
.px { width: 40px; height: 40px; transition: transform .25s; image-rendering: pixelated; }

.gross-raster { display: grid; gap: 14px; margin-bottom: 14px; }
.karte-gross { flex-direction: column; align-items: flex-start; padding: 24px; gap: 14px; position: relative; overflow: hidden; }
.karte-gross::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: radial-gradient(closest-side, rgba(255,179,92,.16), transparent); }
.karte-gross .ikon { width: 76px; height: 76px; border-radius: 18px; }
.karte-gross .px { width: 52px; height: 52px; }
.karte-gross h3 { font-size: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 2px 0 0; padding: 0; }
.chips li { font-size: 14px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: var(--grund-2); border: 1px solid var(--linie); color: var(--text); }
.raster { display: grid; gap: 12px; }
@media (min-width: 640px) { .raster { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .gross-raster { grid-template-columns: repeat(3, 1fr); } .raster { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Schritte ---------- */
.schritt-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.schritt-liste li { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 18px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }
.schritt-liste b { grid-row: span 2; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--akzent); color: #1d1207; font-size: 28px; font-weight: 900; box-shadow: 0 4px 0 var(--akzent-dunkel); }
.schritt-liste li > span { font-size: 20px; font-weight: 800; }
.schritt-liste small { color: var(--leise); font-size: 16px; overflow-wrap: anywhere; }
@media (min-width: 900px) { .schritt-liste { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Discord ---------- */
.discord-karte { display: grid; gap: 22px; padding: 28px; border-radius: 24px; background: linear-gradient(135deg, var(--flaeche-2), var(--flaeche)); border: 1px solid var(--linie); position: relative; overflow: hidden; }
.discord-karte::before { content: ""; position: absolute; left: -80px; bottom: -120px; width: 320px; height: 320px; background: radial-gradient(closest-side, rgba(255,179,92,.18), transparent); }
.discord-text { display: grid; gap: 8px; position: relative; }
.discord-text p { color: var(--leise); font-size: 18px; }
.discord-zahlen { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 8px; font-size: 18px; color: var(--leise); font-weight: 600; }
.discord-zahlen b { color: var(--text); font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; margin-right: 4px; }
.mit-punkt { display: inline-flex; align-items: center; gap: 8px; }
.discord-karte .knopf { position: relative; justify-self: start; }
@media (min-width: 760px) { .discord-karte { grid-template-columns: 1fr auto; align-items: center; padding: 40px; } }

/* ---------- Schluss ---------- */
.schluss { padding: 80px 0 72px; }
.schluss-in { display: grid; gap: 22px; justify-items: center; text-align: center; }
.schluss h2 { font-size: clamp(34px, 7vw, 52px); }
.adresse-schluss { width: min(520px, 100%); }

/* ---------- Fuss ---------- */
.fuss { border-top: 1px solid var(--linie); padding: 28px 0 40px; background: var(--grund-2); }
.fuss-in { display: grid; gap: 12px; }
.marke-fuss { font-size: 17px; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.fuss-links a { color: var(--leise); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }
.fuss-links a:hover { color: var(--text); }
.klein { font-size: 14px; color: #8f8173; max-width: 70ch; }

/* ---------- Meldung (Kopiert) ---------- */
.meldung { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; background: var(--text); color: var(--grund); font-weight: 800; padding: 14px 20px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: auf .2s ease-out; }
@keyframes auf { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Einblenden beim Scrollen (nur mit JS, siehe app.js) ---------- */
.js .zeigen { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .zeigen.da { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .zeigen { opacity: 1; transform: none; }
}

/* Handy: Logo kleiner, damit Adresse und Kopieren ohne Scrollen sichtbar sind; Adresse ueber volle Breite, Knopf darunter */
@media (max-width: 899px) {
  .held { padding-top: 12px; }
  .held-bild { width: min(150px, 40vw); }
  h1 { margin-top: 12px; }
}
@media (max-width: 520px) {
  .adresse { flex-wrap: wrap; }
  .adresse code { flex-basis: 100%; white-space: nowrap; overflow-wrap: normal; font-size: clamp(15px, 4.6vw, 19px); }
  .adresse .knopf { flex: 1; min-height: 52px; font-size: 17px; }
}
