/* Grundlegendes Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    /* overflow: hidden entfernt, um Scrollprobleme auf Mobile zu vermeiden */
}

/* 50/50 Split Container */
.split-screen {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden; /* Fixiert den Viewport für Desktop */
}

/* LINKE SPALTE */
.info-column {
    width: 50%;
    padding: 40px;
    background-color: #fcfcfc;
    border-right: 1px solid #ddd;
    overflow-y: auto; /* Eigenes Scrollen für die Info-Spalte */
}

h1 { font-size: 3rem; color: #333; margin-bottom: 5px; }
.league-name { font-size: 1.5rem; color: #e74c3c; font-weight: bold; margin-bottom: 30px; }

.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.text-box {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 30px;
}

.changes { font-size: 0.9rem; color: #666; margin-top: 10px; }

/* Spiele-Design */
.match-row {
    padding: 15px;
    border-left: 4px solid #e74c3c;
    background: #f1f1f1;
    margin-top: 10px;
    border-radius: 0 4px 4px 0;
}

.match-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    flex-wrap: wrap; /* Verhindert Überlappen bei langen Namen */
}

.mini-logo { width: 30px; height: 30px; object-fit: contain; }
.match-date { font-size: 0.85rem; color: #555; margin-top: 5px; }

/* RECHTE SPALTE */
.table-column {
    width: 50%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.table-header {
    padding: 20px;
    background: #333;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Header behält seine Größe */
}

.external-btn {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    border: 1px solid #fff;
    padding: 5px 10px;
    border-radius: 3px;
    transition:  0.3s;
}

.external-btn:hover {
    background: rgba(255,255,255,0.1);
}

.full-iframe {
    flex-grow: 1; 
    width: 100%;
    border: none;
}

/* Mobile Optimierung */
@media (max-width: 1000px) {
    .split-screen {
        flex-direction: column;
        height: auto;
        overflow: visible; /* Erlaubt natürliches Scrollen auf Handy */
    }
    .info-column, .table-column {
        width: 100%;
        height: auto;
        border-right: none;
    }
    .info-column {
        padding: 20px;
    }
    .table-column {
        height: 600px; /* Definierte Höhe für Iframe auf Mobile */
    }
    h1 { font-size: 2rem; }
}