/* ═══════════════════════════════════════════
   SVH Spieltag v4.0 – Stylesheet
   ═══════════════════════════════════════════ */

:root {
    --svh: #29166f;
    --svh-dk: #1d0f52;
    --svh-lt: #3a2490;
    --svh-gold: #d4a843;
    --svh-txt: #1a1a2e;
    --svh-mut: #6b6b78;
    --svh-bg: #f5f5f7;
    --svh-wh: #fff;
    --svh-brd: #e0e0e4;
    --svh-win: #16a34a;
    --svh-loss: #dc2626;
    --svh-draw: #a16207;
}

.svh-w {
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--svh-txt);
    line-height: 1.5;
}


/* ═══ Transparent / Box ═══ */

.svh-transparent {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.svh-full {
    display: flex;
    flex-direction: column;
    background: var(--svh-wh);
    border-radius: 12px;
    border: 1px solid var(--svh-brd);
    overflow: hidden;
}
.svh-full > .svh-match,
.svh-full > .svh-form-dots,
.svh-full > .svh-tbl {
    border-radius: 0;
    border: none;
}

.svh-err p {
    padding: 16px;
    color: var(--svh-mut);
    font-size: 14px;
}


/* ═══ Header Bars ═══ */

.svh-hdr {
    background: var(--svh-dk);
    color: #fff;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.svh-badge {
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.svh-league, .svh-sm {
    font-size: 11px;
    opacity: .55;
}


/* ═══ Section Title (Gievenbeck-Stil: — Text —) ═══ */

.svh-section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 20px;
    padding: 0 4px;
}
.svh-section-title::before,
.svh-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--svh-brd);
}
.svh-section-title span {
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--svh-mut);
    white-space: nowrap;
}


/* ═══ Match Display (Nächstes Spiel + Letztes Ergebnis) ═══ */

.svh-match {
    background: var(--svh-wh);
}
.svh-mu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 28px 16px 12px;
}
.svh-t {
    text-align: center;
    flex: 1;
    max-width: 180px;
}

/* Logo Container – kein Kreis, kein Hintergrund */
.svh-crest {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    overflow: visible;
}
.svh-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* Text-Fallback (wenn kein Logo) – kriegt den Kreis */
.svh-crest-txt {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .5px;
    color: var(--svh-mut);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--svh-bg);
}
.svh-t.svh-hl .svh-crest-txt {
    color: #fff;
    background: var(--svh);
}

/* Teamname */
.svh-tn {
    font-family: "Oswald", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .3px;
}
.svh-t.svh-hl .svh-tn {
    color: var(--svh);
    font-weight: 700;
}

/* Mitte: Uhrzeit oder Score */
.svh-mid {
    text-align: center;
    flex-shrink: 0;
}
.svh-center {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    line-height: 1;
    padding: 8px 16px;
    border-radius: 8px;
}
.svh-kick {
    font-size: 32px;
    color: var(--svh);
    background: var(--svh-bg);
}
.svh-score {
    font-size: 28px;
}
.svh-score-w { background: #f0fdf4; color: var(--svh-win); }
.svh-score-l { background: #fef2f2; color: var(--svh-loss); }
.svh-score-d { background: #fffbeb; color: var(--svh-draw); }

/* Meta-Zeile unter dem Spiel */
.svh-match-meta {
    text-align: center;
    font-size: 13px;
    color: var(--svh-mut);
    padding: 4px 16px 20px;
}


/* ═══ Formkurve: Dots (einfach) ═══ */

.svh-form-dots {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--svh-bg);
    border-top: 1px solid var(--svh-brd);
}
.svh-form-dots.svh-transparent {
    background: transparent;
    border-top: none;
}
.svh-form-lbl {
    font-family: "Oswald", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--svh-mut);
    flex-shrink: 0;
}
.svh-dots-row {
    display: flex;
    gap: 5px;
}
.svh-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: #fff;
    cursor: default;
    transition: transform .15s;
}
.svh-dot:hover { transform: scale(1.15); }
.svh-dot-w { background: var(--svh-win); box-shadow: 0 2px 8px rgba(22,163,74,.3); }
.svh-dot-l { background: var(--svh-loss); box-shadow: 0 2px 8px rgba(220,38,38,.3); }
.svh-dot-d { background: var(--svh-draw); box-shadow: 0 2px 8px rgba(161,98,7,.25); }


/* ═══ Formkurve: Gievenbeck-Stil (Linien-Diagramm) ═══ */

.svh-formchart {
    padding: 8px 0;
}
.svh-fc-graph {
    display: flex;
    align-items: stretch;
    position: relative;
}
.svh-fc-y {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 12px 0 0;
    width: 28px;
    flex-shrink: 0;
}
.svh-fc-y span {
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--svh-mut);
    text-align: right;
    line-height: 1;
}
.svh-fc-area {
    flex: 1;
    position: relative;
    height: 180px;
}

/* Gridlinien */
.svh-fc-gridlines {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}
.svh-fc-gl {
    height: 1px;
    background: var(--svh-brd);
}

