.hub-event-unified-library__results article {
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
}

/* Die Treffer liegen häufig in einer schmalen, verstellbaren Seitenleiste.
 * Deshalb reagiert jede Ergebnisgruppe auf ihre tatsächliche Breite und nicht
 * nur auf die Breite des Browserfensters. */
.hub-event-unified-library__results > section {
  container-type: inline-size;
}

.hub-event-unified-library__results article > span:not(.hub-event-unified-library__result-media) {
  min-width: 0;
}

.hub-event-unified-library__results article strong,
.hub-event-unified-library__results article small {
  word-break: normal !important;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hub-event-unified-library__result-actions {
  min-width: 0;
}

.hub-event-unified-library__result-media {
  display: grid !important;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid #cbdacf;
  border-radius: 10px;
  background: #eef5f0;
  font-size: 1.25rem;
  line-height: 1;
  overflow: hidden;
}

.hub-event-unified-library__result-media.is-meat { background: #f8eeee; }
.hub-event-unified-library__result-media.is-fish { background: #edf5f8; }
.hub-event-unified-library__result-media.is-side { background: #f8f3e8; }
.hub-event-unified-library__result-media.is-vegetable,
.hub-event-unified-library__result-media.is-salad { background: #edf7ed; }
.hub-event-unified-library__result-media.is-dessert { background: #f8eef4; }
.hub-event-unified-library__result-media.is-drink { background: #edf4f8; }

.hub-event-unified-library__result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@container (max-width: 460px) {
  .hub-event-unified-library__results article {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    align-items: start;
  }

  .hub-event-unified-library__result-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    justify-content: stretch;
  }

  .hub-event-unified-library__result-actions select {
    width: 100% !important;
    max-width: none !important;
  }

  .hub-event-unified-library__result-actions button {
    min-width: 34px;
  }
}

@media (max-width: 700px) {
  .hub-event-unified-library__results article {
    grid-template-columns: 38px minmax(0, 1fr) !important;
  }

  .hub-event-unified-library__result-actions {
    grid-column: 1 / -1;
  }
}
