/* You and Mee Exit Popup */
@font-face {
	font-family: "YMX Serif";
	src: url("fonts/source-serif-4-display-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "YMX Sans";
	src: url("fonts/figtree-latin-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "YMX Sans";
	src: url("fonts/figtree-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

html.ymx-lock,
html.ymx-lock body {
	overflow: hidden !important;
}

#ymx {
	--ymx-ink: #1a1110;
	--ymx-gold: linear-gradient(100deg, #ecd08c 0%, #c1841a 28%, #e9c77b 52%, #b97a16 78%, #e6c27a 100%);
	--ymx-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	margin: 0;
	box-sizing: border-box;
	font-family: "YMX Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-align: center;
	line-height: 1.3;
}
#ymx[hidden] {
	display: none !important;
}
#ymx *,
#ymx *::before,
#ymx *::after {
	box-sizing: border-box;
}

#ymx .ymx__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 10, 8, 0.62);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.25s ease;
}

#ymx .ymx__card {
	position: relative;
	width: min(460px, 100%);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
	background: #fff;
	border-radius: 26px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.04);
	opacity: 0;
	transform: translateY(18px) scale(0.96);
	transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.15);
	outline: none;
}
#ymx .ymx__card::-webkit-scrollbar {
	display: none;
}
#ymx.is-open .ymx__backdrop {
	opacity: 1;
}
#ymx.is-open .ymx__card {
	opacity: 1;
	transform: none;
}

/* Foto mit gebogener Unterkante */
#ymx .ymx__media {
	position: relative;
	margin: 0;
	aspect-ratio: 1218 / 704;
	overflow: hidden;
	background: #2a0d0b;
	-webkit-clip-path: ellipse(185% 100% at 50% 0);
	clip-path: ellipse(185% 100% at 50% 0);
}
#ymx .ymx__media picture,
#ymx .ymx__media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	object-fit: cover;
	object-position: 50% 22%;
}

/* Schließen */
#ymx .ymx__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	line-height: 1;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
#ymx .ymx__close:hover {
	transform: scale(1.06);
	background: #fff;
	color: #111;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}
#ymx .ymx__close svg {
	display: block;
	width: 16px;
	height: 16px;
}

/* Text */
#ymx .ymx__body {
	padding: 12px 22px 24px;
}
#ymx .ymx__title {
	margin: 0 0 8px;
	padding: 0;
	font-family: "YMX Serif", Georgia, "Times New Roman", serif;
	font-weight: 700;
	font-size: clamp(34px, 10.4vw, 47px);
	line-height: 1.08;
	letter-spacing: -0.012em;
	color: var(--ymx-ink);
	text-transform: none;
	text-align: center;
	border: 0;
	background: none;
}
#ymx .ymx__title-emoji {
	display: inline-block;
	font-family: var(--ymx-emoji);
	font-weight: 400;
	font-size: 0.8em;
	line-height: 1;
	vertical-align: 0.04em;
	margin-left: 0.04em;
}
#ymx .ymx__sub {
	margin: 0 0 20px;
	padding: 0;
	font-family: "YMX Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-weight: 500;
	font-size: 15.5px;
	line-height: 1.4;
	letter-spacing: 0;
	color: #141414;
	text-transform: none;
	text-align: center;
}

/* Buttons */
#ymx .ymx__actions {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0 2px;
}
#ymx .ymx__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	margin: 0;
	padding: 11px 20px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: linear-gradient(#fff, #fff) padding-box, var(--ymx-gold) border-box;
	box-shadow: 0 4px 14px rgba(185, 122, 22, 0.12);
	color: #111 !important;
	font-family: "YMX Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-weight: 600;
	font-size: 17.5px;
	line-height: 1.2;
	letter-spacing: -0.005em;
	text-transform: none;
	text-decoration: none !important;
	text-align: center;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
#ymx .ymx__btn:hover,
#ymx .ymx__btn:focus-visible {
	color: #111 !important;
	background: linear-gradient(#fffaf0, #fffaf0) padding-box, var(--ymx-gold) border-box;
	box-shadow: 0 8px 22px rgba(185, 122, 22, 0.22);
	transform: translateY(-1px);
}
#ymx .ymx__btn:focus-visible,
#ymx .ymx__close:focus-visible {
	outline: 3px solid rgba(193, 132, 26, 0.5);
	outline-offset: 2px;
}
#ymx .ymx__btn-emoji {
	flex: 0 0 auto;
	font-family: var(--ymx-emoji);
	font-weight: 400;
	font-size: 1.3em;
	line-height: 1;
}
#ymx .ymx__btn-text {
	min-width: 0;
}

@media (max-width: 480px) {
	#ymx .ymx__body { padding: 10px 16px 20px; }
	#ymx .ymx__actions { padding: 0; }
	#ymx .ymx__btn { padding: 10px 12px; gap: 8px; font-size: 17px; }
	#ymx .ymx__btn-emoji { font-size: 1.2em; }
}
@media (max-width: 380px) {
	#ymx { padding: 10px; }
	#ymx .ymx__body { padding: 8px 12px 18px; }
	#ymx .ymx__btn { font-size: 15.5px; padding: 9px 10px; gap: 6px; }
	#ymx .ymx__sub { font-size: 14.5px; }
}
@media (max-height: 640px) {
	#ymx .ymx__media { aspect-ratio: 1218 / 560; }
	#ymx .ymx__title { font-size: 34px; }
	#ymx .ymx__sub { margin-bottom: 14px; }
	#ymx .ymx__btn { min-height: 48px; }
}
/* Smartphone quer und sehr niedrige Fenster */
@media (max-height: 480px) {
	#ymx .ymx__media { aspect-ratio: 1218 / 300; }
	#ymx .ymx__body { padding: 6px 20px 16px; }
	#ymx .ymx__title { font-size: 30px; margin-bottom: 4px; }
	#ymx .ymx__sub { font-size: 14.5px; margin-bottom: 12px; }
	#ymx .ymx__btn { min-height: 44px; padding: 8px 12px; }
}
@media (max-height: 480px) and (min-width: 600px) {
	#ymx .ymx__card { width: min(640px, 100%); }
	#ymx .ymx__actions { grid-template-columns: 1fr 1fr; }
	#ymx .ymx__btn { font-size: 15.5px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	#ymx .ymx__backdrop,
	#ymx .ymx__card,
	#ymx .ymx__btn,
	#ymx .ymx__close { transition: none; }
	#ymx .ymx__card { transform: none; }
}
