/* Small, scoped additions to the existing piospartslap JTL theme.
   Grid, typography, cards, breadcrumbs and buttons come from the shop CSS. */
.pio-jobs { --pio-jobs-accent: #da251c; }
/* JTL integration: use the entire content box on pages containing job content. */
#content-wrapper:has(.pio-jobs) #sidepanel_left { display: none !important; }
#content-wrapper:has(.pio-jobs) #content > .row > div:has(.pio-jobs) { flex: 0 0 100%; max-width: 100%; }
#content-wrapper:has(.pio-jobs) .link-content:has(.pio-jobs) { max-width: 100%; width: 100%; padding-left: 0; padding-right: 0; }
#content-wrapper:has(.breadcrumb-container) .pio-jobs > nav[aria-label="Brotkrumennavigation"] { display: none; }
/* Neutralize the theme's 4rem padding on every main section. */
.pio-jobs section { padding: 0; }
.pio-jobs h2 { font-size: 1.35rem; line-height: 1.35; margin-bottom: .85rem; }
.pio-jobs h3 { font-size: 1rem; line-height: 1.4; }
.pio-jobs .breadcrumb { margin-bottom: 1.25rem; }
.pio-jobs .breadcrumb { padding-left: 0; font-size: .8rem; }
.pio-jobs .pio-jobs-eyebrow { color: #ad211b; font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.pio-jobs h1 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); line-height: 1.3; overflow-wrap: anywhere; margin-bottom: .85rem; }
.pio-jobs .lead { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.pio-jobs section.pio-jobs-hero { padding: 1.5rem; background: #f6f6f6; border-top: 3px solid var(--pio-jobs-accent); margin-bottom: 1.5rem !important; }
.pio-jobs-hero .lead.mb-4 { margin-bottom: 1rem !important; }
.pio-jobs-count { border-left: 1px solid #d6d6d6; padding: .5rem 0 .5rem 1.5rem; }
.pio-jobs-count .h4 { font-size: 1rem; line-height: 1.4; margin-bottom: .6rem; }
.pio-jobs-count-number { display: block; color: var(--pio-jobs-accent); font-size: 3rem; font-weight: 600; line-height: 1.1; margin-bottom: .5rem; }
.pio-jobs-overview section[aria-labelledby="team-heading"] { margin-bottom: 1.5rem !important; }
.pio-jobs-overview #team-heading { font-size: 1.2rem; }
.pio-jobs-card { border: 1px solid #e1e1e1; border-left: 3px solid #da251c; box-shadow: 0 2px 8px rgba(41,49,49,.045); transition: box-shadow .18s ease, border-color .18s ease; }
.pio-jobs-card .card-body { padding: 1.35rem; }
.pio-jobs-card h3 { font-size: 1.15rem; line-height: 1.45; }
.pio-jobs-card-main { display: flex; align-items: flex-start; gap: 1.1rem; }
.pio-jobs-card-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 52px; height: 52px; color: #bf241c; background: #fcf0ef; border-radius: 6px; font-size: 1.4rem; }
.pio-jobs-card-copy { min-width: 0; }
.pio-jobs-card .pio-jobs-eyebrow { display: inline-block; font-size: .68rem; margin-top: .1rem; }
.pio-jobs-card p.mb-3 { margin-bottom: .6rem !important; }
.pio-jobs-card h3 a { color: #303737; text-decoration: none; }
.pio-jobs-card h3 a:hover { color: var(--pio-jobs-accent); }
.pio-jobs-card:hover, .pio-jobs-card:focus-within { border-color: #cbcbcb; border-left-color: var(--pio-jobs-accent); box-shadow: 0 4px 16px rgba(41,49,49,.09); }
.pio-jobs-card .pio-jobs-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.pio-jobs-card .pio-jobs-meta li { display: inline-flex; align-items: center; gap: .4rem; margin-right: 0; padding: .3rem .55rem; background: #f4f5f5; border-radius: 3px; color: #525959; font-size: .72rem; }
.pio-jobs-card .pio-jobs-meta i { color: #777; font-size: .75rem; }
.pio-jobs-card-salary { margin-bottom: 1rem; }
.pio-jobs-card-salary > span { display: block; color: #777; font-size: .7rem; margin-bottom: .25rem; }
.pio-jobs-card-salary strong { display: block; color: #303737; font-size: .9rem; font-weight: 600; }
.pio-jobs-card-action .btn { display: inline-flex; align-items: center; gap: .85rem; }
.pio-jobs-card-action .btn i { font-size: .75rem; }
@media (max-width: 991px) {
  .pio-jobs-card-action { padding-left: calc(15px + 52px + 1.1rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
  .pio-jobs-card-salary { margin-bottom: 0; }
}
@media (max-width: 575px) {
  .pio-jobs-card-icon { flex-basis: 38px; height: 38px; font-size: 1.1rem; }
  .pio-jobs-card-main { gap: .75rem; }
  .pio-jobs-card h3 { font-size: 1.05rem; }
  .pio-jobs-card-action { padding-left: 15px; }
}
@media (prefers-reduced-motion: reduce) { .pio-jobs-card { transition: none; } }
.pio-jobs section.pio-jobs-contact { background: #f5f5f5; border-top: 2px solid #da251c; padding: 1.25rem; }
.pio-jobs-contact h2 { font-size: 1.2rem; }
.pio-jobs section.pio-jobs-initiative { padding: 1.25rem; border: 1px solid #dedede; border-left: 3px solid #da251c; }
.pio-jobs-initiative h2 { font-size: 1.2rem; }
.pio-jobs-initiative p { line-height: 1.6; }
.pio-jobs-detail-heading { padding: 0 0 1.25rem; margin-bottom: 0 !important; }
.pio-jobs-detail > a.mb-4 { margin-bottom: 1rem !important; }
.pio-jobs-detail-heading .pio-jobs-eyebrow { margin-bottom: .5rem; }
.pio-jobs-sections { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; padding: .8rem 0; margin-bottom: 1.5rem; border-top: 1px solid #dedede; border-bottom: 1px solid #dedede; }
.pio-jobs-sections a { font-weight: 600; font-size: .85rem; }
.pio-jobs-description section.mb-5 { margin-bottom: 1.5rem !important; }
.pio-jobs-description section > h2 { padding-bottom: .6rem; border-bottom: 1px solid #e4e4e4; }
.pio-jobs-description h3.mt-4 { margin-top: 1.1rem !important; margin-bottom: .6rem; font-size: .95rem; font-weight: 600; }
.pio-jobs-description section > :last-child { margin-bottom: 0; }
.pio-jobs-list { padding-left: 1.25rem; }
.pio-jobs-list li { margin-bottom: .4rem; padding-left: .2rem; line-height: 1.6; }
.pio-jobs-facts { background: #f6f6f6; border: 1px solid #dedede; box-shadow: none; }
.pio-jobs-facts .card-body { padding: 1.25rem; }
.pio-jobs-facts h2 { font-size: 1.15rem; padding-bottom: .75rem; margin-bottom: .75rem; border-bottom: 1px solid #dedede; }
.pio-jobs-facts dl { margin-bottom: 1rem; }
.pio-jobs-fact + .pio-jobs-fact { margin-top: .7rem; }
.pio-jobs-facts dt { font-size: .75rem; color: #555; font-weight: 400; margin: 0 0 .15rem; }
.pio-jobs-facts dd { margin: 0; font-weight: 600; line-height: 1.5; }
@media (min-width: 992px) {
  .pio-jobs-detail-grid > aside { align-self: flex-start; position: sticky; top: 1rem; }
}
@media (max-width: 991px) {
  .pio-jobs-count { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; border-left: 0; border-top: 1px solid #dedede; padding: 1rem 0 0; }
  .pio-jobs-count-number { font-size: 2rem; margin: 0; }
  .pio-jobs-count .h4 { margin: 0; }
  .pio-jobs-count .h4 br { display: none; }
  .pio-jobs-detail-grid > aside { order: -1; margin-bottom: 1.5rem; }
  .pio-jobs-facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
  .pio-jobs-fact + .pio-jobs-fact { margin-top: 0; }
  .pio-jobs-detail-grid > aside > a { display: none; }
  .pio-jobs-facts.mb-4 { margin-bottom: 0 !important; }
}
.pio-jobs a:focus-visible { outline: 3px solid #da251c; outline-offset: 4px; }
.pio-jobs [id] { scroll-margin-top: 2rem; }
/* Detail pages follow one reading column with expandable content groups. */
.pio-jobs-detail-simple { width: 100%; }
.pio-jobs-back { display: inline-block; margin-bottom: 1.25rem; }
.pio-jobs-detail-simple .pio-jobs-detail-heading { padding-bottom: 1.25rem; }
.pio-jobs-detail-title { display: flex; gap: 1.25rem; align-items: flex-start; }
.pio-jobs-detail-icon { display: flex; flex: 0 0 68px; height: 68px; align-items: center; justify-content: center; border-radius: 6px; background: #fcf0ef; color: #bf241c; font-size: 1.85rem; }
.pio-jobs-detail-title .lead { margin-bottom: 0; }
.pio-jobs-top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.5rem; margin-top: 1.25rem; }
.pio-jobs .pio-jobs-pdf { display: inline-flex; align-items: center; gap: .65rem; font-size: .875rem; }
.pio-jobs-pdf .fa-file-pdf { font-size: 1.15rem; color: #b52b23; }
.pio-jobs-summary-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem 1.25rem; padding: 1.25rem; margin: 0 0 1.25rem; background: #f6f6f6; border-top: 2px solid #da251c; }
.pio-jobs-summary-facts .pio-jobs-fact { margin: 0; }
.pio-jobs-summary-facts dt, .pio-jobs-summary-facts .pio-jobs-fact-label { display: flex; gap: .45rem; align-items: center; margin: 0 0 .35rem; font-size: .75rem; font-weight: 400; color: #666; }
.pio-jobs-summary-facts dt i, .pio-jobs-fact-label i { width: 1rem; text-align: center; color: #b52b23; }
.pio-jobs-summary-facts dd, .pio-jobs-summary-facts .pio-jobs-fact-value { display: block; margin: 0; font-size: .85rem; font-weight: 600; line-height: 1.5; }
.pio-jobs-role-summary { font-size: 1rem; line-height: 1.6; margin-bottom: 1.25rem; }
.pio-jobs-panel { border: 1px solid #e1e1e1; border-left: 3px solid #da251c; margin-bottom: .75rem; box-shadow: 0 2px 8px rgba(41,49,49,.045); }
.pio-jobs-panel > summary { list-style: none; display: flex; align-items: center; gap: 1rem; cursor: pointer; padding: 1.1rem 1.25rem; }
.pio-jobs-panel > summary::-webkit-details-marker { display: none; }
.pio-jobs-panel-icon { display: flex; flex: 0 0 46px; height: 46px; align-items: center; justify-content: center; background: #fcf0ef; color: #bf241c; border-radius: 5px; font-size: 1.2rem; }
.pio-jobs-panel-title { display: block; font-family: Montserrat, sans-serif; font-size: 1.15rem; font-weight: 600; line-height: 1.4; color: #333; }
.pio-jobs-panel-hint { display: block; margin-top: .2rem; font-size: .8rem; color: #666; }
.pio-jobs-panel-toggle { display: flex; flex: 0 0 28px; height: 28px; align-items: center; justify-content: center; margin-left: auto; background: #fcf0ef; border-radius: 50%; color: #b52b23; font-size: 1.25rem; }
.pio-jobs-panel-toggle::before { content: '+'; }
.pio-jobs-panel[open] .pio-jobs-panel-toggle::before { content: '−'; }
.pio-jobs-panel[open] > summary { background: #f6f6f6; border-bottom: 1px solid #e5e5e5; }
.pio-jobs-panel > summary:hover { background: #f6f6f6; }
.pio-jobs-panel > summary:focus-visible, .pio-jobs-about > summary:focus-visible { outline: 2px solid #da251c; outline-offset: 3px; }
.pio-jobs-panel-body { padding: 1.25rem 1.5rem; }
.pio-jobs-panel-body h3.mt-4 { margin-top: 1.25rem !important; margin-bottom: .6rem; font-size: 1rem; font-weight: 600; }
.pio-jobs-panel-body > h3:first-child { margin-top: 0 !important; }
.pio-jobs-panel-body > :last-child { margin-bottom: 0; }
.pio-jobs-about { margin: 1.25rem 0; }
.pio-jobs-about > summary { cursor: pointer; font-weight: 600; font-size: .85rem; }
.pio-jobs-about p { margin: .75rem 0 0; line-height: 1.65; }
.pio-jobs-detail-simple .pio-jobs-contact { margin-top: 1.5rem; }
.pio-jobs-detail-simple .pio-jobs-contact h2 { display: flex; gap: .85rem; align-items: center; }
.pio-jobs-apply-icon { display: flex; flex: 0 0 40px; height: 40px; align-items: center; justify-content: center; border-radius: 5px; background: #fbe2e0; color: #b52b23; font-size: 1rem; }
.pio-jobs-detail-simple .pio-jobs-contact .btn { display: inline-block; width: auto; }
@media (max-width: 767px) {
  .pio-jobs-detail-title { gap: .85rem; }
  .pio-jobs-detail-icon { flex-basis: 46px; height: 46px; font-size: 1.3rem; }
  .pio-jobs-summary-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; padding: 1rem; }
  .pio-jobs-panel > summary { padding: 1rem; gap: .75rem; }
  .pio-jobs-panel-title { font-size: 1rem; }
  .pio-jobs-panel-icon { flex-basis: 36px; height: 36px; font-size: 1rem; }
  .pio-jobs-panel-body { padding: 1rem; }
}
@media print {
  .pio-jobs-panel-body, .pio-jobs-about p { display: block !important; }
  .pio-jobs-panel-hint, .pio-jobs-panel-toggle { display: none; }
}
@media (max-width: 575px) {
  .pio-jobs section.pio-jobs-hero { padding: 1.1rem; }
  .pio-jobs-count-number { font-size: 2rem; }
  .pio-jobs-card .card-body { padding: 1.1rem; }
  .pio-jobs .btn { white-space: normal; }
}

