/* Abgefahrn – Lead-Popup & Live-Meldungen */
#abg-tk,
#abg-pop-ov {
	--abg-g: #39FF14;
	--abg-grey: #cfcfcf;
	font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
	line-height: 1.3;
	-webkit-font-smoothing: antialiased;
	text-align: left;
}
#abg-tk *,
#abg-pop-ov * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
}

/* ===== LIVE-MELDUNG (small pop-up, bottom left) ===== */
#abg-tk.abg-toast {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 9990;
	box-sizing: border-box;
	display: flex !important; /* [hidden] only hides it until this CSS has loaded */
	align-items: center;
	gap: 10px;
	width: max-content;
	max-width: min(360px, calc(100vw - 96px)); /* keeps clear of the WhatsApp button on the right */
	padding: 9px 30px 9px 9px;
	background: rgba(13, 13, 18, .96);
	border: 1px solid rgba(57, 255, 20, .45);
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .45), 0 0 16px rgba(57, 255, 20, .14);
	color: #eee;
	font-size: 13.5px;
	line-height: 1.35;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px) scale(.98);
	transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
	pointer-events: none;
}
#abg-tk.abg-toast.is-in {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .4s ease, transform .4s ease, visibility 0s;
	pointer-events: auto;
}
#abg-tk .abg-toast-live {
	flex: 0 0 auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 1px;
	padding: 2px 6px;
	border-radius: 999px;
	background: #e11d2e;
	color: #fff;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .6px;
	line-height: 1.4;
}
#abg-tk .abg-tk-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #fff;
	animation: abg-blink 1.1s infinite;
}
@keyframes abg-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
#abg-tk .abg-toast-ic { flex: 0 0 auto; font-size: 18px; line-height: 1; }
#abg-tk .abg-toast-body { display: flex; flex-direction: column; min-width: 0; }
#abg-tk .abg-toast-tx { color: #eee; }
#abg-tk .abg-toast-tx b { color: var(--abg-g); font-weight: 800; }
#abg-tk .abg-toast-time { margin-top: 2px; color: #8a8a95; font-size: 11px; }
#abg-tk .abg-toast-time:empty { display: none; }
#abg-tk button.abg-toast-x,
#abg-tk button.abg-toast-x:hover,
#abg-tk button.abg-toast-x:focus {
	position: absolute;
	top: 3px;
	right: 4px;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: #6f6f78;
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}
#abg-tk button.abg-toast-x:hover,
#abg-tk button.abg-toast-x:focus-visible { color: #fff; }

@media (max-width: 767px) {
	#abg-tk.abg-toast {
		left: 10px;
		bottom: 12px;
		gap: 8px;
		max-width: calc(100vw - 86px);
		padding: 8px 28px 8px 8px;
		font-size: 12.5px;
	}
	#abg-tk .abg-toast-ic { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	#abg-tk.abg-toast,
	#abg-tk.abg-toast.is-in { transform: none; }
	#abg-tk .abg-tk-dot { animation: none; }
}
html.abg-pop-open #abg-tk.abg-toast { opacity: 0; visibility: hidden; }

/* ===== LEAD POPUP ===== */
#abg-pop-ov {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: rgba(0, 0, 0, .72);
}
#abg-pop-ov.is-open { display: flex !important; }
html.abg-pop-open,
html.abg-pop-open body { overflow: hidden !important; }

#abg-pop-ov .abg-pop {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin: auto;
	padding: 30px 26px 26px;
	background: linear-gradient(160deg, #16161d 0%, #0d0d12 100%);
	border: 2px solid var(--abg-g);
	border-radius: 22px;
	box-shadow: 0 0 50px rgba(57, 255, 20, .35), 0 20px 60px rgba(0, 0, 0, .6);
	color: #fff;
	text-align: center;
	outline: none;
	animation: abg-pop .35s ease;
}
@keyframes abg-pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#abg-pop-ov button.abg-pop-x,
#abg-pop-ov button.abg-pop-x:hover,
#abg-pop-ov button.abg-pop-x:focus {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: #888;
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}
#abg-pop-ov button.abg-pop-x:hover,
#abg-pop-ov button.abg-pop-x:focus-visible { color: #fff; }

#abg-pop-ov .abg-pop-logo {
	display: block;
	width: 167px;
	height: 34px;
	margin: 0 auto 18px;
	background: url(logo.png) center / contain no-repeat;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6));
}
#abg-pop-ov .abg-pop-h {
	color: #fff;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.5px;
	text-align: center;
}
#abg-pop-ov .abg-pop-sub {
	margin-top: 8px;
	color: var(--abg-g);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-shadow: 0 0 16px rgba(57, 255, 20, .4);
}
#abg-pop-ov .abg-pop-body {
	margin-top: 12px;
	color: var(--abg-grey);
	font-size: 13.5px;
	line-height: 1.45;
	text-align: center;
}

