/* YHP Floating Teaser */

.yhp-teaser {
	position: fixed;
	right: 24px;
	bottom: 24px;
	/* Über dem Seiteninhalt, unter der Borlabs-Cookie-Box (999999). */
	z-index: 99990;
	box-sizing: border-box;
	width: 360px;
	max-width: calc(100vw - 48px);
	padding: 20px 22px 22px;
	border: 2px solid #ffdb8a;
	border-radius: 10px;
	background: #fff6e0;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	color: #2b2118;
	font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	text-align: left;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.yhp-teaser[hidden] {
	display: none;
}

.yhp-teaser.is-visible {
	opacity: 1;
	transform: none;
}

.yhp-teaser p {
	margin: 0;
	padding: 0;
}

.yhp-teaser .yhp-teaser__label {
	padding-right: 36px;
	color: #8a5a00;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.yhp-teaser .yhp-teaser__title {
	margin-top: 6px;
	padding-right: 20px;
	color: #2b2118;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.yhp-teaser .yhp-teaser__text {
	margin-top: 8px;
	color: #5b5346;
}

.yhp-teaser .yhp-teaser__highlight {
	margin-top: 8px;
	color: #8a5a00;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.yhp-teaser .yhp-teaser__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	margin-top: 16px;
	padding: 10px 14px;
	border: 2px solid #ffb400;
	border-radius: 2px;
	background: #fffdf7;
	color: #8a5a00;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.yhp-teaser .yhp-teaser__btn:hover,
.yhp-teaser .yhp-teaser__btn:focus-visible {
	background: #ffb400;
	color: #2b2118;
}

.yhp-teaser .yhp-teaser__arrow {
	transition: transform 0.2s ease;
}

.yhp-teaser .yhp-teaser__btn:hover .yhp-teaser__arrow {
	transform: translateX(3px);
}

.yhp-teaser .yhp-teaser__hint {
	margin-top: 8px;
	color: #5b5346;
	font-size: 12px;
	text-align: center;
}

.yhp-teaser .yhp-teaser__close {
	position: absolute;
	top: 2px;
	right: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #2b2118;
	font-family: Arial, sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.yhp-teaser .yhp-teaser__close:hover {
	color: #8a5a00;
}

.yhp-teaser .yhp-teaser__close:focus-visible,
.yhp-teaser .yhp-teaser__btn:focus-visible {
	outline: 2px solid #2b2118;
	outline-offset: 2px;
}

/* Reiter zum Wiederöffnen: sitzt bündig am unteren Rand. */
.yhp-teaser-tab {
	position: fixed;
	right: 24px;
	bottom: 0;
	z-index: 99989;
	display: flex;
	align-items: center;
	gap: 9px;
	box-sizing: border-box;
	min-height: 40px;
	margin: 0;
	padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
	border: 2px solid #ffdb8a;
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	background: #fff6e0;
	box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.14);
	color: #8a5a00;
	font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transform: translateY(100%);
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.yhp-teaser-tab[hidden] {
	display: none;
}

.yhp-teaser-tab.is-visible {
	transform: none;
}

.yhp-teaser-tab:hover,
.yhp-teaser-tab:focus-visible {
	background: #ffb400;
	color: #2b2118;
}

.yhp-teaser-tab:focus-visible {
	outline: 2px solid #2b2118;
	outline-offset: 2px;
}

/* Reiter je Gerät abschaltbar. */
@media (min-width: 768px) {
	.yhp-teaser-tab.yhp-teaser-tab--no-desktop {
		display: none;
	}

	.yhp-teaser-tab .yhp-teaser-tab__m {
		display: none;
	}
}

@media (max-width: 767px) {
	.yhp-teaser-tab.yhp-teaser-tab--no-mobile {
		display: none;
	}

	.yhp-teaser-tab .yhp-teaser-tab__d {
		display: none;
	}
}

/* Nur für Screenreader. */
.yhp-teaser-tab .yhp-teaser-tab__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Pfeil nach oben. */
.yhp-teaser-tab .yhp-teaser-tab__icon {
	width: 7px;
	height: 7px;
	margin-top: 4px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(-45deg);
}

/* Desktop- und Mobil-Fassung der Texte. */
.yhp-teaser .yhp-teaser__m {
	display: none;
}

@media (max-width: 767px) {
	.yhp-teaser {
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		left: 12px;
		width: auto;
		max-width: none;
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		padding: 14px 16px 16px;
		overflow-y: auto;
		font-size: 14px;
	}

	.yhp-teaser-tab {
		right: 12px;
		min-height: 44px;
	}

	.yhp-teaser .yhp-teaser__d {
		display: none;
	}

	.yhp-teaser .yhp-teaser__m {
		display: inline;
	}

	.yhp-teaser .yhp-teaser__title {
		margin-top: 4px;
		font-size: 17px;
	}

	.yhp-teaser .yhp-teaser__text,
	.yhp-teaser .yhp-teaser__highlight {
		margin-top: 6px;
	}

	.yhp-teaser .yhp-teaser__highlight {
		font-size: 15px;
	}

	.yhp-teaser .yhp-teaser__btn {
		margin-top: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yhp-teaser-tab {
		transform: none;
		transition: none;
	}

	.yhp-teaser,
	.yhp-teaser .yhp-teaser__btn,
	.yhp-teaser .yhp-teaser__arrow {
		transform: none;
		transition: none;
	}
}

@media print {
	.yhp-teaser,
	.yhp-teaser-tab {
		display: none !important;
	}
}
