/* Verlauf (#/verlauf): Heute, Kurzprofile, Alle Aktivitäten. Nur Tokens aus styles.css, alle Klassen mit Präfix .vl- */

/* ---------- Kopf und Reiter ---------- */
.vl-seite { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vl-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.vl-kopf .head-icon { width: 36px; height: 36px; border-radius: 10px; }
.vl-kopf .head-icon svg.i { width: 19px; height: 19px; }
.vl-titel { flex: 1 1 240px; min-width: 0; }
.vl-titel h2 { font-size: 20px; margin: 0; }
.vl-titel .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.vl-wer { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; max-width: 100%; }
.vl-wer:empty { display: none; }
.vl-wer-wahl { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; }
.vl-wer-wahl select { height: 36px; padding-top: 0; padding-bottom: 0; min-width: 0; max-width: 240px; }
.vl-reiter { width: fit-content; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.vl-reiter .fc { flex: none; }
.vl-reiter .fc svg.i { width: 15px; height: 15px; }
.vl-inhalt { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vl-laedt { padding: 18px 4px; }

/* ---------- Heute: Tageswahl, Kacheln, Zeitachse ---------- */
.vl-tagwahl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vl-tagwahl .btn.icon { border: 1px solid var(--line); }
.vl-datum { font-size: 15px; padding: 0 4px; min-width: 0; }
.vl-datumfeld { height: 34px; padding: 0 10px; font-size: 13px; margin-left: auto; }
.vl-kacheln { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.vl-kachel { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--flaeche-2);
  color: inherit; text-decoration: none; }
a.vl-kachel:hover { border-color: var(--line-3); }
a.vl-kachel .vl-k-titel::after { content: " \203A"; }
.vl-k-titel { font-size: 12.5px; color: var(--muted); }
.vl-kachel b { font-size: 24px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vl-kachel small { font-size: 11.5px; color: var(--muted-2); }

.vl-zeitachse { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vl-eintrag { position: relative; display: grid; grid-template-columns: 52px 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.vl-eintrag:last-child { border-bottom: 0; }
.vl-zeit { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 5px; }
.vl-sym { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche-3); color: var(--muted); }
.vl-sym svg.i { width: 15px; height: 15px; }
.vl-art-anruf .vl-sym { background: var(--ok-bg); color: var(--ok-tx); }
/* Kurzprofil wie das Etikett „Schon gesendet am“ (info), Markenrot bleibt sparsam */
.vl-art-kurzprofil .vl-sym { background: var(--info-bg); color: var(--info-tx); }
.vl-art-aufgabe .vl-sym, .vl-art-termin .vl-sym { background: var(--warn-bg); color: var(--warn-tx); }
.vl-art-kandidat .vl-sym { background: var(--neu-bg); color: var(--text); }
.vl-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-top: 4px; }
.vl-z1 { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; min-width: 0; }
.vl-was { font-weight: 650; }
.vl-z1 .tag { margin: 0; }
.vl-firma { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; font-weight: 600; text-decoration: none; }
.vl-firma span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-firma:hover span { text-decoration: underline; text-decoration-color: var(--ak-ln); }
.vl-seite .flogo.vl-xs { width: 22px; height: 22px; border-radius: 6px; font-size: 9px; }
.vl-an { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-kand { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.vl-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12.5px; text-decoration: none;
  background: var(--flaeche-3); border: 1px solid var(--line); color: var(--text); }
.vl-chip svg.i { width: 13px; height: 13px; color: var(--muted); }
.vl-chip:hover { border-color: var(--line-3); }
.vl-weitere { align-self: center; font-size: 12.5px; color: var(--muted); padding: 0 4px; }
.vl-anzahl { font-size: 12.5px; color: var(--muted); }
.vl-notiz { margin: 0; font-size: 13px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.vl-berater { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted-2); }
.vl-berater svg.i { width: 13px; height: 13px; }

/* ---------- Kurzprofile: Filter, Kopfzahl, Versände ---------- */
.vl-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vl-vonbis { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.vl-vonbis summary { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; list-style: none; color: var(--muted); }
.vl-vonbis summary::-webkit-details-marker { display: none; }
.vl-vonbis summary svg.i { width: 14px; height: 14px; }
.vl-vonbis[open] { flex-wrap: wrap; }
.vl-vonbis[open] summary { color: var(--text); border-color: var(--line-strong); }
.vl-vonbis label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 6px 6px 0 0; color: var(--muted); }
.vl-vonbis input { height: 34px; padding: 0 8px; font-size: 13px; }
.vl-suche { position: relative; flex: 1 1 200px; min-width: 0; max-width: 300px; }
.vl-suche input { height: 36px; padding-top: 0; padding-bottom: 0; }
.vl-vorschlaege { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 300px; overflow: auto; background: var(--glas-voll);
  border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--sch-2); }
.vl-vorschlaege button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 8px 12px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.vl-vorschlaege button:hover, .vl-vorschlaege button:focus-visible { background: var(--hover); }
.vl-vorschlaege small { color: var(--muted); font-size: 12px; }
.vl-keine { padding: 10px 12px; color: var(--muted); font-size: 13px; }
.vl-filterchip { display: inline-flex; align-items: center; gap: 6px; height: 36px; max-width: 100%; padding: 0 6px 0 12px; border-radius: 999px; font-size: 13px;
  background: var(--ak-bg); border: 1px solid var(--ak-ln); color: var(--text); }
.vl-x { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.vl-x:hover { background: var(--hover); color: var(--text); }
.vl-x svg.i { width: 14px; height: 14px; }
.vl-kopfzahl { margin: 0; font-size: 14px; }

.vl-versaende { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vl-versand { display: grid; grid-template-columns: 92px minmax(180px, 260px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--flaeche-2); cursor: pointer; transition: border-color .15s; }
.vl-versand:hover { border-color: var(--line-strong); }
.vl-v-zeit { display: flex; flex-direction: column; gap: 1px; font-variant-numeric: tabular-nums; }
.vl-v-zeit b { font-size: 13px; font-weight: 600; }
.vl-v-zeit span { font-size: 12px; color: var(--muted); }
.vl-v-firma { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.vl-v-firma > span { display: flex; flex-direction: column; min-width: 0; }
.vl-v-firma b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-v-firma small { font-size: 12px; color: var(--muted); }
.vl-v-firma:hover b { text-decoration: underline; text-decoration-color: var(--ak-ln); }
.vl-v-mitte { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.vl-v-z1 { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; min-width: 0; }
.vl-v-z1 .tag { margin: 0; }
.vl-betreff { font-size: 12.5px; color: var(--muted-2); min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-v-beilagen { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
.vl-anhang { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--muted); text-decoration: none; }
.vl-anhang svg.i { width: 13px; height: 13px; flex: none; }
.vl-anhang:hover { color: var(--text); text-decoration: underline; }
.vl-mehr { align-self: center; margin-top: 4px; }
#vl-mehr { display: flex; justify-content: center; }

/* ---------- Alle Aktivitäten ---------- */
.vl-tabelle { max-height: 70vh; }
.vl-was-zelle { display: inline-flex; align-items: center; gap: 6px; }
.vl-was-zelle svg.i { width: 14px; height: 14px; color: var(--muted); }
.vl-tabelle td.vl-notizzelle { max-width: 380px; overflow: hidden; text-overflow: ellipsis; }
.vl-tabelle tr[data-href] { cursor: pointer; }

/* ---------- Leer ---------- */
.vl-leer { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 16px; text-align: center; color: var(--muted); }
.vl-leer svg.i { width: 28px; height: 28px; opacity: .7; }
.vl-leer p { margin: 0; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1100px) {
  .vl-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vl-versand { grid-template-columns: 84px minmax(0, 1fr); }
  .vl-v-mitte, .vl-versand > .vl-berater { grid-column: 2; }
}
@media (max-width: 760px) {
  .vl-kopf { gap: 10px; }
  .vl-wer { margin-left: 0; width: 100%; }
  .vl-wer-wahl { width: 100%; }
  .vl-wer-wahl select { flex: 1 1 auto; max-width: none; }
  .vl-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vl-kachel:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .vl-reiter { width: 100%; }
  .vl-reiter .fc { flex: 1 1 auto; justify-content: center; padding: 0 8px; }
  .vl-reiter .fc svg.i { display: none; }
  .vl-kachel { padding: 10px 12px; }
  .vl-kachel b { font-size: 20px; }
  .vl-datum { flex: 1 1 auto; font-size: 14px; }
  .vl-datumfeld { margin-left: 0; }
  .vl-eintrag { grid-template-columns: 42px minmax(0, 1fr); gap: 8px; }
  .vl-sym { display: none; }
  .vl-filter .wahl { width: 100%; display: flex; }
  .vl-filter .wahl button { flex: 1 1 0; padding: 0 6px; }
  .vl-suche { flex: 1 1 100%; max-width: none; }
  .vl-versand { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 12px; }
  .vl-v-zeit { flex-direction: row; gap: 8px; }
  .vl-v-mitte, .vl-versand > .vl-berater { grid-column: auto; }
  /* Alle Aktivitäten: Zeilen als ruhige Blöcke statt breiter Tabelle */
  .vl-tabelle { max-height: none; overflow: visible; }
  .vl-tabelle table, .vl-tabelle tbody { display: block; }
  .vl-tabelle thead { display: none; }
  .vl-tabelle tr { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
  .vl-tabelle td { border: 0; padding: 0; white-space: normal; min-width: 0; }
  .vl-tabelle td:empty { display: none; }
  .vl-tabelle td:first-child { width: 100%; font-size: 12px; color: var(--muted); }
  .vl-tabelle td.vl-notizzelle { width: 100%; max-width: none; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
}
