/*
	Galactic Future - eigenständige Corporate Identity.

	Palette exakt aus dem aktuellen Spiel-Client übernommen (Godot-Theme +
	Store-Grafiken): Teal #39d3c2 (Marke/Titel, = MenuTheme.TITLE_TEAL), Coral
	#ff8e6e (Akzent, Wortmarke "FUTURE"/Caption-Banner), Mint #50c090 (Aktion,
	"Continue"/Gewinne) auf Deep-Space-Violett #492d58 -> Near-Black #191322.
	Panels sind weiß-transparent wie die Karten im Spiel (MenuTheme.CARD_*).

	Reines CSS ohne Präprozessor. Asset-URLs per {versionz} im Template
	(Cache-Busting), nicht hier. Aufbau wie die übrigen Spiele-Landings
	(global fixierte Grafik + dokumentfließende Schatten-Schicht), siehe
	misc/claude/game-area-system.md.
*/

:root {
	--gf-space-top: #191322;
	--gf-teal: #39d3c2;
	--gf-teal-soft: #7fe6da;
	--gf-coral: #ff8e6e;
	--gf-coral-soft: #ffb59d;
	--gf-mint: #50c090;
	--gf-ink: #f4f6fb;
	--gf-muted: #a2abc2;
	--gf-panel: rgba(255, 255, 255, 0.05);
	--gf-panel-border: rgba(255, 255, 255, 0.11);
	--gf-maxwidth: 1120px;
	--gf-radius: 14px;
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
}

body {
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	color: var(--gf-ink);
	background-color: var(--gf-space-top);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Global fixierte Weltraum-Grafik hinter der gesamten Seite. */
.site-bg {
	position: fixed;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-position: center;
}

/* Durchgehende Abdunklung: Hero rampt 0 -> 58 %, danach konstant. */
.content-shade {
	background: rgba(16, 11, 26, 0.58);
	display: flow-root;
}

a {
	color: var(--gf-teal);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	max-width: 100%;
	display: block;
}

h1, h2, h3 {
	line-height: 1.15;
	margin: 0 0 0.5em;
	letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------- Kopfzeile */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
	background: rgba(14, 10, 24, 0.85);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--gf-panel-border);
}

.site-header__brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 800;
	font-size: 1rem;
	color: var(--gf-ink);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.site-header__brand img {
	width: 34px;
	height: 34px;
	border-radius: 8px;
}

.site-header__brand:hover {
	text-decoration: none;
}

.site-nav {
	display: flex;
	gap: clamp(0.8rem, 2.5vw, 1.6rem);
	flex-wrap: wrap;
}

.site-nav a {
	color: var(--gf-muted);
	font-size: 0.92rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.site-nav a:hover {
	color: var(--gf-teal);
	text-decoration: none;
}

/* ------------------------------------------------------------------- Layout */

main {
	flex: 1 0 auto;
}

.section {
	max-width: var(--gf-maxwidth);
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
}

.section__title {
	font-size: clamp(1.45rem, 3.8vw, 2rem);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.section__title span {
	color: var(--gf-coral);
	text-shadow: 0 0 18px rgba(255, 142, 110, 0.5);
}

.section__lead {
	text-align: center;
	color: var(--gf-muted);
	max-width: 44rem;
	margin: 0 auto 2rem;
}

/* --------------------------------------------------------------------- Hero */

.hero {
	position: relative;
	min-height: min(86vh, 760px);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: clamp(2.5rem, 8vw, 6rem) 1.25rem;
	overflow: hidden;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(16, 11, 26, 0) 0%, rgba(16, 11, 26, 0) 8%, rgba(16, 11, 26, 0.58) 100%);
}

.hero__inner {
	position: relative;
	z-index: 2;
	max-width: 48rem;
}

/* Aktuelle Key-Art-Wortmarke (Store-Feature-Grafik, eigener Hintergrund) -
   als gerahmte Karte mit Teal-Schimmer statt transparenter Wortmarke. */
.hero__wordmark {
	width: min(92%, 40rem);
	height: auto;
	margin: 0 auto 1.4rem;
	border-radius: var(--gf-radius);
	border: 1px solid var(--gf-panel-border);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(57, 211, 194, 0.22);
}

.hero__tagline {
	font-size: clamp(1.05rem, 3.2vw, 1.5rem);
	font-weight: 600;
	color: var(--gf-ink);
	margin: 0 0 1.4rem;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.hero__free {
	margin: 0 0 1.6rem;
}

.hero__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

/* --------------------------------------------------------- Kostenlos-Plakette */

.free-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1.1rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #0c1a14;
	background: linear-gradient(90deg, var(--gf-mint), var(--gf-teal));
	box-shadow: 0 0 18px rgba(80, 192, 144, 0.45);
}

/* Status-/Teaser-Plakette (aktuell ungenutzt, für spätere Zustände erhalten). */
.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 2rem;
	padding: 0.4rem 1.1rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #0c0820;
	background: linear-gradient(90deg, var(--gf-coral), var(--gf-teal));
	box-shadow: 0 0 18px rgba(255, 142, 110, 0.45);
}

