/* ── Screen „teilnehmer“ (partials/screens/teilnehmer.php) ─────────────────
   Teilnehmer-Sheet (participants_bottom_sheet.dart) über der Terminliste, Status-Sheet, Abwesend-Dialog,
   Snackbar (app_snack_bar.dart). Ablauf „abwesend“ in 5 Schritten. */
.vf-phone { --a-warning: #FF9B5A; --a-on-warning: #0A0B0E; --a-on-success: #06210F; --a-on-error: #2B0711; }
[data-theme="light"] .vf-phone { --a-warning: #CD6505; --a-on-warning: #FFFFFF; --a-on-success: #FFFFFF; --a-on-error: #FFFFFF; }

/* Modal-Barrieren (Sheets schwarz 54 %, Dialog 60 %) */
.vf-screen--teilnehmer :is(.vf-teilnehmer-scrim, .vf-teilnehmer-scrim2, .vf-teilnehmer-scrim3) { position: absolute; inset: 0; background: rgba(0,0,0,.54); pointer-events: none; transition: opacity .3s; }
.vf-screen--teilnehmer .vf-teilnehmer-scrim { z-index: 3; }
.vf-screen--teilnehmer .vf-teilnehmer-scrim2 { z-index: 5; opacity: 0; }
.vf-screen--teilnehmer .vf-teilnehmer-scrim3 { z-index: 7; opacity: 0; background: rgba(0,0,0,.6); transition-duration: .2s; }

/* Teilnehmer-Sheet: 70 % von 852 = 596, Radius 28, Griff 40 × 4 */
.vf-screen--teilnehmer .vf-teilnehmer-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 596px; display: flex; flex-direction: column; overflow: hidden; border-radius: 28px 28px 0 0; background: var(--a-bg); }
.vf-screen--teilnehmer .vf-teilnehmer-grip { display: block; flex-shrink: 0; width: 40px; height: 4px; margin: 12px auto 0; border-radius: 2px; background: var(--a-divider); }
.vf-screen--teilnehmer .vf-teilnehmer-head { display: flex; align-items: center; height: 48px; margin: 16px 16px 12px; }
.vf-screen--teilnehmer .vf-teilnehmer-head strong { flex: 1; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.vf-screen--teilnehmer .vf-teilnehmer-guest { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--a-tab); color: var(--a-on-tab); font-size: 14px; font-weight: 700; }

/* Reiter (_TabBar/_TabItem): Leiste Radius 20 mit Rand, aktiv vollfarbig (Radius 14) */
.vf-screen--teilnehmer .vf-teilnehmer-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 16px; padding: 4px; border-radius: 20px; background: var(--a-card); box-shadow: inset 0 0 0 1px var(--a-divider); }
.vf-screen--teilnehmer .vf-teilnehmer-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; transition: background-color .2s, transform .15s; }
.vf-screen--teilnehmer .vf-teilnehmer-tab b { display: flex; align-items: center; gap: 4px; }
.vf-screen--teilnehmer .vf-teilnehmer-tab .hi { color: var(--a-muted); transition: color .2s; }
.vf-screen--teilnehmer .vf-teilnehmer-tab i { font-style: normal; font-size: 16px; line-height: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--a-text); transition: color .2s; }
.vf-screen--teilnehmer .vf-teilnehmer-tab small { font-size: 11.5px; line-height: 15px; font-weight: 700; color: var(--a-muted); transition: color .2s; }
.vf-screen--teilnehmer .vf-teilnehmer-tab--yes { background: var(--a-green); }
.vf-screen--teilnehmer .vf-teilnehmer-tab--yes :is(.hi, i, small) { color: var(--a-on-success); }
.vf-screen--teilnehmer .vf-teilnehmer-tab .vf-teilnehmer-now { display: none; }

/* ManualReminderRow */
.vf-screen--teilnehmer .vf-teilnehmer-remind { display: flex; align-items: center; gap: 10px; margin: 8px 16px; padding: 10px 14px; border-radius: 10px; background: var(--a-card); box-shadow: inset 0 0 0 1px var(--a-divider); }
.vf-screen--teilnehmer .vf-teilnehmer-remind > .hi:first-child { color: var(--a-blue-t); }
.vf-screen--teilnehmer .vf-teilnehmer-remind > .hi:last-child { width: 16px; height: 16px; color: var(--a-muted); }
.vf-screen--teilnehmer .vf-teilnehmer-remind span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.vf-screen--teilnehmer .vf-teilnehmer-remind b { font-size: 12px; line-height: 15px; font-weight: 600; }
.vf-screen--teilnehmer .vf-teilnehmer-remind small { font-size: 11px; line-height: 14px; color: var(--a-muted); }

