/*
	niviangames.com
	Eigenständiges PHP/HTML-Theme (Ersatz für das WordPress-Theme "WP One Pager")
*/

/* Reset & Grundlagen
--------------------------------------------- */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
	box-sizing: border-box;
}

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

body {
	margin: 0;
	color: #333;
	background: #f2f0ef;
}

body,
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: Ubuntu, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

img {
	height: auto;
	max-width: 100%;
	border-style: none;
}

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

a {
	color: #333;
}

a:visited {
	color: #333;
}

a:hover,
a:focus,
a:active {
	color: #000;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.has-text-align-center {
	text-align: center;
}

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
	background: #fdfdfd;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation li {
	position: relative;
	margin: 0 1px;
}

.main-navigation a {
	display: block;
	text-decoration: none;
	border: none !important;
	background: #fff;
	padding: 1rem 2rem;
	color: #050505;
	border-right: 1px solid #b3b3b3;
}

.main-navigation a:hover {
	background: #000;
	color: #fff;
}

.main-navigation li:last-of-type a {
	border-right: none;
}

.main-navigation li.current-menu-item > a {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: #bbb;
}

.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 1em) {
	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

@media (max-width: 500px) {
	.main-navigation ul li {
		flex-grow: 1;
		text-align: center;
	}

	.main-navigation ul li a {
		padding: 0.75rem 5px;
	}
}

/* Hero
--------------------------------------------- */
.hero-container {
	background: center top url(../img/hero-bg.jpg) no-repeat;
	background-size: cover;
	background-color: #eee;
	height: 500px;
	border-top: 1px solid #fff;
	margin: 0;
	text-align: center;
}

.hero-container .hero {
	max-width: 700px;
	margin: 0 auto;
	padding: 1rem;
}

.hero-container .hero h1 {
	margin-top: 0;
}

@media (min-width: 501px) {
	.hero-container .hero {
		position: relative;
		top: 50%;
		transform: perspective(1px) translateY(-50%);
	}
}

@media (max-width: 500px) {
	.hero-container {
		height: auto;
		padding-top: 2rem;
		padding-bottom: 2rem;
	}
}

/* Buttons
--------------------------------------------- */
.onepager-button,
.onepager-button-v2 {
	border: 2px solid #000;
	border-radius: 0.75rem;
	padding: 0.5rem 1rem;
	display: inline-block;
	text-decoration: none;
	margin: 5px;
}

.onepager-button {
	background: #000;
	color: #fff;
}

.onepager-button-v2 {
	color: #000;
}

/* Seiteninhalt
--------------------------------------------- */
.site {
	max-width: 1280px;
	margin: -60px auto 50px;
	padding: 2rem;
	background: #f2f0ef;
	border-radius: 8px 8px 0 0;
}

.site ol,
.site ul {
	margin-left: 0;
}

@media (max-width: 500px) {
	.site {
		margin-top: 0;
		border-radius: 0;
	}
}

.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.the-content-container {
	margin-bottom: 3rem;
}

.entry-title {
	margin-top: 0;
}

/* Startseite: Intro & Games/Apps-Split
--------------------------------------------- */
.intro-lead {
	font-size: 1.25rem;
	margin-bottom: 2rem;
}

.home-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.home-split-col {
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 0.75rem;
	padding: 1.5rem;
}

.home-split-col h2 {
	margin-top: 0;
	text-align: center;
}

.home-split-col .product-grid {
	grid-template-columns: 1fr;
}

.home-split-more {
	text-align: center;
	margin-bottom: 0;
}

.home-split-more a {
	text-decoration: none;
	font-weight: 700;
}

@media (max-width: 700px) {
	.home-split {
		grid-template-columns: 1fr;
	}
}

/* Games-/Apps-Übersicht
--------------------------------------------- */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
	margin-bottom: 1.5em;
}

.product-card {
	display: flex;
	flex-direction: column;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 0.75rem;
	overflow: hidden;
	text-decoration: none;
	color: #333;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
	color: #333;
}

.product-card-icon {
	width: 96px;
	height: 96px;
	border-radius: 1.25rem;
	margin: 1.5rem auto 0;
	display: block;
}

.product-card-body {
	padding: 1rem 1.5rem 1.5rem;
	text-align: center;
}

.product-card-body h2 {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}

.product-card-body p {
	margin-bottom: 1rem;
	color: #555;
}

.product-card-link {
	pointer-events: none;
}

/* Detailseite (Game/App)
--------------------------------------------- */
.product-detail-back {
	margin-bottom: 1.5rem;
}

.product-detail-back a {
	text-decoration: none;
}

.product-detail-header {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.product-detail-icon {
	width: 96px;
	height: 96px;
	border-radius: 1.25rem;
	flex-shrink: 0;
}

.product-detail-tagline {
	color: #555;
	margin-bottom: 1rem;
}

.product-detail-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
	margin: 0 0 2rem;
	padding: 1rem 1.5rem;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 0.75rem;
}

.product-detail-meta dt {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #888;
	font-weight: 400;
}

.product-detail-meta dd {
	margin: 0.15rem 0 0;
	font-weight: 700;
}

.product-screenshots {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	padding-bottom: 1rem;
	margin-bottom: 1.5em;
	scroll-snap-type: x proximity;
}

.product-screenshots img {
	height: 260px;
	width: auto;
	max-width: none;
	border-radius: 0.5rem;
	scroll-snap-align: start;
	flex-shrink: 0;
}

.product-detail-cta {
	text-align: center;
}

/* Footer
--------------------------------------------- */
.site-footer-bottom {
	padding: 1rem;
	background: #f2f0ef;
	color: #999;
	border-top: 1px solid #e2e0df;
	text-align: center;
}

.site-footer-bottom a {
	color: #999;
	text-decoration: none;
}
