/* ============================================
	 Black Pants Studio — Static Site Stylesheet
	 ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background-color: #2d2d2d;
	color: #c0c0c0;
	line-height: 1.6;
	min-height: 100vh;
}

a {
	color: #f4ada5;
	text-decoration: none;
}

a:hover {
	color: #e0e0e0;
	text-decoration: underline;
}

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

h1, h2, h3, h4, h5, h6 {
	color: #e0e0e0;
	line-height: 1.3;
	margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
	margin-bottom: 1em;
}

ul, ol {
	margin-bottom: 1em;
	padding-left: 1.5em;
}

/* --- Container --- */
.container {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* --- Header --- */
.site-header {
	background-color: #111;
	padding: 1rem 0;
	border-bottom: 1px solid #333;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	position: relative;
}

.site-logo {
	color: #e0e0e0;
	display: flex;
	flex-direction: column;
}

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

.site-title {
	font-size: 1.4rem;
	font-weight: bold;
	color: #ffffff;
}

.site-tagline {
	font-size: 0.8rem;
	color: #808080;
}

.main-nav {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.main-nav a {
	color: #c0c0c0;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.main-nav a:hover {
	color: #e0e0e0;
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}

.main-nav a.active {
	color: #e0e0e0;
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}

/* --- Main Content --- */
.site-content {
	padding: 2rem 0;
	min-height: 60vh;
}

/* --- Page list (Projects, etc.) --- */
.page-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	margin-top: 2rem;
}

.page-item img {
	width: 100%;
	aspect-ratio: 460 / 220;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 0.5rem;
}

.page-item-thumb {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 0.5rem;
}

.page-item-thumb img {
	border-radius: 0;
	margin-bottom: 0;
	display: block;
}

.promo-game-badge {
	display: none;
	position: absolute;
	bottom: 10px;
	left: -38px;
	width: 120px;
	text-align: center;
	background-color: #f4ada5;
	color: #111;
	font-weight: 700;
	font-size: 0.7rem;
	line-height: 1.4;
	padding: 4px 0;
	transform: rotate(45deg);
	pointer-events: none;
}

.page-item h2 {
	font-size: 1.1rem;
	margin-bottom: 0.25rem;
}

.page-item h2 a {
	color: #e0e0e0;
}

.page-item h2 a:hover {
	color: #ffffff;
}

.page-item .platforms {
	font-size: 0.85rem;
	color: #808080;
	margin-bottom: 0.5rem;
}

.page-item .blog-header-img {
	aspect-ratio: 16 / 9;
}

/* --- Blog --- */
.blog-year {
	margin-top: 2rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #444;
}

.blog-post .post-meta {
	margin-bottom: 2rem;
	font-size: 0.9rem;
	color: #808080;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.blog-post .tag {
	background: #3a3a3a;
	padding: 0.15em 0.5em;
	border-radius: 3px;
	font-size: 0.8rem;
	margin-right: 0.3rem;
}

.blog-post img {
	display: block;
	margin: 2rem auto;
	align-content: center;
	width: 100%;        /* volle Breite */
	height: auto;
}

/* --- Game Product Pages --- */
.game-page .hero {
	margin-bottom: 2rem;
}

.game-page .hero img {
	width: 100%;
	border-radius: 4px;
}

.game-page .game-meta {
	display: flex;
	gap: 2rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.game-page .game-meta dt {
	font-weight: bold;
	color: #e0e0e0;
}

.game-page .game-meta dd {
	color: #808080;
	margin-bottom: 0.5rem;
}

.game-page .game-content {
	margin-bottom: 2rem;
}

.game-page h1,
.game-page h2 {
	text-align: center;
	margin-top: 3rem;
}

/* --- Features Grid --- */
.features-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	margin: 1.5rem 0 2rem;
}

.feature {
	flex: 0 1 calc(100% / var(--columns, 5) - 1.5rem);
	max-width: 280px;
}

.feature-head {
	font-weight: bold;
	color: #f4ada5;
	margin-bottom: 0.3em;
}

.feature-body {
	color: #c0c0c0;
	font-size: 0.95rem;
	line-height: 1.5;
}

.feature-note {
	font-size: 0.8rem;
	color: #808080;
	margin-top: 0.3em;
	font-style: italic;
}

/* --- Reviews --- */
.reviews {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	margin: 1.5rem 0 2rem;
}

.review {
	flex: 0 1 calc(100% / var(--columns, 3) - 1.5rem);
	max-width: 400px;
	border-left: 3px solid #f4ada5;
	padding: 0.75rem 1rem;
	margin: 0;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 0 4px 4px 0;
}

.review p {
	margin-bottom: 0.5em;
	font-style: italic;
}

.review footer {
	font-size: 0.85rem;
	color: #808080;
}

.review-score {
	display: inline-block;
	font-weight: bold;
	color: #f4ada5;
	margin-bottom: 0.3em;
	font-size: 1.1rem;
}

/* --- Credits --- */
.credits-list {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0.2rem 0.5rem;
	margin: 1.5rem auto 2rem;
	width: fit-content;
}

.credit-person {
	text-align: right;
	font-weight: bold;
}

.credit-role {
	text-align: left;
}

/* --- System Requirements --- */
.sysreqs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	margin: 1.5rem 0 2rem;
}

