/**
 * Mediora Popups – Shell und Standard-Optik.
 *
 * Alles ist unter .mfp gekapselt. Der Inhalt bringt eigene Stile mit oder nutzt
 * die Defaults hier; globale Theme-Regeln greifen nur, wo keine Klasse gesetzt
 * ist.
 */

.mfp,
.mfp *,
.mfp *::before,
.mfp *::after {
	box-sizing: border-box;
}

.mfp {
	--mfp-width: 620px;
	--mfp-overlay: #000;
	--mfp-overlay-alpha: 0.65;
	--mfp-ink: #11110d;
	--mfp-text: #35322b;
	--mfp-muted: #6b675f;
	--mfp-line: #e6e1d9;
	--mfp-tan: #BDB198;
	--mfp-sage: #A69E76;
	--mfp-umber: #8F5E37;
	--mfp-paper: #FBF9F6;

	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	pointer-events: none;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--mfp-text);
	text-align: left;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.mfp[hidden] {
	display: none !important;
}

/* ---------- Overlay ---------- */

.mfp__overlay {
	position: absolute;
	inset: 0;
	background: var(--mfp-overlay);
	opacity: 0;
	transition: opacity 0.24s ease;
	pointer-events: auto;
	cursor: pointer;
}

.mfp.is-open .mfp__overlay {
	opacity: var(--mfp-overlay-alpha);
}

/* ---------- Dialog ---------- */

.mfp__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(100%, var(--mfp-width));
	max-height: calc(100vh - 48px);
	max-height: min(820px, calc(100dvh - 48px));
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	pointer-events: auto;
	outline: none;
	transition: opacity 0.24s ease, transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mfp__scroll {
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	border-radius: inherit;
	scrollbar-width: thin;
}

.mfp__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(6px);
	color: var(--mfp-ink);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.mfp__close:hover,
.mfp__close:focus {
	background: #fff;
	transform: scale(1.04);
}

.mfp__close svg {
	display: block;
	width: 18px;
	height: 18px;
}

.mfp__hero {
	display: block;
	width: 100%;
	height: auto;
	max-height: 340px;
	object-fit: cover;
}

/* ---------- Inhalt ---------- */

.mfp__content {
	padding: clamp(22px, 4vw, 34px);
}

.mfp--flush .mfp__content {
	padding: 0;
}

.mfp__content > *:first-child {
	margin-top: 0;
}

.mfp__content > *:last-child {
	margin-bottom: 0;
}

.mfp__content h1,
.mfp__content h2,
.mfp__content h3,
.mfp__content h4 {
	margin: 0 0 0.55em;
	font-family: inherit;
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -0.015em;
	color: var(--mfp-ink);
	text-transform: none;
}

.mfp__content h1 {
	font-size: clamp(26px, 3.6vw, 34px);
}

.mfp__content h2 {
	font-size: clamp(22px, 3vw, 28px);
}

.mfp__content h3 {
	font-size: clamp(18px, 2.2vw, 22px);
}

.mfp__content p {
	margin: 0 0 1em;
	font-size: inherit;
	line-height: 1.6;
	color: var(--mfp-text);
}

