/*
 * Stelle - Inhalt der Stellenseite /jobs/<slug>/ (JOBS.DETAIL, E4e-5).
 *
 * Kopf (Logo, Firma, Titel, Merkmale als Pillen) -> Raster aus Hauptspalte
 * (Beschreibung, Aufgaben, Anforderungen) und Seitenleiste (Bewerben, Auf
 * einen Blick, Skills) -> weitere Stellen der Firma. Schmal
 * (Containerabfrage) steht alles untereinander, Bewerben gleich nach dem Kopf.
 *
 * Gestaltungslinie „Panels" (ADR-058): helle Panels, flach. Nur Rollen, keine
 * Markenfarbe (Projektregel 8). Ember trägt keinen Text (ADR-009) - nur
 * Punkte und Linien. Fokus: 2 px in Ember druck. Nie Überfahren ohne Gedrückt.
 *
 * @FEAT:JOBS.DETAIL
 * @FEAT:ELEMENTOR.WIDGETS
 */

.uc-stelle {
	display: flex;
	flex-direction: column;
	gap: var( --uc-st-luecke, var( --uc-raum-5, 24px ) );
	box-sizing: border-box;
	max-width: var( --uc-st-breite, none );
	color: var( --uc-text, #1c2b4a );
	container-type: inline-size;
}

.uc-stelle *,
.uc-stelle *::before,
.uc-stelle *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ Kopf */

.uc-stelle__kopf {
	position: relative;
	padding: var( --uc-st-kopf-innen, clamp( 24px, 5vw, 48px ) );
	border: 0 solid transparent;
	border-radius: var( --uc-st-kopf-radius, var( --uc-radius-gross, 28px ) );
	background: var( --uc-st-kopf-flaeche, var( --uc-flaeche-hoch, #ffffff ) );
}

.uc-stelle__kopf .uc-kopfaktionen {
	position: absolute;
	top: clamp( 16px, 3vw, 28px );
	right: clamp( 16px, 3vw, 28px );
}

.uc-stelle__kopf-inhalt {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp( 16px, 3vw, 28px );
	padding-right: 120px;
}

.uc-stelle .uc-stelle__logo {
	display: grid;
	flex: none;
	place-items: center;
	width: var( --uc-st-logo, 88px );
	height: var( --uc-st-logo, 88px );
	padding: 10px;
	border-radius: var( --uc-radius, 20px );
	background: var( --uc-st-logo-flaeche, var( --uc-flaeche, #f2ede4 ) );
	object-fit: contain;
}

/* Logo als Link zum Firmenprofil */
.uc-stelle__logo-link {
	display: block;
	flex: none;
	border-radius: var( --uc-radius, 20px );
	transition: opacity var( --uc-zeit, 250ms ) var( --uc-kurve, ease );
}

.uc-stelle__logo-link:hover {
	opacity: 0.85;
}

.uc-stelle__logo-link:active {
	opacity: 0.7;
}

.uc-stelle__logo--ohne {
	background: var( --uc-aktion, #1c2b4a );
	color: var( --uc-auf-aktion, #f2ede4 );
	font-size: 2rem;
	font-weight: 800;
}

.uc-stelle__angaben {
	display: flex;
	flex: 1 1 20rem;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

.uc-stelle .uc-stelle__firma {
	color: var( --uc-st-firma-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}

.uc-stelle a.uc-stelle__firma:hover {
	text-decoration: underline;
	text-decoration-color: var( --uc-st-punkt, var( --uc-akzent, #e85d3a ) );
	text-underline-offset: 4px;
}

.uc-stelle a.uc-stelle__firma:active {
	opacity: 0.8;
}

/* Stellentitel: kleiner als die Seiten-H1 des Themes — Stellentitel sind oft
   lang („Fachreferentin/Fachreferent (m/w/d) in der …“), Jobportale setzen sie
   um 28–40 px. Ab 45 Zeichen eine Stufe kleiner (Klasse aus dem Widget). Nur
   die Variable wechselt; eine Schrift aus dem Stil-Tab geht weiter vor. */
.uc-stelle .uc-stelle__titel {
	--st-titel-groesse: var( --uc-st-titel-groesse, clamp( 1.75rem, 1.25rem + 1.5vw, 2.5rem ) );
	margin: 0 0 var( --uc-st-titel-abstand, 0 );
	color: var( --uc-st-titel-farbe, var( --uc-text, #1c2b4a ) );
	font-size: var( --st-titel-groesse );
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	text-wrap: balance;
	overflow-wrap: break-word;
	hyphens: auto;
}

.uc-stelle .uc-stelle__titel--lang {
	--st-titel-groesse: var( --uc-st-titel-groesse-lang, clamp( 1.5rem, 1.15rem + 1vw, 2rem ) );
}

.uc-stelle__pillen {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.uc-stelle__pillen li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border: 1px solid var( --uc-st-pille-rand, var( --uc-rahmen, rgba( 28, 43, 74, 0.14 ) ) );
	border-radius: var( --uc-radius-knopf, 999px );
	background: var( --uc-st-pille-flaeche, transparent );
	color: var( --uc-st-pille-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 0.9rem;
}

.uc-stelle__pillen li::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var( --uc-st-punkt, var( --uc-akzent, #e85d3a ) );
}

.uc-stelle__marken {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 4px 0 0;
	font-size: 0.9rem;
}

.uc-stelle .uc-stelle__marke {
	color: var( --uc-text-leise, #4c5c76 );
	text-decoration: none;
}

.uc-stelle a.uc-stelle__marke {
	color: var( --uc-text, #1c2b4a );
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var( --uc-st-punkt, var( --uc-akzent, #e85d3a ) );
	text-underline-offset: 4px;
}

.uc-stelle a.uc-stelle__marke:active {
	opacity: 0.8;
}

/* --------------------------------------------------------------- Raster */

.uc-stelle__raster {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, var( --uc-st-seite-breite, 22rem ) );
	gap: var( --uc-st-luecke, var( --uc-raum-5, 24px ) );
	align-items: start;
}

.uc-stelle__haupt,
.uc-stelle__seite {
	display: flex;
	flex-direction: column;
	gap: var( --uc-st-luecke, var( --uc-raum-5, 24px ) );
	min-width: 0;
}

@container ( max-width: 52rem ) {
	.uc-stelle__raster {
		grid-template-columns: minmax( 0, 1fr );
	}

	.uc-stelle__seite {
		order: -1;
	}

	.uc-stelle__kopf-inhalt {
		padding-right: 0;
		padding-top: 44px;
	}
}

.uc-stelle__panel {
	padding: var( --uc-st-panel-innen, clamp( 22px, 4vw, 36px ) );
	border: 0 solid transparent;
	border-radius: var( --uc-st-panel-radius, var( --uc-radius-gross, 28px ) );
	background: var( --uc-st-panel-flaeche, var( --uc-flaeche-hoch, #ffffff ) );
}

.uc-stelle .uc-stelle__abschnitt-titel {
	margin: 0 0 var( --uc-st-abschnitt-abstand, 16px );
	color: var( --uc-st-abschnitt-farbe, var( --uc-text, #1c2b4a ) );
	font-size: var( --uc-schrift-h3, 1.4rem );
	font-weight: 800;
	letter-spacing: -0.01em;
}

.uc-stelle__text {
	color: var( --uc-st-text-farbe, var( --uc-text, #1c2b4a ) );
	line-height: 1.6;
}

.uc-stelle__text p {
	margin: 0 0 var( --uc-st-text-abstand, 1em );
}

.uc-stelle__text ul {
	display: grid;
	gap: 6px;
	margin: 0 0 var( --uc-st-text-abstand, 1em );
	padding: 0;
	list-style: none;
}

.uc-stelle__text li {
	position: relative;
	padding-left: 20px;
}

.uc-stelle__text li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 2px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var( --uc-st-punkt, var( --uc-akzent, #e85d3a ) );
}

/* Nummerierte Liste: die Zahl steht, wo sonst der Punkt steht. */
.uc-stelle__text ol {
	display: grid;
	gap: 6px;
	margin: 0 0 var( --uc-st-text-abstand, 1em );
	padding: 0;
	list-style: none;
	counter-reset: uc-st-nummer;
}

.uc-stelle__text ol > li {
	padding-left: 28px;
	counter-increment: uc-st-nummer;
}

.uc-stelle__text ol > li::before {
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	border-radius: 0;
	background: none;
	color: var( --uc-st-text-farbe, var( --uc-text, #1c2b4a ) );
	font-weight: 700;
	content: counter( uc-st-nummer ) ".";
}

.uc-stelle__text strong {
	font-weight: 700;
}

.uc-stelle__text > :last-child {
	margin-bottom: 0;
}

.uc-stelle__bewerben .uc-knopf {
	width: 100%;
}

/* Zweiter Knopf: zum Firmenprofil - hell mit Rand, damit „Jetzt bewerben" führt. */
.uc-stelle .uc-stelle__zweitknopf {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin-top: 10px;
	padding: var( --uc-st-zweit-form-innen, 6px 24px );
	border: 1px solid var( --uc-st-zweit-rand, var( --uc-rahmen-knopf, rgba( 28, 43, 74, 0.32 ) ) );
	border-radius: var( --uc-st-zweit-form-radius, var( --uc-radius-knopf, 999px ) );
	background: var( --uc-st-zweit-flaeche, transparent );
	color: var( --uc-st-zweit-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 16px;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	transition: background-color var( --uc-zeit, 250ms ) var( --uc-kurve, ease );
}

.uc-stelle .uc-stelle__zweitknopf:hover {
	background: var( --uc-st-zweit-flaeche-hover, var( --uc-flaeche, #f2ede4 ) );
	color: var( --uc-st-zweit-farbe, var( --uc-text, #1c2b4a ) );
	text-decoration: none;
}

.uc-stelle .uc-stelle__zweitknopf:active {
	background: var( --uc-st-zweit-flaeche-druck, var( --uc-flaeche-getoent, #e8e0d2 ) );
}

.uc-stelle .uc-stelle__zweitknopf:focus-visible {
	outline: 2px solid var( --uc-st-zweit-fokus, var( --uc-akzent-druck, #c94726 ) );
	outline-offset: 2px;
}

.uc-stelle__hinweis {
	padding: var( --uc-st-hinweis-innen, 14px 18px );
	border: 0 solid transparent;
	border-radius: var( --uc-st-hinweis-radius, var( --uc-radius-klein, 12px ) );
	background: var( --uc-st-hinweis-flaeche, var( --uc-flaeche-getoent, #e8e0d2 ) );
	color: var( --uc-st-hinweis-text-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 0.95rem;
	line-height: 1.5;
}

.uc-stelle__hinweis p {
	margin: 0;
}

.uc-stelle__hinweis p + p {
	margin-top: 6px;
}

.uc-stelle__fakten {
	display: grid;
	gap: 14px;
	margin: 0;
}

.uc-stelle__fakten dt {
	color: var( --uc-st-fakt-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 0.8rem;
	font-weight: 600;
}

.uc-stelle__fakten dd {
	margin: 2px 0 0;
	color: var( --uc-st-wert-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 0.95rem;
	line-height: 1.45;
}

.uc-stelle .uc-stelle__gruppe {
	margin: 0 0 8px;
	color: var( --uc-st-gruppe-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 0.85rem;
	font-weight: 600;
}

.uc-stelle__skills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.uc-stelle__skills:last-child {
	margin-bottom: 0;
}

.uc-stelle__skills li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border: 1px solid var( --uc-st-skill-rand, var( --uc-rahmen, rgba( 28, 43, 74, 0.14 ) ) );
	border-radius: var( --uc-radius-knopf, 999px );
	background: var( --uc-st-skill-flaeche, var( --uc-flaeche, #f2ede4 ) );
	color: var( --uc-st-skill-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 0.9rem;
}

.uc-stelle__niveau {
	display: inline-flex;
	gap: 3px;
}

.uc-stelle__niveau i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var( --uc-st-niveau, var( --uc-akzent, #e85d3a ) );
}

/* --------------------------------------------------------- Weitere Stellen */

.uc-stelle__karten {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( min( 100%, var( --uc-st-karten-min, 20rem ) ), 1fr ) );
	gap: var( --uc-st-karten-luecke, 16px );
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Die Karten zeichnet der Baustein Stellenkarte (stellenkarte.css). */
.uc-stelle__karten > li {
	display: flex;
	min-width: 0;
	margin: 0;
}

/* ---------------------------------------------------------------------
 * Abgleich mit dem eigenen Profil (E5e-2, MATCH.SCORE). Der Inhalt kommt
 * nur per Skript; Status als neutrale Zeile mit farbigem Punkt — keine
 * Farbe auf Farbe.
 * ------------------------------------------------------------------- */
.uc-stelle__bewertung[hidden] {
	display: none;
}

/* Im eigenen Panel „Bewertung“ (2026-11-11): weiß wie das Panel, keine Box in der Box. */
.uc-abgleich {
	margin: 0;
	padding: var( --uc-st-abgleich-flaeche-innen, 0 );
	border-radius: var( --uc-st-abgleich-flaeche-radius, 0 );
	background: var( --uc-st-abgleich-flaeche-flaeche, transparent );
	color: var( --uc-text, #1c2b4a );
	font-size: 0.95rem;
	line-height: 1.45;
}

.uc-abgleich[hidden] {
	display: none;
}

.uc-abgleich__kopf {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
}

.uc-abgleich__wert {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: var( --uc-st-abgleich-wert-farbe, inherit );
}

.uc-abgleich__titel {
	font-weight: 600;
	color: var( --uc-st-abgleich-titel-farbe, inherit );
}

.uc-abgleich__fakt,
.uc-abgleich__filter,
.uc-abgleich__genauer {
	margin: 6px 0 0;
}

.uc-abgleich__fakt {
	color: var( --uc-st-abgleich-fakt-farbe, inherit );
}

.uc-abgleich__zeile {
	color: var( --uc-st-abgleich-zeile-farbe, inherit );
}

.uc-abgleich__filter {
	color: var( --uc-text-leise, #4a5568 );
}

.uc-abgleich__hinweis {
	margin: 10px 0 0;
	color: var( --uc-st-abgleich-leise-farbe, var( --uc-text-leise, #4a5568 ) );
	font-size: 0.85rem;
}

.uc-abgleich__mehr {
	margin-top: 10px;
}

.uc-abgleich__mehr summary {
	cursor: pointer;
	font-weight: 600;
	border-radius: 4px;
}

.uc-abgleich__mehr summary:hover,
.uc-abgleich__mehr summary:active {
	text-decoration: underline;
}

.uc-abgleich__mehr summary:focus-visible,
.uc-abgleich__link:focus-visible {
	outline: 2px solid var( --uc-akzent-druck, #c94726 );
	outline-offset: 2px;
}

.uc-abgleich__liste {
	display: grid;
	gap: 6px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.uc-abgleich__zeile {
	position: relative;
	padding-left: 18px;
	overflow-wrap: anywhere;
}

.uc-abgleich__zeile::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 2px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var( --uc-abgleich-nein, var( --uc-text-leise, #4a5568 ) );
}

.uc-abgleich__zeile--ja::before {
	background: var( --uc-abgleich-ja, var( --uc-erfolg, #1e7a4c ) );
}

.uc-abgleich__zeile--teil::before {
	background: var( --uc-abgleich-teil, var( --uc-warnung, #b26a00 ) );
}

.uc-abgleich__zeile--hinweis::before {
	background: transparent;
	border: 1px solid var( --uc-text-leise, #4a5568 );
}

.uc-abgleich__link {
	display: inline-block;
	margin-top: 6px;
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	border-radius: 4px;
}

.uc-abgleich__link:hover,
.uc-abgleich__link:active {
	text-decoration-thickness: 2px;
}

@media ( prefers-reduced-motion: no-preference ) {
	.uc-abgleich:not( [hidden] ) {
		animation: uc-abgleich-ein var( --uc-zeit, 0.2s ) var( --uc-kurve, ease-out );
	}
}

@keyframes uc-abgleich-ein {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
