/*
 * Jobnetics Jobs – Liquid Glass
 * Farben der Seite: Navy #22253d · Indigo #4f578d · Lavendel #a6abcd · Himmel #ced6ea · Akzent #f73760
 */

.jnj {
	--jnj-navy: #22253d;
	--jnj-ink-2: #4a4e57;
	--jnj-indigo: #4f578d;
	--jnj-lav: #a6abcd;
	--jnj-sky: #ced6ea;
	--jnj-pink: #f73760;
	--jnj-pink-strong: #d92a55;
	--jnj-green: #12b878;

	--jnj-glass-bg: linear-gradient(135deg, rgba(255, 255, 255, .58) 0%, rgba(255, 255, 255, .26) 100%);
	--jnj-blur: blur(24px) saturate(185%);
	--jnj-ease: cubic-bezier(.22, 1, .36, 1);
	--jnj-ease-spring: cubic-bezier(.34, 1.56, .64, 1);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 1.5rem 0;
	padding: clamp(18px, 3.5vw, 44px);
	border-radius: clamp(28px, 4vw, 40px);
	color: var(--jnj-navy);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	background: linear-gradient(160deg, #dfe5f3 0%, var(--jnj-sky) 55%, #c3cce6 100%);
	-webkit-font-smoothing: antialiased;
}

.jnj *, .jnj *::before, .jnj *::after { box-sizing: border-box; }
.jnj [hidden] { display: none !important; }

/* ---------- Hintergrund, den das Glas bricht ---------- */
.jnj-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.jnj-blob { position: absolute; display: block; border-radius: 50%; filter: blur(60px); opacity: .75; will-change: transform; }
.jnj-blob--1 { width: 46%; aspect-ratio: 1; left: -10%; top: -12%; background: radial-gradient(circle, #4f578d 0%, rgba(79, 87, 141, 0) 70%); animation: jnj-drift-a 26s ease-in-out infinite alternate; }
.jnj-blob--2 { width: 38%; aspect-ratio: 1; right: -8%; top: 18%; background: radial-gradient(circle, rgba(247, 55, 96, .75) 0%, rgba(247, 55, 96, 0) 70%); animation: jnj-drift-b 32s ease-in-out infinite alternate; }
.jnj-blob--3 { width: 50%; aspect-ratio: 1; left: 22%; bottom: -22%; background: radial-gradient(circle, rgba(94, 140, 255, .65) 0%, rgba(94, 140, 255, 0) 70%); animation: jnj-drift-c 29s ease-in-out infinite alternate; }

@keyframes jnj-drift-a { to { transform: translate(14%, 18%) scale(1.15); } }
@keyframes jnj-drift-b { to { transform: translate(-16%, 22%) scale(.9); } }
@keyframes jnj-drift-c { to { transform: translate(-12%, -16%) scale(1.2); } }

/* ---------- Liquid-Glass-Material ---------- */
.jnj-glass {
	position: relative;
	isolation: isolate;
	background: var(--jnj-glass-bg);
	-webkit-backdrop-filter: var(--jnj-blur);
	backdrop-filter: var(--jnj-blur);
	border-radius: 28px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .85),
		inset 0 -1px 0 rgba(255, 255, 255, .22),
		inset 0 0 22px rgba(255, 255, 255, .18),
		0 14px 34px -14px rgba(34, 37, 61, .32),
		0 2px 6px rgba(34, 37, 61, .06);
}
/* Verlaufsrand (Spekulär-Kante) */
.jnj-glass::after {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	pointer-events: none;
	background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .12) 40%, rgba(255, 255, 255, .06) 60%, rgba(255, 255, 255, .7));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* Mitlaufender Lichtreflex */
.jnj-glass::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 55%);
	transition: opacity .35s var(--jnj-ease);
}
.jnj-card:hover::before, .jnj-card:focus-within::before { opacity: 1; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.jnj-glass { background: rgba(255, 255, 255, .82); }
}
@media (prefers-reduced-transparency: reduce) {
	.jnj-glass { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.jnj-blob { opacity: .35; }
}

/* ---------- Filter ---------- */
.jnj-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	padding: 10px;
	margin-bottom: 18px;
	border-radius: 999px;
}
.jnj-search, .jnj-select {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 46px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .5);
	box-shadow: inset 0 1px 2px rgba(34, 37, 61, .08), inset 0 0 0 1px rgba(255, 255, 255, .6);
	transition: box-shadow .25s var(--jnj-ease), background .25s var(--jnj-ease);
}
.jnj-search { flex: 1 1 240px; padding-left: 16px; gap: 8px; color: var(--jnj-indigo); }
.jnj-select { flex: 0 1 200px; }
.jnj-search:focus-within, .jnj-select:focus-within { background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 2px var(--jnj-pink), 0 0 0 4px rgba(247, 55, 96, .18); }

