body {
            margin: 0;
            font-family: Arial, sans-serif;
            background: #f4f4f4;
            color: #222;
        }

        header {
            background: #111827;
            color: white;
            padding: 20px;
            text-align: center;
        }

        main {
            max-width: 1100px;
            margin: 30px auto;
            padding: 0 20px;
        }

        .box {
            background: white;
            padding: 25px;
            border-radius: 10px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th,
        td {
            padding: 12px;
            border-bottom: 1px solid #ddd;
            text-align: left;
        }

        th {
            background: #1f2937;
            color: white;
        }

        tr:hover {
            background: #f8f8f8;
        }

        .rank {
            font-weight: bold;
            width: 80px;
        }

        .points {
            font-weight: bold;
            text-align: right;
        }

        .games {
            text-align: center;
        }

        a {
            color: #111827;
        }


        /* Mobilvisning */
@media (max-width: 700px) {

    header {
        padding: 15px 10px;
    }

    header h1 {
        font-size: 22px;
    }

    main {
        margin: 15px auto;
        padding: 0 10px;
    }

    .box {
        padding: 15px;
        border-radius: 8px;
        overflow-x: auto;
    }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    th,
    td {
        padding: 8px;
        font-size: 14px;
    }

    /* Placering */
    table th:nth-child(1),
    table td:nth-child(1) {
        min-width: 55px;
    }

    /* Spiller */
    table th:nth-child(2),
    table td:nth-child(2) {
        min-width: 160px;
    }

    /* Klub */
    table th:nth-child(3),
    table td:nth-child(3) {
        min-width: 170px;
    }

    /* Position */
    table th:nth-child(4),
    table td:nth-child(4) {
        min-width: 100px;
    }

    /* Point */
    table th:nth-child(5),
    table td:nth-child(5) {
        min-width: 70px;
    }

    /* Kampe */
    table th:nth-child(6),
    table td:nth-child(6) {
        min-width: 70px;
    }

    .rank {
        width: auto;
        font-weight: bold;
    }

    .points {
        text-align: right;
        font-weight: bold;
    }

    .games {
        text-align: center;
    }
}

@media (max-width: 700px) {

    table th:nth-child(1),
    table td:nth-child(1) {
        min-width: 45px;
        width: 45px;
    }

    table th:nth-child(2),
    table td:nth-child(2) {
        min-width: 175px;
    }

    table th:nth-child(3),
    table td:nth-child(3) {
        min-width: 180px;
    }
}