body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  font-size: 0.7em;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  height: 100vh;
  /* 100% der Bildschirmhöhe */
  display: grid;
  grid-template-rows: auto 1fr;
  /* Header nimmt so viel Platz wie nötig ein, Content füllt den Rest */
}

header {
  background-color: lightgreen;
  color: #fff;
  text-align: center;
  width: 100%;
}


header table.banner {
  font-size: 1em;
  padding-left: 20px;
  padding-right: 20px;
  background-color: rgb(40, 126, 40);
  color: white;
  /* Textfarbe auf weiß setzen für bessere Sichtbarkeit auf grünem Hintergrund */
}

header table.banner tr {
  background-color: rgb(40, 126, 40) !important;
  /* Banner-Zeilen sollen grün bleiben, nicht von den allgemeinen Tabellen-Regeln überschrieben werden */
}

#footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  width: 100%;
  height: 50px;
}

.content {
  background-color: #f5f5f5;
  overflow-y: auto;
  /* Damit der Inhalt scrollbar ist, falls er zu lang ist */
  box-sizing: border-box;
  font-size: 2em;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  font-size: 1.5em;

}

.content {
  padding: 20px;
  overflow-y: visible;
  /* Damit der Inhalt auf dem Desktop nicht beschränkt ist */
  font-size: 1em;
}

table {
  width: 100%;
}

table td,
table th {
  padding: 1.4rem;
}

table td,
table th {
  width: 2rem;
  text-align: center;
}

table td.a,
table th.a {
  text-align: left;
  width: auto;
}

table tr:nth-child(even) {
  background-color: lightgrey;
}

table tr:nth-child(odd) {
  background-color: white;
}

#table {
  table-layout: fixed;
  /* Feste Spaltenbreiten für einheitliches Layout */
}

/* Header-Zeilen (thead) sollen grau sein */
#table thead tr {
  background-color: grey !important;
}

#table thead th {
  background-color: grey !important;
  color: white;
}

/* Spaltenbreiten für Desktop (mehr als 800px) */
@media screen and (min-width: 801px) {
  #table td:nth-child(1), #table th:nth-child(1) { width: 60%; }   /* Club */
  #table td:nth-child(2), #table th:nth-child(2) { width: 10%; }   /* Sp */
  #table td:nth-child(3), #table th:nth-child(3) { width: 20%; }   /* S U N T */
  #table td:nth-child(4), #table th:nth-child(4) { width: 10%; }    /* Pt */
}

/* Spaltenbreiten für Mobile (bis 800px) */
@media screen and (max-width: 800px) {
  #table td:nth-child(1), #table th:nth-child(1) { width: 60%; }   /* Club */
  #table td:nth-child(2), #table th:nth-child(2) { width: 10%; }   /* Sp */
  #table td:nth-child(3), #table th:nth-child(3) { width: 20%; }   /* S U N T */
  #table td:nth-child(4), #table th:nth-child(4) { width: 10%; }   /* Pt */
}