/* /static/hosts.css — Anbieter-Übersichtsseite */

.hosts-page {
  padding-top: clamp(1rem, 2vw, 2rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.hosts-hero {
  background:
    radial-gradient(ellipse at top right, rgba(255, 207, 44, 0.18), transparent 55%),
    linear-gradient(180deg, #fbfbf6 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-2);
}

.hosts-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-navy);
  background: var(--brand-yellow-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hosts-hero h1 {
  margin: 0 0 0.4rem 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  color: var(--brand-navy);
}

.hosts-hero p {
  margin: 0;
  max-width: 60ch;
}

/* Toolbar */
.hosts-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
  background: var(--surface-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 0.9rem 1rem;
}

.hosts-toolbar .field { min-width: 0; }

.hosts-toolbar .field--inline {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding-bottom: 10px; /* visuell auf Höhe der Input-/Select-Linie ausrichten */
  cursor: pointer;
  user-select: none;
}

.hosts-toolbar .field--inline > span {
  font-size: var(--fs-300);
  color: var(--brand-navy);
  font-weight: 600;
  line-height: 1.2;
}

/* Checkbox darf nicht die globale `.field input { width:100% }`-Regel erben,
   sonst wird sie über die ganze Spalte gestreckt und bricht aus der Toolbar aus. */
.hosts-toolbar .field--inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  background: var(--surface-soft);
  background-image: none;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: none;
  appearance: auto;
  -webkit-appearance: auto;
  accent-color: var(--brand-navy);
  cursor: pointer;
}

.hosts-toolbar .hosts-summary {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 720px) {
  .hosts-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .hosts-toolbar .field--inline {
    padding-bottom: 0;
  }
}

/* Grid */
.hosts-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.hosts-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hosts-card__head { display: flex; align-items: flex-start; }

.hosts-card__id {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
}

.hosts-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-yellow-soft);
  flex: 0 0 auto;
  border: 1px solid var(--line);
}

.hosts-card__avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand-navy);
  font-size: 1.1rem;
}

.hosts-card__name {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--brand-navy);
}

.hosts-card__name a {
  color: inherit;
  text-decoration: none;
}

.hosts-card__name a:hover { text-decoration: underline; }

.hosts-card__supplier { margin: 2px 0 4px 0; }

.hosts-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--brand-navy);
}

.hosts-card__rating-stars {
  color: #f0b90a;
  letter-spacing: 1px;
  font-size: 1rem;
}

.hosts-card__rating--empty {
  color: var(--muted);
  font-style: italic;
  font-size: 0.85rem;
}

.hosts-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hosts-card__chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f3ed;
  border: 1px solid #b9e0ce;
  color: #156040;
  font-size: 12px;
  font-weight: 600;
}

.hosts-card__chip--muted {
  background: #f3f1ea;
  border-color: var(--line);
  color: var(--muted);
  font-weight: 500;
}

.hosts-card__bio {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hosts-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hosts-card__actions .btn { flex: 1 1 auto; min-width: 140px; }
