/* Two-click embeds — placeholder card until the visitor clicks, then the iframe (embeds.js). Tokens only. */

.sws-twoclick {
	margin: 0;
}

.sws-twoclick__stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 240px;
	overflow: hidden;
	background: var(--wp--preset--color--bg-alt);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--small);
}

.sws-twoclick--ratio .sws-twoclick__stage {
	min-height: 0;
	aspect-ratio: 16 / 9;
}

.sws-twoclick--ratio[data-ratio="4/3"] .sws-twoclick__stage {
	aspect-ratio: 4 / 3;
}

.sws-twoclick__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sws-twoclick--poster .sws-twoclick__stage::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--wp--preset--color--overlay);
}

.sws-twoclick__card {
	position: relative;
	z-index: 2;
	max-width: 34rem;
	padding: var(--wp--preset--spacing--50);
	text-align: center;
}

.sws-twoclick__card > p {
	margin: 0;
}

.sws-twoclick__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-3);
	font-weight: 700;
	line-height: var(--wp--custom--line-height--tight);
	color: var(--wp--preset--color--ink);
}

.sws-twoclick__provider {
	margin-top: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-soft);
}

.sws-twoclick__card > .sws-twoclick__note {
	margin: var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--line-height--body);
	color: var(--wp--preset--color--ink-soft);
}

.sws-twoclick__note a {
	color: var(--wp--preset--color--navy);
	text-decoration: underline;
}

.sws-twoclick--poster .sws-twoclick__title,
.sws-twoclick--poster .sws-twoclick__provider,
.sws-twoclick--poster .sws-twoclick__card > .sws-twoclick__note,
.sws-twoclick--poster .sws-twoclick__note a {
	color: var(--wp--preset--color--white);
}

.sws-twoclick__load {
	cursor: pointer;
}

.sws-twoclick__load:focus-visible,
.sws-twoclick__link a:focus-visible,
.sws-twoclick__note a:focus-visible {
	outline: var(--wp--custom--focus-ring);
	outline-offset: 2px;
}

.sws-twoclick.is-loaded .sws-twoclick__stage {
	display: block;
	min-height: 0;
	background: var(--wp--preset--color--white);
}

.sws-twoclick.is-loaded .sws-twoclick__stage::before {
	content: none;
}

.sws-twoclick iframe {
	display: block;
	width: 100%;
	border: 0;
}

.sws-twoclick--ratio.is-loaded iframe {
	height: 100%;
}

.sws-twoclick__link {
	margin: var(--wp--preset--spacing--20) 0 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-align: right;
}

.sws-twoclick__link a {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

.sws-twoclick__link a:hover {
	color: var(--wp--preset--color--red);
	text-decoration: underline;
}

.sws-embed-figure {
	margin-inline: 0;
}

/*
 * Videos (DESIGN-POLISH §9): navy chart tile (or the poster from the media library), a red 64 px play button,
 * the title and "YouTube · lädt erst nach Klick" in mono. The privacy note stays, small.
 */
.sws-twoclick--video .sws-twoclick__stage {
	--sws-contours: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320' fill='none' stroke='black' stroke-width='1.2'%3E%3Cpath d='M0 36C60 20 100 58 170 40S270 22 320 36M0 70C50 58 120 92 180 74S280 60 320 70M0 270C70 252 110 290 190 276S280 258 320 270M0 302C40 296 130 318 200 306S290 294 320 302'/%3E%3Cpath d='M118 128c34-26 104-30 140-6s30 70-12 92-104 26-136 4-26-66 8-90z'/%3E%3Cpath d='M142 140c26-16 76-16 98 2s16 46-14 60-74 14-94-2-16-44 10-60z'/%3E%3Cpath d='M172 156c14-6 36-4 44 6s2 24-16 28-38 0-40-12 0-18 12-22z'/%3E%3C/svg%3E");
	isolation: isolate;
	border: 0;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--navy-deep);
}

.sws-twoclick--video:not(.sws-twoclick--poster) .sws-twoclick__stage::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--wp--preset--color--white);
	opacity: 0.08;
	-webkit-mask: var(--sws-contours) 0 0 / 480px repeat;
	mask: var(--sws-contours) 0 0 / 480px repeat;
	pointer-events: none;
}

.sws-twoclick--video.sws-twoclick--poster .sws-twoclick__stage::before {
	background: linear-gradient(0deg, color-mix(in srgb, var(--wp--preset--color--navy-deep) 85%, transparent) 0, color-mix(in srgb, var(--wp--preset--color--navy-deep) 30%, transparent) 60%);
}

.sws-twoclick--video .sws-twoclick__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--wp--preset--spacing--40);
}

.sws-twoclick--video .sws-twoclick__load {
	order: -1;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-block-end: var(--wp--preset--spacing--30);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--red);
	box-shadow: 0 6px 24px color-mix(in srgb, var(--wp--preset--color--navy-deep) 45%, transparent);
}

.sws-twoclick--video .sws-twoclick__load:hover {
	background: var(--wp--preset--color--red-hover);
}

.sws-twoclick--video .sws-twoclick__load:focus-visible {
	outline: var(--wp--custom--focus-ring-inverse);
	outline-offset: 3px;
}

.sws-twoclick__play {
	width: 22px;
	height: 24px;
	margin-inline-start: 5px;
	background: var(--wp--preset--color--white);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.sws-twoclick__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.sws-twoclick--video .sws-twoclick__title {
	color: var(--wp--preset--color--white);
}

.sws-twoclick--video .sws-twoclick__provider {
	color: var(--wp--preset--color--navy-tint);
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.sws-twoclick--video .sws-twoclick__card > .sws-twoclick__note {
	max-width: 30rem;
	margin-block-end: 0;
	color: var(--wp--preset--color--navy-tint);
	font-size: var(--wp--preset--font-size--label);
}

.sws-twoclick--video .sws-twoclick__note a {
	color: var(--wp--preset--color--white);
}

@media (max-width: 599px) {
	.sws-twoclick--video .sws-twoclick__card > .sws-twoclick__note {
		display: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.sws-twoclick--video .sws-twoclick__load {
		transition: transform var(--wp--custom--transition), background-color var(--wp--custom--transition);
	}

	.sws-twoclick--video .sws-twoclick__load:hover {
		transform: scale(1.06);
	}
}
