/* Teilnehmerseite (www): Darstellung der Inhalte auf Basis der page4-Hauptseite.
   Bootstrap wird auf dieser Seite nicht geladen, damit der Kopf exakt zur Hauptseite passt. */
.tn-seite { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.5; color: #fff;
  max-width: 1000px !important; width: auto !important; margin: 0 auto !important; padding: 16px; box-sizing: border-box; }
.tn-seite *, .tn-seite *::before, .tn-seite *::after { box-sizing: border-box; }
.tn-seite > * { background: rgba(10,23,71,.82); }
.tn-seite * { font-family: Verdana, Arial, Helvetica, sans-serif !important; font-weight: normal; letter-spacing: normal; text-transform: none; }
.tn-seite strong, .tn-seite .tn-wichtig, .tn-seite dt { font-weight: bold; }
.tn-seite h1, .tn-seite h2, .tn-seite h3 { font-weight: bold; text-align: left; }
.tn-seite .tn-h1 { font-size: 20px; line-height: 1.25; margin: 0; padding: 12px 16px 4px; color: #fff; border-radius: 12px 12px 0 0; }
.tn-intro, .tn-legende, .tn-hinweis, .tn-wichtig, .tn-phase0 { margin: 0; padding: 6px 16px; }
.tn-wichtig { font-weight: bold; }
.tn-seite .tn-legende { font-size: 14px; }
.tn-seite .tn-eckdaten, .tn-seite .tn-stand { margin: 0; padding: 6px 16px; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.tn-eckdaten dt, .tn-stand dt { color: #FFEB3B; font-weight: normal; }
.tn-eckdaten dd, .tn-stand dd { margin: 0; overflow-wrap: anywhere; }
.tn-seite .tn-phase0 { font-size: 15px; font-weight: bold; padding-top: 4px; padding-bottom: 10px; }
.tn-seite > :last-child { border-radius: 0 0 12px 12px; padding-bottom: 16px; }
.tn-klasse { margin: 0; padding: 12px 16px 16px; }
.tn-klasse:last-child { border-radius: 0 0 12px 12px; }
.tn-seite .tn-h2 { font-size: 17px; line-height: 1.3; margin: 8px 0 10px; color: #fff; }
.tn-seite .tn-h3 { font-size: 14px; margin: 0; padding: 8px 14px; background: #06C; color: #fff; border-radius: 8px 8px 0 0; }
.tn-spalten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.tn-seite .tn-box-reg:only-child { grid-column: 1 / -1; }
/* Desktop: Teilnehmer / Warteliste / Registriert (Mobil: Reihenfolge wie im HTML = Registriert / Warteliste / Teilnehmer) */
@media (min-width: 861px) {
  .tn-seite .tn-box-tei { order: 1; }
  .tn-seite .tn-box-war { order: 2; }
  .tn-seite .tn-box-reg { order: 3; }
}
@media (max-width: 860px) { .tn-spalten { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.tn-seite .tn-box { background: rgba(255,255,255,.97); color: #111; border-radius: 12px; overflow: hidden; }
.tn-seite .tn-zahl { font-weight: inherit; }
/* Spaltentitel in den Farben der user-Seite (status.css) */
.tn-seite .tn-box-reg .tn-h3 { background: #cfe2ff; color: #084298; }
.tn-seite .tn-box-war .tn-h3 { background: #ffe69c; color: #000; }
.tn-seite .tn-box-tei .tn-h3 { background: #d1e7dd; color: #0f5132; }
.tn-seite .tn-liste { list-style: none; color: #111; margin: 0; padding: 0; }
.tn-seite .tn-team { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; min-height: 40px; padding: 6px 14px; border-top: 1px solid #ccc; overflow-wrap: anywhere; }
.tn-platz, .tn-nr { color: #444; }
.tn-name { flex: 1 1 auto; min-width: 0; }
.tn-seite .tn-ok .tn-name { color: #1B7F1B; font-weight: bold; }
.tn-seite .tn-offen .tn-name { color: #C00000; font-weight: bold; }
.tn-leer { padding: 12px 14px; color: #333; font-style: italic; }
@media (max-width: 600px) {
  .tn-seite { padding: 8px; font-size: 15px; }
  .tn-seite .tn-h1 { font-size: 19px; }
  .tn-seite .tn-eckdaten, .tn-seite .tn-stand { grid-template-columns: 1fr; gap: 0; }
  .tn-eckdaten dd, .tn-stand dd { margin-bottom: 6px; }
  .tn-seite .tn-spalten { grid-template-columns: 1fr; }
}
@media print { .tn-seite > * { background: #fff !important; color: #000 !important; } .tn-h1, .tn-h2, .tn-eckdaten dt, .tn-stand dt { color: #000; } }
/* Statusfarben auf dunklem Grund (Legende): hellere Töne für ausreichenden Kontrast */
.tn-seite .tn-legende .tn-offen .tn-name { color: #FF9E9E; }
.tn-seite .tn-legende .tn-ok .tn-name { color: #8FF08F; }
/* Legende: farbiger Teamname links, Beschreibung daneben (Mobil untereinander) */
.tn-seite .tn-legende p { display: grid; grid-template-columns: 170px minmax(0, 1fr); column-gap: 16px; align-items: center; margin: 0; padding: 6px 0; }
.tn-seite .tn-legende .tn-team { border-top: 0; min-height: 0; padding: 0; }
@media (max-width: 860px) { .tn-seite .tn-legende p { grid-template-columns: 1fr; row-gap: 2px; } }
/* Wichtig-Box: pastellrote Fläche mit schwarzem Text (statt gelbem Seitenbalken) */
.tn-seite .tn-wichtig { background: #FFD6D6; color: #111; border: 1px solid #E59A9A; border-radius: 8px; padding: 10px 14px; margin: 8px 0; }
.tn-seite > .tn-wichtig { margin: 8px 16px; }
.tn-seite .tn-wichtig strong { color: #111; }
/* Klassenabschnitte (z.B. wA / wB / mA ...) deutlich voneinander trennen */
.tn-seite .tn-klasse + .tn-klasse { margin-top: 12px; padding-top: 20px; border-top: 2px solid rgba(255,255,255,.4); }
