/* Hunter JobCenter – Frontend (Impreza-kompatibel, neutral) */

.hjc {
	--hjc-accent: #2563eb;
	--hjc-border: #e2e8f0;
	--hjc-muted: #64748b;
	--hjc-bg: #f8fafc;
	--hjc-header-offset: 180px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
	font-size: 1rem;
	line-height: 1.6;
	scroll-margin-top: var(--hjc-header-offset);
}

/* Impreza: fixierter Header überdeckt sonst den Seitenanfang */
#hjc-main.hjc-page--route,
.l-main > .hjc-page--route {
	padding-top: var(--hjc-header-offset) !important;
}

.hjc-detail .hjc-back,
.hjc-detail .hjc-title,
.hjc-list .hjc-title {
	scroll-margin-top: var(--hjc-header-offset);
}

@media (max-width: 900px) {
	.hjc,
	#hjc-main.hjc-page--route,
	.l-main > .hjc-page--route {
		--hjc-header-offset: 140px;
	}
}

.hjc-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 0.25rem;
	line-height: 1.2;
}

.hjc-subtitle {
	color: var(--hjc-muted);
	margin: 0 0 1.5rem;
}

.hjc-filters {
	background: var(--hjc-bg);
	border: 1px solid var(--hjc-border);
	border-radius: 8px;
	padding: 1.25rem;
	margin-bottom: 2rem;
}

.hjc-filters__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	align-items: start;
}

@media (min-width: 640px) {
	.hjc-filters__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.hjc-filters__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.hjc-filters__note {
	margin: 0.75rem 0 0;
	font-size: 0.8rem;
	color: var(--hjc-muted);
}

.hjc-field label {
	display: block;
	font-weight: 600;
	font-size: 0.875rem;
	margin-bottom: 0.35rem;
}

.hjc-field input,
.hjc-field select,
.hjc-field textarea {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--hjc-border);
	border-radius: 6px;
	font: inherit;
	background: #fff;
}

.hjc-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hjc-field.hjc-field--actions {
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-end;
	justify-content: flex-start;
	gap: 0.75rem;
	height: 100%;
	padding-top: 1.45rem;
}

.hjc-field--actions .hjc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	flex: 0 0 auto;
	white-space: nowrap;
}

.hjc-hint {
	font-size: 0.8rem;
	color: var(--hjc-muted);
	margin: 0.35rem 0 0;
}

.hjc-btn {
	display: inline-block;
	padding: 0.6rem 1.1rem;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
}

.hjc-btn--primary {
	background: var(--hjc-accent);
	color: #fff;
}

.hjc-btn--ghost {
	background: transparent;
	border-color: var(--hjc-border);
	color: inherit;
}

.hjc-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--hjc-border);
	border-radius: 8px;
}

.hjc-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.hjc-table th,
.hjc-table td {
	padding: 0.85rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--hjc-border);
}

.hjc-table th {
	background: var(--hjc-bg);
	font-size: 0.875rem;
}

.hjc-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 0.75rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--hjc-border);
}

.hjc-pagination__prev,
.hjc-pagination__next,
.hjc-pagination__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--hjc-border);
	border-radius: 6px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	font-size: 0.95rem;
	line-height: 1.2;
}

.hjc-pagination__prev,
.hjc-pagination__next {
	font-weight: 600;
}

.hjc-pagination__item.is-current {
	background: var(--hjc-accent);
	border-color: var(--hjc-accent);
	color: #fff;
	font-weight: 600;
}

.hjc-pagination__item:not(.is-current):hover,
.hjc-pagination__prev:not(.is-disabled):hover,
.hjc-pagination__next:not(.is-disabled):hover {
	border-color: var(--hjc-accent);
	color: var(--hjc-accent);
}

.hjc-pagination__prev.is-disabled,
.hjc-pagination__next.is-disabled {
	opacity: 0.45;
	cursor: default;
}

.hjc-pagination__pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
}

.hjc-pagination__ellipsis {
	padding: 0 0.25rem;
	color: var(--hjc-muted);
}

.hjc-table tbody tr:hover {
	background: #f1f5f9;
}

.hjc-job-link {
	color: var(--hjc-accent);
	font-weight: 600;
	text-decoration: none;
}

.hjc-job-link:hover {
	text-decoration: underline;
}

.hjc-muted {
	color: var(--hjc-muted);
	font-size: 0.875rem;
}

.hjc-empty,
.hjc-error {
	padding: 1rem;
	border-radius: 6px;
}

.hjc-error {
	background: #fef2f2;
	color: #b91c1c;
}

.hjc-back {
	margin-bottom: 1rem;
}

.hjc-meta {
	list-style: none;
	padding: 0;
	margin: 0.75rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	color: var(--hjc-muted);
}

.hjc-meta--list {
	flex-direction: column;
	gap: 0.35rem;
}

.hjc-detail__header {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--hjc-border);
}

.hjc-block {
	margin-bottom: 1.75rem;
}

.hjc-block h2,
.hjc-block__title {
	font-size: 1.25rem;
	margin: 0 0 0.85rem;
	font-weight: 700;
}

