/**
 * Subtle navigation depth (3D) + mobile-friendly menu and content readability.
 * Akzent: warmes Orange (Titelfoto / Spielblöcke).
 */

:root {
	--site-nav-accent: #ec9748;
	--site-nav-accent-soft: rgba(236, 151, 72, 0.28);
}

/* Bar: light depth / “elevated strip” */
.navigation-top {
	background: linear-gradient(
		180deg,
		#fffdfb 0%,
		#fff2e6 42%,
		#ffe5cf 100%
	);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.88),
		0 4px 14px rgba(80, 40, 12, 0.1),
		0 1px 3px rgba(0, 0, 0, 0.05);
	border-top: 1px solid rgba(255, 255, 255, 0.65);
	border-bottom: 1px solid rgba(0, 0, 0, 0.065);
}

/* Desktop: tab-like links; hover fills the button, not only the text */
@media screen and (min-width: 48em) {
	/* Hero-Branding (z-index 4) liegt sonst über dem oberen Teil der Menüpunkte. */
	.navigation-top {
		z-index: 5;
	}

	.main-navigation > div > ul > li > a {
		border-radius: 9px;
		margin: 0 0.12em;
		background: linear-gradient(180deg, #ffffff 0%, #fff4ea 100%);
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.75),
			0 2px 4px rgba(90, 45, 15, 0.1),
			0 0 0 1px var(--site-nav-accent-soft);
		transition:
			background 0.18s ease,
			box-shadow 0.14s ease,
			color 0.18s ease;
	}

	.main-navigation > div > ul > li > a:hover,
	.main-navigation > div > ul > li > a:focus-visible {
		transform: none;
		color: #fff;
		background: linear-gradient(
			180deg,
			var(--site-accent-light, #ffa040) 0%,
			var(--site-accent, #ea7619) 48%,
			var(--site-accent-deep, #c9550e) 100%
		);
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.28),
			0 3px 10px rgba(185, 75, 15, 0.32);
	}

	.navigation-top .current-menu-item > a,
	.navigation-top .current_page_item > a {
		color: #b06520 !important;
		background: linear-gradient(180deg, #fdebd8 0%, #f8d9ba 100%);
		box-shadow:
			inset 0 2px 5px rgba(0, 0, 0, 0.08),
			0 1px 0 rgba(255, 255, 255, 0.6);
		transform: none;
	}

	.navigation-top .current-menu-item > a:hover,
	.navigation-top .current_page_item > a:hover,
	.navigation-top .current-menu-item > a:focus-visible,
	.navigation-top .current_page_item > a:focus-visible {
		color: #fff !important;
		background: linear-gradient(
			180deg,
			var(--site-accent, #ea7619) 0%,
			var(--site-accent-deep, #c9550e) 48%,
			#a84308 100%
		);
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.22),
			0 3px 10px rgba(185, 75, 15, 0.32);
	}

	.site-navigation-fixed.navigation-top {
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.82),
			0 6px 16px rgba(80, 40, 12, 0.12),
			0 1px 3px rgba(0, 0, 0, 0.08);
	}
}

/* Icons haben sonst die SVG-Standardgröße 300×150 und sprengen den Menüknopf. */
svg.icon {
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	fill: currentColor;
	vertical-align: -0.15em;
	flex: 0 0 auto;
	overflow: hidden;
}

svg.icon path {
	fill: currentColor;
}

/* Mobile / small tablet: chunky toggle + scrollable dropdown panel */
@media screen and (max-width: 47.99em) {
	.site-header {
		display: flex;
		flex-direction: column;
	}

	.navigation-top {
		order: -1;
		position: sticky;
		top: 0;
		z-index: 30;
	}

	.navigation-top .wrap {
		padding-left: max(12px, env(safe-area-inset-left));
		padding-right: max(12px, env(safe-area-inset-right));
	}

	/* Wie Primär-CTA (Variablen aus site-buttons.css, lädt nach dieser Datei) */
	.js .menu-toggle .icon {
		width: 1.35rem;
		height: 1.35rem;
		margin-right: 0.45rem;
		top: 0;
	}

	.js .menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.35em;
		touch-action: manipulation;
		width: calc(100% - 24px);
		max-width: 22rem;
		margin-left: auto;
		margin-right: auto;
		margin-top: 0.35rem;
		margin-bottom: 0.35rem;
		padding: 0.9rem 1.25rem;
		min-height: 48px;
		font-size: 1rem;
		font-weight: 700;
		color: #fff !important;
		border-radius: 10px;
		cursor: pointer;
		border: 1px solid rgba(255, 255, 255, 0.25);
		background: linear-gradient(
			180deg,
			var(--site-accent-light, #ffa040) 0%,
			var(--site-accent, #ea7619) 42%,
			var(--site-accent-deep, #c9550e) 100%
		);
		-webkit-box-shadow:
			var(--site-btn-inset, inset 0 1px 0 rgba(255, 255, 255, 0.28)),
			var(--site-btn-shadow, 0 2px 10px rgba(185, 75, 15, 0.28));
		box-shadow:
			var(--site-btn-inset, inset 0 1px 0 rgba(255, 255, 255, 0.28)),
			var(--site-btn-shadow, 0 2px 10px rgba(185, 75, 15, 0.28));
		transition:
			transform 0.12s ease,
			box-shadow 0.12s ease,
			background 0.12s ease,
			color 0.12s ease;
	}

	.js .menu-toggle:hover,
	.js .menu-toggle:focus {
		color: #fff !important;
		background: linear-gradient(
			180deg,
			var(--site-accent, #ea7619) 0%,
			var(--site-accent-deep, #c9550e) 48%,
			#a84308 100%
		);
		-webkit-box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.2),
			var(--site-btn-shadow-hover, 0 4px 16px rgba(185, 75, 15, 0.36));
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.2),
			var(--site-btn-shadow-hover, 0 4px 16px rgba(185, 75, 15, 0.36));
	}

	.js .menu-toggle:active {
		transform: translateY(2px);
		-webkit-box-shadow:
			var(--site-btn-inset, inset 0 1px 0 rgba(255, 255, 255, 0.28)),
			var(--site-btn-shadow, 0 2px 10px rgba(185, 75, 15, 0.28));
		box-shadow:
			var(--site-btn-inset, inset 0 1px 0 rgba(255, 255, 255, 0.28)),
			var(--site-btn-shadow, 0 2px 10px rgba(185, 75, 15, 0.28));
	}

	.js .menu-toggle:focus-visible {
		outline: 2px solid var(--site-accent-deep, #c9550e);
		outline-offset: 3px;
	}

	.js .menu-toggle:focus:not(:focus-visible) {
		outline: none;
	}

	@keyframes site-nav-dropdown-in {
		from {
			opacity: 0;
			transform: translateY(-10px);
		}

		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.js .main-navigation.toggled-on > div > ul {
		margin-top: 0.4rem;
		margin-bottom: 0.5rem;
		border-radius: 12px;
		overflow: hidden;
		padding: 0.25rem 0;
		max-height: min(70vh, 28rem);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		background: #fff;
		border: 1px solid rgba(0, 0, 0, 0.07);
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.82),
			0 10px 28px rgba(80, 40, 12, 0.14),
			0 2px 6px rgba(0, 0, 0, 0.05);
		transform-origin: top center;
		animation: site-nav-dropdown-in 0.24s ease-out;
	}

	@media (prefers-reduced-motion: reduce) {
		.js .main-navigation.toggled-on > div > ul {
			animation: none;
		}
	}

	.main-navigation li {
		border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	}

	.main-navigation li:last-child {
		border-bottom: 0;
	}

	.main-navigation .menu > .menu-item > a {
		display: flex;
		align-items: center;
		min-height: 48px;
		padding: 0.85rem 1.1rem;
		font-size: 1.03rem;
		line-height: 1.35;
	}

	.main-navigation ul ul .menu-item a {
		min-height: 44px;
		padding-left: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.main-navigation > div > ul > li > a,
	.js .menu-toggle {
		transition: none !important;
	}

	@media screen and (min-width: 48em) {
		.main-navigation > div > ul > li > a:hover,
		.main-navigation > div > ul > li > a:focus-visible {
			transform: none;
		}
	}

	@media screen and (max-width: 47.99em) {
		.js .menu-toggle:active {
			transform: none;
		}
	}
}

@media screen and (max-width: 47.99em) {
	body.page:not(.site-front-page) .content-title,
	.page .content-title {
		font-size: 1.35rem;
		letter-spacing: 0.01em;
		line-height: 1.3;
		text-transform: none;
	}

	.site-logo-link img.site-logo {
		width: clamp(7.5rem, 42vw, 11rem);
	}
}

/* Narrow phones: slightly more usable line length */
@media screen and (max-width: 30em) {
	.wrap {
		padding-left: calc(1rem + env(safe-area-inset-left, 0px));
		padding-right: calc(1rem + env(safe-area-inset-right, 0px));
	}
}

.content-main,
.content-summary {
	overflow-wrap: break-word;
	word-wrap: break-word;
	hyphens: auto;
}

img,
video {
	max-width: 100%;
	height: auto;
}

/*
 * Logo: Theme hat max-height ~80px – hier größer, proportional über Breite gesteuert.
 */
.site-logo-link img.site-logo {
	width: clamp(13rem, 32vw, 17.75rem); /* Unterseiten: etwas kleiner als zuvor, proportional */
	max-width: 100%;
	height: auto !important;
	max-height: none !important;
	display: block;
}
