/* Jobbörse — Marcels Farben und Schriften, Suche oben, kompakte Stellenzeilen. */
:root {
  --jb-border: color-mix(in srgb, var(--green) 20%, var(--paper));
  --jb-muted: color-mix(in srgb, var(--ink) 76%, var(--paper));
  --jb-yellow: #FFDE4D; /* Gelb der Startseite (.hm-home). */
}
.content:has(.jb-discovery), .content:has(.jb-detail) { max-width: 1200px; }
.jb-discovery { background: var(--deep); border-radius: 24px; margin: 4px 0 28px; padding: 0 24px 24px; }
.jb-intro { display: flex; justify-content: space-between; align-items: center; min-height: 218px; padding: 28px 12px; gap: 24px; }
.jb-intro-copy { min-width: 0; }
.jb-eyebrow { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-soft); margin-bottom: 12px; }
.jb-intro h1 { font: 800 clamp(30px, 3.4vw, 46px)/1.04 'Bricolage Grotesque', sans-serif; letter-spacing: -.035em; color: var(--paper); margin: 0; }
.jb-intro h1 em { color: var(--jb-yellow); font-style: normal; }
.jb-intro p { color: var(--cream); font-size: 15px; line-height: 1.5; margin: 16px 0 0; }
.jb-intro-art { width: 32%; max-width: 280px; height: 174px; object-fit: contain; }
.jb-filter { position: relative; padding: 16px; margin: 0; background: var(--paper); border-radius: 16px; }
.jb-filter-row { display: flex; align-items: end; gap: 12px; }
.jb-filter-row > label, .jb-extra-fields > label, .jb-filter--mobile > label { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: var(--jb-muted); font-size: 12px; font-weight: 700; }
.jb-postal { flex: 1 1 160px; }
.jb-input-icon { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--green); }
.jb-input-icon svg, .jb-detail-meta svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jb-input-icon input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.jb-input-icon input::placeholder { color: var(--jb-muted); opacity: 1; }
.jb-input-icon:focus-within, .jb-radius select:focus-visible, .jb-groups summary:focus-visible, .jb-sort select:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
.jb-filter--mobile { display: none; }
.jb-radius { flex: 0 0 100px; }
.jb-radius select, .jb-groups > summary, .jb-sort select { box-sizing: border-box; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }
.jb-radius select { width: 100%; padding: 0 10px; }
.jb-groups { position: relative; flex: 1 1 170px; min-width: 150px; }
.jb-groups > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 13px; list-style: none; cursor: pointer; white-space: nowrap; }
.jb-groups > summary::-webkit-details-marker, .jb-mobile-options > summary::-webkit-details-marker { display: none; }
.jb-groups > summary::after, .jb-mobile-options > summary::after { content: '⌄'; font-size: 18px; }
.jb-groups[open] > summary::after, .jb-mobile-options[open] > summary::after { content: '⌃'; }
.jb-group-list { position: absolute; z-index: 5; top: 54px; left: 0; min-width: 100%; width: 290px; max-height: 260px; overflow: auto; padding: 8px; background: var(--paper); border: 1px solid var(--jb-border); border-radius: 12px; box-shadow: var(--elev-2); }
.jb-group-list label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.jb-group-list input:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
.jb-group-list input { width: 18px; height: 18px; flex: none; accent-color: var(--green); margin-top: 2px; }
.jb-group-list p { margin: 8px; color: var(--jb-muted); font-size: 13px; }
.jb-temp { flex: 0 0 auto; min-height: 48px; justify-content: center; cursor: pointer; }
.jb-temp input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.jb-temp span { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 12px; border: 1px solid var(--jb-border); border-radius: 10px; background: var(--cream); color: var(--ink); font-size: 13px; white-space: nowrap; }
.jb-temp span::before { content: ''; width: 15px; height: 15px; border: 1px solid var(--green); border-radius: 4px; display: grid; place-items: center; }
.jb-temp input:checked + span { background: var(--green-tint); border-color: var(--green); }
.jb-temp input:checked + span::before { content: '✓'; background: var(--deep); color: var(--paper); font-size: 12px; }
.jb-temp input:focus-visible + span { outline: 3px solid var(--deep); outline-offset: 3px; }
.jb-submit, .jb-sort button { min-height: 48px; border: 0; border-radius: 10px; background: var(--jb-yellow); color: var(--ink); padding: 0 18px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.jb-submit:hover, .jb-sort button:hover { background: var(--gold-soft); }
.jb-submit:focus-visible, .jb-sort button:focus-visible, .jb-chip-remove:focus-visible, .jb-more a:focus-visible, .jb-reset:focus-visible, .jb-notice a:focus-visible, .jb-mobile-options > summary:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
.jb-active-filters { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: -10px 0 28px; }
.jb-chip-list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.jb-active-chip { display: inline-flex; align-items: center; gap: 3px; max-width: 320px; margin: 0; padding: 0 0 0 12px; border: 1px solid var(--jb-border); border-radius: 10px; background: var(--paper); color: var(--deep); font-size: 12px; font-weight: 700; }
.jb-chip-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb-chip-remove { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: inherit; font: inherit; font-size: 20px; cursor: pointer; }
.jb-chip-remove:hover { background: var(--green-tint); }
.jb-reset, .jb-notice a { color: var(--green); font-size: 13px; font-weight: 700; }
.jb-reset { flex: none; }
.jb-results { min-width: 0; }
.jb-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 18px; }
.jb-toolbar h2 { font: 800 27px/1.2 'Bricolage Grotesque', sans-serif; letter-spacing: -.025em; margin: 0; color: var(--ink); }
.jb-sort { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--jb-muted); }
.jb-sort select { min-height: 44px; min-width: 120px; padding: 0 10px; border-color: var(--jb-border); }
.jb-sort button { min-height: 44px; padding: 0 15px; }
.jb-list { min-width: 0; }
.jb-list .jb-row { padding: 17px 20px 15px; }
.jb-row .jtop { display: flex; flex-wrap: nowrap; align-items: center; }
.jb-row .jtop > .jhit { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; align-items: flex-start; gap: 12px; }
.jb-row .jhit .jbody { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; width: 100%; }
.jb-row .jhit .jbody .jtitle { order: 0; align-self: flex-start; font-size: 17px; overflow-wrap: anywhere; }
.jb-row .jhit .jbody .firm { order: 1; display: block; overflow-wrap: anywhere; }
.jb-row .firm .pdl-badge { margin-left: 8px; }
.jb-row .jhit .jbody .jgeo { order: 2; display: flex; justify-content: flex-start; flex-wrap: wrap; margin-top: 4px; overflow-wrap: anywhere; }
.jb-row .jb-meta { order: 3; display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: 5px; color: var(--ink-66); font-size: 12px; line-height: 1.4; }
.jb-row .jb-meta > span + span::before { content: '·'; margin: 0 7px; }
.jb-row .jtop > .jb-korb-native { flex: none; margin-left: 16px; }
.jb-korb-native { min-height: 48px; border: 0; border-radius: 999px; background: var(--green); color: var(--paper); padding: 0 18px; cursor: pointer; font: inherit; }
.jb-korb-native[data-zustand="drin"] { background: var(--green-tint); color: var(--deep); }
.jb-korb-native[data-zustand="drin"]:hover, .jb-korb-native[data-zustand="drin"]:focus-visible { background: var(--cream); color: var(--warn); }
.jb-korb-native:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
@container (min-width: 620px) {
  .jb-row .jtop > .jhit { display: flex; flex-direction: row; align-items: center; }
  .jb-row .jhit .jbody { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; gap: 2px 12px; }
  .jb-row .jhit .jbody .jtitle { grid-column: 1; grid-row: 1; }
  .jb-row .jhit .jbody .firm { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .jb-row .jhit .jbody .jgeo { grid-column: 1 / -1; grid-row: 3; margin-top: 2px; }
  .jb-row .jhit .jbody .jb-meta { grid-column: 1; grid-row: 4; margin: 3px 0 0; align-self: center; }
}
.jb-detail-save { margin-top: 22px; }
.jb-notice { padding: 32px; background: var(--paper); border: 1px solid var(--jb-border); border-radius: 20px; }
.jb-notice h3, .jb-notice h1 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; margin: 0 0 12px; color: var(--ink); }
.jb-notice p { color: var(--jb-muted); margin: 12px 0; }
.jb-more { text-align: center; margin: 28px 0; }
.jb-more a { display: inline-block; padding: 14px 24px; border: 1px solid var(--green); border-radius: 12px; color: var(--deep); font-weight: 700; text-decoration: none; }
.jb-more a:hover { background: var(--green-tint); }
.jb-detail-card > .jb-notice { border: 0; }
.jb-detail-card { border: 1px solid var(--jb-border); border-radius: 24px; background: var(--paper); overflow: hidden; }
.jb-detail-head { background: var(--deep); color: var(--paper); padding: 34px; }
.jb-detail-employer { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.jb-detail-employer > div { min-width: 0; }
.jb-detail-employer .jb-eyebrow { margin-bottom: 5px; }
.jb-detail-head .logo { width: 52px; height: 52px; background: var(--green-tint); color: var(--deep); box-shadow: none; }
.jb-detail-head h1 { color: var(--paper); font: 800 clamp(28px, 3.4vw, 40px)/1.12 'Bricolage Grotesque', sans-serif; letter-spacing: -.025em; margin: 0; max-width: 30ch; overflow-wrap: anywhere; }
.jb-detail-head .stelle-firm { color: var(--cream); margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.jb-detail-meta { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 22px; padding: 26px 34px; margin: 0; background: var(--cream); border-bottom: 1px solid var(--jb-border); color: var(--ink); }
.jb-detail-meta > div { min-width: 0; }
.jb-detail-meta dt { display: flex; align-items: center; gap: 7px; color: var(--jb-muted); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.jb-detail-meta dd { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.jb-detail-body { padding: 32px 34px 40px; max-width: 78ch; color: var(--jb-muted); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.jb-detail-body h2 { color: var(--ink); font: 700 25px/1.2 'Bricolage Grotesque', sans-serif; margin: 0 0 20px; }
.jb-detail-body p { margin: 0 0 18px; }
@media (max-width: 1240px) and (min-width: 760px) {
  .jb-filter-row { flex-wrap: wrap; }
  .jb-postal { flex-basis: 160px; }
  .jb-temp { margin-left: auto; }
}
@media (max-width: 759px) {
  .jb-discovery { padding: 0 16px 16px; border-radius: 20px; margin: 0 0 22px; }
  .jb-intro { min-height: 0; padding: 24px 4px; }
  .jb-intro h1 { font-size: 34px; }
  .jb-intro p { display: none; }
  .jb-intro-art { display: none; }
  .jb-eyebrow { margin-bottom: 12px; }
  .jb-filter--desktop { display: none; }
  .jb-filter--mobile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 10px; padding: 14px; }
  .jb-mobile-options { grid-column: 1 / -1; }
  .jb-mobile-options > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 0 0; color: var(--deep); font-size: 14px; font-weight: 700; list-style: none; cursor: pointer; }
  .jb-extra-fields { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: end; gap: 14px 10px; padding-top: 14px; }
  .jb-extra-fields .jb-temp, .jb-extra-fields .jb-submit { grid-column: 1 / -1; }
  .jb-extra-fields .jb-submit { width: 100%; }
  .jb-groups { min-width: 0; }
  .jb-groups > summary { font-size: 13px; padding: 0 10px; }
  .jb-group-list { width: auto; min-width: 0; position: static; margin-top: 8px; box-shadow: none; }
  .jb-group-list label { font-size: 13px; padding: 8px 2px; }
  .jb-active-filters { align-items: flex-start; flex-direction: column; gap: 10px; margin: -4px 0 22px; }
  .jb-active-chip { max-width: 100%; }
  .jb-reset { min-height: 32px; display: inline-flex; align-items: center; }
  .jb-toolbar { gap: 8px; margin: 22px 0 14px; }
  .jb-toolbar h2 { font-size: 23px; }
  .jb-sort { font-size: 12px; gap: 6px; }
  .jb-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .jb-sort select { min-width: 105px; font-size: 13px; }
  .jb-row .jb-meta { column-gap: 8px; }
  .jb-row .jb-meta > span + span::before { display: none; }
  .jb-row .jtop { flex-wrap: wrap; }
  .jb-row .jtop > .jb-korb-native { margin: 14px 0 0; }
  .jb-detail-head { padding: 24px 20px; }
  .jb-detail-head .logo { width: 52px; height: 52px; }
  .jb-detail-head h1 { font-size: 30px; }
  .jb-detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 22px 20px; gap: 20px; }
  .jb-detail-field { grid-column: 1 / -1; }
  .jb-detail-body { padding: 28px 20px; }
  .jb-detail-body h2 { font-size: 23px; }
  .jb-notice { padding: 24px 20px; }
}