/* Listen je Reiter + Karten (_ParticipantTile): Radius 16, Rand, Avatar 40, rechts Stift-Kreis 36 */
.vf-screen--teilnehmer .vf-teilnehmer-lists { position: relative; flex: 1; margin-top: 8px; }
.vf-screen--teilnehmer .vf-teilnehmer-list { position: absolute; inset: 0; padding: 8px 16px 0; transition: opacity .2s; }
.vf-screen--teilnehmer .vf-teilnehmer-list--no { opacity: 0; }
.vf-screen--teilnehmer .vf-teilnehmer-tile { display: flex; align-items: center; margin-bottom: 8px; padding: 12px 0 12px 12px; border-radius: 16px; background: var(--a-card); box-shadow: inset 0 0 0 1px var(--a-divider); transition: transform .3s cubic-bezier(.215,.61,.355,1), opacity .25s; }
.vf-screen--teilnehmer .vf-teilnehmer-av { width: 40px; height: 40px; font-size: 13px; box-shadow: 0 0 0 1px var(--a-divider); }
.vf-screen--teilnehmer .vf-teilnehmer-who { flex: 1; min-width: 0; margin-left: 10px; display: flex; flex-direction: column; gap: 2px; }
.vf-screen--teilnehmer .vf-teilnehmer-line { display: flex; align-items: center; gap: 6px; }
.vf-screen--teilnehmer .vf-teilnehmer-line b { font-size: 15px; line-height: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-screen--teilnehmer .vf-teilnehmer-line em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--a-muted); white-space: nowrap; }
.vf-screen--teilnehmer .vf-teilnehmer-alert { display: flex; color: var(--a-red); }
.vf-screen--teilnehmer .vf-teilnehmer-alert .hi { width: 15px; height: 15px; }
.vf-screen--teilnehmer .vf-teilnehmer-who small { font-size: 13px; line-height: 17px; color: var(--a-muted); }
.vf-screen--teilnehmer .vf-teilnehmer-pen { padding: 0 12px; }
.vf-screen--teilnehmer .vf-teilnehmer-pen i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--a-field); color: var(--a-text); }
.vf-screen--teilnehmer .vf-teilnehmer-pen .hi { width: 16px; height: 16px; }

