/* Nachtrag 1 / 3a Sitzung C (Daniel 13.10.2026): demo testers - company and role in the demo bar, start page «Firma und
   Rolle wählen», list «Demo-Tester», mail preview, activity, note on the login page. CI v2: existing tokens only. */

/* demo bar: two lists «Firma» and «Rolle» (demoworld/_tester_bar.html) */
.demo-bar-tester { flex: 0 1 auto; }
.demo-bar-tester .demo-bar-label { font-size: .78rem; white-space: nowrap; }
.demo-bar-tester select[name=firma] { max-width: 15rem; }
.demo-bar-tester select[name=rolle] { max-width: 11rem; }
@media (max-width: 1280px) { .demo-bar:has(.demo-bar-tester) .demo-bar-note { display: none; } }
@media (max-width: 760px) {
  .demo-bar-tester { flex-wrap: wrap; margin-left: 0; row-gap: .15rem; }
  .demo-bar-tester select[name=firma] { max-width: calc(100vw - 6rem); }
}

/* start page of the tester himself (before a role): a plain head instead of the menu of the tool */
.tester-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem 16px;
  background: var(--card); border-bottom: 1px solid var(--line); }
.tester-top-brand { font-weight: 700; }
.tester-top form { margin: 0; }
@media (pointer: coarse) { .tester-top .btn { min-height: 44px; } }

/* start page of a tester: one row per company, the roles as buttons */
.tester-choose { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); }
.tester-row { display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(8rem, 1fr) auto; gap: .35rem .9rem;
  align-items: center; padding: .45rem .85rem; border-top: 1px solid var(--line); }
.tester-row:first-child { border-top: 0; }
.tester-row.is-current { box-shadow: inset 3px 0 0 var(--brand); }
.tester-row-ind { font-size: .92rem; min-width: 0; }
.tester-row-firm { font-size: .88rem; min-width: 0; }
.tester-roles { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; margin: 0; }
.tester-roles form { margin: 0; }
@media (max-width: 760px) {
  .tester-row { grid-template-columns: minmax(0, 1fr); }
  .tester-roles { justify-content: flex-start; }
}
@media (pointer: coarse) { .tester-roles .btn { min-height: 44px; } }

/* list «Demo-Tester» and one tester */
.tester-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .25rem .9rem; align-items: end; }
.tester-form .actions { grid-column: 1 / -1; }
.tester-mail-preview { display: block; width: 100%; height: 680px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); }
@media (max-width: 760px) { .tester-mail-preview { height: 560px; } }
.tester-confirm { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .75rem 0 0; }
.tester-meta { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .2rem .9rem; font-size: .9rem; }
.tester-meta dt { color: var(--muted); }
.tester-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* activity: filter, sessions as a timeline */
.tester-filter { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: end; }
.tester-filter .field { margin: 0; }
.tester-session { border-top: 1px solid var(--line); padding: .35rem 0; }
.tester-session:first-child { border-top: 0; }
.tester-session > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .2rem .8rem; align-items: baseline; min-height: 24px; }
.tester-timeline { list-style: none; margin: .35rem 0 .25rem; padding: 0 0 0 .75rem; border-left: 3px solid var(--line); }
.tester-timeline li { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; gap: .1rem .6rem; padding: .15rem 0; font-size: .85rem; }
.tester-timeline .tl-what { min-width: 0; overflow-wrap: anywhere; }
.tester-timeline .tl-dur { color: var(--muted); white-space: nowrap; }
.tester-timeline .is-login { font-weight: 650; }
@media (max-width: 760px) { .tester-timeline li { grid-template-columns: max-content minmax(0, 1fr); } .tester-timeline .tl-dur { grid-column: 2; } }

/* login page of the demo (dark landing): short note on the activity log */
.login-tester-note { margin: .9rem 0 0; text-align: center; font-size: .76rem; line-height: 1.4; color: var(--pv-muted-dark); }
.login-tester-note a { color: var(--pv-signal-2); font-weight: 650; }
