/* Robot Turney – Website im Stil des Hauptmenüs: dunkle Stahlwand, Kenney-Bleche (eingefärbt von
   client/tests/site_images.gd), gelbe Akzente und Warnstreifen. */

@font-face { font-family: "Kenney Future"; src: url("assets/fonts/Kenney Future.ttf"); font-display: swap; }
@font-face { font-family: "Kenney Future Narrow"; src: url("assets/fonts/Kenney Future Narrow.ttf"); font-display: swap; }

:root {
	--wall: #15171c;
	--wall-dark: #0d0e12;
	--text: #eef0f4;
	--muted: #a9b0bf;
	--yellow: #ffc71f;
	--dark: #1a1a1f;
	--split: 36%;
	--hazard: repeating-linear-gradient(-45deg, var(--yellow) 0 11px, #141417 11px 22px);
	--title: "Kenney Future", "Arial Black", sans-serif;
	--narrow: "Kenney Future Narrow", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
	margin: 0;
	color: var(--text);
	background: var(--wall);
	font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	-webkit-font-smoothing: antialiased;
}
/* dezente Plattenstruktur der Stahlwand */
body::before {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background: url("assets/ui/glass.png") 0 0 / 96px 96px; opacity: .022;
}
a { color: var(--yellow); }
img { max-width: 100%; display: block; }
b { color: #fff; }

/* --- Bausteine --------------------------------------------------------------------- */

.hazard { height: 12px; background: var(--hazard); }
.hazard-wide { height: 10px; opacity: .9; }

.panel {
	border: 14px solid transparent;
	border-image: url("assets/ui/panel.png") 12 fill / 14px stretch;
	padding: 10px 12px;
}

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 6px 22px 10px;
	font: 15px var(--narrow); letter-spacing: .5px; text-transform: uppercase;
	color: var(--text); text-decoration: none; cursor: pointer; white-space: nowrap;
	border: 12px solid transparent;
	border-image: url("assets/ui/button.png") 10 12 12 10 fill / 10px 12px 12px 10px stretch;
	background: none;
	transition: transform .08s;
}
.btn:hover, .btn:focus-visible { border-image-source: url("assets/ui/button_hover.png"); color: var(--dark); outline: none; }
.btn:active { transform: translateY(2px); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-accent { border-image-source: url("assets/ui/button_hover.png"); color: var(--dark); }
.btn-accent:hover, .btn-accent:focus-visible { filter: brightness(1.12); }
.btn-small { min-height: 40px; padding: 2px 14px 6px; font-size: 13px; }
.btn-big { min-height: 64px; padding: 8px 40px 12px; font-size: 20px; }

.title {
	font: 30px var(--title); color: var(--yellow); letter-spacing: 1px; margin: 0 0 8px;
	text-shadow: 0 3px 0 #000;
}
h3 { font: 16px var(--title); letter-spacing: .5px; margin: 4px 0 8px; color: #fff; }
.intro { color: var(--muted); max-width: 760px; margin: 0 0 28px; }
.tag {
	font: 11px var(--narrow); color: var(--dark); background: var(--yellow);
	padding: 1px 7px 3px; border-radius: 3px; vertical-align: middle; margin-left: 6px;
}

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

.topbar {
	position: sticky; top: 0; z-index: 10;
	display: flex; align-items: center; gap: 24px;
	padding: 8px clamp(16px, 3vw, 40px);
	background: rgba(13, 14, 18, .92); backdrop-filter: blur(6px);
	border-bottom: 3px solid #000;
	box-shadow: 0 3px 0 rgba(255, 199, 31, .35);
}
.brand { font: 20px var(--title); color: var(--yellow); text-decoration: none; letter-spacing: 1px; white-space: nowrap; }
.topbar nav { display: flex; gap: 22px; margin-left: auto; }
.topbar nav a { font: 14px var(--narrow); color: var(--muted); text-decoration: none; text-transform: uppercase; }
.topbar nav a:hover { color: var(--yellow); }

/* --- Hero (wie das Hauptmenü) -------------------------------------------------------------- */

.hero {
	display: grid; grid-template-columns: var(--split) 1fr;
	height: clamp(560px, calc(100vh - 60px), 900px); height: clamp(560px, calc(100svh - 60px), 900px);
	background: var(--wall);
}
.hero-battle { position: relative; overflow: hidden; background: #0c0d11; }
.hero-battle img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; animation: battle 12s infinite;
}
.hero-battle img:nth-child(2) { animation-delay: 3s; }
.hero-battle img:nth-child(3) { animation-delay: 6s; }
.hero-battle img:nth-child(4) { animation-delay: 9s; }
@keyframes battle { 0% { opacity: 0; } 6% { opacity: 1; } 25% { opacity: 1; } 31% { opacity: 0; } 100% { opacity: 0; } }
/* Warnstreifen an der Kante, wie im Menü */
.hero-battle::after {
	content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 14px; background: var(--hazard);
}
.hero-wall {
	display: flex; flex-direction: column; justify-content: center;
	padding: 40px clamp(24px, 5vw, 80px);
}
.logo {
	font: clamp(40px, 6.4vw, 96px)/1 var(--title); color: var(--yellow); margin: 0;
	letter-spacing: 2px;
	text-shadow: 0 4px 0 #000, 0 0 40px rgba(255, 199, 31, .25);
}
.logo-sub { font: clamp(14px, 1.6vw, 22px) var(--title); color: #bfc6d6; margin: 10px 0 16px; letter-spacing: 1px; }
.hero-wall .hazard { max-width: 640px; margin-bottom: 26px; }
.lead { font-size: 19px; max-width: 640px; margin: 0 0 28px; color: #d7dbe4; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; margin-top: 16px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 34px 0 0; color: var(--muted); }
.facts b { font: 18px var(--title); color: var(--yellow); margin-right: 4px; }

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

main { display: block; }
.section { max-width: 1180px; margin: 0 auto; padding: 72px clamp(16px, 3vw, 40px); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; }
.step .num {
	position: absolute; top: -6px; right: 0; font: 54px var(--title); color: rgba(255, 199, 31, .22);
}
.step p, .feature p { margin: 0; color: #d3d7df; font-size: 16px; }
.shot { margin: 28px 0 0; }
.shot img { width: 100%; border-radius: 4px; }
.shot figcaption { color: var(--muted); font-size: 14px; padding-top: 8px; }

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

/* Roboter */
.robots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.robot { display: flex; flex-direction: column; }
.robot-img {
	aspect-ratio: 1; margin: -6px -6px 6px;
	background: radial-gradient(circle at 50% 62%, rgba(255, 255, 255, .10), transparent 62%), #23262d;
	border-radius: 4px; overflow: hidden;
}
.robot-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.robot:hover .robot-img img { transform: scale(1.05) rotate(-2deg); }
.robot h3 { font-size: 20px; color: var(--yellow); margin-bottom: 2px; }
.robot .cls { font: 13px var(--narrow); color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.stat { background: #1b1d23; border-radius: 4px; padding: 4px 8px; text-align: center; }
.stat span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.stat strong { font: 17px var(--title); color: #fff; }
.robot .parts { font-size: 14px; color: #c8ccd6; margin: 0; }

/* Befehlskarten – wie im Spiel: helle Karte, farbiger Streifen links */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.card {
	position: relative; color: var(--dark);
	border: 17px solid transparent; border-width: 17px 10px 8px 10px;
	border-image: url("assets/ui/card.png") 17 10 8 10 fill / 17px 10px 8px 10px stretch;
	padding: 0 4px 2px 12px;
}
.card:hover { border-image-source: url("assets/ui/card_hover.png"); }
.card::before {
	content: ""; position: absolute; left: -4px; top: 0; bottom: 0; width: 5px; border-radius: 2px; background: var(--c, #8a8f99);
}
.card h4 { margin: 0; font-size: 15px; }
.card .ini { float: right; font: 12px var(--narrow); color: #6a4d00; background: rgba(255, 199, 31, .45); padding: 0 6px 2px; border-radius: 3px; }
.card p { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: #2b2d34; }

/* Spiel im Browser */
.player { position: relative; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; background: #000; }
.player .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(.8); }
.player-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.player-start .hint { color: var(--muted); font-size: 14px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0d0e12; }

/* Fuß */
.footer { margin-top: 40px; background: var(--wall-dark); }
.footer-inner {
	max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 40px) 40px;
	display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
	color: var(--muted); font-size: 14px;
}

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

@media (max-width: 980px) {
	.steps, .grid, .robots { grid-template-columns: repeat(2, 1fr); }
	.topbar nav { display: none; }
	.topbar .btn { margin-left: auto; }
}
@media (max-width: 720px) {
	.hero { grid-template-columns: 1fr; height: auto; }
	.hero-battle { height: 52vw; min-height: 240px; }
	.hero-battle::after { top: auto; left: 0; width: auto; height: 12px; }
	.hero-battle img { object-position: 50% 40%; }
	.steps, .grid, .grid-2, .robots { grid-template-columns: 1fr; }
	.section { padding-top: 52px; padding-bottom: 52px; }
	.title { font-size: 24px; }
	.lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-battle img { animation: none; }
	.hero-battle img:first-child { opacity: 1; }
}
