/*
 * Kompass (acf/lg-kompass): Kennzahl in der Mitte, Optionen auf dem Ring.
 * Nach Gregs authority-compass auf den Entscheidungsseiten, in den Farben
 * der Website. Gedacht fuer dunklen Grund (Kopfbereich); Variante fuer
 * hellen Grund am Ende.
 */
.lg-kompass {
  position: relative;
  box-sizing: border-box;
  width: min(440px, 100%);
  aspect-ratio: 1;
  margin-left: auto;
  border: 1px solid rgba(240, 186, 87, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 186, 87, 0.1), transparent 52%);
}

.lg-kompass::before,
.lg-kompass::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px dashed rgba(233, 230, 220, 0.22);
  border-radius: 50%;
}

.lg-kompass::after {
  inset: 33%;
  border-style: solid;
  border-color: rgba(240, 186, 87, 0.32);
}

.lg-kompass__kern {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
  width: 38%;
  aspect-ratio: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 186, 87, 0.7);
  border-radius: 50%;
  background: rgba(21, 21, 21, 0.92);
  text-align: center;
  transform: translate(-50%, -50%);
}

.lg-kompass__kern strong {
  color: var(--wp--preset--color--light-gold, #f0ba57);
  font-family: var(--wp--preset--font-family--indivisible, inherit);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.lg-kompass__kern span {
  margin-top: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.lg-kompass__knoten {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  background: rgba(21, 21, 21, 0.86);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.lg-kompass__knoten--1 { left: 50%; top: 3%; transform: translateX(-50%); }
.lg-kompass__knoten--2 { right: -4%; top: 31%; }
.lg-kompass__knoten--3 { right: 4%; bottom: 12%; }
.lg-kompass__knoten--4 { left: -5%; bottom: 15%; }
.lg-kompass__knoten--5 { left: -7%; top: 27%; }

@media (max-width: 781px) {
  .lg-kompass {
    width: min(360px, 82vw);
    margin: 28px auto 0;
  }

  .lg-kompass__knoten {
    padding: 6px 9px;
    font-size: 11px;
  }
}

/* Auf hellem Grund (Ivory, Weiss), etwa "Why LeapGreat" auf der Startseite:
   Ringe dunkler, Kern und Knoten bleiben dunkel. */
:is(.has-base-background-color, .has-white-background-color) .lg-kompass {
  border-color: rgba(150, 100, 18, 0.45);
  background: radial-gradient(circle, rgba(214, 154, 45, 0.12), transparent 52%);
}

:is(.has-base-background-color, .has-white-background-color) .lg-kompass::before {
  border-color: rgba(21, 21, 21, 0.2);
}

:is(.has-base-background-color, .has-white-background-color) .lg-kompass::after {
  border-color: rgba(150, 100, 18, 0.4);
}
