/* Clubforge — Homepage
   Bewusst eine einzige, dunkle Bildwelt: die Seite trägt dieselbe Palette wie
   das Spiel (UITheme). Alle Farben sind explizit gesetzt, nichts wird vom
   Host-Hintergrund geerbt. */

:root {
	--ink-900: #0b0e13;
	--ink-800: #10141a;
	--ink-700: #171d26;
	--ink-600: #1e2531;
	--ink-500: #2a3341;
	--line: #2b3441;
	--line-soft: #212936;

	--gold: #e3b341;
	--gold-bright: #f5cf6b;
	--bronze: #a87b1e;
	--pitch: #2f9e5f;
	--pitch-dim: #1e7d4f;
	--flag: #c0392b;

	--text: #f3ede1;
	--text-dim: #a3aab6;
	--text-mute: #737d8b;

	--font-display: "Anton", "Arial Narrow", Impact, sans-serif;
	--font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
	--font-mono: "IBM Plex Mono", "Consolas", monospace;

	--wrap: 1180px;
	--radius: 10px;
	--pad: clamp(1.5rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
	margin: 0;
	background: var(--ink-800);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { text-wrap: balance; margin: 0; }

/* Zeilenhöhen sind hier bewusst großzügig: Anton setzt die Umlautpunkte sehr
   hoch über die Versalhöhe, bei engem Durchschuss stoßen Ä/Ö/Ü an die Zeile
   darüber. Unter 1.12 wird es bei deutschen Überschriften eng. */
h2.section-title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4.4vw, 3.1rem);
	font-weight: 400;
	line-height: 1.14;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

p { margin: 0; }

a { color: var(--gold); text-decoration-color: rgba(227, 179, 65, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--gold-bright); }

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

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 0.85rem;
}

.lede { font-size: 1.12rem; color: var(--text-dim); max-width: 62ch; }

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

.topbar {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(11, 14, 19, 0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line-soft);
}

.topbar__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: 4.25rem;
}

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.02em; color: var(--text); text-transform: uppercase; }
.brand__name em { font-style: normal; color: var(--gold); }
.brand__sub { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; color: var(--text-mute); text-transform: uppercase; margin-top: 0.25rem; }

.topnav { display: flex; gap: 1.4rem; margin-left: auto; }
.topnav a {
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--text-dim);
	text-decoration: none;
	padding: 0.35rem 0;
	border-bottom: 2px solid transparent;
}
.topnav a:hover { color: var(--text); border-bottom-color: var(--gold); }

.langswitch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langswitch button {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	padding: 0.3rem 0.7rem;
	background: transparent;
	border: 0;
	color: var(--text-mute);
	cursor: pointer;
}
.langswitch button[aria-pressed="true"] { background: var(--gold); color: var(--ink-900); font-weight: 500; }

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	padding: 0.8rem 1.5rem;
	border-radius: var(--radius);
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink-900); }
.btn--gold:hover { background: var(--gold-bright); color: var(--ink-900); }
.btn--pitch { background: var(--pitch-dim); color: #eafaf1; }
.btn--pitch:hover { background: var(--pitch); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* ---------- Held ---------- */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero__bg {
	position: absolute;
	inset: 0;
	background-image: url("../img/atmosphere.jpg");
	background-size: cover;
	background-position: center 30%;
	opacity: 0.3;
	filter: saturate(0.75);
}
.hero__scrim {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 80% at 50% 0%, rgba(227, 179, 65, 0.16), transparent 62%),
		linear-gradient(180deg, rgba(11, 14, 19, 0.55) 0%, rgba(11, 14, 19, 0.82) 55%, var(--ink-800) 100%);
}
.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero h1 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.7rem, 6.6vw, 4.9rem);
	line-height: 1.06;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	margin-bottom: 1.1rem;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-dim); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1.1rem;
	margin-top: 1.6rem;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--text-mute);
}
.hero__meta strong { color: var(--text-dim); font-weight: 500; }

/* Das Wappen steht frei - kein Rahmen, kein Kasten. Mit Rahmen und Schatten
   las es sich als grosses Foto-Panel und erschlug die Schlagzeile. */
.hero__art { display: flex; justify-content: center; align-items: center; }
.hero__art img { width: min(100%, 400px); height: auto; }

.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	color: var(--text-dim);
	background: rgba(255, 255, 255, 0.03);
}
.pill--beta { border-color: rgba(227, 179, 65, 0.45); color: var(--gold); }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pitch); }

/* ---------- Kennzahlen ---------- */

