/* -----------------------------------------------------------------------
   HYGIA & FITNESSLAND Career Manager – Frontend Styles
   Alles scoped unter .hflcm-careers, damit kein Theme-Konflikt entsteht.
   ----------------------------------------------------------------------- */

.hflcm-careers {
	--hflcm-primary: #feeb17!important;
	--hflcm-secondary: #1a1a1a;
	--hflcm-button: #feeb17!important;
	--hflcm-radius: 14px;
	--hflcm-bg: #ffffff;
	--hflcm-bg-muted: #f7f7f8;
	--hflcm-bg-muted-hover: #e9e9e9;
	--hflcm-border: #e7e7ea;
	--hflcm-text: #1a1a1a;
	--hflcm-text-muted: #6b7280;
	--hflcm-shadow: 0 4px 20px rgba(20, 20, 20, 0.06);

	box-sizing: border-box;
	color: var(--hflcm-text);
	font-size: 16px;
	line-height: 1.5;
	margin: 0 auto;
	padding: 0 16px;
}

.hflcm-careers *,
.hflcm-careers *::before,
.hflcm-careers *::after {
	box-sizing: inherit;
}

/* Header */
.hflcm-careers__header {
	text-align: center;
	margin: 0 0 32px;
}

.hflcm-careers__headline {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 400;
	letter-spacing: 1px;
	margin: 0 0 8px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.hflcm-careers__intro {
	color: var(--hflcm-text-muted);
	max-width: 560px;
	margin: 0 auto;
}

/* Alerts */
.hflcm-alert {
	border-radius: var(--hflcm-radius);
	padding: 14px 18px;
	margin-bottom: 20px;
	font-weight: 600;
}

.hflcm-alert-success {
	background: #ecfdf3;
	color: #027a48;
	border: 1px solid #a6f4c5;
}

.hflcm-alert-error {
	background: #fef3f2;
	color: #b42318;
	border: 1px solid #fda29b;
}

/* Filters */
.hflcm-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px;
	background: var(--hflcm-bg-muted);
	border-radius: var(--hflcm-radius);
	padding: 16px;
	margin-bottom: 28px;
}

.hflcm-filters__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 0;
	min-width: 160px;
}

.hflcm-filters__label {
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--hflcm-text-muted);
}

.hflcm-filters__field input,
.hflcm-filters__field select {
	width: 100%;
	margin: 0;
}

.hflcm-filters__submit {
	flex: 0 0 auto;
	white-space: nowrap;
	margin: 0!important;
	border-radius: var(--hflcm-radius)!important;
}

@media (max-width: 640px) {
	.hflcm-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.hflcm-filters__field,
	.hflcm-filters__submit {
		flex: 1 1 auto;
	}
}

.hflcm-careers input[type='search'],
.hflcm-careers input[type='text'],
.hflcm-careers input[type='email'],
.hflcm-careers input[type='tel'],
.hflcm-careers input[type='url'],
.hflcm-careers input[type='date'],
.hflcm-careers input[type='file'],
.hflcm-careers select,
.hflcm-careers textarea {
	font: inherit;
	padding: 11px 14px;
	border-radius: calc(var(--hflcm-radius) - 4px);
	border: 1px solid var(--hflcm-border);
	background: #fff;
	color: var(--hflcm-text);
	min-height: 44px;
	width: 100%;
	margin-bottom: 0;
}

.hflcm-careers select {
	min-width: 160px;
}

.hflcm-careers input:focus,
.hflcm-careers select:focus,
.hflcm-careers textarea:focus {
	outline: 2px solid var(--hflcm-primary);
	outline-offset: 1px;
}

/* Buttons */
.hflcm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-weight: 700;
	font-size: 0.95rem;
	padding: 12px 20px;
	border-radius: calc(var(--hflcm-radius) - 2px);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	min-height: 44px;
	transition: transform 0.08s ease, opacity 0.15s ease;
}

.hflcm-btn:active {
	transform: scale(0.98);
}

.hflcm-btn-primary {
	background: var(--hflcm-button);
	color: #fff;
	border-color: var(--hflcm-button);
	border-radius: var(--hflcm-radius)!important;
	margin: unset!important;
}

.hflcm-btn-primary:hover {
	opacity: 0.92;
	color: #fff;
}

.hflcm-btn-outline {
	background: transparent;
	color: var(--hflcm-secondary);
	border-color: var(--hflcm-border);
}

.hflcm-btn-outline:hover {
	border-color: var(--hflcm-primary);
	color: var(--hflcm-text);
}

