#termine-container {
  border: 1px solid #c9c9c9;
  background-color: #fcfcfc;
  padding: 3px;
}

/* Zeilen wie Tabelle auf Desktop */
.termine-row {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
  text-align: left; /* linksbündig */
  align-items: flex-start; /* Inhalte oben ausrichten */
}

.termine-row:last-child {
  border-bottom: none;
}

/* Spalten */
.termine-col {
  flex: 1;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* oben */
}

  .termine-col h3 {
    font-size: 20px;
    line-height: 1.6;
    font-weight: normal;
    padding: 0;
    margin: 0;
  }

/* Überschriften bleiben mittig oder optional oben */
.termine-header {
  display: none; /* nur Desktop */
  font-weight: bold;
  border-bottom: 2px solid #000;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.events {
  margin: 20px;
}

/* Beschreibung kursiv */
.termine-description {
  font-style: italic;
}

/* Desktop Header sichtbar ab md */
@media (min-width: 768px) {
  .termine-header {
    display: flex;
    align-items: flex-start; /* Header-Items auch oben */
  }

}

/* Mobil: Karten untereinander */
@media (max-width: 767px) {
 #termine-container {
		border: none;
		background-color: #fff;
		padding: 0;
  }

	.termine-row:last-child {
	  border-bottom: 1px solid #ddd;
	}

  .termine-row {
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    align-items: flex-start; /* oben */
  }
  .termine-col {
    padding: 4px 0;
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
  }
  
  .events {
    margin: 0;
  }
}

@media (max-width: 399px) {
  .termine-col h3 {
    font-size: 20px;
    font-weight: bold;
    padding: 0;
    margin: 0;
  }
}

.event {
  margin-bottom: 20px;
  font-family: sans-serif;
}

.tags {
  display: flex;
  flex-wrap: wrap; /* erlaubt Zeilenumbruch wenn nötig */
  gap: 6px;        /* Abstand zwischen Tags */
  margin-top: 6px;
}

.tag {
  display: inline-flex;      /* wichtig! */
  align-items: center;
  justify-content: center;

  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;

  border-radius: 999px;
  color: white;

  white-space: nowrap;       /* verhindert Zeilenumbruch im Tag */
  width: fit-content;        /* nur so breit wie Inhalt */

  transition: all 0.2s ease;
}

/* Blau */
.tag.leistungssport {
  background: linear-gradient(135deg, #f63b3b, #af1e1e);
  box-shadow: 0 2px 6px rgb(130, 0, 22);
}

/* Grün */
.tag.breitensport {
  background: linear-gradient(135deg, #22c55e, #166534);
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4);
}


.tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid currentColor;
  backdrop-filter: blur(6px);
}


.location {
  display: inline-flex;       /* Icon + Text nebeneinander */
  align-items: center;
  gap: 6px;

  white-space: nowrap;        /* verhindert Zeilenumbruch */
}

.location i {
  display: inline-block;      /* Wichtig! verhindert 100%-Breite */
  flex: 0 0 auto;             /* wächst nicht, bleibt nur so breit wie Inhalt */
  font-size: 0.9rem;          /* optional anpassen */
  color: #9ca3af;
}

.location .icon {
  color: #9ca3af; /* grau statt knallig */
}

.locations {
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap; /* erlaubt Zeilenumbruch wenn nötig */
  gap: 6px;        /* Abstand zwischen Tags */
  
}
.locations i {
  margin-top: 5px;
}