.stats { background: var(--ink-900); border-bottom: 1px solid var(--line-soft); }
.stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--line-soft);
	border-inline: 1px solid var(--line-soft);
}
/* Bewusst OHNE Zahlen: Vereins- und Spielerzahlen wachsen mit jeder Version
   und waeren auf der Seite sofort veraltet. Stattdessen vier Aussagen, die
   auch in einem Jahr noch stimmen. */
.stat { background: var(--ink-900); padding: 1.6rem 1.4rem; }
.stat__title {
	font-family: var(--font-display);
	font-size: 1.12rem;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--gold);
}
.stat__text { font-size: 0.93rem; line-height: 1.55; color: var(--text-dim); margin-top: 0.55rem; }

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

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--ink-900); border-block: 1px solid var(--line-soft); }
.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { margin-top: 0.9rem; }

.pitchtext { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pitchtext p + p { margin-top: 1.1rem; }
.pitchtext .col-b p { color: var(--text-dim); }

.creed {
	border-left: 3px solid var(--gold);
	padding: 0.2rem 0 0.2rem 1.3rem;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.6vw, 1.9rem);
	line-height: 1.24;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--text);
}
.creed span { color: var(--gold); }

/* ---------- Merkmale ---------- */

.features { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 5.5rem); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
.feature:nth-child(even) .feature__body { order: 2; }
.feature__body h3 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.6rem, 2.9vw, 2.15rem);
	line-height: 1.16;
	text-transform: uppercase;
	margin-bottom: 0.9rem;
}
.feature__body p { color: var(--text-dim); }
.feature__list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-direction: column; gap: 0.55rem; }
.feature__list li { position: relative; padding-left: 1.4rem; font-size: 0.97rem; color: var(--text-dim); }
.feature__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 7px;
	height: 7px;
	background: var(--gold);
	transform: rotate(45deg);
}
.feature__shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-700); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }
.feature__shot img { width: 100%; height: auto; }

/* ---------- Galerie ---------- */

/* Drei Spalten statt vier: bei 270 px Kachelbreite ist die Spiel-Oberfläche
   nicht mehr lesbar, die Galerie wirkt dann wie eine Wand dunkler Rechtecke. */
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.1rem; }
.shot {
	position: relative;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	background: var(--ink-700);
	cursor: zoom-in;
	transition: border-color 0.18s ease, transform 0.18s ease;
	display: block;
	width: 100%;
	text-align: left;
	color: inherit;
	font: inherit;
}
.shot:hover { border-color: var(--gold); transform: translateY(-3px); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; display: block; }

/* Lupe als dauerhaft sichtbarer Hinweis - ohne sie erkennt niemand, dass die
   Kacheln sich vergroessern lassen. */
.shot__zoom {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(11, 14, 19, 0.78);
	border: 1px solid var(--line);
	color: var(--gold);
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.shot:hover .shot__zoom, .shot:focus-visible .shot__zoom {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--ink-900);
	transform: scale(1.08);
}
.shot__cap {
	display: block;
	padding: 0.7rem 0.9rem;
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--text-dim);
	border-top: 1px solid var(--line-soft);
	background: var(--ink-700);
}

/* <dialog> bringt eigene Vorgaben mit (Rand, Breite, Zentrierung) — die
   werden hier zurückgesetzt, sonst sitzt das Bild in einem weißen Kasten. */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	border: 0;
	padding: clamp(1rem, 4vw, 3rem);
	background: rgba(6, 8, 11, 0.93);
	color: var(--text);
	overflow: auto;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(6, 8, 11, 0.8); }
.lightbox__fig { margin: 0; max-width: 1400px; width: 100%; }
.lightbox__fig img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.lightbox__cap { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.85rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); }
.lightbox__close {
	position: absolute;
	top: 1.2rem;
	right: 1.4rem;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--text);
	font-size: 1.3rem;
	line-height: 1;
	padding: 0.35rem 0.65rem;
	cursor: pointer;
}
.lightbox__close:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Ticker (Entwicklungsverlauf) ---------- */

.ticker { border: 1px solid var(--line); border-radius: 12px; background: var(--ink-900); overflow: hidden; }
.ticker__head {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.75rem 1.1rem;
	border-bottom: 1px solid var(--line-soft);
	background: var(--ink-700);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-dim);
}
.ticker__list { list-style: none; margin: 0; padding: 0.4rem 0; }
.ticker__row { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.9rem; padding: 0.5rem 1.1rem; align-items: baseline; }
.ticker__row + .ticker__row { border-top: 1px solid rgba(43, 52, 65, 0.4); }
.ticker__min { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.ticker__text { font-size: 0.97rem; color: var(--text-dim); }
.ticker__text b { color: var(--text); font-weight: 600; }
.ticker__row--goal { background: rgba(192, 57, 43, 0.11); }
.ticker__row--goal .ticker__text { color: var(--text); }
.ticker__row--goal .ticker__min { color: var(--flag); }

/* ---------- Holen ---------- */

.grab__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.3rem; }
.card {
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--ink-700);
	padding: 1.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}
