:root {
	--bg: #f7f7fa;
	--bg-elevated: #ffffff;
	--border: #e3e3ea;
	--text: #1b1b22;
	--text-muted: #63636f;
	--accent: #ff7a33;
	--accent-dark: #d95c1a;
	--shadow: 0 1px 3px rgba(20,20,30,0.06);
}

:root[data-theme="dark"] {
	--bg: #0e0e14;
	--bg-elevated: #17171f;
	--border: #2a2a35;
	--text: #e8e8ef;
	--text-muted: #9797a8;
	--shadow: none;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	line-height: 1.5;
}

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

/* Header / Navigation */
.site-header {
	background: var(--bg-elevated);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 20;
}
.site-header__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	gap: 28px;
}
.logo { display: block; line-height: 0; }

.main-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.main-nav a, .main-nav > .nav-item > button {
	color: var(--text-muted);
	font-size: 0.92rem;
	font-weight: 500;
	padding: 8px 10px;
	border-radius: 6px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
}
.main-nav a:hover, .main-nav > .nav-item > button:hover { color: var(--accent); background: var(--bg); text-decoration: none; }

.nav-item { position: relative; }
.nav-item > button { display: flex; align-items: center; gap: 4px; }
.nav-item__caret { font-size: 0.7em; }
.nav-item__menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(20,20,30,0.12);
	padding: 6px;
	display: none;
	max-height: 70vh;
	overflow-y: auto;
	grid-template-columns: 1fr;
}
.nav-item__menu.is-open { display: grid; }
.nav-item__menu a {
	display: block;
	padding: 8px 10px;
	border-radius: 6px;
	color: var(--text);
	font-size: 0.88rem;
	font-weight: 400;
}
.nav-item__menu a:hover { background: var(--bg); text-decoration: none; color: var(--accent); }

.fb-button {
	background: #1877f2;
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: Georgia, serif;
	font-weight: 700;
	font-size: 1.3rem;
	font-style: italic;
	flex-shrink: 0;
}
.fb-button:hover { background: #1461cc; text-decoration: none; color: #fff; }

.theme-toggle {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 20px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 1.1rem;
	flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); }

.site-main { max-width: 1100px; margin: 0 auto; padding: 40px 24px; min-height: 60vh; }

/* Hero-Slider */
.hero-slider {
	position: relative;
	height: 420px;
	margin: -40px -24px 40px;
	overflow: hidden;
	background: var(--bg-elevated);
}
.hero-slider__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.8s ease;
}
.hero-slider__slide.is-active { opacity: 1; }
.hero-slider__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	background: linear-gradient(90deg, rgba(10,10,14,0.92) 0%, rgba(10,10,14,0.55) 55%, rgba(10,10,14,0.15) 100%);
}
.hero-slider__text { max-width: 560px; padding: 0 48px; }
.hero-slider__text h1 { font-size: 2.1rem; margin: 0 0 12px; color: #f5f5f7; }
.hero-slider__text p { color: #cacad2; margin: 0 0 20px; }
.hero-slider__btn {
	display: inline-block;
	background: var(--accent);
	color: #241000;
	font-weight: 700;
	padding: 12px 26px;
	border-radius: 8px;
}
.hero-slider__btn:hover { background: var(--accent-dark); text-decoration: none; }
.hero-slider__dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
}
.hero-slider__dot {
	width: 10px; height: 10px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.35);
	cursor: pointer;
	padding: 0;
}
.hero-slider__dot.is-active { background: var(--accent); }

.stats-bar { text-align: center; margin-bottom: 32px; color: var(--text-muted); }

/* Spiele-Grid */
.game-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}
.game-card {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--text);
	box-shadow: var(--shadow);
}
.game-card:hover { border-color: var(--accent); text-decoration: none; }
.game-card__name { font-weight: 600; }
.game-card__count { color: var(--text-muted); font-size: 0.85rem; }

/* Feature-Sektion (Text + Zitat) */
.intro-section {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 40px;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 36px;
	margin: 48px 0;
}
.intro-section h2 { margin-top: 0; }
.intro-section ul { padding-left: 20px; color: var(--text-muted); }
.intro-section li { margin: 8px 0; }
.intro-quote {
	border-left: 3px solid var(--accent);
	padding-left: 20px;
	font-style: italic;
	font-size: 1.15rem;
	align-self: center;
	color: var(--text-muted);
}
.intro-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.85rem; color: var(--accent); }

/* Feature-Karten (Bild + Text) */
.feature-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin: 48px 0;
}
.feature-card {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	color: var(--text);
	box-shadow: var(--shadow);
}
.feature-card:hover { text-decoration: none; border-color: var(--accent); }
.feature-card__img { height: 130px; background-size: cover; background-position: center; }
.feature-card__body { padding: 16px; }
.feature-card__title { font-weight: 700; margin: 0 0 6px; color: var(--accent); }
.feature-card__text { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

.config-detail__category {
	display: inline-block;
	text-transform: uppercase;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--accent);
	margin-bottom: 6px;
}
.config-detail h1 { margin-top: 0; }

.config-list { list-style: none; padding: 0; }
.config-list li {
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
}

.static-page__content h2 { margin-top: 32px; }
.static-page__content h3 { margin-top: 24px; }
.static-page__content ul, .static-page__content ol { padding-left: 22px; }
.static-page__content li { margin: 6px 0; }
.static-page__content p { color: var(--text-muted); }

.download-gate { margin: 24px 0; text-align: center; }
.download-gate__box {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 24px;
	margin: 12px 0;
}
.download-gate__countdown { color: var(--text-muted); }
.download-gate__link {
	display: inline-block;
	background: var(--accent);
	color: #241000;
	font-weight: 700;
	padding: 12px 28px;
	border-radius: 8px;
}
.download-gate__link:hover { background: var(--accent-dark); text-decoration: none; }
.ad-slot { min-height: 90px; display: flex; align-items: center; justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elevated); }
.site-footer__grid {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 24px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 24px 20px;
}
.site-footer__group-title { color: var(--accent); font-size: 0.9rem; margin: 0 0 10px; }
.site-footer__group ul { list-style: none; padding: 0; margin: 0; }
.site-footer__group li { margin: 4px 0; }
.site-footer__group a { color: var(--text-muted); font-size: 0.85rem; }
.site-footer__group a:hover { color: var(--accent); }
.site-footer__bottom {
	border-top: 1px solid var(--border);
	text-align: center;
	padding: 18px 24px;
	color: var(--text-muted);
	font-size: 0.85rem;
}

@media (max-width: 720px) {
	.intro-section { grid-template-columns: 1fr; }
	.main-nav { display: none; }
}
