/* =========================================================
   KARRIERE JOBDETAIL
   ========================================================= */

.job-detail-layout {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 40px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.job-detail-main {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.job-detail-sidebar {
  flex: 0 0 680px !important;
  width: 680px !important;
  max-width: 680px !important;
  min-width: 680px !important;
}

.job-detail-content,
.job-detail-main {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.job-detail-content {
  width: 100% !important;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.job-detail-content h2,
.job-detail-sidebar .form-title {
  color: rgb(141, 189, 40) !important;
}

.job-detail-content .job-meta {
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(141, 189, 40, 0.08);
  border: 1px solid rgba(141, 189, 40, 0.14);
  color: #314233;
}

.job-detail-content .job-section {
  margin-bottom: 28px;
}

.job-detail-content .job-section:last-child {
  margin-bottom: 0;
}

/* =========================================================
   JOB-LISTEN
   ========================================================= */

.job-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.job-list li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 24px;
  color: #314233;
  line-height: 1.75;
}

.job-list li:last-child {
  margin-bottom: 0;
}

.job-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgb(195, 222, 132), rgb(141, 189, 40));
  box-shadow: 0 0 0 4px rgba(141, 189, 40, 0.10);
}

.job-list .bullet,
.job-list .text {
  display: none;
}

.job-actions {
  margin-top: 34px;
  text-align: left;
}

.print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, rgb(141, 189, 40) 0%, rgb(103, 145, 24) 100%);
  box-shadow: 0 12px 26px rgba(111, 134, 103, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.3s ease;
}

.print-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(111, 134, 103, 0.24);
  filter: brightness(1.03);
}

/* =========================================================
   FORMULAR
   ========================================================= */

.job-detail-sidebar .container-form {
  position: sticky;
  top: 24px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px 15px 15px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(141, 189, 40, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(244, 248, 239, 0.98), rgba(232, 239, 224, 0.96));
  border: 1px solid rgba(186, 202, 175, 0.55);
  box-shadow:
    0 18px 44px rgba(27, 34, 30, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.55);
  color: #2f3b33;
  box-sizing: border-box;
}

.job-detail-sidebar .form-title {
  text-align: center;
  margin-bottom: 18px;
  color: rgb(141, 189, 40) !important;
  font-size: 1.5rem !important;
  line-height: 1.2;
}

.bewerbungsformular label,
.bewerbungsformular .form-label {
  display: block;
  margin-bottom: 8px;
  color: #314233;
  font-size: 0.95rem;
  font-weight: 600;
}

.bewerbungsformular .form-label p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.form-input,
.bewerbungsformular input[type="text"],
.bewerbungsformular input[type="email"],
.bewerbungsformular input[type="tel"],
.bewerbungsformular textarea,
.bewerbungsformular input[type="file"],
.captcha-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  padding: 15px 16px;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(180, 196, 169, 0.55);
  background: rgba(255,255,255,0.96);
  color: #233028;
  font-size: 0.96rem;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#positionField {
  font-size: 0.88rem;
  line-height: 1.6;
  min-height: 56px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 14px;
  padding-right: 14px;
  font-weight: 500;
}

.bewerbungsformular textarea {
  min-height: 140px;
  resize: vertical;
}

.bewerbungsformular input[type="file"] {
  min-height: 58px;
  padding: 14px 16px;
}

.form-input:focus,
.bewerbungsformular input[type="text"]:focus,
.bewerbungsformular input[type="email"]:focus,
.bewerbungsformular input[type="tel"]:focus,
.bewerbungsformular textarea:focus,
.captcha-input:focus {
  border-color: rgba(141, 189, 40, 0.9);
  box-shadow: 0 0 0 4px rgba(141, 189, 40, 0.14);
}

.readonly-input {
  background-color: #f4f6f2 !important;
  color: #42563a !important;
}

.upload-wrapper {
  margin-bottom: 10px;
}

.file-preview-box {
  margin-top: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #314233;
  min-height: 0;
}

.preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 0;
}

.preview-item:last-child {
  border-bottom: 0;
}

.preview-item button {
  border: 0;
  border-radius: 12px;
  padding: 7px 12px;
  cursor: pointer;
  background: rgba(141, 189, 40, 0.14);
  color: #2f3b33;
  transition: background 0.25s ease, color 0.25s ease;
}

.preview-item button:hover {
  background: rgba(141, 189, 40, 0.22);
  color: #1f2b1d;
}

