/* Kunden-Highlight: Karte mit Kundenvideo, Kennzahl im Farbverlauf, Text und Personenzeile.
   Hintergrund, Rand, Eckenradius, Schatten und die Farben der hervorgehobenen Karte setzen die Widget-Regler.
   Hier stehen Aufbau und Grundwerte; der Videorahmen kommt aus bausteine.css (.up-video). */

.up-highlight,
.up-highlight *,
.up-highlight *::before,
.up-highlight *::after { box-sizing: border-box; }

.up-highlight {
  --up-highlight-glow: rgb(0 183 209 / .1);
  --up-highlight-linie: rgb(255 255 255 / .05);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: 14px;
  font-family: Roboto, sans-serif;
  color: #c4cdd3;
  transition: border-color .3s ease, box-shadow .3s ease;
}
/* Leuchten oben links und feine Lichtkante oben: über dem Hintergrund, unter dem Inhalt */
.up-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(120% 60% at 0% 0%, var(--up-highlight-glow), transparent 55%);
  box-shadow: inset 0 1px 0 var(--up-highlight-linie);
  pointer-events: none;
}
.up-highlight.up-highlight--hervor,
.up-highlight.up-highlight--hover:hover { --up-highlight-linie: rgb(255 255 255 / .06); }

/* ---------- Video oben in der Karte ---------- */
.up-highlight .up-highlight__video {
  --up-video-format: 1 / 1;
  flex: none;
  margin-bottom: 8px;
}

/* ---------- Kennzahl mit Zusatz ---------- */
.up-highlight .up-highlight__kennzahl {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.up-highlight .up-highlight__zahl {
  font: 800 clamp(30px, 3vw, 42px) / 1.05 Roboto, sans-serif;
  letter-spacing: -.02em;
  background: linear-gradient(2deg, var(--up-highlight-verlauf-1, #000f29) 0%, var(--up-highlight-verlauf-2, #00b7d1) 55%, var(--up-highlight-verlauf-3, #4be3f5) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.up-highlight .up-highlight__zusatz {
  font: 500 13px / 1.4 Roboto, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8d99a3;
}

/* ---------- Text: füllt den Platz, damit die Personenzeile unten sitzt ---------- */
.up-highlight .up-highlight__text {
  flex-grow: 1;
  font-size: 15px;
  line-height: 1.6;
  color: #c4cdd3;
}
.up-highlight .up-highlight__text :is(p, ul, ol) {
  margin: 0 0 .75em;
  font: inherit;
  color: inherit;
}
.up-highlight .up-highlight__text > :last-child { margin-bottom: 0; }
.up-highlight .up-highlight__text a { color: #29daff; text-decoration: none; }
.up-highlight .up-highlight__text a:hover { text-decoration: underline; }

/* ---------- Personenzeile: Gesicht, Name und Rolle, Firmenlogo rechts ---------- */
.up-highlight .up-highlight__person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / .07);
}
/* Gesicht im Kreis mit Verlaufsring. Die Hülle trägt Größe und Ring; das Bild darin (auch in einem
   <picture>, wie es Bildoptimierer erzeugen) füllt sie. */
.up-highlight .up-highlight__gesicht {
  flex: none;
  display: block;
  width: 46px;
  height: 46px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--up-highlight-ring-1, rgb(0 183 209 / .9)), var(--up-highlight-ring-2, rgb(2 14 40 / .7)));
  overflow: hidden;
}
.up-highlight .up-highlight__gesicht picture { display: contents; }
.up-highlight .up-highlight__gesicht img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  object-fit: cover;
  object-position: 50% 25%;
}
/* Name und Rolle untereinander; schrumpft nicht unter die Breite des Namens */
.up-highlight .up-highlight__wer {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #8d99a3;
}
.up-highlight .up-highlight__name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.up-highlight .up-highlight__rolle { color: #8d99a3; }
/* Logo weicht bei Platzmangel, damit der Name in einer Zeile bleibt. Die Hülle trägt Höhe, Breitengrenze,
   Deckkraft und Silhouette; das Bild darin (auch in einem <picture>) passt sich ein. */
.up-highlight .up-highlight__logo {
  flex: 0 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  max-width: 34%;
  height: 34px;
  margin: 0 0 0 auto;
  opacity: .55;
}
.up-highlight .up-highlight__logo picture { display: contents; }
.up-highlight .up-highlight__logo img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: right center;
}
.up-highlight .up-highlight__logo--weiss { filter: brightness(0) invert(1); }

@media (prefers-reduced-motion: reduce) {
  .up-highlight { transition: none; }
}
