/* 1. GRUNDGERÜST & SICHERHEIT */
.olwp-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.olwp-dashboard * {
    box-sizing: border-box;
}

/* 2. STEUERUNG (DROPDOWNS) */
.olwp-controls {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.olwp-input {
    flex: 1 1 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    color: #495057;
}

@media (min-width: 600px) {
    .olwp-input { flex: 1 1 140px; }
}

.olwp-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}
@media (min-width: 600px) {
    .olwp-btn { width: auto; }
}

/* 3. LAYOUT */
.olwp-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.olwp-column {
    background: #fff;
    flex: 1 1 100%;
    min-width: 0; 
}

@media (min-width: 900px) {
    .olwp-column { flex: 1 1 300px; }
    .olwp-column:first-child { flex: 2 1 400px; }
}

.olwp-column h3 {
    margin-top: 0;
    border-bottom: 3px solid #0073aa; /* Etwas dicker */
    padding-bottom: 10px;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* 4. SPIEL-LISTE (NEUES DESIGN) */
ul.olwp-match-list {
    list-style: none !important; /* Erzwingt das Entfernen der Punkte */
    padding: 0 !important;
    margin: 0 !important;
}

.olwp-match-item {
    padding: 12px 8px; /* Mehr Platz innen */
    border-bottom: 1px solid #ddd; 
    border-top: 4px solid #f0f0f0; /* Dicke Trennlinie oben */
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: #fff;
}

/* Zebra-Streifen: Jedes zweite Element leicht grau für bessere Lesbarkeit */
.olwp-match-item:nth-child(even) {
    background-color: #fcfcfc;
}

.olwp-match-item:last-child { 
    border-bottom: none; 
}

.match-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap !important; /* Verbietet Umbruch! */
}

.match-team {
    display: flex;
    align-items: center;
    flex: 1;
    width: 35%; /* Begrenzte Breite erzwingen */
    min-width: 0; /* Erlaubt Textkürzung wenn nötig */
    flex-direction: row !important; /* Immer nebeneinander! */
}

/* GAST-TEAM RECHTSBÜNDIG */
.match-team.guest {
    justify-content: flex-end;
    text-align: right;
}
.match-team.guest img {
    margin-left: 6px !important;
    margin-right: 0 !important;
    order: 2; 
}
.match-team.guest span {
    order: 1;
}

/* FIX FÜR DIE BILDER */
.olwp-dashboard img.olwp-logo-img {
    width: 24px !important; /* Etwas kleiner für Mobile */
    height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    object-fit: contain !important;
    display: inline-block !important;
    border: none !important;
    padding: 0 !important;
    margin-right: 6px !important;
    flex-shrink: 0 !important; 
}

.match-team span {
    font-size: 0.85rem; /* Schrift etwas kleiner auf Handy */
    line-height: 1.1;
    font-weight: 500;
    color: #222;
    white-space: normal; /* Text darf umbrechen... */
    display: inline-block;
}

/* ERGEBNIS IN DER MITTE */
.match-score {
    flex: 0 0 auto;
    width: 45px; /* Feste Breite */
    text-align: center;
    background: #e9ecef;
    padding: 4px 0;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
    margin: 0 4px;
}

.olwp-goal-list {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    padding: 4px 5px 0 5px;
    line-height: 1.3;
    border-top: 1px dotted #eee; /* Trennlinie zu den Toren */
    margin-top: 4px;
}

/* 5. TABELLE */
.olwp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.olwp-table th {
    text-align: left;
    color: #888;
    padding: 8px 4px;
    border-bottom: 2px solid #ddd;
    font-weight: normal;
}
.olwp-table td {
    padding: 8px 4px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}
.olwp-table img.olwp-logo-mini {
    width: 18px !important;
    height: 18px !important;
    vertical-align: middle;
    display: inline-block !important;
    margin-right: 5px !important;
}