.jnj input[type="search"], .jnj select {
	width: 100%;
	min-height: 46px;
	padding: 0 16px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--jnj-navy);
	font: inherit;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.jnj input[type="search"]::placeholder { color: #6c7090; opacity: 1; }
.jnj-search input[type="search"] { padding-left: 0; }
.jnj-select::after {
	content: "";
	position: absolute;
	right: 18px;
	width: 7px; height: 7px;
	border-right: 2px solid var(--jnj-indigo);
	border-bottom: 2px solid var(--jnj-indigo);
	transform: rotate(45deg) translateY(-2px);
	pointer-events: none;
}
.jnj select { padding-right: 40px; cursor: pointer; }

/* Segmented Control (iOS-Stil) */
.jnj-segment {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 2px;
	margin: 0;
	padding: 3px;
	border: 0;
	border-radius: 999px;
	background: rgba(34, 37, 61, .08);
	box-shadow: inset 0 1px 2px rgba(34, 37, 61, .1);
}
.jnj-segment label { position: relative; margin: 0; cursor: pointer; }
.jnj-segment input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.jnj-segment span {
	display: block;
	padding: 9px 16px;
	min-height: 40px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--jnj-ink-2);
	transition: background .3s var(--jnj-ease), color .3s var(--jnj-ease), box-shadow .3s var(--jnj-ease);
}
.jnj-segment input:checked + span {
	background: #fff;
	color: var(--jnj-navy);
	box-shadow: 0 2px 8px rgba(34, 37, 61, .16), 0 0 0 .5px rgba(34, 37, 61, .06);
}
.jnj-segment input:focus-visible + span { outline: 2px solid var(--jnj-pink); outline-offset: 2px; }

.jnj-count { margin: 4px 6px 14px; font-size: 14px; font-weight: 600; color: var(--jnj-indigo); }

/* ---------- Raster & Kacheln ---------- */
.jnj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }

.jnj-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	min-height: 220px;
	transition: transform .5s var(--jnj-ease-spring), box-shadow .5s var(--jnj-ease);
	animation: jnj-in .6s var(--jnj-ease) both;
}
.jnj-card:hover {
	transform: translateY(-5px) scale(1.012);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .95),
		inset 0 -1px 0 rgba(255, 255, 255, .28),
		inset 0 0 26px rgba(255, 255, 255, .3),
		0 26px 48px -18px rgba(34, 37, 61, .4),
		0 4px 10px rgba(34, 37, 61, .08);
}
.jnj-card:active { transform: scale(.985); transition-duration: .15s; }
.jnj-card:nth-child(2) { animation-delay: .05s; }
.jnj-card:nth-child(3) { animation-delay: .1s; }
.jnj-card:nth-child(4) { animation-delay: .15s; }
.jnj-card:nth-child(n+5) { animation-delay: .2s; }
@keyframes jnj-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.jnj-card__top { display: flex; gap: 6px; flex-wrap: wrap; min-height: 28px; }
.jnj-card__title { margin: 0; font-size: 1.28rem; line-height: 1.22; letter-spacing: -.015em; font-weight: 800; color: var(--jnj-navy); }
.jnj-card__link { color: inherit; text-decoration: none; }
.jnj-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.jnj-card__link:focus-visible { outline: none; }
.jnj-card:has(.jnj-card__link:focus-visible) { box-shadow: 0 0 0 3px var(--jnj-pink), 0 14px 34px -14px rgba(34, 37, 61, .32); }
.jnj-card__excerpt {
	margin: 0;
	color: var(--jnj-ink-2);
	font-size: .95rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.jnj-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: auto 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--jnj-indigo); font-weight: 600; }
