/*
Theme Name: Brettxpedition
Theme URI: https://www.instagram.com/brettxpedition
Author: Stefan Roehl
Description: Bildstarkes Brettspiel-Theme im Instagram-Look. Startseite als 4:5-Raster (1080 × 1350 px), Einzelseiten mit Spieldetails und Bewertung, Über-mich-, Kontakt- und Rechtsseiten. Inklusive Demo-Import mit Füllbildern. Selbst gehostete Schriften (DSGVO-freundlich), Hell-/Dunkelmodus.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brettxpedition
Tags: photography, portfolio, blog, grid-layout, custom-menu, featured-images, dark-mode
*/

/* ---------- Schriften (lokal, keine externen Anfragen) ---------- */
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- Design-Tokens ---------- */
:root {
	--bg: #f5f2ec;
	--surface: #fffdf9;
	--surface-2: #ebe6dd;
	--text: #1c1a17;
	--muted: #6b655c;
	--faint: #a39c90;
	--line: #ddd6ca;
	--accent: #c2502b;
	--accent-ink: #ffffff;
	--accent-soft: #f3dfd5;
	--star: #e0a526;

	--font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;

	--text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
	--text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
	--text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
	--text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
	--text-xl: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
	--text-2xl: clamp(2rem, 1.6rem + 2vw, 3.25rem);

	--radius: 14px;
	--radius-sm: 8px;
	--gap: 3px;
	--max: 1440px;
	--pad: clamp(1rem, 0.6rem + 2vw, 2.5rem);
	--header-h: 64px;
	--ease: cubic-bezier(.2,.7,.2,1);
	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #141311;
	--surface: #1d1b18;
	--surface-2: #2a2723;
	--text: #f1ece4;
	--muted: #a8a196;
	--faint: #6f695f;
	--line: #34302b;
	--accent: #e7734d;
	--accent-ink: #1a0f0a;
	--accent-soft: #3a2219;
	color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	transition: background-color .3s var(--ease), color .3s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 999; background: var(--surface); padding: .5rem 1rem; border-radius: var(--radius-sm); }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand .x { color: var(--accent); }
.brand img { height: 36px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.main-nav a { display: block; padding: .5rem .85rem; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: var(--text-sm); color: var(--muted); }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: .25rem; }
.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
	border: 0; background: transparent; color: var(--text); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }
.header-search { border-top: 1px solid var(--line); background: var(--bg); }
.header-search[hidden] { display: none; }
.header-search .wrap { display: flex; align-items: center; gap: .75rem; padding-top: .75rem; padding-bottom: .75rem; }
.header-search .search-form { flex: 1; max-width: none; margin: 0; }
.header-search .search-form input { flex: 1; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

@media (max-width: 760px) {
	.menu-toggle { display: inline-grid; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg);
		border-bottom: 1px solid var(--line); padding: .5rem var(--pad) 1rem;
		transform: translateY(-8px); opacity: 0; pointer-events: none;
		transition: opacity .2s var(--ease), transform .2s var(--ease);
	}
	.admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .main-nav { opacity: 1; transform: none; pointer-events: auto; }
	.main-nav ul { flex-direction: column; }
	.main-nav a { font-size: var(--text-base); padding: .75rem 1rem; }
}