.upload-note {
  display: block;
  margin-bottom: 16px;
  color: #5b675d;
  line-height: 1.5;
}

#cvError {
  color: #a62f2f;
  font-size: 0.95rem;
  display: none;
  margin-top: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background-color: rgba(211, 47, 47, 0.10);
  border-left: 4px solid #d85b5b;
  border-radius: 8px;
}

.form-separator {
  border: 0;
  border-top: 1px solid rgba(122, 143, 113, 0.18);
  margin: 18px 0;
}

.datenschutz-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  margin-bottom: 18px !important;
  color: #314233;
  font-weight: 400 !important;
}

.datenschutz-label input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
}

.datenschutz-label a {
  color: rgb(103, 145, 24);
  text-decoration: underline;
}

/* =========================================================
   CAPTCHA – CODE + REFRESH ALS EIN BLOCK
   ========================================================= */

.captcha-row {
  margin-bottom: 18px;
}

.captcha-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  float: none !important;
  table-layout: fixed;
}

.captcha-table tbody,
.captcha-table tr {
  width: 100%;
}

.captcha-table tr {
  display: flex;
  align-items: center;
  gap: 0px;
}

.captcha-table td {
  padding: 0 !important;
  margin: 0 !important;
  vertical-align: middle;
}

.captcha-spacer {
  display: none !important;
}

.captcha-table td:first-child {
  flex: 0 0 150px;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.captcha-table td:nth-child(2) {
  flex: 0 0 46px;
  width: 46px;
  min-width: 46px;
  max-width: 46px;
}

.captcha-table td:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.captcha-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  height: 50px;
  padding: 6px 8px;
  background: #97a0b0;
  border-radius: 10px 0 0 10px;
  box-shadow: inset 0 0 0 1px rgba(180, 196, 169, 0.52);
  box-sizing: border-box;
  overflow: hidden;
}

.captcha-image-wrap img {
  display: block;
  width: 100%;
  height: 50px;
  object-fit: cover;
}

.captcha-reload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  height: 50px;
  margin: 0 !important;
  cursor: pointer;
  background: #95c11f;
  border: 0;
  border-left: 1px solid rgba(255,255,255,0.16);
  border-right: 1px solid rgba(221, 227, 216, 0.95);
  border-radius: 0;
  box-sizing: border-box;
  transition: filter 0.22s ease;
  box-shadow: none;
  color: #fff;
  position: relative;
  z-index: 2;
}

.captcha-reload-btn:hover {
  filter: brightness(1.04);
}

.captcha-reload-btn img,
.captcha-reload-btn svg {
  width: 15px;
  height: 15px;
  display: block;
  filter: brightness(0) invert(1);
}

.captcha-input,
.bewerbungsformular .captcha-input,
.captcha-table input[type="text"] {
  display: block;
  width: 100% !important;
  min-width: 0;
  height: 50px;
  min-height: 50px;
  margin: 0 !important;
  padding: 0 16px !important;
  border-radius: 0 10px 10px 0 !important;
  border: 0;
  background: rgba(255,255,255,0.98);
  color: #233028;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px rgba(180, 196, 169, 0.52);
}

.captcha-input:focus,
.captcha-table input[type="text"]:focus {
  box-shadow:
    inset 0 0 0 1px rgba(141, 189, 40, 0.88),
    0 0 0 4px rgba(141, 189, 40, 0.12);
  position: relative;
  z-index: 2;
}

/* =========================================================
   SENDEN-BUTTON
   ========================================================= */

.submit-btn,
.bewerbungsformular button[type="submit"],
.bewerbungsformular input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1f2b1d !important;
  background: linear-gradient(135deg, rgb(195, 222, 132) 0%, rgb(141, 189, 40) 100%) !important;
  box-shadow: 0 14px 28px rgba(141, 189, 40, 0.24);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.submit-btn:hover,
.bewerbungsformular button[type="submit"]:hover,
.bewerbungsformular input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(141, 189, 40, 0.30);
  filter: brightness(1.02);
}

