/* WebRise Jobs & Karriere */

/* ── Job Listing Board ── */
.wr-jobs { max-width: 960px; margin: 0 auto; font-family: inherit; }
.wr-jobs__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.wr-jobs__filter-btn {
	padding: 8px 18px; border: 1.5px solid #e0e0e0; border-radius: 99px;
	background: #fff; font-size: 13px; font-weight: 600; color: #555;
	cursor: pointer; transition: all .2s; font-family: inherit;
}
.wr-jobs__filter-btn:hover { border-color: #bbb; color: #222; }
.wr-jobs__filter-btn.active {
	background: var(--wr-accent, #1a1a1a); border-color: var(--wr-accent, #1a1a1a);
	color: #fff;
}

.wr-jobs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.wr-jobs__card {
	background: #fff; border: 1.5px solid #e8e8e8; border-radius: 14px;
	padding: 24px; transition: box-shadow .2s, border-color .2s; cursor: pointer;
}
.wr-jobs__card:hover { border-color: var(--wr-accent, #b3e31e); box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.wr-jobs__card-title { font-size: 17px; font-weight: 700; color: #1a1a1a; margin: 0 0 8px; }
.wr-jobs__card-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.wr-jobs__card-tag {
	display: inline-flex; align-items: center; gap: 4px;
	font-size: 12px; color: #666; background: #f5f5f5; padding: 4px 10px; border-radius: 6px;
}
.wr-jobs__card-excerpt { font-size: 14px; color: #555; line-height: 1.5; margin: 0; }

.wr-jobs__empty { text-align: center; padding: 40px 20px; color: #888; font-size: 15px; }

/* ── Single Job View ── */
.wr-jobs__single { max-width: 760px; margin: 0 auto; font-family: inherit; }
.wr-jobs__back {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 14px; color: #666; text-decoration: none; margin-bottom: 20px;
	cursor: pointer; border: none; background: none; font-family: inherit; padding: 0;
}
.wr-jobs__back:hover { color: #222; }
.wr-jobs__single-title { font-size: 26px; font-weight: 800; color: #1a1a1a; margin: 0 0 12px; }
.wr-jobs__single-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.wr-jobs__single-tag {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 13px; color: #555; background: #f5f5f5; padding: 6px 14px; border-radius: 8px;
}
.wr-jobs__single-content { font-size: 15px; line-height: 1.7; color: #333; margin-bottom: 32px; }
.wr-jobs__single-content h2,
.wr-jobs__single-content h3 { margin-top: 24px; }
.wr-jobs__single-deadline { font-size: 14px; color: #888; margin-bottom: 24px; }

/* ── Apply Button ── */
.wr-jobs__apply-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 32px; background: var(--wr-accent, #1a1a1a); color: #fff;
	border: none; border-radius: 12px; font-size: 16px; font-weight: 700;
	cursor: pointer; font-family: inherit; transition: opacity .15s;
}
.wr-jobs__apply-btn:hover { opacity: .9; }

.wr-jobs__spontan-wrap { margin-top: 32px; padding-top: 24px; border-top: 1.5px solid #eee; text-align: center; }
.wr-jobs__spontan-text { font-size: 14px; color: #888; margin: 0 0 12px; }

/* ── Application Form (Modal) ── */
.wr-jobs__modal-overlay {
	position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99999;
	display: flex; align-items: center; justify-content: center; padding: 20px;
	opacity: 0; pointer-events: none; transition: opacity .25s;
}
.wr-jobs__modal-overlay.active { opacity: 1; pointer-events: auto; }
.wr-jobs__modal {
	background: #fff; border-radius: 18px; width: 100%; max-width: 540px;
	max-height: 90vh; overflow-y: auto; padding: 32px; position: relative;
	transform: translateY(20px); transition: transform .25s;
}
.wr-jobs__modal-overlay.active .wr-jobs__modal { transform: translateY(0); }
.wr-jobs__modal-close {
	position: absolute; top: 16px; right: 16px; background: #f0f0f0; border: none;
	width: 32px; height: 32px; border-radius: 8px; font-size: 18px; cursor: pointer;
	display: flex; align-items: center; justify-content: center; color: #666;
}
.wr-jobs__modal-close:hover { background: #e0e0e0; }
.wr-jobs__modal-title { font-size: 20px; font-weight: 700; margin: 0 0 20px; color: #1a1a1a; }

.wr-jobs__form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.wr-jobs__form-field label { font-size: 14px; font-weight: 600; color: #333; }
.wr-jobs__form-field input,
.wr-jobs__form-field textarea {
	padding: 10px 14px; border: 1.5px solid #e0e0e0; border-radius: 10px;
	font-size: 15px; font-family: inherit; outline: none; transition: border-color .2s;
}
.wr-jobs__form-field input:focus,
.wr-jobs__form-field textarea:focus { border-color: var(--wr-accent, #b3e31e); }
.wr-jobs__form-field textarea { resize: vertical; min-height: 100px; }
.wr-jobs__form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* File upload */
.wr-jobs__file-label {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px; border: 2px dashed #ddd; border-radius: 10px; cursor: pointer;
	font-size: 14px; color: #888; transition: border-color .2s, color .2s;
}
.wr-jobs__file-label:hover { border-color: var(--wr-accent, #b3e31e); color: #555; }
.wr-jobs__file-label.has-file { border-color: var(--wr-accent, #b3e31e); color: #333; border-style: solid; }
.wr-jobs__file-input { display: none; }
.wr-jobs__file-info { font-size: 12px; color: #999; margin-top: 4px; }

.wr-jobs__form-privacy { margin-bottom: 20px; font-size: 13px; color: #555; }
.wr-jobs__form-privacy label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.wr-jobs__form-privacy input[type=checkbox] { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.wr-jobs__form-privacy a { color: #333; text-decoration: underline; }

.wr-jobs__form-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 28px; background: var(--wr-accent, #1a1a1a); color: #fff;
	border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
	cursor: pointer; font-family: inherit; transition: opacity .15s; width: 100%;
}
.wr-jobs__form-submit:hover { opacity: .9; }
.wr-jobs__form-submit:disabled { opacity: .5; cursor: not-allowed; }

.wr-jobs__form-error { padding: 12px 16px; background: #fee2e2; border: 1px solid #fca5a5; border-radius: 10px; color: #991b1b; font-size: 14px; margin-bottom: 16px; display: none; }
.wr-jobs__form-success { padding: 12px 16px; background: #d1fae5; border: 1px solid #6ee7b7; border-radius: 10px; color: #065f46; font-size: 14px; margin-bottom: 16px; display: none; }

/* ── Culture Section ── */
.wr-jobs-culture { max-width: 760px; margin: 0 auto; font-family: inherit; }
.wr-jobs-culture__title { font-size: 22px; font-weight: 800; color: #1a1a1a; margin: 0 0 16px; }
.wr-jobs-culture__text { font-size: 15px; line-height: 1.7; color: #444; white-space: pre-line; }

/* ── Responsive ── */
@media (max-width: 600px) {
	.wr-jobs__grid { grid-template-columns: 1fr; }
	.wr-jobs__form-row { grid-template-columns: 1fr; }
	.wr-jobs__single-title { font-size: 22px; }
	.wr-jobs__modal { padding: 24px; }
	.wr-jobs__card { padding: 18px; }
}
