/* ==========================================================================
   kyb-sk-soc — Baustein „Security Support-Center" (Sicherheitskonzept)
   Kopf: Überschrift + Einleitung neben einer Bildkarte in der Bildbehandlung
   des Seitenkopfs (Neon-Verlauf, Bild als Luminanz, Abdunkler), darin ein
   ruhiger Monitoring-Puls und eine Messlinie.
   Mitte: die Vorteile in Gruppen als Spalten mit Hairlines und feinen Markern.
   Schluss: Kernaussage als Statement auf abgesetzter Fläche.

   Bewegung nur, wenn kyb-sk-soc.js die Klasse .kyb-sksoc--anim setzt. Puls
   und Lichtpunkt laufen rein per CSS und stehen bei reduzierter Bewegung
   still. Ohne JS ist alles sofort sichtbar.
   ========================================================================== */

.kyb-sksoc {
  --sksoc-grund: var(--kyb-stage);
  --sksoc-marker: rgba(15, 255, 155, .9);
  position: relative;
}
.kyb-sksoc.k-set--stage_2 { --sksoc-grund: var(--kyb-stage-2); }
.kyb-sksoc.k-set--surface { --sksoc-grund: var(--kyb-surface); }

/* --- Kopf --------------------------------------------------------------- */
.kyb-sksoc__kopf {
  display: grid;
  gap: var(--s6);
  align-items: stretch;
}
@media (min-width: 1000px) {
  .kyb-sksoc__kopf {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    column-gap: clamp(var(--s7), 6vw, var(--s9));
  }
}

.kyb-sksoc__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kyb-sksoc__intro .kyb-kicker { margin-bottom: var(--s2); }
/* Kurze Neon-Regel als Auftakt — trägt den Kopf auch ohne Kicker. */
.kyb-sksoc__intro::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: var(--s4);
  border-radius: 2px;
  background: var(--kyb-grad);
}
.kyb-sksoc__intro:has(.kyb-kicker)::before { display: none; }

.kyb-sksoc__h {
  max-width: 16ch;
  color: var(--kyb-white);
  font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.kyb-sksoc__h .kyb-neon { font-weight: 600; letter-spacing: -.03em; }

.kyb-sksoc__lead {
  margin-top: var(--s4);
  max-width: 60ch;
  color: var(--kyb-text-2);
  font-size: clamp(1.02rem, 1.25vw, 1.12rem);
  line-height: 1.65;
  text-wrap: pretty;
}

/* --- Bildkarte ------------------------------------------------------------
   Schichtung wie .k-leit: Neon-Verlauf, Bild als Luminanz, Abdunkler. */
.kyb-sksoc__bild {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  min-height: 360px;
  border-radius: var(--r-4);
  background: var(--kyb-grad);
  box-shadow: var(--kante-oben);
}
.kyb-sksoc__bild::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--sksoc-bild);
  background-size: cover;
  background-position: 30% center;
  mix-blend-mode: luminosity;
  transform: scale(1.02);
  transition: transform 2.4s cubic-bezier(.2, .7, .2, 1);
}
.kyb-sksoc__bild::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .16) 32%, rgba(0, 0, 0, .2) 58%, rgba(0, 0, 0, .7) 100%);
}
.kyb-sksoc__bild:hover::before { transform: scale(1.05); }
/* Punktraster wie ein Leitstand-Bildschirm, nach unten ausgeblendet */
.kyb-sksoc__bild-grund {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.3px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 45%);
          mask-image: linear-gradient(180deg, #000, transparent 45%);
  pointer-events: none;
}
@media (max-width: 999px) {
  .kyb-sksoc__bild { aspect-ratio: 16 / 10; min-height: 0; }
}
@media (max-width: 599px) {
  .kyb-sksoc__bild { aspect-ratio: 4 / 3; }
}

/* Status oben links: Punkt mit ruhigem Puls */
.kyb-sksoc__status {
  position: absolute;
  z-index: 2;
  top: var(--s4);
  left: var(--s4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-pill);
  background: rgba(14, 15, 20, .55);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
}
.kyb-sksoc__puls {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kyb-neon);
  box-shadow: 0 0 10px rgba(15, 255, 155, .55);
}
.kyb-sksoc__puls::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--kyb-neon);
  opacity: 0;
  animation: kybSksocPuls 3.6s cubic-bezier(.2, .6, .3, 1) infinite;
}

/* Messlinie unten in der Bildkarte */
.kyb-sksoc__spur {
  position: absolute;
  z-index: 2;
  left: var(--s4);
  right: var(--s4);
  bottom: var(--s4);
  width: calc(100% - 2 * var(--s4));
  height: 48px;
  overflow: visible;
}
.kyb-sksoc__spur path,
.kyb-sksoc__linie path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.kyb-sksoc__spur-basis { stroke: rgba(255, 255, 255, .5); stroke-width: 1.2; }
.kyb-sksoc__spur-licht,
.kyb-sksoc__linie-licht {
  stroke: var(--kyb-neon);
  stroke-width: 2;
  stroke-dasharray: 7 93;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px rgba(15, 255, 155, .7));
  animation: kybSksocLauf 9s linear infinite;
}

