/*
Theme Name: MotoMonster 3000
Theme URI: https://www.motomonster.de/
Author: MotoMonster
Description: Classic-Theme für Inhaltsseiten. Die Shell folgt der Gestaltungsvorschau, Beiträge und Seiten kommen aus WordPress.
Version: 0.1.32
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: motomonster3000
*/

.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;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	padding: var(--mm-space-sm);
	position: static;
	background: var(--mm-bg);
	color: var(--mm-text);
}

.site-header .custom-logo-link {
	display: block;
	width: var(--mm-logo-width);
	height: var(--mm-logo-height);
	flex-shrink: 0;
}

.site-header .custom-logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: left center;
}

@media (max-width: 1024px) {
	.site-header .custom-logo-link {
		width: var(--mm-logo-mobile-width);
		height: var(--mm-logo-mobile-height);
	}
}

@media (max-width: 420px) {
	.site-header .custom-logo-link {
		width: var(--mm-logo-narrow-width);
	}
}

.desktop-nav .menu,
.desktop-nav .menu > li,
.mobile-menu-links .menu,
.mobile-menu-links .menu > li,
.footer-grid .menu,
.footer-grid .menu > li {
	display: contents;
}

.home-hero-content > .widget {
	display: contents;
}

:where(.mm-site) .mobile-menu-links :is(
	.current-menu-ancestor,
	.current-menu-parent,
	.current-page-ancestor,
	.current-page-parent,
	.current_page_ancestor,
	.current_page_parent
) > a {
	text-decoration-line: underline;
	text-decoration-style: dotted;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

:where(.mm-site) .mobile-menu-links :is(
	.current-menu-item,
	.current_page_item
) > a {
	text-decoration-line: underline;
	text-decoration-style: solid;
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.area-nav .subnav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-xs) var(--mm-space-md);
	list-style: none;
	margin: 0;
	padding: 0;
}

.entry-list {
	display: grid;
	gap: var(--mm-space-xl);
}

.entry-card {
	display: grid;
	grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
	gap: var(--mm-space-lg);
	padding-bottom: var(--mm-space-lg);
	border-bottom: 1px solid var(--mm-border);
}

.entry-card .entry-thumbnail img {
	width: 100%;
	aspect-ratio: 1.5;
	object-fit: cover;
}

.entry-thumbnail {
	margin-bottom: var(--mm-space-lg);
}

.entry-content > * + * {
	margin-top: var(--mm-space-sm);
}

.entry-content ul,
.entry-content ol {
	margin: var(--mm-space-sm) 0 var(--mm-space-sm) 1.25rem;
}

.entry-content .styled {
	margin-bottom: var(--mm-space-md);
}

.front-teaser {
	margin-bottom: var(--mm-space-xl);
	padding: var(--mm-space-lg);
	background: var(--mm-surface);
}

.front-teaser img {
	float: right;
	max-width: 40%;
	margin: 0 0 var(--mm-space-sm) var(--mm-space-md);
}

.nav-links,
.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-sm);
	margin-top: var(--mm-space-xl);
}

.nav-links a,
.nav-links span,
.page-links a,
.page-links span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: var(--mm-space-xs) var(--mm-space-sm);
	text-decoration: none;
}

:where(.mm-site) .nav-actions .nav-live[hidden] {
	display: none !important;
}

:where(.mm-site) .partner img {
	filter: grayscale(1);
}

:where(.mm-site) .partner:hover img,
:where(.mm-site) .partner:focus img {
	filter: grayscale(0);
}

:where(.mm-site) .track-motion {
	grid-row: 3;
	grid-column: 1;
	margin: var(--mm-space-lg) 0 0;
	width: min(100%, 28rem);
	padding: 0;
	background: transparent;
	border: 0;
	align-self: center;
	justify-self: center;
}

:where(.mm-site) .track-motion img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

@media (min-width: 960px) {
	:where(.mm-site) .photo-hero--track:not(.has-large-text) .photo-hero-inner {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		column-gap: var(--mm-space-lg);
	}

	:where(.mm-site) .photo-hero--track:not(.has-large-text) .photo-hero-copy {
		grid-row: 2;
		grid-column: 1;
	}

	:where(.mm-site) .photo-hero--track:not(.has-large-text) .track-motion {
		grid-row: 2;
		grid-column: 2;
		margin: 0;
	}
}

:where(.mm-site) .location-detail-intro,
:where(.mm-site) .location-detail-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--mm-space-2xl);
	align-items: start;
}

