/* Jobübersicht: Kartenmuster aus dem LAUSITZ.online Design System. */
#hwx-lmdb-jobs-list {
  --job-list-ink: #0c3247;
  --job-list-muted: #596673;
  --job-list-line: #dbe3e8;
  --job-list-soft: #f5f8fa;
  --job-list-accent: #164f9e;
  gap: 1.5rem;
}

#hwx-lmdb-jobs-list > .hwx-lmdb-list-items {
  /* Im Flex-Container darf die Trefferzahl die Rasterbreite nicht bestimmen. */
  inline-size: 100%;
  min-inline-size: 0;
  flex: 0 0 100%;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
  grid-auto-flow: row;
}

#hwx-lmdb-jobs-list .hwx-job-list__more:not([hidden]) {
  display: inline-flex;
  justify-content: center;
  min-block-size: 3rem;
  padding: .75rem 1.5rem;
  color: var(--job-list-accent);
  background: #fff;
  border: 1px solid currentColor;
  border-radius: 9999px;
  cursor: pointer;
}

#hwx-lmdb-jobs-list .hwx-job-list__more:focus-visible {
  outline: 3px solid var(--job-list-accent);
  outline-offset: 3px;
}

#hwx-lmdb-jobs-list .hwx-job-list__load-status {
  margin: 0;
  color: var(--job-list-muted);
}

#hwx-lmdb-jobs-list .hwx-job-list__load-status:empty {
  display: none;
}

#hwx-lmdb-jobs-list .hwx-lmdb-page-title {
  margin: 0;
}

#hwx-lmdb-jobs-list .hwx-lmdb-page-title .hwx-lmdb-page-title-text {
  margin: 0;
  color: var(--job-list-ink);
  font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  line-height: 1.2;
}

#hwx-lmdb-jobs-list #hwx-lmdb-filter {
  margin-block-end: 0;
  border-radius: .875rem;
}

#hwx-lmdb-jobs-list #hwx-lmdb-filter .filter-button {
  flex: 0 1 auto;
}

#hwx-lmdb-jobs-list #hwx-lmdb-filter .filter-button.active {
  color: #fff !important;
  background: var(--job-list-accent) !important;
  border-color: var(--job-list-accent);
}

#hwx-lmdb-jobs-list #hwx-lmdb-filter .filter-button.active :is(span, i) {
  color: #fff !important;
}

#hwx-lmdb-jobs-list .hwx-lmdb-toplist .hwx-lmdb-list-topitems {
  margin-block-end: 0;
}

#hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: clip;
  background: #fff;
  border: 1px solid var(--job-list-line);
  border-radius: .875rem;
  box-shadow: 0 .45rem 1.2rem rgba(12, 50, 71, .08);
  transition: box-shadow .2s ease, transform .2s ease;
}

#hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item:hover {
  box-shadow: 0 1rem 2.75rem rgba(12, 50, 71, .15);
  transform: translateY(-2px);
}

#hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item:focus-within {
  outline: 3px solid var(--job-list-accent);
  outline-offset: 2px;
}

#hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item .stretched-link:focus-visible {
  outline: none;
}

#hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item-content-wrapper {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

#hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item-imageblock {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  height: 6.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--job-list-line);
}

#hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item-imageblock .hwx-lmdb-list-item-image {
  width: 100%;
  height: 100%;
}

#hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item-imageblock img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#hwx-lmdb-jobs-list .hwx-lmdb-list-item.has-placeholder .hwx-lmdb-list-item-imageblock::before {
  content: "\f0b1";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--job-list-muted);
  font-size: 1.75rem;
}

#hwx-lmdb-jobs-list .hwx-lmdb-list-item.has-placeholder .hwx-lmdb-list-item-imageblock {
  background: var(--job-list-soft);
}

#hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item .hwx-badges-bar {
  position: absolute;
  top: .75rem !important; /* Überschreibt die globale Position am Kartenrand. */
  right: .75rem;
  left: auto;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .375rem;
  max-inline-size: calc(100% - 1.5rem);
  pointer-events: none;
  text-transform: none;
}

#hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item .hwx-badges-bar .hwx-lmdb-list-item-badge {
  display: none;
  width: auto;
  padding: .35em .65em;
  border-radius: 9999px;
  box-shadow: 0 .125rem .375rem rgba(12, 50, 71, .15);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

#hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item.is-new .hwx-badges-bar .hwx-badge-new,
#hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item.is-top .hwx-badges-bar .hwx-badge-top,
#hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item.is-tip .hwx-badges-bar .hwx-badge-tip {
  display: inline-block;
}

#hwx-lmdb-jobs-list .hwx-badges-bar .hwx-badge-new {
  background: #d11f34;
  color: #fff;
}

#hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
  padding: 1rem 1.125rem 1.125rem;
}

#hwx-lmdb-jobs-list .hwx-job-list__facts li:empty {
  display: none;
}

#hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item-content-title-text {
  display: block;
  margin: 0;
  color: var(--job-list-ink) !important;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-line-clamp: unset;
}

#hwx-lmdb-jobs-list .hwx-lmdb-toplist {
  inline-size: 100%;
  min-inline-size: 0;
  flex: 0 0 100%;
}

#hwx-lmdb-jobs-list .hwx-lmdb-toplist .hwx-lmdb-list-topitems {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

#hwx-lmdb-jobs-list .hwx-lmdb-toplist .hwx-job-featured {
  container: job-featured / inline-size;
  border-color: var(--job-list-line);
}

#hwx-lmdb-jobs-list .hwx-lmdb-toplist .hwx-job-featured .hwx-lmdb-list-item-content-wrapper {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

#hwx-lmdb-jobs-list .hwx-lmdb-toplist .hwx-job-featured .hwx-lmdb-list-item-imageblock {
  position: static;
  inline-size: 100%;
  min-block-size: 7rem;
  padding: 1.5rem;
  border: 0;
  border-block-end: 1px solid var(--job-list-line);
}

/* Alte Zeilenlayouts versetzen das Logo mobil und geben ihm eigene Kartenränder. */
#hwx-lmdb-jobs-list .hwx-lmdb-toplist .hwx-lmdb-list-items .hwx-job-featured .hwx-lmdb-list-item-content-wrapper .hwx-lmdb-list-item-imageblock {
  order: 0;
  margin: 0;
  padding: 1.5rem;
  min-inline-size: 0;
  border-radius: 0;
  box-shadow: none;
}

#hwx-lmdb-jobs-list .hwx-lmdb-toplist .hwx-job-featured .hwx-lmdb-list-item-imageblock img {
  block-size: auto;
  max-block-size: 6rem;
  margin: auto;
}

#hwx-lmdb-jobs-list .hwx-lmdb-toplist .hwx-job-featured .hwx-lmdb-list-item-content {
  position: static;
  gap: .75rem;
  padding: 1.25rem;
}

#hwx-lmdb-jobs-list .hwx-lmdb-toplist .hwx-job-featured .hwx-lmdb-list-item-content-title-text {
  font-size: 1.375rem;
  font-size: clamp(1.25rem, 1.125rem + .5cqi, 1.5rem);
  line-height: 1.25;
}

#hwx-lmdb-jobs-list .hwx-job-featured .stretched-link {
  color: inherit;
  text-decoration: none;
}

#hwx-lmdb-jobs-list .hwx-job-featured__label {
  align-self: flex-start;
  padding: .35em .75em;
  color: var(--job-list-accent);
  background: var(--job-list-soft);
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.25;
}

#hwx-lmdb-jobs-list .hwx-job-featured__teaser {
  margin: 0;
  color: #303030;
  font-size: .9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#hwx-lmdb-jobs-list .hwx-job-featured__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block-start: .25rem;
}

#hwx-lmdb-jobs-list .hwx-job-featured__footer .hwx-job-list__facts {
  margin: 0;
  padding: 0;
}

#hwx-lmdb-jobs-list .hwx-job-featured__action {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--job-list-accent);
  font-size: .875rem;
  font-weight: 600;
}

@container job-featured (min-width: 40rem) {
  #hwx-lmdb-jobs-list .hwx-lmdb-toplist .hwx-job-featured .hwx-lmdb-list-item-content-wrapper:has(.hwx-lmdb-list-item-imageblock) {
    grid-template-columns: minmax(12rem, 20%) minmax(0, 1fr);
  }

  #hwx-lmdb-jobs-list .hwx-lmdb-toplist .hwx-job-featured .hwx-lmdb-list-item-imageblock {
    border-block-end: 0;
    border-inline-end: 1px solid var(--job-list-line);
  }

  #hwx-lmdb-jobs-list .hwx-lmdb-toplist .hwx-job-featured .hwx-lmdb-list-item-content {
    padding: 1.5rem;
  }
}

#hwx-lmdb-jobs-list .hwx-job-list__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin: auto 0 0;
  padding: .5rem 0 0;
  list-style: none;
}

#hwx-lmdb-jobs-list .hwx-job-list__facts li {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .25rem .625rem;
  color: #303030;
  background: var(--job-list-soft);
  border-radius: 9999px;
  font-size: .75rem;
  line-height: 1.3;
}

#hwx-lmdb-jobs-list .hwx-job-list__facts .fa-solid,
#hwx-lmdb-jobs-list .hwx-job-list__facts .fa-regular {
  margin: 0;
  color: var(--job-list-muted);
}

@media (prefers-reduced-motion: reduce) {
  #hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item {
    transition: none;
    animation: none !important;
  }

  #hwx-lmdb-jobs-list .hwx-lmdb-list-items .hwx-lmdb-list-item:hover {
    transform: none;
  }
}
