/* ── Augments (Angebots-Check T15) — /augments, Logik js/au-augments.js (AU). Nur Tokens; Zeilen/Abschnitte/Person aus rd-tw.css. ── */

/* Steuerung: `.tw-steuer` + Filterleiste (rd-tw.css) */

/* ── Augment-Kachel: Anfangsbuchstabe in Seltenheitsfarbe (Symbole gibt es bewusst nicht) ── */

/* ── Laden ── */
.au-lade { display: flex; flex-direction: column; gap: 1px; }
.au-skel { height: var(--tw-zeile-h); }
.au-skel-k { height: 214px; }

/* ── Buehne: bis zu drei Zahlen-Karten ── */
.au-buehne { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 24px 0 40px; border-top: 1px solid var(--tw-linie); }
.au-buehne.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.au-buehne.n1 { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.au-karte { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px 18px 20px; background: var(--tw-grund-2); color: inherit; }
.au-k-zahl { margin-top: 6px; font: 900 84px/.86 var(--tw-f-titel); font-stretch: var(--tw-halbbreit); white-space: nowrap; }
.au-karte.gut .au-k-zahl { color: var(--tw-akzent); }
.au-k-name { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: 4px; font: 800 var(--tw-h3)/1.05 var(--tw-f-titel); font-stretch: var(--tw-halbbreit); text-transform: uppercase; }
.au-k-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-karte:hover .au-k-name > span { color: var(--tw-akzent); }

/* ── Liste ── */
/* Spaltenkoepfe (Sortierung): dieselben Breiten und Luecken wie die Zeile — Platz 28 + Kachel 40 + je 14 Luft = Name ab 96 */
.au-kopfz { padding-top: 2px; }
.au-kn { flex: 1 1 0; min-width: 0; padding-left: 96px; }
.au-kopf-n { flex: 0 0 auto; display: flex; align-items: center; gap: 22px; }
.au-kw { width: 96px; }
.au-kz { flex: 0 0 auto; width: 76px; }
.au-alle > .au-kopfz + .tw-liste { margin-top: -16px; }
.au-z .tw-z-bild { flex-basis: 40px; width: 40px; height: 40px; }
.au-z.an { box-shadow: inset 2px 0 0 var(--tw-akzent); padding-left: 12px; }
.au-z .tw-z-text > span:last-child { display: flex; align-items: center; gap: 14px; }
.au-mit-k { display: inline-flex; align-items: center; gap: 6px; }
.au-mit-k img { width: 18px; height: 18px; display: block; }
.au-z .tw-z-neben { display: flex; align-items: center; gap: 22px; }
.au-wl { display: flex; flex-direction: column; gap: 6px; width: 120px; }
.au-wl .tw-klein { color: var(--tw-text-3); }
.au-wlbar { display: flex; gap: 2px; height: 3px; }
.au-wlbar em { display: block; min-width: 0; }
.au-wlbar .w { background: var(--tw-akzent); }
.au-wlbar .l { background: var(--tw-linie-3); }
.au-w { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; width: 96px; }
.au-w b { font-size: 15px; font-weight: 800; color: var(--tw-text); white-space: nowrap; }
.au-w small { font-size: 11px; color: var(--tw-text-3); white-space: nowrap; }
.au-chip { display: flex; align-items: center; gap: 8px; width: 178px; min-width: 0; font-size: var(--tw-s-klein); color: var(--tw-text-2); }
.au-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-chip small { flex: none; font-size: var(--tw-s-klein); color: var(--tw-text-3); }
.au-z .tw-z-zahl { flex-basis: 76px; min-width: 76px; }
/* am Schirm nennt der Spaltenkopf die Zahl; „from n picks“ (keine Quote) bleibt stehen */
@media (min-width: 760px) { .au-z.q .tw-z-zahl small { display: none; } }
.au-fuss { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 4px; }
.au-leer-k { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Auswahl: rechts in der Person-Spalte, unter 1180 zusaetzlich unter der Zeile ── */
.au-ps-name { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 22px 0 4px; }
.au-ps-name b { min-width: 0; font: 800 26px/1 var(--tw-f-titel); font-stretch: var(--tw-halbbreit); text-transform: uppercase; overflow-wrap: anywhere; }
.au-ps-name img { flex: none; width: 64px; height: 64px; display: block; }
.au-ps-h { margin: 26px 0 6px; }
.au-ps-mehr > p { margin: 10px 0 0; }
.au-mit { display: flex; align-items: center; gap: 12px; min-height: var(--tw-zeile-k); border-bottom: 1px solid var(--tw-linie); }
.au-mit .tw-z-bild { flex: none; width: 28px; height: 28px; }
.au-mit b { flex: 1 1 0; min-width: 0; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-mit > span { flex: none; font-size: var(--tw-s-klein); color: var(--tw-text-3); white-space: nowrap; }
.au-inline { display: none; padding: 0 0 16px 12px; box-shadow: inset 2px 0 0 var(--tw-akzent); border-bottom: 1px solid var(--tw-linie); }
.au-inline .au-ps-h { margin-top: 16px; }
.au-inline .au-mit:last-child { border-bottom: 0; }

/* ── Bewegung (nur html.au-bew) ── */
@media (prefers-reduced-motion: no-preference) {
    html.au-bew .au-buehne:not(.au-da) .au-karte { opacity: 0; translate: 0 18px; }
    html.au-bew .au-karte { transition: opacity .5s ease, translate .7s cubic-bezier(.2, .8, .2, 1); }
    html.au-bew .au-karte:nth-child(2) { transition-delay: 70ms; }
    html.au-bew .au-karte:nth-child(3) { transition-delay: 140ms; }
    html.au-bew .au-alle:not(.au-da) .tw-z { opacity: 0; }
    html.au-bew .au-alle .tw-z { transition: opacity .45s ease; }
    html.au-bew .au-alle:not(.au-da) .au-wlbar { scale: 0 1; }
    html.au-bew .au-wlbar { transform-origin: left; transition: scale .8s cubic-bezier(.2, .8, .2, 1) .2s; }
    html.au-bew .au-alle .tw-z:nth-child(2) { transition-delay: 40ms; }
    html.au-bew .au-alle .tw-z:nth-child(3) { transition-delay: 80ms; }
    html.au-bew .au-alle .tw-z:nth-child(n+4) { transition-delay: 120ms; }
}

/* ── Breiten ── */
@media (max-width: 1500px) { .au-z.c .au-chip:nth-child(3) { display: none; } }
@media (max-width: 1300px) { .au-wl { display: none; } .au-z.c .au-chip:nth-child(2) { display: none; } }
@media (max-width: 1179px) { .au-inline { display: block; } .au-z.an { border-bottom: 0; } }
@media (max-width: 759px) {
    .au-kopfz { display: none; }
    .au-alle > .au-kopfz + .tw-liste { margin-top: 0; }
    .au-buehne, .au-buehne.n2 { grid-template-columns: minmax(0, 1fr); padding-bottom: 26px; }
    #au-reiter .tw-reiter.gross { gap: 20px; }
    #au-reiter .tw-reiter.gross > * { font-size: 22px; }          /* beide Sichten nebeneinander lesbar, nichts scrollt weg */
    .au-karte { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 16px; padding: 14px 16px; }
    .au-karte > * { grid-column: 2; }
    .au-karte > .au-k-zahl { grid-column: 1; grid-row: 1 / span 4; min-width: 112px; margin: 0; font-size: 44px; }
    .au-k-name { margin: 0; font-size: 16px; }
    .au-z .tw-z-neben { display: none; }
    .au-mit-k { display: none; }
    .au-z .tw-z-zahl { min-width: 56px; }
}
