/* Sportbusinessjobs — Job-Detailseite
   Ziel: wp-content/themes/DEIN-CHILD-THEME/css/sbj-job-detail.css */

.single-job_listing {
	--sbj-bg: #f6f7f9;
	--sbj-card: #fff;
	--sbj-ink: #12213a;
	--sbj-mute: #5d6b82;
	--sbj-line: #e3e7ee;
	--sbj-acc: #0b5fff;
	--sbj-chip: #eef2f8;
	background: var(--sbj-bg);
}

/* GeneratePress-Container neutralisieren */
.single-job_listing .site-content { display: block; }
.single-job_listing .inside-article {
	background: transparent;
	padding: 0;
}
.single-job_listing .site-main > * { margin-bottom: 0; }
.single-job_listing .entry-content { margin: 0; }
.single-job_listing .featured-image,
.single-job_listing .page-header-image-single,
.single-job_listing .post-image,
.single-job_listing .entry-meta,
.single-job_listing .post-navigation,
.single-job_listing .comments-area { display: none; }

/* Layout */
.sbj-detail {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 20px;
	color: var(--sbj-ink);
	line-height: 1.6;
}
.sbj-detail a { text-decoration: none; }
.sbj-detail :focus-visible { outline: 3px solid var(--sbj-acc); outline-offset: 2px; }

.sbj-crumbs { padding: 18px 0 0; font-size: 14px; color: var(--sbj-mute); }
.sbj-crumbs a { color: inherit; }
.sbj-crumbs a:hover { color: var(--sbj-acc); }

/* Kopfbereich */
.sbj-head {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	background: var(--sbj-card);
	border: 1px solid var(--sbj-line);
	border-radius: 12px;
	padding: 24px;
	margin-top: 14px;
}
.sbj-logo {
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 14px;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--sbj-line);
}
.sbj-avatar {
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 800;
	font-size: 22px;
	border: 0;
}
.sbj-title {
	font-size: clamp(24px, 4vw, 34px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -.02em;
	margin: 0 0 6px;
	color: var(--sbj-ink);
}
.sbj-company { color: var(--sbj-mute); margin: 0 0 12px; }
.sbj-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sbj-tag {
	background: var(--sbj-chip);
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 13px;
	font-weight: 700;
}
.sbj-tag-plain { font-weight: 500; color: var(--sbj-mute); }

.sbj-expired {
	margin-top: 14px;
	padding: 14px 18px;
	border-radius: 10px;
	background: #fff4e5;
	border: 1px solid #f3d3a2;
	color: #7a4a00;
	font-weight: 600;
}

/* Grid */
.sbj-grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 20px;
	margin: 20px 0 48px;
	align-items: start;
}
.sbj-card {
	background: var(--sbj-card);
	border: 1px solid var(--sbj-line);
	border-radius: 12px;
	padding: 24px;
}

/* Beschreibung (kommt als Editor-Inhalt von WP Job Manager) */
.sbj-desc h2, .sbj-desc h3, .sbj-desc h4 {
	font-size: 19px;
	font-weight: 800;
	margin: 28px 0 8px;
	color: var(--sbj-ink);
}
.sbj-desc > :first-child,
.sbj-desc .job_description > :first-child { margin-top: 0; }
.sbj-desc p { margin: 0 0 12px; max-width: 70ch; }
.sbj-desc ul, .sbj-desc ol { margin: 0 0 12px 20px; max-width: 70ch; }
.sbj-desc li { margin-bottom: 6px; }
.sbj-desc a { color: var(--sbj-acc); text-decoration: underline; }

/* Sidebar */
.sbj-side {
	position: sticky;
	top: 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.sbj-side .sbj-card { padding: 20px; }

/* Bewerben-Button (WPJM-Markup: .application_button) */
.sbj-apply .job_application { margin: 0; }
.sbj-apply .application_button,
.sbj-apply input.application_button {
	display: block;
	width: 100%;
	background: var(--sbj-acc);
	color: #fff;
	font: inherit;
	font-weight: 700;
	padding: 13px 20px;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}
.sbj-apply .application_button:hover { filter: brightness(.92); }
.sbj-apply .application_details {
	display: none; /* wird von WPJM per JS eingeblendet */
	position: static !important;
	width: auto !important;
	margin: 12px 0 0 !important;
	padding: 12px !important;
	background: var(--sbj-bg) !important;
	border: 1px solid var(--sbj-line) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	font-size: 14px;
	line-height: 1.5;
	color: var(--sbj-ink);
	word-break: break-word;
}
/* WPJM zeichnet hier einen Tooltip-Pfeil: entfernen */
.sbj-apply .application_details::before,
.sbj-apply .application_details::after { display: none !important; content: none !important; }
.sbj-apply .application_details p { margin: 0; }
/* Link (z. B. www.rot-weiss-berlin.de) als normaler Text-Link statt Button */
.sbj-apply .application_details a {
	position: static !important;
	display: inline !important;
	background: none !important;
	color: var(--sbj-acc) !important;
	padding: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-weight: 700;
	text-decoration: underline;
}
.sbj-share {
	display: block;
	width: 100%;
	margin-top: 10px;
	background: transparent;
	color: var(--sbj-ink);
	font: inherit;
	font-weight: 700;
	padding: 12px 20px;
	border: 1px solid var(--sbj-line);
	border-radius: 8px;
	cursor: pointer;
}
.sbj-share:hover { border-color: var(--sbj-acc); background: transparent; color: var(--sbj-ink); }
.sbj-hint { font-size: 13px; color: var(--sbj-mute); margin: 12px 0 0; text-align: center; }

/* Fakten */
.sbj-facts { margin: 0; display: grid; gap: 12px; }
.sbj-facts dt { font-size: 13px; color: var(--sbj-mute); }
.sbj-facts dd { margin: 0; font-weight: 700; }
.sbj-facts a { color: var(--sbj-ink); text-decoration: underline; }

/* Weitere Jobs */
.sbj-more h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.sbj-more a {
	display: block;
	padding: 10px 0;
	border-top: 1px solid var(--sbj-line);
	font-weight: 700;
	font-size: 15px;
	color: var(--sbj-ink);
}
.sbj-more a small { display: block; font-weight: 400; color: var(--sbj-mute); font-size: 13px; }
.sbj-more a:hover { color: var(--sbj-acc); }

/* Mobil */
@media (max-width: 820px) {
	.sbj-grid { grid-template-columns: 1fr; }
	.sbj-side { position: static; }
	.sbj-head { flex-direction: column; gap: 14px; }
}