/* Banners & Bones – bannersandbones.com (D5). Farben und Formen wie die Spieloberfläche (game/scripts/battle/Ui.cs):
   dunkle Flächen, dünne helle Ränder, weiße Schrift, Gold nur als Akzent. Schrift Alegreya Sans wie im Spiel (OFL, fonts/). */

@font-face { font-family: "Alegreya Sans"; src: url("/fonts/alegreya-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/alegreya-sans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/alegreya-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/alegreya-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0f1012;
  --bg-deep: #0a0b0c;
  --surface: #17181b;
  --surface-2: #1e1f23;
  --line: #8f949c;
  --line-soft: #34363b;
  --text: #f0f0ed;
  --muted: #a5aab2;
  --gold: #facc59;
  --button: #dba84d;
  --button-hover: #f5c261;
  --button-border: #fad17a;
  --button-text: #1f170d;
  --crown: #6f9be0;
  --grave: #8fd6a4;
  --radius: 6px;
  --wrap: 1140px;
  --font: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.1875rem/1.6 var(--font);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #ffe08f; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.kicker {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ Knöpfe */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: 1px solid #66696f;
  background: rgba(30, 31, 35, 0.92);
  color: var(--text);
  font: 700 1.05rem/1.2 var(--font);
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button:hover { background: #2a2b30; border-color: #c7cad0; color: var(--text); }
.button.primary { background: var(--button); border-color: var(--button-border); color: var(--button-text); }
.button.primary:hover { background: var(--button-hover); border-color: #ffeaa6; color: var(--button-text); }
.button.small { min-height: 40px; padding: 6px 16px; font-size: 0.98rem; }

/* ------------------------------------------------------------------ Kopfleiste */

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}
.topbar.solid { position: static; border-bottom: 1px solid var(--line-soft); background: var(--bg-deep); }
.topbar nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 1rem; padding: 6px 0; }
.topbar nav a:hover { color: var(--gold); }
.topbar nav a[aria-current="page"] { color: var(--gold); }
.topbar .lang { border: 1px solid #66696f; border-radius: var(--radius); padding: 3px 10px; font-size: 0.92rem; }
.studio-mark { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.studio-mark img { width: 20px; height: 27px; }
.studio-mark:hover { color: var(--gold); }
.home-logo img { width: 180px; height: auto; }
.hero .topbar { background: linear-gradient(rgba(10, 11, 12, 0.6), rgba(10, 11, 12, 0)); }
.hero .topbar a, .hero .studio-mark { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }

/* ------------------------------------------------------------------ Kopf der Startseite */

.hero { position: relative; }
.hero-art {
  position: relative;
  height: clamp(420px, 70vh, 820px);
  overflow: hidden;
  background: #3a3440;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 16, 18, 0) 55%, rgba(15, 16, 18, 0.55) 78%, var(--bg) 100%);
}
.hero-logo {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: clamp(64px, 11vh, 120px);
  transform: translateX(-50%);
  width: clamp(250px, 31vw, 440px);
  margin: 0;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45));
}
.hero-text { position: relative; z-index: 2; margin-top: -64px; text-align: center; }
.claim { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.1; margin: 0 0 12px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7); }
.sub { max-width: 640px; margin: 0 auto 26px; color: #d9dbdf; font-size: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.actions-note { margin: 14px 0 0; color: var(--muted); font-size: 1rem; }
.facts { margin: 22px auto 0; color: var(--muted); font-size: 1rem; letter-spacing: 0.02em; }
.facts span { white-space: nowrap; }
.facts span + span::before { content: "·"; margin: 0 0.55em; color: #6c7078; }

/* ------------------------------------------------------------------ Abschnitte */

section { padding: clamp(56px, 9vw, 104px) 0 0; }
section:last-of-type { padding-bottom: clamp(56px, 9vw, 104px); }
.section-head { max-width: 720px; margin: 0 0 32px; }

.feature { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.feature.flip { grid-template-columns: 1fr 1.45fr; }
.feature.flip .shot { order: 2; }
.feature-text p { color: #dcdee2; }
.shot {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.shot a { display: block; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.3s; }
.shot a:hover img { transform: scale(1.015); }

.factions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.faction { margin: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.faction img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.faction figcaption { padding: 20px 24px 24px; color: #dcdee2; }
.faction h3 { font-size: 1.55rem; margin-bottom: 6px; }
.faction.crown h3 { color: var(--crown); }
.faction.grave h3 { color: var(--grave); }
.faction p { margin: 0; }

.inside { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; list-style: none; margin: 0; padding: 0; }
.inside li { position: relative; padding-left: 30px; color: #dcdee2; }
.inside li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 13px;
  height: 15px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.inside strong { color: var(--text); }

.glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.glance div { background: var(--surface); padding: 18px 22px; }
.glance dt { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.glance dd { margin: 0; font-weight: 500; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { display: block; border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden; background: var(--surface); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity 0.15s; }
.gallery a:hover img { opacity: 0.85; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card p { color: #dcdee2; }
.card .button { align-self: flex-start; margin-top: auto; }

/* ------------------------------------------------------------------ Unterseiten (Demo, Presse, Rechtliches) */

.page-head { padding: clamp(40px, 6vw, 72px) 0 8px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.page-head .lead { font-size: 1.25rem; color: #d9dbdf; max-width: 720px; }
.page section { padding-top: clamp(40px, 6vw, 72px); }

.page section.notice { padding: 20px 24px; margin-top: 12px; }
.notice { background: var(--surface); border: 1px solid var(--line-soft); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 20px 24px; }
.notice h2 { font-size: 1.4rem; }
.notice ul { margin: 0 0 12px; padding-left: 1.2em; }
.notice p:last-child { margin-bottom: 0; }

.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.download { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.download h3 { margin-bottom: 2px; }
.download .meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; }
.download .button { margin-bottom: 14px; }
.download .hint { font-size: 0.95rem; color: var(--muted); margin: 0 0 12px; }
.download details { font-size: 0.85rem; color: var(--muted); margin-top: auto; }
.download details code { display: block; margin-top: 4px; word-break: break-all; color: var(--text); }
.release-notes { margin-top: 22px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px 20px; }
.release-notes p { margin: 0; white-space: pre-line; color: #dcdee2; }

.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.columns.two { grid-template-columns: 1fr 1fr; }
.columns article { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; }
.columns ol, .columns ul { padding-left: 1.3em; margin: 0 0 10px; }
.columns li { margin-bottom: 8px; }
.columns p:last-child { margin-bottom: 0; }
.columns .muted { font-size: 0.95rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; color: var(--text); background: rgba(255, 255, 255, 0.06); padding: 1px 5px; border-radius: 3px; }

.factsheet { margin: 0; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.factsheet div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 18px; background: var(--surface); }
.factsheet div:nth-child(even) { background: var(--surface-2); }
.factsheet dt { color: var(--muted); }
.factsheet dd { margin: 0; }
.press-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.press-text p { color: #dcdee2; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.files a { display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.files a:hover { border-color: var(--line); color: var(--gold); }
.files img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #26282d; }
.files img.contain { object-fit: contain; padding: 14px; }
.files span { display: block; padding: 10px 14px; font-size: 0.95rem; }

.files img.light { background: #fff; }

.legal { max-width: 820px; padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(48px, 7vw, 80px); }
.back { display: inline-block; margin-bottom: 18px; }
.legal code { background: none; padding: 0; font-size: 0.92em; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.6rem); margin-bottom: 0.4em; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal li { margin-bottom: 6px; }

/* ------------------------------------------------------------------ Fuß */

footer { border-top: 1px solid var(--line-soft); background: var(--bg-deep); color: var(--muted); font-size: 0.95rem; padding: 40px 0 32px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.footer-studio { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.footer-studio img { height: 30px; width: auto; }
.footer-studio:hover { color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
footer p { margin: 0 0 6px; max-width: 900px; }
footer p a { color: var(--muted); }

/* ------------------------------------------------------------------ Schmale Bildschirme */

@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .shot { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .downloads, .columns, .columns.two, .press-grid { grid-template-columns: 1fr; }
  .glance { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .topbar { padding: 10px 16px; }
  .topbar nav { gap: 2px 14px; }
  .topbar nav a { font-size: 0.95rem; }
  .studio-mark span { display: none; }
  .home-logo img { width: 140px; }
  .wrap { padding: 0 16px; }
  .hero-art { height: min(78svh, 640px); }
  .hero-art img { object-position: 50% 100%; }
  .hero-logo { top: 72px; width: min(74vw, 320px); }
  .hero-text { margin-top: -48px; }
  .sub { font-size: 1.1rem; }
  .actions .button { width: 100%; }
  .factions, .inside { grid-template-columns: 1fr; }
  .glance { grid-template-columns: 1fr; }
  .factsheet div { grid-template-columns: 1fr; gap: 2px; }
}
