/* Auth / global flash toast — fixed, above modal + header chrome */
.gl-toast-host {
	position: fixed;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: var(--gl-z-toast, 100110);
	width: min(92vw, 420px);
	pointer-events: none;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

.gl-toast {
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px 12px 16px;
	border-radius: 4px;
	background: #6bbd6e;
	color: #fff;
	opacity: 1;
	font-family: var(--hdr-font, 'Open Sans', 'Avenir Next', sans-serif);
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 1.4;
	box-shadow: 0 10px 28px rgba(12, 28, 46, 0.22);
	animation: glToastIn 0.22s ease both;
}

.gl-toast--error {
	background: #c62828;
}

.gl-toast__text {
	flex: 1;
	min-width: 0;
}

.gl-toast__close {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: inherit;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.gl-toast__close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.gl-toast__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.gl-toast.is-leaving {
	animation: glToastOut 0.18s ease forwards;
}

@keyframes glToastIn {
	from { opacity: 0; transform: translateY(-10px); }
	to   { opacity: 1; transform: none; }
}

@keyframes glToastOut {
	from { opacity: 1; transform: none; }
	to   { opacity: 0; transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
	.gl-toast,
	.gl-toast.is-leaving { animation: none; }
}

/* Stay top-aligned on mobile so sticky CTAs (Kontakt oss) never cover the toast. */