/* Status-Sheet (_EditParticipantSheet): Polster 20, Griff 40 × 4, Avatar 50 */
.vf-screen--teilnehmer .vf-teilnehmer-edit { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 20px 20px 54px; border-radius: 28px 28px 0 0; background: var(--a-bg); transform: translateY(100%); transition: transform .35s cubic-bezier(.215,.61,.355,1); }
.vf-screen--teilnehmer .vf-teilnehmer-edit .vf-teilnehmer-grip { margin: 0 auto 20px; }
.vf-screen--teilnehmer .vf-teilnehmer-ehead { display: flex; align-items: center; height: 50px; }
.vf-screen--teilnehmer .vf-teilnehmer-av50 { width: 50px; height: 50px; font-size: 17px; font-weight: 600; box-shadow: 0 0 0 1px var(--a-divider); }
.vf-screen--teilnehmer .vf-teilnehmer-etxt { flex: 1; display: flex; flex-direction: column; gap: 2px; margin-left: 14px; }
.vf-screen--teilnehmer .vf-teilnehmer-ehead b { font-size: 18px; line-height: 23px; font-weight: 700; }
.vf-screen--teilnehmer .vf-teilnehmer-ehead small { font-size: 12px; line-height: 16px; color: var(--a-muted); }
.vf-screen--teilnehmer .vf-teilnehmer-ehead > .hi { width: 22px; height: 22px; margin-right: 8px; }
.vf-screen--teilnehmer .vf-teilnehmer-lbl { display: block; margin: 24px 0 12px; font-size: 14px; line-height: 18px; font-weight: 600; }
.vf-screen--teilnehmer .vf-teilnehmer-status { display: flex; gap: 8px; }
.vf-screen--teilnehmer .vf-teilnehmer-status span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; border-radius: 10px; background: var(--a-card); box-shadow: inset 0 0 0 1px var(--a-divider); color: var(--a-muted); font-size: 12px; line-height: 16px; font-weight: 500; }
.vf-screen--teilnehmer .vf-teilnehmer-status .hi { width: 22px; height: 22px; }
.vf-screen--teilnehmer .vf-teilnehmer-status .is-yes { background: var(--a-green); box-shadow: none; color: var(--a-on-success); }
.vf-screen--teilnehmer .vf-teilnehmer-late { display: flex; gap: 6px; }
.vf-screen--teilnehmer .vf-teilnehmer-late span { flex: 1; padding: 10px 0; border-radius: 10px; background: var(--a-card); box-shadow: inset 0 0 0 1px var(--a-divider); text-align: center; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--a-muted); white-space: nowrap; }
.vf-screen--teilnehmer .vf-teilnehmer-late .is-on { background: var(--a-green); box-shadow: none; color: var(--a-on-success); }
.vf-screen--teilnehmer .vf-teilnehmer-field { padding: 20px; border-radius: 14px; background: var(--a-card); box-shadow: inset 0 0 0 1px var(--a-divider); text-align: left; font-size: 16px; line-height: 20px; color: var(--a-dim); }
.vf-screen--teilnehmer .vf-teilnehmer-field--3 { height: 100px; }
.vf-screen--teilnehmer .vf-teilnehmer-field--2 { height: 80px; }
.vf-screen--teilnehmer .vf-teilnehmer-btns { display: flex; gap: 12px; margin-top: 24px; }
.vf-screen--teilnehmer .vf-teilnehmer-btns span { flex: 1; padding: 14px 0; border-radius: 14px; background: var(--a-card); text-align: center; font-size: 16px; line-height: 20px; font-weight: 600; transition: background-color .15s, color .15s, transform .15s; }
.vf-screen--teilnehmer .vf-teilnehmer-btns .is-save { background: var(--a-blue-t); color: #fff; }
.vf-screen--teilnehmer .vf-teilnehmer-btns .is-confirm { background: var(--a-warning); color: var(--a-on-warning); }

/* Dialog (_AbsentDialog): Rand 24, Radius 28, Polster 24, blendet ein (200 ms) */
.vf-screen--teilnehmer .vf-teilnehmer-dialog { position: absolute; left: 24px; right: 24px; top: 50%; z-index: 8; padding: 24px; border-radius: 28px; background: var(--a-bg); box-shadow: 0 10px 20px rgba(0,0,0,.3); text-align: center; opacity: 0; transform: translateY(-50%); transition: opacity .2s; }
.vf-screen--teilnehmer .vf-teilnehmer-dico { width: 64px; height: 64px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--a-bad-soft); color: var(--a-red); }
.vf-screen--teilnehmer .vf-teilnehmer-dico .hi { width: 32px; height: 32px; }
.vf-screen--teilnehmer .vf-teilnehmer-dialog strong { display: block; margin-top: 20px; font-size: 20px; line-height: 25px; font-weight: 700; }
.vf-screen--teilnehmer .vf-teilnehmer-dialog p { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--a-muted); }
.vf-screen--teilnehmer .vf-teilnehmer-opt { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--a-card); color: var(--a-muted); text-align: left; }
.vf-screen--teilnehmer .vf-teilnehmer-opt--ex { margin-top: 20px; }
.vf-screen--teilnehmer .vf-teilnehmer-opt > .hi { width: 22px; height: 22px; }
.vf-screen--teilnehmer .vf-teilnehmer-opt span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.vf-screen--teilnehmer .vf-teilnehmer-opt b { font-size: 14px; line-height: 18px; font-weight: 600; }
.vf-screen--teilnehmer .vf-teilnehmer-opt small { font-size: 12px; line-height: 16px; opacity: .7; }
.vf-screen--teilnehmer .vf-teilnehmer-opt i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; }
.vf-screen--teilnehmer .vf-teilnehmer-opt i .hi { width: 14px; height: 14px; color: transparent; }
.vf-screen--teilnehmer .vf-teilnehmer-opt--ex { background: var(--a-warning); color: var(--a-on-warning); }
.vf-screen--teilnehmer .vf-teilnehmer-opt--ex small { opacity: .85; }
.vf-screen--teilnehmer .vf-teilnehmer-opt--ex i { background: var(--a-on-warning); }
.vf-screen--teilnehmer .vf-teilnehmer-opt--ex i .hi { color: var(--a-warning); }
.vf-screen--teilnehmer .vf-teilnehmer-reason { margin-top: 20px; text-align: left; }
.vf-screen--teilnehmer .vf-teilnehmer-reason small { display: block; margin-top: 8px; font-size: 12px; line-height: 1.3; color: var(--a-muted); }

