/* Modern Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background: #f3f4f6;
    margin: 0;
    padding: 20px;
}

/* Überschrift */
h1 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    color: #2b4a6f;
}

/* Moderne Karte */
.match {
    background: #ffffff;
    padding: 0;
    margin: 25px auto;
    max-width: 720px;

    border-radius: 18px;
    overflow: hidden;

    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
    transition: transform 0.2s ease;
}

.match:hover {
    transform: translateY(-3px);
}
.match h2 {
    margin: 0;
    padding: 20px 28px;
    font-size: 22px;
    font-weight: 600;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 18px 18px 0 0;
}

/* Header des Spiels */
.match-header {
    background: linear-gradient(135deg, #2b4a6f, #3f6d9e);
    padding: 18px;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

/* Zusatz-Infos Spielcode, Spielpin Fahrer */
.match-info {
    padding: 12px 28px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;

    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    font-size: 14px;
    color: #374151;
}

/* Spielerblock */
.player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

/* Spielername + Ampel */
.player-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 500;
}

/* Ampel-Kreise */
.ampel {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.ampel.gruen {
    background: #2ecc71;
}

.ampel.rot {
    background: #e74c3c;
}

.ampel.grau {
    background: #b0b7c3;
}

/* Button-Container */
.button-group {
    display: flex;
    gap: 10px;
}

/* Moderne Buttons */
.btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.1s ease;
}

/* Grüner Button */
.btn-kann {
    background: #2ecc71;
    color: white;
}
.btn-kann:hover {
    background: #27ae60;
}

/* Roter Button */
.btn-kannnicht {
    background: #e74c3c;
    color: white;
}
.btn-kannnicht:hover {
    background: #c0392b;
}

/* Handy-Optimierung */
@media (max-width: 600px) {
    .player {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .button-group {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 15px;
    }
}
