/*
 * Baustein „Stellenkarte" (Modules/Jobs/Elementor/Stellenkarte) - die eine
 * Vorschau einer Stelle: Stellenbörse (Zeile, Highlights), Firmenseite,
 * Eventseite, Pre-Event, „Weitere Stellen" (Tobias 2026-11-04).
 *
 * Kachel: Logo und Firma oben, Titel, Berufsfeld, Fakten mit Liniensymbolen,
 * Skills als stille Tags, Fuß mit Marke und Pfeilkreis unter einer Haarlinie.
 * Zeile: dasselbe Markup im Raster - Logo links über die ganze Höhe.
 *
 * Logo ohne Fläche (Tobias). Fakten ohne Fläche, nur Symbol und Text -
 * keine Farbe auf Farbe; Marke als neutrale Pille mit Ember-Punkt, Ember sonst
 * nur im Pfeilkreis und als Unterstrich des Titels beim Überfahren (ADR-009).
 * Nur Rollen, keine Markenfarbe (Projektregel 8). Fokus 2 px Ember druck,
 * nie Überfahren ohne Gedrückt. Kein Schatten - die Karte schwebt nicht.
 *
 * @FEAT:JOBS.DETAIL
 * @FEAT:SEARCH.JOBS
 * @FEAT:ELEMENTOR.WIDGETS
 */