/* SVG Linie */
.svh-fc-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Gegner-Logos – absolute Positionierung */
.svh-fc-points {
    position: absolute;
    inset: 0;
}
.svh-fc-point {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.svh-fc-point img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
    display: block;
}
.svh-fc-fallback {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

/* Ergebnisse unter dem Graph */
.svh-fc-results {
    display: flex;
    margin-top: 8px;
    padding-left: 28px;
}
.svh-fc-res {
    flex: 1;
    text-align: center;
}
.svh-fcr {
    display: inline-block;
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.svh-fcr-w { background: #f0fdf4; color: var(--svh-win); }
.svh-fcr-l { background: #fef2f2; color: var(--svh-loss); }
.svh-fcr-d { background: #fffbeb; color: var(--svh-draw); }
.svh-fcr-date {
    display: block;
    font-size: 10px;
    color: var(--svh-mut);
    margin-top: 2px;
}


/* ═══ Tabelle ═══ */

.svh-tbl {
    background: var(--svh-wh);
}
.svh-tbl table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.svh-tbl thead {
    background: var(--svh-bg);
}
.svh-tbl th {
    padding: 8px 6px;
    text-align: center;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--svh-mut);
}
.svh-tbl td {
    padding: 10px 6px;
    text-align: center;
    border-bottom: 1px solid var(--svh-brd);
    font-size: 13px;
}
.svh-al { text-align: left !important; }
.svh-pos { font-weight: 700; color: var(--svh-mut); width: 30px; }
.svh-pts { font-weight: 700; }
.svh-tc {
    font-weight: 500;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.svh-tbl-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.svh-our {
    background: rgba(41,22,111,.07);
}
.svh-our .svh-tc { color: var(--svh); font-weight: 700; }
.svh-our .svh-pts { color: var(--svh); }


/* ═══ Tabs ═══ */

.svh-tabs {
    display: flex;
    background: var(--svh-dk);
    border-radius: 12px 12px 0 0;
    overflow-x: auto;
}
.svh-tab {
    background: 0 0;
    border: none;
    color: rgba(255,255,255,.55);
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.svh-tab:hover { color: #fff; background: rgba(255,255,255,.07); }
.svh-tab.svh-active { color: var(--svh-gold); border-bottom-color: var(--svh-gold); }
.svh-tab-link { color: var(--svh-gold) !important; margin-left: auto; opacity: .7; }
.svh-tab-link:hover { opacity: 1; }
.svh-panel { display: none; }
.svh-panel.svh-show { display: block; }
.svh-home {
    background: var(--svh-wh);
    border-radius: 12px;
    border: 1px solid var(--svh-brd);
    overflow: hidden;
}
.svh-home .svh-full { border-radius: 0; border: none; }


/* ═══ Spielplan ═══ */

.svh-sched {
    background: var(--svh-wh);
    border-radius: 12px;
    border: 1px solid var(--svh-brd);
    overflow: hidden;
}
.svh-sr {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--svh-brd);
    font-size: 13px;
}
.svh-sr:last-child { border-bottom: none; }
.svh-sd { width: 50px; text-align: center; flex-shrink: 0; }
.svh-swd {
    display: block;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--svh);
}
.svh-sdd { font-size: 10px; color: var(--svh-mut); }
.svh-st-time {
    width: 40px;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}
.svh-sm-match { flex: 1; min-width: 0; }
.svh-sm-match .svh-hl { font-weight: 700; color: var(--svh); }
.svh-team-label {
    display: inline-block;
    font-family: "Oswald", sans-serif;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--svh-gold);
    background: rgba(41,22,111,.08);
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}
.svh-slg {
    flex-shrink: 0;
    font-size: 10px;
    color: var(--svh-mut);
    max-width: 90px;
    text-align: right;
}


/* ═══ Banner Texte ═══ */

.svh-txt-datum, .svh-txt-liga {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 22px;
}
.svh-txt-datum { color: var(--svh-gold); }
.svh-txt-liga { color: #fff; }


/* ═══ Responsive ═══ */

@media (max-width: 640px) {
    .svh-mu { gap: 14px; padding: 20px 10px 8px; }
    .svh-t { max-width: 120px; }
    .svh-crest { width: 56px; height: 56px; }
    .svh-logo { width: 56px; height: 56px; }
    .svh-crest-txt { width: 56px; height: 56px; font-size: 14px; }
    .svh-tn { font-size: 13px; }
    .svh-kick { font-size: 24px; padding: 6px 10px; }
    .svh-score { font-size: 22px; }
    .svh-tab { padding: 10px 12px; font-size: 12px; }
    .svh-sr { flex-wrap: wrap; }
    .svh-slg { flex-basis: 100%; max-width: none; text-align: left; margin-left: 96px; }
    .svh-tbl td, .svh-tbl th { padding: 7px 4px; font-size: 11px; }
    .svh-fc-area { height: 130px; }
    .svh-fc-point img { width: 24px; height: 24px; }
    .svh-section-title span { font-size: 11px; }
}
@media (max-width: 400px) {
    .svh-crest { width: 48px; height: 48px; }
    .svh-logo { width: 48px; height: 48px; }
    .svh-crest-txt { width: 48px; height: 48px; }
    .svh-tn { font-size: 12px; }
    .svh-kick { font-size: 20px; }
    .svh-score { font-size: 18px; }
}

/* ================================================
   FORMKURVE – Freundschaftsspiel-Darstellung
   Am Ende von svh-spieltag-v2/assets/style.css anfügen
   ================================================ */

/* --- Dot-Ansicht: Grauer Dot für Freundschaftsspiele --- */
.svh-dot-f {
    background: #c8c8d0 !important;
    color: #fff !important;
}

/* --- Linien-Diagramm: Logo/Punkt ausgegraut --- */
.svh-fc-friendly {
    opacity: 0.35;
}
.svh-fc-friendly img {
    filter: grayscale(100%);
}

/* --- Ergebnis-Label unter Diagramm: grau statt farbig --- */
.svh-fc-res-friendly .svh-fcr {
    background: #e0e0e4 !important;
    color: #9898a0 !important;
}
.svh-fc-res-friendly .svh-fcr-date {
    color: #b0b0b8 !important;
}
