body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.overflowTable {
    overflow-x: auto;
}

table {
    table-layout: fixed;
    width: 905px;
}

td {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.main-nav {
    position: sticky;
    top: 0;
    background-color: #fff;
    border-bottom: 2px solid #123256;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.brand {
    font-weight: bold;
    font-size: 20px;
    padding: 10px 0;
}

.brand a {
    color: #333;
    text-decoration: none;
}

.burger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu {
    display: flex;
}

.menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.menu > ul > li {
    position: relative;
    margin-right: 20px;
}

.menu a {
    text-decoration: none;
    color: #333;
    padding: 12px 10px;
    display: block;
    transition: color 0.3s;
}

.menu a:hover,
.menu a.active {
    color: #123256;
    font-weight: bold;
}

.submenu {
    display: none !important;
    flex-direction: column;
    padding-left: 10px;
}

@media (min-width: 769px) {
    .menu > ul > li:hover .submenu {
        display: flex !important;
    }
    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        min-width: 180px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .menu {
        display: none;
        width: 100%;
        flex-direction: column;
    }

    .menu.active {
        display: flex;
    }

    .menu ul {
        flex-direction: column;
    }

    .menu > ul > li {
        margin-right: 0;
    }

    .submenu {
        display: none;
        position: relative;
        background: none;
        box-shadow: none;
        flex-direction: column;
    }

    .submenu a {
        padding-left: 30px;
    }

    .menu > ul > li:hover .submenu {
        display: none;
    }

    .submenu.open {
        display: flex !important;
    }
}

/* Nur auf Desktop anzeigen wir Submenus beim Hover */
@media (min-width: 769px) {
  .menu > ul > li:hover .submenu {
    display: flex;
    flex-direction: column;
  }
}

.site-footer {
    background-color: #123256;
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 30px;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-section {
    flex: 1 1 200px;
}

.footer-section h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #ffffff;
}

.footer-section p,
.footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #ffffff44;
    padding-top: 10px;
    font-size: 12px;
    color: #ddd;
}

.ids h3,
.ids table {
    margin: auto;
}

/* Liga-Seite */
.Titel {
    text-align: center;
    line-height: 300%;
}

.liga-hr {
    border-top: 1px solid #123256;
    width: 300px;
}

.termine, .tabelle {
    padding: 20px 0px;
    margin: auto;
}

.termine table,
.tabelle table {
    border-collapse: collapse;
    font-size: small;
    margin: auto;
}

th {
    font-weight: bold;
    text-align: left;
}

td, th {
    padding: 3px 10px 3px 10px;
}

td {
    margin: auto;
    white-space: nowrap;
}

.termine tr:nth-child(4n-3),
.termine tr:nth-child(4n-2) {
    background-color: #12325625;
}

.Heimteam, .Details {
    text-align: right;
}

.Heimteam, .Gastteam {
    width: 320px !important;
}

.Datum, .Details {
    width: 70px;
}

.vs {
    font-weight: bold;
    text-align: center;
    width: 25px;
}

.termin-all {
    padding: 5px;
}

.termin-info, .termin-main {
    background-color: #1D2227;
    padding: 10px;
}

.termin-main-team div {
    display: inline;
    padding: 5px;
}

.termine a,
.id a {
    color: black;
}

.termine a:hover,
.id a:hover {
    color: #123256;
}

.details-cell {
    padding: 0;
}

.details-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.details-inner table {
    display: block;
    padding: 6px 30px 15px 30px;
}

.details-panel.open {
    max-height: 800px;
}

.details-inner table {
    float: left;
}

.details-inner td:first-child {
    font-weight: bold;
}

.details-inner tr {
    background-color: transparent !important;
}

.tabelle tr:nth-child(even),
.ids tr:nth-child(odd) {
    background-color: #12325625;
}

.gamesplayed, .gameswon, .gameslost, .sets2, .points2 {
    text-align: center;
    width: 75px;
}

.rank {
    width: 20px;
}

.teamname {
    width: 370px !important;
}

.filter-container {
    text-align: center;
    margin-top: 30px;
    font-family: 'Montserrat', sans-serif;
}

label, select {
    text-align: center;
}

.id, .verband {
    width: 100px;
}

.bold {
    font-weight: bold;
}