.jnj-meta li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.jnj-ico { flex: none; width: 17px; height: 17px; }
.jnj-card__cta {
	display: inline-flex; align-items: center; gap: 2px; align-self: flex-start;
	font-size: .9rem; font-weight: 700; color: var(--jnj-pink-strong);
}
.jnj-card__cta .jnj-ico { transition: transform .4s var(--jnj-ease-spring); }
.jnj-card:hover .jnj-card__cta .jnj-ico { transform: translateX(4px); }

/* Pills */
.jnj-pill {
	display: inline-flex; align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
	color: var(--jnj-indigo);
	background: rgba(255, 255, 255, .55);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 1px 2px rgba(34, 37, 61, .08);
}
.jnj-pill--new { color: #fff; background: linear-gradient(135deg, var(--jnj-pink), var(--jnj-pink-strong)); box-shadow: 0 4px 12px -2px rgba(247, 55, 96, .5), inset 0 1px 0 rgba(255, 255, 255, .35); }
.jnj-pill--solid { color: #fff; background: linear-gradient(135deg, var(--jnj-indigo), var(--jnj-navy)); box-shadow: 0 4px 12px -2px rgba(34, 37, 61, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }

.jnj-empty { display: grid; justify-items: center; gap: 6px; padding: 44px 24px; text-align: center; color: var(--jnj-ink-2); }
.jnj-empty strong { color: var(--jnj-navy); font-size: 1.1rem; }
.jnj-empty .jnj-ico { width: 30px; height: 30px; color: var(--jnj-indigo); }

/* ---------- Detailseite ---------- */
.jnj--single { display: grid; gap: 18px; }
.jnj-back {
	justify-self: start; display: inline-flex; align-items: center; gap: 2px;
	padding: 8px 16px 8px 10px; min-height: 40px;
	border-radius: 999px; text-decoration: none;
	font-weight: 700; font-size: .92rem; color: var(--jnj-navy);
	background: rgba(255, 255, 255, .5);
	-webkit-backdrop-filter: var(--jnj-blur); backdrop-filter: var(--jnj-blur);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 4px 14px -6px rgba(34, 37, 61, .3);
	transition: transform .4s var(--jnj-ease-spring), background .25s;
}
.jnj-back:hover { transform: translateX(-3px); background: rgba(255, 255, 255, .75); }

.jnj-hero { padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; }
.jnj-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.jnj-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0; }
.jnj-fact {
	padding: 14px 16px; border-radius: 20px;
	background: rgba(255, 255, 255, .42);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.jnj-fact dt { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--jnj-indigo); }
.jnj-fact dd { margin: 0; font-weight: 700; font-size: 1.02rem; color: var(--jnj-navy); }

.jnj-columns { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .jnj-columns { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); } .jnj-apply { position: sticky; top: 24px; } }

.jnj-body { padding: clamp(22px, 3vw, 36px); }
.jnj-body > :first-child { margin-top: 0; }
.jnj-body > :last-child { margin-bottom: 0; }
.jnj-body h2, .jnj-body h3 { color: var(--jnj-navy); letter-spacing: -.015em; line-height: 1.2; margin: 1.6em 0 .5em; font-weight: 800; }
.jnj-body h2 { font-size: 1.45rem; }
.jnj-body h3 { font-size: 1.15rem; }
.jnj-body p, .jnj-body li { color: #34374d; }
.jnj-body ul { padding-left: 0; list-style: none; }
.jnj-body ul li { position: relative; padding-left: 28px; margin: .5em 0; }
.jnj-body ul li::before {
	content: ""; position: absolute; left: 4px; top: .5em; width: 10px; height: 10px; border-radius: 50%;
	background: linear-gradient(135deg, var(--jnj-pink), var(--jnj-indigo));
	box-shadow: 0 0 0 4px rgba(247, 55, 96, .12);
}
.jnj-body a { color: var(--jnj-pink-strong); font-weight: 600; }

.jnj-apply { padding: clamp(22px, 3vw, 30px); }
.jnj-apply h2 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.015em; color: var(--jnj-navy); }
.jnj-apply p { margin: 0 0 14px; color: var(--jnj-ink-2); }
.jnj-contact { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--jnj-indigo) !important; }

