/* Ziele im Call (goals.js, NEUE-UI Increment 2, Variante B): Ziel-Leiste links, Chips (Handy), Ziel-Überschriften in den
   Panels, "Ziel zuordnen", "+ Neues Ziel". Nur vorhandene Tokens (--vh-btn-*, Akzent --vh-pan-acc = Stilfarbe, LILA #8f7bff
   im Standard); Optik der NEUE-UI V2 unverändert, nur die Gruppierung ist neu. Nichts davon erscheint ohne Beta-Schalter. */

/* Ziel-Überschrift in jedem Panel */
.vh-gh { display: flex; align-items: center; gap: 6px; margin: 8px 0 2px; padding: 3px 0 3px 7px; min-width: 0;
  border-left: 3px solid var(--vh-pan-acc); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--vh-pan-acc); }
.vh-opp-body > .vh-gh:first-child, .vh-cards-list > .vh-gh:first-child { margin-top: 0; }
.vh-gh-n { flex: none; font-size: 9.5px; letter-spacing: .08em; }
.vh-gh-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0;
  font-weight: 600; font-size: 11px; color: var(--vh-btn-fg-hov); }
.vh-gh.ng { border-left-style: dashed; border-left-color: var(--vh-btn-fg); color: var(--vh-btn-fg); opacity: .8; }
.vh-gh.fin { opacity: .65; }
.vh-gl-who { font-weight: 600; color: var(--vh-sec-ink-1, var(--vh-pan-acc)); }
.vh-gh + .vh-dec-list { padding-left: 10px; }

/* "Ziel zuordnen" */
.vh-gassign { appearance: none; display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; min-height: 26px; padding: 2px 10px;
  border-radius: 999px; font: inherit; font-size: 10.5px; color: var(--vh-pan-acc); background: none; cursor: pointer;
  border: 1px dashed color-mix(in srgb, var(--vh-pan-acc) 60%, transparent); }
.vh-gassign:hover, .vh-gassign[aria-expanded="true"] { background: color-mix(in srgb, var(--vh-pan-acc) 14%, transparent); }
.vh-gassign:focus-visible, .vh-gi:focus-visible, .vh-gnew:focus-visible, .vh-gchip:focus-visible, .vh-gmenu-i:focus-visible { outline: 2px solid var(--vh-pan-acc); outline-offset: 1px; }
.vh-gmenu { position: fixed; z-index: 90; min-width: 180px; max-width: min(320px, calc(100vw - 16px)); max-height: 50vh; overflow-y: auto; padding: 4px;
  border-radius: 10px; background: rgba(14,16,22,0.96); border: 1px solid color-mix(in srgb, var(--vh-pan-acc) 35%, transparent);
  font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--vh-btn-fg-hov); backdrop-filter: var(--vh-btn-blur); -webkit-backdrop-filter: var(--vh-btn-blur); }