.hflcm-btn-large {
	width: 100%;
	padding: 14px 22px;
	font-size: 1rem;
}

/* Spinner im Submit-Button */
.hflcm-btn__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: hflcm-spin 0.7s linear infinite;
	flex-shrink: 0;
}

.hflcm-btn.is-loading {
	opacity: 0.85;
	cursor: not-allowed;
	pointer-events: none;
}

.hflcm-btn.is-loading .hflcm-btn__spinner {
	display: inline-block;
}

@keyframes hflcm-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Job Grid */
.hflcm-job-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.hflcm-job-card {
	background: var(--hflcm-bg);
	border: 1px solid var(--hflcm-border);
	border-radius: var(--hflcm-radius);
	box-shadow: var(--hflcm-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	margin-bottom: 20px;
}

.hflcm-job-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(20, 20, 20, 0.1);
}

.hflcm-job-card.is-urgent {
	border-color: var(--hflcm-primary);
	padding-top: 0; /* Banner sitzt bündig an der abgerundeten Kartenkante */
}

.hflcm-job-card__ribbon {
	width: 100%;
	background: var(--hflcm-primary);
	color: #000;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-align: center;
	padding: 6px 12px;
}

.hflcm-job-card__image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--hflcm-bg-muted);
}

.hflcm-job-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hflcm-job-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.hflcm-job-card__title {
	color: var(--hflcm-text);
	letter-spacing: 1px;
	font-size: 2.0rem;
	font-weight: 400;
	margin: 0;
}

.hflcm-job-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.hflcm-job-card__header .hflcm-job-card__title {
	flex: 1 1 auto;
	min-width: 0;
}

.hflcm-job-card__types {
	flex: 0 0 auto;
	justify-content: flex-end;
}

@media (max-width: 480px) {
	.hflcm-job-card__header {
		flex-direction: column;
		gap: 8px;
	}

	.hflcm-job-card__types {
		justify-content: flex-start;
	}
}

.hflcm-job-card__teaser {
	color: var(--hflcm-text-muted);
	margin: 0;
	font-size: 0.95rem;
}

.hflcm-job-card__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 6px 0;
}

.hflcm-job-card__actions {
	margin-top: auto;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	padding-top: 8px;
}

.hflcm-job-card__actions .hflcm-btn {
	flex: 1 1 auto;
}

/* Badges & Chips */
.hflcm-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 10px;
	border-radius: 999px;
	width: fit-content;
}

.hflcm-badge-brand {
	background: var(--hflcm-secondary);
	color: #fff;
}

.hflcm-badge-urgent {
	background: var(--hflcm-primary);
	color: #000;
}

.hflcm-badge-success {
	background: #ecfdf3;
	color: #027a48;
}

.hflcm-badge-muted {
	background: #f2f2f3;
	color: #6b7280;
}

.hflcm-badge-warning {
	background: #fffaeb;
	color: #b54708;
}

.hflcm-chip-group {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.hflcm-chip-label {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--hflcm-text-muted);
	margin-right: 2px;
}

.hflcm-chip {
	/* background: var(--hflcm-bg-muted);
	border: 1px solid var(--hflcm-border);
	border-radius: 999px;*/
	color: var(--hflcm-text-muted);
	padding: 4px 6px 4px 2px;
	font-size: 0.8rem;
	font-weight: 600;
}

.hflcm-chip-alt {
	background: var(--hflcm-bg-muted);
	border: 1px solid var(--hflcm-border);
	padding: 4px 12px;
	border-radius: 999px;
}

/* Empty / Loading states */
.hflcm-empty-state {
	text-align: center;
	padding: 40px 20px;
	color: var(--hflcm-text-muted);
	grid-column: 1 / -1;
}

.hflcm-job-list.is-loading {
	position: relative;
	min-height: 120px;
	opacity: 0.5;
	pointer-events: none;
}

/* Job Detail */
.hflcm-job-detail {
	margin-top: 24px;
}

.back-to-overview-btn a {
	padding: 8px 16px;
	background: transparent;
	border: 2px solid var(--hflcm-primary);
	color: black;
}

.back-to-overview-btn a:hover {
	background: var(--hflcm-primary);
	color:black;
	text-decoration: none;
}

.hflcm-job-detail__header {
	margin-bottom: 20px;
}

.hflcm-job-detail__title {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	font-weight: 400;
	margin: 0 0 8px;
	color: var(--hflcm-text);
	letter-spacing: 1px;
}

.hflcm-job-detail__teaser {
	color: var(--hflcm-text-muted);
	font-size: 1.05rem;
	margin: 0;
}

