/* Home Pop-up 1.2.2 */
.home-popup {
	--hp-primary: #085b7c;
	--hp-accent: #4198a8;
	--hp-text: #2f3d44;
	--hp-white: #ffffff;
	--hp-top: 100px;
	--hp-title-font: "Outfit", inherit;

	position: absolute;
	top: var(--hp-top);
	right: 0;
	z-index: 9000;
	box-sizing: border-box;
	font-family: inherit;
	opacity: 0;
	transition: opacity .45s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
}

.home-popup[hidden] {
	display: none !important;
}

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

.home-popup p {
	margin: 0;
	padding: 0;
}

.home-popup.is-visible {
	opacity: 1;
	transform: none;
}

.home-popup__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.home-popup__title {
	font-family: var(--hp-title-font);
	font-weight: 400;
	line-height: 1.1;
}

.home-popup__when {
	display: flex;
	flex-direction: column;
}

.home-popup__button {
	display: inline-block;
	text-decoration: none !important;
	font-weight: 500;
	line-height: 1.2;
	border-radius: 0 !important;
	transition: background-color .2s ease, color .2s ease;
}

.home-popup__close {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0 !important;
	background: transparent;
	color: inherit;
	cursor: pointer;
	box-shadow: none;
}

.home-popup a:focus-visible,
.home-popup button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.home-popup__preview {
	position: absolute;
	top: 0;
	left: 0;
	transform: translateY(-100%);
	padding: 3px 8px;
	font-size: 11px;
	line-height: 1.4;
	background: #996800;
	color: #fff;
}

/* ---------- Desktop: Karte oben rechts ---------- */
@media (min-width: 1000px) {
	.home-popup {
		width: min(420px, 34vw);
		background: var(--hp-white);
		color: var(--hp-text);
		transform: translateX(40px);
		box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
	}

	.home-popup__inner {
		position: relative;
		padding: 56px 48px 44px;
	}

	.home-popup__icon {
		display: none;
	}

	.home-popup__title {
		font-size: var(--hp-title-size, clamp(32px, 3vw, 48px));
		color: var(--hp-accent);
		margin-bottom: 22px !important;
	}

	.home-popup__text {
		font-size: 17px;
		line-height: 1.5;
		margin-bottom: 14px !important;
	}

	.home-popup__when {
		font-size: 20px;
		line-height: 1.35;
		color: var(--hp-text);
	}

	.home-popup__button {
		margin-top: 26px;
		padding: 12px 22px;
		font-size: 15px;
		background: var(--hp-primary);
		color: var(--hp-white) !important;
	}

	.home-popup__button:hover {
		background: var(--hp-accent);
	}

	.home-popup__close {
		top: 14px;
		right: 14px;
		color: var(--hp-text);
	}

	.home-popup__close:hover {
		color: var(--hp-primary);
	}
}

/* ---------- Mobil: Leiste unter dem Header ---------- */
@media (max-width: 999px) {
	.home-popup {
		position: relative;
		top: auto;
		right: auto;
		left: auto;
		width: 100%;
		margin-top: var(--hp-offset, 0px);
		max-height: 0;
		overflow: hidden;
		background: var(--hp-primary);
		color: var(--hp-white);
		transition: opacity .45s ease, max-height .5s cubic-bezier(.22, .61, .36, 1);
	}

	.home-popup.is-visible {
		max-height: var(--hp-height, 600px);
	}

	.home-popup__inner {
		position: relative;
		display: flex;
		align-items: flex-start;
		gap: 12px;
		padding: 12px 56px 14px 16px;
	}

	.home-popup__icon {
		flex: 0 0 auto;
		margin-top: 2px;
	}

	.home-popup__content {
		flex: 1 1 0;
		min-width: 0;
	}

	.home-popup__title {
		font-size: 17px;
		font-weight: 500;
		color: var(--hp-white);
	}

	.home-popup__text,
	.home-popup__when {
		font-size: 14px;
		line-height: 1.45;
		margin-top: 2px !important;
	}

	.home-popup__when {
		flex-direction: row;
		flex-wrap: wrap;
		column-gap: .35em;
	}

	.home-popup__date:not(:last-child)::after {
		content: ",";
	}

	.home-popup__button {
		margin-top: 10px;
		padding: 8px 14px;
		font-size: 14px;
		border: 1px solid var(--hp-white);
		color: var(--hp-white) !important;
		background: transparent;
	}

	.home-popup__button:hover {
		background: var(--hp-white);
		color: var(--hp-primary) !important;
	}

	.home-popup__close {
		top: 4px;
		right: 4px;
		color: var(--hp-white);
	}

	.home-popup__preview {
		transform: none;
		position: static;
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-popup {
		transition: none !important;
		transform: none !important;
	}
}
