/* Kapitel 03: Vom KI-Potenzial zur Wirkung. Kapitelkopf --split, dann die Schweizer Tabelle: nur
   Haarlinien, keine Kartenflächen, Zeilentitel in Space Grotesk, die Plotdesk-Spalte leicht getönt mit
   Mint-Dunkel-Linie oben, Signale als kleine Kreise (Kontur, halb, voll) vor dem Text. Unter 900 px wird
   jede Zeile zu einem Block: Kriterium als Titel, darunter die drei Ansätze mit Label und Wert,
   Plotdesk zuletzt und hervorgehoben. */
.comparison-table-wrap {
  margin-top: clamp(48px, 6vw, 80px);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.comparison-table__col-criterion {
  width: 22%;
}

.comparison-table th,
.comparison-table td {
  vertical-align: top;
  border-top: 1px solid var(--line);
  padding: 22px 24px 22px 0;
  text-align: left;
  font-weight: 400;
}

/* ---------- Kopfzeile ---------- */
.comparison-table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--line-strong);
  padding-top: 20px;
  padding-bottom: 22px;
}

.comparison-table__kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--text-3);
  font-family: var(--font-numeric);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.comparison-table thead strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.comparison-table thead small {
  display: block;
  margin-top: 6px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- Zeilen ---------- */
.comparison-table tbody th {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.comparison-table tbody td {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}

/* Die Plotdesk-Spalte: leicht getönt, Mint-Dunkel-Linie oben, Text in voller Stärke. */
.comparison-table .is-plotdesk {
  padding-right: 24px;
  padding-left: 24px;
  background: rgba(23, 76, 57, 0.06);
  color: var(--text);
}

.comparison-table thead .is-plotdesk {
  border-top: 2px solid var(--accent);
}

.comparison-table thead .is-plotdesk .comparison-table__kicker {
  color: var(--accent);
}

/* Signale: schwach als Kontur, teils halb gefüllt, stark gefüllt in Mint-Dunkel. */
.signal {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border: 1px solid var(--text-3);
  border-radius: 50%;
  vertical-align: -1px;
}

.signal--partial {
  border-color: var(--accent);
  background: linear-gradient(90deg, var(--accent) 50%, transparent 50%);
}

.signal--strong {
  border-color: var(--accent);
  background: var(--accent);
}

/* ---------- Abschluss ---------- */
.comparison-close {
  align-items: end;
  margin-top: clamp(40px, 5vw, 64px);
}

/* Spalten explizit: .span-N und .start-N aus dem Grundgerüst überschreiben einander. */
.comparison-close .t-lead {
  grid-column: 1 / span 7;
  max-width: 36rem;
  margin: 0;
}

.comparison-close .t-lead strong {
  color: var(--text);
  font-weight: 600;
}

.comparison-close__link {
  grid-column: 9 / span 4;
  display: flex;
  justify-content: flex-end;
  margin: 0 0 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .comparison-table th,
  .comparison-table td {
    padding-right: 20px;
  }

  .comparison-table tbody td {
    font-size: 14px;
  }

  .comparison-table thead strong {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table tbody th,
  .comparison-table td {
    display: block;
  }

  .comparison-table colgroup {
    display: none;
  }

  /* Nur für Hilfstechnik: als Block, damit overflow: hidden greift und die Zellen keine Überbreite erzeugen. */
  .comparison-table thead {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .comparison-table tbody tr {
    border-top: 1px solid var(--line-strong);
    padding: 22px 0 24px;
  }

  .comparison-table tbody tr:last-child {
    border-bottom: 1px solid var(--line-strong);
  }

  .comparison-table tbody th {
    border: 0;
    padding: 0 0 8px;
    font-size: 22px;
  }

  .comparison-table tbody td {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 12px 0;
    font-size: 15px;
  }

  .comparison-table tbody tr:last-child th,
  .comparison-table tbody tr:last-child td {
    border-bottom: 0;
  }

  /* Das Label je Ansatz kommt aus data-approach; die Kopfzeile bleibt nur für Hilfstechnik. */
  .comparison-table tbody td::before {
    content: attr(data-approach);
    display: block;
    margin-bottom: 4px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .comparison-table tbody .is-plotdesk {
    margin-top: 8px;
    border-top: 0;
    border-left: 2px solid var(--accent);
    padding: 14px 16px;
  }

  .comparison-table tbody .is-plotdesk::before {
    color: var(--accent);
  }

  .comparison-close__link {
    justify-content: flex-start;
    margin-bottom: 0;
  }
}
