/* Website (Startseite, Leitfaden, Dev Notes, Roadmap; Phase 10, Issue #29): statisch, ohne Skript.
   Weltraum wie im Spiel – Sternenfeld, Pixelschrift für Überschriften, Panels mit Pixelrand, Sprites aus dem Spiel. */

@font-face {
  font-family: 'Pixelify Sans';
  src: url('fonts/pixelify-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Pixelify Sans';
  src: url('fonts/pixelify-sans-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #070a14;
  --panel: #111a2e;
  --panel-2: #0d1424;
  --line: #2a3654;
  --edge: #03050b;
  --text: #e6e9f2;
  --muted: #9aa3b8;
  --accent: #4fb3ff;
  --gold: #ffd166;
  --violet: #c3a6ff;
  --green: #7ee0a1;
  --pixel: 'Pixelify Sans', system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body.doc {
  margin: 0;
  color: var(--text);
  font-family: system-ui, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(ellipse at 20% -10%, rgb(79 179 255 / 0.18), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgb(195 166 255 / 0.12), transparent 50%),
    url('sprites/backgrounds/stars.png') 0 0 / 128px 128px repeat,
    var(--bg);
  image-rendering: auto;
}
a {
  color: var(--accent);
}
h1,
h2,
h3,
.brand,
.box-title,
.milestone-status,
.button {
  font-family: var(--pixel);
  letter-spacing: 0.02em;
}
h1,
h2 {
  color: var(--gold);
  line-height: 1.15;
}
img.sprite {
  image-rendering: pixelated;
}

/* Kopf und Fuß */
.doc-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 16px;
  background: rgb(7 10 20 / 0.92);
  border-bottom: 3px solid var(--edge);
  box-shadow: 0 1px 0 var(--line);
}
.doc-head .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}
.doc-head .brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.doc-head nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}
.doc-head nav a {
  color: var(--text);
  text-decoration: none;
}
.doc-head nav a:hover {
  color: var(--accent);
}
.doc-head nav a.play {
  font-family: var(--pixel);
  color: var(--edge);
  background: var(--gold);
  border: 2px solid var(--edge);
  border-radius: 4px;
  padding: 2px 12px;
  box-shadow: 2px 2px 0 var(--edge);
}
.site-footer {
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  border-top: 3px solid var(--edge);
  background: rgb(7 10 20 / 0.85);
}

/* Panels mit Pixelrand */
.panel,
.doc-main,
.box,
.milestone,
.note-item,
.card,
.steps li,
.toc-side {
  background: var(--panel);
  border: 3px solid var(--edge);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 2px var(--line),
    4px 4px 0 var(--edge);
}

