/* ============================================================
   WENGLA Kombinationen und Tipps (wengla-kombinationen.html)
   Kartenreihen, Zahlenkacheln, Tipp-Karten. Nutzt die Basis aus style.css.
   ============================================================ */

.wk-page {
  --wk-ink: #1d1d1f;
  --wk-ink-soft: #424245;
  --wk-panel: #1a0a2e;
  --wk-panel-edge: #3b2766;
  --wk-on-panel: #ffffff;
  --wk-on-panel-soft: #e6dff5;
  --wk-ok: #8df0b0;
  --wk-no: #ff9d9d;
  --wk-gold: #ffd166;
  --cw: 52px;              /* Kartenbreite in der Reihe */
}

@media (min-width: 700px) {
  .wk-page { --cw: 80px; }
}

/* ---------- Lesbarkeit der Basis-Klassen auf dieser Seite ---------- */
.wk-page .section-header p,
.wk-page .wk-lead,
.wk-page .wk-note {
  font-size: 18px;
  line-height: 1.6;
  color: var(--wk-ink-soft);
}

.wk-lead { max-width: 680px; margin: 0 auto 32px; text-align: center; }
.wk-note { max-width: 680px; margin: 24px auto 0; }
.wk-note a { color: #0058b0; font-weight: 600; }

.wk-alt { background: var(--color-bg-secondary); }

.wk-page .section-sm { padding: 64px 0; }
@media (max-width: 768px) {
  .wk-page .section-sm { padding: 48px 0; }
}

/* ---------- Zahlenreihe ---------- */
.wk-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
  margin-top: 0;
  padding: 0;
  list-style: none;
}

.wk-stats li:first-child,
.wk-stats li:last-child { grid-column: 1 / -1; }

@media (min-width: 760px) {
  .wk-stats { grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 24px; }   /* die grosse Zahl braucht Platz in einer Zeile */
  .wk-stats li:first-child,
  .wk-stats li:last-child { grid-column: auto; }
}

.wk-stats li {
  text-align: center;
  padding: 20px 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.wk-stats .stat-value {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.1;
  white-space: nowrap;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #0058b0;
}

.wk-stats .stat-label {
  font-size: 16px;
  line-height: 1.4;
  color: var(--wk-ink-soft);
}

/* ---------- Kartenreihen ---------- */
.wcombo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  margin: 32px 0 0;
}

.wcombo {
  margin: 0;
  padding: 16px;
  background: var(--wk-panel);
  border: 1px solid var(--wk-panel-edge);
  border-left: 6px solid var(--wk-ok);
  border-radius: var(--radius-lg);
  color: var(--wk-on-panel);
  min-width: 0;
}

.wcombo-wide { grid-column: 1 / -1; }

/* Ganzes Blatt mit 12 Karten: volle Breite, Karten etwas kleiner, damit die Gruppen in eine Reihe passen */
.wcombo-hand { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .wcombo-hand { --cw: 66px; }
}

.wcards {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.wgroup {
  display: flex;
  max-width: 100%;
  min-width: 0;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

.wgroup img {
  display: block;
  width: var(--cw);
  height: auto;
  flex: 0 1 var(--cw);
  min-width: 0;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* Karten innerhalb einer Gruppe überlappen leicht */
.wgroup img + img { margin-left: calc(var(--cw) * -0.3); }

.wcombo figcaption {
  font-size: 16px;
  line-height: 1.5;
  color: var(--wk-on-panel-soft);
}

.wname {
  display: inline-block;
  margin: 0 12px 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--wk-on-panel);
}

.wtext { display: block; }

h3.wk-h3 {
  margin: 56px 0 8px;
  font-size: 26px;
  text-align: center;
  color: var(--wk-ink);
}

.wk-after { margin-top: 28px; margin-bottom: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wname .wnum {
  display: inline-block;
  min-width: 1.7em;
  margin-right: 8px;
  padding: 0 6px;
  text-align: center;
  background: var(--wk-gold);
  color: #1a0a2e;
  border-radius: 999px;
}

.wbadge {
  display: inline-block;
  margin: 0 8px 4px 0;
  padding: 2px 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--wk-ok);
  border: 1.5px solid var(--wk-ok);
  border-radius: 999px;
}

.wbadge::before { content: "\2713\00a0"; }

/* Ungültig: roter Hinweis, Rand rot */
.wcombo-no { border-left-color: var(--wk-no); }

.wcombo-no .wbadge {
  color: var(--wk-no);
  border-color: var(--wk-no);
}

.wcombo-no .wbadge::before { content: "\2717\00a0"; }

/* Karten bleiben in voller Farbe: gerade bei "zwei Farben" muss man die Farben klar unterscheiden koennen */
.wcombo-no .wgroup { border-color: rgba(255, 157, 157, 0.55); }

/* ---------- Tipp-Karten ---------- */
.wtips {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  counter-reset: wtip;
}

.wtips .feature-card {
  position: relative;
  padding: 28px 24px 24px;
  counter-increment: wtip;
}

.wtips .feature-card::before {
  content: counter(wtip);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: #0058b0;
  border-radius: 50%;
}

.wtips .feature-title { font-size: 20px; color: var(--wk-ink); }

.wtips .feature-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--wk-ink-soft);
}

/* ---------- Tabellen (Zahl dahinter, Gewinne) ---------- */
.wk-page .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}

.wk-page .legal-table {
  font-size: 16px;
  background: #fff;
}

.wk-page .legal-table th {
  font-size: 14px;
  color: var(--wk-ink);
}

.wk-page .legal-table td {
  color: var(--wk-ink-soft);
}

.wk-page .legal-table td:first-child { color: var(--wk-ink); }

.wk-page .legal-table td.wnum-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--wk-ink);
}

.wk-page .legal-table-numbers { min-width: 460px; }

/* Schmale Bildschirme: lange Zahlen dürfen umbrechen, keine Seitenverbreiterung */
/* Schmale Bildschirme: Zeile wird zum Block (Bezeichnung oben, Zahl darunter), damit lange Zahlen nicht mitten in
   der Ziffernfolge umbrechen */
@media (max-width: 520px) {
  .wk-page .legal-table-numbers { min-width: 0; display: block; }
  .wk-page .legal-table-numbers thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .wk-page .legal-table-numbers tbody,
  .wk-page .legal-table-numbers tr,
  .wk-page .legal-table-numbers td { display: block; }
  .wk-page .legal-table-numbers tr { padding: 12px 14px; border-bottom: 1px solid var(--color-border); }
  .wk-page .legal-table-numbers td { padding: 0; border: 0; }
  .wk-page .legal-table-numbers td.wnum-cell { margin-top: 4px; font-size: 17px; }
}

.wk-sub { font-size: 16px; color: var(--wk-ink-soft); }

/* ---------- Knöpfe ---------- */
.wk-cta .btn-group { flex-wrap: wrap; }
