/* Bestehende Job-, Formular- und Dialogkomponenten; keine Datenmodell-Änderung. */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; transform: translateY(-150%); padding: 10px 14px; background: var(--white); color: var(--navy); border-radius: 8px; }
.skip-link:focus { transform: none; }

.job-search { display: flex; gap: 9px; }
.job-search input, .archive-search input, .facetwp-input { min-height: 50px; padding: 11px 14px; border: 1px solid #cfd7e2; border-radius: 11px; background: var(--white); font: inherit; }
.job-search input { min-width: 280px; }
.job-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.job-card { display: flex; min-height: 260px; flex-direction: column; gap: 14px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .18s, transform .18s, box-shadow .18s; }
.job-card:hover { transform: translateY(-2px); border-color: #9aafd0; box-shadow: 0 16px 38px rgba(15, 34, 56, .08); }
.job-card__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.job-card__tags span { padding: 5px 9px; border-radius: 999px; color: var(--blue-2); background: var(--blue-soft); font-size: 12px; font-weight: 800; }
.job-card__tags .tag--muted { color: var(--ink-2); background: var(--soft); }
.job-card h3 { font-size: 22px; }
.job-card h3 a { text-decoration: none; }
.job-card__meta { color: var(--muted); font-size: 14px; }
.job-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.job-card__footer a { color: var(--blue); font-weight: 800; text-decoration: none; }
.job-card__footer span { color: var(--muted); }
.section-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.empty-state { grid-column: 1 / -1; padding: 30px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

.home-jobs__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.home-jobs__head .home-intro { max-width: 640px; margin-bottom: 0; }
.home-job-search input { width: min(100%, 310px); min-height: 48px; padding: 11px 13px; border: 1px solid #d5d9e0; border-radius: 10px; background: #fff; font: inherit; }
.kmg-home-jobs-block .home-job-search { display: flex; justify-content: flex-end; margin: 0 0 30px; }
.home-job-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.home-job-actions > span { color: var(--muted); font-size: 14px; }
[data-home-job-empty] { margin-top: 17px; }
[hidden] { display: none !important; }

/* Contact Form 7: Expertenprofil im Design des Startseiten-Prototyps. */
.profile-form { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.home-profile-card .profile-form { padding: 0; border: 0; border-radius: 0; background: transparent; }
.profile-form h3 { margin-bottom: 6px; font-size: 22px; }
.profile-form__hint { margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.profile-form > br,
.profile-form__grid > br,
.profile-form__field > br,
.profile-form__consent > br,
.profile-form__submit > br { display: none; }
.profile-form__grid { display: grid; gap: 10px; }
.profile-form__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-form__field { display: flex; min-width: 0; flex-direction: column; gap: 5px; margin: 0 0 10px; }
.profile-form__field label { color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.4; }
.profile-form__field .wpcf7-form-control-wrap { display: block; width: 100%; }
.profile-form__field input:not([type="checkbox"]):not([type="submit"]),
.profile-form__field select { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #d5d9e0; border-radius: 10px; color: var(--ink); background: #fff; font: inherit; font-size: 15px; line-height: 1.4; transition: border-color .18s, box-shadow .18s; }
.profile-form__field input::placeholder { color: #7a8493; opacity: 1; }
.profile-form__field input:not([type="checkbox"]):not([type="submit"]):focus,
.profile-form__field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.profile-form__field .wpcf7-not-valid { border-color: #b42318 !important; }
.profile-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; color: #b42318; font-size: 13px; line-height: 1.4; }
.profile-form__consent { margin: 3px 0 8px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.profile-form__consent .wpcf7-list-item { margin: 0; }
.profile-form__consent label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.profile-form__consent input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 17px; margin: 2px 0 0; accent-color: var(--blue); }
.profile-form__consent .wpcf7-list-item-label { min-width: 0; }
.profile-form__consent a { color: var(--blue); text-underline-offset: 2px; }
.profile-form__required-note { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.profile-form__submit { position: relative; }
.profile-form__submit .wpcf7-submit { width: 100%; margin: 0; }
.profile-form__submit .wpcf7-spinner { position: absolute; top: 50%; right: 14px; margin: 0; transform: translateY(-50%); }
.profile-form ~ .wpcf7-response-output { margin: 16px 0 0 !important; padding: 11px 13px !important; border-width: 1px !important; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.wpcf7-form.sent .profile-form ~ .wpcf7-response-output { border-color: #2f7d4f; background: #edf8f1; }
.wpcf7-form.invalid .profile-form ~ .wpcf7-response-output,
.wpcf7-form.failed .profile-form ~ .wpcf7-response-output,
.wpcf7-form.aborted .profile-form ~ .wpcf7-response-output { border-color: #b42318; background: #fff3f1; }

.page-hero { color: var(--white); background: radial-gradient(circle at 85% 15%, rgba(83, 126, 204, .26), transparent 38%), var(--navy); }
.page-hero__inner { padding-block: clamp(56px, 8vw, 92px); }
.page-hero h1 { max-width: 900px; font-size: clamp(38px, 5.7vw, 64px); }
.page-hero p:not(.eyebrow) { max-width: 690px; margin-top: 18px; color: #c5d0df; font-size: 18px; }
.page-hero--compact .page-hero__inner { padding-block: 55px; }
.page-hero--job .page-hero__inner { padding-top: 38px; }
.back-link { display: inline-block; margin-bottom: 34px; color: #abc0e6; font-weight: 700; text-decoration: none; }
.job-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.job-meta span { padding: 6px 11px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; color: #d6e0ec; font-size: 13px; }
.archive-search { max-width: 640px; margin-top: 30px; }
.archive-search .facetwp-facet { margin: 0; }
.archive-search input { width: 100%; }
.archive-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 45px; align-items: start; }
.filters { position: sticky; top: 104px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.filters h2 { font-size: 22px; }
.filter { padding-block: 20px; border-bottom: 1px solid var(--line); }
.filter h3 { margin-bottom: 12px; font-family: inherit; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.filters .facetwp-facet { margin-bottom: 0; }
.archive-results .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-count { min-height: 30px; margin-bottom: 15px; color: var(--muted); font-size: 14px; }
.load-more { margin-top: 30px; text-align: center; }
.facetwp-load-more { min-height: 48px; padding: 12px 20px; border: 1px solid var(--navy); border-radius: 11px; color: var(--white); background: var(--navy); font: inherit; font-weight: 700; }

.job-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(45px, 7vw, 90px); align-items: start; }
.prose { color: var(--ink-2); font-size: 17px; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3 { margin: 1.6em 0 .55em; color: var(--ink); }
.prose h2 { font-size: 31px; }
.prose h3 { font-size: 23px; }
.prose p, .prose ul, .prose ol { margin-block: 1em; }
.prose a { color: var(--blue); }
.prose--page { max-width: 820px; }
.apply-card { position: sticky; top: 104px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.apply-card h2 { font-size: 26px; }
.apply-card p:not(.eyebrow) { margin: 13px 0 22px; color: var(--ink-2); }
.apply-card .button { width: 100%; }
.application-layout { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 7vw, 90px); align-items: start; }
.application-layout h2 { font-size: clamp(31px, 4vw, 46px); }
.application-intro { margin-top: 17px; color: var(--ink-2); font-size: 17px; }
.form-card { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.form-card p { margin-bottom: 18px; }
.form-card label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 14px; font-weight: 700; }
.form-card input:not([type="checkbox"]):not([type="radio"]), .form-card textarea, .form-card select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cfd7e2; border-radius: 10px; background: var(--white); font: inherit; }
.form-card textarea { min-height: 130px; resize: vertical; }
.form-card input[type="submit"] { min-height: 50px; padding: 13px 22px; border: 1px solid var(--blue); border-radius: 12px; color: var(--white); background: var(--blue); font: inherit; font-weight: 700; cursor: pointer; }
.content-grid { display: grid; gap: 20px; }
.content-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); }
.error-page { min-height: 65vh; display: grid; align-items: center; text-align: center; }
.error-page h1 { font-size: clamp(38px, 6vw, 64px); }
.error-page p:not(.eyebrow) { margin: 18px auto 25px; color: var(--muted); }

body.booking-modal-open { overflow: hidden; }
.booking-modal { position: fixed; z-index: 1000; inset: 0; display: grid; padding: 24px; place-items: center; }
.booking-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 15, 25, .76); backdrop-filter: blur(5px); }
.booking-modal__dialog { position: relative; display: flex; width: min(100%, 1040px); height: min(90vh, 820px); flex-direction: column; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; background: #fff; box-shadow: 0 28px 90px rgba(0, 0, 0, .34); }
.booking-modal__header { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 18px 14px 24px; color: #fff; background: var(--blue); }
.booking-modal__header h2 { font-size: 24px; }
.booking-modal__close { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; color: #fff; background: transparent; font: inherit; font-size: 30px; line-height: 1; cursor: pointer; }
.booking-modal__close:hover, .booking-modal__close:focus-visible { border-color: #fff; background: rgba(255, 255, 255, .1); }
.booking-modal__body { min-height: 0; flex: 1; background: #fff; }
.booking-modal__body iframe { display: block; width: 100%; height: 100%; border: 0; }


.eyebrow--light { color: #b7d9e3; }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button--dark { background: var(--navy); color: #fff; }
.button--outline-light { background: transparent; color: #fff; border-color: #b5ccd5; }
@media (max-width: 980px) {
  .job-detail, .application-layout, .archive-layout { grid-template-columns: 1fr; }
  .apply-card, .filters { position: static; }
}
@media (max-width: 760px) {
  .job-grid, .archive-results .job-grid { grid-template-columns: 1fr; }
  .job-search { width: 100%; flex-direction: column; }
  .job-search input { width: 100%; min-width: 0; }
  .section-actions { align-items: stretch; flex-direction: column; }
  .booking-modal { padding: 0; }
  .booking-modal__dialog { width: 100%; height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
  .booking-modal__header { min-height: 62px; padding: 10px 12px 10px 16px; }
  .booking-modal__header h2 { font-size: 21px; }
}
@media (max-width: 520px) { .profile-form__grid--two { grid-template-columns: 1fr; } }
