/* Crater Clash – Webseite. Keine externen Schriften oder Dienste (datenschutzfreundlich). */

:root {
	--bg: #0a0e1f;
	--bg-2: #111733;
	--card: rgba(255, 255, 255, 0.045);
	--card-border: rgba(255, 255, 255, 0.09);
	--text: #eef1fb;
	--muted: #a4abc6;
	--accent: #ffc93c;
	--accent-2: #ff7a3c;
	--sky: #3c8ee8;
	--ok: #4cd964;
	--radius: 22px;
	--maxw: 1160px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: dark;
}

/* Sprache: nur die gewählte Sprache ist sichtbar (ohne JavaScript Deutsch). */
html[data-lang="de"] [lang="en"]:not(html),
html[data-lang="en"] [lang="de"]:not(html) {
	display: none !important;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background:
		radial-gradient(1200px 600px at 80% -10%, rgba(60, 142, 232, 0.25), transparent 60%),
		radial-gradient(900px 500px at 0% 20%, rgba(255, 122, 60, 0.12), transparent 60%),
		linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }

/* --- Navigation --------------------------------------------------------- */

.nav {
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	background: rgba(10, 14, 31, 0.72);
	border-bottom: 1px solid var(--card-border);
}

.nav .wrap {
	display: flex;
	align-items: center;
	gap: 22px;
	height: 68px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 20px;
	color: var(--text);
	letter-spacing: 0.2px;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; image-rendering: pixelated; }

.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.lang {
	display: inline-flex;
	padding: 4px;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--card-border);
}

.lang button {
	font: 700 13px var(--font);
	color: var(--muted);
	background: transparent;
	border: 0;
	border-radius: 999px;
	padding: 6px 12px;
	cursor: pointer;
}

.lang button[aria-pressed="true"] { background: var(--accent); color: #1b1f33; }

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

.hero { padding: 72px 0 40px; }

.hero .wrap {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 48px;
	align-items: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--accent);
	background: rgba(255, 201, 60, 0.1);
	border: 1px solid rgba(255, 201, 60, 0.25);
	padding: 6px 12px;
	border-radius: 999px;
}

.eyebrow::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--ok);
	box-shadow: 0 0 12px var(--ok);
}

h1 {
	font-size: clamp(44px, 7vw, 84px);
	line-height: 1;
	margin: 18px 0 18px;
	letter-spacing: -1.5px;
	background: linear-gradient(135deg, #fff 10%, var(--accent) 55%, var(--accent-2) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 520px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.store {
	display: inline-flex;
	flex-direction: column;
	padding: 12px 20px;
	border-radius: 16px;
	background: var(--card);
	border: 1px solid var(--card-border);
	color: var(--text);
	min-width: 170px;
}

.store small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }
.store strong { font-size: 18px; }
.store.primary { background: var(--accent); color: #1b1f33; border-color: transparent; }
.store.primary small { color: rgba(27, 31, 51, 0.7); }

/* Gerät im Querformat um den Hero-Screenshot. */
.device {
	position: relative;
	border-radius: 34px;
	padding: 12px;
	background: linear-gradient(145deg, #2a3150, #0d1124);
	box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
	transition: transform 0.6s ease;
}

.device:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.device img { display: block; width: 100%; height: auto; border-radius: 24px; }

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

section { padding: 72px 0; }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.6px; }
.section-head p { color: var(--muted); margin: 0; }

.features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.feature {
	padding: 26px;
	border-radius: var(--radius);
	background: var(--card);
	border: 1px solid var(--card-border);
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature:hover { transform: translateY(-4px); border-color: rgba(255, 201, 60, 0.35); }

.feature .icon {
	width: 48px; height: 48px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(255, 201, 60, 0.2), rgba(255, 122, 60, 0.15));
	margin-bottom: 16px;
}

.feature .icon svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Galerie: seitlich wischen, einrasten; Klick öffnet groß. */
.gallery {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(78%, 620px);
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 4px 4px 18px;
	scrollbar-width: thin;
}

.gallery figure { margin: 0; scroll-snap-align: start; }

.gallery button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 18px;
	overflow: hidden;
	cursor: zoom-in;
	background: none;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1616 / 720; object-fit: cover; transition: transform 0.4s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }

dialog.lightbox {
	width: min(96vw, 1400px);
	padding: 0;
	border: 0;
	border-radius: 18px;
	background: #000;
	box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}

dialog.lightbox::backdrop { background: rgba(4, 6, 14, 0.85); backdrop-filter: blur(6px); }
dialog.lightbox img { display: block; width: 100%; height: auto; }

/* --- Rechtliches --------------------------------------------------------- */

.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }

.legal-toc {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.legal-toc a {
	color: var(--muted);
	font-weight: 600;
	padding: 10px 14px;
	border-radius: 12px;
}

.legal-toc a:hover { background: var(--card); color: var(--text); text-decoration: none; }

.legal {
	padding: 34px 38px;
	border-radius: var(--radius);
	background: var(--card);
	border: 1px solid var(--card-border);
	margin-bottom: 22px;
}

.legal h2 { margin: 0 0 8px; font-size: 30px; }
.legal h3 { margin: 28px 0 8px; font-size: 18px; color: var(--accent); }
.legal p, .legal li { color: #d6daea; font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal .stand { color: var(--muted); font-size: 14px; margin-top: 0; }
.legal address { font-style: normal; color: #d6daea; }

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

footer {
	border-top: 1px solid var(--card-border);
	padding: 32px 0 48px;
	color: var(--muted);
	font-size: 14px;
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { color: var(--muted); }

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

@media (max-width: 960px) {
	.hero .wrap { grid-template-columns: 1fr; }
	.device { transform: none; }
	.features { grid-template-columns: repeat(2, 1fr); }
	.legal-grid { grid-template-columns: 1fr; }
	.legal-toc { position: static; flex-direction: row; flex-wrap: wrap; }
	.nav-links { display: none; }
	.lang { margin-left: auto; }
}

@media (max-width: 620px) {
	.features { grid-template-columns: 1fr; }
	.legal { padding: 24px 20px; }
	section { padding: 52px 0; }
	.hero { padding-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.device, .feature, .gallery img { transition: none; }
}