/* ---------- Formular ---------- */
.jnj-form { display: grid; gap: 12px; margin-top: 12px; }
.jnj-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jnj-field { display: grid; gap: 5px; margin: 0; }
.jnj-field > span { font-size: 13px; font-weight: 700; color: var(--jnj-indigo); padding-left: 4px; }
.jnj .jnj-field input, .jnj .jnj-field textarea {
	width: 100%; padding: 12px 16px; min-height: 46px;
	border: 0; border-radius: 16px; outline: 0;
	font: inherit; color: var(--jnj-navy);
	background: rgba(255, 255, 255, .55);
	box-shadow: inset 0 1px 2px rgba(34, 37, 61, .1), inset 0 0 0 1px rgba(255, 255, 255, .7);
	transition: box-shadow .25s var(--jnj-ease), background .25s;
}
.jnj .jnj-field textarea { resize: vertical; min-height: 110px; }
.jnj .jnj-field input:focus, .jnj .jnj-field textarea:focus { background: rgba(255, 255, 255, .88); box-shadow: inset 0 0 0 2px var(--jnj-pink), 0 0 0 4px rgba(247, 55, 96, .18); }

.jnj-file {
	display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; margin: 0;
	border-radius: 16px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--jnj-indigo);
	background: rgba(255, 255, 255, .3);
	box-shadow: inset 0 0 0 1.5px rgba(79, 87, 141, .35);
	border: 0;
	transition: background .25s;
}
.jnj-file:hover, .jnj-file:focus-within { background: rgba(255, 255, 255, .6); }
.jnj-file input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.jnj-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.jnj-check { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.45; color: var(--jnj-ink-2); }
.jnj-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--jnj-pink-strong); }
.jnj-check a { color: var(--jnj-pink-strong); font-weight: 600; }

/* Primärbutton */
.jnj-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
	min-height: 50px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer;
	font: inherit; font-weight: 800; letter-spacing: .005em; text-decoration: none; color: #fff;
	background: linear-gradient(180deg, #ff5278 0%, var(--jnj-pink-strong) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 6px rgba(120, 10, 40, .25), 0 12px 24px -10px rgba(217, 42, 85, .75);
	transition: transform .4s var(--jnj-ease-spring), box-shadow .3s var(--jnj-ease), filter .2s;
}
.jnj-btn:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.05); color: #fff; }
.jnj-btn:active { transform: scale(.97); transition-duration: .12s; }
.jnj-btn:focus-visible { outline: 3px solid var(--jnj-navy); outline-offset: 3px; }
.jnj-btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.jnj-btn[disabled] .jnj-btn__label::after {
	content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
	border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: jnj-spin .7s linear infinite;
}
@keyframes jnj-spin { to { transform: rotate(360deg); } }

.jnj-status { margin: 0 !important; min-height: 1.4em; font-size: 14px; font-weight: 600; }
.jnj-status.is-ok { color: #0b7a50 !important; }
.jnj-status.is-err { color: #c4163f !important; }

.jnj-notice { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 20px; font-weight: 600; font-size: .95rem; }
.jnj-notice--ok { color: #0b7a50; background: rgba(18, 184, 120, .16); margin-bottom: 12px; }
.jnj-notice--err { color: #c4163f; background: rgba(247, 55, 96, .14); margin-bottom: 12px; }
.jnj-notice--warn { color: var(--jnj-navy); }

.screen-reader-text.jnj-sr { position: absolute; }

/* ---------- Responsive & Bewegung ---------- */
@media (max-width: 640px) {
	.jnj-filters { border-radius: 28px; }
	.jnj-select { flex: 1 1 100%; }
	.jnj-segment { width: 100%; }
	.jnj-segment label { flex: 1 1 auto; text-align: center; }
	.jnj-hero { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.jnj-blob, .jnj-card { animation: none !important; }
	.jnj-card, .jnj-btn, .jnj-back, .jnj-card__cta .jnj-ico { transition: none !important; }
	.jnj-card:hover { transform: none; }
}
