* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;

    background: #f2f5ec;

    color: #333;
}

/* ------------------
   Kopfbereich
------------------- */

header {
    height: 230px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 20px 60px;

    background: linear-gradient(90deg, #ffffff 20%, #dfead2);
}

.header-text h1 {
    margin: 0;

    font-size: 90px;

    color: #27651d;

    font-weight: bold;
}

.header-text p {
    font-size: 28px;

    color: #24551c;
}

.header-logo img {
    width: 180px;
}

/* ------------------
   Menü
------------------- */

nav {
    display: flex;

    justify-content: center;

    background: #216500;

    border-radius: 12px;

    margin: -25px 20px 30px 20px;

    box-shadow: 0 5px 15px #777;
}

nav a {
    flex: 1;

    text-align: center;

    color: white;

    text-decoration: none;

    padding: 25px;

    font-size: 28px;

    font-weight: bold;

    border-right: 1px solid #5d9340;
}

nav a:hover {
    background: #3b8b22;
}

nav a:last-child {
    border: none;
}

nav a:hover:last-child {
    border-radius: 0 12px 12px 0;
}

nav a:hover:first-child {
    border-radius: 12px 0 0 12px;
}
/* ------------------
   Inhalt
------------------- */

main {
    max-width: 1500px;

    margin: auto;

    padding: 20px;
}

.box {
    background: white;

    padding: 25px;

    margin-bottom: 25px;

    border-radius: 15px;

    box-shadow: 0 3px 10px #ccc;
}

h2 {
    color: #27651d;

    font-size: 38px;
}

/* ------------------
 Wanderer Galerie
------------------- */

.wanderer {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.wanderer div {
    text-align: center;

    background: white;

    padding: 15px;

    border-radius: 15px;

    box-shadow: 0 3px 10px #ccc;
}

.wanderer img {
    width: 100%;

    aspect-ratio: 1/1;

    object-fit: cover;

    border-radius: 12px;
}

.wanderer p {
    font-size: 20px;

    font-weight: bold;
}

/* ------------------
 Tabellen
------------------- */

table {
    width: 100%;

    border-collapse: collapse;

    background: white;
}

th {
    background: #216500;

    color: white;

    font-size: 20px;
}

td,
th {
    padding: 15px;

    border-bottom: 1px solid #ddd;
}

tr:nth-child(even) {
    background: #f5f5f0;
}

/* ------------------
 Footer
------------------- */

footer {
    margin-top: 40px;

    padding: 25px;

    text-align: center;

    background: #216500;

    color: white;
}

/* --------------------------------
   Wanderungstabelle - Kopf fixieren
---------------------------------- */

.table-container {
    max-height: 700px;

    overflow-y: auto;
}

.table-container table {
    width: 100%;
}

.table-container thead th {
    position: sticky;

    top: 0;

    z-index: 10;

    background: #216500;

    color: white;
}

.jahr {
    margin-top: 40px;

    color: #216500;

    font-size: 40px;
}

.jahr-statistik {
    background: #eef5e8;

    padding: 15px;

    margin: 20px 0 40px 0;

    border-radius: 10px;

    font-size: 18px;
}

.statistik table {
    max-width: 800px;
}

/* Statistik Gesamt */

.statistik-gesamt td {
    font-size: 22px;

    font-weight: bold;

    padding: 18px;
}

.statistik-gesamt small {
    font-size: 16px;

    font-weight: normal;

    color: #555;
}

/* Jahresstatistik Ausrichtung */

.jahr {
    text-align: center;
}

.zahl {
    text-align: right;
}

.km {
    text-align: right;
}

/* ------------------
 Mobil
------------------- */
@media (max-width: 900px) {
    header {
        height: auto;

        padding: 20px;
    }

    .header-text h1 {
        font-size: 48px;
    }

    .header-text p {
        font-size: 16px;
    }

    .header-logo img {
        width: 90px;
    }

    nav {
        display: flex;

        flex-direction: row;

        flex-wrap: wrap;

        margin: 10px;
    }

    nav a {
        flex: 1 1 50%;

        font-size: 18px;

        padding: 15px 5px;
    }

    .wanderer {
        grid-template-columns: 1fr;
    }
}
