.jobs-page { color: #161816; overflow-x: clip; }
.jobs-page [hidden] { display: none !important; }
.jobs-wrap { width: var(--header-content-width, min(1400px, calc(100% - 64px))); margin-inline: auto; }
.jobs-page .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.jobs-hero { min-height: 690px; padding: 128px 0 110px; background: url('../../assets/bewerbung/hero.png?v=2') center/cover no-repeat; color: white; }
.jobs-hero h1 { font: 400 clamp(62px, 5.2vw, 100px)/1.03 'Saira Semi Condensed', Arial, sans-serif; text-transform: uppercase; }
.jobs-hand { font: 400 40px/1.2 Caveat, cursive; color: var(--green); }
.jobs-hero .jobs-hand { color: white; font-size: clamp(32px, 3.2vw, 61px); margin-top: 18px; }
.jobs-hero-description { font-size: 20px; line-height: 1.6; max-width: 650px; margin-top: 25px; }
.jobs-eyebrow { font-size: 20px; text-transform: uppercase; margin-bottom: 22px; }
.jobs-page main h2 { font-size: clamp(32px, 2.6vw, 50px); font-weight: 400; line-height: 1.2; }
.jobs-intro h2, .jobs-empty h2 { text-transform: uppercase; }
.jobs-page main h2 span { color: var(--green); }
.vacancies { position: relative; padding: 84px 0 90px; isolation: isolate; }
.jobs-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; margin-bottom: 85px; }
.jobs-intro > p { font-size: 20px; line-height: 1.4; }
.jobs-intro .jobs-hand { margin-top: 25px; font-size: 34px; }
.jobs-leaf { position: absolute; width: 320px; height: 220px; object-fit: contain; z-index: -1; pointer-events: none; opacity: .7; }
.jobs-leaf-right { right: -150px; top: 35px; transform: rotate(185deg); }
.jobs-leaf-left { left: -160px; bottom: 10px; transform: rotate(-30deg); }
.job-list { display: grid; gap: 24px; }
.job-card { border: 1px solid #999; border-radius: 18px; overflow: hidden; background: #fff; }
.job-card summary { display: grid; grid-template-columns: 22% minmax(0, 1fr) 36px; align-items: center; gap: 50px; padding-right: 55px; cursor: pointer; list-style: none; }
.job-card summary::-webkit-details-marker { display: none; }
.job-photo { width: 100%; height: 168px; object-fit: cover; }
.job-card h3 { font-size: 28px; line-height: 1.2; font-weight: 400; text-transform: uppercase; }
.job-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 22px; font-size: 18px; }
.job-meta span { display: inline-flex; gap: 10px; align-items: center; }
.job-meta img { width: 25px; height: 25px; object-fit: contain; }
.job-chevron { width: 28px; height: 14px; object-fit: contain; transition: transform .2s; }
.job-card[open] .job-chevron { transform: rotate(180deg); }
.job-details { border-top: 1px solid #ddd; padding: 30px 40px; font-size: 17px; line-height: 1.6; }
.job-details p { margin-bottom: 16px; white-space: pre-line; }
.job-apply { display: inline-block; color: var(--green); border-bottom: 1px solid; padding: 7px 0; font: inherit; background: none; cursor: pointer; border-top: 0; border-left: 0; border-right: 0; }
.jobs-empty { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 50px 0 60px; }
.jobs-empty .jobs-hand { margin: 28px 0; }
.jobs-empty > div > p:not(.jobs-hand) { font-size: 24px; line-height: 1.5; max-width: 650px; }
.empty-photo { position: relative; padding: 35px 100px 50px 20px; }
.empty-photo > img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: right center; border: 18px solid #8c9982; transform: rotate(15deg); }
.empty-photo::before { content: ''; position: absolute; width: 150px; height: 35px; background: #7b9a8f99; top: 15px; left: 35%; transform: rotate(15deg); z-index: 1; }
.empty-photo .jobs-hand { position: absolute; right: -10px; bottom: 5px; font-size: 32px; text-align: center; transform: rotate(-13deg); }
.application { background: var(--paper); padding: 55px 0 65px; }
.application-grid { display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 55px; }
.application-copy { padding-top: 30px; }
.application-copy .jobs-hand { margin: 20px 0 30px; }
.application-copy > p:not(.jobs-hand):not(.jobs-eyebrow) { font-size: 18px; line-height: 1.4; max-width: 540px; margin-bottom: 22px; }
#application-form { display: grid; gap: 20px; min-width: 0; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
#application-form label { min-width: 0; }
#application-form input:not([type=file]), #application-form select, #application-form textarea { font: inherit; font-size: 18px; color: #161816; border: 1px solid #999; border-radius: 10px; padding: 18px 24px; width: 100%; background: white; min-height: 62px; }
#application-form textarea { resize: vertical; min-height: 135px; }
#application-form select { text-overflow: ellipsis; }
#application-form :focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.upload { position: relative; display: flex; align-items: center; gap: 20px; padding: 16px 24px; background: white; border: 1px solid #999; border-radius: 10px; cursor: pointer; }
.upload > img { width: 20px; height: 40px; object-fit: contain; }
.upload strong { display: block; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.upload small { display: block; margin-top: 4px; font-size: 12px; }
.file-button { margin-left: auto; border: 1px solid var(--green); border-radius: 7px; padding: 12px; color: var(--green); font-size: 14px; white-space: nowrap; }
.upload input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.upload:focus-within { outline: 3px solid var(--sage); outline-offset: 3px; }
.apply-submit { display: flex; justify-content: center; align-items: center; gap: 35px; min-height: 74px; border: 0; border-radius: 10px; background: var(--green); color: white; font-size: 20px; text-transform: uppercase; cursor: pointer; }
.apply-submit img { width: 42px; height: 20px; filter: brightness(0) invert(1); }
.apply-submit:hover { background: #14522b; }
.apply-submit:disabled { opacity: .65; cursor: wait; }
#form-status:empty { display: none; }
#form-status { font-size: 15px; line-height: 1.5; }
.visually-hidden, .form-trap { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.jobs-quote { position: relative; isolation: isolate; padding: 120px 32px; }
.jobs-quote blockquote { max-width: 1000px; margin: 0 auto; font: 400 48px/1.3 Caveat, cursive; text-align: center; }
@media (min-width: 761px) and (max-width: 1200px) {
 .jobs-hero { min-height: 600px; padding-block: 110px 80px; }
 .jobs-intro { gap: 40px; }
 .job-card summary { gap: 24px; padding-right: 25px; }
 .job-card h3 { font-size: 22px; }
 .job-meta { font-size: 15px; gap: 14px; }
 .application-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
 .application-copy > p:not(.jobs-hand):not(.jobs-eyebrow) { max-width: 750px; }
 .jobs-empty { gap: 35px; }
 .empty-photo { padding-right: 50px; }
 .empty-photo .jobs-hand { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .job-chevron { transition: none; } }

.jobs-page main { overflow: clip; }
.job-chevron { transform: rotate(180deg); }
.job-card[open] .job-chevron { transform: rotate(0); }

.remove-cv {
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 14px;
  min-height: 44px;
  padding: 8px 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