.hjc-template-body .hjc-block h2,
.hjc-template-body .hjc-block__title {
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

.hjc-template-body .hjc-block {
	margin-bottom: 1.75rem;
}

.hjc-template-body .hjc-block--intro {
	margin-bottom: 1.5rem;
}

.hjc-prose p {
	margin: 0 0 0.75rem;
}

.hjc-prose ul.hjc-list {
	margin: 0 0 1rem 1.25rem;
	padding: 0;
	list-style: disc;
}

.hjc-prose ul.hjc-list li {
	margin: 0 0 0.45rem;
	padding-left: 0.15rem;
}

.hjc-prose--template p {
	margin: 0 0 0.65rem;
	line-height: 1.65;
}

.hjc-prose--template .hjc-prose__lead {
	margin-top: 1.1rem;
	margin-bottom: 0.35rem;
}

.hjc-prose--template .hjc-prose__lead:first-child {
	margin-top: 0;
}

.hjc-apply-block {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--hjc-border);
}

.hjc-apply-block__title {
	margin: 0 0 1.5rem;
}

.hjc-apply {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.hjc-apply + .hjc-apply {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--hjc-border);
}

.hjc-apply__subtitle {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
}

.hjc-hint {
	margin: 0 0 1rem;
	color: var(--hjc-muted);
	font-size: 0.95rem;
}

.hjc-iframe-status {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	color: var(--hjc-muted);
}

.hjc-iframe-status.is-loading {
	color: var(--hjc-text);
}

.hjc-iframe-status.is-error {
	color: #b45309;
}

.hjc-apply--iframe.hjc-apply--checking .hjc-iframe,
.hjc-apply--iframe.is-unavailable .hjc-iframe {
	display: none;
}

.hjc-apply--iframe.is-ready .hjc-iframe {
	display: block;
}

.hjc-iframe {
	width: 100%;
	min-height: 520px;
	border: 1px solid var(--hjc-border);
	border-radius: 8px;
	background: #fff;
}

.hjc-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.hjc-field--full {
	grid-column: 1 / -1;
}

.hjc-form-job-ref {
	font-size: 0.9rem;
	color: var(--hjc-muted);
}

.hjc-required {
	color: #dc2626;
}

.hjc-form-required-note {
	font-size: 0.85rem;
	color: var(--hjc-muted);
	margin: 0 0 1rem;
}

.hjc-field--checkbox {
	margin-top: 0.25rem;
}

.hjc-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-weight: 400;
	cursor: pointer;
}

.hjc-checkbox-label input[type='checkbox'] {
	width: auto;
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.hjc-checkbox-label a {
	color: var(--hjc-accent);
}

.hjc-field-legend {
	display: block;
	font-weight: 600;
	font-size: 0.875rem;
	margin-bottom: 0.35rem;
	padding: 0;
}

.hjc-field--radios {
	border: none;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.hjc-radio-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 2rem;
}

.hjc-radio-label {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
	cursor: pointer;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	user-select: none;
}

.hjc-radio-label::before {
	content: '';
	display: inline-block;
	width: 18px;
	height: 18px;
	min-width: 18px;
	border: 2px solid #94a3b8;
	border-radius: 50%;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.hjc-radio-label:has(input:checked)::before {
	border-color: var(--hjc-accent);
	background: var(--hjc-accent);
	box-shadow: inset 0 0 0 3px #fff;
}

.hjc-radio-label:has(input:focus-visible)::before {
	outline: 2px solid var(--hjc-accent);
	outline-offset: 2px;
}

.hjc-radio-label span {
	line-height: 1.2;
}

/* Native Radio unsichtbar, Label bleibt klickbar (Impreza überschreibt sonst die Darstellung) */
.hjc .hjc-radio-label input[type='radio'] {
	position: absolute !important;
	opacity: 0 !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	pointer-events: none;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.hjc-radio-label {
	position: relative;
}

.hjc-upload-zone {
	border: 2px dashed var(--hjc-border);
	border-radius: 8px;
	background: #fff;
	padding: 1.5rem 1.25rem;
	text-align: center;
}

.hjc-upload-zone__title {
	margin: 0 0 0.35rem;
	font-weight: 600;
	font-size: 1rem;
	color: inherit;
}

.hjc-upload-zone__subtitle {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: var(--hjc-muted);
}

.hjc-upload-zone__btn {
	cursor: pointer;
	margin: 0 auto;
}

.hjc-upload-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hjc-upload-hint {
	font-size: 0.875rem;
	color: var(--hjc-muted);
	margin: 0.75rem 0 0;
	line-height: 1.5;
}

.hjc-upload-list {
	font-size: 0.85rem;
	color: var(--hjc-muted);
	margin: 0.75rem 0 0;
	text-align: left;
}

.hjc-upload-list:not(:empty) {
	padding: 0.65rem 0.75rem;
	background: var(--hjc-bg);
	border-radius: 6px;
}

.hjc-form-status {
	min-height: 1.25rem;
}

.hjc-form-status.is-success {
	color: #15803d;
}

.hjc-form-status.is-error {
	color: #b91c1c;
}

.hjc-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
}

@media (max-width: 768px) {
	.hjc-table thead {
		display: none;
	}

	.hjc-table tr {
		display: block;
		border-bottom: 1px solid var(--hjc-border);
		padding: 0.75rem 0;
	}

	.hjc-table td {
		display: block;
		border: none;
		padding: 0.25rem 1rem;
	}

	.hjc-table td::before {
		content: attr(data-label) ": ";
		font-weight: 600;
		color: var(--hjc-muted);
		font-size: 0.8rem;
	}

	.hjc-form-grid {
		grid-template-columns: 1fr;
	}
}