.sysreqs-platform {
	flex: 1 1 250px;
	max-width: 350px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 8px;
	padding: 1rem 1.5rem;
}

.sysreqs-platform h3 {
	margin: 0 0 0.75rem;
	text-align: center;
}

.sysreqs-platform dl {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.35rem 0.75rem;
}

.sysreqs-platform dt {
	font-weight: bold;
	white-space: nowrap;
}

.sysreqs-platform dd {
	margin: 0;
}

/* --- Awards --- */
.awards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	margin: 1.5rem 0 2rem;
	align-items: flex-start;
}

.award {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.award img {
	max-height: 80px;
	width: auto;
	border-radius: 4px;
}

.award-text {
	color: #c0c0c0;
	font-size: 0.95rem;
}

.award-laurel {
	display: grid;
	place-items: center;
	width: 200px;
}

.award-laurel > * {
	grid-area: 1 / 1;
}

.award-laurel img {
	width: 100%;
	height: auto;
	max-height: none;
	border-radius: 0;
}

.award-laurel .award-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 0.7rem;
	line-height: 1.3;
	padding: 1rem 2.5rem;
	max-width: 170px;
	color: #e0e0e0;
	gap: 0.3rem;
}

.award-laurel .award-vote {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.8;
	margin-top: -0.8rem;
}

.award-laurel .award-text strong {
	font-size: 1.05rem;
	margin: 0.15rem 0;
}

.game-page .screenshots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
	margin: 2rem 0;
}

.game-page .screenshots img {
	width: 100%;
	border-radius: 4px;
}

/* --- Gallery grid --- */
.gallery {
	display: grid;
	grid-template-columns: repeat(var(--columns, auto-fill), minmax(200px, 1fr));
	gap: 0.5rem;
	margin: 1.5rem 0;
}

figure.center {
	text-align: center;
}

figure.center img {
	margin-left: auto;
	margin-right: auto;
}

.gallery figure {
	margin: 0;
	cursor: pointer;
	overflow: hidden;
	border-radius: 4px;
	position: relative;
}

.gallery figure img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	transition: transform 0.2s;
}

.gallery figure:hover img {
	transform: scale(1.04);
}

.gallery figcaption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0,0,0,0.6);
	color: #fff;
	font-size: 0.8rem;
	padding: 0.3rem 0.5rem;
	opacity: 0;
	transition: opacity 0.2s;
}

.gallery figure:hover figcaption {
	opacity: 1;
}

/* --- Lightbox overlay --- */
.lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0,0,0,0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s;
}

.lightbox-overlay.lb-visible {
	opacity: 1;
	pointer-events: auto;
}

.lb-figure {
	max-width: 90vw;
	max-height: 90vh;
	margin: 0;
	text-align: center;
}

