.factory-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.factory-tool-group {
  min-width: 0;
}

.factory-tool-group > header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 4px 10px;
  border-bottom: 1px solid #252832;
  color: #f4f5f8;
  font: 650 13px/1.2 "Space Grotesk", sans-serif;
}

.factory-tool-group > header b {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #1b1d25;
  color: #777e8e;
  font-size: 9px;
}

.factory-tool-list {
  display: grid;
  padding-top: 7px;
}

/* Auf breiten Schirmen stehen die Werkzeuge zweispaltig - eine Spalte
   voller Breitenzeilen ließ rechts ein großes leeres Feld. */
@media (min-width: 1200px) {
  .factory-tool-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}

.factory-tool-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  justify-items: start;
  width: 100%;
  min-height: 82px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #1e212a;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.factory-tool-row:hover,
.factory-tool-row:focus-visible {
  z-index: 1;
  background: #15171f;
  outline: none;
}

.factory-tool-row:focus-visible {
  box-shadow: inset 2px 0 #ff304f, 0 0 0 1px #ff304f55;
}

.factory-tool-row-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #3a1d26;
  border-radius: 11px;
  background: #28131a;
  color: var(--accent, #ff304f);
  font-size: 20px;
  transition: border-color .16s ease, background .16s ease;
}

.factory-tool-row:hover .factory-tool-row-icon {
  border-color: #6e2234;
  background: #35151f;
}

.factory-tool-row-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.factory-tool-row-copy > small {
  color: #ff4763;
  font: 700 8px/1 "Space Grotesk", sans-serif;
  letter-spacing: .14em;
}

.factory-tool-row-copy > strong {
  overflow: hidden;
  color: #f7f8fb;
  font: 650 13px/1.25 "Space Grotesk", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-tool-row-copy > span {
  display: block;
  overflow: hidden;
  color: #858c9c;
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-tool-row-meta {
  display: grid;
  grid-template-columns: 6px auto 18px;
  align-items: center;
  gap: 5px;
  color: #656d7d;
}

.factory-tool-row-meta em {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4b505c;
}

.factory-tool-row-meta em.live {
  background: #ff304f;
  box-shadow: 0 0 9px #ff304f99;
}

.factory-tool-row-meta small {
  font-size: 9px;
}

.factory-tool-row-meta i {
  color: #596171;
  font-size: 17px;
  transition: color .16s ease, transform .16s ease;
}

.factory-tool-row:hover .factory-tool-row-meta i {
  color: #ff304f;
  transform: translateX(2px);
}

@media (max-width: 760px) {
  .factory-tools { gap: 24px; }
  .factory-tool-row { min-height: 82px; }
  .factory-tool-row-meta small { display: none; }
  .factory-tool-row-copy > span {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}
