/* quasarot.appnest.one · Grundstil wie appnest.one, Ergänzungen für die Spielseite am Ende */
@font-face { font-family: "Chakra Petch"; font-weight: 400; font-display: swap; src: url("fonts/chakra-petch-400.ttf") format("truetype"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("fonts/chakra-petch-600.ttf") format("truetype"); }
@font-face { font-family: "Silkscreen"; font-weight: 400; font-display: swap; src: url("fonts/silkscreen-400.ttf") format("truetype"); }

:root {
  --void: #03040a;
  --panel: #0d1120;
  --line: #24304f;
  --ink: #d9e2ff;
  --dim: #7d8bb3;
  --cyan: #7fe8ff;
  --heat: #ffb347;
  --ember: #ff7a3c;
  --cream: #fff5d2;
  --violet: #aa8cff;
  --cut: 28px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--void);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(170, 140, 255, .16), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(40, 200, 200, .10), transparent 60%),
    radial-gradient(600px 400px at 70% 80%, rgba(255, 90, 60, .07), transparent 70%);
  color: var(--ink);
  font: 400 1.0625rem/1.65 "Chakra Petch", system-ui, sans-serif;
}
/* Sternenfeld: zwei Ebenen aus kleinen Punkten, nur Deko */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-repeat: repeat;
}
body::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff9, transparent),
    radial-gradient(1px 1px at 140px 90px, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 260px 170px, #cfe9ff, transparent),
    radial-gradient(1px 1px at 330px 40px, #fff7, transparent),
    radial-gradient(1px 1px at 70px 220px, #fff5, transparent);
  background-size: 380px 260px;
  opacity: .7;
}
body::after {
  background-image:
    radial-gradient(1px 1px at 60px 120px, #ffd9b0, transparent),
    radial-gradient(1px 1px at 300px 260px, #fff8, transparent),
    radial-gradient(2px 2px at 520px 80px, #9fefff, transparent);
  background-size: 620px 420px;
  opacity: .5;
}

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Kopf */
.site-header { padding: 28px 0 8px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  font-family: "Silkscreen", monospace;
  font-size: 1.15rem;
  letter-spacing: .12em;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 0 14px rgba(127, 232, 255, .45);
}
.brand span { color: var(--cyan); }
.site-header nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-left: 20px;
}
.site-header nav a:hover { color: var(--ink); }

main { flex: 1; }

/* Startseite */
.hero { padding: 64px 0 40px; }
.eyebrow {
  font-family: "Silkscreen", monospace;
  font-size: .8rem;
  letter-spacing: .25em;
  color: var(--heat);
  margin: 0 0 14px;
}
.hero h1 {
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 22ch;
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero p { color: var(--dim); max-width: 52ch; margin: 0; }

.projects { padding: 24px 0 96px; }
.projects h2 {
  font-family: "Silkscreen", monospace;
  font-weight: 400;
  font-size: .85rem;
  letter-spacing: .25em;
  color: var(--dim);
  margin: 0 0 20px;
}
.grid > * { min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 28px; }

/* Projektkarte mit abgeschrägter Ecke oben rechts; der Rahmen ist eine zweite, gleich geschnittene Fläche */
.card {
  --edge: linear-gradient(135deg, rgba(255, 122, 60, .9), rgba(170, 140, 255, .55) 45%, rgba(127, 232, 255, .8));
  position: relative;
  display: block;
  padding: 1px;
  background: var(--edge);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, filter .25s ease;
}
.card-inner {
  background: linear-gradient(180deg, rgba(13, 17, 32, .96), rgba(6, 8, 18, .98));
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  height: 100%;
}
.card:hover, .card:focus-visible { transform: translateY(-4px); filter: drop-shadow(0 12px 32px rgba(255, 110, 60, .28)); color: inherit; }
.card picture, .card img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
/* Hauptprojekt: auf breiten Schirmen quer, Bild links, Text rechts */
@media (min-width: 900px) {
  .grid:has(.feature) { grid-template-columns: 1fr; }
  .feature .card-inner { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: stretch; }
  .feature picture, .feature img { height: 100%; }
  .feature .card-body { display: flex; flex-direction: column; justify-content: center; padding: 32px 36px; }
  .feature h3 { font-size: 2.6rem; }
}
.card-body { padding: 22px 24px 24px; }
.card h3 {
  margin: 0;
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: .08em;
  background: linear-gradient(180deg, var(--cream), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 90, 60, .55));
}
.slogan { margin: 2px 0 12px; font-size: .85rem; letter-spacing: .3em; color: var(--cyan); }
.card p.desc { margin: 0 0 16px; color: var(--dim); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li { font-size: .78rem; letter-spacing: .06em; color: var(--ink); border: 1px solid var(--line); padding: 3px 10px; }
.cta { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; color: var(--heat); }
.cta::after { content: "→"; transition: transform .2s ease; }
.card:hover .cta::after { transform: translateX(4px); }

/* Rechtstexte */
.legal { padding: 48px 0 96px; }
.legal article { max-width: 72ch; }
.legal h1 { font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; }
.legal h2 { font-weight: 600; font-size: 1.2rem; margin: 2.2em 0 .5em; color: var(--cyan); }
.legal p, .legal li { color: #b9c4e6; }
.legal .stand { color: var(--dim); font-size: .9rem; margin: 0 0 2em; }
.legal address { font-style: normal; }
.todo { color: var(--heat); }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: .9rem; color: var(--dim); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav a { color: var(--dim); text-decoration: none; margin-right: 20px; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { color: var(--ink); }

@media (max-width: 560px) {
  .hero { padding: 40px 0 28px; }
  .site-header nav { display: none; }
  .card-body { padding: 18px; }
  .card h3 { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ===================== Spielseite ===================== */
.glut {
  font-weight: 600;
  letter-spacing: .08em;
  background: linear-gradient(180deg, var(--cream), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 2px #3c0a14) drop-shadow(0 0 18px rgba(255, 90, 60, .6));
}
.brand.glut { font-family: "Chakra Petch", sans-serif; font-size: 1.3rem; text-shadow: none; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--heat); color: var(--void); }
.btn-primary:hover { color: var(--void); filter: drop-shadow(0 6px 18px rgba(255, 179, 71, .45)); }
.btn-ghost { color: var(--ink); background: rgba(13, 17, 32, .7); box-shadow: inset 0 0 0 1px var(--line); }
.btn svg { width: 20px; height: 20px; }

/* Hero mit Bild rechts, Verlauf nach links */
.game-hero { position: relative; overflow: hidden; isolation: isolate; }
.game-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; z-index: -2; }
.game-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--void) 18%, rgba(3, 4, 10, .75) 45%, rgba(3, 4, 10, .1) 75%), linear-gradient(0deg, var(--void), transparent 30%); }
.game-hero .wrap { padding: 110px 0 120px; }
.game-hero h1 { font-size: clamp(3rem, 9vw, 6rem); line-height: 1; margin: 0; }
.game-hero .slogan { font-size: 1rem; margin: 14px 0 20px; }
.game-hero p.pitch { max-width: 44ch; color: #c3cdea; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.note { font-size: .85rem; color: var(--dim); margin-top: 14px; }

section.block { padding: 88px 0 24px; }
.block h2 { font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 10px; }
.block .lead { color: var(--dim); max-width: 60ch; margin: 0 0 32px; }

/* Mini-Demo */
.demo {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  width: 100%;
  background: radial-gradient(circle at 50% 70%, #0d1530, #03040a 70%);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px var(--line);
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.demo canvas { display: block; width: 100%; height: 100%; }
.demo-hud { position: absolute; left: 16px; top: 12px; font-family: "Silkscreen", monospace; font-size: .8rem; letter-spacing: .15em; color: var(--cyan); pointer-events: none; }
.demo-hint { position: absolute; inset: auto 0 14px; text-align: center; font-size: .85rem; color: var(--dim); pointer-events: none; transition: opacity .6s; }
.demo.played .demo-hint { opacity: 0; }
@media (max-width: 560px) { .demo { aspect-ratio: 3 / 4; max-height: none; } }

/* Merkmale */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.feature-tile { padding: 22px; background: rgba(13, 17, 32, .7); box-shadow: inset 0 0 0 1px var(--line); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.feature-tile svg { width: 30px; height: 30px; color: var(--cyan); margin-bottom: 10px; }
.feature-tile h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 600; }
.feature-tile p { margin: 0; color: var(--dim); font-size: .95rem; }

/* Hangar */
.hangar { position: relative; }
.hangar-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 78%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; scrollbar-width: none; }
.hangar-track::-webkit-scrollbar { display: none; }
.ship {
  --tier: #96a5c8;
  scroll-snap-align: center;
  padding: 20px 20px 22px;
  background: linear-gradient(180deg, rgba(20, 24, 44, .95), rgba(8, 10, 20, .95));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tier) 55%, transparent);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  transition: transform .3s ease;
}
.ship:hover { transform: translateY(-4px); }
.ship .tier { font-family: "Silkscreen", monospace; font-size: .75rem; letter-spacing: .2em; color: var(--tier); }
.ship figure { margin: 6px 0 10px; aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--tier) 30%, transparent), transparent 65%); }
.ship img { width: 82%; height: auto; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ship:hover img { transform: translateY(-8px) rotate(-4deg); }
.ship h3 { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: .08em; }
.ship p { margin: 4px 0 14px; color: var(--dim); font-size: .92rem; min-height: 3.3em; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; margin: 0; font-size: .72rem; letter-spacing: .12em; color: var(--dim); }
.stats dt { font-family: "Silkscreen", monospace; }
.stats dd { margin: 0; height: 5px; background: var(--line); position: relative; }
.stats dd::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--tier); box-shadow: 0 0 8px var(--tier); }
.unlock { margin-top: 14px; font-family: "Silkscreen", monospace; font-size: .72rem; letter-spacing: .12em; color: var(--heat); }
.hangar-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.hangar-nav button { width: 44px; height: 44px; background: rgba(13, 17, 32, .8); border: 1px solid var(--line); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.hangar-nav button:hover { border-color: var(--cyan); color: var(--cyan); }

/* Demo/Vollversion */
.versions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.version { padding: 26px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(13, 17, 32, .7); }
.version.full { box-shadow: inset 0 0 0 1px rgba(255, 179, 71, .6); background: linear-gradient(160deg, rgba(255, 122, 60, .12), rgba(13, 17, 32, .8) 50%); }
.version h3 { margin: 0 0 4px; font-weight: 600; font-size: 1.3rem; }
.version .price { color: var(--heat); font-family: "Silkscreen", monospace; letter-spacing: .15em; font-size: .8rem; margin: 0 0 12px; }
.version ul { margin: 0; padding-left: 1.1em; color: #b9c4e6; }
.version li { margin: 4px 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--dim); margin: 10px 0 0; max-width: 70ch; }

/* Einblenden beim Scrollen */
/* nur mit JavaScript verstecken, sonst bleibt alles sichtbar (Suchmaschinen, Skriptblocker) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
.site-header.overlay { position: absolute; inset: 0 0 auto; z-index: 5; }
