/* Effektgruppe: cards/inverting-icon; Reihenfolge in inc/assets.php. */

.inverting-icon-card .kt-inside-inner-col {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.5s ease;
}

/* Der Ripple-Kreis */
.inverting-icon-card .kt-inside-inner-col::before {
  content: "";
  position: absolute;
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background-color: var(--ripple-color, transparent);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 1.2s ease;
  z-index: -1;
  pointer-events: none;
}

/* Standard für Desktop */
.inverting-icon-card:is(:hover, :focus-within) .kt-inside-inner-col::before,
.inverting-icon-card.is-active .kt-inside-inner-col::before {
    transform: translate(-50%, -50%) scale(700);
}

/* Speziell für Mobile */
@media (max-width: 767px) {
    .inverting-icon-card:is(:hover, :focus-within) .kt-inside-inner-col::before,
    .inverting-icon-card.is-active .kt-inside-inner-col::before {
        /* Höhere Skalierung, damit auch lange Karten komplett gefüllt werden */
        transform: translate(-50%, -50%) scale(502);
    }
}

/* --- ICON SCHUTZ & SKALIERUNG --- */
.inverting-icon-card .kb-svg-icon-wrap {
  position: relative;
  z-index: 2; 
  /* Standard-Transition für das Zurückgehen (ohne Delay) */
  transition: transform 0.4s ease;
}

/* Icon Skalierung bei Hover der Karte */
.inverting-icon-card:is(:hover, :focus-within) .kb-svg-icon-wrap,
.inverting-icon-card.is-active .kb-svg-icon-wrap {
  transform: scale(1.3);
}
