/* ==========================================================================
   P&Z Stellenbörse
   ========================================================================== */

.stellen-list,
.stelle-detail {
	--stellen-text: var(--color-black, #141414);
	--stellen-muted: #6b6b6b;
	--stellen-border: var(--color-graylight, #ededed);
	font-family: var(--font-base, "Ageo", Arial, sans-serif);
	color: var(--stellen-text);
	box-sizing: border-box;
}

.stelle-detail {
	--stellen-accent: #e5000f;
}

.stellen-list *,
.stelle-detail * {
	box-sizing: border-box;
}

/* ── Liste ──────────────────────────────────────────────────────────────── */

.stellen-list {
	width: 100%;
}

.stellen-list__header {
	margin-bottom: 2rem;
}

.stellen-list__counter {
	margin: 0 0 0.35rem;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--stellen-text);
}

.stellen-list__intro {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--stellen-muted);
}

.stellen-list__empty {
	margin: 0;
	padding: 1.5rem;
	border: 1px solid var(--stellen-border);
	color: var(--stellen-muted);
}

.stellen-list__items {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.stellen-card {
	position: relative;
	display: block;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 28px rgba(20, 20, 20, 0.08);
	transition:
		box-shadow 0.25s ease,
		transform 0.25s ease;
}

.stellen-card:hover {
	box-shadow: 0 12px 32px rgba(20, 20, 20, 0.12);
	transform: translateY(-1px);
}

.stellen-card__accent {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 6px;
	background: var(--stellen-accent, #e5000f);
}

.stellen-card__main {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: start;
	gap: 1.5rem 2rem;
	padding: 1.5rem 1.75rem 1.5rem 1.85rem;
}

.stellen-card__content {
	min-width: 0;
}

.stellen-card__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
}

.stellen-card__title a {
	color: var(--stellen-text);
	text-decoration: none;
}

.stellen-card__title a:hover {
	color: var(--stellen-accent, #e5000f);
}

.stellen-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.35rem;
	margin: 0 0 1.15rem;
	padding: 0;
	list-style: none;
}

.stellen-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	color: var(--stellen-muted);
}

.stellen-card__meta-icon {
	display: inline-flex;
	color: var(--stellen-muted);
}

.stellen-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 1rem;
	border: 1px solid var(--stellen-text);
	border-radius: 999px;
	background: #fff;
	color: var(--stellen-text) !important;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition:
		background 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease;
}

.stellen-card__cta:hover,
.stellen-card__cta:focus {
	background: var(--stellen-text);
	border-color: var(--stellen-text);
	color: #fff !important;
}

.stellen-card__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-start;
	min-width: 120px;
	padding-top: 0.15rem;
}

.stellen-card__logo {
	display: block;
	max-width: 110px;
	max-height: 56px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.stellen-card__company-badge {
	display: inline-block;
	padding: 0.35rem 0.55rem;
	background: var(--stellen-accent, #e5000f);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	text-align: center;
}

/* ── Detail ─────────────────────────────────────────────────────────────── */

.stelle-detail__hero {
	width: 100%;
	max-height: 360px;
	overflow: hidden;
	background: #141414;
}

.stelle-detail__hero img {
	display: block;
	width: 100% !important;
	height: 360px !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center;
}

.stelle-detail__inner {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 100px 0 50px 0;
	text-align: left;
}

.stelle-detail__header {
	padding-bottom: 1.75rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--stellen-border);
	text-align: left;
}

.stelle-detail__topline {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--stellen-accent);
}

.stelle-detail__title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--stellen-text);
}

.stelle-detail__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stelle-detail__meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9375rem;
	color: var(--stellen-muted);
}

.stelle-detail__meta svg {
	flex-shrink: 0;
	color: var(--stellen-muted);
}

.stelle-detail__section {
	margin-bottom: 0;
	text-align: left;
}

.stelle-detail__section + .stelle-detail__section {
	margin-top: 2.25rem;
	padding-top: 2.25rem;
	border-top: 1px solid var(--stellen-border);
}

.stelle-detail__intro {
	margin-bottom: 2.25rem;
	text-align: left;
}

.stelle-detail__intro .stelle-detail__content {
	font-size: 1.0625rem;
	line-height: 1.7;
}

.stelle-detail__section-title {
	margin: 0 0 1rem;
	font-size: 1.625rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--stellen-text);
}

.stelle-detail__content {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--stellen-text);
}

.stelle-detail__content p {
	margin: 0 0 0.75rem;
}

.stelle-detail__content ul,
.stelle-detail__content ol {
	margin: 0;
	padding: 0;
	list-style: none !important;
}

.stelle-detail__content ul li,
.stelle-detail__content ol li {
	position: relative;
	padding-left: 1.15rem;
	margin-bottom: 0.65rem;
	list-style: none !important;
}

.stelle-detail__content ul li::marker,
.stelle-detail__content ol li::marker {
	content: "" !important;
	color: transparent !important;
}

.stelle-detail__content ul li::before,
.stelle-detail__content ol li::before {
	content: "" !important;
	position: absolute;
	top: 0.55em;
	left: 0;
	width: 0.45rem;
	height: 0.45rem;
	background: var(--stellen-accent, #e5000f) !important;
	border-radius: 0;
}

.stelle-detail__cta {
	margin: 2.5rem 0 3rem;
	text-align: left;
}

.stelle-detail__btn {
	display: inline-block;
	padding: 0.95rem 1.75rem;
	background: var(--stellen-accent);
	border: 1px solid var(--stellen-accent);
	color: #fff !important;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: opacity 0.25s ease;
}

.stelle-detail__btn:hover,
.stelle-detail__btn:focus {
	opacity: 0.9;
	color: #fff !important;
}

.stelle-detail__form {
	scroll-margin-top: 100px;
	width: 100%;
	background: #f5f5f5;
	padding: 3.5rem 0 4.5rem;
}

.stelle-detail__form-inner {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 50px 0 100px 0;
	text-align: left;
}

.stelle-detail__form-title {
	margin: 0 0 1.75rem;
	font-size: 2.35rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--stellen-text);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
	.stellen-card__main {
		grid-template-columns: 1fr;
		gap: 1.1rem;
		padding: 1.25rem 1.15rem 1.25rem 1.35rem;
	}

	.stellen-card__brand {
		align-items: flex-start;
		order: -1;
	}

	.stelle-detail__hero img {
		height: 220px !important;
	}

	.stelle-detail__inner {
		width: 100%;
		padding: 1.75rem 1rem 3rem;
	}
}
