/* Spaceboss – Webseite. Farben wie im Spiel: Orange für Aktion, Cyan für Technik, tiefes Weltraumblau. */

@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url(fonts/orbitron.woff2) format('woff2');
}

:root {
  --bg: #05070c;
  --bg2: #0a0f1a;
  --panel: rgba(16, 24, 40, 0.72);
  --line: rgba(160, 200, 255, 0.14);
  --ink: #eef3fa;
  --muted: #a3b2c6;
  --orange: #ff8a2a;
  --gold: #ffd24a;
  --cyan: #3fb4ff;
  --teal: #4affe0;
  --display: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Kopfleiste ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.solid { background: rgba(5, 7, 12, 0.86); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 900 18px var(--display); letter-spacing: 0.08em; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font: 600 14px var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.nav nav a:hover { color: var(--ink); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #ffa24d, #ff7a14);
  color: #1a0c00;
  font: 800 16px var(--display); letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 8px 30px rgba(255, 122, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 122, 20, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-ghost {
  background: rgba(10, 18, 32, 0.6);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(63, 180, 255, 0.55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--cyan), 0 8px 30px rgba(63, 180, 255, 0.25); }
.btn-small { padding: 9px 16px; font-size: 13px; border-radius: 10px; }

/* ---------- Kopfbereich ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(56px, 9vh, 110px);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.55) 0%, rgba(5, 7, 12, 0) 22%, rgba(5, 7, 12, 0) 45%, rgba(5, 7, 12, 0.92) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(5, 7, 12, 0.85) 0%, rgba(5, 7, 12, 0.35) 45%, rgba(5, 7, 12, 0) 70%),
    url(img/hero.webp) 60% 30% / cover no-repeat;
}
.hero-inner { max-width: 720px; min-width: 0; width: 100%; }
.chip {
  display: inline-block; margin: 0 0 18px;
  padding: 6px 14px; border-radius: 99px;
  background: rgba(255, 138, 42, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 138, 42, 0.5);
  color: #ffc28a; font: 700 13px var(--display); letter-spacing: 0.1em; text-transform: uppercase;
}
.title {
  margin: 0;
  font: 900 clamp(32px, 11.5vw, 132px)/0.95 var(--display);
  letter-spacing: 0.02em;
  color: #fff4e0;
  text-shadow: 0 0 18px rgba(255, 138, 42, 0.9), 0 0 60px rgba(255, 106, 0, 0.6), 0 4px 0 rgba(120, 40, 0, 0.6);
}
.tagline {
  margin: 14px 0 0;
  font: 700 clamp(15px, 2.2vw, 22px) var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  color: #ffd9a0; text-shadow: 0 0 14px rgba(255, 122, 0, 0.6);
}
.lead { margin: 22px 0 0; max-width: 600px; font-size: clamp(17px, 1.6vw, 19px); color: #d7e0ec; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.meta { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.scroll {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 70% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(72px, 11vw, 130px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 12%, var(--bg2) 88%, var(--bg) 100%); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.kicker { margin: 0 0 10px; color: var(--orange); font: 800 13px var(--display); letter-spacing: 0.18em; text-transform: uppercase; }
h2 { margin: 0; font: 900 clamp(28px, 4.4vw, 48px)/1.1 var(--display); letter-spacing: 0.01em; }
h3 { margin: 0 0 8px; font: 800 18px/1.3 var(--display); letter-spacing: 0.03em; }
.intro { margin: 18px 0 0; max-width: 720px; color: var(--muted); font-size: 18px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.feature {
  padding: 26px; border-radius: var(--radius);
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 138, 42, 0.45), 0 18px 40px rgba(0, 0, 0, 0.35); }
.feature svg { width: 34px; height: 34px; fill: var(--orange); margin-bottom: 14px; filter: drop-shadow(0 0 10px rgba(255, 138, 42, 0.55)); }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

/* Bilder zum Anklicken */
.shot { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s; }
.shot:hover img { transform: scale(1.04); }

/* Level */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card { margin: 0; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.card figcaption { padding: 18px 20px 22px; color: var(--muted); font-size: 15px; }
.card figcaption strong { display: block; margin-bottom: 4px; color: var(--ink); font: 800 20px var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.card figcaption em { display: block; margin-top: 10px; color: var(--gold); font: 700 13px var(--display); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; }
.stage { display: block; margin-bottom: 6px; color: var(--cyan); font: 700 12px var(--display); letter-spacing: 0.14em; text-transform: uppercase; }

/* Bosse */
.bosses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.boss { margin: 0; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.boss-wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.boss-wide .shot { flex: none; }
.boss-wide figcaption { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 22px 28px; font-size: 17px; }
.boss-wide figcaption strong { font-size: 28px; color: var(--teal); text-shadow: 0 0 18px rgba(74, 255, 224, 0.5); }
.boss figcaption { padding: 16px 20px 20px; color: var(--muted); font-size: 15px; }
.boss figcaption strong { display: block; margin-bottom: 4px; color: var(--ink); font: 800 18px var(--display); letter-spacing: 0.03em; text-transform: uppercase; }

/* Steuerung */
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.panel { padding: 28px; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.panel h3 { color: var(--cyan); margin-bottom: 18px; }
.panel dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; margin: 0; align-items: center; }
.panel dt { white-space: nowrap; }
.panel dd { margin: 0; color: var(--muted); font-size: 16px; }
kbd {
  display: inline-block; min-width: 28px; padding: 3px 9px;
  border-radius: 7px; background: #1a2436; box-shadow: inset 0 -2px 0 #0b111c, inset 0 0 0 1px rgba(160, 200, 255, 0.22);
  color: var(--ink); font: 700 13px var(--display); text-align: center;
}

/* Download */
.download { background: radial-gradient(ellipse at 50% 0%, rgba(255, 122, 20, 0.14), transparent 60%); }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.dl { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.dl p { margin: 0 0 22px; color: var(--muted); font-size: 16px; }
.dl .btn { margin-top: auto; }
.dl .file { margin: 14px 0 0; font-size: 13px; color: #7f8ea3; }
.dl-main { box-shadow: inset 0 0 0 2px rgba(255, 138, 42, 0.6), 0 20px 60px rgba(255, 106, 0, 0.12); }
.dl-main h3 { color: var(--orange); }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.note { padding: 22px 26px; border-radius: var(--radius); background: rgba(63, 180, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(63, 180, 255, 0.25); }
.note h3 { font-size: 15px; color: var(--cyan); }
.note p { margin: 0; color: var(--muted); font-size: 15px; }
.note strong { color: var(--ink); }
.hashes { margin-top: 20px; color: var(--muted); font-size: 14px; }
.hashes summary { cursor: pointer; width: fit-content; }
.hashes dl { margin: 12px 0 0; }
.hashes dt { margin-top: 8px; color: var(--ink); }
.hashes dd { margin: 2px 0 0; }
.hashes code { font: 13px ui-monospace, Consolas, monospace; word-break: break-all; color: #c5d2e4; }

/* Fuß */
.footer { padding: 60px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; text-align: center; }
.footer p { margin: 8px 0; }
.footer-brand { font: 900 22px var(--display); letter-spacing: 0.1em; color: var(--ink); }
.footer .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0; }
.footer .small { font-size: 13px; color: #6f7d91; }

/* Bild groß */
.lightbox { width: min(96vw, 1600px); max-width: none; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.lb-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1000px) {
  .features, .levels, .bosses, .downloads { grid-template-columns: 1fr 1fr; }
  .boss-wide { grid-row: auto; }
}
@media (max-width: 720px) {
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .features, .levels, .bosses, .downloads, .controls, .notes { grid-template-columns: 1fr; }
  .boss-wide { grid-column: auto; }
  .hero { padding-top: 96px; }
  .hero-bg { background-position: 58% 20%, 0 0, 60% 30%; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .panel dl { grid-template-columns: 1fr; gap: 4px; }
  .panel dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