.uc-stk {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	padding: var( --uc-stk-karte-innen, 22px 24px 20px );
	border: 1px solid var( --uc-stk-rand, transparent );
	border-radius: var( --uc-stk-karte-radius, var( --uc-radius, 20px ) );
	background: var( --uc-stk-flaeche, var( --uc-flaeche-hoch, #ffffff ) );
	color: var( --uc-text, #1c2b4a );
	transition: background-color var( --uc-zeit-kurz, 150ms ) var( --uc-kurve, ease ), border-color var( --uc-zeit-kurz, 150ms ) var( --uc-kurve, ease );
}

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

.uc-stk--link:hover {
	border-color: var( --uc-stk-rand-hover, var( --uc-rahmen-stark, #d8cdbb ) );
	background: var( --uc-stk-flaeche-hover, var( --uc-stk-flaeche, var( --uc-flaeche-hoch, #ffffff ) ) );
}

.uc-stk--link:active {
	background: var( --uc-stk-flaeche-druck, var( --uc-flaeche-getoent, #e8e0d2 ) );
}

.uc-stk:has( .uc-stk__link:focus-visible ) {
	outline: 2px solid var( --uc-stk-fokus, var( --uc-akzent-druck, #c94726 ) );
	outline-offset: 2px;
}

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

.uc-stk__kopf {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

/* Logo ohne Fläche: das Logo trägt selbst. Feste Höhe, Breite nach Form. */
.uc-stk__logo {
	display: flex;
	flex: none;
	align-items: center;
	height: var( --uc-stk-logo, 44px );
	max-width: calc( var( --uc-stk-logo, 44px ) * 3 );
}

.uc-stk__logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	border-radius: 6px;
	object-fit: contain;
	object-position: left center;
}

/* Ohne Logo: Initialen im stillen Ring, keine Fläche. */
.uc-stk__logo--ohne {
	justify-content: center;
	width: var( --uc-stk-logo, 44px );
	border: 1px solid var( --uc-rahmen-stark, #d8cdbb );
	border-radius: 50%;
	color: var( --uc-text-leise, #4c5c76 );
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.uc-stk__wer {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.uc-stk__firma {
	overflow: hidden;
	color: var( --uc-stk-firma-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.uc-stk__datum {
	color: var( --uc-stk-datum-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 0.78rem;
	line-height: 1.35;
}

.uc-stk__merken {
	position: relative;
	z-index: 2;
	flex: none;
	margin-left: auto;
	align-self: flex-start;
}

/* ----------------------------------------------------------------- Rumpf */

.uc-stk__rumpf {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	margin-top: 18px;
}

.uc-stk .uc-stk__titel {
	margin: 0;
	color: var( --uc-stk-titel-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.005em;
	line-height: 1.35;
	overflow-wrap: break-word;
	hyphens: auto;
	text-wrap: pretty;
}

.uc-stk .uc-stk__link,
.elementor-widget .uc-stk a.uc-stk__link,
.elementor-widget .uc-stk a.uc-stk__link:visited {
	color: inherit;
	text-decoration: none;
}

/* Die ganze Karte ist das Ziel (Baukasten 3.2). */
.uc-stk .uc-stk__link::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	content: "";
}

.uc-stk .uc-stk__link:focus-visible {
	outline: none;
}

.elementor-widget .uc-stk--link:hover a.uc-stk__link,
.uc-stk--link:hover .uc-stk__link {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var( --uc-stk-punkt, var( --uc-akzent, #e85d3a ) );
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.uc-stk .uc-stk__feld {
	margin: 5px 0 0;
	color: var( --uc-stk-feld-farbe, var( --uc-text-leise, #4c5c76 ) );
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.4;
}

/* Fakten: Symbol und Text, ohne Fläche */
.uc-stk__fakten {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.uc-stk .uc-stk__fakt {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	margin: 0;
	color: var( --uc-stk-fakt-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 0.84rem;
	line-height: 1.35;
}

.uc-stk__symbol {
	flex: none;
	width: 16px;
	height: 16px;
	color: var( --uc-stk-symbol, var( --uc-text-leise, #4c5c76 ) );
}

.uc-stk .uc-stk__fakt--gehalt {
	font-weight: 700;
}

/* Skills: stille Tags mit Haarlinie - keine Pille, die wie ein Knopf aussieht */
.uc-stk__skills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.uc-stk .uc-stk__skills li {
	margin: 0;
	padding: 3px 9px;
	border: 1px solid var( --uc-stk-skill-rand, var( --uc-rahmen, #e3dacb ) );
	border-radius: 6px;
	color: var( --uc-stk-skill-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.45;
	white-space: nowrap;
}

.uc-stk .uc-stk__skills .uc-stk__mehr {
	border-color: transparent;
	color: var( --uc-text-leise, #4c5c76 );
}

/* ------------------------------------------------------------------ Fuß */

.uc-stk__fuss {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var( --uc-stk-linie, var( --uc-rahmen, #e3dacb ) );
}

.uc-stk__marke {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	padding: 6px 14px 6px 11px;
	border-radius: var( --uc-radius-klein, 12px );
	background: var( --uc-flaeche, #f2ede4 );
	color: var( --uc-stk-marke-farbe, var( --uc-text, #1c2b4a ) );
	font-size: 0.78rem;
	line-height: 1.3;
}

.uc-stk__marke i {
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var( --uc-stk-punkt, var( --uc-akzent, #e85d3a ) );
}

/* Zwei Zeilen: oben leise „Triff uns auf:“, darunter das Event fett */
.uc-stk__marke-text {
	display: grid;
	min-width: 0;
}

.uc-stk__marke-vorn {
	color: var( --uc-text-leise, #4c5c76 );
	font-weight: 500;
}

.uc-stk__marke-event {
	font-weight: 700;
	overflow-wrap: break-word;
}

.uc-stk__pfeil {
	display: grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-left: auto;
	border-radius: var( --uc-radius-rund, 999px );
	background: var( --uc-stk-punkt, var( --uc-akzent, #e85d3a ) );
	color: var( --uc-auf-akzent, #1c2b4a );
	transition: transform 0.35s var( --uc-kurve, ease );
}

.uc-stk__pfeil svg {
	display: block;
	width: 16px;
	height: 16px;
}

.uc-stk--link:hover .uc-stk__pfeil {
	transform: translateX( 3px );
}

.uc-stk--link:active .uc-stk__pfeil {
	transform: translateX( 1px ) scale( 0.92 );
}

/* ----------------------------------------------------------------- Zeile
 * Logo links über die ganze Höhe, rechts oben Merken. Der Kopf löst sich
 * ins Raster auf, damit das Markup für beide Formen gleich bleibt.
 */

.uc-stk--zeile {
	display: grid;
	grid-template-columns: var( --uc-stk-logo-spalte, 88px ) minmax( 0, 1fr ) auto;
	column-gap: 22px;
	padding: var( --uc-stk-karte-innen, 22px 24px );
}

.uc-stk--zeile .uc-stk__kopf {
	display: contents;
}

.uc-stk--zeile .uc-stk__logo {
	grid-row: 1 / span 3;
	grid-column: 1;
	align-self: start;
	justify-content: center;
	width: 100%;
	max-width: none;
	height: var( --uc-stk-logo, 52px );
}

.uc-stk--zeile .uc-stk__logo img {
	object-position: center;
}

.uc-stk--zeile .uc-stk__logo--ohne {
	width: var( --uc-stk-logo, 52px );
	justify-self: center;
}

.uc-stk--zeile .uc-stk__wer {
	grid-row: 1;
	grid-column: 2;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
}

.uc-stk--zeile .uc-stk__merken {
	grid-row: 1;
	grid-column: 3;
	margin-left: 0;
}

.uc-stk--zeile .uc-stk__rumpf {
	grid-row: 2;
	grid-column: 2 / span 2;
	margin-top: 6px;
}

.uc-stk--zeile .uc-stk__titel {
	font-size: 1.125rem;
}

.uc-stk--zeile .uc-stk__fuss {
	grid-row: 3;
	grid-column: 2 / span 2;
}

/*
 * Passung (Stellenbörse, nur angemeldet, Tobias 2026-11-11): Kasten in der
 * Größe des Logos, ganz unten in der Logospalte. Zahl in Textfarbe, darum ein
 * Ring, so weit gefüllt wie der Wert — ab 60 % in der Akzentfarbe, darunter
 * leise. Ember trägt keinen Text (ADR-009): die Farbe sitzt im Ring.
 */
.uc-stk__passung {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	width: var( --uc-stk-logo, 52px );
	height: var( --uc-stk-logo, 52px );
	border-radius: var( --uc-radius-klein, 12px );
	background: var( --uc-stk-passung-flaeche, var( --uc-flaeche-getoent, #ece4d6 ) );
	color: var( --uc-stk-passung-farbe, var( --uc-text, #1c2b4a ) );
}

.uc-stk__passung svg {
	position: absolute;
	inset: 3px;
	width: calc( 100% - 6px );
	height: calc( 100% - 6px );
	transform: rotate( -90deg );
}

.uc-stk__passung circle {
	fill: none;
	stroke-width: 2.5;
}

.uc-stk__passung-bahn {
	stroke: var( --uc-stk-passung-bahn, var( --uc-rahmen, #e3dacb ) );
}

.uc-stk__passung-wert {
	stroke: var( --uc-stk-passung-ring-teil, var( --uc-text-leise, #4c5c76 ) );
	stroke-linecap: round;
}

.uc-stk__passung--hoch .uc-stk__passung-wert {
	stroke: var( --uc-stk-passung-ring, var( --uc-akzent, #e85d3a ) );
}

.uc-stk__passung-zahl {
	position: relative;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	white-space: nowrap;
}

.uc-stk__passung-zahl small {
	margin-left: 1px;
	font-size: 0.5625rem;
	font-weight: 700;
}

.uc-stk__passung--kaum .uc-stk__passung-zahl {
	color: var( --uc-text-leise, #4c5c76 );
	font-size: 0.6875rem;
	font-weight: 700;
}

.uc-stk--zeile.uc-stk--mit-passung .uc-stk__logo {
	grid-row: 1 / span 2;
}

.uc-stk--zeile .uc-stk__passung {
	grid-row: 3;
	grid-column: 1;
	align-self: end;
	justify-self: center;
	margin-top: 12px;
}

/* Hinweis über den Treffern, wenn das Profil noch zu wenig Skills hat */
.uc-boerse__passung-tipp {
	margin: 0 0 16px;
	color: var( --uc-text-leise, #4c5c76 );
}

@media ( max-width: 640px ) {
	.uc-stk--zeile {
		display: flex;
		padding: var( --uc-stk-karte-innen, 18px );
	}

	.uc-stk--zeile .uc-stk__kopf {
		display: flex;
	}

	.uc-stk--zeile .uc-stk__logo {
		justify-content: flex-start;
		width: auto;
		max-width: 132px;
		height: var( --uc-stk-logo, 40px );
	}

	.uc-stk--zeile .uc-stk__logo img {
		object-position: left center;
	}

	.uc-stk--zeile .uc-stk__passung {
		width: 46px;
		height: 46px;
		margin-top: 0;
	}

	.uc-stk--zeile .uc-stk__passung-zahl {
		font-size: 0.6875rem;
	}

	.uc-stk--zeile .uc-stk__wer {
		flex-direction: column;
		gap: 1px;
	}

	.uc-stk--zeile .uc-stk__rumpf {
		margin-top: 16px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.uc-stk,
	.uc-stk__pfeil {
		transition: none;
	}
}