.store-note {
	color: var(--gf-muted);
	font-size: 0.9rem;
	margin: 0.2rem 0 0;
}

/* ----------------------------------------------------------- Play-Store-Badge */

.play-badge {
	display: inline-block;
}

.play-badge:hover {
	text-decoration: none;
}

.play-badge__img {
	height: 68px;
	width: auto;
	filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
	transition: transform 0.15s ease;
}

.play-badge__img:hover {
	transform: translateY(-2px) scale(1.02);
}

/* ----------------------------------------------------------------- Features */

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.1rem;
}

.feature-card {
	/* Grid: Icon (Spalte 1) + Titel (Spalte 2) in Zeile 1, Beschreibung volle
	   Breite in Zeile 2. align-content:start hält den Inhalt oben (kein vertikales
	   Zentrieren in gestreckten Karten); align-items:start richtet das Icon an der
	   ersten Titelzeile aus - lange Titel brechen sauber in ihrer Spalte um. */
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"icon title"
		"desc desc";
	align-content: start;
	align-items: start;
	column-gap: 0.55rem;
	row-gap: 0.5rem;
	background: var(--gf-panel);
	border: 1px solid var(--gf-panel-border);
	border-radius: var(--gf-radius);
	padding: 1.4rem 1.3rem;
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.feature-card:hover {
	transform: translateY(-4px);
	border-color: var(--gf-teal);
	background: rgba(255, 255, 255, 0.08);
}

.feature-card__icon {
	grid-area: icon;
	font-size: 1.35rem;
	line-height: 1.25;
}

.feature-card h3 {
	grid-area: title;
	font-size: 1.12rem;
	line-height: 1.25;
	color: var(--gf-teal);
	margin: 0;
}

.feature-card p {
	grid-area: desc;
	margin: 0;
	color: var(--gf-muted);
	font-size: 0.96rem;
}

/* -------------------------------------------------------------- Screenshots */

/* Feste Spaltenzahl je Breite (4 -> 2 -> 1), damit die vier Hochkant-Shots nie
   in ein unausgewogenes 3+1 umbrechen. max-width begrenzt die Kachelhöhe. */
.shots {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	max-width: 900px;
	margin: 0 auto;
}

.shots img {
	width: 100%;
	height: auto;
	aspect-ratio: 9 / 16;
	border-radius: 18px;
	border: 1px solid var(--gf-panel-border);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {

	.shots {
		grid-template-columns: repeat(2, 1fr);
		max-width: 460px;
	}

}

@media (max-width: 520px) {

	.shots {
		grid-template-columns: 1fr;
		max-width: 260px;
	}

}

/* ----------------------------------------------------------- Lightbox (JS) */

/* Vollbild-Overlay für den vergrößerten Screenshot. Wird von lightbox.js
   erzeugt; ohne JS existiert es gar nicht (Galerie bleibt statisch nutzbar). */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 4vw, 3rem);
	background: rgba(6, 4, 12, 0.92);
	backdrop-filter: blur(4px);
}

