/* "Werte – interaktiv" (templates/blocks/values_interactive_block.html,
   js/values-interactive.js). Behaviour unchanged: the JS toggles .is-active,
   sets the progress width and adds .is-auto while it rotates. Tokens:
   agrex.css, docs/design-tokens.md. */
.values-x { --vx-fade: 0.5s; }
.values-x__heading { margin: 0 0 32px; }
.values-x__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* --- Tabs ------------------------------------------------------------------ */
.values-x__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--agx-line);
}
.values-x__tab {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--agx-line);
  background: none;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.values-x__tab.is-active { padding-bottom: 20px; }
.values-x__tab:focus { outline: none; }
.values-x__tab:focus-visible { outline: 2px solid var(--agx-teal); outline-offset: 2px; border-radius: 2px; }
.values-x__title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--agx-placeholder);
  transition: color 0.2s ease;
}
.values-x__tab:hover .values-x__title,
.values-x__tab.is-active .values-x__title { color: var(--agx-ink); }
.values-x__desc {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s;
}
.values-x__tab.is-active .values-x__desc {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.3s ease;
}
.values-x__desc-inner { min-height: 0; overflow: hidden; }
.values-x__text {
  display: block;
  padding-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--agx-text);
}
/* Progress: 2px band track with the teal fill (width from the JS) on the
   active tab's bottom edge. */
.values-x__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--agx-band);
}
.values-x:not(.is-auto) .values-x__tab.is-active::after { display: none; }
.values-x__progress {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--agx-teal);
  pointer-events: none;
}
.values-x:not(.is-auto) .values-x__progress { display: none; }

/* --- Content area -------------------------------------------------------------- */
.values-x__stage {
  position: relative;
  display: grid;
  min-height: 300px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--agx-radius-panel);
  background-color: var(--agx-surface);
  background-image: radial-gradient(#D9DBDA 1px, transparent 1.2px);
  background-size: 16px 16px;
}
.values-x__panel {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  padding: 28px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--vx-fade) ease, visibility 0s linear var(--vx-fade);
}
.values-x__panel.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transition: opacity var(--vx-fade) ease;
}
.values-x__panel:focus { outline: none; }
.values-x__panel:focus-visible { outline: 2px solid var(--agx-teal); outline-offset: -4px; }

/* Faint line illustration, bottom right. */
.values-x__illu {
  position: absolute;
  right: 6px;
  bottom: 14px;
  z-index: -1;
  width: 160px;
  height: 153px;
  opacity: .55;
  pointer-events: none;
}
.values-x__svg { display: block; width: 100%; height: 100%; }
.values-x__svg .vx-a,
.values-x__svg .vx-g {
  fill: none;
  stroke: var(--agx-teal);
  stroke-width: 1.1px;
  vector-effect: non-scaling-stroke;
}

/* Text (no card any more) */
.values-x__card { position: relative; max-width: 400px; }
.values-x__card .agx-eyebrow { margin-bottom: 10px; }
.values-x__card-title {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--agx-ink);
}
.values-x__points { margin: 0; padding: 0; list-style: none; }
.values-x__points li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--agx-line);
  font-size: 16px;
  line-height: 1.4;
  color: var(--agx-ink);
}
.values-x__check {
  flex: none;
  width: 16px;
  height: 16px;
  align-self: center;
  fill: none;
  stroke: var(--agx-teal);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 992px) {
  .values-x__grid { grid-template-columns: 400px minmax(0, 1fr); gap: 64px; }
  .values-x__panel { padding: 40px 44px; }
  .values-x__illu { width: 240px; height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  .values-x__desc,
  .values-x__panel,
  .values-x__title { transition: none !important; }
}
