/* gegenueberstellung/comparison.css */
/*
 * Gegenüberstellung: zwei Spalten. Nur Grundwerte des Kerns – funktioniert mit jedem Theme.
 * Am Handy untereinander, ab 760 px nebeneinander.
 */
.gegen {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.gegen__col {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gegen__col--highlight {
  border-color: var(--color-primary);
  box-shadow: inset 0 3px 0 var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 4%, var(--color-light));
}

.gegen__title {
  margin: 0 0 0.4em;
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
}

.gegen__text {
  margin: 0 0 1.2em;
  color: var(--color-muted);
}

.gegen__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gegen__list li {
  padding: 0.75em 0 0.75em 1.4em;
  border-top: 1px solid var(--line);
  position: relative;
}

.gegen__list li::before {
  content: "";
  position: absolute;
  top: 1.35em;
  left: 0;
  width: 0.55em;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.gegen__col--highlight .gegen__list li::before {
  height: 2px;
  background: var(--color-primary);
  opacity: 1;
}

.gegen__button {
  align-self: flex-start;
  margin-top: 1.6em;
}

/* Variante „Getrennt durch eine Linie“: ohne Kästen */
.jx-v--linie .gegen__col {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: none;
}

.jx-v--linie .gegen__col--highlight .gegen__title {
  color: var(--color-primary);
}

:is(.jx-bg--dark, .jx-bg--accent, .jx-bg--image) .gegen__col {
  border-color: rgba(255, 255, 255, 0.2);
}

:is(.jx-bg--dark, .jx-bg--accent, .jx-bg--image) .gegen__col--highlight {
  background: rgba(255, 255, 255, 0.06);
}

:is(.jx-bg--dark, .jx-bg--accent, .jx-bg--image) .gegen__text {
  color: inherit;
}

@media (min-width: 760px) {
  .gegen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 40px);
  }

  .jx-v--linie .gegen {
    gap: 0;
  }

  .jx-v--linie .gegen__col:first-child {
    padding-right: clamp(24px, 4vw, 56px);
    border-right: 1px solid var(--line);
  }

  .jx-v--linie .gegen__col:last-child {
    padding-left: clamp(24px, 4vw, 56px);
  }
}

