/* === WP Seminar Manager — BFO Grid Layout === */

.wpsm-bfo-wrap {
  font-family: inherit;
}

/* Filter Pills */
.wpsm-bfo-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.wpsm-bfo-filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #f0f0f0;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.wpsm-bfo-filter-btn.active,
.wpsm-bfo-filter-btn:hover {
  background: #1f2a35;
  color: #fff;
}

/* Grid */
.wpsm-bfo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Card — als klickbarer Block */
.wpsm-bfo-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 24px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.wpsm-bfo-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}

/* Hover-Effekt Pfeil: helle Kachel → #3d9df2 */
.wpsm-bfo-card:hover .wpsm-bfo-arrow {
  background: #3d9df2;
  color: #fff;
}

.wpsm-bfo-card--featured {
  background: #1f2a35;
  border-color: #1f2a35;
  color: #fff;
}

/* Hover-Effekt Pfeil: dunkle Kachel → #92e5e8 */
.wpsm-bfo-card--featured:hover .wpsm-bfo-arrow {
  background: #92e5e8;
  color: #1f2a35;
}

/* Card Header: Datum + Badge */
.wpsm-bfo-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

/* Datum — einzeilig: große Zahl + Monat/Jahr inline */
.wpsm-bfo-date {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wpsm-bfo-date__day {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.wpsm-bfo-date__month {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3d9df2;
}

.wpsm-bfo-date__year {
  font-size: 18px;
  font-weight: 400;
  color: #888;
}

.wpsm-bfo-card--featured .wpsm-bfo-date__month {
  color: #92e5e8;
}

.wpsm-bfo-card--featured .wpsm-bfo-date__year {
  color: rgba(255, 255, 255, 0.55);
}

/* Badge */
.wpsm-bfo-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #f0f0f0;
  color: #555;
  white-space: nowrap;
  align-self: flex-start;
}

.wpsm-bfo-card--featured .wpsm-bfo-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Titel */
.wpsm-bfo-card__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}

/* Stretch-Link: macht die gesamte Kachel klickbar */
.wpsm-bfo-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
}

.wpsm-bfo-card__title a,
.wpsm-bfo-card__title a:hover,
.wpsm-bfo-card__title a:focus,
.wpsm-bfo-card__title a:visited {
  color: inherit !important;
  text-decoration: none !important;
}

/* Excerpt */
.wpsm-bfo-card__excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 20px;
}

.wpsm-bfo-card--featured .wpsm-bfo-card__excerpt {
  color: rgba(255, 255, 255, 0.65);
}

/* Trennlinie */
.wpsm-bfo-card__divider {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 0;
}

.wpsm-bfo-card--featured .wpsm-bfo-card__divider {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Footer */
.wpsm-bfo-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 4px;
}

/* Verfügbarkeit */
.wpsm-bfo-avail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.wpsm-bfo-card--featured .wpsm-bfo-avail {
  color: rgba(255, 255, 255, 0.8);
}

.wpsm-bfo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wpsm-bfo-dot--green  { background: #22c55e; }
.wpsm-bfo-dot--yellow { background: #f59e0b; }
.wpsm-bfo-dot--red    { background: #ef4444; }

/* Eintritt frei */
.wpsm-bfo-free {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #555;
}

.wpsm-bfo-card--featured .wpsm-bfo-free {
  color: rgba(255, 255, 255, 0.8);
}

.wpsm-bfo-free svg {
  flex-shrink: 0;
}

/* Pfeil-Button */
.wpsm-bfo-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  flex-shrink: 0;
  position: relative; /* über dem stretch-link */
  z-index: 1;
  transition: background 0.2s, color 0.2s;
}

.wpsm-bfo-card--featured .wpsm-bfo-arrow {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ── Responsive ─────────────────────────────────────────────────── */

/* Tablet: 2 Spalten */
@media (max-width: 1024px) {
  .wpsm-bfo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobil: 1 Spalte, kompaktere Typografie */
@media (max-width: 600px) {
  .wpsm-bfo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .wpsm-bfo-card {
    min-height: unset;
    padding: 20px;
  }

  .wpsm-bfo-date__day {
    font-size: 32px;
  }

  .wpsm-bfo-date__month,
  .wpsm-bfo-date__year {
    font-size: 15px;
  }

  .wpsm-bfo-card__title {
    font-size: 17px;
  }

  .wpsm-bfo-filters {
    gap: 6px;
    margin-bottom: 20px;
  }

  .wpsm-bfo-filter-btn {
    font-size: 13px;
    padding: 6px 12px;
  }
}
