/* Job-Einblendung: Karte, die nur bei passendem Besuch einfährt (Desktop seitlich, Handy von unten) */
.lj-spot[hidden] { display: none; }
.lj-spot { position: fixed; z-index: 150; pointer-events: none; contain: layout style; font-family: "Inter", sans-serif; }
.lj-spot__card {
	position: relative;
	box-sizing: border-box;
	pointer-events: auto;
	background: #fff;
	color: #1f2933;
	border-radius: 8px;
	box-shadow: 0 10px 34px rgba(15, 23, 42, .22), 0 0 0 1px rgba(15, 23, 42, .06);
	padding: 1rem 1rem .9rem;
	opacity: 0;
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .35s ease;
}
.lj-spot__card.is-in { opacity: 1; transform: none; }
.lj-spot__head { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; padding-right: 1.6rem; }
.lj-spot__sponsor { color: #6b7280; font-size: .72rem; line-height: 1; }
.lj-spot__badge {
	display: inline-block;
	padding: .15rem .55rem;
	border-radius: 999px;
	background: #dc2626;
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.lj-spot__close {
	position: absolute;
	top: .35rem;
	right: .4rem;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	background: transparent;
	color: #6b7280;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}
.lj-spot__close:hover,
.lj-spot__close:focus-visible { color: #111827; }
.lj-spot__why { margin: 0 0 .75rem; padding-right: 1.6rem; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.lj-spot__job {
	display: flex;
	align-items: center;
	gap: .75rem;
	color: inherit;
	text-decoration: none;
}
.lj-spot__logo {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	object-fit: contain;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #fff;
}
.lj-spot__text { display: flex; flex-direction: column; min-width: 0; gap: .1rem; }
.lj-spot__cat { color: #6b7280; font-size: .75rem; }
.lj-spot__title { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.lj-spot__job:hover .lj-spot__title { text-decoration: underline; }
.lj-spot__meta { color: #4b5563; font-size: .82rem; }
.lj-spot__cta {
	display: block;
	margin-top: .8rem;
	padding: .55rem 1rem;
	border-radius: var(--lj-btn-radius, 4px);
	background: var(--bs-primary, #0d6efd);
	color: #fff;
	font-size: .92rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}
.lj-spot__cta:hover,
.lj-spot__cta:focus-visible { color: #fff; filter: brightness(1.08); }

/* Desktop: schwebt langsam von unten ein, unten rechts mit Abstand zum «Nach oben»-Pfeil (nichts verschiebt sich, nur Deckkraft und Position der Karte) */
@media (min-width: 992px) {
	.lj-spot { right: 4.5rem; bottom: 1.5rem; width: 380px; }
	.lj-spot__card { transform: translate3d(0, 2.5rem, 0); transition: transform 1.1s cubic-bezier(.22, .8, .24, 1), opacity .9s ease; }
}

/* Handy und Tablet: Bottom-Sheet über die volle Breite, fährt von unten hoch (über der Tabbar) */
@media (max-width: 991px) {
	.lj-spot { left: 0; right: 0; bottom: 0; }
	.lj-spot__card {
		padding: 1.35rem 1.1rem 1.1rem;
		border-radius: 18px 18px 0 0;
		box-shadow: 0 -10px 34px rgba(15, 23, 42, .22);
		transform: translateY(105%);
	}
	/* Griff */
	.lj-spot__card::before {
		content: "";
		position: absolute;
		top: .5rem;
		left: 50%;
		width: 2.5rem;
		height: 4px;
		margin-left: -1.25rem;
		border-radius: 2px;
		background: #d1d5db;
	}
	.lj-spot__head { margin-bottom: .6rem; }
	.lj-spot__close { top: .85rem; right: .5rem; width: 2.75rem; height: 2.75rem; }
	.lj-spot__why { font-size: 1rem; margin-bottom: .8rem; }
	.lj-spot__job { gap: .9rem; }
	.lj-spot__logo { width: 64px; height: 64px; }
	.lj-spot__title { font-size: 1.1rem; }
	.lj-spot__meta { font-size: .88rem; }
	.lj-spot__cta { margin-top: 1rem; padding: .8rem 1rem; font-size: 1rem; }
}
@media (max-width: 767px) {
	.lj-spot { z-index: 190; bottom: calc(var(--lj-mobile-tabbar-height, 3.9rem) + env(safe-area-inset-bottom, 0px)); }
	.lj-spot__card { padding-bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	.lj-spot__card { transform: none; transition: opacity .2s ease; }
}