/* --- Vorteile ----------------------------------------------------------- */
.kyb-sksoc__vorteile { margin-top: clamp(var(--s7), 7vw, var(--s9)); }

.kyb-sksoc__vt {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s5);
  color: var(--kyb-white);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -.016em;
}
.kyb-sksoc__vt::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--kyb-line-strong), transparent);
}

.kyb-sksoc__gruppen {
  display: grid;
  gap: var(--s5);
}
@media (min-width: 760px) {
  .kyb-sksoc__gruppen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
}
@media (min-width: 1000px) {
  .kyb-sksoc--g3 .kyb-sksoc__gruppen,
  .kyb-sksoc--g6 .kyb-sksoc__gruppen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kyb-sksoc--g4 .kyb-sksoc__gruppen { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kyb-sksoc--g1 .kyb-sksoc__gruppen { grid-template-columns: minmax(0, 1fr); }
}

.kyb-sksoc__gruppe {
  position: relative;
  padding: var(--s5) var(--s5) var(--s4);
  border-radius: var(--r-3);
  background-color: rgba(255, 255, 255, .02);
  background-image: var(--g-karte);
  box-shadow: var(--kante-oben), inset 0 0 0 1px var(--kyb-line);
  transition: box-shadow 1.1s ease, background-image 1.1s ease;
}
/* Neon-Kante oben: wächst beim Einblenden und beim Überfahren */
.kyb-sksoc__gruppe::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--s5);
  width: 44px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--kyb-grad);
  transform-origin: 0 50%;
  transition: width 1.2s cubic-bezier(.2, .7, .2, 1);
}
.kyb-sksoc__gruppe:hover {
  background-image: var(--g-karte-hover);
  box-shadow: var(--kante-oben), inset 0 0 0 1px rgba(15, 255, 155, .22);
}
.kyb-sksoc__gruppe:hover::before { width: calc(100% - 2 * var(--s5)); }

.kyb-sksoc__gkopf {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding-bottom: var(--s3);
}
.kyb-sksoc__nr {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--kyb-neon);
}
.kyb-sksoc__gt {
  color: var(--kyb-white);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -.016em;
}

.kyb-sksoc__punkte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.kyb-sksoc__punkte li {
  position: relative;
  padding: var(--s3) 0 var(--s3) 26px;
  border-top: 1px solid var(--kyb-line);
  color: var(--kyb-text-2);
  font-size: 1rem;
  line-height: 1.5;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 12 5 5;
  transition: color .8s ease;
}
/* Feiner Marker: kleines Quadrat mit Neon-Kern */
.kyb-sksoc__punkte li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--s3) + .75em);
  width: 9px;
  height: 9px;
  border: 1px solid rgba(15, 255, 155, .55);
  border-radius: 2px;
  transform: translateY(-50%);
}
.kyb-sksoc__punkte li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(var(--s3) + .75em);
  width: 3px;
  height: 3px;
  border-radius: 1px;
  background: var(--sksoc-marker);
  transform: translateY(-50%);
  transition: box-shadow .8s ease;
}
.kyb-sksoc__punkte li:hover { color: var(--kyb-text); }
.kyb-sksoc__punkte li:hover::after { box-shadow: 0 0 8px rgba(15, 255, 155, .9); }