/* ---------- Profil (Startseite) ---------- */
.profile { padding-block: clamp(1.75rem, 1rem + 3vw, 3.5rem) clamp(1.25rem, 1rem + 1vw, 2rem); }
.profile-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 1rem + 3vw, 4rem); align-items: center; max-width: 960px; margin-inline: auto; }
.avatar {
	width: clamp(88px, 60px + 10vw, 168px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
	padding: 4px; background: conic-gradient(from 200deg, var(--accent), var(--star), var(--accent));
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--bg); }
.profile-name { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .75rem; }
.profile-name h1 { font-size: var(--text-xl); margin: 0; }
.handle { color: var(--muted); font-size: var(--text-sm); }
.stats { display: flex; gap: clamp(1rem, .5rem + 2vw, 2.5rem); list-style: none; padding: 0; margin: 0 0 .9rem; font-size: var(--text-sm); color: var(--muted); }
.stats strong { color: var(--text); font-weight: 700; font-size: var(--text-base); margin-right: .25rem; font-variant-numeric: tabular-nums; }
.bio { max-width: 52ch; color: var(--text); margin-bottom: 1rem; white-space: pre-line; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn {
	display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 10px;
	font-weight: 700; font-size: var(--text-sm); text-decoration: none; border: 1px solid transparent; cursor: pointer;
	transition: transform .15s var(--ease), background-color .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { color: var(--text); background: var(--line); }

.btn-short { display: none; }
@media (max-width: 560px) {
	.profile-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.profile-name, .stats, .btn-row { justify-content: center; }
	.bio { margin-inline: auto; }
	/* Alle Knöpfe in einer Reihe */
	.btn-row { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 26rem; }
	.btn-row:has(> :nth-child(3):last-child) { grid-template-columns: 1fr 1fr 1fr; }
	.btn-row .btn { justify-content: center; padding-inline: .5rem; white-space: nowrap; gap: .35rem; }
	.btn-row .btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
	.btn-row .btn-long { display: none; }
	.btn-row .btn-short { display: inline; }
}
@media (max-width: 360px) {
	.btn-row .btn { font-size: .8rem; padding-inline: .4rem; }
}

/* ---------- Kategorie-Tabs ---------- */
.tabs { border-top: 1px solid var(--line); margin-bottom: var(--gap); }
.tabs ul { list-style: none; margin: 0; padding: 0 var(--pad); display: flex; justify-content: flex-start; gap: clamp(.5rem, 2vw, 2.5rem); overflow-x: auto; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs li:first-child { margin-left: auto; }
.tabs li:last-child { margin-right: auto; }
.tabs a {
	display: inline-flex; align-items: center; gap: .4rem; padding: .9rem .25rem; white-space: nowrap;
	font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	text-decoration: none; color: var(--muted); border-top: 2px solid transparent; margin-top: -1px;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-top-color: var(--text); }
.tabs svg { width: 14px; height: 14px; }

/* ---------- 4:5-Raster ---------- */
.grid-wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
@media (max-width: 600px) { .grid-wrap { padding-inline: 0; } }
.bx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px)  { .bx-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .bx-grid { grid-template-columns: repeat(var(--cols, 5), 1fr); } }

.tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.tile a { display: block; width: 100%; height: 100%; color: #fff; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile .badge {
	position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; color: #fff;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); z-index: 2;
}
.tile .overlay {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem;
	padding: clamp(.75rem, 1.5vw, 1.25rem);
	background: linear-gradient(to top, rgba(10,8,6,.82) 0%, rgba(10,8,6,.35) 45%, rgba(10,8,6,0) 70%);
	opacity: 0; transition: opacity .3s var(--ease);
}
.tile .overlay .cat { font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.tile .overlay .title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); line-height: 1.1; }
.tile a:hover img, .tile a:focus-visible img { transform: scale(1.04); }
.tile a:hover .overlay, .tile a:focus-visible .overlay { opacity: 1; }
.tile a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 0; }
@media (hover: none) {
	/* Touch-Geräte: kompakte, immer sichtbare Zeile mit Titel und Sternen */
	.tile .overlay { opacity: 1; gap: .15rem; padding: .5rem .5rem .45rem; justify-content: flex-end; background: linear-gradient(to top, rgba(10,8,6,.85) 0%, rgba(10,8,6,.45) 55%, rgba(10,8,6,0) 100%); }
	.tile .overlay .cat { display: none; }
	.tile .overlay .title { font-size: clamp(.72rem, 2.6vw, .95rem); line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.tile .overlay .stars { font-size: clamp(.6rem, 2.2vw, .8rem); }
	.tile a:hover img { transform: none; }
}

/* ---------- Sterne ---------- */
.stars { position: relative; display: inline-block; width: max-content; flex: 0 0 auto; align-self: flex-start; font-size: 1rem; line-height: 1; letter-spacing: 0; color: color-mix(in srgb, currentColor 28%, transparent); }
.stars::before { content: "★★★★★"; }
.stars span { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--star); }
.stars span::before { content: "★★★★★"; }

