/* ============================================
   Tabellen-Wrapper & Grundlayout
============================================ */

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

.table-wrapper td:nth-child(1),
.table-wrapper th:nth-child(1) {
  width: 15%;
}

/* ============================================
   Funktionsträger-Tabelle
============================================ */

.funktionstraeger {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 2em;
}

.funktionstraeger th,
.funktionstraeger td {
  border: 1px solid #ccc;
  padding: 0.5em 1.5em;
  text-align: left;
}

.funktionstraeger th {
  background-color: #f5f5f5;
}

.funktionstraeger tr:hover {
  background-color: #fafafa;
}

/* ============================================
   Festtabelle
============================================ */

.festtabelle {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-family: sans-serif;
}

.festtabelle th, 
.festtabelle td {
  border: 1px solid #ccc;
  padding: 0.6rem 1rem;
  vertical-align: top;
}

.festtabelle tr:nth-child(even) {
  background-color: #f9f9f9;
}

.festtabelle h3 {
  margin-top: 2rem;
}


/* ============================================
   Programmtabelle
============================================ */

.programmtabelle {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-family: sans-serif;
}

/* Keine Rahmen und keine Hintergrundfarbe */
.programmtabelle th,
.programmtabelle td {
  border: none;
  padding: 0.6rem 1rem;
  vertical-align: top;
}

.programmtabelle td:first-child {
  min-width: 8rem;
}

.programmtabelle tr:nth-child(even) {
  background-color: transparent;

}

.programmtabelle h3 {
  margin-top: 2rem;
}


/* ============================================
   Tabelle für Termine
============================================ */


table.terminliste {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  table-layout: auto;
  font-size: 1rem;
  line-height: 1.4;
}

table.terminliste th,
table.terminliste td {
  border: 1px solid #ccc;
  padding: 0.6em 0.8em;
  text-align: left;
  vertical-align: top;
}

table.terminliste th {
  background-color: #f5f5f5;
}

table.terminliste tr:hover {
  background-color: #fafafa;
}

/* Datum */
table.terminliste th:nth-child(1),
table.terminliste td:nth-child(1) {
  min-width: 200px;
}

/* Uhrzeit – schmaler */
table.terminliste th:nth-child(2),
table.terminliste td:nth-child(2) {
  min-width: 160px;
  text-align: center;
}

/* Veranstaltung – breiter */
table.terminliste th:nth-child(3),
table.terminliste td:nth-child(3) {
  min-width: 320px;
  white-space: normal;
}

/* Ort */
table.terminliste th:nth-child(4),
table.terminliste td:nth-child(4) {
  min-width: 200px;
}


/* ============================================
   Tabelle für Tombola-Zeiten
============================================ */
table.tombolazeiten {
  width: 100%;
  border-collapse: collapse;   /* saubere Linien */
  margin-top: 1em;
  font-family: sans-serif;
  font-size: 1rem;
  line-height: 1.4;
}

table.tombolazeiten th,
table.tombolazeiten td {
  border: 1px solid #ccc;      /* sichtbare Striche */
  padding: 0.8em 1.2em;        /* mehr Platz innen */
  text-align: center;          /* Uhrzeiten mittig */
  vertical-align: middle;
}

table.tombolazeiten th {
  background-color: #f5f5f5;   /* Kopfzeile abheben */
  font-weight: bold;
}

/* Wochentag linksbündig */
table.tombolazeiten td:first-child,
table.tombolazeiten th:first-child {
  text-align: left;
  min-width: 160px;
}

/* Datum mittig */
table.tombolazeiten td:nth-child(2),
table.tombolazeiten th:nth-child(2) {
  min-width: 140px;
}

/* Beginn/Ende etwas schmaler */
table.tombolazeiten td:nth-child(3),
table.tombolazeiten td:nth-child(4),
table.tombolazeiten th:nth-child(3),
table.tombolazeiten th:nth-child(4) {
  min-width: 120px;
}