/* TTC ST. LEON-ROT – SPIELPLAN
   Seitenspezifische Regeln aus style.css und spielplan.php. */

/* =========================================================
   v1.43 – Spielplan
   ========================================================= */


.ttc-schedule-page{
    min-height:60vh;
    background:#f7f9fc;
}

.ttc-page-hero{
    padding:42px 0 34px;
    background:
        linear-gradient(120deg,#06255b 0%,#0a3d91 100%);
    color:#fff;
}

.ttc-page-hero h1{
    margin:0;
    font-size:40px;
    line-height:1;
}

.ttc-page-hero p{
    margin:10px 0 0;
    color:#d9e7fb;
    font-size:14px;
}

.ttc-schedule-content{
    padding-top:28px;
    padding-bottom:42px;
}

.ttc-schedule-section + .ttc-schedule-section{
    margin-top:34px;
}

.ttc-schedule-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;

    margin-bottom:12px;
}

.ttc-schedule-heading h2{
    margin:0;
    color:var(--ttc-ink);
    font-size:24px;
}

.ttc-schedule-heading > span{
    min-width:30px;
    height:30px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:#e9f1fc;
    color:var(--ttc-blue);
    font-size:12px;
    font-weight:800;
}

.ttc-schedule-list{
    overflow:hidden;
    border:1px solid #dfe6ef;
    border-radius:14px;
    background:#fff;
    box-shadow:0 12px 34px rgba(17,49,97,.06);
}

.ttc-schedule-row{
    display:grid;
    grid-template-columns:145px minmax(0,1fr) 72px;
    align-items:center;
    gap:18px;
    padding:15px 18px;
}

.ttc-schedule-row + .ttc-schedule-row{
    border-top:1px solid #e2e8f0;
}

.ttc-schedule-date{
    display:grid;
    gap:2px;
}

.ttc-schedule-date strong{
    color:#17314f;
    font-size:14px;
}

.ttc-schedule-date span{
    color:#718096;
    font-size:11px;
}

.ttc-schedule-main{
    min-width:0;
}

.ttc-schedule-league{
    display:block;
    margin-bottom:5px;
    color:var(--ttc-blue);
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.025em;
}

.ttc-schedule-teams{
    display:grid;
    gap:3px;
}

.ttc-schedule-teams span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#1f3045;
    font-size:13px;
    font-weight:700;
}

.ttc-schedule-main small{
    display:block;
    margin-top:5px;
    color:#7a899b;
    font-size:10px;
}

.ttc-schedule-result{
    text-align:right;
    color:#0a3479;
    font-size:20px;
    font-weight:850;
}

.ttc-schedule-notice,
.ttc-schedule-empty{
    margin-bottom:22px;
    padding:16px 18px;
    border:1px solid #d9e4f1;
    border-radius:12px;
    background:#fff;
    color:#53657d;
    font-size:13px;
    line-height:1.5;
}

.ttc-schedule-empty{
    display:grid;
    gap:4px;
}

.ttc-schedule-empty strong{
    color:#1f3045;
}

.ttc-schedule-empty-small{
    margin:0;
    border:0;
    border-radius:0;
    box-shadow:none;
}

.ttc-schedule-source{
    margin:20px 0 0;
    color:#8794a6;
    font-size:10px;
}


/* Dark Mode */

html[data-theme="dark"] .ttc-schedule-page{
    background:#061426;
}