/* ---------- Mehr laden / Pagination ---------- */
.load-more-wrap { display: flex; justify-content: center; padding: 2.5rem 1rem 1rem; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; padding: 2rem 1rem; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 .75rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: var(--text-sm); }
.pagination .page-numbers.current { background: var(--text); color: var(--bg); }
.pagination a.page-numbers:hover { background: var(--surface-2); color: var(--text); }
.js .pagination.has-loadmore { display: none; }
.no-js .load-more-wrap { display: none; }

/* ---------- Archiv-Kopf ---------- */
.archive-head { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) 1.25rem; text-align: center; }
.archive-head .eyebrow, .finder-head .eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.archive-head h1 { font-size: var(--text-2xl); margin: 0 0 .5rem; }
.archive-head p { color: var(--muted); max-width: 60ch; margin-inline: auto; }
.archive-head .archive-link { margin-top: .5rem; }
.archive-head .archive-link a { display: inline-block; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: var(--text-sm); font-weight: 700; text-decoration: none; }
.archive-head .archive-link a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Einzelansicht (Rezension) ---------- */
.review { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem); }
.review-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.review-media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.admin-bar .review-media { top: calc(var(--header-h) + 32px + 1.5rem); }
.review-media .frame { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: 0 30px 60px -30px rgba(40,25,10,.45); }
.review-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.review-body { max-width: 62ch; }
.chip { display: inline-block; padding: .3rem .7rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.chip:hover { color: var(--accent); filter: brightness(.97); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-soft { background: var(--surface-2, rgba(0,0,0,.05)); color: var(--muted, inherit); }
.ig-note { color: var(--muted, inherit); margin-top: 1.5rem; }
.review-title { font-size: var(--text-2xl); margin: .9rem 0 .5rem; text-wrap: balance; }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; color: var(--muted); font-size: var(--text-sm); margin-bottom: 1.5rem; }
.review-meta .stars { font-size: 1.15rem; color: var(--line); }
.review-meta .score { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

.facts { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 2rem; }
.facts div { flex: 1 1 130px; background: var(--surface); padding: .85rem 1rem; }
.facts dt { font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: .2rem; }
.facts dd { margin: 0; font-weight: 700; }
.facts dd a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.facts dd a:hover { color: var(--accent); }

.entry-content { font-size: var(--text-base); }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: var(--text-xl); margin-top: 1.6em; }
.entry-content h3 { font-size: var(--text-lg); margin-top: 1.4em; }
.entry-content blockquote { margin: 1.5em 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--accent); font-size: var(--text-lg); font-weight: 500; }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; }
.entry-content li + li { margin-top: .35em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .wp-block-gallery img, .entry-content .gallery img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: 100%; }
.entry-content .wp-block-gallery.has-nested-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.entry-content .wp-block-gallery.has-nested-images.columns-2 { grid-template-columns: repeat(2, 1fr); }
.entry-content .wp-block-gallery.has-nested-images.columns-4 { grid-template-columns: repeat(4, 1fr); }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image { width: auto !important; margin: 0 !important; }
.entry-content .wp-block-image figcaption, .entry-content figcaption { color: var(--muted); font-size: var(--text-sm); text-align: center; }

