/* Chop Till Spring / Compound Games – keine externen Schriften oder Dienste (DSGVO-freundlich) */
:root {
  --night: #0b1220;
  --night-2: #121c30;
  --panel: #18233a;
  --line: rgba(255, 255, 255, 0.10);
  --snow: #eef3fa;
  --muted: #aab6c8;
  --ember: #ff8a1f;
  --ember-2: #ffb35c;
  --gold: #ffd27a;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--snow);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ember-2); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; margin: 0 0 .6em; letter-spacing: .01em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }

/* Sprache: nur die gewaehlte anzeigen */
html[lang="de"] [lang="en"]:not(html),
html[lang="en"] [lang="de"]:not(html) { display: none !important; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 20px;
  background: rgba(11, 18, 32, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--snow); text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.topbar nav { display: flex; gap: 22px; margin-left: auto; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 16px; }
.topbar nav a:hover { color: var(--snow); }
.langswitch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langswitch button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700;
  padding: 5px 12px; cursor: pointer;
}
.langswitch button.on { background: var(--ember); color: #1d0e00; }

/* ---------- Kopfbild ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 110px 16px 70px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("img/hero.webp") center 40% / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(11,18,32,.25) 0%, rgba(11,18,32,.70) 70%),
    linear-gradient(to bottom, rgba(11,18,32,.35) 0%, rgba(11,18,32,0) 30%, rgba(11,18,32,.6) 75%, var(--night) 100%);
}
.hero-inner { position: relative; max-width: 860px; }
.game-logo { width: min(640px, 92%); margin: 0 auto 18px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.tagline { font-size: clamp(1.05rem, 2.2vw, 1.3rem); margin: 0 auto 28px; max-width: 720px; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.soon { margin-top: 18px; color: var(--gold); font-size: 15px; text-shadow: 0 2px 10px rgba(0,0,0,.8); }

.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; color: var(--snow);
  border: 2px solid rgba(255,255,255,.55); background: rgba(11,18,32,.45);
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); background: rgba(11,18,32,.7); }
.btn.primary {
  border-color: transparent; color: #1d0e00;
  background: linear-gradient(180deg, var(--ember-2), var(--ember));
  box-shadow: 0 6px 24px rgba(255,138,31,.35);
}
.btn.disabled {
  cursor: default; color: var(--gold);
  border: 2px dashed rgba(255, 210, 122, .55); background: rgba(11,18,32,.55);
}
.btn.disabled:hover { transform: none; background: rgba(11,18,32,.55); }
.btn.primary:hover { box-shadow: 0 8px 32px rgba(255,138,31,.55); background: linear-gradient(180deg, #ffc47a, #ff9a3a); }

/* Schnee */
.snow, .snow::before, .snow::after {
  position: absolute; inset: -200px 0 0 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 120px 80px, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 200px 150px, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(2px 2px at 60px 190px, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 170px 10px, rgba(255,255,255,.7) 50%, transparent 51%);
  background-size: 240px 220px;
  animation: snow 14s linear infinite;
  opacity: .6;
}
.snow::before { content: ""; background-size: 320px 300px; animation-duration: 22s; opacity: .5; }
.snow::after { content: ""; background-size: 180px 170px; animation-duration: 10s; opacity: .35; }
@keyframes snow { to { transform: translateY(220px); } }
@media (prefers-reduced-motion: reduce) { .snow, .snow::before, .snow::after { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Geschichte ---------- */
section { padding: 80px 0; }
.story .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.story article {
  background: linear-gradient(180deg, var(--panel), var(--night-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.story h2 { font-size: 1.35rem; color: var(--gold); }
.story p { margin: 0; color: #d7deea; }

/* ---------- Features ---------- */
.features { background: linear-gradient(180deg, var(--night), #0f1a2e 50%, var(--night)); }
.feature-grid {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.feature-grid li {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; color: #d7deea; font-size: 16px; line-height: 1.5;
}
.feature-grid b { display: block; font-size: 2.2rem; line-height: 1.1; color: var(--ember-2); margin-bottom: 6px; }

/* ---------- Trailer ---------- */
.video-frame {
  margin-top: 26px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.5);
  aspect-ratio: 16 / 9; background: #000;
}
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ---------- Bilder ---------- */
.shots { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shots button {
  padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #000; cursor: zoom-in; aspect-ratio: 16 / 9;
}
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s, opacity .25s; opacity: .92; }
.shots button:hover img { transform: scale(1.04); opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(4, 8, 16, .94);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 50px rgba(0,0,0,.7); }
.lightbox button {
  position: absolute; background: rgba(0,0,0,.6); color: #fff; border: 1px solid rgba(255,255,255,.35);
  font-size: 34px; line-height: 1; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  z-index: 1; backdrop-filter: blur(4px);
}
.lightbox button:hover { background: rgba(0,0,0,.85); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Wunschliste ---------- */
.wishlist {
  background: url("img/page_bg.webp") center / cover no-repeat;
  position: relative;
}
.wishlist::before { content: ""; position: absolute; inset: 0; background: rgba(11,18,32,.72); }
.wishlist .wrap { position: relative; max-width: 760px; }
.wishlist p { color: #d7deea; margin: 0 0 26px; }

/* ---------- Studio ---------- */
.studio-inner { display: flex; gap: 40px; align-items: center; }
.studio-inner img { width: 220px; height: 220px; border-radius: 50%; flex: none; box-shadow: 0 10px 40px rgba(255,138,31,.25); }
.studio p { color: #d7deea; }

/* ---------- Fuss ---------- */
footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 15px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); margin-left: 18px; }
.foot a:hover { color: var(--snow); }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 110px 16px 60px; }
.legal h1 { font-size: 2rem; margin-top: 0; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; color: var(--gold); }
.legal p, .legal li { color: #d7deea; }
.todo { background: #5a2b00; color: #ffd9a8; padding: 0 4px; border-radius: 4px; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 980px) {
  .story .wrap { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .topbar { gap: 12px; padding: 8px 16px; }
  .topbar nav { display: none; }
  .langswitch { margin-left: auto; }
  section { padding: 56px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .studio-inner { flex-direction: column; text-align: center; }
  .studio-inner img { width: 160px; height: 160px; }
  .foot { flex-direction: column; align-items: center; text-align: center; }
  .foot a { margin: 0 9px; }
}
