/* ============================================================================
   Orga: Helfer-Info (/helfer-info) - Nachschlage-Seite im Festival-Look.
   ----------------------------------------------------------------------------
   Bis 08/2026 lebte dieser Block am Ende von anmeldung.css; er nutzt weiter
   die .fv-anm-*-Basis (Seite rendert im .fv-anm-Wrapper, --anm-* erben von
   dort) und ergaenzt die .fv-info-*-Klassen. Laedt in App.razor NACH
   anmeldung.css (die Overrides hier gewinnen per Reihenfolge).
   Palette: tokens.css (--fvt-*).
   ========================================================================== */

/* --- Orga: Helfer-Info (/helfer-info) ------------------------------------- */

/* Breiter Rahmen nur fuer die Info-Seite - sie ist zweispaltig, waehrend
   Anmeldung und Portal bewusst schmale Lesespalten bleiben. */
.fv-anm-breit {
    max-width: 1280px;
}

/* Ab 1000px: Tabelle links (feste Breite), Kacheln rechts. Darunter stapeln. */
.fv-info-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 22px;
    align-items: start;
}

@media (min-width: 1000px) {
    .fv-info-layout {
        grid-template-columns: minmax(340px, 440px) 1fr;
    }

    /* Beim Blaettern durch viele Helfer soll die Tabelle stehen bleiben. */
    .fv-info-spalte-liste {
        position: sticky;
        top: 16px;
    }
}

/* Suchfeld + Jahresauswahl nebeneinander, am Handy untereinander. */
.fv-anm-suchzeile {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.fv-info-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 4px;
    color: var(--anm-muted);
    font-size: 0.9rem;
    cursor: pointer;
}

.fv-info-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--anm-green);
    cursor: pointer;
}

/* .fv-anm-hint zieht sich normalerweise an das Feld darueber heran (-6px) -
   unter dem Haken braucht der Trefferzaehler aber Luft. */
.fv-info-check + .fv-anm-hint {
    margin-top: 12px;
}

/* --- Trefferliste als Tabelle -------------------------------------------- */

.fv-info-tabwrap {
    border: 1px solid var(--anm-line);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
}

.fv-info-tab {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.fv-info-tab th {
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--anm-line);
    text-align: left;
}

/* Sortierknopf fuellt die ganze Kopfzelle, damit die Klickflaeche gross ist. */
.fv-info-sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: var(--anm-muted);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.fv-info-sort:hover {
    color: var(--anm-text);
}

.fv-info-sort.aktiv {
    color: var(--anm-green);
}

.fv-info-sortpfeil {
    font-size: 0.75rem;
    opacity: 0.5;
}

.fv-info-sort.aktiv .fv-info-sortpfeil {
    opacity: 1;
}

.fv-info-tab td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(58, 68, 89, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0;
}

/* Vorname/Nachname bekommen mehr Platz als der Ort. */
.fv-info-tab td:nth-child(1),
.fv-info-tab td:nth-child(2) {
    width: 32%;
}

/* cursor auf <tr> reicht nicht - Tabellenzeilen erzeugen keine eigene Box, in
   den Zellen bliebe der Text-Cursor (I-Balken) stehen. Deshalb auf die Zelle.
   user-select verhindert ausserdem, dass Klicken Text markiert. */
.fv-info-tab tbody tr,
.fv-info-tab tbody td {
    cursor: pointer;
    user-select: none;
}

.fv-info-tab tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.fv-info-tab tbody tr:hover {
    background: rgba(62, 194, 84, 0.1);
}

.fv-info-tab tbody tr.aktiv {
    background: rgba(62, 194, 84, 0.18);
    box-shadow: inset 3px 0 0 var(--anm-green);
}

.fv-info-tab tbody tr.aktiv td {
    color: var(--anm-text);
    font-weight: 600;
}

/* Abgesagte sind nur auf Wunsch sichtbar - dann klar als solche erkennbar. */
.fv-info-tab tbody tr.abgesagt td {
    color: var(--anm-muted);
    text-decoration: line-through;
    text-decoration-color: var(--anm-error);
}