.lightbox[hidden] {
	display: none;
}

body.lightbox-open {
	overflow: hidden;
}

.lightbox__img {
	max-width: min(100%, 460px);
	max-height: 90vh;
	width: auto;
	height: auto;
	border-radius: 16px;
	border: 1px solid var(--gf-panel-border);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox__close,
.lightbox__nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: var(--gf-ink);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--gf-panel-border);
	border-radius: 999px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: var(--gf-teal);
}

.lightbox__close {
	top: clamp(0.8rem, 3vw, 1.6rem);
	right: clamp(0.8rem, 3vw, 1.6rem);
	width: 2.6rem;
	height: 2.6rem;
	font-size: 1.7rem;
}

.lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 3rem;
	height: 3rem;
	font-size: 2rem;
}

.lightbox__nav--prev {
	left: clamp(0.5rem, 3vw, 2rem);
}

.lightbox__nav--next {
	right: clamp(0.5rem, 3vw, 2rem);
}

/* ------------------------------------------------------------ Inhaltsseiten */

.page {
	max-width: 52rem;
	margin: clamp(1.5rem, 4vw, 3rem) auto;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
	background: rgba(16, 11, 26, 0.78);
	border: 1px solid var(--gf-panel-border);
	border-radius: var(--gf-radius);
}

.page h1 {
	font-size: clamp(1.6rem, 4.5vw, 2.2rem);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #fff;
	text-shadow: 0 0 22px rgba(57, 211, 194, 0.4);
}

.page h2 {
	font-size: 1.25rem;
	color: var(--gf-teal);
	margin-top: 2rem;
	border-left: 3px solid var(--gf-coral);
	padding-left: 0.6rem;
}

.page h3 {
	font-size: 1.05rem;
	color: var(--gf-ink);
	margin-top: 1.4rem;
}

.page p, .page li {
	color: #dce0ee;
}

.page a {
	color: var(--gf-teal);
}

.page__meta {
	color: var(--gf-muted);
	font-size: 0.88rem;
}

/* ---------------------------------------------------------- Anbieter-Block */

.legal-entity__address {
	font-style: normal;
	margin: 0.5rem 0 1.4rem;
	color: var(--gf-ink);
}

.legal-entity__facts dt {
	font-weight: 700;
	color: var(--gf-teal);
	margin-top: 1rem;
}

.legal-entity__facts dd {
	margin: 0.1rem 0 0;
}

.legal-entity__mail {
	font-family: monospace;
}

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

.site-footer {
	border-top: 1px solid var(--gf-panel-border);
	background: rgba(14, 10, 24, 0.85);
}

.site-footer__inner {
	max-width: var(--gf-maxwidth);
	margin: 0 auto;
	padding: 1.6rem clamp(1rem, 4vw, 2.5rem);
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.4rem;
	align-items: center;
	justify-content: space-between;
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.2rem;
}

.site-footer__links a {
	color: var(--gf-muted);
	font-size: 0.9rem;
}

.site-footer__copy {
	color: var(--gf-muted);
	font-size: 0.85rem;
}

/* ------------------------------------------------------------- Hilfsklassen */

.center {
	text-align: center;
}

/* ---------------------------------------------------------- Mobile / schmal */

.section__title,
.page h1 {
	overflow-wrap: break-word;
}

@media (max-width: 600px) {

	.site-header {
		flex-direction: column;
		align-items: center;
		gap: 0.45rem;
	}

	.site-nav {
		justify-content: center;
		gap: 0.45rem 1rem;
	}

	.site-nav a {
		font-size: 0.8rem;
	}

	.page h1 {
		font-size: 1.4rem;
	}

}
