/* ===== Namespaced: stört Porto nicht ===== */
.bf-pl{
  --bf-green: #57b52b;
  --bf-text: #111;
  --bf-muted: #6b6b6b;
  --bf-border: #d6d6d6;
  --bf-bg: #fff;
  --bf-shadow: 0 0 6px rgba(0,0,0,.08);

  color: var(--bf-text);
}

.bf-pl {margin:0 !important; padding: 0!important;}

.bf-pl__card{
  background: var(--bf-bg);
  border-radius: 0.5rem;
  box-shadow: var(--bf-shadow);

  /* WICHTIG für Sticky in derselben Column:
     KEIN overflow:hidden am Card, sonst kann Sticky (in dieser Column) sterben */
  overflow: visible;
}

/* Optional: nur dieser innere Wrapper clippt runde Ecken
   (nutzen, wenn du das Clipping brauchst; Sticky-Element darf NICHT in diesem Wrapper liegen) */
.bf-pl__clip{
  border-radius: inherit;
  overflow: hidden;
}

.bf-pl__item{
  border-bottom: 1px solid var(--bf-border);
}
.bf-pl__item:last-child{
  border-bottom: none;
}

.bf-pl__summary{
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem 0.6rem;
  outline: none;
}
.bf-pl__summary::-webkit-details-marker{ display:none; }

/* Tastaturfokus sichtbar (Porto überschreibt oft outlines) */
.bf-pl__summary:focus-visible{
  outline: 3px solid currentColor;
  outline-offset: 4px;
  border-radius: 0.5rem;
}

.bf-pl__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.bf-pl__codeWrap{
  display:flex;
  align-items:center;
  gap: 0.4rem;
  min-width: 0;
}

.bf-pl__code{
  font-weight: 500;
  letter-spacing: 0.02em;
}

.bf-pl__meta{
  display:flex;
  align-items:center;
  gap: 0.4rem;
  white-space: nowrap;
}

/* Favorit-Button: optisch wie Icon, aber semantisch Button */
.bf-pl__favBtn{
  border: 0;
  background: transparent;
  padding: 0.1rem 0.2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0.4rem;
}

/* Fokus am Button (extra, weil Summary-Fokus sonst dominiert) */
.bf-pl__favBtn:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.bf-pl__heart{
  display: block; /* wichtig für saubere Ausrichtung im Flex-Wrapper */
  width: 1.1rem;
  height: 1.1rem;
  background: url("../img/bf-img/icons/herzgrau-icon.svg") no-repeat center / contain;
  font-size: 0;        /* Textinhalt sicher aus */
  line-height: 1;      /* keine Baseline-Verschiebung */
  color: transparent;  /* Fallback */
}

.bf-pl__arrow{
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  background: url("../img/bf-img/icons/dropdown-arrow.svg") no-repeat center / contain;
  font-size: 0; 
  line-height: 1;
  color: transparent;
  transition: transform 0.15s ease;
}

.bf-pl__name{
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

/* Favorit: Herz + Titel grün */
.bf-pl__item.is-favorite .bf-pl__heart{
  background-image: url("../img/bf-img/icons/herzgruen-icon.svg");
}

.bf-pl__item.is-favorite .bf-pl__name{
  color: var(--bf-green);
}

/* Optional: Hover am Herz */
.bf-pl__favBtn:hover .bf-pl__heart{
  color: var(--bf-green);
}

/* Beschreibung */
.bf-pl__desc{
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 0 1rem 0.95rem;
  color: #333;
}

/* Pfeil drehen wenn offen */
.bf-pl__item[open] .bf-pl__arrow{
  transform: rotate(180deg);
}

/* Hover dezent */
.bf-pl__summary:hover{
  background: rgba(0,0,0,0.03);
}

/* Responsive */
@media (max-width: 600px){
  .bf-pl__summary{
    padding: 0.75rem 0.85rem 0.55rem;
  }
  .bf-pl__head{
    font-size: 0.9rem;
    flex-wrap: wrap;
  }
  .bf-pl__name{
    font-size: 1rem;
  }
  .bf-pl__desc{
    font-size: 0.88rem;
    padding: 0 0.85rem 0.85rem;
  }
}