.verdict { margin-top: 2rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.verdict h2 { font-size: var(--text-lg); margin: 0 0 .4rem; }
.verdict p:last-child { margin: 0; }
.pro-con { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.pro-con > div { padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pro-con h3 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .5rem; }
.pro-con ul { margin: 0; padding-left: 1.1rem; }
@media (max-width: 520px) { .pro-con { grid-template-columns: 1fr; } }

.review-foot { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-right: auto; }
.tags a { font-size: var(--text-sm); color: var(--muted); text-decoration: none; }
.tags a:hover { color: var(--accent); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(2rem, 1rem + 3vw, 4rem); border-top: 1px solid var(--line); padding-top: 1.5rem; }
.post-nav a { text-decoration: none; display: flex; align-items: center; gap: .75rem; padding: .5rem; margin: -.5rem; border-radius: var(--radius); transition: background .2s; }
.post-nav a:hover, .post-nav a:focus-visible { background: var(--surface-2); }
.post-nav-thumb { flex: 0 0 56px; width: 56px; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.post-nav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-nav-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.post-nav small { display: block; color: var(--muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.post-nav strong { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.15; }
.post-nav .stars { font-size: .8rem; }
.post-nav .next { text-align: right; }
.post-nav .next a { flex-direction: row-reverse; justify-content: flex-start; }
.post-nav .next .post-nav-text { align-items: flex-end; }
@media (max-width: 600px) {
	.post-nav strong { font-size: var(--text-base); }
	.post-nav-thumb { flex-basis: 44px; width: 44px; }
}

.related { padding-block: clamp(2rem, 1rem + 3vw, 4rem) 0; }
.related h2 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-align: center; margin-bottom: 1.25rem; }
.related .bx-grid { --cols: 5; }

@media (max-width: 860px) {
	.review-grid { grid-template-columns: 1fr; }
	.review-media { position: static; max-width: 560px; margin-inline: auto; width: 100%; }
}

/* ---------- Seiten (Über mich, Kontakt, Impressum ...) ---------- */
.page-wrap { padding-block: clamp(2rem, 1rem + 3vw, 4rem); }
.page-plain { max-width: 72ch; margin-inline: auto; }
.page-plain h1 { font-size: var(--text-2xl); margin-bottom: 1.25rem; }
.page-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 1rem + 4vw, 5rem); align-items: center; }
.page-split .frame { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.page-split .frame img { width: 100%; height: 100%; object-fit: cover; }
.page-split h1 { font-size: var(--text-2xl); }
@media (max-width: 860px) { .page-split { grid-template-columns: 1fr; } .page-split .frame { max-width: 480px; } }

.contact-card { display: grid; gap: .75rem; margin-top: 1.5rem; }
.contact-card a { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.contact-card a:hover { border-color: var(--accent); color: var(--text); }
.contact-card svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.contact-card small { display: block; font-weight: 400; color: var(--muted); }

/* Formulare (z. B. Contact Form 7, WPForms) */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], textarea, select {
	width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius-sm); padding: .7rem .9rem;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
input[type="submit"], button[type="submit"] { font: inherit; font-weight: 700; background: var(--accent); color: var(--accent-ink); border: 0; padding: .7rem 1.25rem; border-radius: 10px; cursor: pointer; }

.search-form { display: flex; gap: .5rem; max-width: 480px; margin: 1rem auto 0; }

/* ---------- Leere Zustände / 404 ---------- */
.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty h1, .empty h2 { color: var(--text); }
.demo-note { max-width: 720px; margin: 0 auto 1rem; padding: .85rem 1.1rem; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); font-size: var(--text-sm); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(3rem, 2rem + 4vw, 6rem); border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: var(--text-sm); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer a { text-decoration: none; }

/* ---------- WordPress-Klassen ---------- */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { color: var(--muted); font-size: var(--text-sm); }
.sticky, .bypostauthor, .gallery-caption {}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Lightbox (Bilder in Rezensionen groß ansehen) */
.lb-trigger { cursor: zoom-in; }
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(10, 8, 6, .94); animation: lb-fade .2s ease; }
.lightbox[hidden] { display: none; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { margin: 0; max-width: calc(100vw - 2rem); max-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; }
.lightbox img { display: block; max-width: calc(100vw - 2rem); max-height: calc(100vh - 4rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); transition: opacity .2s; }
.lightbox img.is-loading { opacity: .4; }
.lightbox figcaption { color: rgba(255,255,255,.7); font-size: var(--text-sm); letter-spacing: .04em; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255,255,255,.28); outline: none; }
.lightbox button[hidden] { display: none; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
	.lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 1rem; transform: none; }
	.lightbox .lb-prev { left: 1rem; }
	.lightbox .lb-next { right: 1rem; }
	.lightbox img { max-height: calc(100vh - 6rem); }
}

/* Bewertungs-Einordnung unter den Sternen */
.rating-word { margin: -.25rem 0 1rem; color: var(--muted); font-size: var(--text-sm); line-height: 1.4; }
.rating-word strong { color: var(--text); }
.rating-help { display: inline-flex; align-items: center; gap: .25rem; margin-left: .35rem; color: var(--muted); text-decoration: none; border-bottom: 1px dotted currentColor; vertical-align: baseline; }
.rating-help svg { width: .95em; height: .95em; }
.rating-help:hover, .rating-help:focus-visible { color: var(--accent); }

/* Spielefinder */
.finder { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(2rem, 1rem + 3vw, 4rem); }
.finder-head { max-width: 46rem; margin: 0 auto 1.75rem; text-align: center; }
.finder-head h1 { font-family: var(--font-display); font-size: var(--text-2xl); margin: .25rem 0 .75rem; }
.finder-head .entry-content p { color: var(--muted); }
.finder-filters { display: grid; gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 1.5rem; }
.finder-filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.finder-filters legend { float: left; width: 100%; margin-bottom: .4rem; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
@media (min-width: 900px) {
	.finder-filters { grid-template-columns: 1fr 1fr; }
	.finder-filters legend { width: 7.5rem; margin: 0; }
}
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-block; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: var(--text-sm); font-weight: 600; transition: all .15s; }
.pill input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill:hover span { border-color: var(--muted); }
.finder-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.finder-count { margin: 0; font-weight: 700; }
.finder-count span { font-family: var(--font-display); font-size: var(--text-xl); margin-right: .15rem; }
.finder-grid .tile[hidden] { display: none; }
.finder-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.finder-empty[hidden] { display: none; }

/* BGG-Zeile unter den Fakten */
.bgg-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; margin: -.5rem 0 1.25rem; padding: .6rem .85rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: var(--text-xs); color: var(--muted); line-height: 1.5; }
.bgg-line .bgg-label { flex-basis: 100%; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bgg-line b { color: var(--text); font-weight: 600; }
.bgg-line em { font-style: normal; }
.bgg-line .sep { opacity: .5; }
.bgg-line .bgg-link { flex-basis: 100%; color: var(--muted); text-decoration: none; }
.bgg-line .bgg-link:hover { text-decoration: underline; }
.bgg-line .bgg-link:hover { color: var(--accent); }

/* Bestenliste */
.bestlist { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(2rem, 1rem + 3vw, 4rem); }
.best-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 1.25rem; }
.best-section { margin-top: clamp(1.75rem, 1rem + 2vw, 3rem); }
.best-section[hidden] { display: none; }
.best-section h2 { font-family: var(--font-display); font-size: var(--text-xl); margin: 0 0 .25rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.best-section h2 small { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.best-section .sub { color: var(--muted); margin: 0 0 1rem; font-size: var(--text-sm); }
.best-pool[hidden] { display: none; }
.best-podium, .best-list, .best-grid, .best-ofkind { list-style: none; margin: 0; padding: 0; }
.best-item a { display: block; color: inherit; text-decoration: none; }
.best-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.best-stars .stars { font-size: .85rem; }
.best-stars b { font-family: var(--font-display); margin-left: .25rem; }
.best-cat { display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.best-title { display: block; font-family: var(--font-display); line-height: 1.1; }
.best-verdict { display: block; color: var(--muted); font-size: var(--text-sm); margin-top: .35rem; }

/* Karten (Top 3) */
.best-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.as-card a { position: relative; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.as-card a:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(40,25,10,.5); }
.as-card .best-img { display: block; aspect-ratio: 4 / 5; }
.as-card .best-rank { position: absolute; top: .75rem; left: .75rem; width: 2.5rem; height: 2.5rem; border-radius: 999px; display: grid; place-items: center; background: var(--text); color: var(--bg); font-family: var(--font-display); font-size: var(--text-lg); box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); z-index: 1; }
.as-card.is-first .best-rank { background: var(--accent); color: var(--accent-ink); }
.as-card .best-body { display: block; padding: .9rem 1rem 1.1rem; }
.as-card .best-title { font-size: var(--text-lg); margin: .15rem 0 .3rem; }

/* Zeilen (5 Sterne, persönliche Plätze) */
.best-list { display: grid; gap: .6rem; }
.as-row a { display: grid; grid-template-columns: 2.4rem 64px 1fr; gap: .9rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .9rem .6rem .6rem; transition: background .2s; }
.as-row a:hover { background: var(--surface-2); }
.as-row .best-rank { font-family: var(--font-display); font-size: var(--text-lg); color: var(--muted); text-align: center; }
.as-row .best-img { display: block; width: 64px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; }
.as-row .best-title { font-size: var(--text-base); font-weight: 800; }
.as-row .best-verdict { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: .15rem; }
.as-row .best-stars { display: flex; align-items: center; gap: .4rem; margin-top: .15rem; }
.as-row .best-stars b { font-size: var(--text-sm); margin: 0; }

/* Kacheln (4,5 und 4 Sterne) */
.best-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; }
.as-tile a { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.as-tile .best-img { display: block; height: 100%; transition: transform .5s var(--ease); }
.as-tile a:hover .best-img { transform: scale(1.04); }
.as-tile .best-rank, .as-tile .best-cat, .as-tile .best-verdict, .as-tile .best-stars b { display: none; }
.as-tile .best-body { position: absolute; inset: auto 0 0 0; padding: .5rem; color: #fff; background: linear-gradient(to top, rgba(10,8,6,.88), rgba(10,8,6,0)); }
.as-tile .best-title { font-size: var(--text-xs); font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-tile .best-stars .stars { font-size: .6rem; display: block; margin-top: .15rem; }

/* Die Besten ihrer Art */
.best-ofkind { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.best-ofkind a { display: flex; gap: .8rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem; color: inherit; text-decoration: none; transition: background .2s; }
.best-ofkind a:hover { background: var(--surface-2); }
.best-ofkind img { width: 56px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.best-ofkind small { display: block; color: var(--accent); font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.best-ofkind b { display: block; font-family: var(--font-display); font-size: var(--text-base); line-height: 1.1; margin: .1rem 0 .2rem; }
.best-ofkind .stars { font-size: .75rem; }

@media (max-width: 900px) {
	.best-grid { grid-template-columns: repeat(4, 1fr); }
	.best-ofkind { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.best-podium { grid-template-columns: 1fr 1fr; }
	.best-podium .as-card.is-first { grid-column: 1 / -1; }
	.best-grid { grid-template-columns: repeat(3, 1fr); }
	.as-row a { grid-template-columns: 1.6rem 52px 1fr; }
	.as-row .best-img { width: 52px; }
	.as-row .best-verdict { display: none; }
	.best-ofkind { grid-template-columns: 1fr; }
}

/* Spielstatistik */
.playstats { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(2rem, 1rem + 3vw, 4rem); }
.stat-cards { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.stat-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .1rem; }
.stat-cards b { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; }
.stat-cards span { font-weight: 700; font-size: var(--text-sm); }
.stat-cards small { color: var(--muted); font-size: var(--text-xs); }
.plays-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.plays-controls fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: .4rem; }
.pill-check input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.plays-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.plays-item { display: grid; grid-template-columns: 2.2rem 56px 1fr auto; gap: .8rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .9rem .55rem .6rem; }
.plays-item[hidden] { display: none; }
.plays-rank { font-family: var(--font-display); font-size: var(--text-lg); color: var(--muted); text-align: center; }
.plays-img { width: 56px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.plays-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plays-initial { font-family: var(--font-display); font-size: var(--text-lg); color: var(--muted); }
.plays-body { display: grid; gap: .3rem; min-width: 0; }
.plays-title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-base); line-height: 1.15; }
.plays-title a { color: inherit; text-decoration: none; }
.plays-title a:hover { color: var(--accent); }
.plays-title small { font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: var(--text-xs); margin-left: .35rem; }
.plays-bar { display: block; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.plays-bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--accent); border-radius: 999px; transition: width .4s var(--ease); }
.no-review .plays-bar i { background: color-mix(in srgb, var(--text) 35%, transparent); }
.plays-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-size: var(--text-xs); color: var(--muted); }
.plays-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
.plays-badge .stars { font-size: .65rem; }
.plays-badge.is-review { background: var(--surface-2); color: var(--text); }
.plays-badge.is-review:hover { background: var(--line); }
.plays-badge.is-todo { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.plays-count { text-align: right; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.plays-count b { font-family: var(--font-display); font-size: var(--text-xl); }
.plays-count small { color: var(--muted); font-size: var(--text-xs); }
.plays-source { margin-top: 1.5rem; color: var(--muted); font-size: var(--text-xs); text-align: center; }
@media (max-width: 800px) { .stat-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
	.plays-item { grid-template-columns: 1.5rem 44px 1fr auto; gap: .6rem; }
	.plays-img { width: 44px; }
	.plays-count b { font-size: var(--text-lg); }
	.stat-cards b { font-size: var(--text-xl); }
}
