/* Grundlayout */
#bp-wrapper {
  max-width: 800px;
  margin: 0 auto;
  font-family: sans-serif;
}

/* Suchzeile */
.bp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  margin-top: 30px;
}
.bp-search input {
  padding: 6px 10px;
  flex: 1;
}
/* nur der Such-Button zeigt die Lupe */
#bp-search-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#bp-search-btn::before {
  content: "\f179"; /* dashicons-search */
  font-family: dashicons;
  font-size: 18px;
  line-height: 1;
}

/* Toggle-Button für Filter */
#bp-toggle-filters {
  background: #000;
  color: #fff;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#bp-toggle-filters:hover {
  background: #333;
}

/* Filterbereich */
.bp-filters {
  display: none; /* Standardmäßig versteckt */
  flex-direction: column;
  gap: 0;
  margin-bottom: 60px;
  align-items: flex-end; /* für Button rechtsbündig */
  max-width: 681px; /* gleiche Breite für alle */
}

/* Zeile 1: Ressort-Dropdown */
.bp-filters select {
  padding: 4px 10px;
  width: 100%;
  max-width: 681px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

/* Zeile 2: Datum-Felder */
.date-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  max-width: 681px;
  box-sizing: border-box;
}
.bp-date-label {
  font-size: 13px;
  margin-right: 4px;
  color: #333;
}
.date-row input[type="date"] {
  padding: 4px 10px;
  min-width: 140px;
  max-width: 300px;
  flex: 1;
  box-sizing: border-box;
  width: 300px;
}

/* Zeile 3: Button */
.button-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 681px;
  margin-top: 10px;
}
.button-row button {
  background: #000;
  color: #fff;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
}

/* Responsive Anpassung */
@media (max-width: 600px) {
  .bp-filters {
    align-items: flex-start;
    max-width: 100%;
  }
  .bp-filters select {
    max-width: 100%;
  }
  .date-row {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
  }
  .date-row input[type="date"] {
    max-width: 100%;
    font-size: 16px; /* größere Schriftgröße für bessere mobile Darstellung */
    min-height: 40px;
    line-height: 40px;
    
  }

  /* ➕ Wrapper nur in mobiler Ansicht */
  .date-wrapper {
    display: inline-block;
    padding: 2px;
    border: 1px solid #ccc;
    border-radius: 0px;
    width: 312px;
    box-sizing: border-box;
  }
  .date-wrapper input[type="date"] {
    border: none;
    background: transparent;
    font-size: 16px;
    line-height: 1.4;
    min-height: 32px;
    box-sizing: border-box;
    width: 100%;
  }

  .button-row {
    justify-content: flex-start;
    max-width: 100%;
  }
}

/* Aktive Filter */
#bp-active-filters {
  margin: 10px 0;
}
.bp-filter-chip {
  display: inline-flex;
  align-items: center;
  background: #000;
  color: #fff;
  border-radius: 7px;
  padding: 5px 10px;
  margin-right: 5px;
  margin-bottom: 5px;
  font-size: 13px;
}
.bp-filter-chip .bp-remove-filter {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  text-align: center;
  line-height: 16px;
  border-radius: 50%;
  background: #888;
  color: #fff;
  cursor: pointer;
}
.bp-filter-chip .bp-remove-filter:hover {
  background: #555;
}

/* Liste */
.bp-list {
  list-style: none;
  padding: 0;
}
.bp-item {
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  margin-bottom: 15px;
}
.bp-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 3px;
}
/* Titel fett, unterstrichen, rot */
.bp-title {
  line-height: 1.4em;
}


.bp-title a {
  font-size: 16px;
  font-weight: bold;
  color: #c13b33;
  text-decoration: underline;
}
.bp-title a:hover {
  text-decoration: underline;
  color: #a52a2a;
}

/* Anrisstext */
.bp-anriss {
  margin-top: 4px;
  font-size: 15px;
  color: #161616;
  line-height: 1.4;
}