/* --- Statement ---------------------------------------------------------- */
.kyb-sksoc__statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(var(--s6), 5vw, var(--s8));
  padding: clamp(var(--s5), 5vw, var(--s8)) clamp(var(--s4), 5vw, var(--s8)) clamp(var(--s7), 6.5vw, 100px);
  border-radius: var(--r-4);
  background-color: var(--kyb-stage-2);
  background-image: var(--g-akzent);
  box-shadow: var(--kante-oben), inset 0 0 0 1px var(--kyb-line);
}
.kyb-sksoc__statement::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(var(--s5), 5vw, var(--s8));
  width: 3px;
  height: 64px;
  border-radius: 0 3px 3px 0;
  background: var(--kyb-grad);
}
.kyb-sksoc__st {
  max-width: 26ch;
  color: var(--kyb-white);
  font-weight: 300;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.kyb-sksoc__st .kyb-neon { font-weight: 600; }
.kyb-sksoc__sx {
  margin-top: var(--s4);
  max-width: 64ch;
  color: var(--kyb-text-2);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.65;
  text-wrap: pretty;
}
@media (min-width: 1000px) {
  .kyb-sksoc__statement {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    column-gap: clamp(var(--s6), 5vw, var(--s8));
    align-items: end;
  }
  .kyb-sksoc__sx { margin-top: 0; padding-left: var(--s4); border-left: 1px solid var(--kyb-line-strong); }
  .kyb-sksoc__st { max-width: none; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .kyb-sksoc__gruppe { padding: var(--s4) var(--s4) var(--s3); }
  .kyb-sksoc__gruppe::before { left: var(--s4); }
  .kyb-sksoc__gruppe:hover::before { width: calc(100% - 2 * var(--s4)); }
}
.kyb-sksoc__linie {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: clamp(var(--s3), 2.4vw, var(--s5));
  width: 100%;
  height: 40px;
  overflow: visible;
}
.kyb-sksoc__linie-basis { stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.kyb-sksoc__linie-licht { animation-duration: 14s; stroke-dasharray: 5 95; stroke-width: 1.6; }

@media (max-width: 599px) {
  .kyb-sksoc__h { font-size: clamp(1.9rem, 8.6vw, 2.4rem); }
  .kyb-sksoc__gruppe { padding: var(--s4) var(--s4) var(--s3); }
  .kyb-sksoc__gruppe::before { left: var(--s4); }
  .kyb-sksoc__status { top: var(--s3); left: var(--s3); font-size: .64rem; letter-spacing: .12em; }
  .kyb-sksoc__spur { left: var(--s3); right: var(--s3); bottom: var(--s3); width: calc(100% - 2 * var(--s3)); height: 36px; }
  .kyb-sksoc__statement::before { height: 44px; }
  .kyb-sksoc__lead, .kyb-sksoc__sx { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 12 5 5; }
}

/* --- Einblenden (nur mit JS) ------------------------------------------- */
.kyb-sksoc--anim [data-sksoc-reveal] { opacity: 0; }
.kyb-sksoc--anim [data-sksoc-reveal].is-in {
  opacity: 1;
  animation: kybSksocRein 1.2s cubic-bezier(.2, .7, .2, 1) backwards;
  animation-delay: calc(var(--d, 0) * 180ms);
}
.kyb-sksoc--anim .kyb-sksoc__gruppe[data-sksoc-reveal]::before { width: 0; }
.kyb-sksoc--anim .kyb-sksoc__gruppe.is-in::before {
  width: 44px;
  transition-delay: calc(var(--d, 0) * 180ms + .5s);
}
.kyb-sksoc--anim .kyb-sksoc__gruppe.is-in:hover::before { width: calc(100% - 2 * var(--s5)); transition-delay: 0s; }
.kyb-sksoc--anim .is-in .kyb-sksoc__punkte li {
  animation: kybSksocRein 1s cubic-bezier(.2, .7, .2, 1) backwards;
  animation-delay: calc(var(--d, 0) * 180ms + .35s);
}
.kyb-sksoc--anim .is-in .kyb-sksoc__punkte li:nth-child(2) { animation-delay: calc(var(--d, 0) * 180ms + .5s); }
.kyb-sksoc--anim .is-in .kyb-sksoc__punkte li:nth-child(3) { animation-delay: calc(var(--d, 0) * 180ms + .65s); }
.kyb-sksoc--anim .is-in .kyb-sksoc__punkte li:nth-child(n+4) { animation-delay: calc(var(--d, 0) * 180ms + .8s); }
.kyb-sksoc--anim .kyb-sksoc__bild.is-in::before {
  animation: kybSksocBild 2.4s cubic-bezier(.2, .7, .2, 1) backwards;
}
.kyb-sksoc--anim .is-in .kyb-sksoc__spur-basis,
.kyb-sksoc--anim .is-in .kyb-sksoc__linie-basis {
  stroke-dasharray: 2000;
  animation: kybSksocZug 3s cubic-bezier(.45, 0, .2, 1) backwards;
  animation-delay: .6s;
}

@keyframes kybSksocRein  { from { opacity: 0; transform: translateY(14px); } }
@keyframes kybSksocBild  { from { transform: scale(1.08); } }
@keyframes kybSksocZug   { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }
@keyframes kybSksocLauf  { to { stroke-dashoffset: 0; } }
@keyframes kybSksocPuls  {
  0%   { transform: scale(1); opacity: .7; }
  70%  { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* Unterhalb des Rasters kommt jede Gruppe einzeln ins Bild — kein Staffelversatz. */
@media (max-width: 759px) {
  .kyb-sksoc--anim [data-sksoc-reveal] { --d: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .kyb-sksoc--anim [data-sksoc-reveal] { opacity: 1; }
  .kyb-sksoc *, .kyb-sksoc *::before, .kyb-sksoc *::after { animation: none !important; transition: none !important; }
  /* Lichtpunkt ohne Bewegung ausblenden, Puls-Ring aus */
  .kyb-sksoc__spur-licht, .kyb-sksoc__linie-licht { display: none; }
  .kyb-sksoc__gruppe::before { width: 44px !important; }
}
