/* SCF nuLiga – Public Styles v5 (12.09.2026)
   ───────────────────────────────────────────────────────────
   Komplette Optik aller Shortcode-Ausgaben lebt HIER, nicht mehr
   im Avada Custom CSS: Spielplan, Match-Card, Score-Card,
   Meta-Row, Tabelle, Fehler. Avada Custom CSS enthaelt nur noch
   den Hover-Balken und die fusion_code-Regeln der Startseite.

   Palette (hell, Schwarz als Rahmen):
     Weiss #ffffff · Off-White #f5f3ee · Hellgrau #d9d5cc
     Grau #6b6b6b · Dunkelgrau #2a2a2a · Schwarz #0a0a0a
     Blau   #009ff9 #0088d6 #006ead #005485 #003a5c  (Herren, Default)
     Tuerkis #00eef9 #00cbd6 #00a5ad #007e85 #00575c  (Damen)
     Gruen  #00f983 #00d672 #00ad5c #008547 #005c31  (Jugend)
     Rot    #f91400 #d61200 #ad0e00 #850b00 #5c0800  (Niederlage)
   Schrift: Saira Stencil (Zahlen, Teamnamen) · Saira Semi Condensed (Labels) · Saira (Text, erbt aus Body).
   Alle drei werden ueber die Avada Typography-Sets geladen (lokal). Groessen fluid per clamp().
   ─────────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════
   SPIELPLAN ([scf_spielplan])
   ══════════════════════════════════════════════════════════ */
.scf-spielplan { display: flex; flex-direction: column; gap: 2px; width: 100%; }

