/* ── BEWERBUNGS-WIZARD ── */
.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.apply-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.apply-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 34, 39, 0.55);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.apply-modal.is-open .apply-modal-backdrop {
  opacity: 1;
}

.apply-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: min(90vh, 780px);
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(30, 34, 39, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.apply-modal.is-open .apply-modal-panel {
  transform: translateY(0) scale(1);
}

body.apply-modal-open {
  overflow: hidden;
}

.apply-modal-header {
  padding: 24px 24px 0;
  flex-shrink: 0;
}

.apply-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.apply-modal-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.apply-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--anthracite);
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.apply-modal-job {
  font-size: 14px;
  color: var(--gray-mid);
  margin-top: 4px;
}

.apply-modal-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: var(--off-white);
  color: var(--gray-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.apply-modal-close:hover {
  background: var(--orange-pale);
  color: var(--orange);
}

.apply-progress {
  margin-bottom: 4px;
}

.apply-progress-bar {
  height: 4px;
  background: var(--gray-border);
  border-radius: 100px;
  overflow: hidden;
}

.apply-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.apply-progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-light);
  margin-top: 8px;
}

.apply-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.apply-step h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--anthracite);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.apply-step-intro {
  font-size: 15px;
  color: var(--gray-mid);
  line-height: 1.6;
  margin-bottom: 24px;
}

.apply-step-intro em {
  font-style: normal;
  color: var(--orange);
  font-weight: 600;
}

.apply-field {
  margin-bottom: 16px;
}

.apply-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--anthracite);
  margin-bottom: 6px;
}

.apply-field input[type="text"],
.apply-field input[type="email"],
.apply-field input[type="tel"],
.apply-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--anthracite);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.apply-field input:focus,
.apply-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 101, 26, 0.12);
}

.apply-field textarea {
  min-height: 120px;
  resize: vertical;
}

.apply-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.apply-row-3 {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  gap: 12px;
}

.apply-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.apply-radio {
  flex: 1;
  min-width: 120px;
}

.apply-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.apply-radio span {
  display: block;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-mid);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.apply-radio input:checked + span {
  border-color: var(--orange);
  background: var(--orange-pale);
  color: var(--orange-dark);
}

.apply-upload {
  position: relative;
  border: 2px dashed var(--gray-border);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.apply-upload:hover {
  border-color: var(--orange-light);
  background: var(--orange-pale);
}

.apply-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.apply-upload-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  background: var(--orange-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.apply-upload strong {
  display: block;
  font-size: 14px;
  color: var(--anthracite);
  margin-bottom: 4px;
}

.apply-upload small {
  font-size: 12px;
  color: var(--gray-light);
}

.apply-file-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apply-file-item {
  font-size: 13px;
  color: var(--gray-mid);
  background: var(--off-white);
  padding: 8px 12px;
  border-radius: 8px;
}

.apply-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.apply-checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.apply-checkbox span {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.55;
}

.apply-checkbox a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.apply-checkbox a:hover {
  color: var(--orange-dark);
}

.apply-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.apply-modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  border-top: 1px solid var(--gray-border);
  background: var(--off-white);
}

.apply-btn-back {
  padding: 14px 20px;
  border: 1.5px solid var(--gray-border);
  border-radius: 12px;
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-mid);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.apply-btn-back:hover {
  border-color: var(--anthracite);
  color: var(--anthracite);
}

.apply-btn-next,
.apply-btn-submit,
.apply-btn-close-success {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: var(--orange);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.apply-btn-close-success {
  flex: none;
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}

.apply-btn-next:hover,
.apply-btn-submit:hover:not(:disabled),
.apply-btn-close-success:hover {
  background: var(--orange-dark);
}

.apply-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.apply-success {
  text-align: center;
  padding: 32px 16px 16px;
}

.apply-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--orange-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.apply-success h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--anthracite);
  margin-bottom: 10px;
}

.apply-success p {
  font-size: 15px;
  color: var(--gray-mid);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto 24px;
}

.apply-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.stellen-card .apply-open-btn {
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
}

.stellen-card .btn-primary.apply-open-btn {
  border: none;
}

.stellen-card .btn-outline.apply-open-btn {
  background: transparent;
}

@media (max-width: 560px) {
  .apply-modal {
    padding: 0;
    align-items: flex-end;
  }

  .apply-modal-panel {
    max-height: 94vh;
    border-radius: 24px 24px 0 0;
  }

  .apply-row,
  .apply-row-3 {
    grid-template-columns: 1fr;
  }
}