#abg-pop-ov input.abg-pop-field {
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	margin-top: 14px;
	padding: 15px 18px;
	border: 1.5px solid #2a2a33;
	border-radius: 40px;
	background: #0b0b10;
	box-shadow: none;
	color: #fff;
	font-size: 16px; /* 16px keeps iOS from zooming in */
	line-height: 1.2;
	text-align: left;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none;
	appearance: none;
}
#abg-pop-ov input.abg-pop-field::placeholder { color: #777; opacity: 1; }
#abg-pop-ov input.abg-pop-field:focus {
	border-color: var(--abg-g);
	box-shadow: 0 0 0 3px rgba(57, 255, 20, .12);
}
#abg-pop-ov input.abg-pop-field.is-invalid { border-color: #ff5a5a; }

#abg-pop-ov .abg-pop-label {
	margin-top: 18px;
	margin-bottom: 8px;
	color: #aaa;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}
#abg-pop-ov .abg-pop-choice { display: flex; gap: 10px; }
#abg-pop-ov .abg-pop-choice button,
#abg-pop-ov .abg-pop-choice button:hover,
#abg-pop-ov .abg-pop-choice button:focus {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 14px;
	border: 1.5px solid #2a2a33;
	border-radius: 40px;
	background: #0b0b10;
	box-shadow: none;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: all .18s;
}
#abg-pop-ov .abg-pop-choice button:hover { border-color: #3d3d48; }
#abg-pop-ov .abg-pop-choice button[aria-pressed="true"],
#abg-pop-ov .abg-pop-choice button[aria-pressed="true"]:hover,
#abg-pop-ov .abg-pop-choice button[aria-pressed="true"]:focus {
	background: rgba(57, 255, 20, .15);
	border-color: var(--abg-g);
	color: var(--abg-g);
	box-shadow: 0 0 18px rgba(57, 255, 20, .25);
}

#abg-pop-ov button.abg-pop-cta,
#abg-pop-ov button.abg-pop-cta:hover,
#abg-pop-ov button.abg-pop-cta:focus {
	display: block;
	width: 100%;
	margin-top: 22px;
	padding: 17px;
	border: 0;
	border-radius: 40px;
	background: var(--abg-g);
	box-shadow: 0 0 30px rgba(57, 255, 20, .45);
	color: #06120a;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
	transition: transform .15s;
}
#abg-pop-ov button.abg-pop-cta:hover { transform: translateY(-2px); }
#abg-pop-ov button.abg-pop-cta[disabled] { opacity: .65; cursor: wait; transform: none; }

#abg-pop-ov .abg-pop-err { margin-top: 10px; color: #ff8080; font-size: 13px; line-height: 1.4; text-align: center; }
#abg-pop-ov .abg-pop-err:empty { display: none; }
#abg-pop-ov .abg-pop-err a { color: var(--abg-g); text-decoration: underline; }
#abg-pop-ov .abg-pop-trust { margin-top: 14px; color: #9a9a9a; font-size: 12.5px; text-align: center; }
#abg-pop-ov .abg-pop-consent { margin-top: 10px; color: #666; font-size: 10.5px; line-height: 1.4; text-align: center; }
#abg-pop-ov .abg-pop-consent a { color: #888; text-decoration: underline; }

#abg-pop-ov .abg-pop-thanks { display: none; padding: 10px 0; text-align: center; }
#abg-pop-ov .abg-pop.is-done .abg-pop-form { display: none; }
#abg-pop-ov .abg-pop.is-done .abg-pop-thanks { display: block; animation: abg-pop .3s ease; }
#abg-pop-ov .abg-pop-thanks-emoji { font-size: 54px; line-height: 1.1; }
#abg-pop-ov .abg-pop-thanks-h { margin-top: 10px; color: #fff; font-size: 24px; font-weight: 800; }
#abg-pop-ov .abg-pop-thanks-p { margin-top: 10px; color: var(--abg-grey); font-size: 15px; line-height: 1.5; }

#abg-pop-ov .abg-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}
#abg-pop-ov .abg-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}

@media (max-width: 420px) {
	#abg-pop-ov { padding: 12px; }
	#abg-pop-ov .abg-pop { padding: 26px 18px 20px; border-radius: 20px; }
	#abg-pop-ov .abg-pop-h { font-size: 26px; }
	#abg-pop-ov button.abg-pop-cta,
	#abg-pop-ov button.abg-pop-cta:hover,
	#abg-pop-ov button.abg-pop-cta:focus { font-size: 15px; padding: 16px 12px; }
}
@media (max-height: 680px) {
	#abg-pop-ov .abg-pop-logo { margin-bottom: 10px; height: 28px; }
	#abg-pop-ov .abg-pop-body { display: none; }
	#abg-pop-ov input.abg-pop-field { margin-top: 10px; padding: 13px 16px; }
	#abg-pop-ov .abg-pop-label { margin-top: 12px; }
	#abg-pop-ov button.abg-pop-cta { margin-top: 16px; padding: 15px; }
}

@media print { #abg-tk, #abg-pop-ov { display: none !important; } }
