﻿/* =========================================
   GRUNDLAYOUT
   ========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #222;
}

body {
    padding: 20px;
}


/* =========================================
   VEREINSLOGO
   ========================================= */

body::before {
    content: "";
    display: block;
    width: 220px;
    height: 90px;
    margin: 0 auto 15px auto;

    background-image: url("https://palesport.com/test/msc.JPEG");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}


/* =========================================
   TABELLE
   ========================================= */

table {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    border-collapse: separate;
    border-spacing: 0;

    background: #fff;
    border-radius: 10px;
    overflow: hidden;

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}


/* =========================================
   ÜBERSCHRIFT
   ========================================= */

#headline {
    background: #222;
    color: #fff;

    font-size: 24px;
    font-weight: 700;
    text-align: center;

    padding: 18px 12px;
}


/* =========================================
   TABELLENKOPF
   ========================================= */

thead tr:last-child {
    background: #343a40;
}

th {
    font-size: 14px;
    font-weight: 700;
    text-align: center;

    padding: 11px 8px;

    white-space: nowrap;

    border-bottom: 1px solid #555;

    color: #fff;
}


/* =========================================
   TABELLENZELLEN
   ========================================= */

td {
    padding: 10px 8px;

    text-align: center;
    font-size: 15px;

    border-bottom: 1px solid #e5e5e5;

    white-space: nowrap;
}


/* Teilnehmer und Team linksbündig */

td:nth-child(4),
td:nth-child(5) {
    text-align: left;
}


/* =========================================
   NORMALE ZEILEN
   ========================================= */

tbody tr:not(.empty) {
    background: #ffffff;
}

tbody tr:not(.empty):nth-child(even) {
    background: #f8f8f8;
}

tbody tr:not(.empty):hover {
    background: #eeeeee;
}


/* =========================================
   TOP 3 - GANZE ZEILE
   ========================================= */

/* 1. Platz - Gold */

tbody tr:nth-of-type(1) {
    background: #fff7d6 !important;
}


/* 2. Platz - Silber */

tbody tr:nth-of-type(2) {
    background: #e8eaed !important;
}


/* 3. Platz - Bronze */

tbody tr:nth-of-type(3) {
    background: #f4e4d7 !important;
}


/* =========================================
   POSITION
   ========================================= */

/* Normale Position */

tbody tr:not(.empty) th:first-child {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}


/* 1. Platz */

tbody tr:nth-of-type(1) th:first-child {
    background: #d4af37;
    color: #fff;

    font-size: 18px;
    font-weight: 700;
}


/* 2. Platz */

tbody tr:nth-of-type(2) th:first-child {
    background: #9da3aa;
    color: #fff;

    font-size: 18px;
    font-weight: 700;
}


/* 3. Platz */

tbody tr:nth-of-type(3) th:first-child {
    background: #b87333;
    color: #fff;

    font-size: 18px;
    font-weight: 700;
}


/* Ab Platz 4 wieder normale Position */

tbody tr:nth-of-type(n+4) th:first-child {
    background: transparent;
    color: #222;

    font-size: 17px;
    font-weight: 700;
}


/* =========================================
   STARTNUMMER
   ========================================= */

tbody tr:not(.empty) td:nth-child(3) {
    background: #8f1024;
    color: #fff;

    font-weight: 700;

    border-radius: 6px;
}


/* =========================================
   RUNDEN
   ========================================= */

tbody tr:not(.empty) td:nth-child(8) {
    background: #e5f1e8;
    color: #285c38;

    font-weight: 700;

    border-radius: 6px;
}


/* =========================================
   LEERE ZEILEN AUSBLENDEN
   ========================================= */

tr.empty {
    display: none;
}


/* =========================================
   FUSSZEILE
   ========================================= */

tfoot {
    background: #222;
    color: #fff;
}

tfoot td {
    border: 0;

    font-size: 12px;

    padding: 12px 8px;
}

#footer {
    text-align: left;
}

#disclaim {
    text-align: center;
}

#footclass {
    text-align: right;
}


/* =========================================
   HANDY / MOBILE
   ========================================= */

@media (max-width: 800px) {

    body {
        padding: 8px;
        overflow-x: auto;
    }

    table {
        min-width: 900px;
    }

    #headline {
        font-size: 20px;
        padding: 14px 8px;
    }

    th {
        font-size: 12px;
        padding: 9px 6px;
    }

    td {
        font-size: 13px;
        padding: 9px 6px;
    }

    tfoot td {
        font-size: 10px;
    }

    body::before {
        width: 150px;
        height: 60px;
        margin-bottom: 10px;
    }
}