.fv-info-tab tbody tr:last-child td {
    border-bottom: 0;
}

.fv-info-paging {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--anm-muted);
    font-size: 0.9rem;
}

.fv-info-paging button {
    min-width: 38px;
    min-height: 38px;
    border: 1px solid var(--anm-slate-hi);
    border-radius: 6px;
    background: transparent;
    color: var(--anm-text);
    font: inherit;
    font-size: 1.1rem;
    cursor: pointer;
}

.fv-info-paging button:hover:not(:disabled) {
    border-color: var(--anm-green);
    color: var(--anm-green);
}

.fv-info-paging button:disabled {
    opacity: 0.3;
    cursor: default;
}

/* --- Grosses Foto in der Person-Kachel ----------------------------------- */

/* Routes.razor setzt per FocusOnNavigate den Fokus auf die h1 und haengt ihr
   dafuer tabindex="-1" an. Chromium wertet diesen programmatischen Fokus als
   :focus-visible, es lag also ein Fokusrahmen um die Ueberschrift. Das Element
   ist kein Bedienelement (per Tab nicht erreichbar) - Rahmen weg. */
.fv-anm-title[tabindex="-1"]:focus {
    outline: none;
}

/* Bereichs-Navigation der Stammseite - Zeile unter dem Titel. */
.fv-info-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.fv-info-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    min-height: 42px;
    border: 1.5px solid var(--anm-slate-hi);
    border-radius: 999px;
    background: rgba(80, 80, 112, 0.15);
    color: var(--anm-text);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.12s, box-shadow 0.12s;
}

.fv-info-nav a:hover {
    border-color: var(--anm-green);
    box-shadow: 0 0 14px rgba(62, 194, 84, 0.3);
}

/* Schichtzeile: Bereich (Art) als Ueberschrift, Zeit darunter. */
.fv-info-schicht-art {
    color: var(--anm-green);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
}

.fv-info-schicht-zeit {
    font-weight: 600;
    font-size: 1rem;
    color: var(--anm-text);
    margin-top: 3px;
}

/* Datenliste links, Foto rechts daneben. */
.fv-info-person {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.fv-info-person .fv-anm-daten {
    flex: 1 1 auto;
    /* ohne min-width:0 sprengen lange E-Mails das Grid statt umzubrechen */
    min-width: 0;
}

.fv-info-fotolink {
    flex: none;
    line-height: 0;
}

/* FESTE Masse statt width:100% + max-*. Mit Prozentbreite haengt die Groesse
   an der Spaltenbreite und die Hochformat-Bilder wurden riesig; object-fit
   braucht ausserdem eine definierte Box, sonst wird nur zugeschnitten statt
   skaliert. Das Original oeffnet der Klick aufs Bild. */
.fv-info-foto {
    display: block;
    width: 273px;
    height: 364px;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    border: 2px solid var(--anm-green);
}

/* Schmal wird es zweispaltig zu eng - stapeln, Foto zuerst. */
@media (max-width: 700px) {
    .fv-info-person {
        flex-direction: column;
        gap: 14px;
    }

    .fv-info-fotolink {
        order: -1;
    }

    .fv-info-foto {
        width: 208px;
        height: 278px;
    }
}

/* Scan-Zeile: Zeit fix breit, damit die Zeitleiste eine Spalte bildet. */
.fv-anm-scan {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--anm-line);
}

.fv-anm-scan:last-child {
    border-bottom: 0;
}

.fv-anm-scan-zeit {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    min-width: 96px;
}

.fv-anm-scan-aktion {
    color: var(--anm-green);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.fv-anm-scan-meta {
    color: var(--anm-muted);
    font-size: 0.9rem;
}

/* Zwischenueberschrift innerhalb einer Karte (h2 traegt den Stern-Stil). */
.fv-anm-unterkopf {
    margin: 18px 0 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--anm-ocker);
}
