/* =========================
   BASE
========================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    background: url("https://images.unsplash.com/photo-1620742820748-87c09249a72a?q=80&w=654&auto=format&fit=crop") no-repeat center center fixed;
    background-size: cover;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(139, 46, 0, 0.55);
    z-index: -1;
}

/* =========================
   HEADER
========================= */
.header {
    text-align: center;
    padding: 14px;
    font-size: 20px;
    background: rgba(139, 46, 0, 0.7);
    border-radius: 0 0 60px 60px;
    color: #ffe7c2;
    font-weight: bold;
}

/* =========================
   CONTAINER (IMPORTANT FIX)
========================= */
.container {
    width: 100%;
    max-width: 900px;   /* <-- WICHTIG: Tabellen brauchen mehr Platz */
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

/* =========================
   TABLES (FIXED)
========================= */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    color: #2b2b2b;
    border-radius: 12px;
    overflow: hidden;
}

th {
    background: #8b2e00;
    color: #ffe082;
    padding: 10px;
    text-align: center;
}

td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

tr:hover td {
    background: #ffe0b2;
}

/* =========================
   MATCH CARDS (MOBILE UI)
========================= */
.match {
    position: relative;
    background: #fff;
    color: #2b2b2b;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* LIVE DOT */
.live {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
    box-shadow: 0 0 8px red;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}

/* =========================
   NAV
========================= */
.nav a {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0,0,0,0.35);
    color: #ffe082;
    text-decoration: none;
    font-weight: bold;
}

.top-nav {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

/* HOME BUTTON */
.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 18px;
    border-radius: 999px;

    background: rgba(0, 0, 0, 0.35);
    color: #ffe082;

    text-decoration: none;
    font-weight: bold;
    font-size: 14px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.25);

    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
}

/* Hover Effekt */
.home-btn:hover {
    background: #8b2e00;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

/* Active Klick Effekt */
.home-btn:active {
    transform: scale(0.98);
}
/* =========================
   MOBILE
========================= */
@media (max-width: 600px) {
    .container {
        max-width: 100%;
        padding: 8px;
    }

    table {
        font-size: 12px;
    }
}
.section-title {
    text-align: center;
    margin: 15px 0 10px;
    font-size: 16px;
    color: #ffe082;
}

/* MATCH CARD */
.match-card {
    position: relative;
    background: #fff;
    color: #2b2b2b;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* COURT / INFO */
.court {
    background: #8b2e00;
    color: #ffe082;
    text-align: center;
    padding: 6px;
    font-size: 13px;
    font-weight: bold;
}

/* MATCH BODY */
.match-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    gap: 5px;
}

.team {
    font-weight: bold;
    text-align: center;
}

.vs {
    font-size: 12px;
    opacity: 0.5;
}

/* LIVE DOT */
.live-dot {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
    box-shadow: 0 0 8px red;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}

/* EMPTY */
.empty {
    text-align: center;
    opacity: 0.7;
    font-size: 14px;
}
.section-title {
    text-align: center;
    margin: 15px 0 10px;
    font-size: 16px;
    color: #ffe082;
}

.empty {
    text-align: center;
    opacity: 0.7;
    font-size: 14px;
}
