/* =========================================
   Grundlayout
   ========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #f3f4f6;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}


/* =========================================
   Kopf
   ========================================= */

h1 {
    margin: 0 0 6px 0;
    font-size: 28px;
}

.container > p {
    margin: 0 0 20px 0;
    color: #6b7280;
    line-height: 1.5;
}


/* =========================================
   Suche
   ========================================= */

form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

form input[type="text"] {
    flex: 1 1 220px;
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
}

form label {
    font-size: 14px;
    white-space: nowrap;
}

form button {
    padding: 10px 18px;
    border: 0;
    border-radius: 6px;
    background: #2563eb;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

form button:hover {
    background: #1d4ed8;
}


/* =========================================
   Status
   ========================================= */

#status {
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 14px;
}


/* =========================================
   Zeitblöcke
   ========================================= */

.match-group {
    margin-bottom: 18px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}


/*
 * Uhrzeit
 */
.match-group h2 {
    margin: 0;
    padding: 9px 14px;

    background: #111827;
    color: white;

    font-size: 22px;
    line-height: 1.2;
}


/* =========================================
   Einzelnes Match
   ========================================= */

.match {
    padding: 9px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.match:last-child {
    border-bottom: 0;
}


/*
 * Spielerzeile
 */
.match-players {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        24px
        minmax(0, 1fr);

    align-items: center;

    gap: 6px;

    font-size: 17px;
    line-height: 1.3;
}


/*
 * Spieler 1
 */
.match-players strong:first-child {
    text-align: right;
}


/*
 * Spieler 2
 */
.match-players strong:last-child {
    text-align: left;
}


/*
 * "–"
 */
.versus {
    text-align: center;
    color: #9ca3af;
    font-weight: normal;
}


/* =========================================
   Zusatzinfo
   ========================================= */

.match-info {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin-top: 3px;

    color: #6b7280;

    font-size: 12px;
    line-height: 1.3;
}

.match-info span:first-child {
    color: #9ca3af;
}

.match-info span:last-child {
    font-weight: 600;
    color: #4b5563;
}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 600px) {

    body {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }

    form {
        gap: 8px;
    }

    form input[type="text"] {
        flex-basis: 100%;
    }

    form button {
        flex: 1;
    }

    .match-group {
        border-radius: 7px;
        margin-bottom: 12px;
    }

    .match-group h2 {
        padding: 8px 10px;
        font-size: 21px;
    }

    .match {
        padding: 8px 10px;
    }

    .match-players {
        font-size: 15px;
        grid-template-columns:
            minmax(0, 1fr)
            20px
            minmax(0, 1fr);
    }

    .match-info {
        flex-direction: column;
        align-items: center;
        gap: 1px;
        font-size: 11px;
    }

}