.lb-img {
	max-width: 90vw;
	max-height: 82vh;
	object-fit: contain;
	border-radius: 4px;
}

.lb-caption {
	color: #ccc;
	margin-top: 0.5rem;
	font-size: 0.95rem;
}

.lb-close, .lb-prev, .lb-next {
	position: fixed;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 2rem;
	padding: 0.5rem;
	z-index: 10000;
	opacity: 0.7;
	transition: opacity 0.15s;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover {
	opacity: 1;
}

.lb-close {
	top: 1rem;
	right: 1.5rem;
	font-size: 2.5rem;
}

.lb-prev {
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

.lb-next {
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

/* --- Buy Buttons --- */
.buy-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0;
}

.buy-button {
	display: inline-block;
}

.buy-button img {
	width: 90px;
	height: 66px;
	object-fit: contain;
}

.buy-button span {
	display: inline-block;
	background: #3a3a3a;
	color: #c0c0c0;
	padding: 0.5em 1em;
	border-radius: 4px;
	font-size: 0.85rem;
}

.buy-button:hover {
	text-decoration: none;
	opacity: 0.8;
}

/* --- Two-column layout (used by About, Store, etc.) --- */
.two-col {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

/* --- Content band (replaces WordPress [content_band]) --- */
.band {
	padding: 2rem 0;
}

.band-dark {
	background-color: #2d2d2d;
}

.band-darker {
	background-color: #3a3a3a;
}

/* --- FAQ / Accordion (replaces [accordion]) --- */
details {
	border-bottom: 1px solid #444;
	padding: 0.75rem 0;
}

details summary {
	cursor: pointer;
	font-weight: bold;
	color: #e0e0e0;
	padding: 0.25rem 0;
}

details summary:hover {
	color: #f4ada5;
}

details[open] summary {
	margin-bottom: 0.75rem;
}

/* --- Team member cards --- */
.team-member {
	display: flex;
	gap: 1rem;
	margin-bottom: 2rem;
	align-items: center;
}

.team-member img {
	width: 120px;
	min-width: 120px;
	height: auto;
	border-radius: 4px;
}

/* --- Video embed --- */
.video-embed {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	margin: 1.5rem 0;
}

.video-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* --- Footer --- */
.site-footer {
	background-color: #111;
	border-top: 1px solid #333;
	padding: 2.5rem 0;
	margin-top: 2rem;
	text-align: center;
}

.footer-social {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
}

.footer-social a {
	color: #808080;
	transition: color 0.2s;
}

.footer-social a:hover {
	color: #e0e0e0;
	text-decoration: none;
}

.footer-social svg {
	display: block;
}

.footer-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-bottom: 1.5rem;
}

.footer-links a {
	color: #c0c0c0;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.footer-links a:hover {
	color: #e0e0e0;
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}

.footer-links a:not(:last-child)::after {
	content: "/";
	margin-left: 0.25rem;
	color: #555;
	text-decoration: none;
	display: inline-block;
}

.footer-info {
	font-size: 0.8rem;
	color: #666;
}

.footer-info a {
	color: #808080;
}

.footer-info a:hover {
	color: #e0e0e0;
}

/* --- Burger menu toggle (hidden on desktop) --- */
.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.25rem;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	display: block;
	background: #c0c0c0;
	width: 24px;
	height: 2px;
	border-radius: 1px;
	position: relative;
	transition: transform 0.25s, opacity 0.15s;
}

.nav-toggle span::before,
.nav-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 24px;
}

.nav-toggle span::before {
	top: -7px;
}

.nav-toggle span::after {
	top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
	top: 0;
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
	top: 0;
	transform: rotate(-45deg);
}