.card--accent { border-color: rgba(227, 179, 65, 0.4); background: linear-gradient(180deg, rgba(227, 179, 65, 0.07), rgba(227, 179, 65, 0) 60%), var(--ink-700); }
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; line-height: 1.2; }
.card p { color: var(--text-dim); font-size: 0.97rem; }
.card .btn { align-self: flex-start; margin-top: auto; }
.card__meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-mute); }

.specs { width: 100%; border-collapse: collapse; margin-top: 2.5rem; font-size: 0.95rem; }
.specs caption {
	text-align: left;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
	padding-bottom: 0.8rem;
}
.specs th, .specs td { text-align: left; padding: 0.65rem 1rem 0.65rem 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.specs th { width: 12rem; font-weight: 500; color: var(--text-dim); }
.specs td { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Fragen ---------- */

.faq { display: flex; flex-direction: column; gap: 0.7rem; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--ink-700); overflow: hidden; }
.faq summary {
	cursor: pointer;
	padding: 1rem 1.2rem;
	font-weight: 600;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--gold); font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq p { padding: 1rem 1.2rem; color: var(--text-dim); font-size: 0.97rem; }

/* ---------- Hinweis zur KI-Entwicklung ---------- */

.kibox {
	border: 1px solid rgba(227, 179, 65, 0.35);
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(227, 179, 65, 0.06), rgba(227, 179, 65, 0) 55%), var(--ink-900);
	padding: clamp(1.8rem, 4vw, 3rem);
}
.kibox .lede { margin-top: 1.1rem; max-width: 68ch; }
.kibox__spalten {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(1.4rem, 3vw, 2.6rem);
	margin-top: 2rem;
}
.kibox__spalten p { color: var(--text-dim); }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */

.rechtstext { max-width: 74ch; }
.rechtstext h3 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.22rem;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--gold);
	margin: 2.4rem 0 0.7rem;
}
.rechtstext > .section-title + .lede { margin-top: 1.2rem; }
.rechtstext p { color: var(--text-dim); }
.rechtstext p + p { margin-top: 0.9rem; }
.rechtstext ul + p { margin-top: 0.9rem; }
.rechtstext ul { margin: 0.8rem 0 0; padding-left: 1.3rem; color: var(--text-dim); }
.rechtstext li + li { margin-top: 0.4rem; }
.rechtstext code {
	font-family: var(--font-mono);
	font-size: 0.88em;
	color: var(--text);
	background: var(--ink-700);
	border: 1px solid var(--line-soft);
	border-radius: 4px;
	padding: 0.08em 0.36em;
}
.rechtstext strong { color: var(--text); font-weight: 600; }
.rechtstext .hinweis { font-size: 0.9rem; color: var(--text-mute); margin-top: 1rem; }
.rechtstext .zurueck { margin-top: 3rem; }
.rechtstext [data-feld] { color: var(--text); }

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

.site-footer { background: var(--ink-900); border-top: 1px solid var(--line-soft); padding: 3rem 0 2.5rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.site-footer a { font-size: 0.92rem; }
.site-footer__legal { font-size: 0.85rem; color: var(--text-mute); max-width: 48ch; }
.todo { border: 1px dashed rgba(227, 179, 65, 0.5); border-radius: 8px; padding: 0.75rem 1rem; margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-dim); }
.todo strong { color: var(--gold); }

/* ---------- Bewegung ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.btn:hover, .shot:hover { transform: none; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Schmale Fenster ---------- */

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__art { order: -1; }
	.hero__art img { width: min(72%, 300px); }
	.stats__grid { grid-template-columns: repeat(2, 1fr); }
	.pitchtext { grid-template-columns: 1fr; }
	.feature { grid-template-columns: 1fr; }
	.feature:nth-child(even) .feature__body { order: 0; }
	.topnav { display: none; }
}

@media (max-width: 520px) {
	body { font-size: 16px; }
	.stats__grid { grid-template-columns: 1fr; }
	.ticker__row { grid-template-columns: 4.2rem 1fr; gap: 0.6rem; }
	.specs th { width: auto; display: block; padding-bottom: 0.15rem; border-bottom: 0; }
	.specs td { display: block; padding-top: 0; }
}
