.hlgps-wrap {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	clear: both;
}

.hlgps-button {
	max-width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hlgps-button > * {
	max-width: 100%;
}

@media (max-width: 480px) {
	.hlgps-wrap {
		padding-left: 8px;
		padding-right: 8px;
	}
}

@media (min-width: 481px) {
	.hlgps-wrap {
		padding-left: 12px;
		padding-right: 12px;
	}
}


/* Homepage Preferred Source popup */
.hlgps-popup[hidden] {
	display: none !important;
}

.hlgps-popup {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.hlgps-popup-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.64);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.hlgps-popup-dialog {
	position: relative;
	z-index: 1;
	width: min(92vw, 480px);
	max-height: min(88vh, 720px);
	overflow: auto;
	box-sizing: border-box;
	padding: 30px 22px 24px;
	border-radius: 22px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.68));
	border: 1px solid rgba(255, 255, 255, 0.72);
	color: #17202a;
	box-shadow: 0 22px 70px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(22px) saturate(145%);
	-webkit-backdrop-filter: blur(22px) saturate(145%);
	text-align: center;
	/* Scrollbar bleibt funktional, wird aber nicht sichtbar dargestellt. */
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.hlgps-popup-dialog::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.hlgps-popup-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #59636e;
	font-size: 30px;
	line-height: 40px;
	cursor: pointer;
}

.hlgps-popup-close:hover,
.hlgps-popup-close:focus-visible {
	background: #f0f2f4;
	color: #111827;
}

.hlgps-popup-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: linear-gradient(145deg, #17202f, #0f172a);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 25px;
	font-weight: 700;
}

.hlgps-popup-dialog h2 {
	margin: 0 20px 12px;
	font-size: clamp(23px, 5vw, 30px);
	line-height: 1.18;
}

.hlgps-popup-dialog p {
	margin: 0 auto 20px;
	max-width: 390px;
	font-size: 16px;
	line-height: 1.5;
}

.hlgps-popup-google {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 66px;
	margin: 6px 0 14px;
	overflow: visible;
}

/*
 * The homepage popup deliberately uses a native link to Google's official
 * Preferred Source deeplink instead of the standard cross-origin widget.
 * This removes the iframe completely, so mobile Chrome cannot expose an
 * iframe scrollbar beside the button. Google documents this deeplink as an
 * official Preferred Source implementation.
 */
.hlgps-popup-google-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	box-sizing: border-box;
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 999px;
	background: #202124;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.hlgps-popup-google-link:hover,
.hlgps-popup-google-link:focus-visible {
	background: #17181a;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.10);
}

.hlgps-popup-google-link:active {
	transform: translateY(1px);
}

.hlgps-google-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 27px;
	font-weight: 700;
	line-height: 1;
	background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 25% 45%, #fbbc05 45% 65%, #ea4335 65% 85%, #4285f4 85% 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@media (max-width: 480px) {
	.hlgps-popup-google-link {
		width: min(100%, 490px);
		padding-left: 18px;
		padding-right: 18px;
		font-size: 16px;
	}
}

.hlgps-popup-note {
	margin-bottom: 0 !important;
	font-size: 12px !important;
	color: #6b7280;
}

html.hlgps-popup-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.hlgps-popup {
		padding: 12px;
	}

	.hlgps-popup-dialog {
		width: 100%;
		padding: 28px 16px 20px;
		border-radius: 20px;
		background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(248, 250, 252, 0.70));
		backdrop-filter: blur(20px) saturate(140%);
		-webkit-backdrop-filter: blur(20px) saturate(140%);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.hlgps-popup-dialog {
		animation: hlgps-popup-in 160ms ease-out;
	}

	@keyframes hlgps-popup-in {
		from { opacity: 0; transform: translateY(10px) scale(.985); }
		to { opacity: 1; transform: translateY(0) scale(1); }
	}
}


.hlgps-stats-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(130px, 1fr));
	gap: 12px;
	max-width: 1100px;
	margin: 18px 0;
}

.hlgps-stat-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 18px;
	box-sizing: border-box;
}

.hlgps-stat-card span {
	display: block;
	font-size: 13px;
	opacity: .72;
	margin-bottom: 8px;
}

.hlgps-stat-card strong {
	display: block;
	font-size: 25px;
	line-height: 1.1;
}

@media (max-width: 900px) {
	.hlgps-stats-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}

@media (max-width: 480px) {
	.hlgps-stats-grid { grid-template-columns: 1fr; }
}