:where(.mm-site) .location-detail-intro:has(.location-detail-copy):has(.location-detail-media) {
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

:where(.mm-site) .location-detail-split:has(.location-detail-note + .location-detail-note) {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

:where(.mm-site) .location-detail-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--mm-space-xl);
	align-items: start;
}

:where(.mm-site) .location-detail-note + .location-detail-note {
	border-left: var(--mm-line) solid var(--mm-control-border);
	padding-left: var(--mm-space-lg);
}

:where(.mm-site) .location-detail-note h2 {
	margin-bottom: var(--mm-space-md);
}

:where(.mm-site) .location-detail-course {
	margin: 0 0 var(--mm-space-lg);
}

:where(.mm-site) .location-detail-course img,
:where(.mm-site) .location-detail-gallery img {
	width: 100%;
	height: auto;
}

:where(.mm-site) .location-detail-gallery img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

:where(.mm-site) .track-video iframe,
:where(.mm-site) .track-video video,
:where(.mm-site) .location-detail-media iframe,
:where(.mm-site) .location-detail-media video {
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

:where(.mm-site) .location-detail-map {
	width: 100%;
	height: 240px;
	margin-bottom: var(--mm-space-md);
}

:where(.mm-site) .location-detail-address,
:where(.mm-site) .location-detail-gallery-count {
	color: var(--mm-muted);
}

:where(.mm-site) .location-detail-gallery-count {
	display: block;
	margin-bottom: var(--mm-space-sm);
	font-size: var(--mm-type-small);
}

:where(.mm-site) .location-detail-gallery a {
	display: block;
}

@media (max-width: 960px) {
	:where(.mm-site) .location-detail-facts {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--mm-space-lg);
	}

	:where(.mm-site) .location-detail-facts .location-detail-note + .location-detail-note {
		border-left: 0;
		padding-left: 0;
		border-top: var(--mm-line) solid var(--mm-control-border);
		padding-top: var(--mm-space-lg);
	}
}

@media (max-width: 760px) {
	:where(.mm-site) .location-detail-intro:has(.location-detail-copy):has(.location-detail-media),
	:where(.mm-site) .location-detail-split:has(.location-detail-note + .location-detail-note) {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--mm-space-lg);
	}

	:where(.mm-site) .location-detail-split .location-detail-note + .location-detail-note {
		border-left: 0;
		padding-left: 0;
		border-top: var(--mm-line) solid var(--mm-control-border);
		padding-top: var(--mm-space-lg);
	}
}

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

	.front-teaser img {
		float: none;
		max-width: 100%;
		margin: 0 0 var(--mm-space-md);
	}
}

:where(.mm-site) .location-gallery-open {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	border-radius: 0;
}

:where(.mm-site) .gallery-dialog {
	--mm-bg: var(--mm-gallery-bg);
	--mm-text: var(--mm-gallery-text);
	--mm-control-border: var(--mm-gallery-text);
	--mm-focus: var(--mm-accent);
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: 100%;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: var(--mm-space-md);
	border: 0;
	border-radius: 0;
	background: var(--mm-gallery-bg);
	color: var(--mm-gallery-text);
	overflow: hidden;
}

:where(.mm-site) .gallery-dialog::backdrop {
	background: #000;
}

:where(.mm-site) .gallery-dialog .dialog-top {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-sm);
	justify-content: space-between;
	align-items: start;
}

:where(.mm-site) .gallery-dialog [data-gallery-content] {
	display: block;
	height: calc(100dvh - 15rem);
	min-height: 0;
	margin-block: var(--mm-space-sm);
	overflow-y: auto;
	overscroll-behavior: contain;
	scroll-snap-type: y mandatory;
	touch-action: pan-y;
}

:where(.mm-site) .gallery-dialog [data-gallery-content] figure {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	margin: 0;
	scroll-snap-align: start;
}

:where(.mm-site) .gallery-dialog img {
	width: 100%;
	height: auto;
	max-height: calc(100dvh - 15rem);
	object-fit: contain;
}

:where(.mm-site) .gallery-dialog [data-report-pdf-frame] {
	display: none;
	width: 100%;
	height: calc(100dvh - 15rem);
	border: 0;
	background: #fff;
}

:where(.mm-site) .gallery-dialog[data-viewer="pdf"] [data-gallery-content] {
	display: none;
}

:where(.mm-site) .gallery-dialog[data-viewer="pdf"] [data-report-pdf-frame] {
	display: block;
}

:where(.mm-site) .gallery-dialog[data-viewer="pdf"] [data-gallery-caption] {
	display: none;
}

