/* ============================================================
   Gemeinsame Bausteine der vier Sport-Homepages
   (OneTwo Ski, OneTwo Sports, Schneekompass, Wegmarke):
   Vergleichstabelle, Funktions-Raster und „Warum“-Karten.
   Jede Seite setzt die Variablen --cmp-* in ihrer eigenen CSS-Datei
   auf die Farben der App. Ohne Überschreibung gelten neutrale Werte.
   ============================================================ */

:root {
  --cmp-accent: #1D4F8C;        /* Akzent der jeweiligen App */
  --cmp-accent-soft: rgba(29, 79, 140, .10);
  --cmp-sister: #6b7a8c;        /* Schwester-App (zweite Spalte) */
  --cmp-sister-soft: rgba(107, 122, 140, .10);
  --cmp-ink: #141c26;
  --cmp-muted: #5b6774;
  --cmp-line: #e1e6ec;
  --cmp-card: #ffffff;
  --cmp-soft: #f4f6f9;
  --cmp-yes: #1f7a3a;
  --cmp-part: #b07a1a;
  --cmp-no: #c62828;
  --cmp-radius: 14px;
  --cmp-head-font: inherit;      /* Überschrift-Schrift der Seite (z. B. Serif bei OneTwo Sports) */
}

/* ---------- Vergleichstabelle ---------- */
.cmp-section h2 { font-family: var(--cmp-head-font); }
.cmp-wrap {
  margin-top: 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--cmp-line);
  border-radius: var(--cmp-radius);
  background: var(--cmp-card);
  scrollbar-width: thin;
}
.cmp-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  color: var(--cmp-ink);
}
.cmp-table th, .cmp-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--cmp-line);
  vertical-align: middle;
  text-align: center;
}
.cmp-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--cmp-card);
  border-bottom: 2px solid var(--cmp-line);
  padding-top: 16px;
  padding-bottom: 12px;
}
.cmp-table th.cmp-feat, .cmp-table tbody th[scope="row"] {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--cmp-card);
  font-weight: 600;
  min-width: 240px;
  max-width: 320px;
  line-height: 1.35;
  box-shadow: 1px 0 0 var(--cmp-line);
}
.cmp-table thead th.cmp-feat { z-index: 3; }
.cmp-appname { display: block; font-weight: 800; font-size: 14px; letter-spacing: -.2px; }
.cmp-grp { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--cmp-muted); }
.cmp-table th.cmp-own { background: var(--cmp-accent); color: #fff; border-radius: 10px 10px 0 0; }
.cmp-table th.cmp-own .cmp-grp { color: rgba(255, 255, 255, .8); }
.cmp-table th.cmp-sister { background: var(--cmp-sister-soft); color: var(--cmp-ink); border-radius: 10px 10px 0 0; }
.cmp-table tbody tr td:nth-child(2) { background: var(--cmp-accent-soft); font-weight: 700; }
.cmp-table:has(th.cmp-sister) tbody tr td:nth-child(3) { background: var(--cmp-sister-soft); }
.cmp-table tr.cmp-group th {
  text-align: left;
  position: static;
  background: var(--cmp-soft);
  color: var(--cmp-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 9px 12px;
  box-shadow: none;
}
.cmp-table td span { display: inline-block; font-size: 17px; line-height: 1; font-weight: 700; }
.cmp-table td small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.3; color: var(--cmp-muted); font-weight: 500; }
.cmp-table td.cmp-txt { font-size: 12.5px; line-height: 1.35; font-weight: 600; max-width: 150px; }
.cmp-yes span, .cmp-legend .cmp-yes { color: var(--cmp-yes); }
.cmp-part span, .cmp-legend .cmp-part { color: var(--cmp-part); }
.cmp-no span, .cmp-legend .cmp-no { color: var(--cmp-no); }
.cmp-na span, .cmp-legend .cmp-na { color: #9aa5b1; }
.cmp-unk span, .cmp-legend .cmp-unk { color: #9aa5b1; }
.cmp-table tbody tr:hover td, .cmp-table tbody tr:hover th[scope="row"] { filter: brightness(.985); }
.cmp-legend { margin: 16px 0 0; font-size: 13px; color: var(--cmp-muted); line-height: 1.7; }
.cmp-legend b { color: var(--cmp-ink); margin-right: 4px; }
.cmp-legend span { font-weight: 800; }
.cmp-source { margin: 10px 0 0; font-size: 12px; color: var(--cmp-muted); line-height: 1.6; }

/* ---------- Funktions-Raster („Die wichtigsten Funktionen“) ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.feat-card {
  position: relative;
  padding: 20px 20px 22px;
  border-radius: var(--cmp-radius);
  background: var(--cmp-card);
  border: 1px solid var(--cmp-line);
  color: var(--cmp-ink);
  transition: transform .25s ease, border-color .25s ease;
}
.feat-card:hover { transform: translateY(-3px); border-color: var(--cmp-accent); }
.feat-card .feat-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--cmp-accent-soft); color: var(--cmp-accent); margin-bottom: 14px;
}
.feat-card .feat-ico svg { width: 22px; height: 22px; }
.feat-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: -.2px; font-family: var(--cmp-head-font); }
.feat-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--cmp-muted); }
.feat-card.feat-hi { background: var(--cmp-accent); border-color: var(--cmp-accent); color: #fff; }
.feat-card.feat-hi .feat-ico { background: rgba(255, 255, 255, .16); color: #fff; }
.feat-card.feat-hi p { color: rgba(255, 255, 255, .85); }

/* ---------- „Warum diese App“ ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.why-card {
  padding: 24px;
  border-radius: var(--cmp-radius);
  background: var(--cmp-card);
  border: 1px solid var(--cmp-line);
  border-top: 4px solid var(--cmp-accent);
}
.why-card .why-num { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--cmp-accent); margin-bottom: 8px; }
.why-card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.3px; font-family: var(--cmp-head-font); }
.why-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--cmp-muted); }
.why-card p + p { margin-top: 8px; }
.why-vs { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--cmp-soft); font-size: 13px; line-height: 1.5; color: var(--cmp-ink); }
.why-vs b { color: var(--cmp-accent); }

@media (max-width: 720px) {
  .cmp-table th.cmp-feat, .cmp-table tbody th[scope="row"] { min-width: 180px; max-width: 200px; font-size: 13px; }
  .cmp-table { font-size: 13px; }
  .feat-grid, .why-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .feat-card { transition: none; }
  .feat-card:hover { transform: none; }
}
