/* services_grid, Darstellung "Liste" (templates/blocks/services_grid_liste.html).
   Tokens: agrex.css, docs/design-tokens.md. */
.agx-tg__head { max-width: 760px; margin-bottom: 56px; }
.agx-tg .agx-eyebrow { margin-bottom: 12px; }
.agx-tg__title { margin: 0; }
.agx-tg__intro { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--agx-text); }

.agx-tg__rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--agx-line);
}
.agx-tg__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 28px 0;
  border-top: 1px solid var(--agx-line);
}
.agx-tg__name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--agx-ink);
}
.agx-tg__desc {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--agx-text);
}
.agx-tg__more { margin-top: 12px; font-size: 14px; font-weight: 600; }
.agx-tg__cta { margin-top: 32px; }

/* Row with a drawing (SVG card image; viewBox trimmed to the drawing):
   exactly two children in normal flow, the drawing box (220 x 130, contain,
   centred) and the text block, centred against each other; they never
   overlap. A hairline above every row, the first included. Below 768px the
   drawing (max 240px) sits above the text, on the same left edge. */
.agx-tg__row--zeichnung { gap: 20px; padding: 56px 0; }
.agx-tg__drawing {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0;
  aspect-ratio: 220 / 130;
  object-fit: contain;
  object-position: center;
}
.agx-tg__row--zeichnung .agx-tg__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.agx-tg__name--large {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  hyphens: manual;
}
.agx-tg__row--zeichnung .agx-tg__desc { max-width: 760px; margin: 0; font-size: 17px; line-height: 1.5; }
.agx-tg__row--zeichnung .agx-tg__more { margin-top: 0; }

@media (min-width: 768px) {
  .agx-tg__row:not(.agx-tg__row--zeichnung) {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 40px;
  }
  .agx-tg__name { font-size: 26px; }
  .agx-tg__row--zeichnung {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 64px;
    align-items: center;
  }
  .agx-tg__drawing { width: 220px; height: 130px; }
  .agx-tg__name--large { font-size: 36px; }
}
