.jpd-portal{--jpd-accent:#fff;--jpd-dark:#111;--jpd-border:#d9dee5;--jpd-muted:#656b74;color:inherit;line-height:1.45}
.jpd-portal *{box-sizing:border-box}
.jpd-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem 1.7rem;padding:1.5rem;background:#fff;border:1px solid #dedede;margin-bottom:1.5rem}
.jpd-filters>label,.jpd-filter-field{display:flex;flex-direction:column;gap:.5rem;min-width:0}
.jpd-filters>label>span,.jpd-filter-field>legend{font-weight:700;font-size:1.02rem;padding:0;margin:0;color:var(--jpd-dark)}
.jpd-filters input[type=search],.jpd-filters select{display:block;width:100%;min-width:0;min-height:54px;border:1px solid transparent;border-radius:40px;padding:12px 22px;background:#fff;color:#333;font:inherit;box-shadow:none}
.jpd-filters input:focus-visible,.jpd-filters select:focus-visible,.jpd-filters summary:focus-visible{outline:3px solid #1262b8;outline-offset:3px}
.jpd-filter-field{border:0;position:relative;margin:0;padding:0}
.jpd-filter-field details{position:relative;min-width:0}
.jpd-filter-field summary{list-style:none;cursor:pointer;min-height:54px;background:#fff;border-radius:40px;padding:12px 22px;display:flex;align-items:center;gap:12px;justify-content:space-between;color:var(--jpd-dark);box-shadow:0 3px 10px rgba(0,0,0,.09)}
.jpd-filter-field summary::-webkit-details-marker{display:none}
.jpd-filter-field summary>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jpd-chevron{height:12px;width:12px;border-top:3px solid #333;border-right:3px solid #333;transform:rotate(135deg);flex:0 0 auto;margin-right:6px;margin-top:-6px}
.jpd-filter-field details[open] .jpd-chevron{transform:rotate(-45deg);margin-top:6px}
.jpd-options{position:absolute;left:0;right:0;top:calc(100% + 5px);padding:16px 20px 20px;background:#fff;border-radius:25px;box-shadow:0 12px 24px rgba(0,0,0,.2);z-index:10;max-height:300px;overflow:auto;color:#333}
.jpd-check{display:flex;flex-direction:row!important;align-items:center;gap:12px!important;font-weight:400!important;padding:5px 0;cursor:pointer}
.jpd-check input{width:21px;height:21px;accent-color:#333;margin:0;flex:none}
.jpd-clear-level{background:transparent;border:0;padding:6px 0;font-size:inherit;color:inherit;cursor:pointer;text-align:left;font-weight:400}
.jpd-clear-level.is-selected{font-weight:700}
.jpd-no-options{color:var(--jpd-muted);font-size:.9rem;margin:.4rem 0}
.jpd-filter-actions{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.jpd-filter-actions button,.jpd-pagination button,.jpd-apply-button{border-radius:30px;background:#111;color:#fff;border:1px solid #111;padding:12px 19px;font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.jpd-filter-actions .jpd-reset{background:transparent;color:#333}
.jpd-count{font-weight:700;margin:0 0 .9rem;color:var(--jpd-muted)}
.jpd-job-list{border-top:1px solid var(--jpd-border)}
.jpd-job-item{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;border-bottom:1px solid var(--jpd-border);padding:1.4rem 0}
.jpd-job-item h3{margin:0;font-size:1.25rem;line-height:1.3}.jpd-job-item h3 a{color:inherit;text-decoration:none}.jpd-job-item h3 a:hover{text-decoration:underline}
.jpd-job-meta{display:flex;flex-wrap:wrap;gap:.5rem 1rem;font-size:.93rem;color:var(--jpd-muted);margin:.5rem 0}
.jpd-job-link{flex:none;font-weight:700;text-decoration:underline;color:inherit}
.jpd-pagination{display:flex;gap:7px;margin:20px 0}.jpd-pagination button{padding:7px 13px;background:#fff;color:#333}.jpd-pagination button[aria-current=page]{background:#111;color:#fff}
.jpd-results[aria-busy=true]{opacity:.5;pointer-events:none}
.jpd-empty{border:1px solid var(--jpd-border);padding:1.5rem}
.jpd-single-details{border:1px solid var(--jpd-border);padding:1.25rem;margin:1.5rem 0}
.jpd-single-details dl{display:grid;grid-template-columns:minmax(120px,1fr) 2fr;gap:.5rem 1rem;margin:0}.jpd-single-details dt{font-weight:700}.jpd-single-details dd{margin:0}
.jpd-apply-button{margin-top:16px}
@media(max-width:720px){.jpd-filters{grid-template-columns:1fr;padding:1.1rem}.jpd-job-item{flex-direction:column;align-items:flex-start;gap:.7rem}.jpd-single-details dl{grid-template-columns:1fr}.jpd-single-details dd{margin-bottom:.65rem}}

/* ---------------------------------------------------------------------
   Job detail sidebar (Divi Theme Builder): responsive and self-contained.
   Use shortcode [jobportal_details] in the LEFT Divi column. The Gutenberg
   Post Content goes in the RIGHT column. No fixed heights on any device.
   --------------------------------------------------------------------- */
.jpd-single-details.jpd-detail-sidebar {
  --jpd-sidebar-bg: #fff;
  --jpd-sidebar-text: #111;
  --jpd-sidebar-accent: #111;
  --jpd-sidebar-highlight: transparent;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: clamp(24px, 3.8vw, 58px) clamp(22px, 3.3vw, 48px);
  border: 0;
  border-radius: 0;
  color: var(--jpd-sidebar-text);
  background: var(--jpd-sidebar-bg);
  overflow-wrap: anywhere;
}
.jpd-detail-sidebar *, .jpd-detail-sidebar *::before, .jpd-detail-sidebar *::after { box-sizing: border-box; }
.jpd-detail-sidebar .jpd-detail-title {
  margin: 0 0 clamp(22px, 2.7vw, 38px);
  padding: 0;
  color: var(--jpd-sidebar-text);
  font-size: clamp(1.55rem, 2.1vw, 2.35rem);
  font-weight: 750;
  line-height: 1.38;
  hyphens: auto;
}
.jpd-detail-sidebar .jpd-detail-title span {
  color: #111;
  background: transparent;
  padding: 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.jpd-detail-sidebar .jpd-detail-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0 0 clamp(28px, 4vw, 52px);
  padding: 12px 16px;
  border: 2px solid transparent;
  border-radius: 5px;
  background: var(--jpd-sidebar-accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
  transition: filter .15s ease;
}
.jpd-detail-sidebar .jpd-detail-apply:hover { filter: brightness(.82); color: #fff; }
.jpd-detail-sidebar .jpd-detail-apply:focus-visible { outline: 3px solid var(--jpd-sidebar-text); outline-offset: 3px; }
.jpd-detail-sidebar .jpd-detail-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 0;
  padding: 0;
  color: var(--jpd-sidebar-text);
}
.jpd-detail-sidebar .jpd-detail-item {
  display: grid;
  grid-template-columns: 23px minmax(0,1fr);
  align-items: start;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.jpd-detail-sidebar .jpd-detail-icon {
  display: block;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  color: var(--jpd-sidebar-text);
  flex-shrink: 0;
}
.jpd-detail-sidebar .jpd-detail-copy { min-width: 0; }
.jpd-detail-sidebar .jpd-detail-name {
  /* Icons + values mirror the screenshot; retain semantic labels for screen readers. */
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.jpd-detail-sidebar .jpd-detail-value {
  padding: 0;
  margin: 0;
  min-width: 0;
  color: var(--jpd-sidebar-text);
  font-size: .96rem;
  line-height: 1.5;
  font-weight: 500;
  overflow-wrap: anywhere;
}
/* Legacy simple presentation remains available with style="simple". */
.jpd-single-details.jpd-detail-simple {
  margin: 1.5rem 0;
  border: 1px solid var(--jpd-border, #d9dee5);
  padding: 1.25rem;
}
.jpd-detail-simple .jpd-detail-title { margin: 0 0 1rem; }
.jpd-detail-simple .jpd-detail-list { display: grid; grid-template-columns: 1fr; gap: .8rem; margin: 0; }
.jpd-detail-simple .jpd-detail-item { display: grid; grid-template-columns: 24px 1fr; gap: .5rem; }
.jpd-detail-simple .jpd-detail-icon { width: 21px; height: 21px; }
.jpd-detail-simple .jpd-detail-name { font-weight: 650; }
.jpd-detail-simple .jpd-detail-value { margin: 0; }
.jpd-detail-simple .jpd-detail-apply { display: inline-flex; align-items: center; padding: .7rem 1rem; margin-bottom: 1rem; border-radius: 4px; background: #111; color: #fff; }

/* Positionierung und Sticky-Verhalten werden ausschließlich in Divi geregelt. */
/* Tablet: Divi's columns stack at 980px in a typical Theme Builder layout. */
@media (min-width: 601px) and (max-width: 980px) {
  .jpd-single-details.jpd-detail-sidebar { padding: 30px 28px; }
  .jpd-detail-sidebar .jpd-detail-title { font-size: clamp(1.7rem, 3.6vw, 2.1rem); }
  .jpd-detail-sidebar .jpd-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 24px; row-gap: 16px; }
}
/* Phone: legible full-width button and stacked details, including narrow devices. */
@media (max-width: 600px) {
  .jpd-single-details.jpd-detail-sidebar { padding: 26px 20px 30px; }
  .jpd-detail-sidebar .jpd-detail-title { font-size: clamp(1.45rem, 6vw, 1.9rem); line-height: 1.42; margin-bottom: 22px; }
  .jpd-detail-sidebar .jpd-detail-apply { width: 100%; min-height: 52px; margin-bottom: 26px; }
  .jpd-detail-sidebar .jpd-detail-list { display: flex; gap: 15px; }
  .jpd-detail-sidebar .jpd-detail-value { font-size: .98rem; }
}
@media (prefers-reduced-motion: reduce) {
  .jpd-detail-sidebar .jpd-detail-apply { transition: none; }
}

/* Giant Security: monochrome, no styling copied from the ADAC reference. */
.jpd-portal .jpd-filters { background: #fff; color: #111; }
.jpd-portal .jpd-filters > label > span,
.jpd-portal .jpd-filter-field > legend { color: #111; }
.jpd-portal .jpd-filter-field summary,
.jpd-portal .jpd-options { background: #fff; color: #111; border: 1px solid #ddd; }
.jpd-portal .jpd-filters input[type=search], .jpd-portal .jpd-filters select { color: #111; border: 1px solid #ddd; }
.jpd-portal .jpd-check input { accent-color: #111; }
.jpd-single-details.jpd-detail-sidebar,
.jpd-single-details.jpd-detail-sidebar .jpd-detail-title,
.jpd-single-details.jpd-detail-sidebar .jpd-detail-value,
.jpd-single-details.jpd-detail-sidebar .jpd-detail-icon { background-color: #fff; color: #111; }
.jpd-single-details.jpd-detail-sidebar .jpd-detail-title span { color: #111; background: transparent; }
.jpd-single-details.jpd-detail-sidebar .jpd-detail-apply,
.jpd-single-details.jpd-detail-sidebar .jpd-detail-apply:visited { background: #111; color: #fff; border-color: #111; }
.jpd-single-details.jpd-detail-sidebar .jpd-detail-apply:hover { background: #333; color: #fff; }
.jpd-single-details.jpd-detail-sidebar .jpd-detail-apply:focus-visible { outline-color: #111; }

/* Divi 5 Theme Builder: on job detail pages the body column can become
   position:fixed with inline z-index:10000 when Divi sticky is enabled.
   Keep the whole header stacking context above the body without changing
   Divi's sticky positioning, offsets, or responsive settings. */
body.single-jpd_job #et-boc > header.et-l--header {
  position: relative;
  z-index: 20010 !important;
}
body.single-jpd_job #et-boc > #et-main-area {
  position: relative;
  z-index: 1;
}

/* Version 0.4.5: Datumsfelder müssen ohne Raten zuordenbar sein.
   Andere Labels bleiben wie bisher nur für Screenreader sichtbar. */
.jpd-single-details .jpd-detail-item--date .jpd-detail-name {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 0 2px !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  border: 0 !important;
  color: #111;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.35;
}
.jpd-single-details .jpd-detail-item--date .jpd-detail-value {
  display: block;
  font-variant-numeric: tabular-nums;
}

/* 0.4.6: Application form stays in Divi's native Contact Form module. */
body.single-jpd_job #jpd-bewerbung {
  scroll-margin-top: 115px;
}
.jpd-application-title {
  margin: 0 0 1.25rem;
  color: #111;
  font: inherit;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.25;
  font-weight: 700;
}
@media (max-width: 767px) {
  body.single-jpd_job #jpd-bewerbung { scroll-margin-top: 82px; }
}

/* v0.4.8: Native button as Divi Pixel's manual CSS-ID trigger.
   Styling reset prevents browser-specific button defaults. */
.jpd-single-details .jpd-detail-apply:is(button) {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
}

/* v0.4.11 – Job filters: consistent spacing and control appearance.
   Native fieldset/legend does not participate in flex gap like label/span;
   explicitly give the legends the same gap as ordinary field labels.
   Scoped to the job filter form so other Divi/Contact Form Helper forms are
   completely unaffected. */
.jpd-portal .jpd-filters {
  align-items: start;
}
.jpd-portal .jpd-filters > .jpd-filter-field > legend {
  margin: 0 0 .5rem !important;
  padding: 0 !important;
  line-height: inherit;
}
.jpd-portal .jpd-filters input[type="search"],
.jpd-portal .jpd-filters select,
.jpd-portal .jpd-filters .jpd-filter-field summary {
  box-sizing: border-box;
  width: 100%;
  height: 58px;
  min-height: 58px;
  padding: 12px 20px;
  margin: 0;
  border: 1px solid #dedede;
  border-radius: 32px;
  background: #fff;
  box-shadow: none;
  color: #111;
  font: inherit;
  line-height: 1.35;
}
.jpd-portal .jpd-filters .jpd-filter-field details {
  margin: 0;
}
.jpd-portal .jpd-filters .jpd-filter-field summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 720px) {
  .jpd-portal .jpd-filters {
    row-gap: 1.2rem;
  }
}

/* v0.4.12 – Stellenlisten-Merkmale: dieselben SVG-Icons und Werte wie
   [jobportal_details], keine drei fest verdrahteten Textfelder mehr. */
.jpd-portal .jpd-job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .55rem 1.25rem;
  margin: .75rem 0 .65rem;
  line-height: 1.45;
}
.jpd-portal .jpd-job-meta-item {
  display: inline-flex;
  align-items: flex-start;
  gap: .5rem;
  max-width: 100%;
  min-width: 0;
  color: #555e68;
}
.jpd-portal .jpd-job-meta .jpd-detail-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin-top: .08rem;
  flex: 0 0 20px;
  color: #111;
}
.jpd-portal .jpd-job-meta-copy {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.jpd-portal .jpd-job-meta-label:not(.jpd-job-meta-label--visible) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.jpd-portal .jpd-job-meta-label--visible {
  font-weight: 600;
}
.jpd-portal .jpd-job-meta-value {
  color: inherit;
  font: inherit;
}
@media (max-width: 720px) {
  .jpd-portal .jpd-job-meta { gap: .55rem 1rem; }
}

/* Version 0.4.18.1 – Checkmark lists only in Gutenberg's job-detail content.
   Retains semantic <ul>/<li>, never alters job metadata, filters, or other pages.
   Gutenberg post content is rendered by Divi's .et_pb_post_content module. */
body.single-jpd_job .et_pb_post_content ul.wp-block-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
body.single-jpd_job .et_pb_post_content ul.wp-block-list > li {
  position: relative;
  list-style: none !important;
  padding-left: 1.8em;
}
body.single-jpd_job .et_pb_post_content ul.wp-block-list > li::marker {
  content: none;
}
body.single-jpd_job .et_pb_post_content ul.wp-block-list > li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  color: #111;
  font: inherit;
  font-weight: 700;
  line-height: inherit;
}
/* Nested bullet lists remain checkmark lists without added browser indentation. */
body.single-jpd_job .et_pb_post_content ul.wp-block-list ul.wp-block-list {
  margin-top: .35em;
  margin-bottom: .35em;
}

/* 0.4.20 – Tätigkeitsbereich: Reset-Button wie Einstiegslevel. */
.jpd-portal .jpd-clear-activities{background:transparent;border:0;padding:6px 0;font-size:inherit;color:inherit;cursor:pointer;text-align:left;font-weight:400}
.jpd-portal .jpd-clear-activities.is-selected{font-weight:700}

/* v0.4.21 – Job filters: action buttons always below the full filter grid.
   The activity filter adds an odd fifth field; without spanning both columns
   the action buttons flow into the right cell of the same grid row.
   Keep the existing field order, dimensions and responsive layout untouched. */
.jpd-portal .jpd-filters > .jpd-filter-actions {
  grid-column: 1 / -1;
  justify-self: start;
  align-self: start;
}