.mfp__content ul,
.mfp__content ol {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

.mfp__content li {
	margin: 0 0 0.4em;
}

.mfp__content a {
	color: var(--mfp-umber);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mfp__content strong {
	color: var(--mfp-ink);
	font-weight: 600;
}

.mfp__content img,
.mfp__content video,
.mfp__content iframe {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.mfp__content figure {
	margin: 0 0 1em;
}

.mfp__content blockquote {
	margin: 0 0 1em;
	padding: 12px 16px;
	border-left: 3px solid var(--mfp-sage);
	border-radius: 8px;
	background: var(--mfp-paper);
	color: var(--mfp-text);
}

/* ---------- Buttons ---------- */

.mfp .wp-block-buttons {
	margin: 20px 0 0;
}

.mfp .wp-block-button,
.mfp .wp-block-button__link {
	width: 100%;
}

.mfp .mfp__content .wp-block-button__link,
.mfp .mfp-btn,
.mfp .mfp-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 15px 22px;
	border: 0;
	border-radius: 100px;
	background: #000;
	color: #fff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.09em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mfp .mfp__content .wp-block-button__link:hover,
.mfp .mfp__content .wp-block-button__link:focus,
.mfp .mfp-btn:hover,
.mfp .mfp-btn:focus {
	background: var(--mfp-umber);
	color: #fff;
	text-decoration: none;
}

.mfp .mfp-btn--ghost,
.mfp .mfp-btn--ghost:visited {
	background: transparent;
	color: var(--mfp-ink);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.mfp .mfp-btn--ghost:hover,
.mfp .mfp-btn--ghost:focus {
	background: var(--mfp-tan);
	color: var(--mfp-ink);
}

/* ---------- Kleine Bausteine ---------- */

.mfp-eyebrow {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--mfp-umber);
}

.mfp-note {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--mfp-muted);
	text-align: center;
}

.mfp-media {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

/* ---------- Layouts ---------- */

.mfp--bottom {
	align-items: flex-end;
	padding: 0;
}

.mfp--bottom .mfp__dialog {
	width: 100%;
	max-width: 100%;
	max-height: 80vh;
	max-height: 80dvh;
	border-radius: 18px 18px 0 0;
}

.mfp--corner {
	align-items: flex-end;
	justify-content: flex-end;
	padding: 18px;
}

.mfp--corner .mfp__dialog {
	width: min(100%, 390px);
	max-height: calc(100vh - 36px);
	max-height: min(660px, calc(100dvh - 36px));
}

.mfp--fullscreen {
	padding: 0;
}

.mfp--fullscreen .mfp__dialog {
	width: 100%;
	height: 100%;
	max-height: 100%;
	border-radius: 0;
}

.mfp--fullscreen .mfp__scroll {
	height: 100%;
}

.mfp--bare {
	pointer-events: none;
}

.mfp--bare .mfp__dialog {
	pointer-events: auto;
}

.mfp--bare .mfp__overlay {
	display: none;
}

/* ---------- Animationen ---------- */

.mfp--anim-fade .mfp__dialog {
	opacity: 0;
}

.mfp--anim-zoom .mfp__dialog {
	opacity: 0;
	transform: scale(0.94);
}

.mfp--anim-slide-up .mfp__dialog {
	opacity: 0;
	transform: translateY(28px);
}

.mfp--anim-slide-in .mfp__dialog {
	opacity: 0;
	transform: translateX(36px);
}

.mfp--anim-none .mfp__dialog,
.mfp--anim-none .mfp__overlay {
	transition: none;
}

.mfp.is-open .mfp__dialog {
	opacity: 1;
	transform: none;
}

/* ---------- Fokus & Scroll-Sperre ---------- */

.mfp__close:focus-visible,
.mfp .mfp-btn:focus-visible,
.mfp .wp-block-button__link:focus-visible,
.mfp__content a:focus-visible {
	outline: 2px solid var(--mfp-umber);
	outline-offset: 3px;
}

body.mfp-lock {
	overflow: hidden;
	padding-right: var(--mfp-sbw, 0px);
}

/* ---------- Mobil ---------- */

@media (max-width: 640px) {
	.mfp {
		padding: 12px;
	}

	.mfp__dialog {
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		border-radius: 16px;
	}

	.mfp__close {
		width: 44px;
		height: 44px;
		top: 8px;
		right: 8px;
	}

	.mfp__content {
		padding: 20px 18px;
	}

	.mfp--corner {
		padding: 10px;
	}

	.mfp--corner .mfp__dialog {
		width: 100%;
	}

	.mfp--bottom .mfp__dialog {
		max-height: 86vh;
		max-height: 86dvh;
		border-radius: 16px 16px 0 0;
	}
}

/* ---------- Sonstiges ---------- */

@media (prefers-reduced-motion: reduce) {
	.mfp__dialog,
	.mfp__overlay {
		transition: none !important;
	}
}

@media print {
	.mfp {
		display: none !important;
	}
}
