/* ===== BF Jobs Accordion (namespaced, Porto-unabhängig) ===== */
.bf-jobs{
  --bf-green:#057652;
  --bf-text:#111;
  --bf-line:#2f2f2f;
  --bf-line-soft:#6b6b6b;
  --bf-hover: rgba(5,118,82,0.08);

  font-family: 'Droid-Serif', serif;
  color: var(--bf-text);
}

.bf-jobs__list{
  max-width: 72rem;
  margin-inline: auto;
}

.bf-jobs__item{
  border: 0;
  background: transparent;
  margin: 0;
  border-top: 1px solid rgba(0,0,0,0.55);
}

.bf-jobs__item:last-child{
  border-bottom: 1px solid rgba(0,0,0,0.55);
}

/* Summary als Zeile */
.bf-jobs__sum{
  list-style: none;
  cursor: pointer;
  outline: none;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  gap: clamp(0.75rem, 1.2vw, 1.25rem);
  padding: clamp(1.0rem, 1.6vw, 1.6rem) clamp(0.6rem, 1vw, 1.0rem);
}

.bf-jobs__sum::-webkit-details-marker{ display:none; }

/* Fokus: Summary */
.bf-jobs__sum:focus-visible{
  outline: 3px solid var(--bf-green);
  outline-offset: 6px;
  border-radius: 0.75rem;
}

/* Link rechts soll nicht das Details togglen */
.bf-jobs__apply{
  display: inline-flex;
  align-items: center;
  gap: clamp(0.45rem, 0.9vw, 0.75rem);
  padding: 0.35rem 0.45rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.bf-jobs__apply:focus-visible{
  outline: 3px solid var(--bf-green);
  outline-offset: 4px;
}

/* Hover auf kompletter Zeile */
.bf-jobs__sum:hover{
  background: rgba(0,0,0,0.02);
}
.bf-jobs__sum:hover .bf-jobs__apply{
  background: var(--bf-hover);
}

/* Link-Icons (Indeed + Pfeil) */
.bf-jobs__applyIcon{
  display: inline-block;
  width: clamp(1.25rem, 1.2vw + 0.8rem, 1.6rem);
  height: clamp(1.25rem, 1.2vw + 0.8rem, 1.6rem);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.bf-jobs__applyIcon--indeed{
  background-image: url("../img/bf-img/icons/indeed-icon.svg");
}

.bf-jobs__applyIcon--arrow{
  background-image: url("../img/bf-img/icons/arrow-right.svg");
}

/* Left Chevron */
.bf-jobs__chev{
  width: 1rem;
  height: 1rem;
  display: inline-block;
  border-right: 3px solid rgba(0,0,0,0.25);
  border-bottom: 3px solid rgba(0,0,0,0.25);
  transform: rotate(45deg); /* geschlossen: nach unten */
  transition: transform 0.2s ease;
  margin-bottom: 0.6rem;
}

/* Titel */
.bf-jobs__title{
  font-family: 'Jost-Medium';
  font-weight: normal;
  font-size: clamp(0.78rem, 0.72rem + 0.25vw, 1.0rem);
  text-transform: uppercase;
  line-height: clamp(1.25rem, 1.15rem + 0.45vw, 1.6rem);
  letter-spacing: clamp(0.015rem, 0.01rem + 0.15vw, 0.08rem);
  color: var(--bf-text);
}

/* Offen: Titel grün + Chevron hoch */
.bf-jobs__item[open] .bf-jobs__title{
  color: var(--bf-green);
}
.bf-jobs__item[open] .bf-jobs__chev{
  transform: rotate(-135deg); /* offen: nach oben */
  border-right-color: rgba(0,0,0,0.35);
  border-bottom-color: rgba(0,0,0,0.35);
  margin-bottom: -0.6rem;
}

/* Body */
.bf-jobs__body{
  padding: 0 clamp(0.6rem, 1vw, 1.0rem) clamp(1.1rem, 1.6vw, 1.6rem);
}

/* Text (Droid) */
.bf-jobs__body p{
  margin: 0;
  font-size: clamp(0.85rem, 0.8rem + 0.3vw, 1.0rem);
  line-height: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  color: var(--bf-text);
}

/* Optional: weiches Ein-/Ausfahren wie bei deinem Timeline-Fix */
.bf-jobs__bodyInner{
  transform: translateY(-0.6rem);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.38s cubic-bezier(.4,0,.2,1),
    opacity 0.22s ease,
    transform 0.38s cubic-bezier(.4,0,.2,1);
}

.bf-jobs__item[open] .bf-jobs__bodyInner{
  max-height: 60rem;
  opacity: 1;
  transform: translateY(0);
}

/* Responsive: Titel darf umbrechen + Icons bleiben klickbar */
@media (max-width: 600px){
  .bf-jobs__sum{
    padding: 1.0rem 0.4rem;
    gap: 0.75rem;
  }
  .bf-jobs__title{
    letter-spacing: 0.11em;
    font-size: clamp(0.78rem, 0.72rem + 0.25vw, 1.0rem);
  }
  .bf-jobs__apply{
    padding: 0.35rem 0.35rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce){
  .bf-jobs__chev,
  .bf-jobs__bodyInner{
    transition: none;
  }
}
