/* ===== FCH Next Matches v1.6.0 (CSS) ===== */
.fch-match-wrap{ margin-bottom: clamp(28px, 6vw, 64px) !important; padding-bottom: 2px; }
.fch-match-wrap.alignfull{ width:100vw; margin-left:50%; transform:translateX(-50%); padding-inline:clamp(12px, 4vw, 40px); box-sizing:border-box; }
.fch-match-wrap.alignfull .fch-match-grid{ max-width:1400px; margin-inline:auto; }
.fch-match-wrap.alignwide{ max-width:min(1200px, 100%); margin-inline:auto; padding-inline:clamp(12px, 3vw, 32px); }

/* Flex-Grid: letzte Reihe zentriert */
.fch-match-grid{ display:flex !important; flex-wrap:wrap !important; justify-content:center !important; gap:12px 16px !important; align-items:stretch !important; }

/* Karten */
:root{ --fch-card-min: 260px; --fch-card-height: 190px; }
.fch-match-card{ flex:0 0 var(--fch-card-min) !important; max-width:100%; height:var(--fch-card-height); overflow:hidden; display:flex; flex-direction:column; background:#fff; border:1px solid #e5e7eb; border-radius:14px; box-shadow:0 1px 6px rgba(0,0,0,.06); padding:14px 16px; margin:0; }

/* Kopfzeile */
.fch-match-date{ display:flex; align-items:center; gap:.5rem; white-space:nowrap; line-height:1.2; font-size:.9rem; opacity:.75; min-height:28px; }
.fch-match-date .fch-badge{ margin-left:auto; flex:0 0 auto; }

/* Text kappen */
.fch-match-title{ margin:6px 0 2px; font-size:1.05rem; font-weight:600; line-height:1.25; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.fch-match-meta{ font-size:.92rem; opacity:.85; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* Badges */
.fch-match-date .fch-badge, .fch-badge{ all:unset; box-sizing: border-box; display:inline-flex; align-items:center; justify-content:center; height:22px; padding:0 10px; border:1px solid currentColor; border-radius:9999px; background:#fff; font-size:.75rem; font-weight:700; font-style:normal; line-height:1; white-space:nowrap; vertical-align:middle; }
.fch-badge--meisterschaft{ color:#0d9488 !important; background:#ecfdf5 !important; border-color:#0d9488 !important; }
.fch-badge--cup{           color:#7c3aed !important; background:#f5f3ff !important; border-color:#7c3aed !important; }
.fch-badge--testspiel{     color:#475569 !important; background:#f1f5f9 !important; border-color:#475569 !important; }
.fch-badge--turnier{       color:#b45309 !important; background:#fff7ed !important; border-color:#b45309 !important; }

@media (max-width:540px){ .fch-match-card{ flex-basis:100% !important; } }
/* Mobile-Lesbarkeit: Kartenhöhe frei geben + mehr Zeilen erlauben */
@media (max-width: 640px){
  .fch-match-card{
    height: auto !important;          /* NICHT fest auf 80px kappen */
    padding: 12px 14px;
  }
  .fch-match-title{
    display: -webkit-box;
    -webkit-line-clamp: 6;            /* mehr Zeilen auf Handy */
    -webkit-box-orient: vertical;
    overflow: visible;
    font-size: 1.02rem;
    line-height: 1.3;
  }
  .fch-match-meta{
    display: -webkit-box;
    -webkit-line-clamp: 3;            /* auch hier etwas mehr Platz */
    -webkit-box-orient: vertical;
    overflow: visible;
    font-size: .95rem;
    line-height: 1.35;
  }
  .fch-match-grid{ gap: 14px !important; }
  .fch-match-date{ font-size: .95rem; }
}