.scf-match-card {
    container-type: inline-size;              /* Karte reagiert auf ihre eigene Breite */
    background: #ffffff;
    border-left: 6px solid #006ead;            /* Herren = Default */
    padding: clamp(18px, 2vw, 26px) clamp(18px, 2vw, 28px);
    transition: background-color .2s;
    cursor: pointer;
}
.scf-match-damen  { border-left-color: #00a5ad; }
.scf-match-jugend { border-left-color: #00ad5c; }
.scf-match-card:hover { background: #f5f3ee; }

.scf-match-inner { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); }

/* Datum */
.scf-match-date { flex-shrink: 0; width: 52px; text-align: center; }
.scf-day {
    font-family: 'Saira Stencil', sans-serif;
    font-weight: 900;
    font-size: clamp(32px, 3.2vw, 44px);
    line-height: 1;
    color: #006ead;                            /* Herren = Default */
}
.scf-match-damen  .scf-day { color: #00a5ad; }
.scf-match-jugend .scf-day { color: #00ad5c; }
.scf-month {
    font-family: 'Saira Semi Condensed', sans-serif;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b6b6b;
}

/* Info */
.scf-match-info { flex: 1; min-width: 0; }
.scf-match-liga {
    font-family: 'Saira Semi Condensed', sans-serif;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #005485;                            /* Herren = Default */
    margin-bottom: 6px;
    line-height: 1.3;
}
.scf-liga-damen  { color: #007e85; }
.scf-liga-jugend { color: #008547; }
.scf-match-teams {
    font-family: 'Saira Stencil', sans-serif;
    font-weight: 700;
    font-size: clamp(19px, 1.8vw, 26px);
    line-height: 1.15;
    text-transform: uppercase;
    color: #0a0a0a;
    text-wrap: balance;                        /* gleichmaessige Zeilen statt Waisenkinder */
}
.scf-match-teams span { color: #6b6b6b; font-weight: 400; margin: 0 6px; }
.scf-match-time { font-size: clamp(14px, 1.1vw, 16px); color: #6b6b6b; margin-top: 4px; white-space: nowrap; }

/* Routenplaner-Link – eigene Zeile, damit die Uhrzeit nie bricht */
.scf-maps-link {
    display: inline-block;
    margin-top: 6px;
    font-family: 'Saira Semi Condensed', sans-serif;
    font-size: clamp(13px, 1vw, 14px);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b6b6b;
    text-decoration: none;
    border-bottom: 1px solid #d9d5cc;
    transition: color .15s, border-color .15s;
}
.scf-maps-link:hover { color: #0a0a0a; border-bottom-color: #0a0a0a; }
.scf-match-time .scf-maps-link { margin-left: 8px; margin-top: 0; }

/* Heim/Auswaerts-Badge */
.scf-match-badge {
    flex-shrink: 0;
    font-family: 'Saira Semi Condensed', sans-serif;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 12px;
    white-space: nowrap;
}
.scf-home { color: #ffffff; background: #0a0a0a; }
.scf-away { color: #0a0a0a; background: transparent; border: 1px solid #0a0a0a; }

/* Schmale Karte (Drittel-Spalte, Sidebar, Handy):
   Badge wandert nach oben in die Liga-Zeile, Datum bleibt links */
@container (max-width: 460px) {
    .scf-match-inner { flex-wrap: wrap; row-gap: 10px; }
    .scf-match-badge { order: -1; width: 100%; text-align: left; padding-left: 0; background: transparent; color: #0a0a0a; border: 0; }
    .scf-match-info  { min-width: 160px; }
    .scf-match-teams { font-size: clamp(18px, 5cqw, 22px); }
    .scf-match-time  { white-space: normal; }
    .scf-match-time .scf-maps-link { display: block; margin: 6px 0 0; }
}

/* Ergebnis statt Badge (gespielte Partien) */
.scf-match-score {
    flex-shrink: 0;
    font-family: 'Saira Stencil', sans-serif;
    font-weight: 900;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1;
    color: #0a0a0a;
    text-align: right;
}
.scf-sieg       .scf-match-score { color: #008547; }
.scf-niederlage .scf-match-score { color: #ad0e00; }

/* ══════════════════════════════════════════════════════════
   SCORE-CARD ([scf_ergebnis])
   ══════════════════════════════════════════════════════════ */
.scf-score-card { background: #ffffff; border: 1px solid #d9d5cc; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.scf-card-header {
    background: #0a0a0a;
    padding: 14px 20px;
    font-family: 'Saira Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 1.1vw, 16px);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #ffffff;
    display: flex; align-items: center; justify-content: space-between;
}
.scf-score-body { padding: clamp(18px, 2.5vw, 28px) clamp(16px, 2vw, 24px); }
.scf-score-row  { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; }
.scf-team-name  { font-family: 'Saira Stencil', sans-serif; font-weight: 700; font-size: clamp(20px, 2vw, 28px); text-transform: uppercase; color: #0a0a0a; }
.scf-team-score { font-family: 'Saira Stencil', sans-serif; font-weight: 900; font-size: clamp(40px, 4vw, 56px); line-height: 1; color: #0a0a0a; }
.scf-score-us   { color: #006ead; }
.scf-score-divider { height: 1px; background: #d9d5cc; margin: 6px 0; }
.scf-score-meta {
    display: flex; flex-wrap: wrap; gap: 20px;
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid #d9d5cc;
    font-family: 'Saira Semi Condensed', sans-serif;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6b6b6b;
}
.scf-stat-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(128,128,128,.35); }
.scf-stat { padding: clamp(14px, 2vw, 20px) clamp(16px, 2vw, 24px); }
.scf-stat:first-child { border-right: 1px solid rgba(128,128,128,.35); }
.scf-stat-num   { font-family: 'Saira Stencil', sans-serif; font-weight: 900; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; color: inherit; }
.scf-stat-label { font-size: clamp(13px, 1vw, 15px); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: inherit; opacity: .7; margin-top: 4px; }
.scf-live-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: #ffffff; margin-left: 6px; vertical-align: middle;
    animation: scf-blink 1.2s ease-in-out infinite;
}
@keyframes scf-blink { 0%,100% { opacity: 1; } 50% { opacity: .2; } }

/* ══════════════════════════════════════════════════════════
   META-ROW ([scf_teamstats])
   Farben werden geerbt: auf dunklen Team-Karten weiß, in einem
   Textelement die Farbe, die in Avada gesetzt ist. Deshalb hier
   keine festen Werte, nur unterschiedliche Deckkraft.
   ══════════════════════════════════════════════════════════ */
.scf-meta-row { display: flex; flex-wrap: wrap; gap: clamp(20px, 2.5vw, 32px); margin-top: 12px; color: inherit; }
.scf-meta-row div strong {
    display: block;
    font-family: 'Saira Stencil', sans-serif;
    font-weight: 900;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
    color: inherit;
    margin-bottom: 4px;
}
.scf-meta-row div span {
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: inherit;
    opacity: .75;
}

/* ══════════════════════════════════════════════════════════
   TABELLE ([scf_tabelle])
   Auf schmalen Bildschirmen waagerecht scrollbar statt überlaufend.
   ══════════════════════════════════════════════════════════ */
.scf-tabelle {
    width: 100%;
    font-family: 'Saira Semi Condensed', sans-serif;
    background: #ffffff;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.scf-tabelle-header,
.scf-tabelle-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #d9d5cc;
    gap: 8px;
    min-width: 520px;          /* darunter wird gescrollt statt gequetscht */
}
.scf-tabelle-header {
    font-size: clamp(13px, 1vw, 14px);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #ffffff;
    background: #0a0a0a;
    border-bottom: 0;
}
.scf-tabelle-row { font-size: clamp(15px, 1.2vw, 17px); color: #0a0a0a; transition: background .15s; }
.scf-tabelle-row:hover { background: #f5f3ee; }
.scf-tabelle-highlight {
    font-weight: 700;
    color: #005485 !important;
    background: rgba(0,110,173,.08) !important;
    box-shadow: inset 4px 0 0 #006ead;
}
.scf-col-platz { width: 36px; flex-shrink: 0; text-align: center; font-weight: 700; }
.scf-col-name  { flex: 1; min-width: 150px; }
.scf-col-num   { width: 40px; flex-shrink: 0; text-align: center; }
.scf-col-tore  { width: 80px; flex-shrink: 0; text-align: center; }

/* Mannschaftsnamen nicht umbrechen – sonst werden die Zeilen dreizeilig */
.scf-col-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ══════════════════════════════════════════════════════════
   FEHLER
   ══════════════════════════════════════════════════════════ */
.scf-nuliga-error {
    font-family: 'Saira', sans-serif;
    font-size: clamp(14px, 1.1vw, 15px);
    color: #6b6b6b;
    padding: 16px;
    border: 1px solid #d9d5cc;
    background: #ffffff;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIV
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .scf-col-tore { display: none; }
}
@media (max-width: 640px) {
    .scf-match-score { width: 100%; text-align: left; }
    .scf-meta-row { gap: 16px; }
    .scf-tabelle-header,
    .scf-tabelle-row { padding: 10px 12px; min-width: 460px; }

    /* Hinweis, dass die Tabelle seitlich weitergeht */
    .scf-tabelle { box-shadow: inset -12px 0 10px -12px rgba(10, 10, 10, .35); }
}
@media (prefers-reduced-motion: reduce) { .scf-live-dot { animation: none; } }

/* Ortssymbol als Maske: erbt die Textfarbe und sieht überall gleich aus */
.scf-match-time::before,
.scf-score-meta span:first-child::before {
    content: '';
    display: inline-block;
    width: .95em;
    height: .95em;
    margin-right: .35em;
    vertical-align: -.12em;
    background: currentColor;
    opacity: .7;
    -webkit-mask: var(--scf-pin) center / contain no-repeat;
            mask: var(--scf-pin) center / contain no-repeat;
}

:root {
    --scf-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}