/* Entwurf "Kugel aus Bits": Legende unter der Kugel mit denselben Marken wie an den Fadenenden
   (Software: eckig mit Rand und Symbol, Menschen: rund und gefuellt mit Person). Ueber einer Marke
   treten die passenden Ziele hervor (data-group an .hsph, gesetzt von hero-sphere-bits.js).
   Laedt nach hero-sphere.css. */

.hsph__legend .hsph__key {
    gap: .4375rem;
    padding: .125rem .5rem .125rem .1875rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .25s;
}

.hsph__legend .hsph__key:hover,
.hsph[data-group="soft"] .hsph__key[data-kind="soft"],
.hsph[data-group="user"] .hsph__key[data-kind="user"],
.hsph[data-hover="soft"] .hsph__key[data-kind="soft"],
.hsph[data-hover="user"] .hsph__key[data-kind="user"] {
    background: color-mix(in srgb, var(--c) 14%, transparent);
}

/* Zeiger ueber einem Ziel auf der Kugel: die passende Marke der Legende fuellt sich, die andere tritt zurueck */
.hsph__legend .hsph__key { transition: background-color .25s, opacity .25s; }
.hsph__legend .hsph__key i { transition: background-color .25s, color .25s; }

.hsph[data-hover="soft"] .hsph__key[data-kind="soft"] i,
.hsph[data-hover="user"] .hsph__key[data-kind="user"] i,
.hsph[data-group="soft"] .hsph__key[data-kind="soft"] i {
    color: #fff;
    background: var(--c);
}

.hsph[data-hover="soft"] .hsph__key[data-kind="user"],
.hsph[data-hover="user"] .hsph__key[data-kind="soft"] {
    opacity: .4;
}

.hsph__legend .hsph__key i {
    display: grid;
    place-items: center;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: .4rem;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 14%, var(--bg));
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent);
}

.hsph__legend .hsph__key--user i {
    border-radius: 50%;
    color: #fff;
    background: var(--c);
    box-shadow: none;
}

.hsph__legend .hsph__key svg {
    width: .8125rem;
    height: .8125rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hsph.is-mono .hsph__legend .hsph__key i {
    color: var(--text-muted);
    background: color-mix(in srgb, var(--text) 7%, var(--bg));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 16%, transparent);
}

.hsph.is-mono .hsph__legend .hsph__key--user i {
    color: var(--bg);
    background: var(--text-muted);
    box-shadow: none;
}

/* hervorgehobene Gruppe: ihre Marken an den Fadenenden fuellen sich */
.hsph[data-group="soft"] .hsph__l:not(.hsph__l--user) i,
.hsph[data-group="user"] .hsph__l--user i {
    color: #fff;
    background: var(--c);
}

/* Die Zeile als Reihe aus vier Teilen: Einleitung, Marke, "mit", Marke. Am Handy steht die
   Einleitung allein in der ersten Zeile, das Paar "Deine Software mit Deinem Team" bleibt zusammen. */
.hsph__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .125rem .25rem;
}

.hsph__legend .hsph__lead {
    display: inline;
    margin: 0;
    color: inherit;
    font-weight: inherit;
}

.hsph__legend .hsph__key { margin-inline: 0; }

@media (max-width: 52rem) {
    .hsph__legend { font-size: .8125rem; }
    .hsph__legend .hsph__lead:first-child { flex: 0 0 100%; }
    .hsph__legend .hsph__key { padding-right: .375rem; }
}

/* sehr schmale Handys: etwas kleiner, damit das Paar in einer Zeile bleibt */
@media (max-width: 24rem) {
    .hsph__legend { font-size: .75rem; gap: .125rem .125rem; }
    .hsph__legend .hsph__key { gap: .3125rem; padding: .125rem .25rem .125rem .125rem; }
    .hsph__legend .hsph__key i { width: 1.1875rem; height: 1.1875rem; }
    .hsph__legend .hsph__key svg { width: .6875rem; height: .6875rem; }
}
