/**
 * WM Pop-Up – Frontend-Styles
 *
 * Farben/Fonts an burgdorferschuetzenhaus.ch angelehnt:
 *   Akzent (Gold):  #f6c703 / #f4ac02
 *   Text (dunkel):  #212121 / #3f3f3f
 *   Fonts:          BenchNine (Titel), Open Sans (Text) – vom Theme geladen.
 */

.wm-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(33, 33, 33, 0.72);
	opacity: 0;
	transition: opacity 0.25s ease;
	box-sizing: border-box;
}

.wm-popup-overlay[hidden] {
	display: none;
}

.wm-popup-overlay.is-visible {
	opacity: 1;
}

.wm-popup {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #ffffff;
	border-top: 5px solid #f6c703;
	border-radius: 4px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
	padding: 38px 40px 40px;
	box-sizing: border-box;
	transform: translateY(14px);
	transition: transform 0.25s ease;
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #3f3f3f;
	text-align: left;
}

.wm-popup-overlay.is-visible .wm-popup {
	transform: translateY(0);
}

.wm-popup__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #adb5b7;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	transition: color 0.2s ease, background 0.2s ease;
}

.wm-popup__close:hover,
.wm-popup__close:focus {
	color: #212121;
	background: #f6c703;
	outline: none;
}

.wm-popup__title {
	margin: 0 0 16px;
	padding-right: 30px;
	font-family: "BenchNine", "Open Sans", sans-serif;
	font-weight: 700;
	font-size: 34px;
	line-height: 1.1;
	color: #212121;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wm-popup__content {
	font-size: 16px;
	line-height: 1.6;
}

.wm-popup__content p {
	margin: 0 0 1em;
}

.wm-popup__content p:last-child {
	margin-bottom: 0;
}

.wm-popup__content a {
	color: #f4ac02;
	text-decoration: underline;
}

.wm-popup__content a:hover {
	color: #212121;
}

.wm-popup__content img {
	max-width: 100%;
	height: auto;
}

.wm-popup__content ul,
.wm-popup__content ol {
	margin: 0 0 1em;
	padding-left: 1.4em;
}

/* Mobil */
@media (max-width: 600px) {
	.wm-popup {
		padding: 32px 24px 30px;
	}

	.wm-popup__title {
		font-size: 28px;
	}
}