:where(.mm-site) .gallery-dialog [data-gallery-caption],
:where(.mm-site) .gallery-dialog .gallery-controls p {
	max-width: none;
	margin: 0;
	text-align: left;
}

:where(.mm-site) .gallery-dialog .gallery-controls {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mm-space-sm);
	align-items: center;
	justify-content: space-between;
	margin-top: var(--mm-space-sm);
}

:where(.mm-site) .gallery-dialog button {
	color: inherit;
	border: 1px solid currentColor;
	background: transparent;
}

:where(.mm-site) .gallery-dialog button:hover {
	background: #242424;
	color: #fff;
}

:where(.mm-site) .gallery-dialog button:disabled {
	cursor: not-allowed;
}

@media (max-width: 760px) {
	:where(.mm-site) .gallery-dialog {
		padding: var(--mm-space-sm);
	}

	:where(.mm-site) .gallery-dialog [data-gallery-content] {
		height: 65dvh;
	}

	:where(.mm-site) .gallery-dialog img {
		max-height: 65dvh;
	}

	:where(.mm-site) .gallery-dialog .gallery-controls {
		align-items: start;
	}

	:where(.mm-site) .gallery-dialog .gallery-controls button {
		max-width: 100%;
	}

	:where(.mm-site) .gallery-dialog [data-report-pdf-frame] {
		height: 65dvh;
	}
}

@media (min-width: 761px) {
	:where(.mm-site) .gallery-dialog[open] {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr) auto;
		gap: var(--mm-space-sm);
	}

	:where(.mm-site) .gallery-dialog [data-gallery-content],
	:where(.mm-site) .gallery-dialog .dialog-top,
	:where(.mm-site) .gallery-dialog [data-gallery-caption] {
		grid-column: 1;
		grid-row: 1;
		width: min(100%, calc((100dvh - 8rem) * 1.5));
		justify-self: center;
		margin: 0;
	}

	:where(.mm-site) .gallery-dialog [data-gallery-content] {
		align-self: stretch;
		height: auto;
	}

	:where(.mm-site) .gallery-dialog img {
		max-height: calc(100dvh - 8rem);
	}

	:where(.mm-site) .gallery-dialog .dialog-top {
		align-self: start;
		z-index: 1;
		padding: var(--mm-space-sm);
		background: linear-gradient(#000c, transparent);
	}

	:where(.mm-site) .gallery-dialog [data-gallery-caption] {
		align-self: end;
		z-index: 1;
		padding: var(--mm-space-sm);
		background: #000c;
	}

	:where(.mm-site) .gallery-dialog .gallery-controls {
		grid-column: 1;
		grid-row: 2;
		margin: 0;
	}

	:where(.mm-site) .gallery-dialog[data-viewer="pdf"] {
		grid-template-rows: auto minmax(0, 1fr) auto;
	}

	:where(.mm-site) .gallery-dialog[data-viewer="pdf"] .dialog-top {
		grid-row: 1;
		width: min(100%, 56rem);
		background: none;
	}

	:where(.mm-site) .gallery-dialog[data-viewer="pdf"] [data-report-pdf-frame] {
		grid-column: 1;
		grid-row: 2;
		width: min(100%, 56rem);
		height: 100%;
		min-height: 0;
		align-self: stretch;
		justify-self: center;
		margin: 0;
	}

	:where(.mm-site) .gallery-dialog[data-viewer="pdf"] .gallery-controls {
		grid-row: 3;
	}
}

:where(.mm-site) .report-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--mm-space-xl);
}

:where(.mm-site) .report-teaser {
	border-top: 1px solid var(--mm-border);
	padding-top: var(--mm-space-md);
	min-width: 0;
}

:where(.mm-site) .report-teaser .mm-heading-3 {
	margin-bottom: var(--mm-space-sm);
}

:where(.mm-site) .report-teaser .mm-heading-3 a {
	text-decoration: none;
}

:where(.mm-site) .report-teaser .report-photo {
	margin: 0 0 var(--mm-space-md);
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

:where(.mm-site) .report-teaser .report-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--report-focus, 50% 50%);
}

:where(.mm-site) .pagination {
	display: flex;
	justify-content: center;
	gap: var(--mm-space-sm);
	align-items: center;
	margin-top: var(--mm-space-xl);
	flex-wrap: wrap;
}