.submit-btn:disabled,
.bewerbungsformular button[type="submit"]:disabled,
.bewerbungsformular input[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================
   REVEAL
   ========================================================= */

.job-detail-reveal-up,
.job-detail-reveal-left,
.job-detail-reveal-right {
  opacity: 0;
  transition:
    opacity 1.15s ease,
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.job-detail-reveal-up {
  transform: translateY(22px);
}

.job-detail-reveal-left {
  transform: translateX(-20px);
}

.job-detail-reveal-right {
  transform: translateX(20px);
}

.job-detail-reveal-up.is-visible,
.job-detail-reveal-left.is-visible,
.job-detail-reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   PRINT
   ========================================================= */

@media print {
  .job-detail-sidebar,
  .job-actions,
  .tmpl_brotkrumen-nav,
  .tmpl_wide-image-link,
  .print-btn {
    display: none !important;
  }

  .job-detail-layout {
    display: block;
  }

  .job-detail-content {
    box-shadow: none !important;
    border: 0 !important;
    background: #fff !important;
    padding: 0 !important;
  }
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media screen and (max-width: 1199px) {
  .job-detail-layout {
    gap: 36px !important;
  }

  .job-detail-sidebar {
    flex: 0 0 500px !important;
    width: 500px !important;
    max-width: 500px !important;
    min-width: 500px !important;
  }

  .job-detail-sidebar .container-form {
    padding: 24px 18px 20px;
  }
}

@media screen and (max-width: 991px) {
  .job-detail-layout {
    flex-wrap: wrap !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
  }

  .job-detail-main {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .job-detail-sidebar {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .job-detail-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 30px 26px !important;
    border-radius: 24px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  .job-detail-sidebar .container-form {
    position: relative;
    top: 0;
    padding: 24px 18px 20px;
  }
}

@media screen and (max-width: 768px) {
  .job-detail-layout {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .job-detail-content {
    padding: 28px 24px !important;
    border-radius: 22px !important;
    margin: 0 !important;
  }

  .captcha-table td:first-child {
    flex: 0 0 128px;
    width: 128px;
    min-width: 128px;
    max-width: 128px;
  }

  .captcha-table td:nth-child(2) {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
  }

  .captcha-image-wrap {
    width: 128px;
    min-width: 128px;
    max-width: 128px;
    height: 44px;
    padding: 5px 7px;
  }

  .captcha-image-wrap img {
    height: 30px;
  }

  .captcha-reload-btn {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 44px;
    margin-left: 0 !important;
  }

  .captcha-input,
  .bewerbungsformular .captcha-input,
  .captcha-table input[type="text"] {
    height: 44px;
    min-height: 44px;
    padding: 0 10px !important;
    font-size: 0.93rem;
  }
}

@media screen and (max-width: 575px) {
  .job-detail-layout {
    padding-left: 22px !important;
    padding-right: 22px !important;
    gap: 22px !important;
  }

  .job-detail-content {
    padding: 26px 22px !important;
    border-radius: 20px !important;
  }

  .job-detail-sidebar .container-form {
    padding: 18px 12px 14px !important;
    border-radius: 20px;
  }

  .captcha-table td:first-child {
    flex: 0 0 122px;
    width: 122px;
    min-width: 122px;
    max-width: 122px;
  }

  .captcha-table td:nth-child(2) {
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
  }

  .captcha-image-wrap {
    width: 122px;
    min-width: 122px;
    max-width: 122px;
    height: 42px;
  }

  .captcha-image-wrap img {
    height: 28px;
  }

  .captcha-reload-btn {
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 42px;
    margin-left: 0 !important;
  }

  .captcha-input,
  .bewerbungsformular .captcha-input,
  .captcha-table input[type="text"] {
    height: 42px;
    min-height: 42px;
    padding: 0 8px !important;
    font-size: 0.92rem;
  }
}





/* =========================================================
   JOBDETAIL – EINHEITLICHE TYPOGRAFIE UND ABSTÄNDE
   ========================================================= */

.job-detail-content .job-section {
  margin-bottom: 28px !important;
}

.job-detail-content .job-section:last-child {
  margin-bottom: 0 !important;
}

.job-detail-content .job-section h2 {
  margin-bottom: 12px !important;
  font-size: 1.5rem !important;
  line-height: 1.22 !important;
  font-weight: 600 !important;
}

.job-detail-content .job-section p,
.job-detail-content .job-section ul,
.job-detail-content .job-section li {
  font-size: 1rem !important;
  line-height: 1.8 !important;
  color: #4f5c53 !important;
}

.job-detail-content .job-section p,
.job-detail-content .job-section ul {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.job-detail-content .job-section p + p,
.job-detail-content .job-section p + ul,
.job-detail-content .job-section ul + p {
  margin-top: 12px !important;
}

.job-detail-content .job-section ul li {
  margin-bottom: 10px !important;
}

.job-detail-content .job-section ul li:last-child {
  margin-bottom: 0 !important;
}