/* Snackbar (immer dunkle Hero-Fläche, Häkchen in Erfolgs-Grün) */
.vf-screen--teilnehmer .vf-teilnehmer-snack { position: absolute; left: 16px; right: 16px; top: 114px; z-index: 8; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--a-hero); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.28); color: #F2F4F8; font-size: 14px; line-height: 1.3; font-weight: 600; opacity: 0; transform: translateY(-100%); transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s; }
.vf-screen--teilnehmer .vf-teilnehmer-snack i { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(29,205,131,.16); color: #1DCD83; }

/* ── Ablauf „abwesend“ ── */
/* 1: Stift → Status-Sheet fährt hoch */
.s1 .vf-screen--teilnehmer .vf-teilnehmer-scrim2 { opacity: 1; }
.s1 .vf-screen--teilnehmer .vf-teilnehmer-edit { transform: none; }
/* 2: „Abwesend“ → Dialog blendet ein, „Entschuldigt“ vorausgewählt */
.s2 .vf-screen--teilnehmer .vf-teilnehmer-scrim3, .s2 .vf-screen--teilnehmer .vf-teilnehmer-dialog { opacity: 1; }
/* 3: „Unentschuldigt“ → springt ohne Animation um, Grundfeld fällt weg, Bestätigen rot */
.s3 .vf-screen--teilnehmer .vf-teilnehmer-opt--ex { background: var(--a-card); color: var(--a-muted); }
.s3 .vf-screen--teilnehmer .vf-teilnehmer-opt--ex small { opacity: .7; }
.s3 .vf-screen--teilnehmer .vf-teilnehmer-opt--ex i { background: none; }
.s3 .vf-screen--teilnehmer .vf-teilnehmer-opt--ex i .hi { color: transparent; }
.s3 .vf-screen--teilnehmer .vf-teilnehmer-opt--un { background: var(--a-red); color: var(--a-on-error); }
.s3 .vf-screen--teilnehmer .vf-teilnehmer-opt--un small { opacity: .85; }
.s3 .vf-screen--teilnehmer .vf-teilnehmer-opt--un i { background: var(--a-on-error); }
.s3 .vf-screen--teilnehmer .vf-teilnehmer-opt--un i .hi { color: var(--a-red); }
.s3 .vf-screen--teilnehmer .vf-teilnehmer-reason { display: none; }
.s3 .vf-screen--teilnehmer .vf-teilnehmer-btns .is-confirm { background: var(--a-red); color: var(--a-on-error); }
/* 4: „Bestätigen“ → Dialog + Sheet zu, Nele verschwindet aus „Teilnehmer“, Zähler 8 / 3, Snackbar */
.s4 .vf-screen--teilnehmer .vf-teilnehmer-scrim2, .s4 .vf-screen--teilnehmer .vf-teilnehmer-scrim3, .s4 .vf-screen--teilnehmer .vf-teilnehmer-dialog { opacity: 0; }
.s4 .vf-screen--teilnehmer .vf-teilnehmer-edit { transform: translateY(100%); }
.s4 .vf-screen--teilnehmer .vf-teilnehmer-nele { opacity: 0; }
.s4 .vf-screen--teilnehmer .vf-teilnehmer-after { transform: translateY(-74px); }
.s4 .vf-screen--teilnehmer .vf-teilnehmer-tab .vf-teilnehmer-was { display: none; }
.s4 .vf-screen--teilnehmer .vf-teilnehmer-tab .vf-teilnehmer-now { display: inline; }
.s4 .vf-screen--teilnehmer .vf-teilnehmer-snack { opacity: 1; transform: none; }
/* 5: Reiter „Absagen“ → Nele oben mit rotem Hinweis-Icon und Zeitpunkt */
.s5 .vf-screen--teilnehmer .vf-teilnehmer-tab--yes { background: none; }
.s5 .vf-screen--teilnehmer .vf-teilnehmer-tab--yes :is(.hi, small) { color: var(--a-muted); }
.s5 .vf-screen--teilnehmer .vf-teilnehmer-tab--yes i { color: var(--a-text); }
.s5 .vf-screen--teilnehmer .vf-teilnehmer-tab--no { background: var(--a-red); }
.s5 .vf-screen--teilnehmer .vf-teilnehmer-tab--no :is(.hi, i, small) { color: var(--a-on-error); }
.s5 .vf-screen--teilnehmer .vf-teilnehmer-list--yes { opacity: 0; }
.s5 .vf-screen--teilnehmer .vf-teilnehmer-list--no { opacity: 1; }
