/* Grundlayout */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url("logo_gross.jpg") center center no-repeat fixed;
    background-size: 60%;
    color: #222;
}

/* Header / Navigation */
.main-header {
    background: url("Sportheim.jpg") center center no-repeat;
    background-size: cover;
    padding: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: brightness(0.4);
    padding: 10px 20px;
    position: relative;
}

/* Desktop-Navigation */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    background: rgba(0,0,0,0.4);
}

.navbar a:hover {
    background: rgba(0,0,0,0.7);
}

.logo-small {
    height: 50px;
    width: auto;
}

/* Hamburger-Icon (nur sichtbar auf Mobilgeräten) */
.menu-toggle {
    display: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
    user-select: none;
}

/* Hauptinhalt */
.content {
    padding: 40px;
    background: rgba(255,255,255,0.85);
    margin: 40px;
    border-radius: 10px;
}

/* Tabellenstil */
table.spielplan {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table.spielplan th,
table.spielplan td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
}

table.spielplan th {
    background: #333;
    color: #fff;
}

table.spielplan tr:nth-child(even) {
    background: #f2f2f2;
}

/* ------------------------------ */
/* 📱 MOBILE OPTIMIERUNG */
/* ------------------------------ */

@media (max-width: 768px) {

    body {
        background-size: 120%;
    }

    /* Hamburger sichtbar */
    .menu-toggle {
        display: block;
    }

    /* Navigation standardmäßig versteckt */
    .navbar ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        background: rgba(0,0,0,0.7);
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
    }

    /* Dropdown sichtbar, wenn Navbar aktiv */
    .navbar.active ul {
        display: flex;
    }

    .logo-small {
        height: 40px;
        margin-left: auto;
    }

    .content {
        margin: 10px;
        padding: 20px;
    }

    table.spielplan {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ------------------------------ */
/* 🖥️ GROSSE DESKTOPS */
/* ------------------------------ */

@media (min-width: 1400px) {
    .content {
        max-width: 1200px;
        margin: 60px auto;
    }
}