.hflcm-job-detail h3 {
	margin-top: 28px;
	font-size: 1.1rem;
	font-weight: 400;
	color: var(--hflcm-text);
	letter-spacing: 1px;
}

.hflcm-list {
	padding-left: 20px;
	margin: 10px 0;
	list-style: disc outside!important;
}

.hflcm-list li {
	margin-bottom: 6px;
}

.hflcm-notice {
	background: var(--hflcm-bg-muted);
	border-radius: calc(var(--hflcm-radius) - 4px);
	padding: 14px 18px;
	margin: 16px 0;
	font-size: 0.9rem;
}

.hflcm-job-detail__cta {
	margin-top: 24px;
}

/* Inline-Bewerbungsformular (klappt unter der jeweiligen Jobkarte auf) */
.hflcm-inline-form-wrapper {
	grid-column: 1 / -1;
	box-sizing: border-box;
}

.hflcm-inline-form-wrapper[hidden] {
	display: none !important;
}

.hflcm-inline-form-wrapper,
.hflcm-inline-form-wrapper * {
	box-sizing: border-box;
}

.hflcm-inline-form {
	position: relative;
	background: var(--hflcm-bg-muted);
	border: 1px solid var(--hflcm-border);
	border-radius: var(--hflcm-radius);
	padding: 28px 24px;
	margin: 4px 0 10px;
	animation: hflcm-panel-in 0.22s ease;
}

@keyframes hflcm-panel-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hflcm-inline-form__close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: transparent!important;
	border: 1px solid var(--hflcm-border);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	margin: 0;
}

.hflcm-inline-form__title {
	font-size: 1.2rem;
	margin: 0 40px 20px 0;
	color: var(--hflcm-text);
	letter-spacing: 2px;
	text-transform: uppercase;
	font-weight: 200;
}

.hflcm-inline-form__job-title {
	display: block;
	font-size: 2rem;
	text-transform: none;
	letter-spacing: 1px;
	color: #000;
	font-weight: 400;
	margin-top: 4px;
}

@media (max-width: 640px) {
	.hflcm-inline-form {
		padding: 22px 16px;
		border-radius: calc(var(--hflcm-radius) - 4px);
	}
}

/* Form */
.hflcm-application-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hflcm-application-form[hidden] {
	display: none !important;
}

.hflcm-form-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

@media (min-width: 560px) {
	.hflcm-form-row {
		grid-template-columns: 1fr 1fr;
	}
}

.hflcm-form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
input[type="date"], input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], select, textarea {
	width: 100%!important;
	color: var(--hflcm-text)!important;
}

.hflcm-form-field label {
	font-size: 0.85rem;
	font-weight: 700;
}

.hflcm-required {
	color: #b42318;
}

.hflcm-form-field-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 500;
	font-size: 0.85rem;
}

.hflcm-form-field-checkbox input {
	margin-top: 3px;
	min-height: auto;
	flex: 0 0 auto;
}

.hflcm-form-field-checkbox__text {
	flex: 1 1 auto;
	min-width: 0;
}

.hflcm-form-field-checkbox a,
.hflcm-form-field-checkbox a:hover {
	color: var(--hflcm-text);
	text-decoration: underline;
}

input::file-selector-button {
	background: var(--hflcm-bg-muted);
	color: var(--hflcm-text);
	border-radius: 3px;
	border: 1px solid var(--hflcm-border);
	padding: 4px 12px;
}

input::file-selector-button:hover {
	background: var(--hflcm-bg-muted-hover);
	cursor: pointer;
}

.hflcm-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hflcm-form-message {
	border-radius: calc(var(--hflcm-radius) - 4px);
	padding: 12px 16px;
	margin-bottom: 14px;
	font-weight: 600;
	font-size: 0.9rem;
}

.hflcm-form-message.is-success {
	background: #ecfdf3;
	color: #027a48;
}

.hflcm-form-message.is-error {
	background: #fef3f2;
	color: #b42318;
}

.hflcm-form-actions {
	margin-top: 8px;
}

/* Sticky mobile apply button (optional utility class, activated via filter) */
.hflcm-sticky-apply {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 999;
}

@media (min-width: 900px) {
	.hflcm-sticky-apply {
		display: none;
	}
}

/* Mobile refinements */
@media (max-width: 640px) {
	.hflcm-job-grid {
		grid-template-columns: 1fr;
	}

	.hflcm-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.hflcm-filters__chips {
		flex-direction: column;
	}
}