/* Seiten mit Text (Leitfaden, Dev Notes, Roadmap) */
.doc-layout {
  display: grid;
  gap: 20px;
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px 40px;
}
@media (min-width: 960px) {
  .doc-layout.with-side {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}
.toc-side {
  padding: 12px 14px;
  position: sticky;
  top: 72px;
}
.toc-side ol {
  margin: 0;
  padding-left: 22px;
}
.toc-side li {
  margin: 4px 0;
}
.toc-side a {
  color: var(--text);
  text-decoration: none;
}
.toc-side a[aria-current='page'] {
  color: var(--gold);
  font-weight: 700;
}
@media (max-width: 959px) {
  .toc-side {
    position: static;
  }
}
.doc-main {
  min-width: 0;
  max-width: 820px;
  padding: 8px 24px 28px;
}
.doc-layout:not(.with-side) .doc-main {
  margin: 0 auto;
  width: 100%;
}
.doc-main h1 {
  font-size: 2rem;
}
.doc-main table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.92rem;
}
.doc-main th,
.doc-main td {
  border: 1px solid var(--line);
  padding: 4px 8px;
  text-align: left;
  white-space: nowrap;
}
.doc-main th {
  background: var(--panel-2);
}
.doc-main blockquote {
  margin: 12px 0;
  padding: 4px 12px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
.doc-main code {
  background: var(--panel-2);
  padding: 0 4px;
  border-radius: 4px;
}
.chapter-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chapter-head img {
  width: 48px;
  height: 48px;
  flex: none;
}
.box {
  margin: 16px 0;
  padding: 8px 14px;
  background: var(--panel-2);
}
.box-title {
  margin: 4px 0;
  font-weight: 700;
}
.box-tip .box-title {
  color: var(--accent);
}
.box-strategy .box-title {
  color: var(--gold);
}
.box-note .box-title,
.box-designer .box-title {
  color: var(--violet);
}
.toc li {
  margin: 4px 0;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 12px;
  border-top: 2px solid var(--line);
  font-size: 0.92rem;
}

/* Dev Notes */
.notes {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.note-item {
  padding: 12px 16px;
  background: var(--panel-2);
}
.note-item > a {
  font-family: var(--pixel);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}
.meta {
  margin: 2px 0 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Roadmap */
.milestones {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.milestone {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--panel-2);
}
.milestone img {
  grid-row: span 3;
  width: 48px;
  height: 48px;
}
.milestone h2 {
  margin: 0;
  font-size: 1.2rem;
}
.milestone p {
  margin: 0;
}
.milestone-status {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}
.status-done .milestone-status {
  color: var(--green);
}
.status-current {
  box-shadow:
    inset 0 0 0 2px var(--gold),
    4px 4px 0 var(--edge);
}
.status-current .milestone-status {
  color: var(--gold);
}
.status-next .milestone-status {
  color: var(--accent);
}
.status-later {
  opacity: 0.8;
}
.updates > li {
  margin: 8px 0;
}

/* Startseite */
.landing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}
.landing section {
  margin: 0 0 48px;
}
.landing h2 {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 0 18px;
}
.hero {
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.05fr;
  }
}
.hero h1 {
  margin: 0;
  font-size: 3rem;
  text-shadow: 3px 3px 0 var(--edge);
}
.hero .fleet {
  display: flex;
  align-items: end;
  gap: 6px;
  margin: 6px 0 2px;
}
.hero .fleet img {
  height: 36px;
  width: auto;
}
.tagline {
  margin: 6px 0 12px;
  color: var(--accent);
  font-family: var(--pixel);
  font-size: 1.3rem;
}
.hero-shot,
.shots img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 3px solid var(--edge);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 2px var(--line),
    6px 6px 0 var(--edge);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 8px;
}
.cta.center {
  justify-content: center;
}
.button {
  display: inline-block;
  padding: 10px 18px;
  border: 3px solid var(--edge);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 2px var(--line),
    3px 3px 0 var(--edge);
}
.button.primary {
  background: var(--gold);
  color: var(--edge);
  box-shadow: 3px 3px 0 var(--edge);
}
.button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--edge);
}
.small {
  font-size: 0.88rem;
}
.muted {
  color: var(--muted);
}
.center {
  text-align: center;
}
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
  padding: 14px 16px;
}
.card .art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 84px;
  margin-bottom: 8px;
  border-radius: 4px;
  background:
    url('sprites/backgrounds/stars.png') 0 0 / 96px 96px repeat,
    var(--panel-2);
  border: 2px solid var(--edge);
}
.card .art img {
  max-height: 64px;
  width: auto;
}
.card .art img.face {
  height: 64px;
  border-radius: 4px;
  border: 2px solid var(--edge);
}
.card h3 {
  margin: 4px 0;
  color: var(--gold);
}
.card p {
  margin: 4px 0 0;
}
.faction-directorate h3 {
  color: #8fd0ff;
}
.faction-aether h3 {
  color: #6ff0e0;
}
.faction-kharr h3 {
  color: #ff8a7a;
}
.shots {
  display: grid;
  gap: 18px;
  align-items: center;
}
@media (min-width: 900px) {
  .shots {
    grid-template-columns: 1.4fr 0.55fr;
  }
  .shots figure.wide {
    grid-column: 1 / -1;
  }
}
.shots figure {
  margin: 0;
}
.shots figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
.shots img.phone {
  max-width: min(100%, 300px);
  margin: 0 auto;
}
.steps ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps ol {
    grid-template-columns: repeat(4, 1fr);
  }
}
.steps li {
  counter-increment: step;
  padding: 12px 14px;
}
.steps h3 {
  margin: 4px 0;
  color: var(--gold);
}
.steps h3::before {
  content: counter(step) '. ';
  color: var(--accent);
}
.news {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.news .panel {
  padding: 8px 20px 12px;
}
.news #whats-new > li {
  margin: 10px 0;
}

/* Presse-Kit */
.press-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .press-shots {
    grid-template-columns: repeat(4, 1fr);
  }
}
.press-shots img,
.press-logos img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 3px solid var(--edge);
  border-radius: 6px;
}
.press-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