/* --- Responsive --- */
@media (max-width: 640px) {
	.page-list {
		grid-template-columns: 1fr;
	}

	.two-col {
		grid-template-columns: 1fr;
	}

	.site-header .container {
		flex-wrap: wrap;
		justify-content: center;
	}

	.site-logo {
		order: 1;
	}

	.nav-toggle {
		display: block;
		order: 2;
		position: absolute;
		right: 1rem;
		top: 1rem;
	}

	.main-nav {
		order: 3;
		display: none;
		flex-direction: column;
		width: 100%;
		gap: 0;
		padding-top: 0.5rem;
	}

	.main-nav.open {
		display: flex;
	}

	.main-nav a {
		padding: 0.6rem 0;
		text-align: center;
		border-top: 1px solid #333;
	}

	.game-page .game-meta {
		flex-direction: column;
		gap: 0.5rem;
	}

	.gallery {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}

	.feature {
		flex-basis: calc(50% - 1.5rem);
		max-width: none;
	}

	.review {
		flex-basis: 100%;
		max-width: none;
	}
}

/* --- Store Page --- */
.store-page {
	max-width: 960px;
	margin: 0 auto;
}

.store-header {
	text-align: center;
	margin-bottom: -15px;
	position: relative;
	z-index: 1;
}

.store-entry {
	margin-bottom: 3rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid #444;
}

.store-entry:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.store-entry-row {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: flex-start;
}

.store-entry-image-col {
	flex: 0 0 auto;
	max-width: 480px;
}

.store-entry-image {
	max-width: 480px;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.store-entry-info {
	flex: 1 1 0;
	min-width: 400px;
}

.store-highlights {
	list-style: disc;
	padding: 0 0 0 1.25rem;
	margin: 0 0 1rem;
	color: #808080;
}

.store-highlights li {
	margin: 0.25rem 0;
}

.store-platforms {
	color: #808080;
	margin: 0 0 1rem;
}

@media (max-width: 640px) {
	.store-entry-row {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.store-entry-info .buy-buttons {
		justify-content: center;
	}
}

.store-widgets {
	margin: 1rem 0 0;
	border-bottom: none;
}

.store-widgets-content {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
}

.store-widgets-inner {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-top: 0;
	transition: padding-top 0.3s ease;
}

details[open].store-widgets .store-widgets-inner {
	padding-top: 1rem;
}

.store-widget {
	width: 100%;
	border: 0;
}

.store-widget-steam {
	height: 190px;
}

.store-widget-itch {
	height: 167px;
}

.store-widget-humble {
	height: 328px;
}

/* --- Promo Banner --- */
.promo-banner {
	display: none;
}

.promo-banner.promo-active {
	display: block;
	background-color: #3a3a3a;
	border: 2px solid #f4ada5;
	border-radius: 6px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 2rem;
	text-align: center;
}

.promo-banner-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.promo-banner-image {
	max-height: 200px;
	width: auto;
	border-radius: 4px;
}

.promo-banner-title {
	font-size: 1.4rem;
	color: #e0e0e0;
}

.promo-banner-title-link {
	color: #fff;
	text-decoration: none;
}

.promo-banner-title-link:hover {
	color: #f4ada5;
}

.promo-days-left {
	font-size: 0.9rem;
	color: #f4ada5;
	font-weight: 400;
	margin-left: 0.3em;
}

.promo-banner-games {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1rem;
}

.promo-banner-game {
	color: #f4ada5;
	font-weight: 600;
}

.promo-banner-game:hover {
	color: #e0e0e0;
}

.promo-badge {
	display: inline-block;
	background-color: #f4ada5;
	color: #111;
	font-weight: 700;
	font-size: 0.8em;
	padding: 0.1em 0.45em;
	border-radius: 3px;
	margin-left: 0.4em;
	vertical-align: middle;
}

@media (max-width: 640px) {
	.promo-banner.promo-active {
		padding: 1rem;
	}

	.promo-banner-title {
		font-size: 1.2rem;
	}
}

/* --- Press Kits Grid --- */
.press-kits {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 2rem;
	text-align: center;
}

@media (min-width: 768px) {
	.press-kits {
		grid-template-columns: 1fr 1fr;
	}
}

.press-kit-item h4 {
	margin: 2rem 0 0.5rem;
}

.press-kit-item a {
	display: inline-block;
}

.press-kit-item img {
	max-width: 300px;
	height: auto;
	display: block;
	margin: 0 auto;
}
