/* Clubfans Reunited – Teilnehmerseite
   Ergaenzt anmeldung.css: Hero, Footer und Schriften kommen von dort,
   hier stehen nur die Abweichungen. */

/* ---- Grundflaeche in Clubrot -------------------------------------------- */

body {
    background: var(--rot-tief);
    color: var(--weiss);
}

/* Dieselbe diagonale Struktur wie im Hero, damit die Seiten zusammengehoeren */
main {
    position: relative;
    max-width: 720px;
    padding: 2.5rem 1.25rem 3.5rem;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(
            115deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 2px,
            transparent 2px,
            transparent 22px
        ),
        radial-gradient(120% 80% at 50% 0%, rgba(216, 31, 66, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- Ueberschriften auf rotem Grund ------------------------------------- */

.saison {
    color: var(--weiss);
    margin-bottom: 0.3rem;
}

.saison-hinweis {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
    margin-bottom: 1.75rem;
}

/* ---- Die schwarze Tafel -------------------------------------------------- */

.tafel {
    background: var(--schwarz);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top: 4px solid var(--rot-hell);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem 1.75rem;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.tafel-titel {
    margin: 0 0 1.1rem;
    font-family: var(--schrift-akzent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.teilnehmer-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.teilnehmer-liste li {
    display: grid;
    /* Alias | Vorname | Initial – die Initiale braucht nur ihre eigene Breite */
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 0.75rem 1rem;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.teilnehmer-liste li:last-child { border-bottom: 0; }

.t-alias {
    font-family: var(--schrift-akzent);
    font-size: clamp(1.25rem, 3.4vw, 1.6rem);
    font-weight: 700;
    color: var(--weiss);
    /* lange Aliase duerfen umbrechen statt die Spalten zu sprengen */
    overflow-wrap: anywhere;
}

.t-vorname {
    font-family: var(--schrift-akzent);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    overflow-wrap: anywhere;
}

.t-initial {
    font-family: var(--schrift-akzent);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    justify-self: end;
    white-space: nowrap;
}

/* ---- Zustaende ----------------------------------------------------------- */

.tafel-meldung {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.tafel-meldung:empty { display: none; }

.tafel-meldung.fehler { color: #ff9fb0; }

/* ---- Rueckweg ------------------------------------------------------------ */

.zurueck { margin-top: 2rem; }

.zurueck a { color: var(--weiss); }

.zurueck a:hover,
.zurueck a:focus-visible { color: rgba(255, 255, 255, 0.75); }

/* ---- Schmale Bildschirme ------------------------------------------------- */

@media (max-width: 480px) {
    .tafel { padding: 1.15rem 1rem 1.35rem; }

    .teilnehmer-liste li {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.15rem 0.75rem;
    }

    /* Alias oben ueber die volle Breite, darunter Vorname und Initiale */
    .t-alias { grid-column: 1 / -1; }
}