html[data-theme="dark"] .ttc-page-hero{
    background:
        linear-gradient(120deg,#031225 0%,#07336d 100%);
}

html[data-theme="dark"] .ttc-schedule-heading h2{
    color:#f4f7fb;
}

html[data-theme="dark"] .ttc-schedule-heading > span{
    background:#102945;
    color:#67a6ff;
}

html[data-theme="dark"] .ttc-schedule-list,
html[data-theme="dark"] .ttc-schedule-notice,
html[data-theme="dark"] .ttc-schedule-empty{
    border-color:#20364f;
    background:#0b1f35;
    box-shadow:0 14px 34px rgba(0,0,0,.18);
}

html[data-theme="dark"] .ttc-schedule-row + .ttc-schedule-row{
    border-top-color:#20364f;
}

html[data-theme="dark"] .ttc-schedule-date strong,
html[data-theme="dark"] .ttc-schedule-teams span,
html[data-theme="dark"] .ttc-schedule-empty strong{
    color:#f4f7fb;
}

html[data-theme="dark"] .ttc-schedule-date span,
html[data-theme="dark"] .ttc-schedule-main small,
html[data-theme="dark"] .ttc-schedule-notice,
html[data-theme="dark"] .ttc-schedule-empty{
    color:#a9b8ca;
}

html[data-theme="dark"] .ttc-schedule-league,
html[data-theme="dark"] .ttc-schedule-result{
    color:#579aff;
}


/* Responsive */

@media(max-width:760px){
    .ttc-page-hero{
        padding:30px 0 26px;
    }

    .ttc-page-hero h1{
        font-size:32px;
    }

    .ttc-page-hero p{
        font-size:12px;
    }

    .ttc-schedule-content{
        padding-top:22px;
    }

    .ttc-schedule-heading h2{
        font-size:21px;
    }

    .ttc-schedule-row{
        grid-template-columns:78px minmax(0,1fr) 52px;
        gap:10px;
        padding:14px 13px;
    }

    .ttc-schedule-date strong{
        font-size:12px;
    }

    .ttc-schedule-date span{
        font-size:10px;
    }

    .ttc-schedule-teams span{
        font-size:12px;
    }

    .ttc-schedule-result{
        font-size:18px;
    }
}

@media(max-width:520px){
.ttc-schedule-row{
        grid-template-columns:1fr auto;
        gap:8px 12px;
    }

    .ttc-schedule-date{
        grid-column:1;
        display:flex;
        gap:7px;
        align-items:center;
    }

    .ttc-schedule-main{
        grid-column:1;
    }

    .ttc-schedule-result{
        grid-column:2;
        grid-row:1 / span 2;
        align-self:center;
    }

    .ttc-schedule-teams span{
        white-space:normal;
    }
}

/* Zusätzliche bisher direkt in spielplan.php definierte Regeln. */

.ttc-next-home{
            margin-bottom:28px;
        }
        .ttc-next-home-grid{
            display:grid;
            gap:10px;
        }
        .ttc-next-home-row{
            display:grid;
            grid-template-columns:120px 80px minmax(0,1fr);
            gap:14px;
            align-items:center;
            padding:14px 16px;
            border:1px solid var(--border, #dce4ee);
            border-radius:12px;
            background:var(--card, #fff);
        }
        .ttc-next-home-date,
        .ttc-next-home-time{
            font-weight:700;
            white-space:nowrap;
        }
        .ttc-next-home-match{
            min-width:0;
            font-weight:700;
        }
        .ttc-next-home-match strong{
            color:var(--accent, #0a4697);
        }
        .ttc-next-home-location{
            grid-column:1 / -1;
            font-size:13px;
            line-height:1.35;
            opacity:.68;
            margin-top:-4px;
        }
        html[data-theme="dark"] .ttc-next-home-row{
            background:#0c263f;
            border-color:#234765;
        }
        html[data-theme="dark"] .ttc-next-home-match strong{
            color:#6da6ff;
        }

        .ttc-schedule-accordion{
            border:0;
            margin:0;
            padding:0;
        }
        .ttc-schedule-accordion summary{
            list-style:none;
            cursor:pointer;
            user-select:none;
        }
        .ttc-schedule-accordion summary::-webkit-details-marker{
            display:none;
        }
        .ttc-schedule-accordion .ttc-schedule-heading{
            margin-bottom:0;
        }
        .ttc-schedule-accordion .ttc-schedule-heading::after{
            content:"";
            width:12px;
            height:12px;
            margin-left:auto;
            border-right:3px solid currentColor;
            border-bottom:3px solid currentColor;
            transform:rotate(45deg);
            transition:transform .18s ease;
            flex:0 0 auto;
        }
        .ttc-schedule-accordion[open] .ttc-schedule-heading::after{
            transform:rotate(225deg);
        }
        .ttc-schedule-accordion .ttc-schedule-list{
            margin-top:16px;
        }
        @media (max-width:640px){
            .ttc-next-home-row{
                grid-template-columns:auto auto;
                gap:4px 12px;
            }
            .ttc-next-home-match{
                grid-column:1 / -1;
                margin-top:3px;
            }
        }

/* =========================================================
   Phase 2c – Desktop-Typografie Spielplan
   Nur Desktop; bestehende Mobile-Regeln bleiben unverändert.
   ========================================================= */
@media (min-width:901px){
    .ttc-schedule-row{
        grid-template-columns:145px minmax(0,1fr) 72px;
        gap:20px;
        padding:18px 18px;
    }

    .ttc-schedule-date strong{
        font-size:15px;
        line-height:1.35;
    }

    .ttc-schedule-date span{
        font-size:13px;
        line-height:1.35;
    }

    .ttc-schedule-league{
        margin-bottom:6px;
        font-size:12px;
        line-height:1.25;
    }

    .ttc-schedule-teams{
        gap:4px;
    }

    .ttc-schedule-teams span{
        font-size:15px;
        line-height:1.35;
    }

    .ttc-schedule-main small{
        margin-top:6px;
        font-size:12px;
        line-height:1.35;
    }

    .ttc-schedule-result{
        font-size:21px;
    }
}