:where(.mm-site) .pagination > a {
	min-width: 48px;
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

:where(.mm-site) .pagination > a[aria-current] {
	background: var(--mm-text);
	color: var(--mm-bg);
	text-decoration: none;
}

:where(.mm-site) .pagination > a.button {
	min-width: 0;
	padding-inline: var(--mm-space-md);
}

@media (max-width: 760px) {
	:where(.mm-site) .report-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

:where(.mm-site) .report-layout {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
	gap: var(--mm-space-xl);
	padding-top: var(--mm-space-xl);
}

:where(.mm-site) .report-contents {
	position: sticky;
	top: calc(var(--mm-header-occlusion, 102px) + var(--mm-space-sm));
	align-self: start;
	max-height: calc(100dvh - var(--mm-header-occlusion, 102px) - 2 * var(--mm-space-sm));
	overflow: auto;
	overscroll-behavior: contain;
}

:where(.mm-site) .report-contents nav {
	display: grid;
	gap: var(--mm-space-xs);
	margin-bottom: var(--mm-space-md);
}

:where(.mm-site) .report-contents nav a {
	position: relative;
	min-height: 44px;
	display: flex;
	align-items: center;
	text-decoration: none;
}

:where(.mm-site) .report-nav-group {
	display: grid;
	gap: var(--mm-space-xs);
}

:where(.mm-site) .report-nav-label {
	min-height: 44px;
	display: flex;
	align-items: center;
}

:where(.mm-site) .report-nav-group ul {
	list-style: none;
	margin: 0;
	padding: 0 0 0 var(--mm-space-sm);
	display: grid;
	gap: var(--mm-space-xs);
}

:where(.mm-site) .report-nav-group li {
	margin: 0;
}

:where(.mm-site) .report-contents nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6px;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--mm-motion, 180ms);
	pointer-events: none;
}

:where(.mm-site) .report-contents nav a:is(:hover, :focus-visible)::after,
:where(.mm-site) .report-contents nav a[aria-current="location"]::after {
	transform: scaleX(1);
}

:where(.mm-site) .report-toc > summary {
	cursor: pointer;
	padding-block: var(--mm-space-xs);
	min-height: 44px;
}

:where(.mm-site) .report-contents nav a[aria-current="location"] {
	font-weight: 600;
}

:where(.mm-site) .report-contents nav a[aria-current="location"]::after {
	height: var(--mm-nav-current-line, 3px);
}

@media (prefers-reduced-motion: reduce) {
	:where(.mm-site) .report-contents nav a::after {
		transition: none;
	}
}

:where(.mm-site) .report-prose :is(h2, h3, h4, h5, h6),
:where(.mm-site) #bildergalerie {
	scroll-margin-top: calc(var(--mm-header-occlusion, 102px) + 1rem);
}

:where(.mm-site) .report-prose :is(h2, h3, h4, h5, h6) {
	margin-top: var(--mm-space-xl);
	margin-bottom: var(--mm-space-md);
}

:where(.mm-site) .report-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--mm-space-md);
	margin-top: var(--mm-space-lg);
}

:where(.mm-site) .report-gallery figure {
	margin: 0;
}

:where(.mm-site) .report-gallery img {
	width: 100%;
	height: auto;
	aspect-ratio: 1.5;
	object-fit: cover;
}

:where(.mm-site) .report-gallery figcaption {
	padding-top: var(--mm-space-xs);
}

@media (max-width: 760px) {
	:where(.mm-site) .report-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	:where(.mm-site) .report-contents {
		position: static;
		max-height: none;
		overflow: visible;
	}

	:where(.mm-site) .report-toc {
		border-block: 1px solid var(--mm-control-border);
	}
}

@media (max-width: 420px) {
	:where(.mm-site) .report-gallery {
		grid-template-columns: minmax(0, 1fr);
	}
}

:where(.mm-site) .mm-block-page {
	padding-bottom: var(--mm-section-space);
}

:where(.mm-site) .mm-block-page .page-heading,
:where(.mm-site) .mm-block-page .entry-thumbnail,
:where(.mm-site) .mm-block-page .entry-content > :not(.mm-teaser-media, .mm-teaser-list, .mm-teaser-columns, .mm-teaser-links, .mm-group-info, .mm-flag-guide, .mm-layout-12, .mm-layout-11, .mm-layout-13, .mm-layout-full, .mm-layout-111) {
	width: min(var(--mm-content-width), calc(100% - var(--mm-gutter) * 2));
	margin-inline: auto;
}

:where(.mm-site) .mm-block-page .entry-content > :first-child:not(.mm-teaser-media, .mm-teaser-list, .mm-teaser-columns, .mm-teaser-links, .mm-group-info, .mm-flag-guide, .mm-layout-12, .mm-layout-11, .mm-layout-13, .mm-layout-full, .mm-layout-111) {
	margin-top: var(--mm-section-space);
}