body.theme-light .vh-gmenu { background: rgba(250,250,252,0.97); border-color: rgba(0,0,0,0.16); }
.vh-gmenu-i { appearance: none; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 4px 8px; border: 0; border-radius: 8px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.vh-gmenu-i:hover { background: color-mix(in srgb, var(--vh-pan-acc) 14%, transparent); }
.vh-gmenu-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.vh-phone .vh-gassign { min-height: 40px; font-size: 13px; padding: 4px 14px; }
html.vh-phone .vh-gmenu { font-size: 13px; }
html.vh-phone .vh-gmenu-i { min-height: 44px; }

/* Ziel-Leiste links (Laptop): ein Panel im Muster der anderen */
.vh-goal-rail { position: fixed; z-index: 38; left: 18px; top: 62px; width: 214px; display: flex; flex-direction: column; }
.vh-goal-rail > .vh-opp-hd { flex: none; }
.vh-goal-rail > .vh-opp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.vh-goal-rail.vh-gfail, .vh-gchips.vh-gfail { box-shadow: inset 0 0 0 1px var(--vh-warm, #f2a65a); }
.vh-gi { appearance: none; display: flex; gap: 8px; align-items: flex-start; width: 100%; padding: 7px 6px; border-radius: 8px; border: 1px solid transparent;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.vh-gi + .vh-gi { margin-top: 3px; }
.vh-gi:hover { background: var(--vh-btn-bg-hover); }
.vh-gi.on { border-color: var(--vh-pan-acc); background: color-mix(in srgb, var(--vh-pan-acc) 14%, transparent); }
.vh-gi.fin { opacity: .65; }
.vh-gi.ng { border: 1px dashed var(--vh-btn-border); margin-top: 8px; }
.vh-gi.ng.on { border-color: var(--vh-pan-acc); }
.vh-gn { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600;
  color: var(--vh-pan-acc); border: 1px solid color-mix(in srgb, var(--vh-pan-acc) 50%, transparent); }
.vh-gi.ng .vh-gn { border-style: dashed; }
.vh-gx { flex: 1; min-width: 0; }
.vh-goal-t { font-weight: 600; font-size: 11.5px; line-height: 1.3; overflow-wrap: anywhere; }
.vh-gi.ng .vh-goal-t { opacity: .75; }
.vh-goal-dw { font-size: 10px; opacity: .6; margin-top: 1px; overflow-wrap: anywhere; }
.vh-gmeta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 3px; }
.vh-gcnt { display: inline-flex; align-items: center; height: 16px; padding: 0 6px; border-radius: 8px; font-size: 9.5px; white-space: nowrap;
  color: var(--vh-pan-acc); border: 1px solid color-mix(in srgb, var(--vh-pan-acc) 40%, transparent); }
.vh-gcnt.q { background: color-mix(in srgb, var(--vh-pan-acc) 16%, transparent); border-color: var(--vh-pan-acc); }

/* "+ Neues Ziel": ein Feld Titel, optional "fertig wenn" */
.vh-gnew { appearance: none; display: inline-flex; align-items: center; margin-top: 10px; min-height: 26px; padding: 2px 10px; border-radius: 999px;
  font: inherit; font-size: 10.5px; color: var(--vh-pan-acc); background: none; cursor: pointer;
  border: 1px dashed color-mix(in srgb, var(--vh-pan-acc) 60%, transparent); }
.vh-gnew:hover { background: color-mix(in srgb, var(--vh-pan-acc) 14%, transparent); }
.vh-gnewf { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.vh-gin { box-sizing: border-box; width: 100%; min-height: 30px; padding: 4px 9px; border-radius: 8px; font: inherit; font-size: 11.5px; color: inherit;
  background: transparent; border: 1px solid color-mix(in srgb, var(--vh-pan-acc) 50%, transparent); }
.vh-gin::placeholder { color: inherit; opacity: .5; }
.vh-gin:focus { outline: none; border-color: var(--vh-pan-acc); box-shadow: 0 0 0 1px var(--vh-pan-acc); }
.vh-gin-dw { border-color: var(--vh-btn-border); font-size: 10.5px; }
.vh-gin-ok[hidden] { display: none; }

/* Chips (Handy und schmales Fenster) */
.vh-gchips { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 50vh; }
.vh-gchips[hidden] { display: none; }
.vh-gchips-row { display: flex; gap: 6px; overflow-x: auto; padding: 2px 12px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vh-gchips-row::-webkit-scrollbar { display: none; }
.vh-gchip { appearance: none; flex: none; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 999px; font: inherit;
  font-size: 12px; white-space: nowrap; cursor: pointer; background: rgba(14,16,22,0.90); border: 1px solid var(--vh-btn-border); color: var(--vh-btn-fg);
  backdrop-filter: var(--vh-btn-blur); -webkit-backdrop-filter: var(--vh-btn-blur); }
body.theme-light .vh-gchip { background: rgba(250,250,252,0.94); border-color: rgba(0,0,0,0.14); }
.vh-gchip b { color: var(--vh-pan-acc); font-weight: 600; }
.vh-gchip.on { border-color: var(--vh-pan-acc); color: var(--vh-btn-fg-hov); background: color-mix(in srgb, var(--vh-pan-acc) 18%, rgba(14,16,22,0.90)); }
body.theme-light .vh-gchip.on { background: color-mix(in srgb, var(--vh-pan-acc) 18%, rgba(250,250,252,0.94)); }
.vh-gchip.ng { border-style: dashed; }
.vh-gchip.fin { opacity: .65; }
.vh-gchip-new { border-style: dashed; color: var(--vh-pan-acc); width: 34px; padding: 0; justify-content: center; }
.vh-gct { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.vh-gcq { min-width: 15px; height: 15px; border-radius: 999px; background: var(--vh-pan-acc); color: var(--vh-bg-0); font: 600 9.5px/15px ui-monospace, Menlo, monospace;
  text-align: center; padding: 0 3px; box-sizing: border-box; }
body.theme-light .vh-gcq { color: #fff; }
.vh-gchips .vh-gnewf { margin: 6px 12px 0; padding: 8px; border-radius: 12px; background: rgba(14,16,22,0.96); border: 1px solid color-mix(in srgb, var(--vh-pan-acc) 35%, transparent); }
body.theme-light .vh-gchips .vh-gnewf { background: rgba(250,250,252,0.97); border-color: rgba(0,0,0,0.16); }
html.vh-phone .vh-gin { min-height: 40px; font-size: 13px; }
html.vh-phone .vh-gh { margin-top: 10px; }
html.vh-phone .vh-gh-t { font-size: 14px; }
html.vh-phone .vh-gh, html.vh-phone .vh-gh-n { font-size: 10.5px; }
html.vh-phone .vh-gh-t { white-space: normal; overflow-wrap: anywhere; }

/* Leitsterne: schmale Lese-Leiste unter der Kopfzeile (goals.js renderLeit), gleiche Chips, nur lesen */
.vh-leit { z-index: 37; pointer-events: none; }
.vh-leit .vh-gchips-row { justify-content: center; }
.vh-leit .vh-gchip, .vh-leit-pin { pointer-events: auto; }
.vh-leit-ttl { flex: none; align-self: center; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; padding-right: 2px; }
.vh-leit-i { cursor: default; height: 30px; }
.vh-leit-i .vh-gct { max-width: 220px; }
.vh-leit-pin { appearance: none; border: 0; background: none; padding: 0 0 0 2px; margin-right: -4px; font-size: 12px; line-height: 1; cursor: pointer;
  filter: grayscale(1); opacity: .45; }
.vh-leit-pin[aria-pressed="true"] { filter: none; opacity: 1; }
.vh-leit-pin:hover { opacity: .9; }
.vh-leit-pin:focus-visible { outline: 2px solid var(--vh-pan-acc); outline-offset: 1px; border-radius: 4px; }
html.vh-phone .vh-leit .vh-gchips-row { justify-content: flex-start; }
html.vh-phone .vh-leit-i .vh-gct { max-width: 140px; }
html.vh-phone .vh-leit-pin { font-size: 14px; padding: 6px 4px 6px 6px; }
