/* Saved farms / Merkliste page — editorial monochrome */

html.b-editorial [hidden] {
  display: none !important;
}

html.b-editorial .b-saved-farms-page {
  background: #fff;
  color: #000;
}

html.b-editorial .b-saved-farms-page__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) var(--b-space-page, 24px);
}

html.b-editorial .b-saved-farms-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #000;
  padding-bottom: 24px;
}

html.b-editorial .b-saved-farms-header .b-page-title {
  margin: 0;
  font-family: var(--b-font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

html.b-editorial .b-saved-farms-header__meta {
  margin: 10px 0 0;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
}

html.b-editorial .b-view-switcher {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

html.b-editorial .b-view-switcher__button {
  min-height: 42px;
  border: 1.5px solid #000;
  background: #fff;
  color: #000;
  padding: 0 14px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  border-radius: 0;
}

html.b-editorial .b-view-switcher__button.is-active,
html.b-editorial .b-view-switcher__button:hover {
  background: #000;
  color: #fff;
}

html.b-editorial .b-view-switcher__button:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

html.b-editorial .b-table-column-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 18px 0 24px;
}

html.b-editorial .b-table-column-picker__label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
}

html.b-editorial .b-table-column-picker label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #000;
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: #fff;
}

html.b-editorial .b-table-column-picker input[type="checkbox"] {
  accent-color: #000;
}

html.b-editorial .b-saved-farms-loading__text {
  margin: 48px 0;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
}

/* Empty / stale cards */
html.b-editorial .b-empty-card {
  margin: 48px 0;
  padding: clamp(28px, 4vw, 48px);
  border: 1.5px solid #000;
  background: #fff;
  max-width: 640px;
}

html.b-editorial .b-empty-card__eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
}

html.b-editorial .b-empty-card__title {
  margin: 0 0 14px;
  font-family: var(--b-font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
}

html.b-editorial .b-empty-card__copy {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

html.b-editorial .b-empty-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* List view — directory cards stack */
html.b-editorial .b-saved-farms-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}

html.b-editorial .b-saved-farms-list .b-farm-card--directory {
  width: 100%;
}

/* Saved list: quadratischer Entfernen-Button links, „Farm ansehen“ füllt die restliche Breite */
html.b-editorial .b-saved-farms-list .b-farm-card__actions--saved {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  margin-top: 28px;
}

html.b-editorial .b-saved-farms-list .b-farm-card__remove-saved.farm__wishlist-btn {
  position: static;
  opacity: 1;
  transform: none;
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  height: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  color: #000;
  border: 1.5px solid #000;
}

html.b-editorial .b-saved-farms-list .b-farm-card__remove-saved .b-farm-card__save-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.b-editorial .b-saved-farms-list .b-farm-card__remove-saved .ph {
  font-size: 1.28rem;
  line-height: 1;
}

html.b-editorial .b-saved-farms-list .b-farm-card__actions--saved .b-farm-card__view {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
}

html.b-editorial .b-saved-farms-list .b-farm-card__remove-saved.farm__wishlist-btn.is-added,
html.b-editorial .b-saved-farms-list .b-farm-card__remove-saved.farm__wishlist-btn.is-active {
  background: #000;
  color: #fff;
}

html.b-editorial.page-wishlist .b-saved-farms-list .b-farm-card__remove-saved .ph-fill.ph-heart {
  color: #fff;
}

html.b-editorial .b-saved-farms-list .b-farm-card__remove-saved:hover,
html.b-editorial .b-saved-farms-list .b-farm-card__remove-saved:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* Table */
html.b-editorial .b-saved-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1.5px solid #000;
  margin-top: 8px;
}

html.b-editorial .b-saved-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  background: #fff;
}

html.b-editorial .b-saved-table th,
html.b-editorial .b-saved-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #d8d8d8;
  text-align: left;
  vertical-align: top;
}

html.b-editorial .b-saved-table th {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  border-bottom: 1.5px solid #000;
}

html.b-editorial .b-saved-table td {
  font-size: 0.92rem;
  color: #000;
}

html.b-editorial .b-saved-table tbody tr:hover {
  background: #fafafa;
}

html.b-editorial .b-saved-table th.is-col-hidden,
html.b-editorial .b-saved-table td.is-col-hidden {
  display: none;
}

html.b-editorial .b-saved-table__name-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

html.b-editorial .b-saved-table__name-link {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.1;
}

html.b-editorial .b-saved-table__name-link:hover {
  text-decoration: underline;
}

html.b-editorial .b-saved-table__flag {
  font-size: 1.35rem;
  line-height: 1;
}

html.b-editorial .b-saved-table__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

html.b-editorial .b-saved-table__chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #000;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fff;
  color: #000;
}

html.b-editorial .b-saved-table__chip--more {
  cursor: default;
  border-style: dashed;
}

html.b-editorial .b-saved-table__chip--more:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

html.b-editorial .b-saved-table__kpi-value {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

html.b-editorial .b-saved-table__kpi-value .b-kpi__value,
html.b-editorial .b-saved-table__kpi-value .b-kpi__unit {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

html.b-editorial .b-saved-table__kpi-empty {
  color: #555;
}

html.b-editorial .b-saved-table__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

html.b-editorial .b-saved-table__actions .b-btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.68rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  html.b-editorial .b-saved-farms-header {
    display: block;
  }

  html.b-editorial .b-saved-farms-header__controls {
    margin-top: 18px;
  }

}

@media (max-width: 767px) {
  html.b-editorial .b-saved-farms-list .b-farm-card__remove-saved.farm__wishlist-btn {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  html.b-editorial .b-saved-farms-list .b-farm-card__actions--saved .b-farm-card__view {
    min-height: 48px;
  }
}
